Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
7438 amit.gupta 46
  def getItemsStatus(self, itemIds):
47
    """
48
    Parameters:
49
     - itemIds
50
    """
51
    pass
52
 
5944 mandeep.dh 53
  def getItemStatusDescription(self, itemId):
54
    """
55
    Parameters:
56
     - itemId
57
    """
58
    pass
59
 
60
  def startItemOn(self, item_id, timestamp):
61
    """
62
    Parameters:
63
     - item_id
64
     - timestamp
65
    """
66
    pass
67
 
68
  def retireItemOn(self, item_id, timestamp):
69
    """
70
    Parameters:
71
     - item_id
72
     - timestamp
73
    """
74
    pass
75
 
76
  def changeItemStatus(self, item_id, timestamp, newstatus):
77
    """
78
    Parameters:
79
     - item_id
80
     - timestamp
81
     - newstatus
82
    """
83
    pass
84
 
85
  def getItem(self, item_id):
86
    """
87
    Parameters:
88
     - item_id
89
    """
90
    pass
91
 
92
  def getItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getValidItemsByCatalogId(self, catalog_item_id):
100
    """
101
    Parameters:
102
     - catalog_item_id
103
    """
104
    pass
105
 
106
  def getAllItems(self, isActive):
107
    """
108
    Parameters:
109
     - isActive
110
    """
111
    pass
112
 
113
  def getAllItemsByStatus(self, itemStatus):
114
    """
115
    Parameters:
116
     - itemStatus
117
    """
118
    pass
119
 
9253 rajveer 120
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 121
    """
122
    Parameters:
123
     - entityId
124
     - category
125
     - brand
126
     - modelName
127
     - modelNumber
9253 rajveer 128
     - isAndroid
5944 mandeep.dh 129
    """
130
    pass
131
 
12567 amit.gupta 132
  def getVatRates(self, itemId, categoryId):
133
    """
134
    Parameters:
135
     - itemId
136
     - categoryId
137
    """
138
    pass
139
 
5944 mandeep.dh 140
  def getAllItemsInRange(self, offset, limit):
141
    """
142
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
143
 
144
    Parameters:
145
     - offset
146
     - limit
147
    """
148
    pass
149
 
150
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
151
    """
152
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
153
 
154
    Parameters:
155
     - itemStatus
156
     - offset
157
     - limit
158
    """
159
    pass
160
 
161
  def getItemCountByStatus(self, useStatus, itemStatus):
162
    """
163
    Gets a count of all items by status
164
 
165
    Parameters:
166
     - useStatus
167
     - itemStatus
168
    """
169
    pass
170
 
171
  def getBestSellers(self, ):
172
    pass
173
 
174
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestSellersCount(self, ):
185
    pass
186
 
187
  def getBestDeals(self, ):
188
    pass
189
 
190
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getBestDealsCount(self, ):
201
    pass
202
 
203
  def getComingSoon(self, ):
204
    pass
205
 
206
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
207
    """
208
    Parameters:
209
     - beginIndex
210
     - totalItems
211
     - brand
212
     - category
213
    """
214
    pass
215
 
216
  def getComingSoonCount(self, ):
217
    pass
218
 
219
  def getLatestArrivals(self, ):
220
    """
221
    Returns a list of items sorted in the descending order by start date.
222
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
223
    """
224
    pass
225
 
226
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
227
    """
228
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
229
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
230
 
231
    Parameters:
232
     - beginIndex
233
     - totalItems
234
     - brand
235
     - categories
236
    """
237
    pass
238
 
239
  def getLatestArrivalsCount(self, ):
240
    """
241
    Get the total number of latest arrivals we are willing to show.
242
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
243
    """
244
    pass
245
 
246
  def generateNewEntityID(self, ):
247
    pass
248
 
249
  def addCategory(self, category):
250
    """
251
    All category related functions
252
 
253
    Parameters:
254
     - category
255
    """
256
    pass
257
 
258
  def getCategory(self, id):
259
    """
260
    Parameters:
261
     - id
262
    """
263
    pass
264
 
265
  def getAllCategories(self, ):
266
    pass
267
 
268
  def getAllSimilarItems(self, itemId):
269
    """
270
    Returns the list of similar items.
271
 
272
    Parameters:
273
     - itemId
274
    """
275
    pass
276
 
277
  def addSimilarItem(self, itemId, catalogItemId):
278
    """
279
    Adds similar item.
280
 
281
    Parameters:
282
     - itemId
283
     - catalogItemId
284
    """
285
    pass
286
 
6512 kshitij.so 287
  def addTag(self, displayName, itemId):
288
    """
289
    Tag Related
290
 
291
    Parameters:
292
     - displayName
293
     - itemId
294
    """
295
    pass
296
 
297
  def deleteEntityTag(self, displayName, itemId):
298
    """
299
    Parameters:
300
     - displayName
301
     - itemId
302
    """
303
    pass
304
 
305
  def deleteTag(self, displayName):
306
    """
307
    Parameters:
308
     - displayName
309
    """
310
    pass
311
 
312
  def getAllTags(self, ):
313
    pass
314
 
315
  def getAllEntitiesByTagName(self, displayName):
316
    """
317
    Parameters:
318
     - displayName
319
    """
320
    pass
321
 
6845 amit.gupta 322
  def getAllEntityTags(self, ):
323
    pass
324
 
8590 kshitij.so 325
  def addBanner(self, bannerCongregate):
6850 kshitij.so 326
    """
8579 kshitij.so 327
    Banner Related
328
 
6850 kshitij.so 329
    Parameters:
8590 kshitij.so 330
     - bannerCongregate
6850 kshitij.so 331
    """
332
    pass
333
 
8579 kshitij.so 334
  def updateBanner(self, banner):
335
    """
336
    Parameters:
337
     - banner
338
    """
339
    pass
340
 
6850 kshitij.so 341
  def getAllBanners(self, ):
342
    pass
343
 
9155 kshitij.so 344
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 345
    """
346
    Parameters:
347
     - bannerName
9155 kshitij.so 348
     - bannerType
6850 kshitij.so 349
    """
350
    pass
351
 
9155 kshitij.so 352
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 353
    """
354
    Parameters:
355
     - bannerName
9155 kshitij.so 356
     - bannerType
6850 kshitij.so 357
    """
358
    pass
359
 
360
  def getActiveBanners(self, ):
361
    pass
362
 
8579 kshitij.so 363
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 364
    """
365
    Parameters:
8579 kshitij.so 366
     - bannerMaps
6849 kshitij.so 367
    """
368
    pass
369
 
8579 kshitij.so 370
  def updateBannerMap(self, bannerMap):
371
    """
372
    Parameters:
373
     - bannerMap
374
    """
375
    pass
376
 
6849 kshitij.so 377
  def deleteBannerMap(self, bannerName):
378
    """
379
    Parameters:
380
     - bannerName
381
    """
382
    pass
383
 
9155 kshitij.so 384
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 385
    """
386
    Parameters:
387
     - bannerName
9155 kshitij.so 388
     - bannerType
6849 kshitij.so 389
    """
390
    pass
391
 
8579 kshitij.so 392
  def addBannerUri(self, bannerUriMappings):
393
    """
394
    Parameters:
395
     - bannerUriMappings
396
    """
397
    pass
398
 
9155 kshitij.so 399
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 400
    """
401
    Parameters:
402
     - bannerName
9155 kshitij.so 403
     - bannerType
8579 kshitij.so 404
    """
405
    pass
406
 
407
  def addCampaign(self, campaign):
408
    """
409
    Parameters:
410
     - campaign
411
    """
412
    pass
413
 
414
  def getCampaigns(self, campaignName):
415
    """
416
    Parameters:
417
     - campaignName
418
    """
419
    pass
420
 
421
  def deleteCampaign(self, campaignId):
422
    """
423
    Parameters:
424
     - campaignId
425
    """
426
    pass
427
 
428
  def getAllCampaigns(self, ):
429
    pass
430
 
9155 kshitij.so 431
  def getActiveBannersForMobileSite(self, ):
432
    pass
433
 
5944 mandeep.dh 434
  def deleteSimilarItem(self, itemId, catalogItemId):
435
    """
436
    Delete similar item.
437
 
438
    Parameters:
439
     - itemId
440
     - catalogItemId
441
    """
442
    pass
443
 
444
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
445
    """
446
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
447
    If yes, returns the itemId else returns 0
448
 
449
    Parameters:
450
     - brand
451
     - modelNumber
452
     - modelName
453
     - color
454
    """
455
    pass
456
 
457
  def validateRiskyStatus(self, itemId):
458
    """
459
    Check wether item is risky and change status if inventory is not available for risky items
460
 
461
    Parameters:
462
     - itemId
463
    """
464
    pass
465
 
466
  def changeItemRiskyFlag(self, itemId, risky):
467
    """
468
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
469
 
470
    Parameters:
471
     - itemId
472
     - risky
473
    """
474
    pass
475
 
476
  def getItemsByRiskyFlag(self, ):
477
    """
478
    Returns list of items marked as risky.
479
    """
480
    pass
481
 
482
  def getItemsForMasterSheet(self, category, brand):
483
    """
484
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
485
 
486
    Parameters:
487
     - category
488
     - brand
489
    """
490
    pass
491
 
492
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
493
    """
494
    Returns list of catalog ids of items with same similarity index as of the given itemId
495
 
496
    Parameters:
497
     - beginIndex
498
     - totalItems
499
     - itemId
500
    """
501
    pass
502
 
503
  def addProductNotification(self, itemId, email):
504
    """
505
    Add user requests for out of stock items. Once user will ask for notify me an entry will
506
 
507
    Parameters:
508
     - itemId
509
     - email
510
    """
511
    pass
512
 
513
  def sendProductNotifications(self, ):
514
    """
515
    Send the product notifications to the users for items which has stock.
516
    """
517
    pass
518
 
519
  def getAllBrandsByCategory(self, categoryId):
520
    """
521
    Returns list of brand names for a given category Id
522
 
523
    Parameters:
524
     - categoryId
525
    """
526
    pass
527
 
528
  def getAllBrands(self, ):
529
    """
530
    Returns list of brand names
531
    """
532
    pass
533
 
534
  def getAllSources(self, ):
535
    """
536
    Return list of all sources
537
    """
538
    pass
539
 
540
  def getItemPricingBySource(self, itemId, sourceId):
541
    """
542
    Returns the pricing information of an item. If no information is found, exception will be thrown.
543
 
544
    Parameters:
545
     - itemId
546
     - sourceId
547
    """
548
    pass
549
 
550
  def addSourceItemPricing(self, sourceItemPricing):
551
    """
552
    Adds prices to be displayed corresponding to the item if user comes from a source.
553
    If item is not found or source is not found, it will throw exception.
554
 
555
    Parameters:
556
     - sourceItemPricing
557
    """
558
    pass
559
 
560
  def getAllSourcePricing(self, itemId):
561
    """
562
    Returns the list of source pricing information of an item.
563
    Raises an exception if item not found corresponding to itemId
564
 
565
    Parameters:
566
     - itemId
567
    """
568
    pass
569
 
570
  def getItemForSource(self, item_id, sourceId):
571
    """
572
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
573
 
574
    Parameters:
575
     - item_id
576
     - sourceId
577
    """
578
    pass
579
 
580
  def searchItemsInRange(self, searchTerms, offset, limit):
581
    """
582
    Searches items matching the the given terms in the catalog and returns results within the specified range.
583
 
584
    Parameters:
585
     - searchTerms
586
     - offset
587
     - limit
588
    """
589
    pass
590
 
591
  def getSearchResultCount(self, searchTerms):
592
    """
593
    Gets the count of search results for the given search terms so that the user can go through all the pages.
594
 
595
    Parameters:
596
     - searchTerms
597
    """
598
    pass
599
 
600
  def getProductNotifications(self, startDateTime):
601
    """
602
    Returns a list of product notifications added after a supplied datetime
603
 
604
    Parameters:
605
     - startDateTime
606
    """
607
    pass
608
 
7897 amar.kumar 609
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 610
    """
611
    Returns a list of count of requests for product notification against each item
612
 
613
    Parameters:
614
     - startDateTime
7897 amar.kumar 615
     - categoryId
5944 mandeep.dh 616
    """
617
    pass
618
 
619
  def addAuthorizationLog(self, itemId, username, reason):
620
    """
621
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
622
 
623
    Parameters:
624
     - itemId
625
     - username
626
     - reason
627
    """
628
    pass
629
 
630
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
631
    """
632
    Parameters:
633
     - catalog_item_id
634
     - voucherType
635
     - voucherAmount
636
    """
637
    pass
638
 
639
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
640
    """
641
    Parameters:
642
     - catalog_item_id
643
     - voucherType
644
    """
645
    pass
646
 
647
  def getVoucherAmount(self, itemId, voucherType):
648
    """
649
    Parameters:
650
     - itemId
651
     - voucherType
652
    """
653
    pass
654
 
655
  def getAllItemVouchers(self, itemId):
656
    """
657
    Parameters:
658
     - itemId
659
    """
660
    pass
661
 
662
  def isValidCatalogItemId(self, catalog_item_id):
663
    """
664
    Parameters:
665
     - catalog_item_id
666
    """
667
    pass
668
 
7330 amit.gupta 669
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 670
    """
671
    Parameters:
672
     - itemId
7330 amit.gupta 673
     - stateId
6039 amit.gupta 674
     - price
675
    """
676
    pass
5944 mandeep.dh 677
 
6039 amit.gupta 678
  def getVatAmountForItem(self, itemId, price):
679
    """
680
    Parameters:
681
     - itemId
682
     - price
683
    """
684
    pass
685
 
6531 vikram.rag 686
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
687
    """
688
    Parameters:
689
     - offset
690
     - limit
691
    """
692
    pass
6039 amit.gupta 693
 
6821 amar.kumar 694
  def getAllAliveItems(self, ):
695
    pass
696
 
6921 anupam.sin 697
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 698
    """
699
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 700
 
6805 anupam.sin 701
    Parameters:
702
     - itemId
6921 anupam.sin 703
     - price
6805 anupam.sin 704
     - insurerId
705
     - quantity
706
    """
707
    pass
708
 
709
  def getInsurer(self, insurerId):
710
    """
711
    Parameters:
712
     - insurerId
713
    """
714
    pass
715
 
6838 vikram.rag 716
  def getAllInsurers(self, ):
717
    pass
6805 anupam.sin 718
 
6962 rajveer 719
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
720
    """
721
    Parameters:
722
     - insurerId
723
     - amount
724
    """
725
    pass
6838 vikram.rag 726
 
7190 amar.kumar 727
  def getFreebieForItem(self, itemId):
728
    """
729
    Parameters:
730
     - itemId
731
    """
732
    pass
6962 rajveer 733
 
7190 amar.kumar 734
  def addOrUpdateFreebieForItem(self, freebieItem):
735
    """
736
    Parameters:
737
     - freebieItem
738
    """
739
    pass
740
 
7272 amit.gupta 741
  def addOrUpdateBrandInfo(self, brandInfo):
742
    """
743
    Parameters:
744
     - brandInfo
745
    """
746
    pass
747
 
748
  def getBrandInfo(self, ):
749
    pass
750
 
7256 rajveer 751
  def getStorePricing(self, itemId):
752
    """
753
    Parameters:
754
     - itemId
755
    """
756
    pass
7190 amar.kumar 757
 
7306 rajveer 758
  def getStorePricings(self, itemIds):
759
    """
760
    Parameters:
761
     - itemIds
762
    """
763
    pass
764
 
7382 rajveer 765
  def updateStorePricing(self, sp, allColors):
7265 rajveer 766
    """
767
    Parameters:
768
     - sp
7382 rajveer 769
     - allColors
7265 rajveer 770
    """
771
    pass
7256 rajveer 772
 
7281 kshitij.so 773
  def getAllAmazonListedItems(self, ):
774
    pass
7265 rajveer 775
 
8619 kshitij.so 776
  def searchAmazonItems(self, searchTerm, offset, limit):
777
    """
778
    Parameters:
779
     - searchTerm
780
     - offset
781
     - limit
782
    """
783
    pass
784
 
785
  def getAmazonSearchResultCount(self, searchTerm):
786
    """
787
    Parameters:
788
     - searchTerm
789
    """
790
    pass
791
 
792
  def getCountForAmazonlistedItems(self, ):
793
    pass
794
 
7281 kshitij.so 795
  def getAmazonItemDetails(self, itemId):
796
    """
797
    Parameters:
798
     - itemId
799
    """
800
    pass
801
 
8168 kshitij.so 802
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 803
    """
804
    Parameters:
8168 kshitij.so 805
     - amazonlisted
7281 kshitij.so 806
    """
807
    pass
808
 
809
  def addAmazonItem(self, amazonlisted):
810
    """
811
    Parameters:
812
     - amazonlisted
813
    """
814
    pass
815
 
7291 vikram.rag 816
  def getAsinItems(self, ):
817
    pass
7281 kshitij.so 818
 
7291 vikram.rag 819
  def getAllFbaListedItems(self, ):
820
    pass
821
 
822
  def getAllNonFbaListedItems(self, ):
823
    pass
824
 
7460 kshitij.so 825
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
826
    """
827
    Parameters:
828
     - itemId
829
     - holdInventory
830
     - defaultInventory
831
    """
832
    pass
7291 vikram.rag 833
 
7770 kshitij.so 834
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
835
    """
836
    Parameters:
837
     - type
838
     - sku
839
     - timestamp
840
    """
841
    pass
7460 kshitij.so 842
 
7897 amar.kumar 843
  def getAllParentCategories(self, ):
844
    pass
7770 kshitij.so 845
 
7977 kshitij.so 846
  def addPageViewEvent(self, pageViewEvents):
847
    """
848
    Parameters:
849
     - pageViewEvents
850
    """
851
    pass
7897 amar.kumar 852
 
7977 kshitij.so 853
  def addCartEvent(self, cartEvents):
854
    """
855
    Parameters:
856
     - cartEvents
857
    """
858
    pass
859
 
8182 amar.kumar 860
  def addEbayItem(self, ebayItem):
861
    """
862
    Parameters:
863
     - ebayItem
864
    """
865
    pass
866
 
867
  def getEbayItem(self, listingId):
868
    """
869
    Parameters:
870
     - listingId
871
    """
872
    pass
873
 
874
  def updateEbayItem(self, ebayItem):
875
    """
876
    Parameters:
877
     - ebayItem
878
    """
879
    pass
880
 
8139 kshitij.so 881
  def getAmazonListedItems(self, offset, limit):
882
    """
883
    Parameters:
884
     - offset
885
     - limit
886
    """
887
    pass
7977 kshitij.so 888
 
8168 kshitij.so 889
  def updateAmazonAttributesInBulk(self, amazonlisted):
890
    """
891
    Parameters:
892
     - amazonlisted
893
    """
894
    pass
8139 kshitij.so 895
 
8379 vikram.rag 896
  def getAllItemstoListOnFba(self, ):
897
    pass
8168 kshitij.so 898
 
8379 vikram.rag 899
  def getAllItemstoListOnNonFba(self, ):
900
    pass
901
 
8619 kshitij.so 902
  def updateAsin(self, item):
903
    """
904
    Parameters:
905
     - item
906
    """
907
    pass
8616 vikram.rag 908
 
8739 vikram.rag 909
  def addOrUpdateSnapdealItem(self, snapdealitem):
910
    """
911
    Parameters:
912
     - snapdealitem
913
    """
914
    pass
8619 kshitij.so 915
 
8739 vikram.rag 916
  def getSnapdealItem(self, item_id):
917
    """
918
    Parameters:
919
     - item_id
920
    """
921
    pass
922
 
9242 kshitij.so 923
  def getSnapdealItemDetails(self, item_id):
924
    """
925
    Parameters:
926
     - item_id
927
    """
928
    pass
929
 
8739 vikram.rag 930
  def getAllSnapdealItems(self, ):
931
    pass
932
 
9242 kshitij.so 933
  def getSnapdealItems(self, offset, limit):
934
    """
935
    Parameters:
936
     - offset
937
     - limit
938
    """
939
    pass
8739 vikram.rag 940
 
9242 kshitij.so 941
  def searchSnapdealItems(self, searchTerm, offset, limit):
942
    """
943
    Parameters:
944
     - searchTerm
945
     - offset
946
     - limit
947
    """
948
    pass
949
 
950
  def getCountForSnapdealItems(self, ):
951
    pass
952
 
953
  def getSnapdealSearchResultCount(self, searchTerm):
954
    """
955
    Parameters:
956
     - searchTerm
957
    """
958
    pass
959
 
9299 kshitij.so 960
  def getPrefferedInsurerForItem(self, itemId, insurerType):
961
    """
962
    Parameters:
963
     - itemId
964
     - insurerType
965
    """
966
    pass
9242 kshitij.so 967
 
9456 vikram.rag 968
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
969
    """
970
    Parameters:
971
     - skuAtSnapdeal
972
    """
973
    pass
9299 kshitij.so 974
 
9621 manish.sha 975
  def getProductFeedSubmit(self, catalogItemId):
976
    """
977
    Parameters:
978
     - catalogItemId
979
    """
980
    pass
9456 vikram.rag 981
 
9621 manish.sha 982
  def addProductFeedSubmit(self, productFeedSubmit):
983
    """
984
    Parameters:
985
     - productFeedSubmit
986
    """
987
    pass
988
 
989
  def updateProductFeedSubmit(self, productFeedSubmit):
990
    """
991
    Parameters:
992
     - productFeedSubmit
993
    """
994
    pass
995
 
996
  def deleteProductFeedSubmit(self, catalogItemId):
997
    """
998
    Parameters:
999
     - catalogItemId
1000
    """
1001
    pass
1002
 
1003
  def getAllProductFeedSubmit(self, ):
1004
    pass
1005
 
9724 kshitij.so 1006
  def getMarketplacedetailsForItem(self, itemId, sourceId):
1007
    """
1008
    Parameters:
1009
     - itemId
1010
     - sourceId
1011
    """
1012
    pass
9621 manish.sha 1013
 
9724 kshitij.so 1014
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1015
    """
1016
    Parameters:
1017
     - marketPlaceItem
1018
    """
1019
    pass
1020
 
9779 kshitij.so 1021
  def getCostingForMarketplace(self, source, item_id):
1022
    """
1023
    Parameters:
1024
     - source
1025
     - item_id
1026
    """
1027
    pass
1028
 
9776 vikram.rag 1029
  def getMarketPlaceItemsForPriceUpdate(self, source):
1030
    """
1031
    Parameters:
1032
     - source
1033
    """
1034
    pass
9724 kshitij.so 1035
 
9816 kshitij.so 1036
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 1037
    """
1038
    Parameters:
1039
     - skulist
1040
     - timestamp
9816 kshitij.so 1041
     - source
9776 vikram.rag 1042
    """
1043
    pass
1044
 
9861 rajveer 1045
  def updateItemHoldInventory(self, itemHoldMap):
1046
    """
1047
    Parameters:
1048
     - itemHoldMap
1049
    """
1050
    pass
9776 vikram.rag 1051
 
9895 vikram.rag 1052
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
1053
    """
1054
    Parameters:
1055
     - item_id
1056
     - vendor_id
1057
     - nlc
1058
    """
1059
    pass
9861 rajveer 1060
 
9945 vikram.rag 1061
  def getAllFlipkartItems(self, ):
1062
    pass
9895 vikram.rag 1063
 
10097 kshitij.so 1064
  def addOrUpdateFlipkartItem(self, flipkartitem):
1065
    """
1066
    Parameters:
1067
     - flipkartitem
1068
    """
1069
    pass
9945 vikram.rag 1070
 
10097 kshitij.so 1071
  def getFlipkartItem(self, item_id):
1072
    """
1073
    Parameters:
1074
     - item_id
1075
    """
1076
    pass
1077
 
1078
  def getFlipkartItemDetails(self, item_id):
1079
    """
1080
    Parameters:
1081
     - item_id
1082
    """
1083
    pass
1084
 
1085
  def getFlipkartItems(self, offset, limit):
1086
    """
1087
    Parameters:
1088
     - offset
1089
     - limit
1090
    """
1091
    pass
1092
 
1093
  def searchFlipkartItems(self, searchTerm, offset, limit):
1094
    """
1095
    Parameters:
1096
     - searchTerm
1097
     - offset
1098
     - limit
1099
    """
1100
    pass
1101
 
1102
  def getCountForFlipkartItems(self, ):
1103
    pass
1104
 
1105
  def getFlipkartSearchResultCount(self, searchTerm):
1106
    """
1107
    Parameters:
1108
     - searchTerm
1109
    """
1110
    pass
1111
 
1112
  def getAllFkItems(self, ):
1113
    pass
1114
 
10140 vikram.rag 1115
  def getFlipkartItemBySkyAtFlipkart(self, sku):
1116
    """
1117
    Parameters:
1118
     - sku
1119
    """
1120
    pass
10097 kshitij.so 1121
 
11015 kshitij.so 1122
  def getMarketplaceHistory(self, source, offset, itemId):
1123
    """
1124
    Parameters:
1125
     - source
1126
     - offset
1127
     - itemId
1128
    """
1129
    pass
1130
 
10909 vikram.rag 1131
  def getAllFbbListedItems(self, ):
1132
    pass
10140 vikram.rag 1133
 
10924 vikram.rag 1134
  def getAllFbbPricingItems(self, ):
1135
    pass
10909 vikram.rag 1136
 
11015 kshitij.so 1137
  def getCountForMarketplaceHistory(self, source, itemId):
1138
    """
1139
    Parameters:
1140
     - source
1141
     - itemId
1142
    """
1143
    pass
10924 vikram.rag 1144
 
11015 kshitij.so 1145
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
1146
    """
1147
    Parameters:
1148
     - source
1149
     - startDate
1150
     - endDate
1151
     - offset
1152
     - limit
1153
     - itemId
1154
    """
1155
    pass
1156
 
11531 vikram.rag 1157
  def getPrivateDealDetails(self, item_id):
1158
    """
1159
    Parameters:
1160
     - item_id
1161
    """
1162
    pass
11015 kshitij.so 1163
 
11531 vikram.rag 1164
  def getPrivateDealItems(self, offset, limit):
1165
    """
1166
    Parameters:
1167
     - offset
1168
     - limit
1169
    """
1170
    pass
1171
 
11653 amit.gupta 1172
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
1173
    """
1174
    Parameters:
1175
     - itemIds
1176
     - daysDelta
1177
    """
11592 amit.gupta 1178
    pass
1179
 
11531 vikram.rag 1180
  def addOrUpdatePrivateDeal(self, privateDeal):
1181
    """
1182
    Parameters:
1183
     - privateDeal
1184
    """
1185
    pass
1186
 
11635 vikram.rag 1187
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
1188
    """
1189
    Parameters:
1190
     - beginIndex
1191
     - totalItems
1192
    """
1193
    pass
11531 vikram.rag 1194
 
11645 amit.gupta 1195
  def getPrivateDealsCount(self, ):
1196
    pass
11635 vikram.rag 1197
 
11905 kshitij.so 1198
  def getAmazonOutSyncItems(self, item_id):
1199
    """
1200
    Parameters:
1201
     - item_id
1202
    """
1203
    pass
11645 amit.gupta 1204
 
11905 kshitij.so 1205
  def getAllPrivateDealsComparison(self, ):
1206
    pass
1207
 
12133 kshitij.so 1208
  def getAllSnapdealMarketplaceItem(self, ):
1209
    pass
11905 kshitij.so 1210
 
12133 kshitij.so 1211
  def getAllFlipkartMarketplaceItem(self, ):
1212
    pass
1213
 
12243 kshitij.so 1214
  def addCompetitorScraping(self, competitorPricingMap):
1215
    """
1216
    Parameters:
1217
     - competitorPricingMap
1218
    """
1219
    pass
12133 kshitij.so 1220
 
12243 kshitij.so 1221
  def getPreviousCompetitorScraping(self, delta):
1222
    """
1223
    Parameters:
1224
     - delta
1225
    """
1226
    pass
1227
 
12256 kshitij.so 1228
  def getUploadResultById(self, uploadId):
1229
    """
1230
    Parameters:
1231
     - uploadId
1232
    """
1233
    pass
12243 kshitij.so 1234
 
12363 kshitij.so 1235
  def addAmazonPromotion(self, amazonPromotions):
1236
    """
1237
    Parameters:
1238
     - amazonPromotions
1239
    """
1240
    pass
12256 kshitij.so 1241
 
12363 kshitij.so 1242
  def getAmazonPromotion(self, startDate, endDate):
1243
    """
1244
    Parameters:
1245
     - startDate
1246
     - endDate
1247
    """
1248
    pass
1249
 
1250
  def updateAmazonPromotion(self, amazonPromotions):
1251
    """
1252
    Parameters:
1253
     - amazonPromotions
1254
    """
1255
    pass
1256
 
12567 amit.gupta 1257
  def markPartiallyActive(self, itemId, categoryId):
1258
    """
1259
    Parameters:
1260
     - itemId
1261
     - categoryId
1262
    """
1263
    pass
12363 kshitij.so 1264
 
12567 amit.gupta 1265
  def updateItemStateVat(self, itemId, statevat):
1266
    """
1267
    Parameters:
1268
     - itemId
1269
     - statevat
1270
    """
1271
    pass
1272
 
12620 amit.gupta 1273
  def getExAffiliateItemInfo(self, ):
1274
    pass
12567 amit.gupta 1275
 
12888 kshitij.so 1276
  def getAllItemstoListOnFbg(self, ):
1277
    pass
12620 amit.gupta 1278
 
12888 kshitij.so 1279
 
5944 mandeep.dh 1280
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1281
  def __init__(self, iprot, oprot=None):
1282
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1283
 
1284
  def addItem(self, item):
1285
    """
1286
    Availability and inventory attributes
1287
 
1288
    Parameters:
1289
     - item
1290
    """
1291
    self.send_addItem(item)
1292
    return self.recv_addItem()
1293
 
1294
  def send_addItem(self, item):
1295
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1296
    args = addItem_args()
1297
    args.item = item
1298
    args.write(self._oprot)
1299
    self._oprot.writeMessageEnd()
1300
    self._oprot.trans.flush()
1301
 
1302
  def recv_addItem(self, ):
1303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1304
    if mtype == TMessageType.EXCEPTION:
1305
      x = TApplicationException()
1306
      x.read(self._iprot)
1307
      self._iprot.readMessageEnd()
1308
      raise x
1309
    result = addItem_result()
1310
    result.read(self._iprot)
1311
    self._iprot.readMessageEnd()
1312
    if result.success is not None:
1313
      return result.success
1314
    if result.cex is not None:
1315
      raise result.cex
1316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1317
 
1318
  def updateItem(self, item):
1319
    """
1320
    Parameters:
1321
     - item
1322
    """
1323
    self.send_updateItem(item)
1324
    return self.recv_updateItem()
1325
 
1326
  def send_updateItem(self, item):
1327
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1328
    args = updateItem_args()
1329
    args.item = item
1330
    args.write(self._oprot)
1331
    self._oprot.writeMessageEnd()
1332
    self._oprot.trans.flush()
1333
 
1334
  def recv_updateItem(self, ):
1335
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1336
    if mtype == TMessageType.EXCEPTION:
1337
      x = TApplicationException()
1338
      x.read(self._iprot)
1339
      self._iprot.readMessageEnd()
1340
      raise x
1341
    result = updateItem_result()
1342
    result.read(self._iprot)
1343
    self._iprot.readMessageEnd()
1344
    if result.success is not None:
1345
      return result.success
1346
    if result.cex is not None:
1347
      raise result.cex
1348
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1349
 
1350
  def isActive(self, itemId):
1351
    """
1352
    Checks if the item given to the corresponding itemId is active. If it's active,
1353
    whether it's risky and if it's risky, its inventory position.
1354
 
1355
    Parameters:
1356
     - itemId
1357
    """
1358
    self.send_isActive(itemId)
1359
    return self.recv_isActive()
1360
 
1361
  def send_isActive(self, itemId):
1362
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1363
    args = isActive_args()
1364
    args.itemId = itemId
1365
    args.write(self._oprot)
1366
    self._oprot.writeMessageEnd()
1367
    self._oprot.trans.flush()
1368
 
1369
  def recv_isActive(self, ):
1370
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1371
    if mtype == TMessageType.EXCEPTION:
1372
      x = TApplicationException()
1373
      x.read(self._iprot)
1374
      self._iprot.readMessageEnd()
1375
      raise x
1376
    result = isActive_result()
1377
    result.read(self._iprot)
1378
    self._iprot.readMessageEnd()
1379
    if result.success is not None:
1380
      return result.success
1381
    if result.isex is not None:
1382
      raise result.isex
1383
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1384
 
7438 amit.gupta 1385
  def getItemsStatus(self, itemIds):
1386
    """
1387
    Parameters:
1388
     - itemIds
1389
    """
1390
    self.send_getItemsStatus(itemIds)
1391
    return self.recv_getItemsStatus()
1392
 
1393
  def send_getItemsStatus(self, itemIds):
1394
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1395
    args = getItemsStatus_args()
1396
    args.itemIds = itemIds
1397
    args.write(self._oprot)
1398
    self._oprot.writeMessageEnd()
1399
    self._oprot.trans.flush()
1400
 
1401
  def recv_getItemsStatus(self, ):
1402
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1403
    if mtype == TMessageType.EXCEPTION:
1404
      x = TApplicationException()
1405
      x.read(self._iprot)
1406
      self._iprot.readMessageEnd()
1407
      raise x
1408
    result = getItemsStatus_result()
1409
    result.read(self._iprot)
1410
    self._iprot.readMessageEnd()
1411
    if result.success is not None:
1412
      return result.success
1413
    if result.isex is not None:
1414
      raise result.isex
1415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1416
 
5944 mandeep.dh 1417
  def getItemStatusDescription(self, itemId):
1418
    """
1419
    Parameters:
1420
     - itemId
1421
    """
1422
    self.send_getItemStatusDescription(itemId)
1423
    return self.recv_getItemStatusDescription()
1424
 
1425
  def send_getItemStatusDescription(self, itemId):
1426
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1427
    args = getItemStatusDescription_args()
1428
    args.itemId = itemId
1429
    args.write(self._oprot)
1430
    self._oprot.writeMessageEnd()
1431
    self._oprot.trans.flush()
1432
 
1433
  def recv_getItemStatusDescription(self, ):
1434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1435
    if mtype == TMessageType.EXCEPTION:
1436
      x = TApplicationException()
1437
      x.read(self._iprot)
1438
      self._iprot.readMessageEnd()
1439
      raise x
1440
    result = getItemStatusDescription_result()
1441
    result.read(self._iprot)
1442
    self._iprot.readMessageEnd()
1443
    if result.success is not None:
1444
      return result.success
1445
    if result.isex is not None:
1446
      raise result.isex
1447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1448
 
1449
  def startItemOn(self, item_id, timestamp):
1450
    """
1451
    Parameters:
1452
     - item_id
1453
     - timestamp
1454
    """
1455
    self.send_startItemOn(item_id, timestamp)
1456
    self.recv_startItemOn()
1457
 
1458
  def send_startItemOn(self, item_id, timestamp):
1459
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1460
    args = startItemOn_args()
1461
    args.item_id = item_id
1462
    args.timestamp = timestamp
1463
    args.write(self._oprot)
1464
    self._oprot.writeMessageEnd()
1465
    self._oprot.trans.flush()
1466
 
1467
  def recv_startItemOn(self, ):
1468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1469
    if mtype == TMessageType.EXCEPTION:
1470
      x = TApplicationException()
1471
      x.read(self._iprot)
1472
      self._iprot.readMessageEnd()
1473
      raise x
1474
    result = startItemOn_result()
1475
    result.read(self._iprot)
1476
    self._iprot.readMessageEnd()
1477
    if result.cex is not None:
1478
      raise result.cex
1479
    return
1480
 
1481
  def retireItemOn(self, item_id, timestamp):
1482
    """
1483
    Parameters:
1484
     - item_id
1485
     - timestamp
1486
    """
1487
    self.send_retireItemOn(item_id, timestamp)
1488
    self.recv_retireItemOn()
1489
 
1490
  def send_retireItemOn(self, item_id, timestamp):
1491
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1492
    args = retireItemOn_args()
1493
    args.item_id = item_id
1494
    args.timestamp = timestamp
1495
    args.write(self._oprot)
1496
    self._oprot.writeMessageEnd()
1497
    self._oprot.trans.flush()
1498
 
1499
  def recv_retireItemOn(self, ):
1500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1501
    if mtype == TMessageType.EXCEPTION:
1502
      x = TApplicationException()
1503
      x.read(self._iprot)
1504
      self._iprot.readMessageEnd()
1505
      raise x
1506
    result = retireItemOn_result()
1507
    result.read(self._iprot)
1508
    self._iprot.readMessageEnd()
1509
    if result.cex is not None:
1510
      raise result.cex
1511
    return
1512
 
1513
  def changeItemStatus(self, item_id, timestamp, newstatus):
1514
    """
1515
    Parameters:
1516
     - item_id
1517
     - timestamp
1518
     - newstatus
1519
    """
1520
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1521
    self.recv_changeItemStatus()
1522
 
1523
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1524
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1525
    args = changeItemStatus_args()
1526
    args.item_id = item_id
1527
    args.timestamp = timestamp
1528
    args.newstatus = newstatus
1529
    args.write(self._oprot)
1530
    self._oprot.writeMessageEnd()
1531
    self._oprot.trans.flush()
1532
 
1533
  def recv_changeItemStatus(self, ):
1534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1535
    if mtype == TMessageType.EXCEPTION:
1536
      x = TApplicationException()
1537
      x.read(self._iprot)
1538
      self._iprot.readMessageEnd()
1539
      raise x
1540
    result = changeItemStatus_result()
1541
    result.read(self._iprot)
1542
    self._iprot.readMessageEnd()
1543
    if result.cex is not None:
1544
      raise result.cex
1545
    return
1546
 
1547
  def getItem(self, item_id):
1548
    """
1549
    Parameters:
1550
     - item_id
1551
    """
1552
    self.send_getItem(item_id)
1553
    return self.recv_getItem()
1554
 
1555
  def send_getItem(self, item_id):
1556
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1557
    args = getItem_args()
1558
    args.item_id = item_id
1559
    args.write(self._oprot)
1560
    self._oprot.writeMessageEnd()
1561
    self._oprot.trans.flush()
1562
 
1563
  def recv_getItem(self, ):
1564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1565
    if mtype == TMessageType.EXCEPTION:
1566
      x = TApplicationException()
1567
      x.read(self._iprot)
1568
      self._iprot.readMessageEnd()
1569
      raise x
1570
    result = getItem_result()
1571
    result.read(self._iprot)
1572
    self._iprot.readMessageEnd()
1573
    if result.success is not None:
1574
      return result.success
1575
    if result.cex is not None:
1576
      raise result.cex
1577
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1578
 
1579
  def getItemsByCatalogId(self, catalog_item_id):
1580
    """
1581
    Parameters:
1582
     - catalog_item_id
1583
    """
1584
    self.send_getItemsByCatalogId(catalog_item_id)
1585
    return self.recv_getItemsByCatalogId()
1586
 
1587
  def send_getItemsByCatalogId(self, catalog_item_id):
1588
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1589
    args = getItemsByCatalogId_args()
1590
    args.catalog_item_id = catalog_item_id
1591
    args.write(self._oprot)
1592
    self._oprot.writeMessageEnd()
1593
    self._oprot.trans.flush()
1594
 
1595
  def recv_getItemsByCatalogId(self, ):
1596
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1597
    if mtype == TMessageType.EXCEPTION:
1598
      x = TApplicationException()
1599
      x.read(self._iprot)
1600
      self._iprot.readMessageEnd()
1601
      raise x
1602
    result = getItemsByCatalogId_result()
1603
    result.read(self._iprot)
1604
    self._iprot.readMessageEnd()
1605
    if result.success is not None:
1606
      return result.success
1607
    if result.cex is not None:
1608
      raise result.cex
1609
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1610
 
1611
  def getValidItemsByCatalogId(self, catalog_item_id):
1612
    """
1613
    Parameters:
1614
     - catalog_item_id
1615
    """
1616
    self.send_getValidItemsByCatalogId(catalog_item_id)
1617
    return self.recv_getValidItemsByCatalogId()
1618
 
1619
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1620
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1621
    args = getValidItemsByCatalogId_args()
1622
    args.catalog_item_id = catalog_item_id
1623
    args.write(self._oprot)
1624
    self._oprot.writeMessageEnd()
1625
    self._oprot.trans.flush()
1626
 
1627
  def recv_getValidItemsByCatalogId(self, ):
1628
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1629
    if mtype == TMessageType.EXCEPTION:
1630
      x = TApplicationException()
1631
      x.read(self._iprot)
1632
      self._iprot.readMessageEnd()
1633
      raise x
1634
    result = getValidItemsByCatalogId_result()
1635
    result.read(self._iprot)
1636
    self._iprot.readMessageEnd()
1637
    if result.success is not None:
1638
      return result.success
1639
    if result.cex is not None:
1640
      raise result.cex
1641
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1642
 
1643
  def getAllItems(self, isActive):
1644
    """
1645
    Parameters:
1646
     - isActive
1647
    """
1648
    self.send_getAllItems(isActive)
1649
    return self.recv_getAllItems()
1650
 
1651
  def send_getAllItems(self, isActive):
1652
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1653
    args = getAllItems_args()
1654
    args.isActive = isActive
1655
    args.write(self._oprot)
1656
    self._oprot.writeMessageEnd()
1657
    self._oprot.trans.flush()
1658
 
1659
  def recv_getAllItems(self, ):
1660
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1661
    if mtype == TMessageType.EXCEPTION:
1662
      x = TApplicationException()
1663
      x.read(self._iprot)
1664
      self._iprot.readMessageEnd()
1665
      raise x
1666
    result = getAllItems_result()
1667
    result.read(self._iprot)
1668
    self._iprot.readMessageEnd()
1669
    if result.success is not None:
1670
      return result.success
1671
    if result.cex is not None:
1672
      raise result.cex
1673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1674
 
1675
  def getAllItemsByStatus(self, itemStatus):
1676
    """
1677
    Parameters:
1678
     - itemStatus
1679
    """
1680
    self.send_getAllItemsByStatus(itemStatus)
1681
    return self.recv_getAllItemsByStatus()
1682
 
1683
  def send_getAllItemsByStatus(self, itemStatus):
1684
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1685
    args = getAllItemsByStatus_args()
1686
    args.itemStatus = itemStatus
1687
    args.write(self._oprot)
1688
    self._oprot.writeMessageEnd()
1689
    self._oprot.trans.flush()
1690
 
1691
  def recv_getAllItemsByStatus(self, ):
1692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1693
    if mtype == TMessageType.EXCEPTION:
1694
      x = TApplicationException()
1695
      x.read(self._iprot)
1696
      self._iprot.readMessageEnd()
1697
      raise x
1698
    result = getAllItemsByStatus_result()
1699
    result.read(self._iprot)
1700
    self._iprot.readMessageEnd()
1701
    if result.success is not None:
1702
      return result.success
1703
    if result.cex is not None:
1704
      raise result.cex
1705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1706
 
9253 rajveer 1707
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1708
    """
1709
    Parameters:
1710
     - entityId
1711
     - category
1712
     - brand
1713
     - modelName
1714
     - modelNumber
9253 rajveer 1715
     - isAndroid
5944 mandeep.dh 1716
    """
9253 rajveer 1717
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1718
    return self.recv_markItemAsContentComplete()
1719
 
9253 rajveer 1720
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1721
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1722
    args = markItemAsContentComplete_args()
1723
    args.entityId = entityId
1724
    args.category = category
1725
    args.brand = brand
1726
    args.modelName = modelName
1727
    args.modelNumber = modelNumber
9253 rajveer 1728
    args.isAndroid = isAndroid
5944 mandeep.dh 1729
    args.write(self._oprot)
1730
    self._oprot.writeMessageEnd()
1731
    self._oprot.trans.flush()
1732
 
1733
  def recv_markItemAsContentComplete(self, ):
1734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1735
    if mtype == TMessageType.EXCEPTION:
1736
      x = TApplicationException()
1737
      x.read(self._iprot)
1738
      self._iprot.readMessageEnd()
1739
      raise x
1740
    result = markItemAsContentComplete_result()
1741
    result.read(self._iprot)
1742
    self._iprot.readMessageEnd()
1743
    if result.success is not None:
1744
      return result.success
1745
    if result.cex is not None:
1746
      raise result.cex
1747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1748
 
12567 amit.gupta 1749
  def getVatRates(self, itemId, categoryId):
1750
    """
1751
    Parameters:
1752
     - itemId
1753
     - categoryId
1754
    """
1755
    self.send_getVatRates(itemId, categoryId)
1756
    return self.recv_getVatRates()
1757
 
1758
  def send_getVatRates(self, itemId, categoryId):
1759
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1760
    args = getVatRates_args()
1761
    args.itemId = itemId
1762
    args.categoryId = categoryId
1763
    args.write(self._oprot)
1764
    self._oprot.writeMessageEnd()
1765
    self._oprot.trans.flush()
1766
 
1767
  def recv_getVatRates(self, ):
1768
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1769
    if mtype == TMessageType.EXCEPTION:
1770
      x = TApplicationException()
1771
      x.read(self._iprot)
1772
      self._iprot.readMessageEnd()
1773
      raise x
1774
    result = getVatRates_result()
1775
    result.read(self._iprot)
1776
    self._iprot.readMessageEnd()
1777
    if result.success is not None:
1778
      return result.success
1779
    if result.cex is not None:
1780
      raise result.cex
1781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1782
 
5944 mandeep.dh 1783
  def getAllItemsInRange(self, offset, limit):
1784
    """
1785
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1786
 
1787
    Parameters:
1788
     - offset
1789
     - limit
1790
    """
1791
    self.send_getAllItemsInRange(offset, limit)
1792
    return self.recv_getAllItemsInRange()
1793
 
1794
  def send_getAllItemsInRange(self, offset, limit):
1795
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1796
    args = getAllItemsInRange_args()
1797
    args.offset = offset
1798
    args.limit = limit
1799
    args.write(self._oprot)
1800
    self._oprot.writeMessageEnd()
1801
    self._oprot.trans.flush()
1802
 
1803
  def recv_getAllItemsInRange(self, ):
1804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1805
    if mtype == TMessageType.EXCEPTION:
1806
      x = TApplicationException()
1807
      x.read(self._iprot)
1808
      self._iprot.readMessageEnd()
1809
      raise x
1810
    result = getAllItemsInRange_result()
1811
    result.read(self._iprot)
1812
    self._iprot.readMessageEnd()
1813
    if result.success is not None:
1814
      return result.success
1815
    if result.cex is not None:
1816
      raise result.cex
1817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1818
 
1819
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1820
    """
1821
    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.
1822
 
1823
    Parameters:
1824
     - itemStatus
1825
     - offset
1826
     - limit
1827
    """
1828
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1829
    return self.recv_getAllItemsByStatusInRange()
1830
 
1831
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1832
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1833
    args = getAllItemsByStatusInRange_args()
1834
    args.itemStatus = itemStatus
1835
    args.offset = offset
1836
    args.limit = limit
1837
    args.write(self._oprot)
1838
    self._oprot.writeMessageEnd()
1839
    self._oprot.trans.flush()
1840
 
1841
  def recv_getAllItemsByStatusInRange(self, ):
1842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1843
    if mtype == TMessageType.EXCEPTION:
1844
      x = TApplicationException()
1845
      x.read(self._iprot)
1846
      self._iprot.readMessageEnd()
1847
      raise x
1848
    result = getAllItemsByStatusInRange_result()
1849
    result.read(self._iprot)
1850
    self._iprot.readMessageEnd()
1851
    if result.success is not None:
1852
      return result.success
1853
    if result.cex is not None:
1854
      raise result.cex
1855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1856
 
1857
  def getItemCountByStatus(self, useStatus, itemStatus):
1858
    """
1859
    Gets a count of all items by status
1860
 
1861
    Parameters:
1862
     - useStatus
1863
     - itemStatus
1864
    """
1865
    self.send_getItemCountByStatus(useStatus, itemStatus)
1866
    return self.recv_getItemCountByStatus()
1867
 
1868
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1869
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1870
    args = getItemCountByStatus_args()
1871
    args.useStatus = useStatus
1872
    args.itemStatus = itemStatus
1873
    args.write(self._oprot)
1874
    self._oprot.writeMessageEnd()
1875
    self._oprot.trans.flush()
1876
 
1877
  def recv_getItemCountByStatus(self, ):
1878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1879
    if mtype == TMessageType.EXCEPTION:
1880
      x = TApplicationException()
1881
      x.read(self._iprot)
1882
      self._iprot.readMessageEnd()
1883
      raise x
1884
    result = getItemCountByStatus_result()
1885
    result.read(self._iprot)
1886
    self._iprot.readMessageEnd()
1887
    if result.success is not None:
1888
      return result.success
1889
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1890
 
1891
  def getBestSellers(self, ):
1892
    self.send_getBestSellers()
1893
    return self.recv_getBestSellers()
1894
 
1895
  def send_getBestSellers(self, ):
1896
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1897
    args = getBestSellers_args()
1898
    args.write(self._oprot)
1899
    self._oprot.writeMessageEnd()
1900
    self._oprot.trans.flush()
1901
 
1902
  def recv_getBestSellers(self, ):
1903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1904
    if mtype == TMessageType.EXCEPTION:
1905
      x = TApplicationException()
1906
      x.read(self._iprot)
1907
      self._iprot.readMessageEnd()
1908
      raise x
1909
    result = getBestSellers_result()
1910
    result.read(self._iprot)
1911
    self._iprot.readMessageEnd()
1912
    if result.success is not None:
1913
      return result.success
1914
    if result.isex is not None:
1915
      raise result.isex
1916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1917
 
1918
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1919
    """
1920
    Parameters:
1921
     - beginIndex
1922
     - totalItems
1923
     - brand
1924
     - category
1925
    """
1926
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1927
    return self.recv_getBestSellersCatalogIds()
1928
 
1929
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1930
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1931
    args = getBestSellersCatalogIds_args()
1932
    args.beginIndex = beginIndex
1933
    args.totalItems = totalItems
1934
    args.brand = brand
1935
    args.category = category
1936
    args.write(self._oprot)
1937
    self._oprot.writeMessageEnd()
1938
    self._oprot.trans.flush()
1939
 
1940
  def recv_getBestSellersCatalogIds(self, ):
1941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1942
    if mtype == TMessageType.EXCEPTION:
1943
      x = TApplicationException()
1944
      x.read(self._iprot)
1945
      self._iprot.readMessageEnd()
1946
      raise x
1947
    result = getBestSellersCatalogIds_result()
1948
    result.read(self._iprot)
1949
    self._iprot.readMessageEnd()
1950
    if result.success is not None:
1951
      return result.success
1952
    if result.cex is not None:
1953
      raise result.cex
1954
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1955
 
1956
  def getBestSellersCount(self, ):
1957
    self.send_getBestSellersCount()
1958
    return self.recv_getBestSellersCount()
1959
 
1960
  def send_getBestSellersCount(self, ):
1961
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1962
    args = getBestSellersCount_args()
1963
    args.write(self._oprot)
1964
    self._oprot.writeMessageEnd()
1965
    self._oprot.trans.flush()
1966
 
1967
  def recv_getBestSellersCount(self, ):
1968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1969
    if mtype == TMessageType.EXCEPTION:
1970
      x = TApplicationException()
1971
      x.read(self._iprot)
1972
      self._iprot.readMessageEnd()
1973
      raise x
1974
    result = getBestSellersCount_result()
1975
    result.read(self._iprot)
1976
    self._iprot.readMessageEnd()
1977
    if result.success is not None:
1978
      return result.success
1979
    if result.cex is not None:
1980
      raise result.cex
1981
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1982
 
1983
  def getBestDeals(self, ):
1984
    self.send_getBestDeals()
1985
    return self.recv_getBestDeals()
1986
 
1987
  def send_getBestDeals(self, ):
1988
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1989
    args = getBestDeals_args()
1990
    args.write(self._oprot)
1991
    self._oprot.writeMessageEnd()
1992
    self._oprot.trans.flush()
1993
 
1994
  def recv_getBestDeals(self, ):
1995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1996
    if mtype == TMessageType.EXCEPTION:
1997
      x = TApplicationException()
1998
      x.read(self._iprot)
1999
      self._iprot.readMessageEnd()
2000
      raise x
2001
    result = getBestDeals_result()
2002
    result.read(self._iprot)
2003
    self._iprot.readMessageEnd()
2004
    if result.success is not None:
2005
      return result.success
2006
    if result.isex is not None:
2007
      raise result.isex
2008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2009
 
2010
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2011
    """
2012
    Parameters:
2013
     - beginIndex
2014
     - totalItems
2015
     - brand
2016
     - category
2017
    """
2018
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2019
    return self.recv_getBestDealsCatalogIds()
2020
 
2021
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2022
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2023
    args = getBestDealsCatalogIds_args()
2024
    args.beginIndex = beginIndex
2025
    args.totalItems = totalItems
2026
    args.brand = brand
2027
    args.category = category
2028
    args.write(self._oprot)
2029
    self._oprot.writeMessageEnd()
2030
    self._oprot.trans.flush()
2031
 
2032
  def recv_getBestDealsCatalogIds(self, ):
2033
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2034
    if mtype == TMessageType.EXCEPTION:
2035
      x = TApplicationException()
2036
      x.read(self._iprot)
2037
      self._iprot.readMessageEnd()
2038
      raise x
2039
    result = getBestDealsCatalogIds_result()
2040
    result.read(self._iprot)
2041
    self._iprot.readMessageEnd()
2042
    if result.success is not None:
2043
      return result.success
2044
    if result.cex is not None:
2045
      raise result.cex
2046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2047
 
2048
  def getBestDealsCount(self, ):
2049
    self.send_getBestDealsCount()
2050
    return self.recv_getBestDealsCount()
2051
 
2052
  def send_getBestDealsCount(self, ):
2053
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2054
    args = getBestDealsCount_args()
2055
    args.write(self._oprot)
2056
    self._oprot.writeMessageEnd()
2057
    self._oprot.trans.flush()
2058
 
2059
  def recv_getBestDealsCount(self, ):
2060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2061
    if mtype == TMessageType.EXCEPTION:
2062
      x = TApplicationException()
2063
      x.read(self._iprot)
2064
      self._iprot.readMessageEnd()
2065
      raise x
2066
    result = getBestDealsCount_result()
2067
    result.read(self._iprot)
2068
    self._iprot.readMessageEnd()
2069
    if result.success is not None:
2070
      return result.success
2071
    if result.cex is not None:
2072
      raise result.cex
2073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2074
 
2075
  def getComingSoon(self, ):
2076
    self.send_getComingSoon()
2077
    return self.recv_getComingSoon()
2078
 
2079
  def send_getComingSoon(self, ):
2080
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2081
    args = getComingSoon_args()
2082
    args.write(self._oprot)
2083
    self._oprot.writeMessageEnd()
2084
    self._oprot.trans.flush()
2085
 
2086
  def recv_getComingSoon(self, ):
2087
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2088
    if mtype == TMessageType.EXCEPTION:
2089
      x = TApplicationException()
2090
      x.read(self._iprot)
2091
      self._iprot.readMessageEnd()
2092
      raise x
2093
    result = getComingSoon_result()
2094
    result.read(self._iprot)
2095
    self._iprot.readMessageEnd()
2096
    if result.success is not None:
2097
      return result.success
2098
    if result.isex is not None:
2099
      raise result.isex
2100
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2101
 
2102
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2103
    """
2104
    Parameters:
2105
     - beginIndex
2106
     - totalItems
2107
     - brand
2108
     - category
2109
    """
2110
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2111
    return self.recv_getComingSoonCatalogIds()
2112
 
2113
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2114
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2115
    args = getComingSoonCatalogIds_args()
2116
    args.beginIndex = beginIndex
2117
    args.totalItems = totalItems
2118
    args.brand = brand
2119
    args.category = category
2120
    args.write(self._oprot)
2121
    self._oprot.writeMessageEnd()
2122
    self._oprot.trans.flush()
2123
 
2124
  def recv_getComingSoonCatalogIds(self, ):
2125
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2126
    if mtype == TMessageType.EXCEPTION:
2127
      x = TApplicationException()
2128
      x.read(self._iprot)
2129
      self._iprot.readMessageEnd()
2130
      raise x
2131
    result = getComingSoonCatalogIds_result()
2132
    result.read(self._iprot)
2133
    self._iprot.readMessageEnd()
2134
    if result.success is not None:
2135
      return result.success
2136
    if result.cex is not None:
2137
      raise result.cex
2138
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2139
 
2140
  def getComingSoonCount(self, ):
2141
    self.send_getComingSoonCount()
2142
    return self.recv_getComingSoonCount()
2143
 
2144
  def send_getComingSoonCount(self, ):
2145
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2146
    args = getComingSoonCount_args()
2147
    args.write(self._oprot)
2148
    self._oprot.writeMessageEnd()
2149
    self._oprot.trans.flush()
2150
 
2151
  def recv_getComingSoonCount(self, ):
2152
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2153
    if mtype == TMessageType.EXCEPTION:
2154
      x = TApplicationException()
2155
      x.read(self._iprot)
2156
      self._iprot.readMessageEnd()
2157
      raise x
2158
    result = getComingSoonCount_result()
2159
    result.read(self._iprot)
2160
    self._iprot.readMessageEnd()
2161
    if result.success is not None:
2162
      return result.success
2163
    if result.cex is not None:
2164
      raise result.cex
2165
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2166
 
2167
  def getLatestArrivals(self, ):
2168
    """
2169
    Returns a list of items sorted in the descending order by start date.
2170
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2171
    """
2172
    self.send_getLatestArrivals()
2173
    return self.recv_getLatestArrivals()
2174
 
2175
  def send_getLatestArrivals(self, ):
2176
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2177
    args = getLatestArrivals_args()
2178
    args.write(self._oprot)
2179
    self._oprot.writeMessageEnd()
2180
    self._oprot.trans.flush()
2181
 
2182
  def recv_getLatestArrivals(self, ):
2183
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2184
    if mtype == TMessageType.EXCEPTION:
2185
      x = TApplicationException()
2186
      x.read(self._iprot)
2187
      self._iprot.readMessageEnd()
2188
      raise x
2189
    result = getLatestArrivals_result()
2190
    result.read(self._iprot)
2191
    self._iprot.readMessageEnd()
2192
    if result.success is not None:
2193
      return result.success
2194
    if result.isex is not None:
2195
      raise result.isex
2196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2197
 
2198
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2199
    """
2200
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2201
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2202
 
2203
    Parameters:
2204
     - beginIndex
2205
     - totalItems
2206
     - brand
2207
     - categories
2208
    """
2209
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2210
    return self.recv_getLatestArrivalsCatalogIds()
2211
 
2212
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2213
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2214
    args = getLatestArrivalsCatalogIds_args()
2215
    args.beginIndex = beginIndex
2216
    args.totalItems = totalItems
2217
    args.brand = brand
2218
    args.categories = categories
2219
    args.write(self._oprot)
2220
    self._oprot.writeMessageEnd()
2221
    self._oprot.trans.flush()
2222
 
2223
  def recv_getLatestArrivalsCatalogIds(self, ):
2224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2225
    if mtype == TMessageType.EXCEPTION:
2226
      x = TApplicationException()
2227
      x.read(self._iprot)
2228
      self._iprot.readMessageEnd()
2229
      raise x
2230
    result = getLatestArrivalsCatalogIds_result()
2231
    result.read(self._iprot)
2232
    self._iprot.readMessageEnd()
2233
    if result.success is not None:
2234
      return result.success
2235
    if result.cex is not None:
2236
      raise result.cex
2237
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2238
 
2239
  def getLatestArrivalsCount(self, ):
2240
    """
2241
    Get the total number of latest arrivals we are willing to show.
2242
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2243
    """
2244
    self.send_getLatestArrivalsCount()
2245
    return self.recv_getLatestArrivalsCount()
2246
 
2247
  def send_getLatestArrivalsCount(self, ):
2248
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2249
    args = getLatestArrivalsCount_args()
2250
    args.write(self._oprot)
2251
    self._oprot.writeMessageEnd()
2252
    self._oprot.trans.flush()
2253
 
2254
  def recv_getLatestArrivalsCount(self, ):
2255
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2256
    if mtype == TMessageType.EXCEPTION:
2257
      x = TApplicationException()
2258
      x.read(self._iprot)
2259
      self._iprot.readMessageEnd()
2260
      raise x
2261
    result = getLatestArrivalsCount_result()
2262
    result.read(self._iprot)
2263
    self._iprot.readMessageEnd()
2264
    if result.success is not None:
2265
      return result.success
2266
    if result.cex is not None:
2267
      raise result.cex
2268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2269
 
2270
  def generateNewEntityID(self, ):
2271
    self.send_generateNewEntityID()
2272
    return self.recv_generateNewEntityID()
2273
 
2274
  def send_generateNewEntityID(self, ):
2275
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2276
    args = generateNewEntityID_args()
2277
    args.write(self._oprot)
2278
    self._oprot.writeMessageEnd()
2279
    self._oprot.trans.flush()
2280
 
2281
  def recv_generateNewEntityID(self, ):
2282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2283
    if mtype == TMessageType.EXCEPTION:
2284
      x = TApplicationException()
2285
      x.read(self._iprot)
2286
      self._iprot.readMessageEnd()
2287
      raise x
2288
    result = generateNewEntityID_result()
2289
    result.read(self._iprot)
2290
    self._iprot.readMessageEnd()
2291
    if result.success is not None:
2292
      return result.success
2293
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2294
 
2295
  def addCategory(self, category):
2296
    """
2297
    All category related functions
2298
 
2299
    Parameters:
2300
     - category
2301
    """
2302
    self.send_addCategory(category)
2303
    return self.recv_addCategory()
2304
 
2305
  def send_addCategory(self, category):
2306
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2307
    args = addCategory_args()
2308
    args.category = category
2309
    args.write(self._oprot)
2310
    self._oprot.writeMessageEnd()
2311
    self._oprot.trans.flush()
2312
 
2313
  def recv_addCategory(self, ):
2314
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2315
    if mtype == TMessageType.EXCEPTION:
2316
      x = TApplicationException()
2317
      x.read(self._iprot)
2318
      self._iprot.readMessageEnd()
2319
      raise x
2320
    result = addCategory_result()
2321
    result.read(self._iprot)
2322
    self._iprot.readMessageEnd()
2323
    if result.success is not None:
2324
      return result.success
2325
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2326
 
2327
  def getCategory(self, id):
2328
    """
2329
    Parameters:
2330
     - id
2331
    """
2332
    self.send_getCategory(id)
2333
    return self.recv_getCategory()
2334
 
2335
  def send_getCategory(self, id):
2336
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2337
    args = getCategory_args()
2338
    args.id = id
2339
    args.write(self._oprot)
2340
    self._oprot.writeMessageEnd()
2341
    self._oprot.trans.flush()
2342
 
2343
  def recv_getCategory(self, ):
2344
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2345
    if mtype == TMessageType.EXCEPTION:
2346
      x = TApplicationException()
2347
      x.read(self._iprot)
2348
      self._iprot.readMessageEnd()
2349
      raise x
2350
    result = getCategory_result()
2351
    result.read(self._iprot)
2352
    self._iprot.readMessageEnd()
2353
    if result.success is not None:
2354
      return result.success
2355
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2356
 
2357
  def getAllCategories(self, ):
2358
    self.send_getAllCategories()
2359
    return self.recv_getAllCategories()
2360
 
2361
  def send_getAllCategories(self, ):
2362
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2363
    args = getAllCategories_args()
2364
    args.write(self._oprot)
2365
    self._oprot.writeMessageEnd()
2366
    self._oprot.trans.flush()
2367
 
2368
  def recv_getAllCategories(self, ):
2369
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2370
    if mtype == TMessageType.EXCEPTION:
2371
      x = TApplicationException()
2372
      x.read(self._iprot)
2373
      self._iprot.readMessageEnd()
2374
      raise x
2375
    result = getAllCategories_result()
2376
    result.read(self._iprot)
2377
    self._iprot.readMessageEnd()
2378
    if result.success is not None:
2379
      return result.success
2380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2381
 
2382
  def getAllSimilarItems(self, itemId):
2383
    """
2384
    Returns the list of similar items.
2385
 
2386
    Parameters:
2387
     - itemId
2388
    """
2389
    self.send_getAllSimilarItems(itemId)
2390
    return self.recv_getAllSimilarItems()
2391
 
2392
  def send_getAllSimilarItems(self, itemId):
2393
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2394
    args = getAllSimilarItems_args()
2395
    args.itemId = itemId
2396
    args.write(self._oprot)
2397
    self._oprot.writeMessageEnd()
2398
    self._oprot.trans.flush()
2399
 
2400
  def recv_getAllSimilarItems(self, ):
2401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2402
    if mtype == TMessageType.EXCEPTION:
2403
      x = TApplicationException()
2404
      x.read(self._iprot)
2405
      self._iprot.readMessageEnd()
2406
      raise x
2407
    result = getAllSimilarItems_result()
2408
    result.read(self._iprot)
2409
    self._iprot.readMessageEnd()
2410
    if result.success is not None:
2411
      return result.success
2412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2413
 
2414
  def addSimilarItem(self, itemId, catalogItemId):
2415
    """
2416
    Adds similar item.
2417
 
2418
    Parameters:
2419
     - itemId
2420
     - catalogItemId
2421
    """
2422
    self.send_addSimilarItem(itemId, catalogItemId)
2423
    return self.recv_addSimilarItem()
2424
 
2425
  def send_addSimilarItem(self, itemId, catalogItemId):
2426
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2427
    args = addSimilarItem_args()
2428
    args.itemId = itemId
2429
    args.catalogItemId = catalogItemId
2430
    args.write(self._oprot)
2431
    self._oprot.writeMessageEnd()
2432
    self._oprot.trans.flush()
2433
 
2434
  def recv_addSimilarItem(self, ):
2435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2436
    if mtype == TMessageType.EXCEPTION:
2437
      x = TApplicationException()
2438
      x.read(self._iprot)
2439
      self._iprot.readMessageEnd()
2440
      raise x
2441
    result = addSimilarItem_result()
2442
    result.read(self._iprot)
2443
    self._iprot.readMessageEnd()
2444
    if result.success is not None:
2445
      return result.success
2446
    if result.cex is not None:
2447
      raise result.cex
2448
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2449
 
6512 kshitij.so 2450
  def addTag(self, displayName, itemId):
2451
    """
2452
    Tag Related
2453
 
2454
    Parameters:
2455
     - displayName
2456
     - itemId
2457
    """
2458
    self.send_addTag(displayName, itemId)
2459
    return self.recv_addTag()
2460
 
2461
  def send_addTag(self, displayName, itemId):
2462
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2463
    args = addTag_args()
2464
    args.displayName = displayName
2465
    args.itemId = itemId
2466
    args.write(self._oprot)
2467
    self._oprot.writeMessageEnd()
2468
    self._oprot.trans.flush()
2469
 
2470
  def recv_addTag(self, ):
2471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2472
    if mtype == TMessageType.EXCEPTION:
2473
      x = TApplicationException()
2474
      x.read(self._iprot)
2475
      self._iprot.readMessageEnd()
2476
      raise x
2477
    result = addTag_result()
2478
    result.read(self._iprot)
2479
    self._iprot.readMessageEnd()
2480
    if result.success is not None:
2481
      return result.success
2482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2483
 
2484
  def deleteEntityTag(self, displayName, itemId):
2485
    """
2486
    Parameters:
2487
     - displayName
2488
     - itemId
2489
    """
2490
    self.send_deleteEntityTag(displayName, itemId)
2491
    return self.recv_deleteEntityTag()
2492
 
2493
  def send_deleteEntityTag(self, displayName, itemId):
2494
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2495
    args = deleteEntityTag_args()
2496
    args.displayName = displayName
2497
    args.itemId = itemId
2498
    args.write(self._oprot)
2499
    self._oprot.writeMessageEnd()
2500
    self._oprot.trans.flush()
2501
 
2502
  def recv_deleteEntityTag(self, ):
2503
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2504
    if mtype == TMessageType.EXCEPTION:
2505
      x = TApplicationException()
2506
      x.read(self._iprot)
2507
      self._iprot.readMessageEnd()
2508
      raise x
2509
    result = deleteEntityTag_result()
2510
    result.read(self._iprot)
2511
    self._iprot.readMessageEnd()
2512
    if result.success is not None:
2513
      return result.success
2514
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2515
 
2516
  def deleteTag(self, displayName):
2517
    """
2518
    Parameters:
2519
     - displayName
2520
    """
2521
    self.send_deleteTag(displayName)
2522
    return self.recv_deleteTag()
2523
 
2524
  def send_deleteTag(self, displayName):
2525
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2526
    args = deleteTag_args()
2527
    args.displayName = displayName
2528
    args.write(self._oprot)
2529
    self._oprot.writeMessageEnd()
2530
    self._oprot.trans.flush()
2531
 
2532
  def recv_deleteTag(self, ):
2533
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2534
    if mtype == TMessageType.EXCEPTION:
2535
      x = TApplicationException()
2536
      x.read(self._iprot)
2537
      self._iprot.readMessageEnd()
2538
      raise x
2539
    result = deleteTag_result()
2540
    result.read(self._iprot)
2541
    self._iprot.readMessageEnd()
2542
    if result.success is not None:
2543
      return result.success
2544
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2545
 
2546
  def getAllTags(self, ):
2547
    self.send_getAllTags()
2548
    return self.recv_getAllTags()
2549
 
2550
  def send_getAllTags(self, ):
2551
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2552
    args = getAllTags_args()
2553
    args.write(self._oprot)
2554
    self._oprot.writeMessageEnd()
2555
    self._oprot.trans.flush()
2556
 
2557
  def recv_getAllTags(self, ):
2558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2559
    if mtype == TMessageType.EXCEPTION:
2560
      x = TApplicationException()
2561
      x.read(self._iprot)
2562
      self._iprot.readMessageEnd()
2563
      raise x
2564
    result = getAllTags_result()
2565
    result.read(self._iprot)
2566
    self._iprot.readMessageEnd()
2567
    if result.success is not None:
2568
      return result.success
2569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2570
 
2571
  def getAllEntitiesByTagName(self, displayName):
2572
    """
2573
    Parameters:
2574
     - displayName
2575
    """
2576
    self.send_getAllEntitiesByTagName(displayName)
2577
    return self.recv_getAllEntitiesByTagName()
2578
 
2579
  def send_getAllEntitiesByTagName(self, displayName):
2580
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2581
    args = getAllEntitiesByTagName_args()
2582
    args.displayName = displayName
2583
    args.write(self._oprot)
2584
    self._oprot.writeMessageEnd()
2585
    self._oprot.trans.flush()
2586
 
2587
  def recv_getAllEntitiesByTagName(self, ):
2588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2589
    if mtype == TMessageType.EXCEPTION:
2590
      x = TApplicationException()
2591
      x.read(self._iprot)
2592
      self._iprot.readMessageEnd()
2593
      raise x
2594
    result = getAllEntitiesByTagName_result()
2595
    result.read(self._iprot)
2596
    self._iprot.readMessageEnd()
2597
    if result.success is not None:
2598
      return result.success
2599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2600
 
6845 amit.gupta 2601
  def getAllEntityTags(self, ):
2602
    self.send_getAllEntityTags()
2603
    return self.recv_getAllEntityTags()
2604
 
2605
  def send_getAllEntityTags(self, ):
2606
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2607
    args = getAllEntityTags_args()
2608
    args.write(self._oprot)
2609
    self._oprot.writeMessageEnd()
2610
    self._oprot.trans.flush()
2611
 
2612
  def recv_getAllEntityTags(self, ):
2613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2614
    if mtype == TMessageType.EXCEPTION:
2615
      x = TApplicationException()
2616
      x.read(self._iprot)
2617
      self._iprot.readMessageEnd()
2618
      raise x
2619
    result = getAllEntityTags_result()
2620
    result.read(self._iprot)
2621
    self._iprot.readMessageEnd()
2622
    if result.success is not None:
2623
      return result.success
2624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2625
 
8590 kshitij.so 2626
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2627
    """
8579 kshitij.so 2628
    Banner Related
2629
 
6850 kshitij.so 2630
    Parameters:
8590 kshitij.so 2631
     - bannerCongregate
6850 kshitij.so 2632
    """
8590 kshitij.so 2633
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2634
    return self.recv_addBanner()
6850 kshitij.so 2635
 
8590 kshitij.so 2636
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2637
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2638
    args = addBanner_args()
8590 kshitij.so 2639
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2640
    args.write(self._oprot)
2641
    self._oprot.writeMessageEnd()
2642
    self._oprot.trans.flush()
2643
 
2644
  def recv_addBanner(self, ):
2645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2646
    if mtype == TMessageType.EXCEPTION:
2647
      x = TApplicationException()
2648
      x.read(self._iprot)
2649
      self._iprot.readMessageEnd()
2650
      raise x
2651
    result = addBanner_result()
2652
    result.read(self._iprot)
2653
    self._iprot.readMessageEnd()
10097 kshitij.so 2654
    if result.success is not None:
2655
      return result.success
2656
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2657
 
8579 kshitij.so 2658
  def updateBanner(self, banner):
2659
    """
2660
    Parameters:
2661
     - banner
2662
    """
2663
    self.send_updateBanner(banner)
2664
    return self.recv_updateBanner()
2665
 
2666
  def send_updateBanner(self, banner):
2667
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2668
    args = updateBanner_args()
2669
    args.banner = banner
2670
    args.write(self._oprot)
2671
    self._oprot.writeMessageEnd()
2672
    self._oprot.trans.flush()
2673
 
2674
  def recv_updateBanner(self, ):
2675
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2676
    if mtype == TMessageType.EXCEPTION:
2677
      x = TApplicationException()
2678
      x.read(self._iprot)
2679
      self._iprot.readMessageEnd()
2680
      raise x
2681
    result = updateBanner_result()
2682
    result.read(self._iprot)
2683
    self._iprot.readMessageEnd()
2684
    if result.success is not None:
2685
      return result.success
2686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2687
 
6850 kshitij.so 2688
  def getAllBanners(self, ):
2689
    self.send_getAllBanners()
2690
    return self.recv_getAllBanners()
2691
 
2692
  def send_getAllBanners(self, ):
2693
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2694
    args = getAllBanners_args()
2695
    args.write(self._oprot)
2696
    self._oprot.writeMessageEnd()
2697
    self._oprot.trans.flush()
2698
 
2699
  def recv_getAllBanners(self, ):
2700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2701
    if mtype == TMessageType.EXCEPTION:
2702
      x = TApplicationException()
2703
      x.read(self._iprot)
2704
      self._iprot.readMessageEnd()
2705
      raise x
2706
    result = getAllBanners_result()
2707
    result.read(self._iprot)
2708
    self._iprot.readMessageEnd()
2709
    if result.success is not None:
2710
      return result.success
2711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2712
 
9155 kshitij.so 2713
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2714
    """
2715
    Parameters:
2716
     - bannerName
9155 kshitij.so 2717
     - bannerType
6850 kshitij.so 2718
    """
9155 kshitij.so 2719
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2720
    return self.recv_deleteBanner()
2721
 
9155 kshitij.so 2722
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2723
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2724
    args = deleteBanner_args()
2725
    args.bannerName = bannerName
9155 kshitij.so 2726
    args.bannerType = bannerType
6850 kshitij.so 2727
    args.write(self._oprot)
2728
    self._oprot.writeMessageEnd()
2729
    self._oprot.trans.flush()
2730
 
2731
  def recv_deleteBanner(self, ):
2732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2733
    if mtype == TMessageType.EXCEPTION:
2734
      x = TApplicationException()
2735
      x.read(self._iprot)
2736
      self._iprot.readMessageEnd()
2737
      raise x
2738
    result = deleteBanner_result()
2739
    result.read(self._iprot)
2740
    self._iprot.readMessageEnd()
2741
    if result.success is not None:
2742
      return result.success
2743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2744
 
9155 kshitij.so 2745
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2746
    """
2747
    Parameters:
2748
     - bannerName
9155 kshitij.so 2749
     - bannerType
6850 kshitij.so 2750
    """
9155 kshitij.so 2751
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2752
    return self.recv_getBannerDetails()
2753
 
9155 kshitij.so 2754
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2755
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2756
    args = getBannerDetails_args()
2757
    args.bannerName = bannerName
9155 kshitij.so 2758
    args.bannerType = bannerType
6850 kshitij.so 2759
    args.write(self._oprot)
2760
    self._oprot.writeMessageEnd()
2761
    self._oprot.trans.flush()
2762
 
2763
  def recv_getBannerDetails(self, ):
2764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2765
    if mtype == TMessageType.EXCEPTION:
2766
      x = TApplicationException()
2767
      x.read(self._iprot)
2768
      self._iprot.readMessageEnd()
2769
      raise x
2770
    result = getBannerDetails_result()
2771
    result.read(self._iprot)
2772
    self._iprot.readMessageEnd()
2773
    if result.success is not None:
2774
      return result.success
2775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2776
 
2777
  def getActiveBanners(self, ):
2778
    self.send_getActiveBanners()
2779
    return self.recv_getActiveBanners()
2780
 
2781
  def send_getActiveBanners(self, ):
2782
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2783
    args = getActiveBanners_args()
2784
    args.write(self._oprot)
2785
    self._oprot.writeMessageEnd()
2786
    self._oprot.trans.flush()
2787
 
2788
  def recv_getActiveBanners(self, ):
2789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2790
    if mtype == TMessageType.EXCEPTION:
2791
      x = TApplicationException()
2792
      x.read(self._iprot)
2793
      self._iprot.readMessageEnd()
2794
      raise x
2795
    result = getActiveBanners_result()
2796
    result.read(self._iprot)
2797
    self._iprot.readMessageEnd()
2798
    if result.success is not None:
2799
      return result.success
2800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2801
 
8579 kshitij.so 2802
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2803
    """
2804
    Parameters:
8579 kshitij.so 2805
     - bannerMaps
6849 kshitij.so 2806
    """
8579 kshitij.so 2807
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2808
    return self.recv_addBannerMap()
2809
 
8579 kshitij.so 2810
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2811
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2812
    args = addBannerMap_args()
8579 kshitij.so 2813
    args.bannerMaps = bannerMaps
6849 kshitij.so 2814
    args.write(self._oprot)
2815
    self._oprot.writeMessageEnd()
2816
    self._oprot.trans.flush()
2817
 
2818
  def recv_addBannerMap(self, ):
2819
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2820
    if mtype == TMessageType.EXCEPTION:
2821
      x = TApplicationException()
2822
      x.read(self._iprot)
2823
      self._iprot.readMessageEnd()
2824
      raise x
2825
    result = addBannerMap_result()
2826
    result.read(self._iprot)
2827
    self._iprot.readMessageEnd()
2828
    if result.success is not None:
2829
      return result.success
2830
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2831
 
8579 kshitij.so 2832
  def updateBannerMap(self, bannerMap):
2833
    """
2834
    Parameters:
2835
     - bannerMap
2836
    """
2837
    self.send_updateBannerMap(bannerMap)
2838
    return self.recv_updateBannerMap()
2839
 
2840
  def send_updateBannerMap(self, bannerMap):
2841
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2842
    args = updateBannerMap_args()
2843
    args.bannerMap = bannerMap
2844
    args.write(self._oprot)
2845
    self._oprot.writeMessageEnd()
2846
    self._oprot.trans.flush()
2847
 
2848
  def recv_updateBannerMap(self, ):
2849
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2850
    if mtype == TMessageType.EXCEPTION:
2851
      x = TApplicationException()
2852
      x.read(self._iprot)
2853
      self._iprot.readMessageEnd()
2854
      raise x
2855
    result = updateBannerMap_result()
2856
    result.read(self._iprot)
2857
    self._iprot.readMessageEnd()
2858
    if result.success is not None:
2859
      return result.success
2860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2861
 
6849 kshitij.so 2862
  def deleteBannerMap(self, bannerName):
2863
    """
2864
    Parameters:
2865
     - bannerName
2866
    """
2867
    self.send_deleteBannerMap(bannerName)
2868
    return self.recv_deleteBannerMap()
2869
 
2870
  def send_deleteBannerMap(self, bannerName):
2871
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2872
    args = deleteBannerMap_args()
2873
    args.bannerName = bannerName
2874
    args.write(self._oprot)
2875
    self._oprot.writeMessageEnd()
2876
    self._oprot.trans.flush()
2877
 
2878
  def recv_deleteBannerMap(self, ):
2879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2880
    if mtype == TMessageType.EXCEPTION:
2881
      x = TApplicationException()
2882
      x.read(self._iprot)
2883
      self._iprot.readMessageEnd()
2884
      raise x
2885
    result = deleteBannerMap_result()
2886
    result.read(self._iprot)
2887
    self._iprot.readMessageEnd()
2888
    if result.success is not None:
2889
      return result.success
2890
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2891
 
9155 kshitij.so 2892
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2893
    """
2894
    Parameters:
2895
     - bannerName
9155 kshitij.so 2896
     - bannerType
6849 kshitij.so 2897
    """
9155 kshitij.so 2898
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2899
    return self.recv_getBannerMapDetails()
2900
 
9155 kshitij.so 2901
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2902
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2903
    args = getBannerMapDetails_args()
2904
    args.bannerName = bannerName
9155 kshitij.so 2905
    args.bannerType = bannerType
6849 kshitij.so 2906
    args.write(self._oprot)
2907
    self._oprot.writeMessageEnd()
2908
    self._oprot.trans.flush()
2909
 
2910
  def recv_getBannerMapDetails(self, ):
2911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2912
    if mtype == TMessageType.EXCEPTION:
2913
      x = TApplicationException()
2914
      x.read(self._iprot)
2915
      self._iprot.readMessageEnd()
2916
      raise x
2917
    result = getBannerMapDetails_result()
2918
    result.read(self._iprot)
2919
    self._iprot.readMessageEnd()
2920
    if result.success is not None:
2921
      return result.success
2922
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2923
 
8579 kshitij.so 2924
  def addBannerUri(self, bannerUriMappings):
2925
    """
2926
    Parameters:
2927
     - bannerUriMappings
2928
    """
2929
    self.send_addBannerUri(bannerUriMappings)
2930
    self.recv_addBannerUri()
2931
 
2932
  def send_addBannerUri(self, bannerUriMappings):
2933
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2934
    args = addBannerUri_args()
2935
    args.bannerUriMappings = bannerUriMappings
2936
    args.write(self._oprot)
2937
    self._oprot.writeMessageEnd()
2938
    self._oprot.trans.flush()
2939
 
2940
  def recv_addBannerUri(self, ):
2941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2942
    if mtype == TMessageType.EXCEPTION:
2943
      x = TApplicationException()
2944
      x.read(self._iprot)
2945
      self._iprot.readMessageEnd()
2946
      raise x
2947
    result = addBannerUri_result()
2948
    result.read(self._iprot)
2949
    self._iprot.readMessageEnd()
2950
    return
2951
 
9155 kshitij.so 2952
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2953
    """
2954
    Parameters:
2955
     - bannerName
9155 kshitij.so 2956
     - bannerType
8579 kshitij.so 2957
    """
9155 kshitij.so 2958
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2959
    return self.recv_getUriMapping()
2960
 
9155 kshitij.so 2961
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2962
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2963
    args = getUriMapping_args()
2964
    args.bannerName = bannerName
9155 kshitij.so 2965
    args.bannerType = bannerType
8579 kshitij.so 2966
    args.write(self._oprot)
2967
    self._oprot.writeMessageEnd()
2968
    self._oprot.trans.flush()
2969
 
2970
  def recv_getUriMapping(self, ):
2971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2972
    if mtype == TMessageType.EXCEPTION:
2973
      x = TApplicationException()
2974
      x.read(self._iprot)
2975
      self._iprot.readMessageEnd()
2976
      raise x
2977
    result = getUriMapping_result()
2978
    result.read(self._iprot)
2979
    self._iprot.readMessageEnd()
2980
    if result.success is not None:
2981
      return result.success
2982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2983
 
2984
  def addCampaign(self, campaign):
2985
    """
2986
    Parameters:
2987
     - campaign
2988
    """
2989
    self.send_addCampaign(campaign)
2990
    self.recv_addCampaign()
2991
 
2992
  def send_addCampaign(self, campaign):
2993
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2994
    args = addCampaign_args()
2995
    args.campaign = campaign
2996
    args.write(self._oprot)
2997
    self._oprot.writeMessageEnd()
2998
    self._oprot.trans.flush()
2999
 
3000
  def recv_addCampaign(self, ):
3001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3002
    if mtype == TMessageType.EXCEPTION:
3003
      x = TApplicationException()
3004
      x.read(self._iprot)
3005
      self._iprot.readMessageEnd()
3006
      raise x
3007
    result = addCampaign_result()
3008
    result.read(self._iprot)
3009
    self._iprot.readMessageEnd()
3010
    return
3011
 
3012
  def getCampaigns(self, campaignName):
3013
    """
3014
    Parameters:
3015
     - campaignName
3016
    """
3017
    self.send_getCampaigns(campaignName)
3018
    return self.recv_getCampaigns()
3019
 
3020
  def send_getCampaigns(self, campaignName):
3021
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3022
    args = getCampaigns_args()
3023
    args.campaignName = campaignName
3024
    args.write(self._oprot)
3025
    self._oprot.writeMessageEnd()
3026
    self._oprot.trans.flush()
3027
 
3028
  def recv_getCampaigns(self, ):
3029
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3030
    if mtype == TMessageType.EXCEPTION:
3031
      x = TApplicationException()
3032
      x.read(self._iprot)
3033
      self._iprot.readMessageEnd()
3034
      raise x
3035
    result = getCampaigns_result()
3036
    result.read(self._iprot)
3037
    self._iprot.readMessageEnd()
3038
    if result.success is not None:
3039
      return result.success
3040
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3041
 
3042
  def deleteCampaign(self, campaignId):
3043
    """
3044
    Parameters:
3045
     - campaignId
3046
    """
3047
    self.send_deleteCampaign(campaignId)
3048
    self.recv_deleteCampaign()
3049
 
3050
  def send_deleteCampaign(self, campaignId):
3051
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3052
    args = deleteCampaign_args()
3053
    args.campaignId = campaignId
3054
    args.write(self._oprot)
3055
    self._oprot.writeMessageEnd()
3056
    self._oprot.trans.flush()
3057
 
3058
  def recv_deleteCampaign(self, ):
3059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3060
    if mtype == TMessageType.EXCEPTION:
3061
      x = TApplicationException()
3062
      x.read(self._iprot)
3063
      self._iprot.readMessageEnd()
3064
      raise x
3065
    result = deleteCampaign_result()
3066
    result.read(self._iprot)
3067
    self._iprot.readMessageEnd()
3068
    return
3069
 
3070
  def getAllCampaigns(self, ):
3071
    self.send_getAllCampaigns()
3072
    return self.recv_getAllCampaigns()
3073
 
3074
  def send_getAllCampaigns(self, ):
3075
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3076
    args = getAllCampaigns_args()
3077
    args.write(self._oprot)
3078
    self._oprot.writeMessageEnd()
3079
    self._oprot.trans.flush()
3080
 
3081
  def recv_getAllCampaigns(self, ):
3082
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3083
    if mtype == TMessageType.EXCEPTION:
3084
      x = TApplicationException()
3085
      x.read(self._iprot)
3086
      self._iprot.readMessageEnd()
3087
      raise x
3088
    result = getAllCampaigns_result()
3089
    result.read(self._iprot)
3090
    self._iprot.readMessageEnd()
3091
    if result.success is not None:
3092
      return result.success
3093
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3094
 
9155 kshitij.so 3095
  def getActiveBannersForMobileSite(self, ):
3096
    self.send_getActiveBannersForMobileSite()
3097
    return self.recv_getActiveBannersForMobileSite()
3098
 
3099
  def send_getActiveBannersForMobileSite(self, ):
3100
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3101
    args = getActiveBannersForMobileSite_args()
3102
    args.write(self._oprot)
3103
    self._oprot.writeMessageEnd()
3104
    self._oprot.trans.flush()
3105
 
3106
  def recv_getActiveBannersForMobileSite(self, ):
3107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3108
    if mtype == TMessageType.EXCEPTION:
3109
      x = TApplicationException()
3110
      x.read(self._iprot)
3111
      self._iprot.readMessageEnd()
3112
      raise x
3113
    result = getActiveBannersForMobileSite_result()
3114
    result.read(self._iprot)
3115
    self._iprot.readMessageEnd()
3116
    if result.success is not None:
3117
      return result.success
3118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3119
 
5944 mandeep.dh 3120
  def deleteSimilarItem(self, itemId, catalogItemId):
3121
    """
3122
    Delete similar item.
3123
 
3124
    Parameters:
3125
     - itemId
3126
     - catalogItemId
3127
    """
3128
    self.send_deleteSimilarItem(itemId, catalogItemId)
3129
    return self.recv_deleteSimilarItem()
3130
 
3131
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3132
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3133
    args = deleteSimilarItem_args()
3134
    args.itemId = itemId
3135
    args.catalogItemId = catalogItemId
3136
    args.write(self._oprot)
3137
    self._oprot.writeMessageEnd()
3138
    self._oprot.trans.flush()
3139
 
3140
  def recv_deleteSimilarItem(self, ):
3141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3142
    if mtype == TMessageType.EXCEPTION:
3143
      x = TApplicationException()
3144
      x.read(self._iprot)
3145
      self._iprot.readMessageEnd()
3146
      raise x
3147
    result = deleteSimilarItem_result()
3148
    result.read(self._iprot)
3149
    self._iprot.readMessageEnd()
3150
    if result.success is not None:
3151
      return result.success
3152
    if result.cex is not None:
3153
      raise result.cex
3154
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3155
 
3156
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3157
    """
3158
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3159
    If yes, returns the itemId else returns 0
3160
 
3161
    Parameters:
3162
     - brand
3163
     - modelNumber
3164
     - modelName
3165
     - color
3166
    """
3167
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3168
    return self.recv_checkSimilarItem()
3169
 
3170
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3171
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3172
    args = checkSimilarItem_args()
3173
    args.brand = brand
3174
    args.modelNumber = modelNumber
3175
    args.modelName = modelName
3176
    args.color = color
3177
    args.write(self._oprot)
3178
    self._oprot.writeMessageEnd()
3179
    self._oprot.trans.flush()
3180
 
3181
  def recv_checkSimilarItem(self, ):
3182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3183
    if mtype == TMessageType.EXCEPTION:
3184
      x = TApplicationException()
3185
      x.read(self._iprot)
3186
      self._iprot.readMessageEnd()
3187
      raise x
3188
    result = checkSimilarItem_result()
3189
    result.read(self._iprot)
3190
    self._iprot.readMessageEnd()
3191
    if result.success is not None:
3192
      return result.success
3193
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3194
 
3195
  def validateRiskyStatus(self, itemId):
3196
    """
3197
    Check wether item is risky and change status if inventory is not available for risky items
3198
 
3199
    Parameters:
3200
     - itemId
3201
    """
3202
    self.send_validateRiskyStatus(itemId)
3203
    self.recv_validateRiskyStatus()
3204
 
3205
  def send_validateRiskyStatus(self, itemId):
3206
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3207
    args = validateRiskyStatus_args()
3208
    args.itemId = itemId
3209
    args.write(self._oprot)
3210
    self._oprot.writeMessageEnd()
3211
    self._oprot.trans.flush()
3212
 
3213
  def recv_validateRiskyStatus(self, ):
3214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3215
    if mtype == TMessageType.EXCEPTION:
3216
      x = TApplicationException()
3217
      x.read(self._iprot)
3218
      self._iprot.readMessageEnd()
3219
      raise x
3220
    result = validateRiskyStatus_result()
3221
    result.read(self._iprot)
3222
    self._iprot.readMessageEnd()
3223
    return
3224
 
3225
  def changeItemRiskyFlag(self, itemId, risky):
3226
    """
3227
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3228
 
3229
    Parameters:
3230
     - itemId
3231
     - risky
3232
    """
3233
    self.send_changeItemRiskyFlag(itemId, risky)
3234
    self.recv_changeItemRiskyFlag()
3235
 
3236
  def send_changeItemRiskyFlag(self, itemId, risky):
3237
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3238
    args = changeItemRiskyFlag_args()
3239
    args.itemId = itemId
3240
    args.risky = risky
3241
    args.write(self._oprot)
3242
    self._oprot.writeMessageEnd()
3243
    self._oprot.trans.flush()
3244
 
3245
  def recv_changeItemRiskyFlag(self, ):
3246
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3247
    if mtype == TMessageType.EXCEPTION:
3248
      x = TApplicationException()
3249
      x.read(self._iprot)
3250
      self._iprot.readMessageEnd()
3251
      raise x
3252
    result = changeItemRiskyFlag_result()
3253
    result.read(self._iprot)
3254
    self._iprot.readMessageEnd()
3255
    return
3256
 
3257
  def getItemsByRiskyFlag(self, ):
3258
    """
3259
    Returns list of items marked as risky.
3260
    """
3261
    self.send_getItemsByRiskyFlag()
3262
    return self.recv_getItemsByRiskyFlag()
3263
 
3264
  def send_getItemsByRiskyFlag(self, ):
3265
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3266
    args = getItemsByRiskyFlag_args()
3267
    args.write(self._oprot)
3268
    self._oprot.writeMessageEnd()
3269
    self._oprot.trans.flush()
3270
 
3271
  def recv_getItemsByRiskyFlag(self, ):
3272
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3273
    if mtype == TMessageType.EXCEPTION:
3274
      x = TApplicationException()
3275
      x.read(self._iprot)
3276
      self._iprot.readMessageEnd()
3277
      raise x
3278
    result = getItemsByRiskyFlag_result()
3279
    result.read(self._iprot)
3280
    self._iprot.readMessageEnd()
3281
    if result.success is not None:
3282
      return result.success
3283
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3284
 
3285
  def getItemsForMasterSheet(self, category, brand):
3286
    """
3287
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3288
 
3289
    Parameters:
3290
     - category
3291
     - brand
3292
    """
3293
    self.send_getItemsForMasterSheet(category, brand)
3294
    return self.recv_getItemsForMasterSheet()
3295
 
3296
  def send_getItemsForMasterSheet(self, category, brand):
3297
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3298
    args = getItemsForMasterSheet_args()
3299
    args.category = category
3300
    args.brand = brand
3301
    args.write(self._oprot)
3302
    self._oprot.writeMessageEnd()
3303
    self._oprot.trans.flush()
3304
 
3305
  def recv_getItemsForMasterSheet(self, ):
3306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3307
    if mtype == TMessageType.EXCEPTION:
3308
      x = TApplicationException()
3309
      x.read(self._iprot)
3310
      self._iprot.readMessageEnd()
3311
      raise x
3312
    result = getItemsForMasterSheet_result()
3313
    result.read(self._iprot)
3314
    self._iprot.readMessageEnd()
3315
    if result.success is not None:
3316
      return result.success
3317
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3318
 
3319
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3320
    """
3321
    Returns list of catalog ids of items with same similarity index as of the given itemId
3322
 
3323
    Parameters:
3324
     - beginIndex
3325
     - totalItems
3326
     - itemId
3327
    """
3328
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3329
    return self.recv_getSimilarItemsCatalogIds()
3330
 
3331
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3332
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3333
    args = getSimilarItemsCatalogIds_args()
3334
    args.beginIndex = beginIndex
3335
    args.totalItems = totalItems
3336
    args.itemId = itemId
3337
    args.write(self._oprot)
3338
    self._oprot.writeMessageEnd()
3339
    self._oprot.trans.flush()
3340
 
3341
  def recv_getSimilarItemsCatalogIds(self, ):
3342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3343
    if mtype == TMessageType.EXCEPTION:
3344
      x = TApplicationException()
3345
      x.read(self._iprot)
3346
      self._iprot.readMessageEnd()
3347
      raise x
3348
    result = getSimilarItemsCatalogIds_result()
3349
    result.read(self._iprot)
3350
    self._iprot.readMessageEnd()
3351
    if result.success is not None:
3352
      return result.success
3353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3354
 
3355
  def addProductNotification(self, itemId, email):
3356
    """
3357
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3358
 
3359
    Parameters:
3360
     - itemId
3361
     - email
3362
    """
3363
    self.send_addProductNotification(itemId, email)
3364
    return self.recv_addProductNotification()
3365
 
3366
  def send_addProductNotification(self, itemId, email):
3367
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3368
    args = addProductNotification_args()
3369
    args.itemId = itemId
3370
    args.email = email
3371
    args.write(self._oprot)
3372
    self._oprot.writeMessageEnd()
3373
    self._oprot.trans.flush()
3374
 
3375
  def recv_addProductNotification(self, ):
3376
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3377
    if mtype == TMessageType.EXCEPTION:
3378
      x = TApplicationException()
3379
      x.read(self._iprot)
3380
      self._iprot.readMessageEnd()
3381
      raise x
3382
    result = addProductNotification_result()
3383
    result.read(self._iprot)
3384
    self._iprot.readMessageEnd()
3385
    if result.success is not None:
3386
      return result.success
3387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3388
 
3389
  def sendProductNotifications(self, ):
3390
    """
3391
    Send the product notifications to the users for items which has stock.
3392
    """
3393
    self.send_sendProductNotifications()
3394
    return self.recv_sendProductNotifications()
3395
 
3396
  def send_sendProductNotifications(self, ):
3397
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3398
    args = sendProductNotifications_args()
3399
    args.write(self._oprot)
3400
    self._oprot.writeMessageEnd()
3401
    self._oprot.trans.flush()
3402
 
3403
  def recv_sendProductNotifications(self, ):
3404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3405
    if mtype == TMessageType.EXCEPTION:
3406
      x = TApplicationException()
3407
      x.read(self._iprot)
3408
      self._iprot.readMessageEnd()
3409
      raise x
3410
    result = sendProductNotifications_result()
3411
    result.read(self._iprot)
3412
    self._iprot.readMessageEnd()
3413
    if result.success is not None:
3414
      return result.success
3415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3416
 
3417
  def getAllBrandsByCategory(self, categoryId):
3418
    """
3419
    Returns list of brand names for a given category Id
3420
 
3421
    Parameters:
3422
     - categoryId
3423
    """
3424
    self.send_getAllBrandsByCategory(categoryId)
3425
    return self.recv_getAllBrandsByCategory()
3426
 
3427
  def send_getAllBrandsByCategory(self, categoryId):
3428
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3429
    args = getAllBrandsByCategory_args()
3430
    args.categoryId = categoryId
3431
    args.write(self._oprot)
3432
    self._oprot.writeMessageEnd()
3433
    self._oprot.trans.flush()
3434
 
3435
  def recv_getAllBrandsByCategory(self, ):
3436
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3437
    if mtype == TMessageType.EXCEPTION:
3438
      x = TApplicationException()
3439
      x.read(self._iprot)
3440
      self._iprot.readMessageEnd()
3441
      raise x
3442
    result = getAllBrandsByCategory_result()
3443
    result.read(self._iprot)
3444
    self._iprot.readMessageEnd()
3445
    if result.success is not None:
3446
      return result.success
3447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3448
 
3449
  def getAllBrands(self, ):
3450
    """
3451
    Returns list of brand names
3452
    """
3453
    self.send_getAllBrands()
3454
    return self.recv_getAllBrands()
3455
 
3456
  def send_getAllBrands(self, ):
3457
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3458
    args = getAllBrands_args()
3459
    args.write(self._oprot)
3460
    self._oprot.writeMessageEnd()
3461
    self._oprot.trans.flush()
3462
 
3463
  def recv_getAllBrands(self, ):
3464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3465
    if mtype == TMessageType.EXCEPTION:
3466
      x = TApplicationException()
3467
      x.read(self._iprot)
3468
      self._iprot.readMessageEnd()
3469
      raise x
3470
    result = getAllBrands_result()
3471
    result.read(self._iprot)
3472
    self._iprot.readMessageEnd()
3473
    if result.success is not None:
3474
      return result.success
3475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3476
 
3477
  def getAllSources(self, ):
3478
    """
3479
    Return list of all sources
3480
    """
3481
    self.send_getAllSources()
3482
    return self.recv_getAllSources()
3483
 
3484
  def send_getAllSources(self, ):
3485
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3486
    args = getAllSources_args()
3487
    args.write(self._oprot)
3488
    self._oprot.writeMessageEnd()
3489
    self._oprot.trans.flush()
3490
 
3491
  def recv_getAllSources(self, ):
3492
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3493
    if mtype == TMessageType.EXCEPTION:
3494
      x = TApplicationException()
3495
      x.read(self._iprot)
3496
      self._iprot.readMessageEnd()
3497
      raise x
3498
    result = getAllSources_result()
3499
    result.read(self._iprot)
3500
    self._iprot.readMessageEnd()
3501
    if result.success is not None:
3502
      return result.success
3503
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3504
 
3505
  def getItemPricingBySource(self, itemId, sourceId):
3506
    """
3507
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3508
 
3509
    Parameters:
3510
     - itemId
3511
     - sourceId
3512
    """
3513
    self.send_getItemPricingBySource(itemId, sourceId)
3514
    return self.recv_getItemPricingBySource()
3515
 
3516
  def send_getItemPricingBySource(self, itemId, sourceId):
3517
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3518
    args = getItemPricingBySource_args()
3519
    args.itemId = itemId
3520
    args.sourceId = sourceId
3521
    args.write(self._oprot)
3522
    self._oprot.writeMessageEnd()
3523
    self._oprot.trans.flush()
3524
 
3525
  def recv_getItemPricingBySource(self, ):
3526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3527
    if mtype == TMessageType.EXCEPTION:
3528
      x = TApplicationException()
3529
      x.read(self._iprot)
3530
      self._iprot.readMessageEnd()
3531
      raise x
3532
    result = getItemPricingBySource_result()
3533
    result.read(self._iprot)
3534
    self._iprot.readMessageEnd()
3535
    if result.success is not None:
3536
      return result.success
3537
    if result.cex is not None:
3538
      raise result.cex
3539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3540
 
3541
  def addSourceItemPricing(self, sourceItemPricing):
3542
    """
3543
    Adds prices to be displayed corresponding to the item if user comes from a source.
3544
    If item is not found or source is not found, it will throw exception.
3545
 
3546
    Parameters:
3547
     - sourceItemPricing
3548
    """
3549
    self.send_addSourceItemPricing(sourceItemPricing)
3550
    self.recv_addSourceItemPricing()
3551
 
3552
  def send_addSourceItemPricing(self, sourceItemPricing):
3553
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3554
    args = addSourceItemPricing_args()
3555
    args.sourceItemPricing = sourceItemPricing
3556
    args.write(self._oprot)
3557
    self._oprot.writeMessageEnd()
3558
    self._oprot.trans.flush()
3559
 
3560
  def recv_addSourceItemPricing(self, ):
3561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3562
    if mtype == TMessageType.EXCEPTION:
3563
      x = TApplicationException()
3564
      x.read(self._iprot)
3565
      self._iprot.readMessageEnd()
3566
      raise x
3567
    result = addSourceItemPricing_result()
3568
    result.read(self._iprot)
3569
    self._iprot.readMessageEnd()
3570
    if result.cex is not None:
3571
      raise result.cex
3572
    return
3573
 
3574
  def getAllSourcePricing(self, itemId):
3575
    """
3576
    Returns the list of source pricing information of an item.
3577
    Raises an exception if item not found corresponding to itemId
3578
 
3579
    Parameters:
3580
     - itemId
3581
    """
3582
    self.send_getAllSourcePricing(itemId)
3583
    return self.recv_getAllSourcePricing()
3584
 
3585
  def send_getAllSourcePricing(self, itemId):
3586
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3587
    args = getAllSourcePricing_args()
3588
    args.itemId = itemId
3589
    args.write(self._oprot)
3590
    self._oprot.writeMessageEnd()
3591
    self._oprot.trans.flush()
3592
 
3593
  def recv_getAllSourcePricing(self, ):
3594
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3595
    if mtype == TMessageType.EXCEPTION:
3596
      x = TApplicationException()
3597
      x.read(self._iprot)
3598
      self._iprot.readMessageEnd()
3599
      raise x
3600
    result = getAllSourcePricing_result()
3601
    result.read(self._iprot)
3602
    self._iprot.readMessageEnd()
3603
    if result.success is not None:
3604
      return result.success
3605
    if result.cex is not None:
3606
      raise result.cex
3607
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3608
 
3609
  def getItemForSource(self, item_id, sourceId):
3610
    """
3611
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3612
 
3613
    Parameters:
3614
     - item_id
3615
     - sourceId
3616
    """
3617
    self.send_getItemForSource(item_id, sourceId)
3618
    return self.recv_getItemForSource()
3619
 
3620
  def send_getItemForSource(self, item_id, sourceId):
3621
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3622
    args = getItemForSource_args()
3623
    args.item_id = item_id
3624
    args.sourceId = sourceId
3625
    args.write(self._oprot)
3626
    self._oprot.writeMessageEnd()
3627
    self._oprot.trans.flush()
3628
 
3629
  def recv_getItemForSource(self, ):
3630
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3631
    if mtype == TMessageType.EXCEPTION:
3632
      x = TApplicationException()
3633
      x.read(self._iprot)
3634
      self._iprot.readMessageEnd()
3635
      raise x
3636
    result = getItemForSource_result()
3637
    result.read(self._iprot)
3638
    self._iprot.readMessageEnd()
3639
    if result.success is not None:
3640
      return result.success
3641
    if result.cex is not None:
3642
      raise result.cex
3643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3644
 
3645
  def searchItemsInRange(self, searchTerms, offset, limit):
3646
    """
3647
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3648
 
3649
    Parameters:
3650
     - searchTerms
3651
     - offset
3652
     - limit
3653
    """
3654
    self.send_searchItemsInRange(searchTerms, offset, limit)
3655
    return self.recv_searchItemsInRange()
3656
 
3657
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3658
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3659
    args = searchItemsInRange_args()
3660
    args.searchTerms = searchTerms
3661
    args.offset = offset
3662
    args.limit = limit
3663
    args.write(self._oprot)
3664
    self._oprot.writeMessageEnd()
3665
    self._oprot.trans.flush()
3666
 
3667
  def recv_searchItemsInRange(self, ):
3668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3669
    if mtype == TMessageType.EXCEPTION:
3670
      x = TApplicationException()
3671
      x.read(self._iprot)
3672
      self._iprot.readMessageEnd()
3673
      raise x
3674
    result = searchItemsInRange_result()
3675
    result.read(self._iprot)
3676
    self._iprot.readMessageEnd()
3677
    if result.success is not None:
3678
      return result.success
3679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3680
 
3681
  def getSearchResultCount(self, searchTerms):
3682
    """
3683
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3684
 
3685
    Parameters:
3686
     - searchTerms
3687
    """
3688
    self.send_getSearchResultCount(searchTerms)
3689
    return self.recv_getSearchResultCount()
3690
 
3691
  def send_getSearchResultCount(self, searchTerms):
3692
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3693
    args = getSearchResultCount_args()
3694
    args.searchTerms = searchTerms
3695
    args.write(self._oprot)
3696
    self._oprot.writeMessageEnd()
3697
    self._oprot.trans.flush()
3698
 
3699
  def recv_getSearchResultCount(self, ):
3700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3701
    if mtype == TMessageType.EXCEPTION:
3702
      x = TApplicationException()
3703
      x.read(self._iprot)
3704
      self._iprot.readMessageEnd()
3705
      raise x
3706
    result = getSearchResultCount_result()
3707
    result.read(self._iprot)
3708
    self._iprot.readMessageEnd()
3709
    if result.success is not None:
3710
      return result.success
3711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3712
 
3713
  def getProductNotifications(self, startDateTime):
3714
    """
3715
    Returns a list of product notifications added after a supplied datetime
3716
 
3717
    Parameters:
3718
     - startDateTime
3719
    """
3720
    self.send_getProductNotifications(startDateTime)
3721
    return self.recv_getProductNotifications()
3722
 
3723
  def send_getProductNotifications(self, startDateTime):
3724
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3725
    args = getProductNotifications_args()
3726
    args.startDateTime = startDateTime
3727
    args.write(self._oprot)
3728
    self._oprot.writeMessageEnd()
3729
    self._oprot.trans.flush()
3730
 
3731
  def recv_getProductNotifications(self, ):
3732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3733
    if mtype == TMessageType.EXCEPTION:
3734
      x = TApplicationException()
3735
      x.read(self._iprot)
3736
      self._iprot.readMessageEnd()
3737
      raise x
3738
    result = getProductNotifications_result()
3739
    result.read(self._iprot)
3740
    self._iprot.readMessageEnd()
3741
    if result.success is not None:
3742
      return result.success
3743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3744
 
7897 amar.kumar 3745
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3746
    """
3747
    Returns a list of count of requests for product notification against each item
3748
 
3749
    Parameters:
3750
     - startDateTime
7897 amar.kumar 3751
     - categoryId
5944 mandeep.dh 3752
    """
7897 amar.kumar 3753
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3754
    return self.recv_getProductNotificationRequestCount()
3755
 
7897 amar.kumar 3756
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3757
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3758
    args = getProductNotificationRequestCount_args()
3759
    args.startDateTime = startDateTime
7897 amar.kumar 3760
    args.categoryId = categoryId
5944 mandeep.dh 3761
    args.write(self._oprot)
3762
    self._oprot.writeMessageEnd()
3763
    self._oprot.trans.flush()
3764
 
3765
  def recv_getProductNotificationRequestCount(self, ):
3766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3767
    if mtype == TMessageType.EXCEPTION:
3768
      x = TApplicationException()
3769
      x.read(self._iprot)
3770
      self._iprot.readMessageEnd()
3771
      raise x
3772
    result = getProductNotificationRequestCount_result()
3773
    result.read(self._iprot)
3774
    self._iprot.readMessageEnd()
3775
    if result.success is not None:
3776
      return result.success
3777
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3778
 
3779
  def addAuthorizationLog(self, itemId, username, reason):
3780
    """
3781
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3782
 
3783
    Parameters:
3784
     - itemId
3785
     - username
3786
     - reason
3787
    """
3788
    self.send_addAuthorizationLog(itemId, username, reason)
3789
    return self.recv_addAuthorizationLog()
3790
 
3791
  def send_addAuthorizationLog(self, itemId, username, reason):
3792
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3793
    args = addAuthorizationLog_args()
3794
    args.itemId = itemId
3795
    args.username = username
3796
    args.reason = reason
3797
    args.write(self._oprot)
3798
    self._oprot.writeMessageEnd()
3799
    self._oprot.trans.flush()
3800
 
3801
  def recv_addAuthorizationLog(self, ):
3802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3803
    if mtype == TMessageType.EXCEPTION:
3804
      x = TApplicationException()
3805
      x.read(self._iprot)
3806
      self._iprot.readMessageEnd()
3807
      raise x
3808
    result = addAuthorizationLog_result()
3809
    result.read(self._iprot)
3810
    self._iprot.readMessageEnd()
3811
    if result.success is not None:
3812
      return result.success
3813
    if result.cex is not None:
3814
      raise result.cex
3815
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3816
 
3817
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3818
    """
3819
    Parameters:
3820
     - catalog_item_id
3821
     - voucherType
3822
     - voucherAmount
3823
    """
3824
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3825
    return self.recv_addupdateVoucherForItem()
3826
 
3827
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3828
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3829
    args = addupdateVoucherForItem_args()
3830
    args.catalog_item_id = catalog_item_id
3831
    args.voucherType = voucherType
3832
    args.voucherAmount = voucherAmount
3833
    args.write(self._oprot)
3834
    self._oprot.writeMessageEnd()
3835
    self._oprot.trans.flush()
3836
 
3837
  def recv_addupdateVoucherForItem(self, ):
3838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3839
    if mtype == TMessageType.EXCEPTION:
3840
      x = TApplicationException()
3841
      x.read(self._iprot)
3842
      self._iprot.readMessageEnd()
3843
      raise x
3844
    result = addupdateVoucherForItem_result()
3845
    result.read(self._iprot)
3846
    self._iprot.readMessageEnd()
3847
    if result.success is not None:
3848
      return result.success
3849
    if result.cex is not None:
3850
      raise result.cex
3851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3852
 
3853
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3854
    """
3855
    Parameters:
3856
     - catalog_item_id
3857
     - voucherType
3858
    """
3859
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3860
    return self.recv_deleteVoucherForItem()
3861
 
3862
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3863
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3864
    args = deleteVoucherForItem_args()
3865
    args.catalog_item_id = catalog_item_id
3866
    args.voucherType = voucherType
3867
    args.write(self._oprot)
3868
    self._oprot.writeMessageEnd()
3869
    self._oprot.trans.flush()
3870
 
3871
  def recv_deleteVoucherForItem(self, ):
3872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3873
    if mtype == TMessageType.EXCEPTION:
3874
      x = TApplicationException()
3875
      x.read(self._iprot)
3876
      self._iprot.readMessageEnd()
3877
      raise x
3878
    result = deleteVoucherForItem_result()
3879
    result.read(self._iprot)
3880
    self._iprot.readMessageEnd()
3881
    if result.success is not None:
3882
      return result.success
3883
    if result.cex is not None:
3884
      raise result.cex
3885
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3886
 
3887
  def getVoucherAmount(self, itemId, voucherType):
3888
    """
3889
    Parameters:
3890
     - itemId
3891
     - voucherType
3892
    """
3893
    self.send_getVoucherAmount(itemId, voucherType)
3894
    return self.recv_getVoucherAmount()
3895
 
3896
  def send_getVoucherAmount(self, itemId, voucherType):
3897
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3898
    args = getVoucherAmount_args()
3899
    args.itemId = itemId
3900
    args.voucherType = voucherType
3901
    args.write(self._oprot)
3902
    self._oprot.writeMessageEnd()
3903
    self._oprot.trans.flush()
3904
 
3905
  def recv_getVoucherAmount(self, ):
3906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3907
    if mtype == TMessageType.EXCEPTION:
3908
      x = TApplicationException()
3909
      x.read(self._iprot)
3910
      self._iprot.readMessageEnd()
3911
      raise x
3912
    result = getVoucherAmount_result()
3913
    result.read(self._iprot)
3914
    self._iprot.readMessageEnd()
3915
    if result.success is not None:
3916
      return result.success
3917
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3918
 
3919
  def getAllItemVouchers(self, itemId):
3920
    """
3921
    Parameters:
3922
     - itemId
3923
    """
3924
    self.send_getAllItemVouchers(itemId)
3925
    return self.recv_getAllItemVouchers()
3926
 
3927
  def send_getAllItemVouchers(self, itemId):
3928
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3929
    args = getAllItemVouchers_args()
3930
    args.itemId = itemId
3931
    args.write(self._oprot)
3932
    self._oprot.writeMessageEnd()
3933
    self._oprot.trans.flush()
3934
 
3935
  def recv_getAllItemVouchers(self, ):
3936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3937
    if mtype == TMessageType.EXCEPTION:
3938
      x = TApplicationException()
3939
      x.read(self._iprot)
3940
      self._iprot.readMessageEnd()
3941
      raise x
3942
    result = getAllItemVouchers_result()
3943
    result.read(self._iprot)
3944
    self._iprot.readMessageEnd()
3945
    if result.success is not None:
3946
      return result.success
3947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3948
 
3949
  def isValidCatalogItemId(self, catalog_item_id):
3950
    """
3951
    Parameters:
3952
     - catalog_item_id
3953
    """
3954
    self.send_isValidCatalogItemId(catalog_item_id)
3955
    return self.recv_isValidCatalogItemId()
3956
 
3957
  def send_isValidCatalogItemId(self, catalog_item_id):
3958
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3959
    args = isValidCatalogItemId_args()
3960
    args.catalog_item_id = catalog_item_id
3961
    args.write(self._oprot)
3962
    self._oprot.writeMessageEnd()
3963
    self._oprot.trans.flush()
3964
 
3965
  def recv_isValidCatalogItemId(self, ):
3966
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3967
    if mtype == TMessageType.EXCEPTION:
3968
      x = TApplicationException()
3969
      x.read(self._iprot)
3970
      self._iprot.readMessageEnd()
3971
      raise x
3972
    result = isValidCatalogItemId_result()
3973
    result.read(self._iprot)
3974
    self._iprot.readMessageEnd()
3975
    if result.success is not None:
3976
      return result.success
3977
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3978
 
7330 amit.gupta 3979
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3980
    """
3981
    Parameters:
3982
     - itemId
7330 amit.gupta 3983
     - stateId
6039 amit.gupta 3984
     - price
3985
    """
7330 amit.gupta 3986
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3987
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3988
 
7330 amit.gupta 3989
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3990
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3991
    args = getVatPercentageForItem_args()
3992
    args.itemId = itemId
7330 amit.gupta 3993
    args.stateId = stateId
6039 amit.gupta 3994
    args.price = price
3995
    args.write(self._oprot)
3996
    self._oprot.writeMessageEnd()
3997
    self._oprot.trans.flush()
3998
 
3999
  def recv_getVatPercentageForItem(self, ):
4000
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4001
    if mtype == TMessageType.EXCEPTION:
4002
      x = TApplicationException()
4003
      x.read(self._iprot)
4004
      self._iprot.readMessageEnd()
4005
      raise x
4006
    result = getVatPercentageForItem_result()
4007
    result.read(self._iprot)
4008
    self._iprot.readMessageEnd()
4009
    if result.success is not None:
4010
      return result.success
7340 amit.gupta 4011
    if result.cex is not None:
4012
      raise result.cex
6039 amit.gupta 4013
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4014
 
4015
  def getVatAmountForItem(self, itemId, price):
4016
    """
4017
    Parameters:
4018
     - itemId
4019
     - price
4020
    """
4021
    self.send_getVatAmountForItem(itemId, price)
4022
    return self.recv_getVatAmountForItem()
4023
 
4024
  def send_getVatAmountForItem(self, itemId, price):
4025
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4026
    args = getVatAmountForItem_args()
4027
    args.itemId = itemId
4028
    args.price = price
4029
    args.write(self._oprot)
4030
    self._oprot.writeMessageEnd()
4031
    self._oprot.trans.flush()
4032
 
4033
  def recv_getVatAmountForItem(self, ):
4034
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4035
    if mtype == TMessageType.EXCEPTION:
4036
      x = TApplicationException()
4037
      x.read(self._iprot)
4038
      self._iprot.readMessageEnd()
4039
      raise x
4040
    result = getVatAmountForItem_result()
4041
    result.read(self._iprot)
4042
    self._iprot.readMessageEnd()
4043
    if result.success is not None:
4044
      return result.success
4045
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4046
 
6531 vikram.rag 4047
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4048
    """
4049
    Parameters:
4050
     - offset
4051
     - limit
4052
    """
4053
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4054
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4055
 
6531 vikram.rag 4056
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4057
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4058
    args = getAllIgnoredInventoryUpdateItemsList_args()
4059
    args.offset = offset
4060
    args.limit = limit
4061
    args.write(self._oprot)
4062
    self._oprot.writeMessageEnd()
4063
    self._oprot.trans.flush()
4064
 
4065
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4067
    if mtype == TMessageType.EXCEPTION:
4068
      x = TApplicationException()
4069
      x.read(self._iprot)
4070
      self._iprot.readMessageEnd()
4071
      raise x
4072
    result = getAllIgnoredInventoryUpdateItemsList_result()
4073
    result.read(self._iprot)
4074
    self._iprot.readMessageEnd()
4075
    if result.success is not None:
4076
      return result.success
4077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4078
 
6821 amar.kumar 4079
  def getAllAliveItems(self, ):
4080
    self.send_getAllAliveItems()
4081
    return self.recv_getAllAliveItems()
4082
 
4083
  def send_getAllAliveItems(self, ):
4084
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4085
    args = getAllAliveItems_args()
4086
    args.write(self._oprot)
4087
    self._oprot.writeMessageEnd()
4088
    self._oprot.trans.flush()
4089
 
4090
  def recv_getAllAliveItems(self, ):
4091
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4092
    if mtype == TMessageType.EXCEPTION:
4093
      x = TApplicationException()
4094
      x.read(self._iprot)
4095
      self._iprot.readMessageEnd()
4096
      raise x
4097
    result = getAllAliveItems_result()
4098
    result.read(self._iprot)
4099
    self._iprot.readMessageEnd()
4100
    if result.success is not None:
4101
      return result.success
4102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4103
 
6921 anupam.sin 4104
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4105
    """
4106
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4107
 
6805 anupam.sin 4108
    Parameters:
4109
     - itemId
6921 anupam.sin 4110
     - price
6805 anupam.sin 4111
     - insurerId
4112
     - quantity
4113
    """
6921 anupam.sin 4114
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4115
    return self.recv_getInsuranceAmount()
4116
 
6921 anupam.sin 4117
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4118
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4119
    args = getInsuranceAmount_args()
4120
    args.itemId = itemId
6921 anupam.sin 4121
    args.price = price
6805 anupam.sin 4122
    args.insurerId = insurerId
4123
    args.quantity = quantity
4124
    args.write(self._oprot)
4125
    self._oprot.writeMessageEnd()
4126
    self._oprot.trans.flush()
4127
 
4128
  def recv_getInsuranceAmount(self, ):
4129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4130
    if mtype == TMessageType.EXCEPTION:
4131
      x = TApplicationException()
4132
      x.read(self._iprot)
4133
      self._iprot.readMessageEnd()
4134
      raise x
4135
    result = getInsuranceAmount_result()
4136
    result.read(self._iprot)
4137
    self._iprot.readMessageEnd()
4138
    if result.success is not None:
4139
      return result.success
4140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4141
 
4142
  def getInsurer(self, insurerId):
4143
    """
4144
    Parameters:
4145
     - insurerId
4146
    """
4147
    self.send_getInsurer(insurerId)
4148
    return self.recv_getInsurer()
4149
 
4150
  def send_getInsurer(self, insurerId):
4151
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4152
    args = getInsurer_args()
4153
    args.insurerId = insurerId
4154
    args.write(self._oprot)
4155
    self._oprot.writeMessageEnd()
4156
    self._oprot.trans.flush()
4157
 
4158
  def recv_getInsurer(self, ):
4159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4160
    if mtype == TMessageType.EXCEPTION:
4161
      x = TApplicationException()
4162
      x.read(self._iprot)
4163
      self._iprot.readMessageEnd()
4164
      raise x
4165
    result = getInsurer_result()
4166
    result.read(self._iprot)
4167
    self._iprot.readMessageEnd()
4168
    if result.success is not None:
4169
      return result.success
4170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4171
 
6838 vikram.rag 4172
  def getAllInsurers(self, ):
4173
    self.send_getAllInsurers()
4174
    return self.recv_getAllInsurers()
6805 anupam.sin 4175
 
6838 vikram.rag 4176
  def send_getAllInsurers(self, ):
4177
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4178
    args = getAllInsurers_args()
4179
    args.write(self._oprot)
4180
    self._oprot.writeMessageEnd()
4181
    self._oprot.trans.flush()
4182
 
4183
  def recv_getAllInsurers(self, ):
4184
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4185
    if mtype == TMessageType.EXCEPTION:
4186
      x = TApplicationException()
4187
      x.read(self._iprot)
4188
      self._iprot.readMessageEnd()
4189
      raise x
4190
    result = getAllInsurers_result()
4191
    result.read(self._iprot)
4192
    self._iprot.readMessageEnd()
4193
    if result.success is not None:
4194
      return result.success
4195
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4196
 
6962 rajveer 4197
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4198
    """
4199
    Parameters:
4200
     - insurerId
4201
     - amount
4202
    """
4203
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4204
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4205
 
6962 rajveer 4206
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4207
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4208
    args = updateInsuranceDeclaredAmount_args()
4209
    args.insurerId = insurerId
4210
    args.amount = amount
4211
    args.write(self._oprot)
4212
    self._oprot.writeMessageEnd()
4213
    self._oprot.trans.flush()
4214
 
4215
  def recv_updateInsuranceDeclaredAmount(self, ):
4216
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4217
    if mtype == TMessageType.EXCEPTION:
4218
      x = TApplicationException()
4219
      x.read(self._iprot)
4220
      self._iprot.readMessageEnd()
4221
      raise x
4222
    result = updateInsuranceDeclaredAmount_result()
4223
    result.read(self._iprot)
4224
    self._iprot.readMessageEnd()
4225
    return
4226
 
7190 amar.kumar 4227
  def getFreebieForItem(self, itemId):
4228
    """
4229
    Parameters:
4230
     - itemId
4231
    """
4232
    self.send_getFreebieForItem(itemId)
4233
    return self.recv_getFreebieForItem()
6962 rajveer 4234
 
7190 amar.kumar 4235
  def send_getFreebieForItem(self, itemId):
4236
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4237
    args = getFreebieForItem_args()
4238
    args.itemId = itemId
4239
    args.write(self._oprot)
4240
    self._oprot.writeMessageEnd()
4241
    self._oprot.trans.flush()
4242
 
4243
  def recv_getFreebieForItem(self, ):
4244
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4245
    if mtype == TMessageType.EXCEPTION:
4246
      x = TApplicationException()
4247
      x.read(self._iprot)
4248
      self._iprot.readMessageEnd()
4249
      raise x
4250
    result = getFreebieForItem_result()
4251
    result.read(self._iprot)
4252
    self._iprot.readMessageEnd()
4253
    if result.success is not None:
4254
      return result.success
4255
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4256
 
4257
  def addOrUpdateFreebieForItem(self, freebieItem):
4258
    """
4259
    Parameters:
4260
     - freebieItem
4261
    """
4262
    self.send_addOrUpdateFreebieForItem(freebieItem)
4263
    self.recv_addOrUpdateFreebieForItem()
4264
 
4265
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4266
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4267
    args = addOrUpdateFreebieForItem_args()
4268
    args.freebieItem = freebieItem
4269
    args.write(self._oprot)
4270
    self._oprot.writeMessageEnd()
4271
    self._oprot.trans.flush()
4272
 
4273
  def recv_addOrUpdateFreebieForItem(self, ):
4274
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4275
    if mtype == TMessageType.EXCEPTION:
4276
      x = TApplicationException()
4277
      x.read(self._iprot)
4278
      self._iprot.readMessageEnd()
4279
      raise x
4280
    result = addOrUpdateFreebieForItem_result()
4281
    result.read(self._iprot)
4282
    self._iprot.readMessageEnd()
4283
    return
4284
 
7272 amit.gupta 4285
  def addOrUpdateBrandInfo(self, brandInfo):
4286
    """
4287
    Parameters:
4288
     - brandInfo
4289
    """
4290
    self.send_addOrUpdateBrandInfo(brandInfo)
4291
    self.recv_addOrUpdateBrandInfo()
4292
 
4293
  def send_addOrUpdateBrandInfo(self, brandInfo):
4294
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4295
    args = addOrUpdateBrandInfo_args()
4296
    args.brandInfo = brandInfo
4297
    args.write(self._oprot)
4298
    self._oprot.writeMessageEnd()
4299
    self._oprot.trans.flush()
4300
 
4301
  def recv_addOrUpdateBrandInfo(self, ):
4302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4303
    if mtype == TMessageType.EXCEPTION:
4304
      x = TApplicationException()
4305
      x.read(self._iprot)
4306
      self._iprot.readMessageEnd()
4307
      raise x
4308
    result = addOrUpdateBrandInfo_result()
4309
    result.read(self._iprot)
4310
    self._iprot.readMessageEnd()
4311
    return
4312
 
4313
  def getBrandInfo(self, ):
4314
    self.send_getBrandInfo()
4315
    return self.recv_getBrandInfo()
4316
 
4317
  def send_getBrandInfo(self, ):
4318
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4319
    args = getBrandInfo_args()
4320
    args.write(self._oprot)
4321
    self._oprot.writeMessageEnd()
4322
    self._oprot.trans.flush()
4323
 
4324
  def recv_getBrandInfo(self, ):
4325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4326
    if mtype == TMessageType.EXCEPTION:
4327
      x = TApplicationException()
4328
      x.read(self._iprot)
4329
      self._iprot.readMessageEnd()
4330
      raise x
4331
    result = getBrandInfo_result()
4332
    result.read(self._iprot)
4333
    self._iprot.readMessageEnd()
4334
    if result.success is not None:
4335
      return result.success
4336
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4337
 
7256 rajveer 4338
  def getStorePricing(self, itemId):
4339
    """
4340
    Parameters:
4341
     - itemId
4342
    """
4343
    self.send_getStorePricing(itemId)
4344
    return self.recv_getStorePricing()
7190 amar.kumar 4345
 
7256 rajveer 4346
  def send_getStorePricing(self, itemId):
4347
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4348
    args = getStorePricing_args()
4349
    args.itemId = itemId
4350
    args.write(self._oprot)
4351
    self._oprot.writeMessageEnd()
4352
    self._oprot.trans.flush()
4353
 
4354
  def recv_getStorePricing(self, ):
4355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4356
    if mtype == TMessageType.EXCEPTION:
4357
      x = TApplicationException()
4358
      x.read(self._iprot)
4359
      self._iprot.readMessageEnd()
4360
      raise x
4361
    result = getStorePricing_result()
4362
    result.read(self._iprot)
4363
    self._iprot.readMessageEnd()
4364
    if result.success is not None:
4365
      return result.success
4366
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4367
 
7306 rajveer 4368
  def getStorePricings(self, itemIds):
4369
    """
4370
    Parameters:
4371
     - itemIds
4372
    """
4373
    self.send_getStorePricings(itemIds)
4374
    return self.recv_getStorePricings()
4375
 
4376
  def send_getStorePricings(self, itemIds):
4377
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4378
    args = getStorePricings_args()
4379
    args.itemIds = itemIds
4380
    args.write(self._oprot)
4381
    self._oprot.writeMessageEnd()
4382
    self._oprot.trans.flush()
4383
 
4384
  def recv_getStorePricings(self, ):
4385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4386
    if mtype == TMessageType.EXCEPTION:
4387
      x = TApplicationException()
4388
      x.read(self._iprot)
4389
      self._iprot.readMessageEnd()
4390
      raise x
4391
    result = getStorePricings_result()
4392
    result.read(self._iprot)
4393
    self._iprot.readMessageEnd()
4394
    if result.success is not None:
4395
      return result.success
4396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4397
 
7382 rajveer 4398
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4399
    """
4400
    Parameters:
4401
     - sp
7382 rajveer 4402
     - allColors
7265 rajveer 4403
    """
7382 rajveer 4404
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4405
    self.recv_updateStorePricing()
7256 rajveer 4406
 
7382 rajveer 4407
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4408
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4409
    args = updateStorePricing_args()
4410
    args.sp = sp
7382 rajveer 4411
    args.allColors = allColors
7265 rajveer 4412
    args.write(self._oprot)
4413
    self._oprot.writeMessageEnd()
4414
    self._oprot.trans.flush()
4415
 
4416
  def recv_updateStorePricing(self, ):
4417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4418
    if mtype == TMessageType.EXCEPTION:
4419
      x = TApplicationException()
4420
      x.read(self._iprot)
4421
      self._iprot.readMessageEnd()
4422
      raise x
4423
    result = updateStorePricing_result()
4424
    result.read(self._iprot)
4425
    self._iprot.readMessageEnd()
4426
    return
4427
 
7281 kshitij.so 4428
  def getAllAmazonListedItems(self, ):
4429
    self.send_getAllAmazonListedItems()
4430
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4431
 
7281 kshitij.so 4432
  def send_getAllAmazonListedItems(self, ):
4433
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4434
    args = getAllAmazonListedItems_args()
4435
    args.write(self._oprot)
4436
    self._oprot.writeMessageEnd()
4437
    self._oprot.trans.flush()
4438
 
4439
  def recv_getAllAmazonListedItems(self, ):
4440
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4441
    if mtype == TMessageType.EXCEPTION:
4442
      x = TApplicationException()
4443
      x.read(self._iprot)
4444
      self._iprot.readMessageEnd()
4445
      raise x
4446
    result = getAllAmazonListedItems_result()
4447
    result.read(self._iprot)
4448
    self._iprot.readMessageEnd()
4449
    if result.success is not None:
4450
      return result.success
4451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4452
 
8619 kshitij.so 4453
  def searchAmazonItems(self, searchTerm, offset, limit):
4454
    """
4455
    Parameters:
4456
     - searchTerm
4457
     - offset
4458
     - limit
4459
    """
4460
    self.send_searchAmazonItems(searchTerm, offset, limit)
4461
    return self.recv_searchAmazonItems()
4462
 
4463
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4464
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4465
    args = searchAmazonItems_args()
4466
    args.searchTerm = searchTerm
4467
    args.offset = offset
4468
    args.limit = limit
4469
    args.write(self._oprot)
4470
    self._oprot.writeMessageEnd()
4471
    self._oprot.trans.flush()
4472
 
4473
  def recv_searchAmazonItems(self, ):
4474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4475
    if mtype == TMessageType.EXCEPTION:
4476
      x = TApplicationException()
4477
      x.read(self._iprot)
4478
      self._iprot.readMessageEnd()
4479
      raise x
4480
    result = searchAmazonItems_result()
4481
    result.read(self._iprot)
4482
    self._iprot.readMessageEnd()
4483
    if result.success is not None:
4484
      return result.success
4485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4486
 
4487
  def getAmazonSearchResultCount(self, searchTerm):
4488
    """
4489
    Parameters:
4490
     - searchTerm
4491
    """
4492
    self.send_getAmazonSearchResultCount(searchTerm)
4493
    return self.recv_getAmazonSearchResultCount()
4494
 
4495
  def send_getAmazonSearchResultCount(self, searchTerm):
4496
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4497
    args = getAmazonSearchResultCount_args()
4498
    args.searchTerm = searchTerm
4499
    args.write(self._oprot)
4500
    self._oprot.writeMessageEnd()
4501
    self._oprot.trans.flush()
4502
 
4503
  def recv_getAmazonSearchResultCount(self, ):
4504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4505
    if mtype == TMessageType.EXCEPTION:
4506
      x = TApplicationException()
4507
      x.read(self._iprot)
4508
      self._iprot.readMessageEnd()
4509
      raise x
4510
    result = getAmazonSearchResultCount_result()
4511
    result.read(self._iprot)
4512
    self._iprot.readMessageEnd()
4513
    if result.success is not None:
4514
      return result.success
4515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4516
 
4517
  def getCountForAmazonlistedItems(self, ):
4518
    self.send_getCountForAmazonlistedItems()
4519
    return self.recv_getCountForAmazonlistedItems()
4520
 
4521
  def send_getCountForAmazonlistedItems(self, ):
4522
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4523
    args = getCountForAmazonlistedItems_args()
4524
    args.write(self._oprot)
4525
    self._oprot.writeMessageEnd()
4526
    self._oprot.trans.flush()
4527
 
4528
  def recv_getCountForAmazonlistedItems(self, ):
4529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4530
    if mtype == TMessageType.EXCEPTION:
4531
      x = TApplicationException()
4532
      x.read(self._iprot)
4533
      self._iprot.readMessageEnd()
4534
      raise x
4535
    result = getCountForAmazonlistedItems_result()
4536
    result.read(self._iprot)
4537
    self._iprot.readMessageEnd()
4538
    if result.success is not None:
4539
      return result.success
4540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4541
 
7281 kshitij.so 4542
  def getAmazonItemDetails(self, itemId):
4543
    """
4544
    Parameters:
4545
     - itemId
4546
    """
4547
    self.send_getAmazonItemDetails(itemId)
4548
    return self.recv_getAmazonItemDetails()
4549
 
4550
  def send_getAmazonItemDetails(self, itemId):
4551
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4552
    args = getAmazonItemDetails_args()
4553
    args.itemId = itemId
4554
    args.write(self._oprot)
4555
    self._oprot.writeMessageEnd()
4556
    self._oprot.trans.flush()
4557
 
4558
  def recv_getAmazonItemDetails(self, ):
4559
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4560
    if mtype == TMessageType.EXCEPTION:
4561
      x = TApplicationException()
4562
      x.read(self._iprot)
4563
      self._iprot.readMessageEnd()
4564
      raise x
4565
    result = getAmazonItemDetails_result()
4566
    result.read(self._iprot)
4567
    self._iprot.readMessageEnd()
4568
    if result.success is not None:
4569
      return result.success
4570
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4571
 
8168 kshitij.so 4572
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4573
    """
4574
    Parameters:
8168 kshitij.so 4575
     - amazonlisted
7281 kshitij.so 4576
    """
8168 kshitij.so 4577
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4578
    self.recv_updateAmazonItemDetails()
4579
 
8168 kshitij.so 4580
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4581
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4582
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4583
    args.amazonlisted = amazonlisted
7281 kshitij.so 4584
    args.write(self._oprot)
4585
    self._oprot.writeMessageEnd()
4586
    self._oprot.trans.flush()
4587
 
4588
  def recv_updateAmazonItemDetails(self, ):
4589
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4590
    if mtype == TMessageType.EXCEPTION:
4591
      x = TApplicationException()
4592
      x.read(self._iprot)
4593
      self._iprot.readMessageEnd()
4594
      raise x
4595
    result = updateAmazonItemDetails_result()
4596
    result.read(self._iprot)
4597
    self._iprot.readMessageEnd()
4598
    return
4599
 
4600
  def addAmazonItem(self, amazonlisted):
4601
    """
4602
    Parameters:
4603
     - amazonlisted
4604
    """
4605
    self.send_addAmazonItem(amazonlisted)
4606
    self.recv_addAmazonItem()
4607
 
4608
  def send_addAmazonItem(self, amazonlisted):
4609
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4610
    args = addAmazonItem_args()
4611
    args.amazonlisted = amazonlisted
4612
    args.write(self._oprot)
4613
    self._oprot.writeMessageEnd()
4614
    self._oprot.trans.flush()
4615
 
4616
  def recv_addAmazonItem(self, ):
4617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4618
    if mtype == TMessageType.EXCEPTION:
4619
      x = TApplicationException()
4620
      x.read(self._iprot)
4621
      self._iprot.readMessageEnd()
4622
      raise x
4623
    result = addAmazonItem_result()
4624
    result.read(self._iprot)
4625
    self._iprot.readMessageEnd()
4626
    return
4627
 
7291 vikram.rag 4628
  def getAsinItems(self, ):
4629
    self.send_getAsinItems()
4630
    return self.recv_getAsinItems()
7281 kshitij.so 4631
 
7291 vikram.rag 4632
  def send_getAsinItems(self, ):
4633
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4634
    args = getAsinItems_args()
4635
    args.write(self._oprot)
4636
    self._oprot.writeMessageEnd()
4637
    self._oprot.trans.flush()
4638
 
4639
  def recv_getAsinItems(self, ):
4640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4641
    if mtype == TMessageType.EXCEPTION:
4642
      x = TApplicationException()
4643
      x.read(self._iprot)
4644
      self._iprot.readMessageEnd()
4645
      raise x
4646
    result = getAsinItems_result()
4647
    result.read(self._iprot)
4648
    self._iprot.readMessageEnd()
4649
    if result.success is not None:
4650
      return result.success
4651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4652
 
4653
  def getAllFbaListedItems(self, ):
4654
    self.send_getAllFbaListedItems()
4655
    return self.recv_getAllFbaListedItems()
4656
 
4657
  def send_getAllFbaListedItems(self, ):
4658
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4659
    args = getAllFbaListedItems_args()
4660
    args.write(self._oprot)
4661
    self._oprot.writeMessageEnd()
4662
    self._oprot.trans.flush()
4663
 
4664
  def recv_getAllFbaListedItems(self, ):
4665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4666
    if mtype == TMessageType.EXCEPTION:
4667
      x = TApplicationException()
4668
      x.read(self._iprot)
4669
      self._iprot.readMessageEnd()
4670
      raise x
4671
    result = getAllFbaListedItems_result()
4672
    result.read(self._iprot)
4673
    self._iprot.readMessageEnd()
4674
    if result.success is not None:
4675
      return result.success
4676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4677
 
4678
  def getAllNonFbaListedItems(self, ):
4679
    self.send_getAllNonFbaListedItems()
4680
    return self.recv_getAllNonFbaListedItems()
4681
 
4682
  def send_getAllNonFbaListedItems(self, ):
4683
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4684
    args = getAllNonFbaListedItems_args()
4685
    args.write(self._oprot)
4686
    self._oprot.writeMessageEnd()
4687
    self._oprot.trans.flush()
4688
 
4689
  def recv_getAllNonFbaListedItems(self, ):
4690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4691
    if mtype == TMessageType.EXCEPTION:
4692
      x = TApplicationException()
4693
      x.read(self._iprot)
4694
      self._iprot.readMessageEnd()
4695
      raise x
4696
    result = getAllNonFbaListedItems_result()
4697
    result.read(self._iprot)
4698
    self._iprot.readMessageEnd()
4699
    if result.success is not None:
4700
      return result.success
4701
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4702
 
7460 kshitij.so 4703
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4704
    """
4705
    Parameters:
4706
     - itemId
4707
     - holdInventory
4708
     - defaultInventory
4709
    """
4710
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4711
    return self.recv_updateItemInventory()
7291 vikram.rag 4712
 
7460 kshitij.so 4713
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4714
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4715
    args = updateItemInventory_args()
4716
    args.itemId = itemId
4717
    args.holdInventory = holdInventory
4718
    args.defaultInventory = defaultInventory
4719
    args.write(self._oprot)
4720
    self._oprot.writeMessageEnd()
4721
    self._oprot.trans.flush()
4722
 
4723
  def recv_updateItemInventory(self, ):
4724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4725
    if mtype == TMessageType.EXCEPTION:
4726
      x = TApplicationException()
4727
      x.read(self._iprot)
4728
      self._iprot.readMessageEnd()
4729
      raise x
4730
    result = updateItemInventory_result()
4731
    result.read(self._iprot)
4732
    self._iprot.readMessageEnd()
4733
    if result.success is not None:
4734
      return result.success
4735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4736
 
7770 kshitij.so 4737
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4738
    """
4739
    Parameters:
4740
     - type
4741
     - sku
4742
     - timestamp
4743
    """
4744
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4745
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4746
 
7770 kshitij.so 4747
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4748
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4749
    args = updateTimestampForAmazonFeeds_args()
4750
    args.type = type
4751
    args.sku = sku
4752
    args.timestamp = timestamp
4753
    args.write(self._oprot)
4754
    self._oprot.writeMessageEnd()
4755
    self._oprot.trans.flush()
4756
 
4757
  def recv_updateTimestampForAmazonFeeds(self, ):
4758
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4759
    if mtype == TMessageType.EXCEPTION:
4760
      x = TApplicationException()
4761
      x.read(self._iprot)
4762
      self._iprot.readMessageEnd()
4763
      raise x
4764
    result = updateTimestampForAmazonFeeds_result()
4765
    result.read(self._iprot)
4766
    self._iprot.readMessageEnd()
4767
    if result.success is not None:
4768
      return result.success
4769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4770
 
7897 amar.kumar 4771
  def getAllParentCategories(self, ):
4772
    self.send_getAllParentCategories()
4773
    return self.recv_getAllParentCategories()
7770 kshitij.so 4774
 
7897 amar.kumar 4775
  def send_getAllParentCategories(self, ):
4776
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4777
    args = getAllParentCategories_args()
4778
    args.write(self._oprot)
4779
    self._oprot.writeMessageEnd()
4780
    self._oprot.trans.flush()
4781
 
4782
  def recv_getAllParentCategories(self, ):
4783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4784
    if mtype == TMessageType.EXCEPTION:
4785
      x = TApplicationException()
4786
      x.read(self._iprot)
4787
      self._iprot.readMessageEnd()
4788
      raise x
4789
    result = getAllParentCategories_result()
4790
    result.read(self._iprot)
4791
    self._iprot.readMessageEnd()
4792
    if result.success is not None:
4793
      return result.success
4794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4795
 
7977 kshitij.so 4796
  def addPageViewEvent(self, pageViewEvents):
4797
    """
4798
    Parameters:
4799
     - pageViewEvents
4800
    """
4801
    self.send_addPageViewEvent(pageViewEvents)
4802
    self.recv_addPageViewEvent()
7897 amar.kumar 4803
 
7977 kshitij.so 4804
  def send_addPageViewEvent(self, pageViewEvents):
4805
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4806
    args = addPageViewEvent_args()
4807
    args.pageViewEvents = pageViewEvents
4808
    args.write(self._oprot)
4809
    self._oprot.writeMessageEnd()
4810
    self._oprot.trans.flush()
4811
 
4812
  def recv_addPageViewEvent(self, ):
4813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4814
    if mtype == TMessageType.EXCEPTION:
4815
      x = TApplicationException()
4816
      x.read(self._iprot)
4817
      self._iprot.readMessageEnd()
4818
      raise x
4819
    result = addPageViewEvent_result()
4820
    result.read(self._iprot)
4821
    self._iprot.readMessageEnd()
4822
    return
4823
 
4824
  def addCartEvent(self, cartEvents):
4825
    """
4826
    Parameters:
4827
     - cartEvents
4828
    """
4829
    self.send_addCartEvent(cartEvents)
4830
    self.recv_addCartEvent()
4831
 
4832
  def send_addCartEvent(self, cartEvents):
4833
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4834
    args = addCartEvent_args()
4835
    args.cartEvents = cartEvents
4836
    args.write(self._oprot)
4837
    self._oprot.writeMessageEnd()
4838
    self._oprot.trans.flush()
4839
 
4840
  def recv_addCartEvent(self, ):
4841
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4842
    if mtype == TMessageType.EXCEPTION:
4843
      x = TApplicationException()
4844
      x.read(self._iprot)
4845
      self._iprot.readMessageEnd()
4846
      raise x
4847
    result = addCartEvent_result()
4848
    result.read(self._iprot)
4849
    self._iprot.readMessageEnd()
4850
    return
4851
 
8182 amar.kumar 4852
  def addEbayItem(self, ebayItem):
4853
    """
4854
    Parameters:
4855
     - ebayItem
4856
    """
4857
    self.send_addEbayItem(ebayItem)
4858
    self.recv_addEbayItem()
4859
 
4860
  def send_addEbayItem(self, ebayItem):
4861
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4862
    args = addEbayItem_args()
4863
    args.ebayItem = ebayItem
4864
    args.write(self._oprot)
4865
    self._oprot.writeMessageEnd()
4866
    self._oprot.trans.flush()
4867
 
4868
  def recv_addEbayItem(self, ):
4869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4870
    if mtype == TMessageType.EXCEPTION:
4871
      x = TApplicationException()
4872
      x.read(self._iprot)
4873
      self._iprot.readMessageEnd()
4874
      raise x
4875
    result = addEbayItem_result()
4876
    result.read(self._iprot)
4877
    self._iprot.readMessageEnd()
4878
    return
4879
 
4880
  def getEbayItem(self, listingId):
4881
    """
4882
    Parameters:
4883
     - listingId
4884
    """
4885
    self.send_getEbayItem(listingId)
4886
    return self.recv_getEbayItem()
4887
 
4888
  def send_getEbayItem(self, listingId):
4889
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4890
    args = getEbayItem_args()
4891
    args.listingId = listingId
4892
    args.write(self._oprot)
4893
    self._oprot.writeMessageEnd()
4894
    self._oprot.trans.flush()
4895
 
4896
  def recv_getEbayItem(self, ):
4897
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4898
    if mtype == TMessageType.EXCEPTION:
4899
      x = TApplicationException()
4900
      x.read(self._iprot)
4901
      self._iprot.readMessageEnd()
4902
      raise x
4903
    result = getEbayItem_result()
4904
    result.read(self._iprot)
4905
    self._iprot.readMessageEnd()
4906
    if result.success is not None:
4907
      return result.success
4908
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4909
 
4910
  def updateEbayItem(self, ebayItem):
4911
    """
4912
    Parameters:
4913
     - ebayItem
4914
    """
4915
    self.send_updateEbayItem(ebayItem)
4916
    self.recv_updateEbayItem()
4917
 
4918
  def send_updateEbayItem(self, ebayItem):
4919
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4920
    args = updateEbayItem_args()
4921
    args.ebayItem = ebayItem
4922
    args.write(self._oprot)
4923
    self._oprot.writeMessageEnd()
4924
    self._oprot.trans.flush()
4925
 
4926
  def recv_updateEbayItem(self, ):
4927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4928
    if mtype == TMessageType.EXCEPTION:
4929
      x = TApplicationException()
4930
      x.read(self._iprot)
4931
      self._iprot.readMessageEnd()
4932
      raise x
4933
    result = updateEbayItem_result()
4934
    result.read(self._iprot)
4935
    self._iprot.readMessageEnd()
4936
    return
4937
 
8139 kshitij.so 4938
  def getAmazonListedItems(self, offset, limit):
4939
    """
4940
    Parameters:
4941
     - offset
4942
     - limit
4943
    """
4944
    self.send_getAmazonListedItems(offset, limit)
4945
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4946
 
8139 kshitij.so 4947
  def send_getAmazonListedItems(self, offset, limit):
4948
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4949
    args = getAmazonListedItems_args()
4950
    args.offset = offset
4951
    args.limit = limit
4952
    args.write(self._oprot)
4953
    self._oprot.writeMessageEnd()
4954
    self._oprot.trans.flush()
4955
 
4956
  def recv_getAmazonListedItems(self, ):
4957
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4958
    if mtype == TMessageType.EXCEPTION:
4959
      x = TApplicationException()
4960
      x.read(self._iprot)
4961
      self._iprot.readMessageEnd()
4962
      raise x
4963
    result = getAmazonListedItems_result()
4964
    result.read(self._iprot)
4965
    self._iprot.readMessageEnd()
4966
    if result.success is not None:
4967
      return result.success
4968
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4969
 
8168 kshitij.so 4970
  def updateAmazonAttributesInBulk(self, amazonlisted):
4971
    """
4972
    Parameters:
4973
     - amazonlisted
4974
    """
4975
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4976
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4977
 
8168 kshitij.so 4978
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4979
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4980
    args = updateAmazonAttributesInBulk_args()
4981
    args.amazonlisted = amazonlisted
4982
    args.write(self._oprot)
4983
    self._oprot.writeMessageEnd()
4984
    self._oprot.trans.flush()
4985
 
4986
  def recv_updateAmazonAttributesInBulk(self, ):
4987
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4988
    if mtype == TMessageType.EXCEPTION:
4989
      x = TApplicationException()
4990
      x.read(self._iprot)
4991
      self._iprot.readMessageEnd()
4992
      raise x
4993
    result = updateAmazonAttributesInBulk_result()
4994
    result.read(self._iprot)
4995
    self._iprot.readMessageEnd()
4996
    if result.success is not None:
4997
      return result.success
4998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4999
 
8379 vikram.rag 5000
  def getAllItemstoListOnFba(self, ):
5001
    self.send_getAllItemstoListOnFba()
5002
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 5003
 
8379 vikram.rag 5004
  def send_getAllItemstoListOnFba(self, ):
5005
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5006
    args = getAllItemstoListOnFba_args()
5007
    args.write(self._oprot)
5008
    self._oprot.writeMessageEnd()
5009
    self._oprot.trans.flush()
5010
 
5011
  def recv_getAllItemstoListOnFba(self, ):
5012
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5013
    if mtype == TMessageType.EXCEPTION:
5014
      x = TApplicationException()
5015
      x.read(self._iprot)
5016
      self._iprot.readMessageEnd()
5017
      raise x
5018
    result = getAllItemstoListOnFba_result()
5019
    result.read(self._iprot)
5020
    self._iprot.readMessageEnd()
5021
    if result.success is not None:
5022
      return result.success
5023
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5024
 
5025
  def getAllItemstoListOnNonFba(self, ):
5026
    self.send_getAllItemstoListOnNonFba()
5027
    return self.recv_getAllItemstoListOnNonFba()
5028
 
5029
  def send_getAllItemstoListOnNonFba(self, ):
5030
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5031
    args = getAllItemstoListOnNonFba_args()
5032
    args.write(self._oprot)
5033
    self._oprot.writeMessageEnd()
5034
    self._oprot.trans.flush()
5035
 
5036
  def recv_getAllItemstoListOnNonFba(self, ):
5037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5038
    if mtype == TMessageType.EXCEPTION:
5039
      x = TApplicationException()
5040
      x.read(self._iprot)
5041
      self._iprot.readMessageEnd()
5042
      raise x
5043
    result = getAllItemstoListOnNonFba_result()
5044
    result.read(self._iprot)
5045
    self._iprot.readMessageEnd()
5046
    if result.success is not None:
5047
      return result.success
5048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5049
 
8619 kshitij.so 5050
  def updateAsin(self, item):
5051
    """
5052
    Parameters:
5053
     - item
5054
    """
5055
    self.send_updateAsin(item)
5056
    self.recv_updateAsin()
8616 vikram.rag 5057
 
8619 kshitij.so 5058
  def send_updateAsin(self, item):
5059
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5060
    args = updateAsin_args()
5061
    args.item = item
5062
    args.write(self._oprot)
5063
    self._oprot.writeMessageEnd()
5064
    self._oprot.trans.flush()
5065
 
5066
  def recv_updateAsin(self, ):
5067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5068
    if mtype == TMessageType.EXCEPTION:
5069
      x = TApplicationException()
5070
      x.read(self._iprot)
5071
      self._iprot.readMessageEnd()
5072
      raise x
5073
    result = updateAsin_result()
5074
    result.read(self._iprot)
5075
    self._iprot.readMessageEnd()
5076
    return
5077
 
8739 vikram.rag 5078
  def addOrUpdateSnapdealItem(self, snapdealitem):
5079
    """
5080
    Parameters:
5081
     - snapdealitem
5082
    """
5083
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5084
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5085
 
8739 vikram.rag 5086
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5087
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5088
    args = addOrUpdateSnapdealItem_args()
5089
    args.snapdealitem = snapdealitem
5090
    args.write(self._oprot)
5091
    self._oprot.writeMessageEnd()
5092
    self._oprot.trans.flush()
5093
 
5094
  def recv_addOrUpdateSnapdealItem(self, ):
5095
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5096
    if mtype == TMessageType.EXCEPTION:
5097
      x = TApplicationException()
5098
      x.read(self._iprot)
5099
      self._iprot.readMessageEnd()
5100
      raise x
5101
    result = addOrUpdateSnapdealItem_result()
5102
    result.read(self._iprot)
5103
    self._iprot.readMessageEnd()
5104
    if result.success is not None:
5105
      return result.success
5106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5107
 
5108
  def getSnapdealItem(self, item_id):
5109
    """
5110
    Parameters:
5111
     - item_id
5112
    """
5113
    self.send_getSnapdealItem(item_id)
5114
    return self.recv_getSnapdealItem()
5115
 
5116
  def send_getSnapdealItem(self, item_id):
5117
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5118
    args = getSnapdealItem_args()
5119
    args.item_id = item_id
5120
    args.write(self._oprot)
5121
    self._oprot.writeMessageEnd()
5122
    self._oprot.trans.flush()
5123
 
5124
  def recv_getSnapdealItem(self, ):
5125
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5126
    if mtype == TMessageType.EXCEPTION:
5127
      x = TApplicationException()
5128
      x.read(self._iprot)
5129
      self._iprot.readMessageEnd()
5130
      raise x
5131
    result = getSnapdealItem_result()
5132
    result.read(self._iprot)
5133
    self._iprot.readMessageEnd()
5134
    if result.success is not None:
5135
      return result.success
5136
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5137
 
9242 kshitij.so 5138
  def getSnapdealItemDetails(self, item_id):
5139
    """
5140
    Parameters:
5141
     - item_id
5142
    """
5143
    self.send_getSnapdealItemDetails(item_id)
5144
    return self.recv_getSnapdealItemDetails()
5145
 
5146
  def send_getSnapdealItemDetails(self, item_id):
5147
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5148
    args = getSnapdealItemDetails_args()
5149
    args.item_id = item_id
5150
    args.write(self._oprot)
5151
    self._oprot.writeMessageEnd()
5152
    self._oprot.trans.flush()
5153
 
5154
  def recv_getSnapdealItemDetails(self, ):
5155
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5156
    if mtype == TMessageType.EXCEPTION:
5157
      x = TApplicationException()
5158
      x.read(self._iprot)
5159
      self._iprot.readMessageEnd()
5160
      raise x
5161
    result = getSnapdealItemDetails_result()
5162
    result.read(self._iprot)
5163
    self._iprot.readMessageEnd()
5164
    if result.success is not None:
5165
      return result.success
5166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5167
 
8739 vikram.rag 5168
  def getAllSnapdealItems(self, ):
5169
    self.send_getAllSnapdealItems()
5170
    return self.recv_getAllSnapdealItems()
5171
 
5172
  def send_getAllSnapdealItems(self, ):
5173
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5174
    args = getAllSnapdealItems_args()
5175
    args.write(self._oprot)
5176
    self._oprot.writeMessageEnd()
5177
    self._oprot.trans.flush()
5178
 
5179
  def recv_getAllSnapdealItems(self, ):
5180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5181
    if mtype == TMessageType.EXCEPTION:
5182
      x = TApplicationException()
5183
      x.read(self._iprot)
5184
      self._iprot.readMessageEnd()
5185
      raise x
5186
    result = getAllSnapdealItems_result()
5187
    result.read(self._iprot)
5188
    self._iprot.readMessageEnd()
5189
    if result.success is not None:
5190
      return result.success
5191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5192
 
9242 kshitij.so 5193
  def getSnapdealItems(self, offset, limit):
5194
    """
5195
    Parameters:
5196
     - offset
5197
     - limit
5198
    """
5199
    self.send_getSnapdealItems(offset, limit)
5200
    return self.recv_getSnapdealItems()
8739 vikram.rag 5201
 
9242 kshitij.so 5202
  def send_getSnapdealItems(self, offset, limit):
5203
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5204
    args = getSnapdealItems_args()
5205
    args.offset = offset
5206
    args.limit = limit
5207
    args.write(self._oprot)
5208
    self._oprot.writeMessageEnd()
5209
    self._oprot.trans.flush()
5210
 
5211
  def recv_getSnapdealItems(self, ):
5212
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5213
    if mtype == TMessageType.EXCEPTION:
5214
      x = TApplicationException()
5215
      x.read(self._iprot)
5216
      self._iprot.readMessageEnd()
5217
      raise x
5218
    result = getSnapdealItems_result()
5219
    result.read(self._iprot)
5220
    self._iprot.readMessageEnd()
5221
    if result.success is not None:
5222
      return result.success
5223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5224
 
5225
  def searchSnapdealItems(self, searchTerm, offset, limit):
5226
    """
5227
    Parameters:
5228
     - searchTerm
5229
     - offset
5230
     - limit
5231
    """
5232
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5233
    return self.recv_searchSnapdealItems()
5234
 
5235
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5236
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5237
    args = searchSnapdealItems_args()
5238
    args.searchTerm = searchTerm
5239
    args.offset = offset
5240
    args.limit = limit
5241
    args.write(self._oprot)
5242
    self._oprot.writeMessageEnd()
5243
    self._oprot.trans.flush()
5244
 
5245
  def recv_searchSnapdealItems(self, ):
5246
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5247
    if mtype == TMessageType.EXCEPTION:
5248
      x = TApplicationException()
5249
      x.read(self._iprot)
5250
      self._iprot.readMessageEnd()
5251
      raise x
5252
    result = searchSnapdealItems_result()
5253
    result.read(self._iprot)
5254
    self._iprot.readMessageEnd()
5255
    if result.success is not None:
5256
      return result.success
5257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5258
 
5259
  def getCountForSnapdealItems(self, ):
5260
    self.send_getCountForSnapdealItems()
5261
    return self.recv_getCountForSnapdealItems()
5262
 
5263
  def send_getCountForSnapdealItems(self, ):
5264
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5265
    args = getCountForSnapdealItems_args()
5266
    args.write(self._oprot)
5267
    self._oprot.writeMessageEnd()
5268
    self._oprot.trans.flush()
5269
 
5270
  def recv_getCountForSnapdealItems(self, ):
5271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5272
    if mtype == TMessageType.EXCEPTION:
5273
      x = TApplicationException()
5274
      x.read(self._iprot)
5275
      self._iprot.readMessageEnd()
5276
      raise x
5277
    result = getCountForSnapdealItems_result()
5278
    result.read(self._iprot)
5279
    self._iprot.readMessageEnd()
5280
    if result.success is not None:
5281
      return result.success
5282
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5283
 
5284
  def getSnapdealSearchResultCount(self, searchTerm):
5285
    """
5286
    Parameters:
5287
     - searchTerm
5288
    """
5289
    self.send_getSnapdealSearchResultCount(searchTerm)
5290
    return self.recv_getSnapdealSearchResultCount()
5291
 
5292
  def send_getSnapdealSearchResultCount(self, searchTerm):
5293
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5294
    args = getSnapdealSearchResultCount_args()
5295
    args.searchTerm = searchTerm
5296
    args.write(self._oprot)
5297
    self._oprot.writeMessageEnd()
5298
    self._oprot.trans.flush()
5299
 
5300
  def recv_getSnapdealSearchResultCount(self, ):
5301
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5302
    if mtype == TMessageType.EXCEPTION:
5303
      x = TApplicationException()
5304
      x.read(self._iprot)
5305
      self._iprot.readMessageEnd()
5306
      raise x
5307
    result = getSnapdealSearchResultCount_result()
5308
    result.read(self._iprot)
5309
    self._iprot.readMessageEnd()
5310
    if result.success is not None:
5311
      return result.success
5312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5313
 
9299 kshitij.so 5314
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5315
    """
5316
    Parameters:
5317
     - itemId
5318
     - insurerType
5319
    """
5320
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5321
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5322
 
9299 kshitij.so 5323
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5324
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5325
    args = getPrefferedInsurerForItem_args()
5326
    args.itemId = itemId
5327
    args.insurerType = insurerType
5328
    args.write(self._oprot)
5329
    self._oprot.writeMessageEnd()
5330
    self._oprot.trans.flush()
5331
 
5332
  def recv_getPrefferedInsurerForItem(self, ):
5333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5334
    if mtype == TMessageType.EXCEPTION:
5335
      x = TApplicationException()
5336
      x.read(self._iprot)
5337
      self._iprot.readMessageEnd()
5338
      raise x
5339
    result = getPrefferedInsurerForItem_result()
5340
    result.read(self._iprot)
5341
    self._iprot.readMessageEnd()
5342
    if result.success is not None:
5343
      return result.success
5344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5345
 
9456 vikram.rag 5346
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5347
    """
5348
    Parameters:
5349
     - skuAtSnapdeal
5350
    """
5351
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5352
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5353
 
9456 vikram.rag 5354
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5355
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5356
    args = getSnapdealItembySkuAtSnapdeal_args()
5357
    args.skuAtSnapdeal = skuAtSnapdeal
5358
    args.write(self._oprot)
5359
    self._oprot.writeMessageEnd()
5360
    self._oprot.trans.flush()
5361
 
5362
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5364
    if mtype == TMessageType.EXCEPTION:
5365
      x = TApplicationException()
5366
      x.read(self._iprot)
5367
      self._iprot.readMessageEnd()
5368
      raise x
5369
    result = getSnapdealItembySkuAtSnapdeal_result()
5370
    result.read(self._iprot)
5371
    self._iprot.readMessageEnd()
5372
    if result.success is not None:
5373
      return result.success
5374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5375
 
9621 manish.sha 5376
  def getProductFeedSubmit(self, catalogItemId):
5377
    """
5378
    Parameters:
5379
     - catalogItemId
5380
    """
5381
    self.send_getProductFeedSubmit(catalogItemId)
5382
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5383
 
9621 manish.sha 5384
  def send_getProductFeedSubmit(self, catalogItemId):
5385
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5386
    args = getProductFeedSubmit_args()
5387
    args.catalogItemId = catalogItemId
5388
    args.write(self._oprot)
5389
    self._oprot.writeMessageEnd()
5390
    self._oprot.trans.flush()
5391
 
5392
  def recv_getProductFeedSubmit(self, ):
5393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5394
    if mtype == TMessageType.EXCEPTION:
5395
      x = TApplicationException()
5396
      x.read(self._iprot)
5397
      self._iprot.readMessageEnd()
5398
      raise x
5399
    result = getProductFeedSubmit_result()
5400
    result.read(self._iprot)
5401
    self._iprot.readMessageEnd()
5402
    if result.success is not None:
5403
      return result.success
5404
    if result.cex is not None:
5405
      raise result.cex
5406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5407
 
5408
  def addProductFeedSubmit(self, productFeedSubmit):
5409
    """
5410
    Parameters:
5411
     - productFeedSubmit
5412
    """
5413
    self.send_addProductFeedSubmit(productFeedSubmit)
5414
    return self.recv_addProductFeedSubmit()
5415
 
5416
  def send_addProductFeedSubmit(self, productFeedSubmit):
5417
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5418
    args = addProductFeedSubmit_args()
5419
    args.productFeedSubmit = productFeedSubmit
5420
    args.write(self._oprot)
5421
    self._oprot.writeMessageEnd()
5422
    self._oprot.trans.flush()
5423
 
5424
  def recv_addProductFeedSubmit(self, ):
5425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5426
    if mtype == TMessageType.EXCEPTION:
5427
      x = TApplicationException()
5428
      x.read(self._iprot)
5429
      self._iprot.readMessageEnd()
5430
      raise x
5431
    result = addProductFeedSubmit_result()
5432
    result.read(self._iprot)
5433
    self._iprot.readMessageEnd()
5434
    if result.success is not None:
5435
      return result.success
5436
    if result.cex is not None:
5437
      raise result.cex
5438
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5439
 
5440
  def updateProductFeedSubmit(self, productFeedSubmit):
5441
    """
5442
    Parameters:
5443
     - productFeedSubmit
5444
    """
5445
    self.send_updateProductFeedSubmit(productFeedSubmit)
5446
    return self.recv_updateProductFeedSubmit()
5447
 
5448
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5449
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5450
    args = updateProductFeedSubmit_args()
5451
    args.productFeedSubmit = productFeedSubmit
5452
    args.write(self._oprot)
5453
    self._oprot.writeMessageEnd()
5454
    self._oprot.trans.flush()
5455
 
5456
  def recv_updateProductFeedSubmit(self, ):
5457
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5458
    if mtype == TMessageType.EXCEPTION:
5459
      x = TApplicationException()
5460
      x.read(self._iprot)
5461
      self._iprot.readMessageEnd()
5462
      raise x
5463
    result = updateProductFeedSubmit_result()
5464
    result.read(self._iprot)
5465
    self._iprot.readMessageEnd()
5466
    if result.success is not None:
5467
      return result.success
5468
    if result.cex is not None:
5469
      raise result.cex
5470
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5471
 
5472
  def deleteProductFeedSubmit(self, catalogItemId):
5473
    """
5474
    Parameters:
5475
     - catalogItemId
5476
    """
5477
    self.send_deleteProductFeedSubmit(catalogItemId)
5478
    return self.recv_deleteProductFeedSubmit()
5479
 
5480
  def send_deleteProductFeedSubmit(self, catalogItemId):
5481
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5482
    args = deleteProductFeedSubmit_args()
5483
    args.catalogItemId = catalogItemId
5484
    args.write(self._oprot)
5485
    self._oprot.writeMessageEnd()
5486
    self._oprot.trans.flush()
5487
 
5488
  def recv_deleteProductFeedSubmit(self, ):
5489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5490
    if mtype == TMessageType.EXCEPTION:
5491
      x = TApplicationException()
5492
      x.read(self._iprot)
5493
      self._iprot.readMessageEnd()
5494
      raise x
5495
    result = deleteProductFeedSubmit_result()
5496
    result.read(self._iprot)
5497
    self._iprot.readMessageEnd()
5498
    if result.success is not None:
5499
      return result.success
5500
    if result.cex is not None:
5501
      raise result.cex
5502
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5503
 
5504
  def getAllProductFeedSubmit(self, ):
5505
    self.send_getAllProductFeedSubmit()
5506
    return self.recv_getAllProductFeedSubmit()
5507
 
5508
  def send_getAllProductFeedSubmit(self, ):
5509
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5510
    args = getAllProductFeedSubmit_args()
5511
    args.write(self._oprot)
5512
    self._oprot.writeMessageEnd()
5513
    self._oprot.trans.flush()
5514
 
5515
  def recv_getAllProductFeedSubmit(self, ):
5516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5517
    if mtype == TMessageType.EXCEPTION:
5518
      x = TApplicationException()
5519
      x.read(self._iprot)
5520
      self._iprot.readMessageEnd()
5521
      raise x
5522
    result = getAllProductFeedSubmit_result()
5523
    result.read(self._iprot)
5524
    self._iprot.readMessageEnd()
5525
    if result.success is not None:
5526
      return result.success
5527
    if result.cex is not None:
5528
      raise result.cex
5529
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5530
 
9724 kshitij.so 5531
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5532
    """
5533
    Parameters:
5534
     - itemId
5535
     - sourceId
5536
    """
5537
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5538
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5539
 
9724 kshitij.so 5540
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5541
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5542
    args = getMarketplacedetailsForItem_args()
5543
    args.itemId = itemId
5544
    args.sourceId = sourceId
5545
    args.write(self._oprot)
5546
    self._oprot.writeMessageEnd()
5547
    self._oprot.trans.flush()
5548
 
5549
  def recv_getMarketplacedetailsForItem(self, ):
5550
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5551
    if mtype == TMessageType.EXCEPTION:
5552
      x = TApplicationException()
5553
      x.read(self._iprot)
5554
      self._iprot.readMessageEnd()
5555
      raise x
5556
    result = getMarketplacedetailsForItem_result()
5557
    result.read(self._iprot)
5558
    self._iprot.readMessageEnd()
5559
    if result.success is not None:
5560
      return result.success
5561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5562
 
5563
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5564
    """
5565
    Parameters:
5566
     - marketPlaceItem
5567
    """
5568
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5569
    return self.recv_updateMarketplaceAttributesForItem()
5570
 
5571
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5572
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5573
    args = updateMarketplaceAttributesForItem_args()
5574
    args.marketPlaceItem = marketPlaceItem
5575
    args.write(self._oprot)
5576
    self._oprot.writeMessageEnd()
5577
    self._oprot.trans.flush()
5578
 
5579
  def recv_updateMarketplaceAttributesForItem(self, ):
5580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5581
    if mtype == TMessageType.EXCEPTION:
5582
      x = TApplicationException()
5583
      x.read(self._iprot)
5584
      self._iprot.readMessageEnd()
5585
      raise x
5586
    result = updateMarketplaceAttributesForItem_result()
5587
    result.read(self._iprot)
5588
    self._iprot.readMessageEnd()
5589
    if result.success is not None:
5590
      return result.success
5591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5592
 
9779 kshitij.so 5593
  def getCostingForMarketplace(self, source, item_id):
5594
    """
5595
    Parameters:
5596
     - source
5597
     - item_id
5598
    """
5599
    self.send_getCostingForMarketplace(source, item_id)
5600
    return self.recv_getCostingForMarketplace()
5601
 
5602
  def send_getCostingForMarketplace(self, source, item_id):
5603
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5604
    args = getCostingForMarketplace_args()
5605
    args.source = source
5606
    args.item_id = item_id
5607
    args.write(self._oprot)
5608
    self._oprot.writeMessageEnd()
5609
    self._oprot.trans.flush()
5610
 
5611
  def recv_getCostingForMarketplace(self, ):
5612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5613
    if mtype == TMessageType.EXCEPTION:
5614
      x = TApplicationException()
5615
      x.read(self._iprot)
5616
      self._iprot.readMessageEnd()
5617
      raise x
5618
    result = getCostingForMarketplace_result()
5619
    result.read(self._iprot)
5620
    self._iprot.readMessageEnd()
5621
    if result.success is not None:
5622
      return result.success
5623
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5624
 
9776 vikram.rag 5625
  def getMarketPlaceItemsForPriceUpdate(self, source):
5626
    """
5627
    Parameters:
5628
     - source
5629
    """
5630
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5631
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5632
 
9776 vikram.rag 5633
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5634
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5635
    args = getMarketPlaceItemsForPriceUpdate_args()
5636
    args.source = source
5637
    args.write(self._oprot)
5638
    self._oprot.writeMessageEnd()
5639
    self._oprot.trans.flush()
5640
 
5641
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5643
    if mtype == TMessageType.EXCEPTION:
5644
      x = TApplicationException()
5645
      x.read(self._iprot)
5646
      self._iprot.readMessageEnd()
5647
      raise x
5648
    result = getMarketPlaceItemsForPriceUpdate_result()
5649
    result.read(self._iprot)
5650
    self._iprot.readMessageEnd()
5651
    if result.success is not None:
5652
      return result.success
5653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5654
 
9816 kshitij.so 5655
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5656
    """
5657
    Parameters:
5658
     - skulist
5659
     - timestamp
9816 kshitij.so 5660
     - source
9776 vikram.rag 5661
    """
9816 kshitij.so 5662
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5663
    self.recv_updateMarketPlacePriceUpdateStatus()
5664
 
9816 kshitij.so 5665
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5666
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5667
    args = updateMarketPlacePriceUpdateStatus_args()
5668
    args.skulist = skulist
5669
    args.timestamp = timestamp
9816 kshitij.so 5670
    args.source = source
9776 vikram.rag 5671
    args.write(self._oprot)
5672
    self._oprot.writeMessageEnd()
5673
    self._oprot.trans.flush()
5674
 
5675
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5676
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5677
    if mtype == TMessageType.EXCEPTION:
5678
      x = TApplicationException()
5679
      x.read(self._iprot)
5680
      self._iprot.readMessageEnd()
5681
      raise x
5682
    result = updateMarketPlacePriceUpdateStatus_result()
5683
    result.read(self._iprot)
5684
    self._iprot.readMessageEnd()
5685
    return
5686
 
9861 rajveer 5687
  def updateItemHoldInventory(self, itemHoldMap):
5688
    """
5689
    Parameters:
5690
     - itemHoldMap
5691
    """
5692
    self.send_updateItemHoldInventory(itemHoldMap)
5693
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5694
 
9861 rajveer 5695
  def send_updateItemHoldInventory(self, itemHoldMap):
5696
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5697
    args = updateItemHoldInventory_args()
5698
    args.itemHoldMap = itemHoldMap
5699
    args.write(self._oprot)
5700
    self._oprot.writeMessageEnd()
5701
    self._oprot.trans.flush()
5702
 
5703
  def recv_updateItemHoldInventory(self, ):
5704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5705
    if mtype == TMessageType.EXCEPTION:
5706
      x = TApplicationException()
5707
      x.read(self._iprot)
5708
      self._iprot.readMessageEnd()
5709
      raise x
5710
    result = updateItemHoldInventory_result()
5711
    result.read(self._iprot)
5712
    self._iprot.readMessageEnd()
5713
    return
5714
 
9895 vikram.rag 5715
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5716
    """
5717
    Parameters:
5718
     - item_id
5719
     - vendor_id
5720
     - nlc
5721
    """
5722
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5723
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5724
 
9895 vikram.rag 5725
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5726
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5727
    args = updateNlcAtMarketplaces_args()
5728
    args.item_id = item_id
5729
    args.vendor_id = vendor_id
5730
    args.nlc = nlc
5731
    args.write(self._oprot)
5732
    self._oprot.writeMessageEnd()
5733
    self._oprot.trans.flush()
5734
 
5735
  def recv_updateNlcAtMarketplaces(self, ):
5736
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5737
    if mtype == TMessageType.EXCEPTION:
5738
      x = TApplicationException()
5739
      x.read(self._iprot)
5740
      self._iprot.readMessageEnd()
5741
      raise x
5742
    result = updateNlcAtMarketplaces_result()
5743
    result.read(self._iprot)
5744
    self._iprot.readMessageEnd()
5745
    return
5746
 
9945 vikram.rag 5747
  def getAllFlipkartItems(self, ):
5748
    self.send_getAllFlipkartItems()
5749
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5750
 
9945 vikram.rag 5751
  def send_getAllFlipkartItems(self, ):
5752
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5753
    args = getAllFlipkartItems_args()
5754
    args.write(self._oprot)
5755
    self._oprot.writeMessageEnd()
5756
    self._oprot.trans.flush()
5757
 
5758
  def recv_getAllFlipkartItems(self, ):
5759
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5760
    if mtype == TMessageType.EXCEPTION:
5761
      x = TApplicationException()
5762
      x.read(self._iprot)
5763
      self._iprot.readMessageEnd()
5764
      raise x
5765
    result = getAllFlipkartItems_result()
5766
    result.read(self._iprot)
5767
    self._iprot.readMessageEnd()
5768
    if result.success is not None:
5769
      return result.success
5770
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5771
 
10097 kshitij.so 5772
  def addOrUpdateFlipkartItem(self, flipkartitem):
5773
    """
5774
    Parameters:
5775
     - flipkartitem
5776
    """
5777
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5778
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5779
 
10097 kshitij.so 5780
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5781
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5782
    args = addOrUpdateFlipkartItem_args()
5783
    args.flipkartitem = flipkartitem
5784
    args.write(self._oprot)
5785
    self._oprot.writeMessageEnd()
5786
    self._oprot.trans.flush()
5787
 
5788
  def recv_addOrUpdateFlipkartItem(self, ):
5789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5790
    if mtype == TMessageType.EXCEPTION:
5791
      x = TApplicationException()
5792
      x.read(self._iprot)
5793
      self._iprot.readMessageEnd()
5794
      raise x
5795
    result = addOrUpdateFlipkartItem_result()
5796
    result.read(self._iprot)
5797
    self._iprot.readMessageEnd()
5798
    if result.success is not None:
5799
      return result.success
5800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5801
 
5802
  def getFlipkartItem(self, item_id):
5803
    """
5804
    Parameters:
5805
     - item_id
5806
    """
5807
    self.send_getFlipkartItem(item_id)
5808
    return self.recv_getFlipkartItem()
5809
 
5810
  def send_getFlipkartItem(self, item_id):
5811
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5812
    args = getFlipkartItem_args()
5813
    args.item_id = item_id
5814
    args.write(self._oprot)
5815
    self._oprot.writeMessageEnd()
5816
    self._oprot.trans.flush()
5817
 
5818
  def recv_getFlipkartItem(self, ):
5819
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5820
    if mtype == TMessageType.EXCEPTION:
5821
      x = TApplicationException()
5822
      x.read(self._iprot)
5823
      self._iprot.readMessageEnd()
5824
      raise x
5825
    result = getFlipkartItem_result()
5826
    result.read(self._iprot)
5827
    self._iprot.readMessageEnd()
5828
    if result.success is not None:
5829
      return result.success
5830
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5831
 
5832
  def getFlipkartItemDetails(self, item_id):
5833
    """
5834
    Parameters:
5835
     - item_id
5836
    """
5837
    self.send_getFlipkartItemDetails(item_id)
5838
    return self.recv_getFlipkartItemDetails()
5839
 
5840
  def send_getFlipkartItemDetails(self, item_id):
5841
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5842
    args = getFlipkartItemDetails_args()
5843
    args.item_id = item_id
5844
    args.write(self._oprot)
5845
    self._oprot.writeMessageEnd()
5846
    self._oprot.trans.flush()
5847
 
5848
  def recv_getFlipkartItemDetails(self, ):
5849
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5850
    if mtype == TMessageType.EXCEPTION:
5851
      x = TApplicationException()
5852
      x.read(self._iprot)
5853
      self._iprot.readMessageEnd()
5854
      raise x
5855
    result = getFlipkartItemDetails_result()
5856
    result.read(self._iprot)
5857
    self._iprot.readMessageEnd()
5858
    if result.success is not None:
5859
      return result.success
5860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5861
 
5862
  def getFlipkartItems(self, offset, limit):
5863
    """
5864
    Parameters:
5865
     - offset
5866
     - limit
5867
    """
5868
    self.send_getFlipkartItems(offset, limit)
5869
    return self.recv_getFlipkartItems()
5870
 
5871
  def send_getFlipkartItems(self, offset, limit):
5872
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5873
    args = getFlipkartItems_args()
5874
    args.offset = offset
5875
    args.limit = limit
5876
    args.write(self._oprot)
5877
    self._oprot.writeMessageEnd()
5878
    self._oprot.trans.flush()
5879
 
5880
  def recv_getFlipkartItems(self, ):
5881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5882
    if mtype == TMessageType.EXCEPTION:
5883
      x = TApplicationException()
5884
      x.read(self._iprot)
5885
      self._iprot.readMessageEnd()
5886
      raise x
5887
    result = getFlipkartItems_result()
5888
    result.read(self._iprot)
5889
    self._iprot.readMessageEnd()
5890
    if result.success is not None:
5891
      return result.success
5892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5893
 
5894
  def searchFlipkartItems(self, searchTerm, offset, limit):
5895
    """
5896
    Parameters:
5897
     - searchTerm
5898
     - offset
5899
     - limit
5900
    """
5901
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5902
    return self.recv_searchFlipkartItems()
5903
 
5904
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5905
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5906
    args = searchFlipkartItems_args()
5907
    args.searchTerm = searchTerm
5908
    args.offset = offset
5909
    args.limit = limit
5910
    args.write(self._oprot)
5911
    self._oprot.writeMessageEnd()
5912
    self._oprot.trans.flush()
5913
 
5914
  def recv_searchFlipkartItems(self, ):
5915
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5916
    if mtype == TMessageType.EXCEPTION:
5917
      x = TApplicationException()
5918
      x.read(self._iprot)
5919
      self._iprot.readMessageEnd()
5920
      raise x
5921
    result = searchFlipkartItems_result()
5922
    result.read(self._iprot)
5923
    self._iprot.readMessageEnd()
5924
    if result.success is not None:
5925
      return result.success
5926
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5927
 
5928
  def getCountForFlipkartItems(self, ):
5929
    self.send_getCountForFlipkartItems()
5930
    return self.recv_getCountForFlipkartItems()
5931
 
5932
  def send_getCountForFlipkartItems(self, ):
5933
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5934
    args = getCountForFlipkartItems_args()
5935
    args.write(self._oprot)
5936
    self._oprot.writeMessageEnd()
5937
    self._oprot.trans.flush()
5938
 
5939
  def recv_getCountForFlipkartItems(self, ):
5940
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5941
    if mtype == TMessageType.EXCEPTION:
5942
      x = TApplicationException()
5943
      x.read(self._iprot)
5944
      self._iprot.readMessageEnd()
5945
      raise x
5946
    result = getCountForFlipkartItems_result()
5947
    result.read(self._iprot)
5948
    self._iprot.readMessageEnd()
5949
    if result.success is not None:
5950
      return result.success
5951
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5952
 
5953
  def getFlipkartSearchResultCount(self, searchTerm):
5954
    """
5955
    Parameters:
5956
     - searchTerm
5957
    """
5958
    self.send_getFlipkartSearchResultCount(searchTerm)
5959
    return self.recv_getFlipkartSearchResultCount()
5960
 
5961
  def send_getFlipkartSearchResultCount(self, searchTerm):
5962
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5963
    args = getFlipkartSearchResultCount_args()
5964
    args.searchTerm = searchTerm
5965
    args.write(self._oprot)
5966
    self._oprot.writeMessageEnd()
5967
    self._oprot.trans.flush()
5968
 
5969
  def recv_getFlipkartSearchResultCount(self, ):
5970
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5971
    if mtype == TMessageType.EXCEPTION:
5972
      x = TApplicationException()
5973
      x.read(self._iprot)
5974
      self._iprot.readMessageEnd()
5975
      raise x
5976
    result = getFlipkartSearchResultCount_result()
5977
    result.read(self._iprot)
5978
    self._iprot.readMessageEnd()
5979
    if result.success is not None:
5980
      return result.success
5981
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5982
 
5983
  def getAllFkItems(self, ):
5984
    self.send_getAllFkItems()
5985
    return self.recv_getAllFkItems()
5986
 
5987
  def send_getAllFkItems(self, ):
5988
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5989
    args = getAllFkItems_args()
5990
    args.write(self._oprot)
5991
    self._oprot.writeMessageEnd()
5992
    self._oprot.trans.flush()
5993
 
5994
  def recv_getAllFkItems(self, ):
5995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5996
    if mtype == TMessageType.EXCEPTION:
5997
      x = TApplicationException()
5998
      x.read(self._iprot)
5999
      self._iprot.readMessageEnd()
6000
      raise x
6001
    result = getAllFkItems_result()
6002
    result.read(self._iprot)
6003
    self._iprot.readMessageEnd()
6004
    if result.success is not None:
6005
      return result.success
6006
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6007
 
10140 vikram.rag 6008
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6009
    """
6010
    Parameters:
6011
     - sku
6012
    """
6013
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6014
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6015
 
10140 vikram.rag 6016
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6017
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6018
    args = getFlipkartItemBySkyAtFlipkart_args()
6019
    args.sku = sku
6020
    args.write(self._oprot)
6021
    self._oprot.writeMessageEnd()
6022
    self._oprot.trans.flush()
6023
 
6024
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6025
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6026
    if mtype == TMessageType.EXCEPTION:
6027
      x = TApplicationException()
6028
      x.read(self._iprot)
6029
      self._iprot.readMessageEnd()
6030
      raise x
6031
    result = getFlipkartItemBySkyAtFlipkart_result()
6032
    result.read(self._iprot)
6033
    self._iprot.readMessageEnd()
6034
    if result.success is not None:
6035
      return result.success
6036
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6037
 
11015 kshitij.so 6038
  def getMarketplaceHistory(self, source, offset, itemId):
6039
    """
6040
    Parameters:
6041
     - source
6042
     - offset
6043
     - itemId
6044
    """
6045
    self.send_getMarketplaceHistory(source, offset, itemId)
6046
    return self.recv_getMarketplaceHistory()
6047
 
6048
  def send_getMarketplaceHistory(self, source, offset, itemId):
6049
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6050
    args = getMarketplaceHistory_args()
6051
    args.source = source
6052
    args.offset = offset
6053
    args.itemId = itemId
6054
    args.write(self._oprot)
6055
    self._oprot.writeMessageEnd()
6056
    self._oprot.trans.flush()
6057
 
6058
  def recv_getMarketplaceHistory(self, ):
6059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6060
    if mtype == TMessageType.EXCEPTION:
6061
      x = TApplicationException()
6062
      x.read(self._iprot)
6063
      self._iprot.readMessageEnd()
6064
      raise x
6065
    result = getMarketplaceHistory_result()
6066
    result.read(self._iprot)
6067
    self._iprot.readMessageEnd()
6068
    if result.success is not None:
6069
      return result.success
6070
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6071
 
10909 vikram.rag 6072
  def getAllFbbListedItems(self, ):
6073
    self.send_getAllFbbListedItems()
6074
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6075
 
10909 vikram.rag 6076
  def send_getAllFbbListedItems(self, ):
6077
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6078
    args = getAllFbbListedItems_args()
6079
    args.write(self._oprot)
6080
    self._oprot.writeMessageEnd()
6081
    self._oprot.trans.flush()
6082
 
6083
  def recv_getAllFbbListedItems(self, ):
6084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6085
    if mtype == TMessageType.EXCEPTION:
6086
      x = TApplicationException()
6087
      x.read(self._iprot)
6088
      self._iprot.readMessageEnd()
6089
      raise x
6090
    result = getAllFbbListedItems_result()
6091
    result.read(self._iprot)
6092
    self._iprot.readMessageEnd()
6093
    if result.success is not None:
6094
      return result.success
6095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6096
 
10924 vikram.rag 6097
  def getAllFbbPricingItems(self, ):
6098
    self.send_getAllFbbPricingItems()
6099
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6100
 
10924 vikram.rag 6101
  def send_getAllFbbPricingItems(self, ):
6102
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6103
    args = getAllFbbPricingItems_args()
6104
    args.write(self._oprot)
6105
    self._oprot.writeMessageEnd()
6106
    self._oprot.trans.flush()
6107
 
6108
  def recv_getAllFbbPricingItems(self, ):
6109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6110
    if mtype == TMessageType.EXCEPTION:
6111
      x = TApplicationException()
6112
      x.read(self._iprot)
6113
      self._iprot.readMessageEnd()
6114
      raise x
6115
    result = getAllFbbPricingItems_result()
6116
    result.read(self._iprot)
6117
    self._iprot.readMessageEnd()
6118
    if result.success is not None:
6119
      return result.success
6120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6121
 
11015 kshitij.so 6122
  def getCountForMarketplaceHistory(self, source, itemId):
6123
    """
6124
    Parameters:
6125
     - source
6126
     - itemId
6127
    """
6128
    self.send_getCountForMarketplaceHistory(source, itemId)
6129
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6130
 
11015 kshitij.so 6131
  def send_getCountForMarketplaceHistory(self, source, itemId):
6132
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6133
    args = getCountForMarketplaceHistory_args()
6134
    args.source = source
6135
    args.itemId = itemId
6136
    args.write(self._oprot)
6137
    self._oprot.writeMessageEnd()
6138
    self._oprot.trans.flush()
6139
 
6140
  def recv_getCountForMarketplaceHistory(self, ):
6141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6142
    if mtype == TMessageType.EXCEPTION:
6143
      x = TApplicationException()
6144
      x.read(self._iprot)
6145
      self._iprot.readMessageEnd()
6146
      raise x
6147
    result = getCountForMarketplaceHistory_result()
6148
    result.read(self._iprot)
6149
    self._iprot.readMessageEnd()
6150
    if result.success is not None:
6151
      return result.success
6152
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6153
 
6154
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6155
    """
6156
    Parameters:
6157
     - source
6158
     - startDate
6159
     - endDate
6160
     - offset
6161
     - limit
6162
     - itemId
6163
    """
6164
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6165
    return self.recv_getMarketplaceHistoryByDate()
6166
 
6167
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6168
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6169
    args = getMarketplaceHistoryByDate_args()
6170
    args.source = source
6171
    args.startDate = startDate
6172
    args.endDate = endDate
6173
    args.offset = offset
6174
    args.limit = limit
6175
    args.itemId = itemId
6176
    args.write(self._oprot)
6177
    self._oprot.writeMessageEnd()
6178
    self._oprot.trans.flush()
6179
 
6180
  def recv_getMarketplaceHistoryByDate(self, ):
6181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6182
    if mtype == TMessageType.EXCEPTION:
6183
      x = TApplicationException()
6184
      x.read(self._iprot)
6185
      self._iprot.readMessageEnd()
6186
      raise x
6187
    result = getMarketplaceHistoryByDate_result()
6188
    result.read(self._iprot)
6189
    self._iprot.readMessageEnd()
6190
    if result.success is not None:
6191
      return result.success
6192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6193
 
11531 vikram.rag 6194
  def getPrivateDealDetails(self, item_id):
6195
    """
6196
    Parameters:
6197
     - item_id
6198
    """
6199
    self.send_getPrivateDealDetails(item_id)
6200
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6201
 
11531 vikram.rag 6202
  def send_getPrivateDealDetails(self, item_id):
6203
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6204
    args = getPrivateDealDetails_args()
6205
    args.item_id = item_id
6206
    args.write(self._oprot)
6207
    self._oprot.writeMessageEnd()
6208
    self._oprot.trans.flush()
6209
 
6210
  def recv_getPrivateDealDetails(self, ):
6211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6212
    if mtype == TMessageType.EXCEPTION:
6213
      x = TApplicationException()
6214
      x.read(self._iprot)
6215
      self._iprot.readMessageEnd()
6216
      raise x
6217
    result = getPrivateDealDetails_result()
6218
    result.read(self._iprot)
6219
    self._iprot.readMessageEnd()
6220
    if result.success is not None:
6221
      return result.success
6222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6223
 
6224
  def getPrivateDealItems(self, offset, limit):
6225
    """
6226
    Parameters:
6227
     - offset
6228
     - limit
6229
    """
6230
    self.send_getPrivateDealItems(offset, limit)
6231
    return self.recv_getPrivateDealItems()
6232
 
6233
  def send_getPrivateDealItems(self, offset, limit):
6234
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6235
    args = getPrivateDealItems_args()
6236
    args.offset = offset
6237
    args.limit = limit
6238
    args.write(self._oprot)
6239
    self._oprot.writeMessageEnd()
6240
    self._oprot.trans.flush()
6241
 
6242
  def recv_getPrivateDealItems(self, ):
6243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6244
    if mtype == TMessageType.EXCEPTION:
6245
      x = TApplicationException()
6246
      x.read(self._iprot)
6247
      self._iprot.readMessageEnd()
6248
      raise x
6249
    result = getPrivateDealItems_result()
6250
    result.read(self._iprot)
6251
    self._iprot.readMessageEnd()
6252
    if result.success is not None:
6253
      return result.success
6254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6255
 
11653 amit.gupta 6256
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6257
    """
6258
    Parameters:
6259
     - itemIds
6260
     - daysDelta
6261
    """
6262
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6263
    return self.recv_getAllActivePrivateDeals()
6264
 
11653 amit.gupta 6265
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6266
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6267
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6268
    args.itemIds = itemIds
6269
    args.daysDelta = daysDelta
11592 amit.gupta 6270
    args.write(self._oprot)
6271
    self._oprot.writeMessageEnd()
6272
    self._oprot.trans.flush()
6273
 
6274
  def recv_getAllActivePrivateDeals(self, ):
6275
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6276
    if mtype == TMessageType.EXCEPTION:
6277
      x = TApplicationException()
6278
      x.read(self._iprot)
6279
      self._iprot.readMessageEnd()
6280
      raise x
6281
    result = getAllActivePrivateDeals_result()
6282
    result.read(self._iprot)
6283
    self._iprot.readMessageEnd()
6284
    if result.success is not None:
6285
      return result.success
6286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6287
 
11531 vikram.rag 6288
  def addOrUpdatePrivateDeal(self, privateDeal):
6289
    """
6290
    Parameters:
6291
     - privateDeal
6292
    """
6293
    self.send_addOrUpdatePrivateDeal(privateDeal)
6294
    return self.recv_addOrUpdatePrivateDeal()
6295
 
6296
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6297
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6298
    args = addOrUpdatePrivateDeal_args()
6299
    args.privateDeal = privateDeal
6300
    args.write(self._oprot)
6301
    self._oprot.writeMessageEnd()
6302
    self._oprot.trans.flush()
6303
 
6304
  def recv_addOrUpdatePrivateDeal(self, ):
6305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6306
    if mtype == TMessageType.EXCEPTION:
6307
      x = TApplicationException()
6308
      x.read(self._iprot)
6309
      self._iprot.readMessageEnd()
6310
      raise x
6311
    result = addOrUpdatePrivateDeal_result()
6312
    result.read(self._iprot)
6313
    self._iprot.readMessageEnd()
6314
    if result.success is not None:
6315
      return result.success
6316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6317
 
11635 vikram.rag 6318
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6319
    """
6320
    Parameters:
6321
     - beginIndex
6322
     - totalItems
6323
    """
6324
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6325
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6326
 
11635 vikram.rag 6327
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6328
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6329
    args = getPrivateDealsCatalogIds_args()
6330
    args.beginIndex = beginIndex
6331
    args.totalItems = totalItems
6332
    args.write(self._oprot)
6333
    self._oprot.writeMessageEnd()
6334
    self._oprot.trans.flush()
6335
 
6336
  def recv_getPrivateDealsCatalogIds(self, ):
6337
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6338
    if mtype == TMessageType.EXCEPTION:
6339
      x = TApplicationException()
6340
      x.read(self._iprot)
6341
      self._iprot.readMessageEnd()
6342
      raise x
6343
    result = getPrivateDealsCatalogIds_result()
6344
    result.read(self._iprot)
6345
    self._iprot.readMessageEnd()
6346
    if result.success is not None:
6347
      return result.success
6348
    if result.cex is not None:
6349
      raise result.cex
6350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6351
 
11645 amit.gupta 6352
  def getPrivateDealsCount(self, ):
6353
    self.send_getPrivateDealsCount()
6354
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6355
 
11645 amit.gupta 6356
  def send_getPrivateDealsCount(self, ):
6357
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6358
    args = getPrivateDealsCount_args()
6359
    args.write(self._oprot)
6360
    self._oprot.writeMessageEnd()
6361
    self._oprot.trans.flush()
6362
 
6363
  def recv_getPrivateDealsCount(self, ):
6364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6365
    if mtype == TMessageType.EXCEPTION:
6366
      x = TApplicationException()
6367
      x.read(self._iprot)
6368
      self._iprot.readMessageEnd()
6369
      raise x
6370
    result = getPrivateDealsCount_result()
6371
    result.read(self._iprot)
6372
    self._iprot.readMessageEnd()
6373
    if result.success is not None:
6374
      return result.success
6375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6376
 
11905 kshitij.so 6377
  def getAmazonOutSyncItems(self, item_id):
6378
    """
6379
    Parameters:
6380
     - item_id
6381
    """
6382
    self.send_getAmazonOutSyncItems(item_id)
6383
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6384
 
11905 kshitij.so 6385
  def send_getAmazonOutSyncItems(self, item_id):
6386
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6387
    args = getAmazonOutSyncItems_args()
6388
    args.item_id = item_id
6389
    args.write(self._oprot)
6390
    self._oprot.writeMessageEnd()
6391
    self._oprot.trans.flush()
6392
 
6393
  def recv_getAmazonOutSyncItems(self, ):
6394
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6395
    if mtype == TMessageType.EXCEPTION:
6396
      x = TApplicationException()
6397
      x.read(self._iprot)
6398
      self._iprot.readMessageEnd()
6399
      raise x
6400
    result = getAmazonOutSyncItems_result()
6401
    result.read(self._iprot)
6402
    self._iprot.readMessageEnd()
6403
    if result.success is not None:
6404
      return result.success
6405
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6406
 
6407
  def getAllPrivateDealsComparison(self, ):
6408
    self.send_getAllPrivateDealsComparison()
6409
    return self.recv_getAllPrivateDealsComparison()
6410
 
6411
  def send_getAllPrivateDealsComparison(self, ):
6412
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6413
    args = getAllPrivateDealsComparison_args()
6414
    args.write(self._oprot)
6415
    self._oprot.writeMessageEnd()
6416
    self._oprot.trans.flush()
6417
 
6418
  def recv_getAllPrivateDealsComparison(self, ):
6419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6420
    if mtype == TMessageType.EXCEPTION:
6421
      x = TApplicationException()
6422
      x.read(self._iprot)
6423
      self._iprot.readMessageEnd()
6424
      raise x
6425
    result = getAllPrivateDealsComparison_result()
6426
    result.read(self._iprot)
6427
    self._iprot.readMessageEnd()
6428
    if result.success is not None:
6429
      return result.success
6430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6431
 
12133 kshitij.so 6432
  def getAllSnapdealMarketplaceItem(self, ):
6433
    self.send_getAllSnapdealMarketplaceItem()
6434
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6435
 
12133 kshitij.so 6436
  def send_getAllSnapdealMarketplaceItem(self, ):
6437
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6438
    args = getAllSnapdealMarketplaceItem_args()
6439
    args.write(self._oprot)
6440
    self._oprot.writeMessageEnd()
6441
    self._oprot.trans.flush()
6442
 
6443
  def recv_getAllSnapdealMarketplaceItem(self, ):
6444
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6445
    if mtype == TMessageType.EXCEPTION:
6446
      x = TApplicationException()
6447
      x.read(self._iprot)
6448
      self._iprot.readMessageEnd()
6449
      raise x
6450
    result = getAllSnapdealMarketplaceItem_result()
6451
    result.read(self._iprot)
6452
    self._iprot.readMessageEnd()
6453
    if result.success is not None:
6454
      return result.success
6455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6456
 
6457
  def getAllFlipkartMarketplaceItem(self, ):
6458
    self.send_getAllFlipkartMarketplaceItem()
6459
    return self.recv_getAllFlipkartMarketplaceItem()
6460
 
6461
  def send_getAllFlipkartMarketplaceItem(self, ):
6462
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6463
    args = getAllFlipkartMarketplaceItem_args()
6464
    args.write(self._oprot)
6465
    self._oprot.writeMessageEnd()
6466
    self._oprot.trans.flush()
6467
 
6468
  def recv_getAllFlipkartMarketplaceItem(self, ):
6469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6470
    if mtype == TMessageType.EXCEPTION:
6471
      x = TApplicationException()
6472
      x.read(self._iprot)
6473
      self._iprot.readMessageEnd()
6474
      raise x
6475
    result = getAllFlipkartMarketplaceItem_result()
6476
    result.read(self._iprot)
6477
    self._iprot.readMessageEnd()
6478
    if result.success is not None:
6479
      return result.success
6480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6481
 
12243 kshitij.so 6482
  def addCompetitorScraping(self, competitorPricingMap):
6483
    """
6484
    Parameters:
6485
     - competitorPricingMap
6486
    """
6487
    self.send_addCompetitorScraping(competitorPricingMap)
6488
    self.recv_addCompetitorScraping()
12133 kshitij.so 6489
 
12243 kshitij.so 6490
  def send_addCompetitorScraping(self, competitorPricingMap):
6491
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6492
    args = addCompetitorScraping_args()
6493
    args.competitorPricingMap = competitorPricingMap
6494
    args.write(self._oprot)
6495
    self._oprot.writeMessageEnd()
6496
    self._oprot.trans.flush()
6497
 
6498
  def recv_addCompetitorScraping(self, ):
6499
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6500
    if mtype == TMessageType.EXCEPTION:
6501
      x = TApplicationException()
6502
      x.read(self._iprot)
6503
      self._iprot.readMessageEnd()
6504
      raise x
6505
    result = addCompetitorScraping_result()
6506
    result.read(self._iprot)
6507
    self._iprot.readMessageEnd()
6508
    return
6509
 
6510
  def getPreviousCompetitorScraping(self, delta):
6511
    """
6512
    Parameters:
6513
     - delta
6514
    """
6515
    self.send_getPreviousCompetitorScraping(delta)
6516
    return self.recv_getPreviousCompetitorScraping()
6517
 
6518
  def send_getPreviousCompetitorScraping(self, delta):
6519
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6520
    args = getPreviousCompetitorScraping_args()
6521
    args.delta = delta
6522
    args.write(self._oprot)
6523
    self._oprot.writeMessageEnd()
6524
    self._oprot.trans.flush()
6525
 
6526
  def recv_getPreviousCompetitorScraping(self, ):
6527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6528
    if mtype == TMessageType.EXCEPTION:
6529
      x = TApplicationException()
6530
      x.read(self._iprot)
6531
      self._iprot.readMessageEnd()
6532
      raise x
6533
    result = getPreviousCompetitorScraping_result()
6534
    result.read(self._iprot)
6535
    self._iprot.readMessageEnd()
6536
    if result.success is not None:
6537
      return result.success
6538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6539
 
12256 kshitij.so 6540
  def getUploadResultById(self, uploadId):
6541
    """
6542
    Parameters:
6543
     - uploadId
6544
    """
6545
    self.send_getUploadResultById(uploadId)
6546
    return self.recv_getUploadResultById()
12243 kshitij.so 6547
 
12256 kshitij.so 6548
  def send_getUploadResultById(self, uploadId):
6549
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6550
    args = getUploadResultById_args()
6551
    args.uploadId = uploadId
6552
    args.write(self._oprot)
6553
    self._oprot.writeMessageEnd()
6554
    self._oprot.trans.flush()
6555
 
6556
  def recv_getUploadResultById(self, ):
6557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6558
    if mtype == TMessageType.EXCEPTION:
6559
      x = TApplicationException()
6560
      x.read(self._iprot)
6561
      self._iprot.readMessageEnd()
6562
      raise x
6563
    result = getUploadResultById_result()
6564
    result.read(self._iprot)
6565
    self._iprot.readMessageEnd()
6566
    if result.success is not None:
6567
      return result.success
6568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6569
 
12363 kshitij.so 6570
  def addAmazonPromotion(self, amazonPromotions):
6571
    """
6572
    Parameters:
6573
     - amazonPromotions
6574
    """
6575
    self.send_addAmazonPromotion(amazonPromotions)
6576
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6577
 
12363 kshitij.so 6578
  def send_addAmazonPromotion(self, amazonPromotions):
6579
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6580
    args = addAmazonPromotion_args()
6581
    args.amazonPromotions = amazonPromotions
6582
    args.write(self._oprot)
6583
    self._oprot.writeMessageEnd()
6584
    self._oprot.trans.flush()
6585
 
6586
  def recv_addAmazonPromotion(self, ):
6587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6588
    if mtype == TMessageType.EXCEPTION:
6589
      x = TApplicationException()
6590
      x.read(self._iprot)
6591
      self._iprot.readMessageEnd()
6592
      raise x
6593
    result = addAmazonPromotion_result()
6594
    result.read(self._iprot)
6595
    self._iprot.readMessageEnd()
6596
    if result.success is not None:
6597
      return result.success
6598
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6599
 
6600
  def getAmazonPromotion(self, startDate, endDate):
6601
    """
6602
    Parameters:
6603
     - startDate
6604
     - endDate
6605
    """
6606
    self.send_getAmazonPromotion(startDate, endDate)
6607
    return self.recv_getAmazonPromotion()
6608
 
6609
  def send_getAmazonPromotion(self, startDate, endDate):
6610
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6611
    args = getAmazonPromotion_args()
6612
    args.startDate = startDate
6613
    args.endDate = endDate
6614
    args.write(self._oprot)
6615
    self._oprot.writeMessageEnd()
6616
    self._oprot.trans.flush()
6617
 
6618
  def recv_getAmazonPromotion(self, ):
6619
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6620
    if mtype == TMessageType.EXCEPTION:
6621
      x = TApplicationException()
6622
      x.read(self._iprot)
6623
      self._iprot.readMessageEnd()
6624
      raise x
6625
    result = getAmazonPromotion_result()
6626
    result.read(self._iprot)
6627
    self._iprot.readMessageEnd()
6628
    if result.success is not None:
6629
      return result.success
6630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6631
 
6632
  def updateAmazonPromotion(self, amazonPromotions):
6633
    """
6634
    Parameters:
6635
     - amazonPromotions
6636
    """
6637
    self.send_updateAmazonPromotion(amazonPromotions)
6638
    return self.recv_updateAmazonPromotion()
6639
 
6640
  def send_updateAmazonPromotion(self, amazonPromotions):
6641
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6642
    args = updateAmazonPromotion_args()
6643
    args.amazonPromotions = amazonPromotions
6644
    args.write(self._oprot)
6645
    self._oprot.writeMessageEnd()
6646
    self._oprot.trans.flush()
6647
 
6648
  def recv_updateAmazonPromotion(self, ):
6649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6650
    if mtype == TMessageType.EXCEPTION:
6651
      x = TApplicationException()
6652
      x.read(self._iprot)
6653
      self._iprot.readMessageEnd()
6654
      raise x
6655
    result = updateAmazonPromotion_result()
6656
    result.read(self._iprot)
6657
    self._iprot.readMessageEnd()
6658
    if result.success is not None:
6659
      return result.success
6660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6661
 
12567 amit.gupta 6662
  def markPartiallyActive(self, itemId, categoryId):
6663
    """
6664
    Parameters:
6665
     - itemId
6666
     - categoryId
6667
    """
6668
    self.send_markPartiallyActive(itemId, categoryId)
6669
    return self.recv_markPartiallyActive()
12363 kshitij.so 6670
 
12567 amit.gupta 6671
  def send_markPartiallyActive(self, itemId, categoryId):
6672
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6673
    args = markPartiallyActive_args()
6674
    args.itemId = itemId
6675
    args.categoryId = categoryId
6676
    args.write(self._oprot)
6677
    self._oprot.writeMessageEnd()
6678
    self._oprot.trans.flush()
6679
 
6680
  def recv_markPartiallyActive(self, ):
6681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6682
    if mtype == TMessageType.EXCEPTION:
6683
      x = TApplicationException()
6684
      x.read(self._iprot)
6685
      self._iprot.readMessageEnd()
6686
      raise x
6687
    result = markPartiallyActive_result()
6688
    result.read(self._iprot)
6689
    self._iprot.readMessageEnd()
6690
    if result.success is not None:
6691
      return result.success
6692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6693
 
6694
  def updateItemStateVat(self, itemId, statevat):
6695
    """
6696
    Parameters:
6697
     - itemId
6698
     - statevat
6699
    """
6700
    self.send_updateItemStateVat(itemId, statevat)
6701
    return self.recv_updateItemStateVat()
6702
 
6703
  def send_updateItemStateVat(self, itemId, statevat):
6704
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6705
    args = updateItemStateVat_args()
6706
    args.itemId = itemId
6707
    args.statevat = statevat
6708
    args.write(self._oprot)
6709
    self._oprot.writeMessageEnd()
6710
    self._oprot.trans.flush()
6711
 
6712
  def recv_updateItemStateVat(self, ):
6713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6714
    if mtype == TMessageType.EXCEPTION:
6715
      x = TApplicationException()
6716
      x.read(self._iprot)
6717
      self._iprot.readMessageEnd()
6718
      raise x
6719
    result = updateItemStateVat_result()
6720
    result.read(self._iprot)
6721
    self._iprot.readMessageEnd()
6722
    if result.success is not None:
6723
      return result.success
6724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6725
 
12620 amit.gupta 6726
  def getExAffiliateItemInfo(self, ):
6727
    self.send_getExAffiliateItemInfo()
6728
    return self.recv_getExAffiliateItemInfo()
12567 amit.gupta 6729
 
12620 amit.gupta 6730
  def send_getExAffiliateItemInfo(self, ):
6731
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
6732
    args = getExAffiliateItemInfo_args()
6733
    args.write(self._oprot)
6734
    self._oprot.writeMessageEnd()
6735
    self._oprot.trans.flush()
6736
 
6737
  def recv_getExAffiliateItemInfo(self, ):
6738
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6739
    if mtype == TMessageType.EXCEPTION:
6740
      x = TApplicationException()
6741
      x.read(self._iprot)
6742
      self._iprot.readMessageEnd()
6743
      raise x
6744
    result = getExAffiliateItemInfo_result()
6745
    result.read(self._iprot)
6746
    self._iprot.readMessageEnd()
6747
    if result.success is not None:
6748
      return result.success
6749
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6750
 
12888 kshitij.so 6751
  def getAllItemstoListOnFbg(self, ):
6752
    self.send_getAllItemstoListOnFbg()
6753
    return self.recv_getAllItemstoListOnFbg()
12620 amit.gupta 6754
 
12888 kshitij.so 6755
  def send_getAllItemstoListOnFbg(self, ):
6756
    self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)
6757
    args = getAllItemstoListOnFbg_args()
6758
    args.write(self._oprot)
6759
    self._oprot.writeMessageEnd()
6760
    self._oprot.trans.flush()
6761
 
6762
  def recv_getAllItemstoListOnFbg(self, ):
6763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6764
    if mtype == TMessageType.EXCEPTION:
6765
      x = TApplicationException()
6766
      x.read(self._iprot)
6767
      self._iprot.readMessageEnd()
6768
      raise x
6769
    result = getAllItemstoListOnFbg_result()
6770
    result.read(self._iprot)
6771
    self._iprot.readMessageEnd()
6772
    if result.success is not None:
6773
      return result.success
6774
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6775
 
6776
 
5944 mandeep.dh 6777
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6778
  def __init__(self, handler):
6779
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6780
    self._processMap["addItem"] = Processor.process_addItem
6781
    self._processMap["updateItem"] = Processor.process_updateItem
6782
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6783
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6784
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6785
    self._processMap["startItemOn"] = Processor.process_startItemOn
6786
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6787
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6788
    self._processMap["getItem"] = Processor.process_getItem
6789
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6790
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6791
    self._processMap["getAllItems"] = Processor.process_getAllItems
6792
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6793
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 6794
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 6795
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6796
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6797
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6798
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6799
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6800
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6801
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6802
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6803
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6804
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6805
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6806
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6807
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6808
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6809
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6810
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6811
    self._processMap["addCategory"] = Processor.process_addCategory
6812
    self._processMap["getCategory"] = Processor.process_getCategory
6813
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6814
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6815
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6816
    self._processMap["addTag"] = Processor.process_addTag
6817
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6818
    self._processMap["deleteTag"] = Processor.process_deleteTag
6819
    self._processMap["getAllTags"] = Processor.process_getAllTags
6820
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6821
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6822
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6823
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6824
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6825
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6826
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6827
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6828
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6829
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6830
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6831
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6832
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6833
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6834
    self._processMap["addCampaign"] = Processor.process_addCampaign
6835
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6836
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6837
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6838
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6839
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6840
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6841
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6842
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6843
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6844
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6845
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6846
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6847
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6848
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6849
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6850
    self._processMap["getAllSources"] = Processor.process_getAllSources
6851
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6852
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6853
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6854
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6855
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6856
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6857
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6858
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6859
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6860
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6861
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6862
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6863
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6864
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6865
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6866
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6867
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6868
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6869
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6870
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6871
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6872
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6873
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6874
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6875
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6876
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6877
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6878
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6879
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6880
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6881
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6882
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6883
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6884
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6885
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6886
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6887
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6888
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6889
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6890
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 6891
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 6892
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 6893
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
6894
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 6895
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
6896
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
6897
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 6898
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 6899
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 6900
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
6901
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 6902
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 6903
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
6904
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 6905
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 6906
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 6907
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
6908
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
6909
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6910
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6911
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6912
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6913
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6914
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6915
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6916
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6917
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6918
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6919
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6920
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6921
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6922
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6923
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6924
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6925
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6926
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6927
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6928
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6929
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6930
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6931
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6932
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6933
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 6934
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 6935
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 6936
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 6937
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 6938
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6939
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 6940
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
6941
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 6942
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 6943
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 6944
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 6945
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 6946
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
6947
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 6948
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6949
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 6950
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6951
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 6952
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 6953
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6954
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6955
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 6956
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6957
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
12620 amit.gupta 6958
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
12888 kshitij.so 6959
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
5944 mandeep.dh 6960
 
6961
  def process(self, iprot, oprot):
6962
    (name, type, seqid) = iprot.readMessageBegin()
6963
    if name not in self._processMap:
6964
      iprot.skip(TType.STRUCT)
6965
      iprot.readMessageEnd()
6966
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
6967
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
6968
      x.write(oprot)
6969
      oprot.writeMessageEnd()
6970
      oprot.trans.flush()
6971
      return
6972
    else:
6973
      self._processMap[name](self, seqid, iprot, oprot)
6974
    return True
6975
 
6976
  def process_addItem(self, seqid, iprot, oprot):
6977
    args = addItem_args()
6978
    args.read(iprot)
6979
    iprot.readMessageEnd()
6980
    result = addItem_result()
6981
    try:
6982
      result.success = self._handler.addItem(args.item)
6983
    except CatalogServiceException, cex:
6984
      result.cex = cex
6985
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
6986
    result.write(oprot)
6987
    oprot.writeMessageEnd()
6988
    oprot.trans.flush()
6989
 
6990
  def process_updateItem(self, seqid, iprot, oprot):
6991
    args = updateItem_args()
6992
    args.read(iprot)
6993
    iprot.readMessageEnd()
6994
    result = updateItem_result()
6995
    try:
6996
      result.success = self._handler.updateItem(args.item)
6997
    except CatalogServiceException, cex:
6998
      result.cex = cex
6999
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
7000
    result.write(oprot)
7001
    oprot.writeMessageEnd()
7002
    oprot.trans.flush()
7003
 
7004
  def process_isActive(self, seqid, iprot, oprot):
7005
    args = isActive_args()
7006
    args.read(iprot)
7007
    iprot.readMessageEnd()
7008
    result = isActive_result()
7009
    try:
7010
      result.success = self._handler.isActive(args.itemId)
7011
    except CatalogServiceException, isex:
7012
      result.isex = isex
7013
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
7014
    result.write(oprot)
7015
    oprot.writeMessageEnd()
7016
    oprot.trans.flush()
7017
 
7438 amit.gupta 7018
  def process_getItemsStatus(self, seqid, iprot, oprot):
7019
    args = getItemsStatus_args()
7020
    args.read(iprot)
7021
    iprot.readMessageEnd()
7022
    result = getItemsStatus_result()
7023
    try:
7024
      result.success = self._handler.getItemsStatus(args.itemIds)
7025
    except CatalogServiceException, isex:
7026
      result.isex = isex
7027
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
7028
    result.write(oprot)
7029
    oprot.writeMessageEnd()
7030
    oprot.trans.flush()
7031
 
5944 mandeep.dh 7032
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
7033
    args = getItemStatusDescription_args()
7034
    args.read(iprot)
7035
    iprot.readMessageEnd()
7036
    result = getItemStatusDescription_result()
7037
    try:
7038
      result.success = self._handler.getItemStatusDescription(args.itemId)
7039
    except CatalogServiceException, isex:
7040
      result.isex = isex
7041
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
7042
    result.write(oprot)
7043
    oprot.writeMessageEnd()
7044
    oprot.trans.flush()
7045
 
7046
  def process_startItemOn(self, seqid, iprot, oprot):
7047
    args = startItemOn_args()
7048
    args.read(iprot)
7049
    iprot.readMessageEnd()
7050
    result = startItemOn_result()
7051
    try:
7052
      self._handler.startItemOn(args.item_id, args.timestamp)
7053
    except CatalogServiceException, cex:
7054
      result.cex = cex
7055
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
7056
    result.write(oprot)
7057
    oprot.writeMessageEnd()
7058
    oprot.trans.flush()
7059
 
7060
  def process_retireItemOn(self, seqid, iprot, oprot):
7061
    args = retireItemOn_args()
7062
    args.read(iprot)
7063
    iprot.readMessageEnd()
7064
    result = retireItemOn_result()
7065
    try:
7066
      self._handler.retireItemOn(args.item_id, args.timestamp)
7067
    except CatalogServiceException, cex:
7068
      result.cex = cex
7069
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7070
    result.write(oprot)
7071
    oprot.writeMessageEnd()
7072
    oprot.trans.flush()
7073
 
7074
  def process_changeItemStatus(self, seqid, iprot, oprot):
7075
    args = changeItemStatus_args()
7076
    args.read(iprot)
7077
    iprot.readMessageEnd()
7078
    result = changeItemStatus_result()
7079
    try:
7080
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7081
    except CatalogServiceException, cex:
7082
      result.cex = cex
7083
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7084
    result.write(oprot)
7085
    oprot.writeMessageEnd()
7086
    oprot.trans.flush()
7087
 
7088
  def process_getItem(self, seqid, iprot, oprot):
7089
    args = getItem_args()
7090
    args.read(iprot)
7091
    iprot.readMessageEnd()
7092
    result = getItem_result()
7093
    try:
7094
      result.success = self._handler.getItem(args.item_id)
7095
    except CatalogServiceException, cex:
7096
      result.cex = cex
7097
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7098
    result.write(oprot)
7099
    oprot.writeMessageEnd()
7100
    oprot.trans.flush()
7101
 
7102
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7103
    args = getItemsByCatalogId_args()
7104
    args.read(iprot)
7105
    iprot.readMessageEnd()
7106
    result = getItemsByCatalogId_result()
7107
    try:
7108
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7109
    except CatalogServiceException, cex:
7110
      result.cex = cex
7111
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7112
    result.write(oprot)
7113
    oprot.writeMessageEnd()
7114
    oprot.trans.flush()
7115
 
7116
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7117
    args = getValidItemsByCatalogId_args()
7118
    args.read(iprot)
7119
    iprot.readMessageEnd()
7120
    result = getValidItemsByCatalogId_result()
7121
    try:
7122
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7123
    except CatalogServiceException, cex:
7124
      result.cex = cex
7125
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7126
    result.write(oprot)
7127
    oprot.writeMessageEnd()
7128
    oprot.trans.flush()
7129
 
7130
  def process_getAllItems(self, seqid, iprot, oprot):
7131
    args = getAllItems_args()
7132
    args.read(iprot)
7133
    iprot.readMessageEnd()
7134
    result = getAllItems_result()
7135
    try:
7136
      result.success = self._handler.getAllItems(args.isActive)
7137
    except CatalogServiceException, cex:
7138
      result.cex = cex
7139
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7140
    result.write(oprot)
7141
    oprot.writeMessageEnd()
7142
    oprot.trans.flush()
7143
 
7144
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7145
    args = getAllItemsByStatus_args()
7146
    args.read(iprot)
7147
    iprot.readMessageEnd()
7148
    result = getAllItemsByStatus_result()
7149
    try:
7150
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7151
    except CatalogServiceException, cex:
7152
      result.cex = cex
7153
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7154
    result.write(oprot)
7155
    oprot.writeMessageEnd()
7156
    oprot.trans.flush()
7157
 
7158
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7159
    args = markItemAsContentComplete_args()
7160
    args.read(iprot)
7161
    iprot.readMessageEnd()
7162
    result = markItemAsContentComplete_result()
7163
    try:
9253 rajveer 7164
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7165
    except CatalogServiceException, cex:
7166
      result.cex = cex
7167
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7168
    result.write(oprot)
7169
    oprot.writeMessageEnd()
7170
    oprot.trans.flush()
7171
 
12567 amit.gupta 7172
  def process_getVatRates(self, seqid, iprot, oprot):
7173
    args = getVatRates_args()
7174
    args.read(iprot)
7175
    iprot.readMessageEnd()
7176
    result = getVatRates_result()
7177
    try:
7178
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7179
    except CatalogServiceException, cex:
7180
      result.cex = cex
7181
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7182
    result.write(oprot)
7183
    oprot.writeMessageEnd()
7184
    oprot.trans.flush()
7185
 
5944 mandeep.dh 7186
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7187
    args = getAllItemsInRange_args()
7188
    args.read(iprot)
7189
    iprot.readMessageEnd()
7190
    result = getAllItemsInRange_result()
7191
    try:
7192
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7193
    except CatalogServiceException, cex:
7194
      result.cex = cex
7195
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7196
    result.write(oprot)
7197
    oprot.writeMessageEnd()
7198
    oprot.trans.flush()
7199
 
7200
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7201
    args = getAllItemsByStatusInRange_args()
7202
    args.read(iprot)
7203
    iprot.readMessageEnd()
7204
    result = getAllItemsByStatusInRange_result()
7205
    try:
7206
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7207
    except CatalogServiceException, cex:
7208
      result.cex = cex
7209
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7210
    result.write(oprot)
7211
    oprot.writeMessageEnd()
7212
    oprot.trans.flush()
7213
 
7214
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7215
    args = getItemCountByStatus_args()
7216
    args.read(iprot)
7217
    iprot.readMessageEnd()
7218
    result = getItemCountByStatus_result()
7219
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7220
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7221
    result.write(oprot)
7222
    oprot.writeMessageEnd()
7223
    oprot.trans.flush()
7224
 
7225
  def process_getBestSellers(self, seqid, iprot, oprot):
7226
    args = getBestSellers_args()
7227
    args.read(iprot)
7228
    iprot.readMessageEnd()
7229
    result = getBestSellers_result()
7230
    try:
7231
      result.success = self._handler.getBestSellers()
7232
    except CatalogServiceException, isex:
7233
      result.isex = isex
7234
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7235
    result.write(oprot)
7236
    oprot.writeMessageEnd()
7237
    oprot.trans.flush()
7238
 
7239
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7240
    args = getBestSellersCatalogIds_args()
7241
    args.read(iprot)
7242
    iprot.readMessageEnd()
7243
    result = getBestSellersCatalogIds_result()
7244
    try:
7245
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7246
    except CatalogServiceException, cex:
7247
      result.cex = cex
7248
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7249
    result.write(oprot)
7250
    oprot.writeMessageEnd()
7251
    oprot.trans.flush()
7252
 
7253
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7254
    args = getBestSellersCount_args()
7255
    args.read(iprot)
7256
    iprot.readMessageEnd()
7257
    result = getBestSellersCount_result()
7258
    try:
7259
      result.success = self._handler.getBestSellersCount()
7260
    except CatalogServiceException, cex:
7261
      result.cex = cex
7262
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7263
    result.write(oprot)
7264
    oprot.writeMessageEnd()
7265
    oprot.trans.flush()
7266
 
7267
  def process_getBestDeals(self, seqid, iprot, oprot):
7268
    args = getBestDeals_args()
7269
    args.read(iprot)
7270
    iprot.readMessageEnd()
7271
    result = getBestDeals_result()
7272
    try:
7273
      result.success = self._handler.getBestDeals()
7274
    except CatalogServiceException, isex:
7275
      result.isex = isex
7276
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7277
    result.write(oprot)
7278
    oprot.writeMessageEnd()
7279
    oprot.trans.flush()
7280
 
7281
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7282
    args = getBestDealsCatalogIds_args()
7283
    args.read(iprot)
7284
    iprot.readMessageEnd()
7285
    result = getBestDealsCatalogIds_result()
7286
    try:
7287
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7288
    except CatalogServiceException, cex:
7289
      result.cex = cex
7290
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7291
    result.write(oprot)
7292
    oprot.writeMessageEnd()
7293
    oprot.trans.flush()
7294
 
7295
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7296
    args = getBestDealsCount_args()
7297
    args.read(iprot)
7298
    iprot.readMessageEnd()
7299
    result = getBestDealsCount_result()
7300
    try:
7301
      result.success = self._handler.getBestDealsCount()
7302
    except CatalogServiceException, cex:
7303
      result.cex = cex
7304
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7305
    result.write(oprot)
7306
    oprot.writeMessageEnd()
7307
    oprot.trans.flush()
7308
 
7309
  def process_getComingSoon(self, seqid, iprot, oprot):
7310
    args = getComingSoon_args()
7311
    args.read(iprot)
7312
    iprot.readMessageEnd()
7313
    result = getComingSoon_result()
7314
    try:
7315
      result.success = self._handler.getComingSoon()
7316
    except CatalogServiceException, isex:
7317
      result.isex = isex
7318
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7319
    result.write(oprot)
7320
    oprot.writeMessageEnd()
7321
    oprot.trans.flush()
7322
 
7323
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7324
    args = getComingSoonCatalogIds_args()
7325
    args.read(iprot)
7326
    iprot.readMessageEnd()
7327
    result = getComingSoonCatalogIds_result()
7328
    try:
7329
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7330
    except CatalogServiceException, cex:
7331
      result.cex = cex
7332
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7333
    result.write(oprot)
7334
    oprot.writeMessageEnd()
7335
    oprot.trans.flush()
7336
 
7337
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7338
    args = getComingSoonCount_args()
7339
    args.read(iprot)
7340
    iprot.readMessageEnd()
7341
    result = getComingSoonCount_result()
7342
    try:
7343
      result.success = self._handler.getComingSoonCount()
7344
    except CatalogServiceException, cex:
7345
      result.cex = cex
7346
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7347
    result.write(oprot)
7348
    oprot.writeMessageEnd()
7349
    oprot.trans.flush()
7350
 
7351
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7352
    args = getLatestArrivals_args()
7353
    args.read(iprot)
7354
    iprot.readMessageEnd()
7355
    result = getLatestArrivals_result()
7356
    try:
7357
      result.success = self._handler.getLatestArrivals()
7358
    except CatalogServiceException, isex:
7359
      result.isex = isex
7360
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7361
    result.write(oprot)
7362
    oprot.writeMessageEnd()
7363
    oprot.trans.flush()
7364
 
7365
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7366
    args = getLatestArrivalsCatalogIds_args()
7367
    args.read(iprot)
7368
    iprot.readMessageEnd()
7369
    result = getLatestArrivalsCatalogIds_result()
7370
    try:
7371
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7372
    except CatalogServiceException, cex:
7373
      result.cex = cex
7374
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7375
    result.write(oprot)
7376
    oprot.writeMessageEnd()
7377
    oprot.trans.flush()
7378
 
7379
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7380
    args = getLatestArrivalsCount_args()
7381
    args.read(iprot)
7382
    iprot.readMessageEnd()
7383
    result = getLatestArrivalsCount_result()
7384
    try:
7385
      result.success = self._handler.getLatestArrivalsCount()
7386
    except CatalogServiceException, cex:
7387
      result.cex = cex
7388
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7389
    result.write(oprot)
7390
    oprot.writeMessageEnd()
7391
    oprot.trans.flush()
7392
 
7393
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7394
    args = generateNewEntityID_args()
7395
    args.read(iprot)
7396
    iprot.readMessageEnd()
7397
    result = generateNewEntityID_result()
7398
    result.success = self._handler.generateNewEntityID()
7399
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7400
    result.write(oprot)
7401
    oprot.writeMessageEnd()
7402
    oprot.trans.flush()
7403
 
7404
  def process_addCategory(self, seqid, iprot, oprot):
7405
    args = addCategory_args()
7406
    args.read(iprot)
7407
    iprot.readMessageEnd()
7408
    result = addCategory_result()
7409
    result.success = self._handler.addCategory(args.category)
7410
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7411
    result.write(oprot)
7412
    oprot.writeMessageEnd()
7413
    oprot.trans.flush()
7414
 
7415
  def process_getCategory(self, seqid, iprot, oprot):
7416
    args = getCategory_args()
7417
    args.read(iprot)
7418
    iprot.readMessageEnd()
7419
    result = getCategory_result()
7420
    result.success = self._handler.getCategory(args.id)
7421
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7422
    result.write(oprot)
7423
    oprot.writeMessageEnd()
7424
    oprot.trans.flush()
7425
 
7426
  def process_getAllCategories(self, seqid, iprot, oprot):
7427
    args = getAllCategories_args()
7428
    args.read(iprot)
7429
    iprot.readMessageEnd()
7430
    result = getAllCategories_result()
7431
    result.success = self._handler.getAllCategories()
7432
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7433
    result.write(oprot)
7434
    oprot.writeMessageEnd()
7435
    oprot.trans.flush()
7436
 
7437
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7438
    args = getAllSimilarItems_args()
7439
    args.read(iprot)
7440
    iprot.readMessageEnd()
7441
    result = getAllSimilarItems_result()
7442
    result.success = self._handler.getAllSimilarItems(args.itemId)
7443
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7444
    result.write(oprot)
7445
    oprot.writeMessageEnd()
7446
    oprot.trans.flush()
7447
 
7448
  def process_addSimilarItem(self, seqid, iprot, oprot):
7449
    args = addSimilarItem_args()
7450
    args.read(iprot)
7451
    iprot.readMessageEnd()
7452
    result = addSimilarItem_result()
7453
    try:
7454
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7455
    except CatalogServiceException, cex:
7456
      result.cex = cex
7457
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7458
    result.write(oprot)
7459
    oprot.writeMessageEnd()
7460
    oprot.trans.flush()
7461
 
6512 kshitij.so 7462
  def process_addTag(self, seqid, iprot, oprot):
7463
    args = addTag_args()
7464
    args.read(iprot)
7465
    iprot.readMessageEnd()
7466
    result = addTag_result()
7467
    result.success = self._handler.addTag(args.displayName, args.itemId)
7468
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7469
    result.write(oprot)
7470
    oprot.writeMessageEnd()
7471
    oprot.trans.flush()
7472
 
7473
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7474
    args = deleteEntityTag_args()
7475
    args.read(iprot)
7476
    iprot.readMessageEnd()
7477
    result = deleteEntityTag_result()
7478
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7479
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7480
    result.write(oprot)
7481
    oprot.writeMessageEnd()
7482
    oprot.trans.flush()
7483
 
7484
  def process_deleteTag(self, seqid, iprot, oprot):
7485
    args = deleteTag_args()
7486
    args.read(iprot)
7487
    iprot.readMessageEnd()
7488
    result = deleteTag_result()
7489
    result.success = self._handler.deleteTag(args.displayName)
7490
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7491
    result.write(oprot)
7492
    oprot.writeMessageEnd()
7493
    oprot.trans.flush()
7494
 
7495
  def process_getAllTags(self, seqid, iprot, oprot):
7496
    args = getAllTags_args()
7497
    args.read(iprot)
7498
    iprot.readMessageEnd()
7499
    result = getAllTags_result()
7500
    result.success = self._handler.getAllTags()
7501
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7502
    result.write(oprot)
7503
    oprot.writeMessageEnd()
7504
    oprot.trans.flush()
7505
 
7506
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7507
    args = getAllEntitiesByTagName_args()
7508
    args.read(iprot)
7509
    iprot.readMessageEnd()
7510
    result = getAllEntitiesByTagName_result()
7511
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7512
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7513
    result.write(oprot)
7514
    oprot.writeMessageEnd()
7515
    oprot.trans.flush()
7516
 
6845 amit.gupta 7517
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7518
    args = getAllEntityTags_args()
7519
    args.read(iprot)
7520
    iprot.readMessageEnd()
7521
    result = getAllEntityTags_result()
7522
    result.success = self._handler.getAllEntityTags()
7523
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7524
    result.write(oprot)
7525
    oprot.writeMessageEnd()
7526
    oprot.trans.flush()
7527
 
6850 kshitij.so 7528
  def process_addBanner(self, seqid, iprot, oprot):
7529
    args = addBanner_args()
7530
    args.read(iprot)
7531
    iprot.readMessageEnd()
7532
    result = addBanner_result()
10097 kshitij.so 7533
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7534
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7535
    result.write(oprot)
7536
    oprot.writeMessageEnd()
7537
    oprot.trans.flush()
7538
 
8579 kshitij.so 7539
  def process_updateBanner(self, seqid, iprot, oprot):
7540
    args = updateBanner_args()
7541
    args.read(iprot)
7542
    iprot.readMessageEnd()
7543
    result = updateBanner_result()
7544
    result.success = self._handler.updateBanner(args.banner)
7545
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7546
    result.write(oprot)
7547
    oprot.writeMessageEnd()
7548
    oprot.trans.flush()
7549
 
6850 kshitij.so 7550
  def process_getAllBanners(self, seqid, iprot, oprot):
7551
    args = getAllBanners_args()
7552
    args.read(iprot)
7553
    iprot.readMessageEnd()
7554
    result = getAllBanners_result()
7555
    result.success = self._handler.getAllBanners()
7556
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7557
    result.write(oprot)
7558
    oprot.writeMessageEnd()
7559
    oprot.trans.flush()
7560
 
7561
  def process_deleteBanner(self, seqid, iprot, oprot):
7562
    args = deleteBanner_args()
7563
    args.read(iprot)
7564
    iprot.readMessageEnd()
7565
    result = deleteBanner_result()
9155 kshitij.so 7566
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7567
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7568
    result.write(oprot)
7569
    oprot.writeMessageEnd()
7570
    oprot.trans.flush()
7571
 
7572
  def process_getBannerDetails(self, seqid, iprot, oprot):
7573
    args = getBannerDetails_args()
7574
    args.read(iprot)
7575
    iprot.readMessageEnd()
7576
    result = getBannerDetails_result()
9155 kshitij.so 7577
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7578
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7579
    result.write(oprot)
7580
    oprot.writeMessageEnd()
7581
    oprot.trans.flush()
7582
 
7583
  def process_getActiveBanners(self, seqid, iprot, oprot):
7584
    args = getActiveBanners_args()
7585
    args.read(iprot)
7586
    iprot.readMessageEnd()
7587
    result = getActiveBanners_result()
7588
    result.success = self._handler.getActiveBanners()
7589
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7590
    result.write(oprot)
7591
    oprot.writeMessageEnd()
7592
    oprot.trans.flush()
7593
 
6849 kshitij.so 7594
  def process_addBannerMap(self, seqid, iprot, oprot):
7595
    args = addBannerMap_args()
7596
    args.read(iprot)
7597
    iprot.readMessageEnd()
7598
    result = addBannerMap_result()
8579 kshitij.so 7599
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7600
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7601
    result.write(oprot)
7602
    oprot.writeMessageEnd()
7603
    oprot.trans.flush()
7604
 
8579 kshitij.so 7605
  def process_updateBannerMap(self, seqid, iprot, oprot):
7606
    args = updateBannerMap_args()
7607
    args.read(iprot)
7608
    iprot.readMessageEnd()
7609
    result = updateBannerMap_result()
7610
    result.success = self._handler.updateBannerMap(args.bannerMap)
7611
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7612
    result.write(oprot)
7613
    oprot.writeMessageEnd()
7614
    oprot.trans.flush()
7615
 
6849 kshitij.so 7616
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7617
    args = deleteBannerMap_args()
7618
    args.read(iprot)
7619
    iprot.readMessageEnd()
7620
    result = deleteBannerMap_result()
7621
    result.success = self._handler.deleteBannerMap(args.bannerName)
7622
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7623
    result.write(oprot)
7624
    oprot.writeMessageEnd()
7625
    oprot.trans.flush()
7626
 
7627
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7628
    args = getBannerMapDetails_args()
7629
    args.read(iprot)
7630
    iprot.readMessageEnd()
7631
    result = getBannerMapDetails_result()
9155 kshitij.so 7632
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7633
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7634
    result.write(oprot)
7635
    oprot.writeMessageEnd()
7636
    oprot.trans.flush()
7637
 
8579 kshitij.so 7638
  def process_addBannerUri(self, seqid, iprot, oprot):
7639
    args = addBannerUri_args()
7640
    args.read(iprot)
7641
    iprot.readMessageEnd()
7642
    result = addBannerUri_result()
7643
    self._handler.addBannerUri(args.bannerUriMappings)
7644
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7645
    result.write(oprot)
7646
    oprot.writeMessageEnd()
7647
    oprot.trans.flush()
7648
 
7649
  def process_getUriMapping(self, seqid, iprot, oprot):
7650
    args = getUriMapping_args()
7651
    args.read(iprot)
7652
    iprot.readMessageEnd()
7653
    result = getUriMapping_result()
9155 kshitij.so 7654
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7655
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7656
    result.write(oprot)
7657
    oprot.writeMessageEnd()
7658
    oprot.trans.flush()
7659
 
7660
  def process_addCampaign(self, seqid, iprot, oprot):
7661
    args = addCampaign_args()
7662
    args.read(iprot)
7663
    iprot.readMessageEnd()
7664
    result = addCampaign_result()
7665
    self._handler.addCampaign(args.campaign)
7666
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7667
    result.write(oprot)
7668
    oprot.writeMessageEnd()
7669
    oprot.trans.flush()
7670
 
7671
  def process_getCampaigns(self, seqid, iprot, oprot):
7672
    args = getCampaigns_args()
7673
    args.read(iprot)
7674
    iprot.readMessageEnd()
7675
    result = getCampaigns_result()
7676
    result.success = self._handler.getCampaigns(args.campaignName)
7677
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7678
    result.write(oprot)
7679
    oprot.writeMessageEnd()
7680
    oprot.trans.flush()
7681
 
7682
  def process_deleteCampaign(self, seqid, iprot, oprot):
7683
    args = deleteCampaign_args()
7684
    args.read(iprot)
7685
    iprot.readMessageEnd()
7686
    result = deleteCampaign_result()
7687
    self._handler.deleteCampaign(args.campaignId)
7688
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7689
    result.write(oprot)
7690
    oprot.writeMessageEnd()
7691
    oprot.trans.flush()
7692
 
7693
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7694
    args = getAllCampaigns_args()
7695
    args.read(iprot)
7696
    iprot.readMessageEnd()
7697
    result = getAllCampaigns_result()
7698
    result.success = self._handler.getAllCampaigns()
7699
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7700
    result.write(oprot)
7701
    oprot.writeMessageEnd()
7702
    oprot.trans.flush()
7703
 
9155 kshitij.so 7704
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7705
    args = getActiveBannersForMobileSite_args()
7706
    args.read(iprot)
7707
    iprot.readMessageEnd()
7708
    result = getActiveBannersForMobileSite_result()
7709
    result.success = self._handler.getActiveBannersForMobileSite()
7710
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7711
    result.write(oprot)
7712
    oprot.writeMessageEnd()
7713
    oprot.trans.flush()
7714
 
5944 mandeep.dh 7715
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7716
    args = deleteSimilarItem_args()
7717
    args.read(iprot)
7718
    iprot.readMessageEnd()
7719
    result = deleteSimilarItem_result()
7720
    try:
7721
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7722
    except CatalogServiceException, cex:
7723
      result.cex = cex
7724
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7725
    result.write(oprot)
7726
    oprot.writeMessageEnd()
7727
    oprot.trans.flush()
7728
 
7729
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7730
    args = checkSimilarItem_args()
7731
    args.read(iprot)
7732
    iprot.readMessageEnd()
7733
    result = checkSimilarItem_result()
7734
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7735
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7736
    result.write(oprot)
7737
    oprot.writeMessageEnd()
7738
    oprot.trans.flush()
7739
 
7740
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7741
    args = validateRiskyStatus_args()
7742
    args.read(iprot)
7743
    iprot.readMessageEnd()
7744
    result = validateRiskyStatus_result()
7745
    self._handler.validateRiskyStatus(args.itemId)
7746
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7747
    result.write(oprot)
7748
    oprot.writeMessageEnd()
7749
    oprot.trans.flush()
7750
 
7751
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7752
    args = changeItemRiskyFlag_args()
7753
    args.read(iprot)
7754
    iprot.readMessageEnd()
7755
    result = changeItemRiskyFlag_result()
7756
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7757
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7758
    result.write(oprot)
7759
    oprot.writeMessageEnd()
7760
    oprot.trans.flush()
7761
 
7762
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7763
    args = getItemsByRiskyFlag_args()
7764
    args.read(iprot)
7765
    iprot.readMessageEnd()
7766
    result = getItemsByRiskyFlag_result()
7767
    result.success = self._handler.getItemsByRiskyFlag()
7768
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7769
    result.write(oprot)
7770
    oprot.writeMessageEnd()
7771
    oprot.trans.flush()
7772
 
7773
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7774
    args = getItemsForMasterSheet_args()
7775
    args.read(iprot)
7776
    iprot.readMessageEnd()
7777
    result = getItemsForMasterSheet_result()
7778
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7779
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7780
    result.write(oprot)
7781
    oprot.writeMessageEnd()
7782
    oprot.trans.flush()
7783
 
7784
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7785
    args = getSimilarItemsCatalogIds_args()
7786
    args.read(iprot)
7787
    iprot.readMessageEnd()
7788
    result = getSimilarItemsCatalogIds_result()
7789
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7790
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7791
    result.write(oprot)
7792
    oprot.writeMessageEnd()
7793
    oprot.trans.flush()
7794
 
7795
  def process_addProductNotification(self, seqid, iprot, oprot):
7796
    args = addProductNotification_args()
7797
    args.read(iprot)
7798
    iprot.readMessageEnd()
7799
    result = addProductNotification_result()
7800
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7801
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7802
    result.write(oprot)
7803
    oprot.writeMessageEnd()
7804
    oprot.trans.flush()
7805
 
7806
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7807
    args = sendProductNotifications_args()
7808
    args.read(iprot)
7809
    iprot.readMessageEnd()
7810
    result = sendProductNotifications_result()
7811
    result.success = self._handler.sendProductNotifications()
7812
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7813
    result.write(oprot)
7814
    oprot.writeMessageEnd()
7815
    oprot.trans.flush()
7816
 
7817
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7818
    args = getAllBrandsByCategory_args()
7819
    args.read(iprot)
7820
    iprot.readMessageEnd()
7821
    result = getAllBrandsByCategory_result()
7822
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7823
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7824
    result.write(oprot)
7825
    oprot.writeMessageEnd()
7826
    oprot.trans.flush()
7827
 
7828
  def process_getAllBrands(self, seqid, iprot, oprot):
7829
    args = getAllBrands_args()
7830
    args.read(iprot)
7831
    iprot.readMessageEnd()
7832
    result = getAllBrands_result()
7833
    result.success = self._handler.getAllBrands()
7834
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7835
    result.write(oprot)
7836
    oprot.writeMessageEnd()
7837
    oprot.trans.flush()
7838
 
7839
  def process_getAllSources(self, seqid, iprot, oprot):
7840
    args = getAllSources_args()
7841
    args.read(iprot)
7842
    iprot.readMessageEnd()
7843
    result = getAllSources_result()
7844
    result.success = self._handler.getAllSources()
7845
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7846
    result.write(oprot)
7847
    oprot.writeMessageEnd()
7848
    oprot.trans.flush()
7849
 
7850
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7851
    args = getItemPricingBySource_args()
7852
    args.read(iprot)
7853
    iprot.readMessageEnd()
7854
    result = getItemPricingBySource_result()
7855
    try:
7856
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7857
    except CatalogServiceException, cex:
7858
      result.cex = cex
7859
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7860
    result.write(oprot)
7861
    oprot.writeMessageEnd()
7862
    oprot.trans.flush()
7863
 
7864
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7865
    args = addSourceItemPricing_args()
7866
    args.read(iprot)
7867
    iprot.readMessageEnd()
7868
    result = addSourceItemPricing_result()
7869
    try:
7870
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7871
    except CatalogServiceException, cex:
7872
      result.cex = cex
7873
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7874
    result.write(oprot)
7875
    oprot.writeMessageEnd()
7876
    oprot.trans.flush()
7877
 
7878
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
7879
    args = getAllSourcePricing_args()
7880
    args.read(iprot)
7881
    iprot.readMessageEnd()
7882
    result = getAllSourcePricing_result()
7883
    try:
7884
      result.success = self._handler.getAllSourcePricing(args.itemId)
7885
    except CatalogServiceException, cex:
7886
      result.cex = cex
7887
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
7888
    result.write(oprot)
7889
    oprot.writeMessageEnd()
7890
    oprot.trans.flush()
7891
 
7892
  def process_getItemForSource(self, seqid, iprot, oprot):
7893
    args = getItemForSource_args()
7894
    args.read(iprot)
7895
    iprot.readMessageEnd()
7896
    result = getItemForSource_result()
7897
    try:
7898
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
7899
    except CatalogServiceException, cex:
7900
      result.cex = cex
7901
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
7902
    result.write(oprot)
7903
    oprot.writeMessageEnd()
7904
    oprot.trans.flush()
7905
 
7906
  def process_searchItemsInRange(self, seqid, iprot, oprot):
7907
    args = searchItemsInRange_args()
7908
    args.read(iprot)
7909
    iprot.readMessageEnd()
7910
    result = searchItemsInRange_result()
7911
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
7912
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
7913
    result.write(oprot)
7914
    oprot.writeMessageEnd()
7915
    oprot.trans.flush()
7916
 
7917
  def process_getSearchResultCount(self, seqid, iprot, oprot):
7918
    args = getSearchResultCount_args()
7919
    args.read(iprot)
7920
    iprot.readMessageEnd()
7921
    result = getSearchResultCount_result()
7922
    result.success = self._handler.getSearchResultCount(args.searchTerms)
7923
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
7924
    result.write(oprot)
7925
    oprot.writeMessageEnd()
7926
    oprot.trans.flush()
7927
 
7928
  def process_getProductNotifications(self, seqid, iprot, oprot):
7929
    args = getProductNotifications_args()
7930
    args.read(iprot)
7931
    iprot.readMessageEnd()
7932
    result = getProductNotifications_result()
7933
    result.success = self._handler.getProductNotifications(args.startDateTime)
7934
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
7935
    result.write(oprot)
7936
    oprot.writeMessageEnd()
7937
    oprot.trans.flush()
7938
 
7939
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
7940
    args = getProductNotificationRequestCount_args()
7941
    args.read(iprot)
7942
    iprot.readMessageEnd()
7943
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 7944
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 7945
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
7946
    result.write(oprot)
7947
    oprot.writeMessageEnd()
7948
    oprot.trans.flush()
7949
 
7950
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
7951
    args = addAuthorizationLog_args()
7952
    args.read(iprot)
7953
    iprot.readMessageEnd()
7954
    result = addAuthorizationLog_result()
7955
    try:
7956
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
7957
    except CatalogServiceException, cex:
7958
      result.cex = cex
7959
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
7960
    result.write(oprot)
7961
    oprot.writeMessageEnd()
7962
    oprot.trans.flush()
7963
 
7964
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
7965
    args = addupdateVoucherForItem_args()
7966
    args.read(iprot)
7967
    iprot.readMessageEnd()
7968
    result = addupdateVoucherForItem_result()
7969
    try:
7970
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
7971
    except CatalogServiceException, cex:
7972
      result.cex = cex
7973
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
7974
    result.write(oprot)
7975
    oprot.writeMessageEnd()
7976
    oprot.trans.flush()
7977
 
7978
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
7979
    args = deleteVoucherForItem_args()
7980
    args.read(iprot)
7981
    iprot.readMessageEnd()
7982
    result = deleteVoucherForItem_result()
7983
    try:
7984
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
7985
    except CatalogServiceException, cex:
7986
      result.cex = cex
7987
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
7988
    result.write(oprot)
7989
    oprot.writeMessageEnd()
7990
    oprot.trans.flush()
7991
 
7992
  def process_getVoucherAmount(self, seqid, iprot, oprot):
7993
    args = getVoucherAmount_args()
7994
    args.read(iprot)
7995
    iprot.readMessageEnd()
7996
    result = getVoucherAmount_result()
7997
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
7998
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
7999
    result.write(oprot)
8000
    oprot.writeMessageEnd()
8001
    oprot.trans.flush()
8002
 
8003
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
8004
    args = getAllItemVouchers_args()
8005
    args.read(iprot)
8006
    iprot.readMessageEnd()
8007
    result = getAllItemVouchers_result()
8008
    result.success = self._handler.getAllItemVouchers(args.itemId)
8009
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
8010
    result.write(oprot)
8011
    oprot.writeMessageEnd()
8012
    oprot.trans.flush()
8013
 
8014
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
8015
    args = isValidCatalogItemId_args()
8016
    args.read(iprot)
8017
    iprot.readMessageEnd()
8018
    result = isValidCatalogItemId_result()
8019
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
8020
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
8021
    result.write(oprot)
8022
    oprot.writeMessageEnd()
8023
    oprot.trans.flush()
8024
 
6039 amit.gupta 8025
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
8026
    args = getVatPercentageForItem_args()
8027
    args.read(iprot)
8028
    iprot.readMessageEnd()
8029
    result = getVatPercentageForItem_result()
7340 amit.gupta 8030
    try:
8031
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
8032
    except CatalogServiceException, cex:
8033
      result.cex = cex
6039 amit.gupta 8034
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
8035
    result.write(oprot)
8036
    oprot.writeMessageEnd()
8037
    oprot.trans.flush()
5944 mandeep.dh 8038
 
6039 amit.gupta 8039
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
8040
    args = getVatAmountForItem_args()
8041
    args.read(iprot)
8042
    iprot.readMessageEnd()
8043
    result = getVatAmountForItem_result()
8044
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
8045
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
8046
    result.write(oprot)
8047
    oprot.writeMessageEnd()
8048
    oprot.trans.flush()
8049
 
6531 vikram.rag 8050
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
8051
    args = getAllIgnoredInventoryUpdateItemsList_args()
8052
    args.read(iprot)
8053
    iprot.readMessageEnd()
8054
    result = getAllIgnoredInventoryUpdateItemsList_result()
8055
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
8056
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
8057
    result.write(oprot)
8058
    oprot.writeMessageEnd()
8059
    oprot.trans.flush()
6039 amit.gupta 8060
 
6821 amar.kumar 8061
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8062
    args = getAllAliveItems_args()
8063
    args.read(iprot)
8064
    iprot.readMessageEnd()
8065
    result = getAllAliveItems_result()
8066
    result.success = self._handler.getAllAliveItems()
8067
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8068
    result.write(oprot)
8069
    oprot.writeMessageEnd()
8070
    oprot.trans.flush()
8071
 
6805 anupam.sin 8072
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8073
    args = getInsuranceAmount_args()
8074
    args.read(iprot)
8075
    iprot.readMessageEnd()
8076
    result = getInsuranceAmount_result()
6921 anupam.sin 8077
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8078
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8079
    result.write(oprot)
8080
    oprot.writeMessageEnd()
8081
    oprot.trans.flush()
6531 vikram.rag 8082
 
6805 anupam.sin 8083
  def process_getInsurer(self, seqid, iprot, oprot):
8084
    args = getInsurer_args()
8085
    args.read(iprot)
8086
    iprot.readMessageEnd()
8087
    result = getInsurer_result()
8088
    result.success = self._handler.getInsurer(args.insurerId)
8089
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8090
    result.write(oprot)
8091
    oprot.writeMessageEnd()
8092
    oprot.trans.flush()
8093
 
6838 vikram.rag 8094
  def process_getAllInsurers(self, seqid, iprot, oprot):
8095
    args = getAllInsurers_args()
8096
    args.read(iprot)
8097
    iprot.readMessageEnd()
8098
    result = getAllInsurers_result()
8099
    result.success = self._handler.getAllInsurers()
8100
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8101
    result.write(oprot)
8102
    oprot.writeMessageEnd()
8103
    oprot.trans.flush()
6805 anupam.sin 8104
 
6962 rajveer 8105
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8106
    args = updateInsuranceDeclaredAmount_args()
8107
    args.read(iprot)
8108
    iprot.readMessageEnd()
8109
    result = updateInsuranceDeclaredAmount_result()
8110
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8111
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8112
    result.write(oprot)
8113
    oprot.writeMessageEnd()
8114
    oprot.trans.flush()
6838 vikram.rag 8115
 
7190 amar.kumar 8116
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8117
    args = getFreebieForItem_args()
8118
    args.read(iprot)
8119
    iprot.readMessageEnd()
8120
    result = getFreebieForItem_result()
8121
    result.success = self._handler.getFreebieForItem(args.itemId)
8122
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8123
    result.write(oprot)
8124
    oprot.writeMessageEnd()
8125
    oprot.trans.flush()
6962 rajveer 8126
 
7190 amar.kumar 8127
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8128
    args = addOrUpdateFreebieForItem_args()
8129
    args.read(iprot)
8130
    iprot.readMessageEnd()
8131
    result = addOrUpdateFreebieForItem_result()
8132
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8133
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8134
    result.write(oprot)
8135
    oprot.writeMessageEnd()
8136
    oprot.trans.flush()
8137
 
7272 amit.gupta 8138
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8139
    args = addOrUpdateBrandInfo_args()
8140
    args.read(iprot)
8141
    iprot.readMessageEnd()
8142
    result = addOrUpdateBrandInfo_result()
8143
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8144
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8145
    result.write(oprot)
8146
    oprot.writeMessageEnd()
8147
    oprot.trans.flush()
8148
 
8149
  def process_getBrandInfo(self, seqid, iprot, oprot):
8150
    args = getBrandInfo_args()
8151
    args.read(iprot)
8152
    iprot.readMessageEnd()
8153
    result = getBrandInfo_result()
8154
    result.success = self._handler.getBrandInfo()
8155
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8156
    result.write(oprot)
8157
    oprot.writeMessageEnd()
8158
    oprot.trans.flush()
8159
 
7256 rajveer 8160
  def process_getStorePricing(self, seqid, iprot, oprot):
8161
    args = getStorePricing_args()
8162
    args.read(iprot)
8163
    iprot.readMessageEnd()
8164
    result = getStorePricing_result()
8165
    result.success = self._handler.getStorePricing(args.itemId)
8166
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8167
    result.write(oprot)
8168
    oprot.writeMessageEnd()
8169
    oprot.trans.flush()
7190 amar.kumar 8170
 
7306 rajveer 8171
  def process_getStorePricings(self, seqid, iprot, oprot):
8172
    args = getStorePricings_args()
8173
    args.read(iprot)
8174
    iprot.readMessageEnd()
8175
    result = getStorePricings_result()
8176
    result.success = self._handler.getStorePricings(args.itemIds)
8177
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8178
    result.write(oprot)
8179
    oprot.writeMessageEnd()
8180
    oprot.trans.flush()
8181
 
7265 rajveer 8182
  def process_updateStorePricing(self, seqid, iprot, oprot):
8183
    args = updateStorePricing_args()
8184
    args.read(iprot)
8185
    iprot.readMessageEnd()
8186
    result = updateStorePricing_result()
7382 rajveer 8187
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8188
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8189
    result.write(oprot)
8190
    oprot.writeMessageEnd()
8191
    oprot.trans.flush()
7256 rajveer 8192
 
7281 kshitij.so 8193
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8194
    args = getAllAmazonListedItems_args()
8195
    args.read(iprot)
8196
    iprot.readMessageEnd()
8197
    result = getAllAmazonListedItems_result()
8198
    result.success = self._handler.getAllAmazonListedItems()
8199
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8200
    result.write(oprot)
8201
    oprot.writeMessageEnd()
8202
    oprot.trans.flush()
7265 rajveer 8203
 
8619 kshitij.so 8204
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8205
    args = searchAmazonItems_args()
8206
    args.read(iprot)
8207
    iprot.readMessageEnd()
8208
    result = searchAmazonItems_result()
8209
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8210
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8211
    result.write(oprot)
8212
    oprot.writeMessageEnd()
8213
    oprot.trans.flush()
8214
 
8215
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8216
    args = getAmazonSearchResultCount_args()
8217
    args.read(iprot)
8218
    iprot.readMessageEnd()
8219
    result = getAmazonSearchResultCount_result()
8220
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8221
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8222
    result.write(oprot)
8223
    oprot.writeMessageEnd()
8224
    oprot.trans.flush()
8225
 
8226
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8227
    args = getCountForAmazonlistedItems_args()
8228
    args.read(iprot)
8229
    iprot.readMessageEnd()
8230
    result = getCountForAmazonlistedItems_result()
8231
    result.success = self._handler.getCountForAmazonlistedItems()
8232
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8233
    result.write(oprot)
8234
    oprot.writeMessageEnd()
8235
    oprot.trans.flush()
8236
 
7281 kshitij.so 8237
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8238
    args = getAmazonItemDetails_args()
8239
    args.read(iprot)
8240
    iprot.readMessageEnd()
8241
    result = getAmazonItemDetails_result()
8242
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8243
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8244
    result.write(oprot)
8245
    oprot.writeMessageEnd()
8246
    oprot.trans.flush()
8247
 
8248
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8249
    args = updateAmazonItemDetails_args()
8250
    args.read(iprot)
8251
    iprot.readMessageEnd()
8252
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8253
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8254
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8255
    result.write(oprot)
8256
    oprot.writeMessageEnd()
8257
    oprot.trans.flush()
8258
 
8259
  def process_addAmazonItem(self, seqid, iprot, oprot):
8260
    args = addAmazonItem_args()
8261
    args.read(iprot)
8262
    iprot.readMessageEnd()
8263
    result = addAmazonItem_result()
8264
    self._handler.addAmazonItem(args.amazonlisted)
8265
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8266
    result.write(oprot)
8267
    oprot.writeMessageEnd()
8268
    oprot.trans.flush()
8269
 
7291 vikram.rag 8270
  def process_getAsinItems(self, seqid, iprot, oprot):
8271
    args = getAsinItems_args()
8272
    args.read(iprot)
8273
    iprot.readMessageEnd()
8274
    result = getAsinItems_result()
8275
    result.success = self._handler.getAsinItems()
8276
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8277
    result.write(oprot)
8278
    oprot.writeMessageEnd()
8279
    oprot.trans.flush()
7281 kshitij.so 8280
 
7291 vikram.rag 8281
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8282
    args = getAllFbaListedItems_args()
8283
    args.read(iprot)
8284
    iprot.readMessageEnd()
8285
    result = getAllFbaListedItems_result()
8286
    result.success = self._handler.getAllFbaListedItems()
8287
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8288
    result.write(oprot)
8289
    oprot.writeMessageEnd()
8290
    oprot.trans.flush()
8291
 
8292
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8293
    args = getAllNonFbaListedItems_args()
8294
    args.read(iprot)
8295
    iprot.readMessageEnd()
8296
    result = getAllNonFbaListedItems_result()
8297
    result.success = self._handler.getAllNonFbaListedItems()
8298
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8299
    result.write(oprot)
8300
    oprot.writeMessageEnd()
8301
    oprot.trans.flush()
8302
 
7460 kshitij.so 8303
  def process_updateItemInventory(self, seqid, iprot, oprot):
8304
    args = updateItemInventory_args()
8305
    args.read(iprot)
8306
    iprot.readMessageEnd()
8307
    result = updateItemInventory_result()
8308
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8309
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8310
    result.write(oprot)
8311
    oprot.writeMessageEnd()
8312
    oprot.trans.flush()
7291 vikram.rag 8313
 
7770 kshitij.so 8314
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8315
    args = updateTimestampForAmazonFeeds_args()
8316
    args.read(iprot)
8317
    iprot.readMessageEnd()
8318
    result = updateTimestampForAmazonFeeds_result()
8319
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8320
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8321
    result.write(oprot)
8322
    oprot.writeMessageEnd()
8323
    oprot.trans.flush()
7460 kshitij.so 8324
 
7897 amar.kumar 8325
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8326
    args = getAllParentCategories_args()
8327
    args.read(iprot)
8328
    iprot.readMessageEnd()
8329
    result = getAllParentCategories_result()
8330
    result.success = self._handler.getAllParentCategories()
8331
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8332
    result.write(oprot)
8333
    oprot.writeMessageEnd()
8334
    oprot.trans.flush()
7770 kshitij.so 8335
 
7977 kshitij.so 8336
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8337
    args = addPageViewEvent_args()
8338
    args.read(iprot)
8339
    iprot.readMessageEnd()
8340
    result = addPageViewEvent_result()
8341
    self._handler.addPageViewEvent(args.pageViewEvents)
8342
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8343
    result.write(oprot)
8344
    oprot.writeMessageEnd()
8345
    oprot.trans.flush()
7897 amar.kumar 8346
 
7977 kshitij.so 8347
  def process_addCartEvent(self, seqid, iprot, oprot):
8348
    args = addCartEvent_args()
8349
    args.read(iprot)
8350
    iprot.readMessageEnd()
8351
    result = addCartEvent_result()
8352
    self._handler.addCartEvent(args.cartEvents)
8353
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8354
    result.write(oprot)
8355
    oprot.writeMessageEnd()
8356
    oprot.trans.flush()
8357
 
8182 amar.kumar 8358
  def process_addEbayItem(self, seqid, iprot, oprot):
8359
    args = addEbayItem_args()
8360
    args.read(iprot)
8361
    iprot.readMessageEnd()
8362
    result = addEbayItem_result()
8363
    self._handler.addEbayItem(args.ebayItem)
8364
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8365
    result.write(oprot)
8366
    oprot.writeMessageEnd()
8367
    oprot.trans.flush()
8368
 
8369
  def process_getEbayItem(self, seqid, iprot, oprot):
8370
    args = getEbayItem_args()
8371
    args.read(iprot)
8372
    iprot.readMessageEnd()
8373
    result = getEbayItem_result()
8374
    result.success = self._handler.getEbayItem(args.listingId)
8375
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8376
    result.write(oprot)
8377
    oprot.writeMessageEnd()
8378
    oprot.trans.flush()
8379
 
8380
  def process_updateEbayItem(self, seqid, iprot, oprot):
8381
    args = updateEbayItem_args()
8382
    args.read(iprot)
8383
    iprot.readMessageEnd()
8384
    result = updateEbayItem_result()
8385
    self._handler.updateEbayItem(args.ebayItem)
8386
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8387
    result.write(oprot)
8388
    oprot.writeMessageEnd()
8389
    oprot.trans.flush()
8390
 
8139 kshitij.so 8391
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8392
    args = getAmazonListedItems_args()
8393
    args.read(iprot)
8394
    iprot.readMessageEnd()
8395
    result = getAmazonListedItems_result()
8396
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8397
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8398
    result.write(oprot)
8399
    oprot.writeMessageEnd()
8400
    oprot.trans.flush()
7977 kshitij.so 8401
 
8168 kshitij.so 8402
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8403
    args = updateAmazonAttributesInBulk_args()
8404
    args.read(iprot)
8405
    iprot.readMessageEnd()
8406
    result = updateAmazonAttributesInBulk_result()
8407
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8408
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8409
    result.write(oprot)
8410
    oprot.writeMessageEnd()
8411
    oprot.trans.flush()
8139 kshitij.so 8412
 
8379 vikram.rag 8413
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8414
    args = getAllItemstoListOnFba_args()
8415
    args.read(iprot)
8416
    iprot.readMessageEnd()
8417
    result = getAllItemstoListOnFba_result()
8418
    result.success = self._handler.getAllItemstoListOnFba()
8419
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8420
    result.write(oprot)
8421
    oprot.writeMessageEnd()
8422
    oprot.trans.flush()
8168 kshitij.so 8423
 
8379 vikram.rag 8424
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8425
    args = getAllItemstoListOnNonFba_args()
8426
    args.read(iprot)
8427
    iprot.readMessageEnd()
8428
    result = getAllItemstoListOnNonFba_result()
8429
    result.success = self._handler.getAllItemstoListOnNonFba()
8430
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8431
    result.write(oprot)
8432
    oprot.writeMessageEnd()
8433
    oprot.trans.flush()
8434
 
8619 kshitij.so 8435
  def process_updateAsin(self, seqid, iprot, oprot):
8436
    args = updateAsin_args()
8437
    args.read(iprot)
8438
    iprot.readMessageEnd()
8439
    result = updateAsin_result()
8440
    self._handler.updateAsin(args.item)
8441
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8442
    result.write(oprot)
8443
    oprot.writeMessageEnd()
8444
    oprot.trans.flush()
8616 vikram.rag 8445
 
8739 vikram.rag 8446
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8447
    args = addOrUpdateSnapdealItem_args()
8448
    args.read(iprot)
8449
    iprot.readMessageEnd()
8450
    result = addOrUpdateSnapdealItem_result()
8451
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8452
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8453
    result.write(oprot)
8454
    oprot.writeMessageEnd()
8455
    oprot.trans.flush()
8619 kshitij.so 8456
 
8739 vikram.rag 8457
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8458
    args = getSnapdealItem_args()
8459
    args.read(iprot)
8460
    iprot.readMessageEnd()
8461
    result = getSnapdealItem_result()
8462
    result.success = self._handler.getSnapdealItem(args.item_id)
8463
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8464
    result.write(oprot)
8465
    oprot.writeMessageEnd()
8466
    oprot.trans.flush()
8467
 
9242 kshitij.so 8468
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8469
    args = getSnapdealItemDetails_args()
8470
    args.read(iprot)
8471
    iprot.readMessageEnd()
8472
    result = getSnapdealItemDetails_result()
8473
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8474
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8475
    result.write(oprot)
8476
    oprot.writeMessageEnd()
8477
    oprot.trans.flush()
8478
 
8739 vikram.rag 8479
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8480
    args = getAllSnapdealItems_args()
8481
    args.read(iprot)
8482
    iprot.readMessageEnd()
8483
    result = getAllSnapdealItems_result()
8484
    result.success = self._handler.getAllSnapdealItems()
8485
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8486
    result.write(oprot)
8487
    oprot.writeMessageEnd()
8488
    oprot.trans.flush()
8489
 
9242 kshitij.so 8490
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8491
    args = getSnapdealItems_args()
8492
    args.read(iprot)
8493
    iprot.readMessageEnd()
8494
    result = getSnapdealItems_result()
8495
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8496
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8497
    result.write(oprot)
8498
    oprot.writeMessageEnd()
8499
    oprot.trans.flush()
8739 vikram.rag 8500
 
9242 kshitij.so 8501
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8502
    args = searchSnapdealItems_args()
8503
    args.read(iprot)
8504
    iprot.readMessageEnd()
8505
    result = searchSnapdealItems_result()
8506
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8507
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8508
    result.write(oprot)
8509
    oprot.writeMessageEnd()
8510
    oprot.trans.flush()
8511
 
8512
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8513
    args = getCountForSnapdealItems_args()
8514
    args.read(iprot)
8515
    iprot.readMessageEnd()
8516
    result = getCountForSnapdealItems_result()
8517
    result.success = self._handler.getCountForSnapdealItems()
8518
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8519
    result.write(oprot)
8520
    oprot.writeMessageEnd()
8521
    oprot.trans.flush()
8522
 
8523
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8524
    args = getSnapdealSearchResultCount_args()
8525
    args.read(iprot)
8526
    iprot.readMessageEnd()
8527
    result = getSnapdealSearchResultCount_result()
8528
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8529
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8530
    result.write(oprot)
8531
    oprot.writeMessageEnd()
8532
    oprot.trans.flush()
8533
 
9299 kshitij.so 8534
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8535
    args = getPrefferedInsurerForItem_args()
8536
    args.read(iprot)
8537
    iprot.readMessageEnd()
8538
    result = getPrefferedInsurerForItem_result()
8539
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8540
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8541
    result.write(oprot)
8542
    oprot.writeMessageEnd()
8543
    oprot.trans.flush()
9242 kshitij.so 8544
 
9456 vikram.rag 8545
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8546
    args = getSnapdealItembySkuAtSnapdeal_args()
8547
    args.read(iprot)
8548
    iprot.readMessageEnd()
8549
    result = getSnapdealItembySkuAtSnapdeal_result()
8550
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8551
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8552
    result.write(oprot)
8553
    oprot.writeMessageEnd()
8554
    oprot.trans.flush()
9299 kshitij.so 8555
 
9621 manish.sha 8556
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8557
    args = getProductFeedSubmit_args()
8558
    args.read(iprot)
8559
    iprot.readMessageEnd()
8560
    result = getProductFeedSubmit_result()
8561
    try:
8562
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8563
    except CatalogServiceException, cex:
8564
      result.cex = cex
8565
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8566
    result.write(oprot)
8567
    oprot.writeMessageEnd()
8568
    oprot.trans.flush()
9456 vikram.rag 8569
 
9621 manish.sha 8570
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8571
    args = addProductFeedSubmit_args()
8572
    args.read(iprot)
8573
    iprot.readMessageEnd()
8574
    result = addProductFeedSubmit_result()
8575
    try:
8576
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8577
    except CatalogServiceException, cex:
8578
      result.cex = cex
8579
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8580
    result.write(oprot)
8581
    oprot.writeMessageEnd()
8582
    oprot.trans.flush()
8583
 
8584
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8585
    args = updateProductFeedSubmit_args()
8586
    args.read(iprot)
8587
    iprot.readMessageEnd()
8588
    result = updateProductFeedSubmit_result()
8589
    try:
8590
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8591
    except CatalogServiceException, cex:
8592
      result.cex = cex
8593
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8594
    result.write(oprot)
8595
    oprot.writeMessageEnd()
8596
    oprot.trans.flush()
8597
 
8598
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8599
    args = deleteProductFeedSubmit_args()
8600
    args.read(iprot)
8601
    iprot.readMessageEnd()
8602
    result = deleteProductFeedSubmit_result()
8603
    try:
8604
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8605
    except CatalogServiceException, cex:
8606
      result.cex = cex
8607
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8608
    result.write(oprot)
8609
    oprot.writeMessageEnd()
8610
    oprot.trans.flush()
8611
 
8612
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8613
    args = getAllProductFeedSubmit_args()
8614
    args.read(iprot)
8615
    iprot.readMessageEnd()
8616
    result = getAllProductFeedSubmit_result()
8617
    try:
8618
      result.success = self._handler.getAllProductFeedSubmit()
8619
    except CatalogServiceException, cex:
8620
      result.cex = cex
8621
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8622
    result.write(oprot)
8623
    oprot.writeMessageEnd()
8624
    oprot.trans.flush()
8625
 
9724 kshitij.so 8626
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8627
    args = getMarketplacedetailsForItem_args()
8628
    args.read(iprot)
8629
    iprot.readMessageEnd()
8630
    result = getMarketplacedetailsForItem_result()
8631
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8632
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8633
    result.write(oprot)
8634
    oprot.writeMessageEnd()
8635
    oprot.trans.flush()
9621 manish.sha 8636
 
9724 kshitij.so 8637
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8638
    args = updateMarketplaceAttributesForItem_args()
8639
    args.read(iprot)
8640
    iprot.readMessageEnd()
8641
    result = updateMarketplaceAttributesForItem_result()
8642
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8643
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8644
    result.write(oprot)
8645
    oprot.writeMessageEnd()
8646
    oprot.trans.flush()
8647
 
9779 kshitij.so 8648
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8649
    args = getCostingForMarketplace_args()
8650
    args.read(iprot)
8651
    iprot.readMessageEnd()
8652
    result = getCostingForMarketplace_result()
8653
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8654
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8655
    result.write(oprot)
8656
    oprot.writeMessageEnd()
8657
    oprot.trans.flush()
8658
 
9776 vikram.rag 8659
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8660
    args = getMarketPlaceItemsForPriceUpdate_args()
8661
    args.read(iprot)
8662
    iprot.readMessageEnd()
8663
    result = getMarketPlaceItemsForPriceUpdate_result()
8664
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8665
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8666
    result.write(oprot)
8667
    oprot.writeMessageEnd()
8668
    oprot.trans.flush()
9724 kshitij.so 8669
 
9776 vikram.rag 8670
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8671
    args = updateMarketPlacePriceUpdateStatus_args()
8672
    args.read(iprot)
8673
    iprot.readMessageEnd()
8674
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8675
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8676
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8677
    result.write(oprot)
8678
    oprot.writeMessageEnd()
8679
    oprot.trans.flush()
8680
 
9861 rajveer 8681
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8682
    args = updateItemHoldInventory_args()
8683
    args.read(iprot)
8684
    iprot.readMessageEnd()
8685
    result = updateItemHoldInventory_result()
8686
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8687
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8688
    result.write(oprot)
8689
    oprot.writeMessageEnd()
8690
    oprot.trans.flush()
9776 vikram.rag 8691
 
9895 vikram.rag 8692
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8693
    args = updateNlcAtMarketplaces_args()
8694
    args.read(iprot)
8695
    iprot.readMessageEnd()
8696
    result = updateNlcAtMarketplaces_result()
8697
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8698
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8699
    result.write(oprot)
8700
    oprot.writeMessageEnd()
8701
    oprot.trans.flush()
9861 rajveer 8702
 
9945 vikram.rag 8703
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8704
    args = getAllFlipkartItems_args()
8705
    args.read(iprot)
8706
    iprot.readMessageEnd()
8707
    result = getAllFlipkartItems_result()
8708
    result.success = self._handler.getAllFlipkartItems()
8709
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8710
    result.write(oprot)
8711
    oprot.writeMessageEnd()
8712
    oprot.trans.flush()
9895 vikram.rag 8713
 
10097 kshitij.so 8714
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8715
    args = addOrUpdateFlipkartItem_args()
8716
    args.read(iprot)
8717
    iprot.readMessageEnd()
8718
    result = addOrUpdateFlipkartItem_result()
8719
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8720
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8721
    result.write(oprot)
8722
    oprot.writeMessageEnd()
8723
    oprot.trans.flush()
9945 vikram.rag 8724
 
10097 kshitij.so 8725
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8726
    args = getFlipkartItem_args()
8727
    args.read(iprot)
8728
    iprot.readMessageEnd()
8729
    result = getFlipkartItem_result()
8730
    result.success = self._handler.getFlipkartItem(args.item_id)
8731
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8732
    result.write(oprot)
8733
    oprot.writeMessageEnd()
8734
    oprot.trans.flush()
8735
 
8736
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8737
    args = getFlipkartItemDetails_args()
8738
    args.read(iprot)
8739
    iprot.readMessageEnd()
8740
    result = getFlipkartItemDetails_result()
8741
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8742
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8743
    result.write(oprot)
8744
    oprot.writeMessageEnd()
8745
    oprot.trans.flush()
8746
 
8747
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8748
    args = getFlipkartItems_args()
8749
    args.read(iprot)
8750
    iprot.readMessageEnd()
8751
    result = getFlipkartItems_result()
8752
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8753
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8754
    result.write(oprot)
8755
    oprot.writeMessageEnd()
8756
    oprot.trans.flush()
8757
 
8758
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8759
    args = searchFlipkartItems_args()
8760
    args.read(iprot)
8761
    iprot.readMessageEnd()
8762
    result = searchFlipkartItems_result()
8763
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8764
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8765
    result.write(oprot)
8766
    oprot.writeMessageEnd()
8767
    oprot.trans.flush()
8768
 
8769
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8770
    args = getCountForFlipkartItems_args()
8771
    args.read(iprot)
8772
    iprot.readMessageEnd()
8773
    result = getCountForFlipkartItems_result()
8774
    result.success = self._handler.getCountForFlipkartItems()
8775
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8776
    result.write(oprot)
8777
    oprot.writeMessageEnd()
8778
    oprot.trans.flush()
8779
 
8780
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8781
    args = getFlipkartSearchResultCount_args()
8782
    args.read(iprot)
8783
    iprot.readMessageEnd()
8784
    result = getFlipkartSearchResultCount_result()
8785
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8786
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8787
    result.write(oprot)
8788
    oprot.writeMessageEnd()
8789
    oprot.trans.flush()
8790
 
8791
  def process_getAllFkItems(self, seqid, iprot, oprot):
8792
    args = getAllFkItems_args()
8793
    args.read(iprot)
8794
    iprot.readMessageEnd()
8795
    result = getAllFkItems_result()
8796
    result.success = self._handler.getAllFkItems()
8797
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8798
    result.write(oprot)
8799
    oprot.writeMessageEnd()
8800
    oprot.trans.flush()
8801
 
10140 vikram.rag 8802
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8803
    args = getFlipkartItemBySkyAtFlipkart_args()
8804
    args.read(iprot)
8805
    iprot.readMessageEnd()
8806
    result = getFlipkartItemBySkyAtFlipkart_result()
8807
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8808
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8809
    result.write(oprot)
8810
    oprot.writeMessageEnd()
8811
    oprot.trans.flush()
10097 kshitij.so 8812
 
11015 kshitij.so 8813
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8814
    args = getMarketplaceHistory_args()
8815
    args.read(iprot)
8816
    iprot.readMessageEnd()
8817
    result = getMarketplaceHistory_result()
8818
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8819
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8820
    result.write(oprot)
8821
    oprot.writeMessageEnd()
8822
    oprot.trans.flush()
8823
 
10909 vikram.rag 8824
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8825
    args = getAllFbbListedItems_args()
8826
    args.read(iprot)
8827
    iprot.readMessageEnd()
8828
    result = getAllFbbListedItems_result()
8829
    result.success = self._handler.getAllFbbListedItems()
8830
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8831
    result.write(oprot)
8832
    oprot.writeMessageEnd()
8833
    oprot.trans.flush()
10140 vikram.rag 8834
 
10924 vikram.rag 8835
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8836
    args = getAllFbbPricingItems_args()
8837
    args.read(iprot)
8838
    iprot.readMessageEnd()
8839
    result = getAllFbbPricingItems_result()
8840
    result.success = self._handler.getAllFbbPricingItems()
8841
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8842
    result.write(oprot)
8843
    oprot.writeMessageEnd()
8844
    oprot.trans.flush()
10909 vikram.rag 8845
 
11015 kshitij.so 8846
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8847
    args = getCountForMarketplaceHistory_args()
8848
    args.read(iprot)
8849
    iprot.readMessageEnd()
8850
    result = getCountForMarketplaceHistory_result()
8851
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8852
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8853
    result.write(oprot)
8854
    oprot.writeMessageEnd()
8855
    oprot.trans.flush()
10924 vikram.rag 8856
 
11015 kshitij.so 8857
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8858
    args = getMarketplaceHistoryByDate_args()
8859
    args.read(iprot)
8860
    iprot.readMessageEnd()
8861
    result = getMarketplaceHistoryByDate_result()
8862
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8863
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8864
    result.write(oprot)
8865
    oprot.writeMessageEnd()
8866
    oprot.trans.flush()
8867
 
11531 vikram.rag 8868
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8869
    args = getPrivateDealDetails_args()
8870
    args.read(iprot)
8871
    iprot.readMessageEnd()
8872
    result = getPrivateDealDetails_result()
8873
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8874
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
8875
    result.write(oprot)
8876
    oprot.writeMessageEnd()
8877
    oprot.trans.flush()
11015 kshitij.so 8878
 
11531 vikram.rag 8879
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
8880
    args = getPrivateDealItems_args()
8881
    args.read(iprot)
8882
    iprot.readMessageEnd()
8883
    result = getPrivateDealItems_result()
8884
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
8885
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
8886
    result.write(oprot)
8887
    oprot.writeMessageEnd()
8888
    oprot.trans.flush()
8889
 
11592 amit.gupta 8890
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
8891
    args = getAllActivePrivateDeals_args()
8892
    args.read(iprot)
8893
    iprot.readMessageEnd()
8894
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 8895
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 8896
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
8897
    result.write(oprot)
8898
    oprot.writeMessageEnd()
8899
    oprot.trans.flush()
8900
 
11531 vikram.rag 8901
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
8902
    args = addOrUpdatePrivateDeal_args()
8903
    args.read(iprot)
8904
    iprot.readMessageEnd()
8905
    result = addOrUpdatePrivateDeal_result()
8906
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
8907
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
8908
    result.write(oprot)
8909
    oprot.writeMessageEnd()
8910
    oprot.trans.flush()
8911
 
11635 vikram.rag 8912
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
8913
    args = getPrivateDealsCatalogIds_args()
8914
    args.read(iprot)
8915
    iprot.readMessageEnd()
8916
    result = getPrivateDealsCatalogIds_result()
8917
    try:
8918
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
8919
    except CatalogServiceException, cex:
8920
      result.cex = cex
8921
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
8922
    result.write(oprot)
8923
    oprot.writeMessageEnd()
8924
    oprot.trans.flush()
11531 vikram.rag 8925
 
11645 amit.gupta 8926
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
8927
    args = getPrivateDealsCount_args()
8928
    args.read(iprot)
8929
    iprot.readMessageEnd()
8930
    result = getPrivateDealsCount_result()
8931
    result.success = self._handler.getPrivateDealsCount()
8932
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
8933
    result.write(oprot)
8934
    oprot.writeMessageEnd()
8935
    oprot.trans.flush()
11635 vikram.rag 8936
 
11905 kshitij.so 8937
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
8938
    args = getAmazonOutSyncItems_args()
8939
    args.read(iprot)
8940
    iprot.readMessageEnd()
8941
    result = getAmazonOutSyncItems_result()
8942
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
8943
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
8944
    result.write(oprot)
8945
    oprot.writeMessageEnd()
8946
    oprot.trans.flush()
11645 amit.gupta 8947
 
11905 kshitij.so 8948
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
8949
    args = getAllPrivateDealsComparison_args()
8950
    args.read(iprot)
8951
    iprot.readMessageEnd()
8952
    result = getAllPrivateDealsComparison_result()
8953
    result.success = self._handler.getAllPrivateDealsComparison()
8954
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
8955
    result.write(oprot)
8956
    oprot.writeMessageEnd()
8957
    oprot.trans.flush()
8958
 
12133 kshitij.so 8959
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
8960
    args = getAllSnapdealMarketplaceItem_args()
8961
    args.read(iprot)
8962
    iprot.readMessageEnd()
8963
    result = getAllSnapdealMarketplaceItem_result()
8964
    result.success = self._handler.getAllSnapdealMarketplaceItem()
8965
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
8966
    result.write(oprot)
8967
    oprot.writeMessageEnd()
8968
    oprot.trans.flush()
11905 kshitij.so 8969
 
12133 kshitij.so 8970
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
8971
    args = getAllFlipkartMarketplaceItem_args()
8972
    args.read(iprot)
8973
    iprot.readMessageEnd()
8974
    result = getAllFlipkartMarketplaceItem_result()
8975
    result.success = self._handler.getAllFlipkartMarketplaceItem()
8976
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
8977
    result.write(oprot)
8978
    oprot.writeMessageEnd()
8979
    oprot.trans.flush()
8980
 
12243 kshitij.so 8981
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
8982
    args = addCompetitorScraping_args()
8983
    args.read(iprot)
8984
    iprot.readMessageEnd()
8985
    result = addCompetitorScraping_result()
8986
    self._handler.addCompetitorScraping(args.competitorPricingMap)
8987
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
8988
    result.write(oprot)
8989
    oprot.writeMessageEnd()
8990
    oprot.trans.flush()
12133 kshitij.so 8991
 
12243 kshitij.so 8992
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
8993
    args = getPreviousCompetitorScraping_args()
8994
    args.read(iprot)
8995
    iprot.readMessageEnd()
8996
    result = getPreviousCompetitorScraping_result()
8997
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
8998
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
8999
    result.write(oprot)
9000
    oprot.writeMessageEnd()
9001
    oprot.trans.flush()
9002
 
12256 kshitij.so 9003
  def process_getUploadResultById(self, seqid, iprot, oprot):
9004
    args = getUploadResultById_args()
9005
    args.read(iprot)
9006
    iprot.readMessageEnd()
9007
    result = getUploadResultById_result()
9008
    result.success = self._handler.getUploadResultById(args.uploadId)
9009
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
9010
    result.write(oprot)
9011
    oprot.writeMessageEnd()
9012
    oprot.trans.flush()
12243 kshitij.so 9013
 
12363 kshitij.so 9014
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
9015
    args = addAmazonPromotion_args()
9016
    args.read(iprot)
9017
    iprot.readMessageEnd()
9018
    result = addAmazonPromotion_result()
9019
    result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
9020
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
9021
    result.write(oprot)
9022
    oprot.writeMessageEnd()
9023
    oprot.trans.flush()
12256 kshitij.so 9024
 
12363 kshitij.so 9025
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
9026
    args = getAmazonPromotion_args()
9027
    args.read(iprot)
9028
    iprot.readMessageEnd()
9029
    result = getAmazonPromotion_result()
9030
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
9031
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
9032
    result.write(oprot)
9033
    oprot.writeMessageEnd()
9034
    oprot.trans.flush()
9035
 
9036
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
9037
    args = updateAmazonPromotion_args()
9038
    args.read(iprot)
9039
    iprot.readMessageEnd()
9040
    result = updateAmazonPromotion_result()
9041
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
9042
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
9043
    result.write(oprot)
9044
    oprot.writeMessageEnd()
9045
    oprot.trans.flush()
9046
 
12567 amit.gupta 9047
  def process_markPartiallyActive(self, seqid, iprot, oprot):
9048
    args = markPartiallyActive_args()
9049
    args.read(iprot)
9050
    iprot.readMessageEnd()
9051
    result = markPartiallyActive_result()
9052
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
9053
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
9054
    result.write(oprot)
9055
    oprot.writeMessageEnd()
9056
    oprot.trans.flush()
12363 kshitij.so 9057
 
12567 amit.gupta 9058
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9059
    args = updateItemStateVat_args()
9060
    args.read(iprot)
9061
    iprot.readMessageEnd()
9062
    result = updateItemStateVat_result()
9063
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9064
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9065
    result.write(oprot)
9066
    oprot.writeMessageEnd()
9067
    oprot.trans.flush()
9068
 
12620 amit.gupta 9069
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
9070
    args = getExAffiliateItemInfo_args()
9071
    args.read(iprot)
9072
    iprot.readMessageEnd()
9073
    result = getExAffiliateItemInfo_result()
9074
    result.success = self._handler.getExAffiliateItemInfo()
9075
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9076
    result.write(oprot)
9077
    oprot.writeMessageEnd()
9078
    oprot.trans.flush()
12567 amit.gupta 9079
 
12888 kshitij.so 9080
  def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):
9081
    args = getAllItemstoListOnFbg_args()
9082
    args.read(iprot)
9083
    iprot.readMessageEnd()
9084
    result = getAllItemstoListOnFbg_result()
9085
    result.success = self._handler.getAllItemstoListOnFbg()
9086
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9087
    result.write(oprot)
9088
    oprot.writeMessageEnd()
9089
    oprot.trans.flush()
12620 amit.gupta 9090
 
12888 kshitij.so 9091
 
5944 mandeep.dh 9092
# HELPER FUNCTIONS AND STRUCTURES
9093
 
9094
class addItem_args:
9095
  """
9096
  Attributes:
9097
   - item
9098
  """
9099
 
9100
  thrift_spec = (
9101
    None, # 0
9102
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9103
  )
9104
 
9105
  def __init__(self, item=None,):
9106
    self.item = item
9107
 
9108
  def read(self, iprot):
9109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9111
      return
9112
    iprot.readStructBegin()
9113
    while True:
9114
      (fname, ftype, fid) = iprot.readFieldBegin()
9115
      if ftype == TType.STOP:
9116
        break
9117
      if fid == 1:
9118
        if ftype == TType.STRUCT:
9119
          self.item = Item()
9120
          self.item.read(iprot)
9121
        else:
9122
          iprot.skip(ftype)
9123
      else:
9124
        iprot.skip(ftype)
9125
      iprot.readFieldEnd()
9126
    iprot.readStructEnd()
9127
 
9128
  def write(self, oprot):
9129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9131
      return
9132
    oprot.writeStructBegin('addItem_args')
9133
    if self.item is not None:
9134
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9135
      self.item.write(oprot)
9136
      oprot.writeFieldEnd()
9137
    oprot.writeFieldStop()
9138
    oprot.writeStructEnd()
9139
 
9140
  def validate(self):
9141
    return
9142
 
9143
 
9144
  def __repr__(self):
9145
    L = ['%s=%r' % (key, value)
9146
      for key, value in self.__dict__.iteritems()]
9147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9148
 
9149
  def __eq__(self, other):
9150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9151
 
9152
  def __ne__(self, other):
9153
    return not (self == other)
9154
 
9155
class addItem_result:
9156
  """
9157
  Attributes:
9158
   - success
9159
   - cex
9160
  """
9161
 
9162
  thrift_spec = (
9163
    (0, TType.I64, 'success', None, None, ), # 0
9164
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9165
  )
9166
 
9167
  def __init__(self, success=None, cex=None,):
9168
    self.success = success
9169
    self.cex = cex
9170
 
9171
  def read(self, iprot):
9172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9174
      return
9175
    iprot.readStructBegin()
9176
    while True:
9177
      (fname, ftype, fid) = iprot.readFieldBegin()
9178
      if ftype == TType.STOP:
9179
        break
9180
      if fid == 0:
9181
        if ftype == TType.I64:
9182
          self.success = iprot.readI64();
9183
        else:
9184
          iprot.skip(ftype)
9185
      elif fid == 1:
9186
        if ftype == TType.STRUCT:
9187
          self.cex = CatalogServiceException()
9188
          self.cex.read(iprot)
9189
        else:
9190
          iprot.skip(ftype)
9191
      else:
9192
        iprot.skip(ftype)
9193
      iprot.readFieldEnd()
9194
    iprot.readStructEnd()
9195
 
9196
  def write(self, oprot):
9197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9199
      return
9200
    oprot.writeStructBegin('addItem_result')
9201
    if self.success is not None:
9202
      oprot.writeFieldBegin('success', TType.I64, 0)
9203
      oprot.writeI64(self.success)
9204
      oprot.writeFieldEnd()
9205
    if self.cex is not None:
9206
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9207
      self.cex.write(oprot)
9208
      oprot.writeFieldEnd()
9209
    oprot.writeFieldStop()
9210
    oprot.writeStructEnd()
9211
 
9212
  def validate(self):
9213
    return
9214
 
9215
 
9216
  def __repr__(self):
9217
    L = ['%s=%r' % (key, value)
9218
      for key, value in self.__dict__.iteritems()]
9219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9220
 
9221
  def __eq__(self, other):
9222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9223
 
9224
  def __ne__(self, other):
9225
    return not (self == other)
9226
 
9227
class updateItem_args:
9228
  """
9229
  Attributes:
9230
   - item
9231
  """
9232
 
9233
  thrift_spec = (
9234
    None, # 0
9235
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9236
  )
9237
 
9238
  def __init__(self, item=None,):
9239
    self.item = item
9240
 
9241
  def read(self, iprot):
9242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9244
      return
9245
    iprot.readStructBegin()
9246
    while True:
9247
      (fname, ftype, fid) = iprot.readFieldBegin()
9248
      if ftype == TType.STOP:
9249
        break
9250
      if fid == 1:
9251
        if ftype == TType.STRUCT:
9252
          self.item = Item()
9253
          self.item.read(iprot)
9254
        else:
9255
          iprot.skip(ftype)
9256
      else:
9257
        iprot.skip(ftype)
9258
      iprot.readFieldEnd()
9259
    iprot.readStructEnd()
9260
 
9261
  def write(self, oprot):
9262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9264
      return
9265
    oprot.writeStructBegin('updateItem_args')
9266
    if self.item is not None:
9267
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9268
      self.item.write(oprot)
9269
      oprot.writeFieldEnd()
9270
    oprot.writeFieldStop()
9271
    oprot.writeStructEnd()
9272
 
9273
  def validate(self):
9274
    return
9275
 
9276
 
9277
  def __repr__(self):
9278
    L = ['%s=%r' % (key, value)
9279
      for key, value in self.__dict__.iteritems()]
9280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9281
 
9282
  def __eq__(self, other):
9283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9284
 
9285
  def __ne__(self, other):
9286
    return not (self == other)
9287
 
9288
class updateItem_result:
9289
  """
9290
  Attributes:
9291
   - success
9292
   - cex
9293
  """
9294
 
9295
  thrift_spec = (
9296
    (0, TType.I64, 'success', None, None, ), # 0
9297
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9298
  )
9299
 
9300
  def __init__(self, success=None, cex=None,):
9301
    self.success = success
9302
    self.cex = cex
9303
 
9304
  def read(self, iprot):
9305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9307
      return
9308
    iprot.readStructBegin()
9309
    while True:
9310
      (fname, ftype, fid) = iprot.readFieldBegin()
9311
      if ftype == TType.STOP:
9312
        break
9313
      if fid == 0:
9314
        if ftype == TType.I64:
9315
          self.success = iprot.readI64();
9316
        else:
9317
          iprot.skip(ftype)
9318
      elif fid == 1:
9319
        if ftype == TType.STRUCT:
9320
          self.cex = CatalogServiceException()
9321
          self.cex.read(iprot)
9322
        else:
9323
          iprot.skip(ftype)
9324
      else:
9325
        iprot.skip(ftype)
9326
      iprot.readFieldEnd()
9327
    iprot.readStructEnd()
9328
 
9329
  def write(self, oprot):
9330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9332
      return
9333
    oprot.writeStructBegin('updateItem_result')
9334
    if self.success is not None:
9335
      oprot.writeFieldBegin('success', TType.I64, 0)
9336
      oprot.writeI64(self.success)
9337
      oprot.writeFieldEnd()
9338
    if self.cex is not None:
9339
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9340
      self.cex.write(oprot)
9341
      oprot.writeFieldEnd()
9342
    oprot.writeFieldStop()
9343
    oprot.writeStructEnd()
9344
 
9345
  def validate(self):
9346
    return
9347
 
9348
 
9349
  def __repr__(self):
9350
    L = ['%s=%r' % (key, value)
9351
      for key, value in self.__dict__.iteritems()]
9352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9353
 
9354
  def __eq__(self, other):
9355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9356
 
9357
  def __ne__(self, other):
9358
    return not (self == other)
9359
 
9360
class isActive_args:
9361
  """
9362
  Attributes:
9363
   - itemId
9364
  """
9365
 
9366
  thrift_spec = (
9367
    None, # 0
9368
    (1, TType.I64, 'itemId', None, None, ), # 1
9369
  )
9370
 
9371
  def __init__(self, itemId=None,):
9372
    self.itemId = itemId
9373
 
9374
  def read(self, iprot):
9375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9377
      return
9378
    iprot.readStructBegin()
9379
    while True:
9380
      (fname, ftype, fid) = iprot.readFieldBegin()
9381
      if ftype == TType.STOP:
9382
        break
9383
      if fid == 1:
9384
        if ftype == TType.I64:
9385
          self.itemId = iprot.readI64();
9386
        else:
9387
          iprot.skip(ftype)
9388
      else:
9389
        iprot.skip(ftype)
9390
      iprot.readFieldEnd()
9391
    iprot.readStructEnd()
9392
 
9393
  def write(self, oprot):
9394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9396
      return
9397
    oprot.writeStructBegin('isActive_args')
9398
    if self.itemId is not None:
9399
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9400
      oprot.writeI64(self.itemId)
9401
      oprot.writeFieldEnd()
9402
    oprot.writeFieldStop()
9403
    oprot.writeStructEnd()
9404
 
9405
  def validate(self):
9406
    return
9407
 
9408
 
9409
  def __repr__(self):
9410
    L = ['%s=%r' % (key, value)
9411
      for key, value in self.__dict__.iteritems()]
9412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9413
 
9414
  def __eq__(self, other):
9415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9416
 
9417
  def __ne__(self, other):
9418
    return not (self == other)
9419
 
9420
class isActive_result:
9421
  """
9422
  Attributes:
9423
   - success
9424
   - isex
9425
  """
9426
 
9427
  thrift_spec = (
9428
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9429
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9430
  )
9431
 
9432
  def __init__(self, success=None, isex=None,):
9433
    self.success = success
9434
    self.isex = isex
9435
 
9436
  def read(self, iprot):
9437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9439
      return
9440
    iprot.readStructBegin()
9441
    while True:
9442
      (fname, ftype, fid) = iprot.readFieldBegin()
9443
      if ftype == TType.STOP:
9444
        break
9445
      if fid == 0:
9446
        if ftype == TType.STRUCT:
9447
          self.success = ItemShippingInfo()
9448
          self.success.read(iprot)
9449
        else:
9450
          iprot.skip(ftype)
9451
      elif fid == 1:
9452
        if ftype == TType.STRUCT:
9453
          self.isex = CatalogServiceException()
9454
          self.isex.read(iprot)
9455
        else:
9456
          iprot.skip(ftype)
9457
      else:
9458
        iprot.skip(ftype)
9459
      iprot.readFieldEnd()
9460
    iprot.readStructEnd()
9461
 
9462
  def write(self, oprot):
9463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9465
      return
9466
    oprot.writeStructBegin('isActive_result')
9467
    if self.success is not None:
9468
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9469
      self.success.write(oprot)
9470
      oprot.writeFieldEnd()
9471
    if self.isex is not None:
9472
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9473
      self.isex.write(oprot)
9474
      oprot.writeFieldEnd()
9475
    oprot.writeFieldStop()
9476
    oprot.writeStructEnd()
9477
 
9478
  def validate(self):
9479
    return
9480
 
9481
 
9482
  def __repr__(self):
9483
    L = ['%s=%r' % (key, value)
9484
      for key, value in self.__dict__.iteritems()]
9485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9486
 
9487
  def __eq__(self, other):
9488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9489
 
9490
  def __ne__(self, other):
9491
    return not (self == other)
9492
 
7438 amit.gupta 9493
class getItemsStatus_args:
9494
  """
9495
  Attributes:
9496
   - itemIds
9497
  """
9498
 
9499
  thrift_spec = (
9500
    None, # 0
9501
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9502
  )
9503
 
9504
  def __init__(self, itemIds=None,):
9505
    self.itemIds = itemIds
9506
 
9507
  def read(self, iprot):
9508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9510
      return
9511
    iprot.readStructBegin()
9512
    while True:
9513
      (fname, ftype, fid) = iprot.readFieldBegin()
9514
      if ftype == TType.STOP:
9515
        break
9516
      if fid == 1:
9517
        if ftype == TType.LIST:
9518
          self.itemIds = []
8590 kshitij.so 9519
          (_etype33, _size30) = iprot.readListBegin()
9520
          for _i34 in xrange(_size30):
9521
            _elem35 = iprot.readI64();
9522
            self.itemIds.append(_elem35)
7438 amit.gupta 9523
          iprot.readListEnd()
9524
        else:
9525
          iprot.skip(ftype)
9526
      else:
9527
        iprot.skip(ftype)
9528
      iprot.readFieldEnd()
9529
    iprot.readStructEnd()
9530
 
9531
  def write(self, oprot):
9532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9534
      return
9535
    oprot.writeStructBegin('getItemsStatus_args')
9536
    if self.itemIds is not None:
9537
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9538
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9539
      for iter36 in self.itemIds:
9540
        oprot.writeI64(iter36)
7438 amit.gupta 9541
      oprot.writeListEnd()
9542
      oprot.writeFieldEnd()
9543
    oprot.writeFieldStop()
9544
    oprot.writeStructEnd()
9545
 
9546
  def validate(self):
9547
    return
9548
 
9549
 
9550
  def __repr__(self):
9551
    L = ['%s=%r' % (key, value)
9552
      for key, value in self.__dict__.iteritems()]
9553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9554
 
9555
  def __eq__(self, other):
9556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9557
 
9558
  def __ne__(self, other):
9559
    return not (self == other)
9560
 
9561
class getItemsStatus_result:
9562
  """
9563
  Attributes:
9564
   - success
9565
   - isex
9566
  """
9567
 
9568
  thrift_spec = (
9569
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9570
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9571
  )
9572
 
9573
  def __init__(self, success=None, isex=None,):
9574
    self.success = success
9575
    self.isex = isex
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 == 0:
9587
        if ftype == TType.MAP:
9588
          self.success = {}
8590 kshitij.so 9589
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9590
          for _i41 in xrange(_size37):
9591
            _key42 = iprot.readI64();
9592
            _val43 = iprot.readBool();
9593
            self.success[_key42] = _val43
7438 amit.gupta 9594
          iprot.readMapEnd()
9595
        else:
9596
          iprot.skip(ftype)
9597
      elif fid == 1:
9598
        if ftype == TType.STRUCT:
9599
          self.isex = CatalogServiceException()
9600
          self.isex.read(iprot)
9601
        else:
9602
          iprot.skip(ftype)
9603
      else:
9604
        iprot.skip(ftype)
9605
      iprot.readFieldEnd()
9606
    iprot.readStructEnd()
9607
 
9608
  def write(self, oprot):
9609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9611
      return
9612
    oprot.writeStructBegin('getItemsStatus_result')
9613
    if self.success is not None:
9614
      oprot.writeFieldBegin('success', TType.MAP, 0)
9615
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9616
      for kiter44,viter45 in self.success.items():
9617
        oprot.writeI64(kiter44)
9618
        oprot.writeBool(viter45)
7438 amit.gupta 9619
      oprot.writeMapEnd()
9620
      oprot.writeFieldEnd()
9621
    if self.isex is not None:
9622
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9623
      self.isex.write(oprot)
9624
      oprot.writeFieldEnd()
9625
    oprot.writeFieldStop()
9626
    oprot.writeStructEnd()
9627
 
9628
  def validate(self):
9629
    return
9630
 
9631
 
9632
  def __repr__(self):
9633
    L = ['%s=%r' % (key, value)
9634
      for key, value in self.__dict__.iteritems()]
9635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9636
 
9637
  def __eq__(self, other):
9638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9639
 
9640
  def __ne__(self, other):
9641
    return not (self == other)
9642
 
5944 mandeep.dh 9643
class getItemStatusDescription_args:
9644
  """
9645
  Attributes:
9646
   - itemId
9647
  """
9648
 
9649
  thrift_spec = (
9650
    None, # 0
9651
    (1, TType.I64, 'itemId', None, None, ), # 1
9652
  )
9653
 
9654
  def __init__(self, itemId=None,):
9655
    self.itemId = itemId
9656
 
9657
  def read(self, iprot):
9658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9660
      return
9661
    iprot.readStructBegin()
9662
    while True:
9663
      (fname, ftype, fid) = iprot.readFieldBegin()
9664
      if ftype == TType.STOP:
9665
        break
9666
      if fid == 1:
9667
        if ftype == TType.I64:
9668
          self.itemId = iprot.readI64();
9669
        else:
9670
          iprot.skip(ftype)
9671
      else:
9672
        iprot.skip(ftype)
9673
      iprot.readFieldEnd()
9674
    iprot.readStructEnd()
9675
 
9676
  def write(self, oprot):
9677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9679
      return
9680
    oprot.writeStructBegin('getItemStatusDescription_args')
9681
    if self.itemId is not None:
9682
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9683
      oprot.writeI64(self.itemId)
9684
      oprot.writeFieldEnd()
9685
    oprot.writeFieldStop()
9686
    oprot.writeStructEnd()
9687
 
9688
  def validate(self):
9689
    return
9690
 
9691
 
9692
  def __repr__(self):
9693
    L = ['%s=%r' % (key, value)
9694
      for key, value in self.__dict__.iteritems()]
9695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9696
 
9697
  def __eq__(self, other):
9698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9699
 
9700
  def __ne__(self, other):
9701
    return not (self == other)
9702
 
9703
class getItemStatusDescription_result:
9704
  """
9705
  Attributes:
9706
   - success
9707
   - isex
9708
  """
9709
 
9710
  thrift_spec = (
9711
    (0, TType.STRING, 'success', None, None, ), # 0
9712
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9713
  )
9714
 
9715
  def __init__(self, success=None, isex=None,):
9716
    self.success = success
9717
    self.isex = isex
9718
 
9719
  def read(self, iprot):
9720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9722
      return
9723
    iprot.readStructBegin()
9724
    while True:
9725
      (fname, ftype, fid) = iprot.readFieldBegin()
9726
      if ftype == TType.STOP:
9727
        break
9728
      if fid == 0:
9729
        if ftype == TType.STRING:
9730
          self.success = iprot.readString();
9731
        else:
9732
          iprot.skip(ftype)
9733
      elif fid == 1:
9734
        if ftype == TType.STRUCT:
9735
          self.isex = CatalogServiceException()
9736
          self.isex.read(iprot)
9737
        else:
9738
          iprot.skip(ftype)
9739
      else:
9740
        iprot.skip(ftype)
9741
      iprot.readFieldEnd()
9742
    iprot.readStructEnd()
9743
 
9744
  def write(self, oprot):
9745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9747
      return
9748
    oprot.writeStructBegin('getItemStatusDescription_result')
9749
    if self.success is not None:
9750
      oprot.writeFieldBegin('success', TType.STRING, 0)
9751
      oprot.writeString(self.success)
9752
      oprot.writeFieldEnd()
9753
    if self.isex is not None:
9754
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9755
      self.isex.write(oprot)
9756
      oprot.writeFieldEnd()
9757
    oprot.writeFieldStop()
9758
    oprot.writeStructEnd()
9759
 
9760
  def validate(self):
9761
    return
9762
 
9763
 
9764
  def __repr__(self):
9765
    L = ['%s=%r' % (key, value)
9766
      for key, value in self.__dict__.iteritems()]
9767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9768
 
9769
  def __eq__(self, other):
9770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9771
 
9772
  def __ne__(self, other):
9773
    return not (self == other)
9774
 
9775
class startItemOn_args:
9776
  """
9777
  Attributes:
9778
   - item_id
9779
   - timestamp
9780
  """
9781
 
9782
  thrift_spec = (
9783
    None, # 0
9784
    (1, TType.I64, 'item_id', None, None, ), # 1
9785
    (2, TType.I64, 'timestamp', None, None, ), # 2
9786
  )
9787
 
9788
  def __init__(self, item_id=None, timestamp=None,):
9789
    self.item_id = item_id
9790
    self.timestamp = timestamp
9791
 
9792
  def read(self, iprot):
9793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9795
      return
9796
    iprot.readStructBegin()
9797
    while True:
9798
      (fname, ftype, fid) = iprot.readFieldBegin()
9799
      if ftype == TType.STOP:
9800
        break
9801
      if fid == 1:
9802
        if ftype == TType.I64:
9803
          self.item_id = iprot.readI64();
9804
        else:
9805
          iprot.skip(ftype)
9806
      elif fid == 2:
9807
        if ftype == TType.I64:
9808
          self.timestamp = iprot.readI64();
9809
        else:
9810
          iprot.skip(ftype)
9811
      else:
9812
        iprot.skip(ftype)
9813
      iprot.readFieldEnd()
9814
    iprot.readStructEnd()
9815
 
9816
  def write(self, oprot):
9817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9819
      return
9820
    oprot.writeStructBegin('startItemOn_args')
9821
    if self.item_id is not None:
9822
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9823
      oprot.writeI64(self.item_id)
9824
      oprot.writeFieldEnd()
9825
    if self.timestamp is not None:
9826
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9827
      oprot.writeI64(self.timestamp)
9828
      oprot.writeFieldEnd()
9829
    oprot.writeFieldStop()
9830
    oprot.writeStructEnd()
9831
 
9832
  def validate(self):
9833
    return
9834
 
9835
 
9836
  def __repr__(self):
9837
    L = ['%s=%r' % (key, value)
9838
      for key, value in self.__dict__.iteritems()]
9839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9840
 
9841
  def __eq__(self, other):
9842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9843
 
9844
  def __ne__(self, other):
9845
    return not (self == other)
9846
 
9847
class startItemOn_result:
9848
  """
9849
  Attributes:
9850
   - cex
9851
  """
9852
 
9853
  thrift_spec = (
9854
    None, # 0
9855
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9856
  )
9857
 
9858
  def __init__(self, cex=None,):
9859
    self.cex = cex
9860
 
9861
  def read(self, iprot):
9862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9864
      return
9865
    iprot.readStructBegin()
9866
    while True:
9867
      (fname, ftype, fid) = iprot.readFieldBegin()
9868
      if ftype == TType.STOP:
9869
        break
9870
      if fid == 1:
9871
        if ftype == TType.STRUCT:
9872
          self.cex = CatalogServiceException()
9873
          self.cex.read(iprot)
9874
        else:
9875
          iprot.skip(ftype)
9876
      else:
9877
        iprot.skip(ftype)
9878
      iprot.readFieldEnd()
9879
    iprot.readStructEnd()
9880
 
9881
  def write(self, oprot):
9882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9884
      return
9885
    oprot.writeStructBegin('startItemOn_result')
9886
    if self.cex is not None:
9887
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9888
      self.cex.write(oprot)
9889
      oprot.writeFieldEnd()
9890
    oprot.writeFieldStop()
9891
    oprot.writeStructEnd()
9892
 
9893
  def validate(self):
9894
    return
9895
 
9896
 
9897
  def __repr__(self):
9898
    L = ['%s=%r' % (key, value)
9899
      for key, value in self.__dict__.iteritems()]
9900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9901
 
9902
  def __eq__(self, other):
9903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9904
 
9905
  def __ne__(self, other):
9906
    return not (self == other)
9907
 
9908
class retireItemOn_args:
9909
  """
9910
  Attributes:
9911
   - item_id
9912
   - timestamp
9913
  """
9914
 
9915
  thrift_spec = (
9916
    None, # 0
9917
    (1, TType.I64, 'item_id', None, None, ), # 1
9918
    (2, TType.I64, 'timestamp', None, None, ), # 2
9919
  )
9920
 
9921
  def __init__(self, item_id=None, timestamp=None,):
9922
    self.item_id = item_id
9923
    self.timestamp = timestamp
9924
 
9925
  def read(self, iprot):
9926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9928
      return
9929
    iprot.readStructBegin()
9930
    while True:
9931
      (fname, ftype, fid) = iprot.readFieldBegin()
9932
      if ftype == TType.STOP:
9933
        break
9934
      if fid == 1:
9935
        if ftype == TType.I64:
9936
          self.item_id = iprot.readI64();
9937
        else:
9938
          iprot.skip(ftype)
9939
      elif fid == 2:
9940
        if ftype == TType.I64:
9941
          self.timestamp = iprot.readI64();
9942
        else:
9943
          iprot.skip(ftype)
9944
      else:
9945
        iprot.skip(ftype)
9946
      iprot.readFieldEnd()
9947
    iprot.readStructEnd()
9948
 
9949
  def write(self, oprot):
9950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9952
      return
9953
    oprot.writeStructBegin('retireItemOn_args')
9954
    if self.item_id is not None:
9955
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9956
      oprot.writeI64(self.item_id)
9957
      oprot.writeFieldEnd()
9958
    if self.timestamp is not None:
9959
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9960
      oprot.writeI64(self.timestamp)
9961
      oprot.writeFieldEnd()
9962
    oprot.writeFieldStop()
9963
    oprot.writeStructEnd()
9964
 
9965
  def validate(self):
9966
    return
9967
 
9968
 
9969
  def __repr__(self):
9970
    L = ['%s=%r' % (key, value)
9971
      for key, value in self.__dict__.iteritems()]
9972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9973
 
9974
  def __eq__(self, other):
9975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9976
 
9977
  def __ne__(self, other):
9978
    return not (self == other)
9979
 
9980
class retireItemOn_result:
9981
  """
9982
  Attributes:
9983
   - cex
9984
  """
9985
 
9986
  thrift_spec = (
9987
    None, # 0
9988
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9989
  )
9990
 
9991
  def __init__(self, cex=None,):
9992
    self.cex = cex
9993
 
9994
  def read(self, iprot):
9995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9997
      return
9998
    iprot.readStructBegin()
9999
    while True:
10000
      (fname, ftype, fid) = iprot.readFieldBegin()
10001
      if ftype == TType.STOP:
10002
        break
10003
      if fid == 1:
10004
        if ftype == TType.STRUCT:
10005
          self.cex = CatalogServiceException()
10006
          self.cex.read(iprot)
10007
        else:
10008
          iprot.skip(ftype)
10009
      else:
10010
        iprot.skip(ftype)
10011
      iprot.readFieldEnd()
10012
    iprot.readStructEnd()
10013
 
10014
  def write(self, oprot):
10015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10017
      return
10018
    oprot.writeStructBegin('retireItemOn_result')
10019
    if self.cex is not None:
10020
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10021
      self.cex.write(oprot)
10022
      oprot.writeFieldEnd()
10023
    oprot.writeFieldStop()
10024
    oprot.writeStructEnd()
10025
 
10026
  def validate(self):
10027
    return
10028
 
10029
 
10030
  def __repr__(self):
10031
    L = ['%s=%r' % (key, value)
10032
      for key, value in self.__dict__.iteritems()]
10033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10034
 
10035
  def __eq__(self, other):
10036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10037
 
10038
  def __ne__(self, other):
10039
    return not (self == other)
10040
 
10041
class changeItemStatus_args:
10042
  """
10043
  Attributes:
10044
   - item_id
10045
   - timestamp
10046
   - newstatus
10047
  """
10048
 
10049
  thrift_spec = (
10050
    None, # 0
10051
    (1, TType.I64, 'item_id', None, None, ), # 1
10052
    (2, TType.I64, 'timestamp', None, None, ), # 2
10053
    (3, TType.I32, 'newstatus', None, None, ), # 3
10054
  )
10055
 
10056
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
10057
    self.item_id = item_id
10058
    self.timestamp = timestamp
10059
    self.newstatus = newstatus
10060
 
10061
  def read(self, iprot):
10062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10064
      return
10065
    iprot.readStructBegin()
10066
    while True:
10067
      (fname, ftype, fid) = iprot.readFieldBegin()
10068
      if ftype == TType.STOP:
10069
        break
10070
      if fid == 1:
10071
        if ftype == TType.I64:
10072
          self.item_id = iprot.readI64();
10073
        else:
10074
          iprot.skip(ftype)
10075
      elif fid == 2:
10076
        if ftype == TType.I64:
10077
          self.timestamp = iprot.readI64();
10078
        else:
10079
          iprot.skip(ftype)
10080
      elif fid == 3:
10081
        if ftype == TType.I32:
10082
          self.newstatus = iprot.readI32();
10083
        else:
10084
          iprot.skip(ftype)
10085
      else:
10086
        iprot.skip(ftype)
10087
      iprot.readFieldEnd()
10088
    iprot.readStructEnd()
10089
 
10090
  def write(self, oprot):
10091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10093
      return
10094
    oprot.writeStructBegin('changeItemStatus_args')
10095
    if self.item_id is not None:
10096
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10097
      oprot.writeI64(self.item_id)
10098
      oprot.writeFieldEnd()
10099
    if self.timestamp is not None:
10100
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10101
      oprot.writeI64(self.timestamp)
10102
      oprot.writeFieldEnd()
10103
    if self.newstatus is not None:
10104
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10105
      oprot.writeI32(self.newstatus)
10106
      oprot.writeFieldEnd()
10107
    oprot.writeFieldStop()
10108
    oprot.writeStructEnd()
10109
 
10110
  def validate(self):
10111
    return
10112
 
10113
 
10114
  def __repr__(self):
10115
    L = ['%s=%r' % (key, value)
10116
      for key, value in self.__dict__.iteritems()]
10117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10118
 
10119
  def __eq__(self, other):
10120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10121
 
10122
  def __ne__(self, other):
10123
    return not (self == other)
10124
 
10125
class changeItemStatus_result:
10126
  """
10127
  Attributes:
10128
   - cex
10129
  """
10130
 
10131
  thrift_spec = (
10132
    None, # 0
10133
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10134
  )
10135
 
10136
  def __init__(self, cex=None,):
10137
    self.cex = cex
10138
 
10139
  def read(self, iprot):
10140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10142
      return
10143
    iprot.readStructBegin()
10144
    while True:
10145
      (fname, ftype, fid) = iprot.readFieldBegin()
10146
      if ftype == TType.STOP:
10147
        break
10148
      if fid == 1:
10149
        if ftype == TType.STRUCT:
10150
          self.cex = CatalogServiceException()
10151
          self.cex.read(iprot)
10152
        else:
10153
          iprot.skip(ftype)
10154
      else:
10155
        iprot.skip(ftype)
10156
      iprot.readFieldEnd()
10157
    iprot.readStructEnd()
10158
 
10159
  def write(self, oprot):
10160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10162
      return
10163
    oprot.writeStructBegin('changeItemStatus_result')
10164
    if self.cex is not None:
10165
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10166
      self.cex.write(oprot)
10167
      oprot.writeFieldEnd()
10168
    oprot.writeFieldStop()
10169
    oprot.writeStructEnd()
10170
 
10171
  def validate(self):
10172
    return
10173
 
10174
 
10175
  def __repr__(self):
10176
    L = ['%s=%r' % (key, value)
10177
      for key, value in self.__dict__.iteritems()]
10178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10179
 
10180
  def __eq__(self, other):
10181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10182
 
10183
  def __ne__(self, other):
10184
    return not (self == other)
10185
 
10186
class getItem_args:
10187
  """
10188
  Attributes:
10189
   - item_id
10190
  """
10191
 
10192
  thrift_spec = (
10193
    None, # 0
10194
    (1, TType.I64, 'item_id', None, None, ), # 1
10195
  )
10196
 
10197
  def __init__(self, item_id=None,):
10198
    self.item_id = item_id
10199
 
10200
  def read(self, iprot):
10201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10203
      return
10204
    iprot.readStructBegin()
10205
    while True:
10206
      (fname, ftype, fid) = iprot.readFieldBegin()
10207
      if ftype == TType.STOP:
10208
        break
10209
      if fid == 1:
10210
        if ftype == TType.I64:
10211
          self.item_id = iprot.readI64();
10212
        else:
10213
          iprot.skip(ftype)
10214
      else:
10215
        iprot.skip(ftype)
10216
      iprot.readFieldEnd()
10217
    iprot.readStructEnd()
10218
 
10219
  def write(self, oprot):
10220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10222
      return
10223
    oprot.writeStructBegin('getItem_args')
10224
    if self.item_id is not None:
10225
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10226
      oprot.writeI64(self.item_id)
10227
      oprot.writeFieldEnd()
10228
    oprot.writeFieldStop()
10229
    oprot.writeStructEnd()
10230
 
10231
  def validate(self):
10232
    return
10233
 
10234
 
10235
  def __repr__(self):
10236
    L = ['%s=%r' % (key, value)
10237
      for key, value in self.__dict__.iteritems()]
10238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10239
 
10240
  def __eq__(self, other):
10241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10242
 
10243
  def __ne__(self, other):
10244
    return not (self == other)
10245
 
10246
class getItem_result:
10247
  """
10248
  Attributes:
10249
   - success
10250
   - cex
10251
  """
10252
 
10253
  thrift_spec = (
10254
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10255
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10256
  )
10257
 
10258
  def __init__(self, success=None, cex=None,):
10259
    self.success = success
10260
    self.cex = cex
10261
 
10262
  def read(self, iprot):
10263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10265
      return
10266
    iprot.readStructBegin()
10267
    while True:
10268
      (fname, ftype, fid) = iprot.readFieldBegin()
10269
      if ftype == TType.STOP:
10270
        break
10271
      if fid == 0:
10272
        if ftype == TType.STRUCT:
10273
          self.success = Item()
10274
          self.success.read(iprot)
10275
        else:
10276
          iprot.skip(ftype)
10277
      elif fid == 1:
10278
        if ftype == TType.STRUCT:
10279
          self.cex = CatalogServiceException()
10280
          self.cex.read(iprot)
10281
        else:
10282
          iprot.skip(ftype)
10283
      else:
10284
        iprot.skip(ftype)
10285
      iprot.readFieldEnd()
10286
    iprot.readStructEnd()
10287
 
10288
  def write(self, oprot):
10289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10291
      return
10292
    oprot.writeStructBegin('getItem_result')
10293
    if self.success is not None:
10294
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10295
      self.success.write(oprot)
10296
      oprot.writeFieldEnd()
10297
    if self.cex is not None:
10298
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10299
      self.cex.write(oprot)
10300
      oprot.writeFieldEnd()
10301
    oprot.writeFieldStop()
10302
    oprot.writeStructEnd()
10303
 
10304
  def validate(self):
10305
    return
10306
 
10307
 
10308
  def __repr__(self):
10309
    L = ['%s=%r' % (key, value)
10310
      for key, value in self.__dict__.iteritems()]
10311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10312
 
10313
  def __eq__(self, other):
10314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10315
 
10316
  def __ne__(self, other):
10317
    return not (self == other)
10318
 
10319
class getItemsByCatalogId_args:
10320
  """
10321
  Attributes:
10322
   - catalog_item_id
10323
  """
10324
 
10325
  thrift_spec = (
10326
    None, # 0
10327
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10328
  )
10329
 
10330
  def __init__(self, catalog_item_id=None,):
10331
    self.catalog_item_id = catalog_item_id
10332
 
10333
  def read(self, iprot):
10334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10336
      return
10337
    iprot.readStructBegin()
10338
    while True:
10339
      (fname, ftype, fid) = iprot.readFieldBegin()
10340
      if ftype == TType.STOP:
10341
        break
10342
      if fid == 1:
10343
        if ftype == TType.I64:
10344
          self.catalog_item_id = iprot.readI64();
10345
        else:
10346
          iprot.skip(ftype)
10347
      else:
10348
        iprot.skip(ftype)
10349
      iprot.readFieldEnd()
10350
    iprot.readStructEnd()
10351
 
10352
  def write(self, oprot):
10353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10355
      return
10356
    oprot.writeStructBegin('getItemsByCatalogId_args')
10357
    if self.catalog_item_id is not None:
10358
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10359
      oprot.writeI64(self.catalog_item_id)
10360
      oprot.writeFieldEnd()
10361
    oprot.writeFieldStop()
10362
    oprot.writeStructEnd()
10363
 
10364
  def validate(self):
10365
    return
10366
 
10367
 
10368
  def __repr__(self):
10369
    L = ['%s=%r' % (key, value)
10370
      for key, value in self.__dict__.iteritems()]
10371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10372
 
10373
  def __eq__(self, other):
10374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10375
 
10376
  def __ne__(self, other):
10377
    return not (self == other)
10378
 
10379
class getItemsByCatalogId_result:
10380
  """
10381
  Attributes:
10382
   - success
10383
   - cex
10384
  """
10385
 
10386
  thrift_spec = (
10387
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10388
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10389
  )
10390
 
10391
  def __init__(self, success=None, cex=None,):
10392
    self.success = success
10393
    self.cex = cex
10394
 
10395
  def read(self, iprot):
10396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10398
      return
10399
    iprot.readStructBegin()
10400
    while True:
10401
      (fname, ftype, fid) = iprot.readFieldBegin()
10402
      if ftype == TType.STOP:
10403
        break
10404
      if fid == 0:
10405
        if ftype == TType.LIST:
10406
          self.success = []
8590 kshitij.so 10407
          (_etype49, _size46) = iprot.readListBegin()
10408
          for _i50 in xrange(_size46):
10409
            _elem51 = Item()
10410
            _elem51.read(iprot)
10411
            self.success.append(_elem51)
5944 mandeep.dh 10412
          iprot.readListEnd()
10413
        else:
10414
          iprot.skip(ftype)
10415
      elif fid == 1:
10416
        if ftype == TType.STRUCT:
10417
          self.cex = CatalogServiceException()
10418
          self.cex.read(iprot)
10419
        else:
10420
          iprot.skip(ftype)
10421
      else:
10422
        iprot.skip(ftype)
10423
      iprot.readFieldEnd()
10424
    iprot.readStructEnd()
10425
 
10426
  def write(self, oprot):
10427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10429
      return
10430
    oprot.writeStructBegin('getItemsByCatalogId_result')
10431
    if self.success is not None:
10432
      oprot.writeFieldBegin('success', TType.LIST, 0)
10433
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10434
      for iter52 in self.success:
10435
        iter52.write(oprot)
5944 mandeep.dh 10436
      oprot.writeListEnd()
10437
      oprot.writeFieldEnd()
10438
    if self.cex is not None:
10439
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10440
      self.cex.write(oprot)
10441
      oprot.writeFieldEnd()
10442
    oprot.writeFieldStop()
10443
    oprot.writeStructEnd()
10444
 
10445
  def validate(self):
10446
    return
10447
 
10448
 
10449
  def __repr__(self):
10450
    L = ['%s=%r' % (key, value)
10451
      for key, value in self.__dict__.iteritems()]
10452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10453
 
10454
  def __eq__(self, other):
10455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10456
 
10457
  def __ne__(self, other):
10458
    return not (self == other)
10459
 
10460
class getValidItemsByCatalogId_args:
10461
  """
10462
  Attributes:
10463
   - catalog_item_id
10464
  """
10465
 
10466
  thrift_spec = (
10467
    None, # 0
10468
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10469
  )
10470
 
10471
  def __init__(self, catalog_item_id=None,):
10472
    self.catalog_item_id = catalog_item_id
10473
 
10474
  def read(self, iprot):
10475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10477
      return
10478
    iprot.readStructBegin()
10479
    while True:
10480
      (fname, ftype, fid) = iprot.readFieldBegin()
10481
      if ftype == TType.STOP:
10482
        break
10483
      if fid == 1:
10484
        if ftype == TType.I64:
10485
          self.catalog_item_id = iprot.readI64();
10486
        else:
10487
          iprot.skip(ftype)
10488
      else:
10489
        iprot.skip(ftype)
10490
      iprot.readFieldEnd()
10491
    iprot.readStructEnd()
10492
 
10493
  def write(self, oprot):
10494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10496
      return
10497
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10498
    if self.catalog_item_id is not None:
10499
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10500
      oprot.writeI64(self.catalog_item_id)
10501
      oprot.writeFieldEnd()
10502
    oprot.writeFieldStop()
10503
    oprot.writeStructEnd()
10504
 
10505
  def validate(self):
10506
    return
10507
 
10508
 
10509
  def __repr__(self):
10510
    L = ['%s=%r' % (key, value)
10511
      for key, value in self.__dict__.iteritems()]
10512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10513
 
10514
  def __eq__(self, other):
10515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10516
 
10517
  def __ne__(self, other):
10518
    return not (self == other)
10519
 
10520
class getValidItemsByCatalogId_result:
10521
  """
10522
  Attributes:
10523
   - success
10524
   - cex
10525
  """
10526
 
10527
  thrift_spec = (
10528
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10529
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10530
  )
10531
 
10532
  def __init__(self, success=None, cex=None,):
10533
    self.success = success
10534
    self.cex = cex
10535
 
10536
  def read(self, iprot):
10537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10539
      return
10540
    iprot.readStructBegin()
10541
    while True:
10542
      (fname, ftype, fid) = iprot.readFieldBegin()
10543
      if ftype == TType.STOP:
10544
        break
10545
      if fid == 0:
10546
        if ftype == TType.LIST:
10547
          self.success = []
8590 kshitij.so 10548
          (_etype56, _size53) = iprot.readListBegin()
10549
          for _i57 in xrange(_size53):
10550
            _elem58 = Item()
10551
            _elem58.read(iprot)
10552
            self.success.append(_elem58)
5944 mandeep.dh 10553
          iprot.readListEnd()
10554
        else:
10555
          iprot.skip(ftype)
10556
      elif fid == 1:
10557
        if ftype == TType.STRUCT:
10558
          self.cex = CatalogServiceException()
10559
          self.cex.read(iprot)
10560
        else:
10561
          iprot.skip(ftype)
10562
      else:
10563
        iprot.skip(ftype)
10564
      iprot.readFieldEnd()
10565
    iprot.readStructEnd()
10566
 
10567
  def write(self, oprot):
10568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10570
      return
10571
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10572
    if self.success is not None:
10573
      oprot.writeFieldBegin('success', TType.LIST, 0)
10574
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10575
      for iter59 in self.success:
10576
        iter59.write(oprot)
5944 mandeep.dh 10577
      oprot.writeListEnd()
10578
      oprot.writeFieldEnd()
10579
    if self.cex is not None:
10580
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10581
      self.cex.write(oprot)
10582
      oprot.writeFieldEnd()
10583
    oprot.writeFieldStop()
10584
    oprot.writeStructEnd()
10585
 
10586
  def validate(self):
10587
    return
10588
 
10589
 
10590
  def __repr__(self):
10591
    L = ['%s=%r' % (key, value)
10592
      for key, value in self.__dict__.iteritems()]
10593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10594
 
10595
  def __eq__(self, other):
10596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10597
 
10598
  def __ne__(self, other):
10599
    return not (self == other)
10600
 
10601
class getAllItems_args:
10602
  """
10603
  Attributes:
10604
   - isActive
10605
  """
10606
 
10607
  thrift_spec = (
10608
    None, # 0
10609
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10610
  )
10611
 
10612
  def __init__(self, isActive=None,):
10613
    self.isActive = isActive
10614
 
10615
  def read(self, iprot):
10616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10618
      return
10619
    iprot.readStructBegin()
10620
    while True:
10621
      (fname, ftype, fid) = iprot.readFieldBegin()
10622
      if ftype == TType.STOP:
10623
        break
10624
      if fid == 1:
10625
        if ftype == TType.BOOL:
10626
          self.isActive = iprot.readBool();
10627
        else:
10628
          iprot.skip(ftype)
10629
      else:
10630
        iprot.skip(ftype)
10631
      iprot.readFieldEnd()
10632
    iprot.readStructEnd()
10633
 
10634
  def write(self, oprot):
10635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10637
      return
10638
    oprot.writeStructBegin('getAllItems_args')
10639
    if self.isActive is not None:
10640
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10641
      oprot.writeBool(self.isActive)
10642
      oprot.writeFieldEnd()
10643
    oprot.writeFieldStop()
10644
    oprot.writeStructEnd()
10645
 
10646
  def validate(self):
10647
    return
10648
 
10649
 
10650
  def __repr__(self):
10651
    L = ['%s=%r' % (key, value)
10652
      for key, value in self.__dict__.iteritems()]
10653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10654
 
10655
  def __eq__(self, other):
10656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10657
 
10658
  def __ne__(self, other):
10659
    return not (self == other)
10660
 
10661
class getAllItems_result:
10662
  """
10663
  Attributes:
10664
   - success
10665
   - cex
10666
  """
10667
 
10668
  thrift_spec = (
10669
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10670
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10671
  )
10672
 
10673
  def __init__(self, success=None, cex=None,):
10674
    self.success = success
10675
    self.cex = cex
10676
 
10677
  def read(self, iprot):
10678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10680
      return
10681
    iprot.readStructBegin()
10682
    while True:
10683
      (fname, ftype, fid) = iprot.readFieldBegin()
10684
      if ftype == TType.STOP:
10685
        break
10686
      if fid == 0:
10687
        if ftype == TType.LIST:
10688
          self.success = []
8590 kshitij.so 10689
          (_etype63, _size60) = iprot.readListBegin()
10690
          for _i64 in xrange(_size60):
10691
            _elem65 = Item()
10692
            _elem65.read(iprot)
10693
            self.success.append(_elem65)
5944 mandeep.dh 10694
          iprot.readListEnd()
10695
        else:
10696
          iprot.skip(ftype)
10697
      elif fid == 1:
10698
        if ftype == TType.STRUCT:
10699
          self.cex = CatalogServiceException()
10700
          self.cex.read(iprot)
10701
        else:
10702
          iprot.skip(ftype)
10703
      else:
10704
        iprot.skip(ftype)
10705
      iprot.readFieldEnd()
10706
    iprot.readStructEnd()
10707
 
10708
  def write(self, oprot):
10709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10711
      return
10712
    oprot.writeStructBegin('getAllItems_result')
10713
    if self.success is not None:
10714
      oprot.writeFieldBegin('success', TType.LIST, 0)
10715
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10716
      for iter66 in self.success:
10717
        iter66.write(oprot)
5944 mandeep.dh 10718
      oprot.writeListEnd()
10719
      oprot.writeFieldEnd()
10720
    if self.cex is not None:
10721
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10722
      self.cex.write(oprot)
10723
      oprot.writeFieldEnd()
10724
    oprot.writeFieldStop()
10725
    oprot.writeStructEnd()
10726
 
10727
  def validate(self):
10728
    return
10729
 
10730
 
10731
  def __repr__(self):
10732
    L = ['%s=%r' % (key, value)
10733
      for key, value in self.__dict__.iteritems()]
10734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10735
 
10736
  def __eq__(self, other):
10737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10738
 
10739
  def __ne__(self, other):
10740
    return not (self == other)
10741
 
10742
class getAllItemsByStatus_args:
10743
  """
10744
  Attributes:
10745
   - itemStatus
10746
  """
10747
 
10748
  thrift_spec = (
10749
    None, # 0
10750
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10751
  )
10752
 
10753
  def __init__(self, itemStatus=None,):
10754
    self.itemStatus = itemStatus
10755
 
10756
  def read(self, iprot):
10757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10759
      return
10760
    iprot.readStructBegin()
10761
    while True:
10762
      (fname, ftype, fid) = iprot.readFieldBegin()
10763
      if ftype == TType.STOP:
10764
        break
10765
      if fid == 1:
10766
        if ftype == TType.I32:
10767
          self.itemStatus = iprot.readI32();
10768
        else:
10769
          iprot.skip(ftype)
10770
      else:
10771
        iprot.skip(ftype)
10772
      iprot.readFieldEnd()
10773
    iprot.readStructEnd()
10774
 
10775
  def write(self, oprot):
10776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10778
      return
10779
    oprot.writeStructBegin('getAllItemsByStatus_args')
10780
    if self.itemStatus is not None:
10781
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10782
      oprot.writeI32(self.itemStatus)
10783
      oprot.writeFieldEnd()
10784
    oprot.writeFieldStop()
10785
    oprot.writeStructEnd()
10786
 
10787
  def validate(self):
10788
    return
10789
 
10790
 
10791
  def __repr__(self):
10792
    L = ['%s=%r' % (key, value)
10793
      for key, value in self.__dict__.iteritems()]
10794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10795
 
10796
  def __eq__(self, other):
10797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10798
 
10799
  def __ne__(self, other):
10800
    return not (self == other)
10801
 
10802
class getAllItemsByStatus_result:
10803
  """
10804
  Attributes:
10805
   - success
10806
   - cex
10807
  """
10808
 
10809
  thrift_spec = (
10810
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10811
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10812
  )
10813
 
10814
  def __init__(self, success=None, cex=None,):
10815
    self.success = success
10816
    self.cex = cex
10817
 
10818
  def read(self, iprot):
10819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10821
      return
10822
    iprot.readStructBegin()
10823
    while True:
10824
      (fname, ftype, fid) = iprot.readFieldBegin()
10825
      if ftype == TType.STOP:
10826
        break
10827
      if fid == 0:
10828
        if ftype == TType.LIST:
10829
          self.success = []
8590 kshitij.so 10830
          (_etype70, _size67) = iprot.readListBegin()
10831
          for _i71 in xrange(_size67):
10832
            _elem72 = Item()
10833
            _elem72.read(iprot)
10834
            self.success.append(_elem72)
5944 mandeep.dh 10835
          iprot.readListEnd()
10836
        else:
10837
          iprot.skip(ftype)
10838
      elif fid == 1:
10839
        if ftype == TType.STRUCT:
10840
          self.cex = CatalogServiceException()
10841
          self.cex.read(iprot)
10842
        else:
10843
          iprot.skip(ftype)
10844
      else:
10845
        iprot.skip(ftype)
10846
      iprot.readFieldEnd()
10847
    iprot.readStructEnd()
10848
 
10849
  def write(self, oprot):
10850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10852
      return
10853
    oprot.writeStructBegin('getAllItemsByStatus_result')
10854
    if self.success is not None:
10855
      oprot.writeFieldBegin('success', TType.LIST, 0)
10856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10857
      for iter73 in self.success:
10858
        iter73.write(oprot)
5944 mandeep.dh 10859
      oprot.writeListEnd()
10860
      oprot.writeFieldEnd()
10861
    if self.cex is not None:
10862
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10863
      self.cex.write(oprot)
10864
      oprot.writeFieldEnd()
10865
    oprot.writeFieldStop()
10866
    oprot.writeStructEnd()
10867
 
10868
  def validate(self):
10869
    return
10870
 
10871
 
10872
  def __repr__(self):
10873
    L = ['%s=%r' % (key, value)
10874
      for key, value in self.__dict__.iteritems()]
10875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10876
 
10877
  def __eq__(self, other):
10878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10879
 
10880
  def __ne__(self, other):
10881
    return not (self == other)
10882
 
10883
class markItemAsContentComplete_args:
10884
  """
10885
  Attributes:
10886
   - entityId
10887
   - category
10888
   - brand
10889
   - modelName
10890
   - modelNumber
9253 rajveer 10891
   - isAndroid
5944 mandeep.dh 10892
  """
10893
 
10894
  thrift_spec = (
10895
    None, # 0
10896
    (1, TType.I64, 'entityId', None, None, ), # 1
10897
    (2, TType.I64, 'category', None, None, ), # 2
10898
    (3, TType.STRING, 'brand', None, None, ), # 3
10899
    (4, TType.STRING, 'modelName', None, None, ), # 4
10900
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 10901
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 10902
  )
10903
 
9253 rajveer 10904
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 10905
    self.entityId = entityId
10906
    self.category = category
10907
    self.brand = brand
10908
    self.modelName = modelName
10909
    self.modelNumber = modelNumber
9253 rajveer 10910
    self.isAndroid = isAndroid
5944 mandeep.dh 10911
 
10912
  def read(self, iprot):
10913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10915
      return
10916
    iprot.readStructBegin()
10917
    while True:
10918
      (fname, ftype, fid) = iprot.readFieldBegin()
10919
      if ftype == TType.STOP:
10920
        break
10921
      if fid == 1:
10922
        if ftype == TType.I64:
10923
          self.entityId = iprot.readI64();
10924
        else:
10925
          iprot.skip(ftype)
10926
      elif fid == 2:
10927
        if ftype == TType.I64:
10928
          self.category = iprot.readI64();
10929
        else:
10930
          iprot.skip(ftype)
10931
      elif fid == 3:
10932
        if ftype == TType.STRING:
10933
          self.brand = iprot.readString();
10934
        else:
10935
          iprot.skip(ftype)
10936
      elif fid == 4:
10937
        if ftype == TType.STRING:
10938
          self.modelName = iprot.readString();
10939
        else:
10940
          iprot.skip(ftype)
10941
      elif fid == 5:
10942
        if ftype == TType.STRING:
10943
          self.modelNumber = iprot.readString();
10944
        else:
10945
          iprot.skip(ftype)
9253 rajveer 10946
      elif fid == 6:
10947
        if ftype == TType.BOOL:
10948
          self.isAndroid = iprot.readBool();
10949
        else:
10950
          iprot.skip(ftype)
5944 mandeep.dh 10951
      else:
10952
        iprot.skip(ftype)
10953
      iprot.readFieldEnd()
10954
    iprot.readStructEnd()
10955
 
10956
  def write(self, oprot):
10957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10959
      return
10960
    oprot.writeStructBegin('markItemAsContentComplete_args')
10961
    if self.entityId is not None:
10962
      oprot.writeFieldBegin('entityId', TType.I64, 1)
10963
      oprot.writeI64(self.entityId)
10964
      oprot.writeFieldEnd()
10965
    if self.category is not None:
10966
      oprot.writeFieldBegin('category', TType.I64, 2)
10967
      oprot.writeI64(self.category)
10968
      oprot.writeFieldEnd()
10969
    if self.brand is not None:
10970
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10971
      oprot.writeString(self.brand)
10972
      oprot.writeFieldEnd()
10973
    if self.modelName is not None:
10974
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
10975
      oprot.writeString(self.modelName)
10976
      oprot.writeFieldEnd()
10977
    if self.modelNumber is not None:
10978
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
10979
      oprot.writeString(self.modelNumber)
10980
      oprot.writeFieldEnd()
9253 rajveer 10981
    if self.isAndroid is not None:
10982
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
10983
      oprot.writeBool(self.isAndroid)
10984
      oprot.writeFieldEnd()
5944 mandeep.dh 10985
    oprot.writeFieldStop()
10986
    oprot.writeStructEnd()
10987
 
10988
  def validate(self):
10989
    return
10990
 
10991
 
10992
  def __repr__(self):
10993
    L = ['%s=%r' % (key, value)
10994
      for key, value in self.__dict__.iteritems()]
10995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10996
 
10997
  def __eq__(self, other):
10998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10999
 
11000
  def __ne__(self, other):
11001
    return not (self == other)
11002
 
11003
class markItemAsContentComplete_result:
11004
  """
11005
  Attributes:
11006
   - success
11007
   - cex
11008
  """
11009
 
11010
  thrift_spec = (
11011
    (0, TType.BOOL, 'success', None, None, ), # 0
11012
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11013
  )
11014
 
11015
  def __init__(self, success=None, cex=None,):
11016
    self.success = success
11017
    self.cex = cex
11018
 
11019
  def read(self, iprot):
11020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11022
      return
11023
    iprot.readStructBegin()
11024
    while True:
11025
      (fname, ftype, fid) = iprot.readFieldBegin()
11026
      if ftype == TType.STOP:
11027
        break
11028
      if fid == 0:
11029
        if ftype == TType.BOOL:
11030
          self.success = iprot.readBool();
11031
        else:
11032
          iprot.skip(ftype)
11033
      elif fid == 1:
11034
        if ftype == TType.STRUCT:
11035
          self.cex = CatalogServiceException()
11036
          self.cex.read(iprot)
11037
        else:
11038
          iprot.skip(ftype)
11039
      else:
11040
        iprot.skip(ftype)
11041
      iprot.readFieldEnd()
11042
    iprot.readStructEnd()
11043
 
11044
  def write(self, oprot):
11045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11047
      return
11048
    oprot.writeStructBegin('markItemAsContentComplete_result')
11049
    if self.success is not None:
11050
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11051
      oprot.writeBool(self.success)
11052
      oprot.writeFieldEnd()
11053
    if self.cex is not None:
11054
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11055
      self.cex.write(oprot)
11056
      oprot.writeFieldEnd()
11057
    oprot.writeFieldStop()
11058
    oprot.writeStructEnd()
11059
 
11060
  def validate(self):
11061
    return
11062
 
11063
 
11064
  def __repr__(self):
11065
    L = ['%s=%r' % (key, value)
11066
      for key, value in self.__dict__.iteritems()]
11067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11068
 
11069
  def __eq__(self, other):
11070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11071
 
11072
  def __ne__(self, other):
11073
    return not (self == other)
11074
 
12567 amit.gupta 11075
class getVatRates_args:
11076
  """
11077
  Attributes:
11078
   - itemId
11079
   - categoryId
11080
  """
11081
 
11082
  thrift_spec = (
11083
    None, # 0
11084
    (1, TType.I64, 'itemId', None, None, ), # 1
11085
    (2, TType.I64, 'categoryId', None, None, ), # 2
11086
  )
11087
 
11088
  def __init__(self, itemId=None, categoryId=None,):
11089
    self.itemId = itemId
11090
    self.categoryId = categoryId
11091
 
11092
  def read(self, iprot):
11093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11095
      return
11096
    iprot.readStructBegin()
11097
    while True:
11098
      (fname, ftype, fid) = iprot.readFieldBegin()
11099
      if ftype == TType.STOP:
11100
        break
11101
      if fid == 1:
11102
        if ftype == TType.I64:
11103
          self.itemId = iprot.readI64();
11104
        else:
11105
          iprot.skip(ftype)
11106
      elif fid == 2:
11107
        if ftype == TType.I64:
11108
          self.categoryId = iprot.readI64();
11109
        else:
11110
          iprot.skip(ftype)
11111
      else:
11112
        iprot.skip(ftype)
11113
      iprot.readFieldEnd()
11114
    iprot.readStructEnd()
11115
 
11116
  def write(self, oprot):
11117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11119
      return
11120
    oprot.writeStructBegin('getVatRates_args')
11121
    if self.itemId is not None:
11122
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11123
      oprot.writeI64(self.itemId)
11124
      oprot.writeFieldEnd()
11125
    if self.categoryId is not None:
11126
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11127
      oprot.writeI64(self.categoryId)
11128
      oprot.writeFieldEnd()
11129
    oprot.writeFieldStop()
11130
    oprot.writeStructEnd()
11131
 
11132
  def validate(self):
11133
    return
11134
 
11135
 
11136
  def __repr__(self):
11137
    L = ['%s=%r' % (key, value)
11138
      for key, value in self.__dict__.iteritems()]
11139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11140
 
11141
  def __eq__(self, other):
11142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11143
 
11144
  def __ne__(self, other):
11145
    return not (self == other)
11146
 
11147
class getVatRates_result:
11148
  """
11149
  Attributes:
11150
   - success
11151
   - cex
11152
  """
11153
 
11154
  thrift_spec = (
11155
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11156
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11157
  )
11158
 
11159
  def __init__(self, success=None, cex=None,):
11160
    self.success = success
11161
    self.cex = cex
11162
 
11163
  def read(self, iprot):
11164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11166
      return
11167
    iprot.readStructBegin()
11168
    while True:
11169
      (fname, ftype, fid) = iprot.readFieldBegin()
11170
      if ftype == TType.STOP:
11171
        break
11172
      if fid == 0:
11173
        if ftype == TType.MAP:
11174
          self.success = {}
11175
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
11176
          for _i78 in xrange(_size74):
11177
            _key79 = iprot.readI64();
11178
            _val80 = iprot.readDouble();
11179
            self.success[_key79] = _val80
11180
          iprot.readMapEnd()
11181
        else:
11182
          iprot.skip(ftype)
11183
      elif fid == 1:
11184
        if ftype == TType.STRUCT:
11185
          self.cex = CatalogServiceException()
11186
          self.cex.read(iprot)
11187
        else:
11188
          iprot.skip(ftype)
11189
      else:
11190
        iprot.skip(ftype)
11191
      iprot.readFieldEnd()
11192
    iprot.readStructEnd()
11193
 
11194
  def write(self, oprot):
11195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11197
      return
11198
    oprot.writeStructBegin('getVatRates_result')
11199
    if self.success is not None:
11200
      oprot.writeFieldBegin('success', TType.MAP, 0)
11201
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
11202
      for kiter81,viter82 in self.success.items():
11203
        oprot.writeI64(kiter81)
11204
        oprot.writeDouble(viter82)
11205
      oprot.writeMapEnd()
11206
      oprot.writeFieldEnd()
11207
    if self.cex is not None:
11208
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11209
      self.cex.write(oprot)
11210
      oprot.writeFieldEnd()
11211
    oprot.writeFieldStop()
11212
    oprot.writeStructEnd()
11213
 
11214
  def validate(self):
11215
    return
11216
 
11217
 
11218
  def __repr__(self):
11219
    L = ['%s=%r' % (key, value)
11220
      for key, value in self.__dict__.iteritems()]
11221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11222
 
11223
  def __eq__(self, other):
11224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11225
 
11226
  def __ne__(self, other):
11227
    return not (self == other)
11228
 
5944 mandeep.dh 11229
class getAllItemsInRange_args:
11230
  """
11231
  Attributes:
11232
   - offset
11233
   - limit
11234
  """
11235
 
11236
  thrift_spec = (
11237
    None, # 0
11238
    (1, TType.I64, 'offset', None, None, ), # 1
11239
    (2, TType.I64, 'limit', None, None, ), # 2
11240
  )
11241
 
11242
  def __init__(self, offset=None, limit=None,):
11243
    self.offset = offset
11244
    self.limit = limit
11245
 
11246
  def read(self, iprot):
11247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11249
      return
11250
    iprot.readStructBegin()
11251
    while True:
11252
      (fname, ftype, fid) = iprot.readFieldBegin()
11253
      if ftype == TType.STOP:
11254
        break
11255
      if fid == 1:
11256
        if ftype == TType.I64:
11257
          self.offset = iprot.readI64();
11258
        else:
11259
          iprot.skip(ftype)
11260
      elif fid == 2:
11261
        if ftype == TType.I64:
11262
          self.limit = iprot.readI64();
11263
        else:
11264
          iprot.skip(ftype)
11265
      else:
11266
        iprot.skip(ftype)
11267
      iprot.readFieldEnd()
11268
    iprot.readStructEnd()
11269
 
11270
  def write(self, oprot):
11271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11273
      return
11274
    oprot.writeStructBegin('getAllItemsInRange_args')
11275
    if self.offset is not None:
11276
      oprot.writeFieldBegin('offset', TType.I64, 1)
11277
      oprot.writeI64(self.offset)
11278
      oprot.writeFieldEnd()
11279
    if self.limit is not None:
11280
      oprot.writeFieldBegin('limit', TType.I64, 2)
11281
      oprot.writeI64(self.limit)
11282
      oprot.writeFieldEnd()
11283
    oprot.writeFieldStop()
11284
    oprot.writeStructEnd()
11285
 
11286
  def validate(self):
11287
    return
11288
 
11289
 
11290
  def __repr__(self):
11291
    L = ['%s=%r' % (key, value)
11292
      for key, value in self.__dict__.iteritems()]
11293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11294
 
11295
  def __eq__(self, other):
11296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11297
 
11298
  def __ne__(self, other):
11299
    return not (self == other)
11300
 
11301
class getAllItemsInRange_result:
11302
  """
11303
  Attributes:
11304
   - success
11305
   - cex
11306
  """
11307
 
11308
  thrift_spec = (
11309
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11310
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11311
  )
11312
 
11313
  def __init__(self, success=None, cex=None,):
11314
    self.success = success
11315
    self.cex = cex
11316
 
11317
  def read(self, iprot):
11318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11320
      return
11321
    iprot.readStructBegin()
11322
    while True:
11323
      (fname, ftype, fid) = iprot.readFieldBegin()
11324
      if ftype == TType.STOP:
11325
        break
11326
      if fid == 0:
11327
        if ftype == TType.LIST:
11328
          self.success = []
12567 amit.gupta 11329
          (_etype86, _size83) = iprot.readListBegin()
11330
          for _i87 in xrange(_size83):
11331
            _elem88 = Item()
11332
            _elem88.read(iprot)
11333
            self.success.append(_elem88)
5944 mandeep.dh 11334
          iprot.readListEnd()
11335
        else:
11336
          iprot.skip(ftype)
11337
      elif fid == 1:
11338
        if ftype == TType.STRUCT:
11339
          self.cex = CatalogServiceException()
11340
          self.cex.read(iprot)
11341
        else:
11342
          iprot.skip(ftype)
11343
      else:
11344
        iprot.skip(ftype)
11345
      iprot.readFieldEnd()
11346
    iprot.readStructEnd()
11347
 
11348
  def write(self, oprot):
11349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11351
      return
11352
    oprot.writeStructBegin('getAllItemsInRange_result')
11353
    if self.success is not None:
11354
      oprot.writeFieldBegin('success', TType.LIST, 0)
11355
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11356
      for iter89 in self.success:
11357
        iter89.write(oprot)
5944 mandeep.dh 11358
      oprot.writeListEnd()
11359
      oprot.writeFieldEnd()
11360
    if self.cex is not None:
11361
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11362
      self.cex.write(oprot)
11363
      oprot.writeFieldEnd()
11364
    oprot.writeFieldStop()
11365
    oprot.writeStructEnd()
11366
 
11367
  def validate(self):
11368
    return
11369
 
11370
 
11371
  def __repr__(self):
11372
    L = ['%s=%r' % (key, value)
11373
      for key, value in self.__dict__.iteritems()]
11374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11375
 
11376
  def __eq__(self, other):
11377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11378
 
11379
  def __ne__(self, other):
11380
    return not (self == other)
11381
 
11382
class getAllItemsByStatusInRange_args:
11383
  """
11384
  Attributes:
11385
   - itemStatus
11386
   - offset
11387
   - limit
11388
  """
11389
 
11390
  thrift_spec = (
11391
    None, # 0
11392
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11393
    (2, TType.I64, 'offset', None, None, ), # 2
11394
    (3, TType.I64, 'limit', None, None, ), # 3
11395
  )
11396
 
11397
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11398
    self.itemStatus = itemStatus
11399
    self.offset = offset
11400
    self.limit = limit
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 == 1:
11412
        if ftype == TType.I32:
11413
          self.itemStatus = iprot.readI32();
11414
        else:
11415
          iprot.skip(ftype)
11416
      elif fid == 2:
11417
        if ftype == TType.I64:
11418
          self.offset = iprot.readI64();
11419
        else:
11420
          iprot.skip(ftype)
11421
      elif fid == 3:
11422
        if ftype == TType.I64:
11423
          self.limit = iprot.readI64();
11424
        else:
11425
          iprot.skip(ftype)
11426
      else:
11427
        iprot.skip(ftype)
11428
      iprot.readFieldEnd()
11429
    iprot.readStructEnd()
11430
 
11431
  def write(self, oprot):
11432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11434
      return
11435
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11436
    if self.itemStatus is not None:
11437
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11438
      oprot.writeI32(self.itemStatus)
11439
      oprot.writeFieldEnd()
11440
    if self.offset is not None:
11441
      oprot.writeFieldBegin('offset', TType.I64, 2)
11442
      oprot.writeI64(self.offset)
11443
      oprot.writeFieldEnd()
11444
    if self.limit is not None:
11445
      oprot.writeFieldBegin('limit', TType.I64, 3)
11446
      oprot.writeI64(self.limit)
11447
      oprot.writeFieldEnd()
11448
    oprot.writeFieldStop()
11449
    oprot.writeStructEnd()
11450
 
11451
  def validate(self):
11452
    return
11453
 
11454
 
11455
  def __repr__(self):
11456
    L = ['%s=%r' % (key, value)
11457
      for key, value in self.__dict__.iteritems()]
11458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11459
 
11460
  def __eq__(self, other):
11461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11462
 
11463
  def __ne__(self, other):
11464
    return not (self == other)
11465
 
11466
class getAllItemsByStatusInRange_result:
11467
  """
11468
  Attributes:
11469
   - success
11470
   - cex
11471
  """
11472
 
11473
  thrift_spec = (
11474
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11475
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11476
  )
11477
 
11478
  def __init__(self, success=None, cex=None,):
11479
    self.success = success
11480
    self.cex = cex
11481
 
11482
  def read(self, iprot):
11483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11485
      return
11486
    iprot.readStructBegin()
11487
    while True:
11488
      (fname, ftype, fid) = iprot.readFieldBegin()
11489
      if ftype == TType.STOP:
11490
        break
11491
      if fid == 0:
11492
        if ftype == TType.LIST:
11493
          self.success = []
12567 amit.gupta 11494
          (_etype93, _size90) = iprot.readListBegin()
11495
          for _i94 in xrange(_size90):
11496
            _elem95 = Item()
11497
            _elem95.read(iprot)
11498
            self.success.append(_elem95)
5944 mandeep.dh 11499
          iprot.readListEnd()
11500
        else:
11501
          iprot.skip(ftype)
11502
      elif fid == 1:
11503
        if ftype == TType.STRUCT:
11504
          self.cex = CatalogServiceException()
11505
          self.cex.read(iprot)
11506
        else:
11507
          iprot.skip(ftype)
11508
      else:
11509
        iprot.skip(ftype)
11510
      iprot.readFieldEnd()
11511
    iprot.readStructEnd()
11512
 
11513
  def write(self, oprot):
11514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11516
      return
11517
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11518
    if self.success is not None:
11519
      oprot.writeFieldBegin('success', TType.LIST, 0)
11520
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11521
      for iter96 in self.success:
11522
        iter96.write(oprot)
5944 mandeep.dh 11523
      oprot.writeListEnd()
11524
      oprot.writeFieldEnd()
11525
    if self.cex is not None:
11526
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11527
      self.cex.write(oprot)
11528
      oprot.writeFieldEnd()
11529
    oprot.writeFieldStop()
11530
    oprot.writeStructEnd()
11531
 
11532
  def validate(self):
11533
    return
11534
 
11535
 
11536
  def __repr__(self):
11537
    L = ['%s=%r' % (key, value)
11538
      for key, value in self.__dict__.iteritems()]
11539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11540
 
11541
  def __eq__(self, other):
11542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11543
 
11544
  def __ne__(self, other):
11545
    return not (self == other)
11546
 
11547
class getItemCountByStatus_args:
11548
  """
11549
  Attributes:
11550
   - useStatus
11551
   - itemStatus
11552
  """
11553
 
11554
  thrift_spec = (
11555
    None, # 0
11556
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11557
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11558
  )
11559
 
11560
  def __init__(self, useStatus=None, itemStatus=None,):
11561
    self.useStatus = useStatus
11562
    self.itemStatus = itemStatus
11563
 
11564
  def read(self, iprot):
11565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11567
      return
11568
    iprot.readStructBegin()
11569
    while True:
11570
      (fname, ftype, fid) = iprot.readFieldBegin()
11571
      if ftype == TType.STOP:
11572
        break
11573
      if fid == 1:
11574
        if ftype == TType.BOOL:
11575
          self.useStatus = iprot.readBool();
11576
        else:
11577
          iprot.skip(ftype)
11578
      elif fid == 2:
11579
        if ftype == TType.I32:
11580
          self.itemStatus = iprot.readI32();
11581
        else:
11582
          iprot.skip(ftype)
11583
      else:
11584
        iprot.skip(ftype)
11585
      iprot.readFieldEnd()
11586
    iprot.readStructEnd()
11587
 
11588
  def write(self, oprot):
11589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11591
      return
11592
    oprot.writeStructBegin('getItemCountByStatus_args')
11593
    if self.useStatus is not None:
11594
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11595
      oprot.writeBool(self.useStatus)
11596
      oprot.writeFieldEnd()
11597
    if self.itemStatus is not None:
11598
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11599
      oprot.writeI32(self.itemStatus)
11600
      oprot.writeFieldEnd()
11601
    oprot.writeFieldStop()
11602
    oprot.writeStructEnd()
11603
 
11604
  def validate(self):
11605
    return
11606
 
11607
 
11608
  def __repr__(self):
11609
    L = ['%s=%r' % (key, value)
11610
      for key, value in self.__dict__.iteritems()]
11611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11612
 
11613
  def __eq__(self, other):
11614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11615
 
11616
  def __ne__(self, other):
11617
    return not (self == other)
11618
 
11619
class getItemCountByStatus_result:
11620
  """
11621
  Attributes:
11622
   - success
11623
  """
11624
 
11625
  thrift_spec = (
11626
    (0, TType.I32, 'success', None, None, ), # 0
11627
  )
11628
 
11629
  def __init__(self, success=None,):
11630
    self.success = success
11631
 
11632
  def read(self, iprot):
11633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11635
      return
11636
    iprot.readStructBegin()
11637
    while True:
11638
      (fname, ftype, fid) = iprot.readFieldBegin()
11639
      if ftype == TType.STOP:
11640
        break
11641
      if fid == 0:
11642
        if ftype == TType.I32:
11643
          self.success = iprot.readI32();
11644
        else:
11645
          iprot.skip(ftype)
11646
      else:
11647
        iprot.skip(ftype)
11648
      iprot.readFieldEnd()
11649
    iprot.readStructEnd()
11650
 
11651
  def write(self, oprot):
11652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11654
      return
11655
    oprot.writeStructBegin('getItemCountByStatus_result')
11656
    if self.success is not None:
11657
      oprot.writeFieldBegin('success', TType.I32, 0)
11658
      oprot.writeI32(self.success)
11659
      oprot.writeFieldEnd()
11660
    oprot.writeFieldStop()
11661
    oprot.writeStructEnd()
11662
 
11663
  def validate(self):
11664
    return
11665
 
11666
 
11667
  def __repr__(self):
11668
    L = ['%s=%r' % (key, value)
11669
      for key, value in self.__dict__.iteritems()]
11670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11671
 
11672
  def __eq__(self, other):
11673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11674
 
11675
  def __ne__(self, other):
11676
    return not (self == other)
11677
 
11678
class getBestSellers_args:
11679
 
11680
  thrift_spec = (
11681
  )
11682
 
11683
  def read(self, iprot):
11684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11686
      return
11687
    iprot.readStructBegin()
11688
    while True:
11689
      (fname, ftype, fid) = iprot.readFieldBegin()
11690
      if ftype == TType.STOP:
11691
        break
11692
      else:
11693
        iprot.skip(ftype)
11694
      iprot.readFieldEnd()
11695
    iprot.readStructEnd()
11696
 
11697
  def write(self, oprot):
11698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11700
      return
11701
    oprot.writeStructBegin('getBestSellers_args')
11702
    oprot.writeFieldStop()
11703
    oprot.writeStructEnd()
11704
 
11705
  def validate(self):
11706
    return
11707
 
11708
 
11709
  def __repr__(self):
11710
    L = ['%s=%r' % (key, value)
11711
      for key, value in self.__dict__.iteritems()]
11712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11713
 
11714
  def __eq__(self, other):
11715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11716
 
11717
  def __ne__(self, other):
11718
    return not (self == other)
11719
 
11720
class getBestSellers_result:
11721
  """
11722
  Attributes:
11723
   - success
11724
   - isex
11725
  """
11726
 
11727
  thrift_spec = (
11728
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11729
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11730
  )
11731
 
11732
  def __init__(self, success=None, isex=None,):
11733
    self.success = success
11734
    self.isex = isex
11735
 
11736
  def read(self, iprot):
11737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11739
      return
11740
    iprot.readStructBegin()
11741
    while True:
11742
      (fname, ftype, fid) = iprot.readFieldBegin()
11743
      if ftype == TType.STOP:
11744
        break
11745
      if fid == 0:
11746
        if ftype == TType.LIST:
11747
          self.success = []
12567 amit.gupta 11748
          (_etype100, _size97) = iprot.readListBegin()
11749
          for _i101 in xrange(_size97):
11750
            _elem102 = Item()
11751
            _elem102.read(iprot)
11752
            self.success.append(_elem102)
5944 mandeep.dh 11753
          iprot.readListEnd()
11754
        else:
11755
          iprot.skip(ftype)
11756
      elif fid == 1:
11757
        if ftype == TType.STRUCT:
11758
          self.isex = CatalogServiceException()
11759
          self.isex.read(iprot)
11760
        else:
11761
          iprot.skip(ftype)
11762
      else:
11763
        iprot.skip(ftype)
11764
      iprot.readFieldEnd()
11765
    iprot.readStructEnd()
11766
 
11767
  def write(self, oprot):
11768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11770
      return
11771
    oprot.writeStructBegin('getBestSellers_result')
11772
    if self.success is not None:
11773
      oprot.writeFieldBegin('success', TType.LIST, 0)
11774
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11775
      for iter103 in self.success:
11776
        iter103.write(oprot)
5944 mandeep.dh 11777
      oprot.writeListEnd()
11778
      oprot.writeFieldEnd()
11779
    if self.isex is not None:
11780
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11781
      self.isex.write(oprot)
11782
      oprot.writeFieldEnd()
11783
    oprot.writeFieldStop()
11784
    oprot.writeStructEnd()
11785
 
11786
  def validate(self):
11787
    return
11788
 
11789
 
11790
  def __repr__(self):
11791
    L = ['%s=%r' % (key, value)
11792
      for key, value in self.__dict__.iteritems()]
11793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11794
 
11795
  def __eq__(self, other):
11796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11797
 
11798
  def __ne__(self, other):
11799
    return not (self == other)
11800
 
11801
class getBestSellersCatalogIds_args:
11802
  """
11803
  Attributes:
11804
   - beginIndex
11805
   - totalItems
11806
   - brand
11807
   - category
11808
  """
11809
 
11810
  thrift_spec = (
11811
    None, # 0
11812
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11813
    (2, TType.I64, 'totalItems', None, None, ), # 2
11814
    (3, TType.STRING, 'brand', None, None, ), # 3
11815
    (4, TType.I64, 'category', None, None, ), # 4
11816
  )
11817
 
11818
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11819
    self.beginIndex = beginIndex
11820
    self.totalItems = totalItems
11821
    self.brand = brand
11822
    self.category = category
11823
 
11824
  def read(self, iprot):
11825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11827
      return
11828
    iprot.readStructBegin()
11829
    while True:
11830
      (fname, ftype, fid) = iprot.readFieldBegin()
11831
      if ftype == TType.STOP:
11832
        break
11833
      if fid == 1:
11834
        if ftype == TType.I64:
11835
          self.beginIndex = iprot.readI64();
11836
        else:
11837
          iprot.skip(ftype)
11838
      elif fid == 2:
11839
        if ftype == TType.I64:
11840
          self.totalItems = iprot.readI64();
11841
        else:
11842
          iprot.skip(ftype)
11843
      elif fid == 3:
11844
        if ftype == TType.STRING:
11845
          self.brand = iprot.readString();
11846
        else:
11847
          iprot.skip(ftype)
11848
      elif fid == 4:
11849
        if ftype == TType.I64:
11850
          self.category = iprot.readI64();
11851
        else:
11852
          iprot.skip(ftype)
11853
      else:
11854
        iprot.skip(ftype)
11855
      iprot.readFieldEnd()
11856
    iprot.readStructEnd()
11857
 
11858
  def write(self, oprot):
11859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11861
      return
11862
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
11863
    if self.beginIndex is not None:
11864
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11865
      oprot.writeI64(self.beginIndex)
11866
      oprot.writeFieldEnd()
11867
    if self.totalItems is not None:
11868
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11869
      oprot.writeI64(self.totalItems)
11870
      oprot.writeFieldEnd()
11871
    if self.brand is not None:
11872
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11873
      oprot.writeString(self.brand)
11874
      oprot.writeFieldEnd()
11875
    if self.category is not None:
11876
      oprot.writeFieldBegin('category', TType.I64, 4)
11877
      oprot.writeI64(self.category)
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 getBestSellersCatalogIds_result:
11898
  """
11899
  Attributes:
11900
   - success
11901
   - cex
11902
  """
11903
 
11904
  thrift_spec = (
11905
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11906
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11907
  )
11908
 
11909
  def __init__(self, success=None, cex=None,):
11910
    self.success = success
11911
    self.cex = cex
11912
 
11913
  def read(self, iprot):
11914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11916
      return
11917
    iprot.readStructBegin()
11918
    while True:
11919
      (fname, ftype, fid) = iprot.readFieldBegin()
11920
      if ftype == TType.STOP:
11921
        break
11922
      if fid == 0:
11923
        if ftype == TType.LIST:
11924
          self.success = []
12567 amit.gupta 11925
          (_etype107, _size104) = iprot.readListBegin()
11926
          for _i108 in xrange(_size104):
11927
            _elem109 = iprot.readI64();
11928
            self.success.append(_elem109)
5944 mandeep.dh 11929
          iprot.readListEnd()
11930
        else:
11931
          iprot.skip(ftype)
11932
      elif fid == 1:
11933
        if ftype == TType.STRUCT:
11934
          self.cex = CatalogServiceException()
11935
          self.cex.read(iprot)
11936
        else:
11937
          iprot.skip(ftype)
11938
      else:
11939
        iprot.skip(ftype)
11940
      iprot.readFieldEnd()
11941
    iprot.readStructEnd()
11942
 
11943
  def write(self, oprot):
11944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11946
      return
11947
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
11948
    if self.success is not None:
11949
      oprot.writeFieldBegin('success', TType.LIST, 0)
11950
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 11951
      for iter110 in self.success:
11952
        oprot.writeI64(iter110)
5944 mandeep.dh 11953
      oprot.writeListEnd()
11954
      oprot.writeFieldEnd()
11955
    if self.cex is not None:
11956
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11957
      self.cex.write(oprot)
11958
      oprot.writeFieldEnd()
11959
    oprot.writeFieldStop()
11960
    oprot.writeStructEnd()
11961
 
11962
  def validate(self):
11963
    return
11964
 
11965
 
11966
  def __repr__(self):
11967
    L = ['%s=%r' % (key, value)
11968
      for key, value in self.__dict__.iteritems()]
11969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11970
 
11971
  def __eq__(self, other):
11972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11973
 
11974
  def __ne__(self, other):
11975
    return not (self == other)
11976
 
11977
class getBestSellersCount_args:
11978
 
11979
  thrift_spec = (
11980
  )
11981
 
11982
  def read(self, iprot):
11983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11985
      return
11986
    iprot.readStructBegin()
11987
    while True:
11988
      (fname, ftype, fid) = iprot.readFieldBegin()
11989
      if ftype == TType.STOP:
11990
        break
11991
      else:
11992
        iprot.skip(ftype)
11993
      iprot.readFieldEnd()
11994
    iprot.readStructEnd()
11995
 
11996
  def write(self, oprot):
11997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11999
      return
12000
    oprot.writeStructBegin('getBestSellersCount_args')
12001
    oprot.writeFieldStop()
12002
    oprot.writeStructEnd()
12003
 
12004
  def validate(self):
12005
    return
12006
 
12007
 
12008
  def __repr__(self):
12009
    L = ['%s=%r' % (key, value)
12010
      for key, value in self.__dict__.iteritems()]
12011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12012
 
12013
  def __eq__(self, other):
12014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12015
 
12016
  def __ne__(self, other):
12017
    return not (self == other)
12018
 
12019
class getBestSellersCount_result:
12020
  """
12021
  Attributes:
12022
   - success
12023
   - cex
12024
  """
12025
 
12026
  thrift_spec = (
12027
    (0, TType.I64, 'success', None, None, ), # 0
12028
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12029
  )
12030
 
12031
  def __init__(self, success=None, cex=None,):
12032
    self.success = success
12033
    self.cex = cex
12034
 
12035
  def read(self, iprot):
12036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12038
      return
12039
    iprot.readStructBegin()
12040
    while True:
12041
      (fname, ftype, fid) = iprot.readFieldBegin()
12042
      if ftype == TType.STOP:
12043
        break
12044
      if fid == 0:
12045
        if ftype == TType.I64:
12046
          self.success = iprot.readI64();
12047
        else:
12048
          iprot.skip(ftype)
12049
      elif fid == 1:
12050
        if ftype == TType.STRUCT:
12051
          self.cex = CatalogServiceException()
12052
          self.cex.read(iprot)
12053
        else:
12054
          iprot.skip(ftype)
12055
      else:
12056
        iprot.skip(ftype)
12057
      iprot.readFieldEnd()
12058
    iprot.readStructEnd()
12059
 
12060
  def write(self, oprot):
12061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12063
      return
12064
    oprot.writeStructBegin('getBestSellersCount_result')
12065
    if self.success is not None:
12066
      oprot.writeFieldBegin('success', TType.I64, 0)
12067
      oprot.writeI64(self.success)
12068
      oprot.writeFieldEnd()
12069
    if self.cex is not None:
12070
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12071
      self.cex.write(oprot)
12072
      oprot.writeFieldEnd()
12073
    oprot.writeFieldStop()
12074
    oprot.writeStructEnd()
12075
 
12076
  def validate(self):
12077
    return
12078
 
12079
 
12080
  def __repr__(self):
12081
    L = ['%s=%r' % (key, value)
12082
      for key, value in self.__dict__.iteritems()]
12083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12084
 
12085
  def __eq__(self, other):
12086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12087
 
12088
  def __ne__(self, other):
12089
    return not (self == other)
12090
 
12091
class getBestDeals_args:
12092
 
12093
  thrift_spec = (
12094
  )
12095
 
12096
  def read(self, iprot):
12097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12099
      return
12100
    iprot.readStructBegin()
12101
    while True:
12102
      (fname, ftype, fid) = iprot.readFieldBegin()
12103
      if ftype == TType.STOP:
12104
        break
12105
      else:
12106
        iprot.skip(ftype)
12107
      iprot.readFieldEnd()
12108
    iprot.readStructEnd()
12109
 
12110
  def write(self, oprot):
12111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12113
      return
12114
    oprot.writeStructBegin('getBestDeals_args')
12115
    oprot.writeFieldStop()
12116
    oprot.writeStructEnd()
12117
 
12118
  def validate(self):
12119
    return
12120
 
12121
 
12122
  def __repr__(self):
12123
    L = ['%s=%r' % (key, value)
12124
      for key, value in self.__dict__.iteritems()]
12125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12126
 
12127
  def __eq__(self, other):
12128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12129
 
12130
  def __ne__(self, other):
12131
    return not (self == other)
12132
 
12133
class getBestDeals_result:
12134
  """
12135
  Attributes:
12136
   - success
12137
   - isex
12138
  """
12139
 
12140
  thrift_spec = (
12141
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12142
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12143
  )
12144
 
12145
  def __init__(self, success=None, isex=None,):
12146
    self.success = success
12147
    self.isex = isex
12148
 
12149
  def read(self, iprot):
12150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12152
      return
12153
    iprot.readStructBegin()
12154
    while True:
12155
      (fname, ftype, fid) = iprot.readFieldBegin()
12156
      if ftype == TType.STOP:
12157
        break
12158
      if fid == 0:
12159
        if ftype == TType.LIST:
12160
          self.success = []
12567 amit.gupta 12161
          (_etype114, _size111) = iprot.readListBegin()
12162
          for _i115 in xrange(_size111):
12163
            _elem116 = Item()
12164
            _elem116.read(iprot)
12165
            self.success.append(_elem116)
5944 mandeep.dh 12166
          iprot.readListEnd()
12167
        else:
12168
          iprot.skip(ftype)
12169
      elif fid == 1:
12170
        if ftype == TType.STRUCT:
12171
          self.isex = CatalogServiceException()
12172
          self.isex.read(iprot)
12173
        else:
12174
          iprot.skip(ftype)
12175
      else:
12176
        iprot.skip(ftype)
12177
      iprot.readFieldEnd()
12178
    iprot.readStructEnd()
12179
 
12180
  def write(self, oprot):
12181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12183
      return
12184
    oprot.writeStructBegin('getBestDeals_result')
12185
    if self.success is not None:
12186
      oprot.writeFieldBegin('success', TType.LIST, 0)
12187
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12188
      for iter117 in self.success:
12189
        iter117.write(oprot)
5944 mandeep.dh 12190
      oprot.writeListEnd()
12191
      oprot.writeFieldEnd()
12192
    if self.isex is not None:
12193
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12194
      self.isex.write(oprot)
12195
      oprot.writeFieldEnd()
12196
    oprot.writeFieldStop()
12197
    oprot.writeStructEnd()
12198
 
12199
  def validate(self):
12200
    return
12201
 
12202
 
12203
  def __repr__(self):
12204
    L = ['%s=%r' % (key, value)
12205
      for key, value in self.__dict__.iteritems()]
12206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12207
 
12208
  def __eq__(self, other):
12209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12210
 
12211
  def __ne__(self, other):
12212
    return not (self == other)
12213
 
12214
class getBestDealsCatalogIds_args:
12215
  """
12216
  Attributes:
12217
   - beginIndex
12218
   - totalItems
12219
   - brand
12220
   - category
12221
  """
12222
 
12223
  thrift_spec = (
12224
    None, # 0
12225
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12226
    (2, TType.I64, 'totalItems', None, None, ), # 2
12227
    (3, TType.STRING, 'brand', None, None, ), # 3
12228
    (4, TType.I64, 'category', None, None, ), # 4
12229
  )
12230
 
12231
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12232
    self.beginIndex = beginIndex
12233
    self.totalItems = totalItems
12234
    self.brand = brand
12235
    self.category = category
12236
 
12237
  def read(self, iprot):
12238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12240
      return
12241
    iprot.readStructBegin()
12242
    while True:
12243
      (fname, ftype, fid) = iprot.readFieldBegin()
12244
      if ftype == TType.STOP:
12245
        break
12246
      if fid == 1:
12247
        if ftype == TType.I64:
12248
          self.beginIndex = iprot.readI64();
12249
        else:
12250
          iprot.skip(ftype)
12251
      elif fid == 2:
12252
        if ftype == TType.I64:
12253
          self.totalItems = iprot.readI64();
12254
        else:
12255
          iprot.skip(ftype)
12256
      elif fid == 3:
12257
        if ftype == TType.STRING:
12258
          self.brand = iprot.readString();
12259
        else:
12260
          iprot.skip(ftype)
12261
      elif fid == 4:
12262
        if ftype == TType.I64:
12263
          self.category = iprot.readI64();
12264
        else:
12265
          iprot.skip(ftype)
12266
      else:
12267
        iprot.skip(ftype)
12268
      iprot.readFieldEnd()
12269
    iprot.readStructEnd()
12270
 
12271
  def write(self, oprot):
12272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12274
      return
12275
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
12276
    if self.beginIndex is not None:
12277
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12278
      oprot.writeI64(self.beginIndex)
12279
      oprot.writeFieldEnd()
12280
    if self.totalItems is not None:
12281
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12282
      oprot.writeI64(self.totalItems)
12283
      oprot.writeFieldEnd()
12284
    if self.brand is not None:
12285
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12286
      oprot.writeString(self.brand)
12287
      oprot.writeFieldEnd()
12288
    if self.category is not None:
12289
      oprot.writeFieldBegin('category', TType.I64, 4)
12290
      oprot.writeI64(self.category)
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 getBestDealsCatalogIds_result:
12311
  """
12312
  Attributes:
12313
   - success
12314
   - cex
12315
  """
12316
 
12317
  thrift_spec = (
12318
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12319
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12320
  )
12321
 
12322
  def __init__(self, success=None, cex=None,):
12323
    self.success = success
12324
    self.cex = cex
12325
 
12326
  def read(self, iprot):
12327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12329
      return
12330
    iprot.readStructBegin()
12331
    while True:
12332
      (fname, ftype, fid) = iprot.readFieldBegin()
12333
      if ftype == TType.STOP:
12334
        break
12335
      if fid == 0:
12336
        if ftype == TType.LIST:
12337
          self.success = []
12567 amit.gupta 12338
          (_etype121, _size118) = iprot.readListBegin()
12339
          for _i122 in xrange(_size118):
12340
            _elem123 = iprot.readI64();
12341
            self.success.append(_elem123)
5944 mandeep.dh 12342
          iprot.readListEnd()
12343
        else:
12344
          iprot.skip(ftype)
12345
      elif fid == 1:
12346
        if ftype == TType.STRUCT:
12347
          self.cex = CatalogServiceException()
12348
          self.cex.read(iprot)
12349
        else:
12350
          iprot.skip(ftype)
12351
      else:
12352
        iprot.skip(ftype)
12353
      iprot.readFieldEnd()
12354
    iprot.readStructEnd()
12355
 
12356
  def write(self, oprot):
12357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12359
      return
12360
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12361
    if self.success is not None:
12362
      oprot.writeFieldBegin('success', TType.LIST, 0)
12363
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12364
      for iter124 in self.success:
12365
        oprot.writeI64(iter124)
5944 mandeep.dh 12366
      oprot.writeListEnd()
12367
      oprot.writeFieldEnd()
12368
    if self.cex is not None:
12369
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12370
      self.cex.write(oprot)
12371
      oprot.writeFieldEnd()
12372
    oprot.writeFieldStop()
12373
    oprot.writeStructEnd()
12374
 
12375
  def validate(self):
12376
    return
12377
 
12378
 
12379
  def __repr__(self):
12380
    L = ['%s=%r' % (key, value)
12381
      for key, value in self.__dict__.iteritems()]
12382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12383
 
12384
  def __eq__(self, other):
12385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12386
 
12387
  def __ne__(self, other):
12388
    return not (self == other)
12389
 
12390
class getBestDealsCount_args:
12391
 
12392
  thrift_spec = (
12393
  )
12394
 
12395
  def read(self, iprot):
12396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12398
      return
12399
    iprot.readStructBegin()
12400
    while True:
12401
      (fname, ftype, fid) = iprot.readFieldBegin()
12402
      if ftype == TType.STOP:
12403
        break
12404
      else:
12405
        iprot.skip(ftype)
12406
      iprot.readFieldEnd()
12407
    iprot.readStructEnd()
12408
 
12409
  def write(self, oprot):
12410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12412
      return
12413
    oprot.writeStructBegin('getBestDealsCount_args')
12414
    oprot.writeFieldStop()
12415
    oprot.writeStructEnd()
12416
 
12417
  def validate(self):
12418
    return
12419
 
12420
 
12421
  def __repr__(self):
12422
    L = ['%s=%r' % (key, value)
12423
      for key, value in self.__dict__.iteritems()]
12424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12425
 
12426
  def __eq__(self, other):
12427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12428
 
12429
  def __ne__(self, other):
12430
    return not (self == other)
12431
 
12432
class getBestDealsCount_result:
12433
  """
12434
  Attributes:
12435
   - success
12436
   - cex
12437
  """
12438
 
12439
  thrift_spec = (
12440
    (0, TType.I64, 'success', None, None, ), # 0
12441
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12442
  )
12443
 
12444
  def __init__(self, success=None, cex=None,):
12445
    self.success = success
12446
    self.cex = cex
12447
 
12448
  def read(self, iprot):
12449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12451
      return
12452
    iprot.readStructBegin()
12453
    while True:
12454
      (fname, ftype, fid) = iprot.readFieldBegin()
12455
      if ftype == TType.STOP:
12456
        break
12457
      if fid == 0:
12458
        if ftype == TType.I64:
12459
          self.success = iprot.readI64();
12460
        else:
12461
          iprot.skip(ftype)
12462
      elif fid == 1:
12463
        if ftype == TType.STRUCT:
12464
          self.cex = CatalogServiceException()
12465
          self.cex.read(iprot)
12466
        else:
12467
          iprot.skip(ftype)
12468
      else:
12469
        iprot.skip(ftype)
12470
      iprot.readFieldEnd()
12471
    iprot.readStructEnd()
12472
 
12473
  def write(self, oprot):
12474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12476
      return
12477
    oprot.writeStructBegin('getBestDealsCount_result')
12478
    if self.success is not None:
12479
      oprot.writeFieldBegin('success', TType.I64, 0)
12480
      oprot.writeI64(self.success)
12481
      oprot.writeFieldEnd()
12482
    if self.cex is not None:
12483
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12484
      self.cex.write(oprot)
12485
      oprot.writeFieldEnd()
12486
    oprot.writeFieldStop()
12487
    oprot.writeStructEnd()
12488
 
12489
  def validate(self):
12490
    return
12491
 
12492
 
12493
  def __repr__(self):
12494
    L = ['%s=%r' % (key, value)
12495
      for key, value in self.__dict__.iteritems()]
12496
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12497
 
12498
  def __eq__(self, other):
12499
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12500
 
12501
  def __ne__(self, other):
12502
    return not (self == other)
12503
 
12504
class getComingSoon_args:
12505
 
12506
  thrift_spec = (
12507
  )
12508
 
12509
  def read(self, iprot):
12510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12512
      return
12513
    iprot.readStructBegin()
12514
    while True:
12515
      (fname, ftype, fid) = iprot.readFieldBegin()
12516
      if ftype == TType.STOP:
12517
        break
12518
      else:
12519
        iprot.skip(ftype)
12520
      iprot.readFieldEnd()
12521
    iprot.readStructEnd()
12522
 
12523
  def write(self, oprot):
12524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12526
      return
12527
    oprot.writeStructBegin('getComingSoon_args')
12528
    oprot.writeFieldStop()
12529
    oprot.writeStructEnd()
12530
 
12531
  def validate(self):
12532
    return
12533
 
12534
 
12535
  def __repr__(self):
12536
    L = ['%s=%r' % (key, value)
12537
      for key, value in self.__dict__.iteritems()]
12538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12539
 
12540
  def __eq__(self, other):
12541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12542
 
12543
  def __ne__(self, other):
12544
    return not (self == other)
12545
 
12546
class getComingSoon_result:
12547
  """
12548
  Attributes:
12549
   - success
12550
   - isex
12551
  """
12552
 
12553
  thrift_spec = (
12554
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12555
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12556
  )
12557
 
12558
  def __init__(self, success=None, isex=None,):
12559
    self.success = success
12560
    self.isex = isex
12561
 
12562
  def read(self, iprot):
12563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12565
      return
12566
    iprot.readStructBegin()
12567
    while True:
12568
      (fname, ftype, fid) = iprot.readFieldBegin()
12569
      if ftype == TType.STOP:
12570
        break
12571
      if fid == 0:
12572
        if ftype == TType.LIST:
12573
          self.success = []
12567 amit.gupta 12574
          (_etype128, _size125) = iprot.readListBegin()
12575
          for _i129 in xrange(_size125):
12576
            _elem130 = Item()
12577
            _elem130.read(iprot)
12578
            self.success.append(_elem130)
5944 mandeep.dh 12579
          iprot.readListEnd()
12580
        else:
12581
          iprot.skip(ftype)
12582
      elif fid == 1:
12583
        if ftype == TType.STRUCT:
12584
          self.isex = CatalogServiceException()
12585
          self.isex.read(iprot)
12586
        else:
12587
          iprot.skip(ftype)
12588
      else:
12589
        iprot.skip(ftype)
12590
      iprot.readFieldEnd()
12591
    iprot.readStructEnd()
12592
 
12593
  def write(self, oprot):
12594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12596
      return
12597
    oprot.writeStructBegin('getComingSoon_result')
12598
    if self.success is not None:
12599
      oprot.writeFieldBegin('success', TType.LIST, 0)
12600
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12601
      for iter131 in self.success:
12602
        iter131.write(oprot)
5944 mandeep.dh 12603
      oprot.writeListEnd()
12604
      oprot.writeFieldEnd()
12605
    if self.isex is not None:
12606
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12607
      self.isex.write(oprot)
12608
      oprot.writeFieldEnd()
12609
    oprot.writeFieldStop()
12610
    oprot.writeStructEnd()
12611
 
12612
  def validate(self):
12613
    return
12614
 
12615
 
12616
  def __repr__(self):
12617
    L = ['%s=%r' % (key, value)
12618
      for key, value in self.__dict__.iteritems()]
12619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12620
 
12621
  def __eq__(self, other):
12622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12623
 
12624
  def __ne__(self, other):
12625
    return not (self == other)
12626
 
12627
class getComingSoonCatalogIds_args:
12628
  """
12629
  Attributes:
12630
   - beginIndex
12631
   - totalItems
12632
   - brand
12633
   - category
12634
  """
12635
 
12636
  thrift_spec = (
12637
    None, # 0
12638
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12639
    (2, TType.I64, 'totalItems', None, None, ), # 2
12640
    (3, TType.STRING, 'brand', None, None, ), # 3
12641
    (4, TType.I64, 'category', None, None, ), # 4
12642
  )
12643
 
12644
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12645
    self.beginIndex = beginIndex
12646
    self.totalItems = totalItems
12647
    self.brand = brand
12648
    self.category = category
12649
 
12650
  def read(self, iprot):
12651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12653
      return
12654
    iprot.readStructBegin()
12655
    while True:
12656
      (fname, ftype, fid) = iprot.readFieldBegin()
12657
      if ftype == TType.STOP:
12658
        break
12659
      if fid == 1:
12660
        if ftype == TType.I64:
12661
          self.beginIndex = iprot.readI64();
12662
        else:
12663
          iprot.skip(ftype)
12664
      elif fid == 2:
12665
        if ftype == TType.I64:
12666
          self.totalItems = iprot.readI64();
12667
        else:
12668
          iprot.skip(ftype)
12669
      elif fid == 3:
12670
        if ftype == TType.STRING:
12671
          self.brand = iprot.readString();
12672
        else:
12673
          iprot.skip(ftype)
12674
      elif fid == 4:
12675
        if ftype == TType.I64:
12676
          self.category = iprot.readI64();
12677
        else:
12678
          iprot.skip(ftype)
12679
      else:
12680
        iprot.skip(ftype)
12681
      iprot.readFieldEnd()
12682
    iprot.readStructEnd()
12683
 
12684
  def write(self, oprot):
12685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12687
      return
12688
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
12689
    if self.beginIndex is not None:
12690
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12691
      oprot.writeI64(self.beginIndex)
12692
      oprot.writeFieldEnd()
12693
    if self.totalItems is not None:
12694
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12695
      oprot.writeI64(self.totalItems)
12696
      oprot.writeFieldEnd()
12697
    if self.brand is not None:
12698
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12699
      oprot.writeString(self.brand)
12700
      oprot.writeFieldEnd()
12701
    if self.category is not None:
12702
      oprot.writeFieldBegin('category', TType.I64, 4)
12703
      oprot.writeI64(self.category)
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 getComingSoonCatalogIds_result:
12724
  """
12725
  Attributes:
12726
   - success
12727
   - cex
12728
  """
12729
 
12730
  thrift_spec = (
12731
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12732
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12733
  )
12734
 
12735
  def __init__(self, success=None, cex=None,):
12736
    self.success = success
12737
    self.cex = cex
12738
 
12739
  def read(self, iprot):
12740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12742
      return
12743
    iprot.readStructBegin()
12744
    while True:
12745
      (fname, ftype, fid) = iprot.readFieldBegin()
12746
      if ftype == TType.STOP:
12747
        break
12748
      if fid == 0:
12749
        if ftype == TType.LIST:
12750
          self.success = []
12567 amit.gupta 12751
          (_etype135, _size132) = iprot.readListBegin()
12752
          for _i136 in xrange(_size132):
12753
            _elem137 = iprot.readI64();
12754
            self.success.append(_elem137)
5944 mandeep.dh 12755
          iprot.readListEnd()
12756
        else:
12757
          iprot.skip(ftype)
12758
      elif fid == 1:
12759
        if ftype == TType.STRUCT:
12760
          self.cex = CatalogServiceException()
12761
          self.cex.read(iprot)
12762
        else:
12763
          iprot.skip(ftype)
12764
      else:
12765
        iprot.skip(ftype)
12766
      iprot.readFieldEnd()
12767
    iprot.readStructEnd()
12768
 
12769
  def write(self, oprot):
12770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12772
      return
12773
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
12774
    if self.success is not None:
12775
      oprot.writeFieldBegin('success', TType.LIST, 0)
12776
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12777
      for iter138 in self.success:
12778
        oprot.writeI64(iter138)
5944 mandeep.dh 12779
      oprot.writeListEnd()
12780
      oprot.writeFieldEnd()
12781
    if self.cex is not None:
12782
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12783
      self.cex.write(oprot)
12784
      oprot.writeFieldEnd()
12785
    oprot.writeFieldStop()
12786
    oprot.writeStructEnd()
12787
 
12788
  def validate(self):
12789
    return
12790
 
12791
 
12792
  def __repr__(self):
12793
    L = ['%s=%r' % (key, value)
12794
      for key, value in self.__dict__.iteritems()]
12795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12796
 
12797
  def __eq__(self, other):
12798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12799
 
12800
  def __ne__(self, other):
12801
    return not (self == other)
12802
 
12803
class getComingSoonCount_args:
12804
 
12805
  thrift_spec = (
12806
  )
12807
 
12808
  def read(self, iprot):
12809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12811
      return
12812
    iprot.readStructBegin()
12813
    while True:
12814
      (fname, ftype, fid) = iprot.readFieldBegin()
12815
      if ftype == TType.STOP:
12816
        break
12817
      else:
12818
        iprot.skip(ftype)
12819
      iprot.readFieldEnd()
12820
    iprot.readStructEnd()
12821
 
12822
  def write(self, oprot):
12823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12825
      return
12826
    oprot.writeStructBegin('getComingSoonCount_args')
12827
    oprot.writeFieldStop()
12828
    oprot.writeStructEnd()
12829
 
12830
  def validate(self):
12831
    return
12832
 
12833
 
12834
  def __repr__(self):
12835
    L = ['%s=%r' % (key, value)
12836
      for key, value in self.__dict__.iteritems()]
12837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12838
 
12839
  def __eq__(self, other):
12840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12841
 
12842
  def __ne__(self, other):
12843
    return not (self == other)
12844
 
12845
class getComingSoonCount_result:
12846
  """
12847
  Attributes:
12848
   - success
12849
   - cex
12850
  """
12851
 
12852
  thrift_spec = (
12853
    (0, TType.I64, 'success', None, None, ), # 0
12854
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12855
  )
12856
 
12857
  def __init__(self, success=None, cex=None,):
12858
    self.success = success
12859
    self.cex = cex
12860
 
12861
  def read(self, iprot):
12862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12864
      return
12865
    iprot.readStructBegin()
12866
    while True:
12867
      (fname, ftype, fid) = iprot.readFieldBegin()
12868
      if ftype == TType.STOP:
12869
        break
12870
      if fid == 0:
12871
        if ftype == TType.I64:
12872
          self.success = iprot.readI64();
12873
        else:
12874
          iprot.skip(ftype)
12875
      elif fid == 1:
12876
        if ftype == TType.STRUCT:
12877
          self.cex = CatalogServiceException()
12878
          self.cex.read(iprot)
12879
        else:
12880
          iprot.skip(ftype)
12881
      else:
12882
        iprot.skip(ftype)
12883
      iprot.readFieldEnd()
12884
    iprot.readStructEnd()
12885
 
12886
  def write(self, oprot):
12887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12889
      return
12890
    oprot.writeStructBegin('getComingSoonCount_result')
12891
    if self.success is not None:
12892
      oprot.writeFieldBegin('success', TType.I64, 0)
12893
      oprot.writeI64(self.success)
12894
      oprot.writeFieldEnd()
12895
    if self.cex is not None:
12896
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12897
      self.cex.write(oprot)
12898
      oprot.writeFieldEnd()
12899
    oprot.writeFieldStop()
12900
    oprot.writeStructEnd()
12901
 
12902
  def validate(self):
12903
    return
12904
 
12905
 
12906
  def __repr__(self):
12907
    L = ['%s=%r' % (key, value)
12908
      for key, value in self.__dict__.iteritems()]
12909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12910
 
12911
  def __eq__(self, other):
12912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12913
 
12914
  def __ne__(self, other):
12915
    return not (self == other)
12916
 
12917
class getLatestArrivals_args:
12918
 
12919
  thrift_spec = (
12920
  )
12921
 
12922
  def read(self, iprot):
12923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12925
      return
12926
    iprot.readStructBegin()
12927
    while True:
12928
      (fname, ftype, fid) = iprot.readFieldBegin()
12929
      if ftype == TType.STOP:
12930
        break
12931
      else:
12932
        iprot.skip(ftype)
12933
      iprot.readFieldEnd()
12934
    iprot.readStructEnd()
12935
 
12936
  def write(self, oprot):
12937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12939
      return
12940
    oprot.writeStructBegin('getLatestArrivals_args')
12941
    oprot.writeFieldStop()
12942
    oprot.writeStructEnd()
12943
 
12944
  def validate(self):
12945
    return
12946
 
12947
 
12948
  def __repr__(self):
12949
    L = ['%s=%r' % (key, value)
12950
      for key, value in self.__dict__.iteritems()]
12951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12952
 
12953
  def __eq__(self, other):
12954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12955
 
12956
  def __ne__(self, other):
12957
    return not (self == other)
12958
 
12959
class getLatestArrivals_result:
12960
  """
12961
  Attributes:
12962
   - success
12963
   - isex
12964
  """
12965
 
12966
  thrift_spec = (
12967
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12968
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12969
  )
12970
 
12971
  def __init__(self, success=None, isex=None,):
12972
    self.success = success
12973
    self.isex = isex
12974
 
12975
  def read(self, iprot):
12976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12978
      return
12979
    iprot.readStructBegin()
12980
    while True:
12981
      (fname, ftype, fid) = iprot.readFieldBegin()
12982
      if ftype == TType.STOP:
12983
        break
12984
      if fid == 0:
12985
        if ftype == TType.LIST:
12986
          self.success = []
12567 amit.gupta 12987
          (_etype142, _size139) = iprot.readListBegin()
12988
          for _i143 in xrange(_size139):
12989
            _elem144 = Item()
12990
            _elem144.read(iprot)
12991
            self.success.append(_elem144)
5944 mandeep.dh 12992
          iprot.readListEnd()
12993
        else:
12994
          iprot.skip(ftype)
12995
      elif fid == 1:
12996
        if ftype == TType.STRUCT:
12997
          self.isex = CatalogServiceException()
12998
          self.isex.read(iprot)
12999
        else:
13000
          iprot.skip(ftype)
13001
      else:
13002
        iprot.skip(ftype)
13003
      iprot.readFieldEnd()
13004
    iprot.readStructEnd()
13005
 
13006
  def write(self, oprot):
13007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13009
      return
13010
    oprot.writeStructBegin('getLatestArrivals_result')
13011
    if self.success is not None:
13012
      oprot.writeFieldBegin('success', TType.LIST, 0)
13013
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13014
      for iter145 in self.success:
13015
        iter145.write(oprot)
5944 mandeep.dh 13016
      oprot.writeListEnd()
13017
      oprot.writeFieldEnd()
13018
    if self.isex is not None:
13019
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
13020
      self.isex.write(oprot)
13021
      oprot.writeFieldEnd()
13022
    oprot.writeFieldStop()
13023
    oprot.writeStructEnd()
13024
 
13025
  def validate(self):
13026
    return
13027
 
13028
 
13029
  def __repr__(self):
13030
    L = ['%s=%r' % (key, value)
13031
      for key, value in self.__dict__.iteritems()]
13032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13033
 
13034
  def __eq__(self, other):
13035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13036
 
13037
  def __ne__(self, other):
13038
    return not (self == other)
13039
 
13040
class getLatestArrivalsCatalogIds_args:
13041
  """
13042
  Attributes:
13043
   - beginIndex
13044
   - totalItems
13045
   - brand
13046
   - categories
13047
  """
13048
 
13049
  thrift_spec = (
13050
    None, # 0
13051
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13052
    (2, TType.I64, 'totalItems', None, None, ), # 2
13053
    (3, TType.STRING, 'brand', None, None, ), # 3
13054
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
13055
  )
13056
 
13057
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
13058
    self.beginIndex = beginIndex
13059
    self.totalItems = totalItems
13060
    self.brand = brand
13061
    self.categories = categories
13062
 
13063
  def read(self, iprot):
13064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13066
      return
13067
    iprot.readStructBegin()
13068
    while True:
13069
      (fname, ftype, fid) = iprot.readFieldBegin()
13070
      if ftype == TType.STOP:
13071
        break
13072
      if fid == 1:
13073
        if ftype == TType.I64:
13074
          self.beginIndex = iprot.readI64();
13075
        else:
13076
          iprot.skip(ftype)
13077
      elif fid == 2:
13078
        if ftype == TType.I64:
13079
          self.totalItems = iprot.readI64();
13080
        else:
13081
          iprot.skip(ftype)
13082
      elif fid == 3:
13083
        if ftype == TType.STRING:
13084
          self.brand = iprot.readString();
13085
        else:
13086
          iprot.skip(ftype)
13087
      elif fid == 4:
13088
        if ftype == TType.LIST:
13089
          self.categories = []
12567 amit.gupta 13090
          (_etype149, _size146) = iprot.readListBegin()
13091
          for _i150 in xrange(_size146):
13092
            _elem151 = iprot.readI64();
13093
            self.categories.append(_elem151)
5944 mandeep.dh 13094
          iprot.readListEnd()
13095
        else:
13096
          iprot.skip(ftype)
13097
      else:
13098
        iprot.skip(ftype)
13099
      iprot.readFieldEnd()
13100
    iprot.readStructEnd()
13101
 
13102
  def write(self, oprot):
13103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13105
      return
13106
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13107
    if self.beginIndex is not None:
13108
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13109
      oprot.writeI64(self.beginIndex)
13110
      oprot.writeFieldEnd()
13111
    if self.totalItems is not None:
13112
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13113
      oprot.writeI64(self.totalItems)
13114
      oprot.writeFieldEnd()
13115
    if self.brand is not None:
13116
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13117
      oprot.writeString(self.brand)
13118
      oprot.writeFieldEnd()
13119
    if self.categories is not None:
13120
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13121
      oprot.writeListBegin(TType.I64, len(self.categories))
12567 amit.gupta 13122
      for iter152 in self.categories:
13123
        oprot.writeI64(iter152)
5944 mandeep.dh 13124
      oprot.writeListEnd()
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 getLatestArrivalsCatalogIds_result:
13145
  """
13146
  Attributes:
13147
   - success
13148
   - cex
13149
  """
13150
 
13151
  thrift_spec = (
13152
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13153
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13154
  )
13155
 
13156
  def __init__(self, success=None, cex=None,):
13157
    self.success = success
13158
    self.cex = cex
13159
 
13160
  def read(self, iprot):
13161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13163
      return
13164
    iprot.readStructBegin()
13165
    while True:
13166
      (fname, ftype, fid) = iprot.readFieldBegin()
13167
      if ftype == TType.STOP:
13168
        break
13169
      if fid == 0:
13170
        if ftype == TType.LIST:
13171
          self.success = []
12567 amit.gupta 13172
          (_etype156, _size153) = iprot.readListBegin()
13173
          for _i157 in xrange(_size153):
13174
            _elem158 = iprot.readI64();
13175
            self.success.append(_elem158)
5944 mandeep.dh 13176
          iprot.readListEnd()
13177
        else:
13178
          iprot.skip(ftype)
13179
      elif fid == 1:
13180
        if ftype == TType.STRUCT:
13181
          self.cex = CatalogServiceException()
13182
          self.cex.read(iprot)
13183
        else:
13184
          iprot.skip(ftype)
13185
      else:
13186
        iprot.skip(ftype)
13187
      iprot.readFieldEnd()
13188
    iprot.readStructEnd()
13189
 
13190
  def write(self, oprot):
13191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13193
      return
13194
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13195
    if self.success is not None:
13196
      oprot.writeFieldBegin('success', TType.LIST, 0)
13197
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 13198
      for iter159 in self.success:
13199
        oprot.writeI64(iter159)
5944 mandeep.dh 13200
      oprot.writeListEnd()
13201
      oprot.writeFieldEnd()
13202
    if self.cex is not None:
13203
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13204
      self.cex.write(oprot)
13205
      oprot.writeFieldEnd()
13206
    oprot.writeFieldStop()
13207
    oprot.writeStructEnd()
13208
 
13209
  def validate(self):
13210
    return
13211
 
13212
 
13213
  def __repr__(self):
13214
    L = ['%s=%r' % (key, value)
13215
      for key, value in self.__dict__.iteritems()]
13216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13217
 
13218
  def __eq__(self, other):
13219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13220
 
13221
  def __ne__(self, other):
13222
    return not (self == other)
13223
 
13224
class getLatestArrivalsCount_args:
13225
 
13226
  thrift_spec = (
13227
  )
13228
 
13229
  def read(self, iprot):
13230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13232
      return
13233
    iprot.readStructBegin()
13234
    while True:
13235
      (fname, ftype, fid) = iprot.readFieldBegin()
13236
      if ftype == TType.STOP:
13237
        break
13238
      else:
13239
        iprot.skip(ftype)
13240
      iprot.readFieldEnd()
13241
    iprot.readStructEnd()
13242
 
13243
  def write(self, oprot):
13244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13246
      return
13247
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13248
    oprot.writeFieldStop()
13249
    oprot.writeStructEnd()
13250
 
13251
  def validate(self):
13252
    return
13253
 
13254
 
13255
  def __repr__(self):
13256
    L = ['%s=%r' % (key, value)
13257
      for key, value in self.__dict__.iteritems()]
13258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13259
 
13260
  def __eq__(self, other):
13261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13262
 
13263
  def __ne__(self, other):
13264
    return not (self == other)
13265
 
13266
class getLatestArrivalsCount_result:
13267
  """
13268
  Attributes:
13269
   - success
13270
   - cex
13271
  """
13272
 
13273
  thrift_spec = (
13274
    (0, TType.I64, 'success', None, None, ), # 0
13275
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13276
  )
13277
 
13278
  def __init__(self, success=None, cex=None,):
13279
    self.success = success
13280
    self.cex = cex
13281
 
13282
  def read(self, iprot):
13283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13285
      return
13286
    iprot.readStructBegin()
13287
    while True:
13288
      (fname, ftype, fid) = iprot.readFieldBegin()
13289
      if ftype == TType.STOP:
13290
        break
13291
      if fid == 0:
13292
        if ftype == TType.I64:
13293
          self.success = iprot.readI64();
13294
        else:
13295
          iprot.skip(ftype)
13296
      elif fid == 1:
13297
        if ftype == TType.STRUCT:
13298
          self.cex = CatalogServiceException()
13299
          self.cex.read(iprot)
13300
        else:
13301
          iprot.skip(ftype)
13302
      else:
13303
        iprot.skip(ftype)
13304
      iprot.readFieldEnd()
13305
    iprot.readStructEnd()
13306
 
13307
  def write(self, oprot):
13308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13310
      return
13311
    oprot.writeStructBegin('getLatestArrivalsCount_result')
13312
    if self.success is not None:
13313
      oprot.writeFieldBegin('success', TType.I64, 0)
13314
      oprot.writeI64(self.success)
13315
      oprot.writeFieldEnd()
13316
    if self.cex is not None:
13317
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13318
      self.cex.write(oprot)
13319
      oprot.writeFieldEnd()
13320
    oprot.writeFieldStop()
13321
    oprot.writeStructEnd()
13322
 
13323
  def validate(self):
13324
    return
13325
 
13326
 
13327
  def __repr__(self):
13328
    L = ['%s=%r' % (key, value)
13329
      for key, value in self.__dict__.iteritems()]
13330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13331
 
13332
  def __eq__(self, other):
13333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13334
 
13335
  def __ne__(self, other):
13336
    return not (self == other)
13337
 
13338
class generateNewEntityID_args:
13339
 
13340
  thrift_spec = (
13341
  )
13342
 
13343
  def read(self, iprot):
13344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13346
      return
13347
    iprot.readStructBegin()
13348
    while True:
13349
      (fname, ftype, fid) = iprot.readFieldBegin()
13350
      if ftype == TType.STOP:
13351
        break
13352
      else:
13353
        iprot.skip(ftype)
13354
      iprot.readFieldEnd()
13355
    iprot.readStructEnd()
13356
 
13357
  def write(self, oprot):
13358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13360
      return
13361
    oprot.writeStructBegin('generateNewEntityID_args')
13362
    oprot.writeFieldStop()
13363
    oprot.writeStructEnd()
13364
 
13365
  def validate(self):
13366
    return
13367
 
13368
 
13369
  def __repr__(self):
13370
    L = ['%s=%r' % (key, value)
13371
      for key, value in self.__dict__.iteritems()]
13372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13373
 
13374
  def __eq__(self, other):
13375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13376
 
13377
  def __ne__(self, other):
13378
    return not (self == other)
13379
 
13380
class generateNewEntityID_result:
13381
  """
13382
  Attributes:
13383
   - success
13384
  """
13385
 
13386
  thrift_spec = (
13387
    (0, TType.I64, 'success', None, None, ), # 0
13388
  )
13389
 
13390
  def __init__(self, success=None,):
13391
    self.success = success
13392
 
13393
  def read(self, iprot):
13394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13396
      return
13397
    iprot.readStructBegin()
13398
    while True:
13399
      (fname, ftype, fid) = iprot.readFieldBegin()
13400
      if ftype == TType.STOP:
13401
        break
13402
      if fid == 0:
13403
        if ftype == TType.I64:
13404
          self.success = iprot.readI64();
13405
        else:
13406
          iprot.skip(ftype)
13407
      else:
13408
        iprot.skip(ftype)
13409
      iprot.readFieldEnd()
13410
    iprot.readStructEnd()
13411
 
13412
  def write(self, oprot):
13413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13415
      return
13416
    oprot.writeStructBegin('generateNewEntityID_result')
13417
    if self.success is not None:
13418
      oprot.writeFieldBegin('success', TType.I64, 0)
13419
      oprot.writeI64(self.success)
13420
      oprot.writeFieldEnd()
13421
    oprot.writeFieldStop()
13422
    oprot.writeStructEnd()
13423
 
13424
  def validate(self):
13425
    return
13426
 
13427
 
13428
  def __repr__(self):
13429
    L = ['%s=%r' % (key, value)
13430
      for key, value in self.__dict__.iteritems()]
13431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13432
 
13433
  def __eq__(self, other):
13434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13435
 
13436
  def __ne__(self, other):
13437
    return not (self == other)
13438
 
13439
class addCategory_args:
13440
  """
13441
  Attributes:
13442
   - category
13443
  """
13444
 
13445
  thrift_spec = (
13446
    None, # 0
13447
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13448
  )
13449
 
13450
  def __init__(self, category=None,):
13451
    self.category = category
13452
 
13453
  def read(self, iprot):
13454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13456
      return
13457
    iprot.readStructBegin()
13458
    while True:
13459
      (fname, ftype, fid) = iprot.readFieldBegin()
13460
      if ftype == TType.STOP:
13461
        break
13462
      if fid == 1:
13463
        if ftype == TType.STRUCT:
13464
          self.category = Category()
13465
          self.category.read(iprot)
13466
        else:
13467
          iprot.skip(ftype)
13468
      else:
13469
        iprot.skip(ftype)
13470
      iprot.readFieldEnd()
13471
    iprot.readStructEnd()
13472
 
13473
  def write(self, oprot):
13474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13476
      return
13477
    oprot.writeStructBegin('addCategory_args')
13478
    if self.category is not None:
13479
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13480
      self.category.write(oprot)
13481
      oprot.writeFieldEnd()
13482
    oprot.writeFieldStop()
13483
    oprot.writeStructEnd()
13484
 
13485
  def validate(self):
13486
    return
13487
 
13488
 
13489
  def __repr__(self):
13490
    L = ['%s=%r' % (key, value)
13491
      for key, value in self.__dict__.iteritems()]
13492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13493
 
13494
  def __eq__(self, other):
13495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13496
 
13497
  def __ne__(self, other):
13498
    return not (self == other)
13499
 
13500
class addCategory_result:
13501
  """
13502
  Attributes:
13503
   - success
13504
  """
13505
 
13506
  thrift_spec = (
13507
    (0, TType.BOOL, 'success', None, None, ), # 0
13508
  )
13509
 
13510
  def __init__(self, success=None,):
13511
    self.success = success
13512
 
13513
  def read(self, iprot):
13514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13516
      return
13517
    iprot.readStructBegin()
13518
    while True:
13519
      (fname, ftype, fid) = iprot.readFieldBegin()
13520
      if ftype == TType.STOP:
13521
        break
13522
      if fid == 0:
13523
        if ftype == TType.BOOL:
13524
          self.success = iprot.readBool();
13525
        else:
13526
          iprot.skip(ftype)
13527
      else:
13528
        iprot.skip(ftype)
13529
      iprot.readFieldEnd()
13530
    iprot.readStructEnd()
13531
 
13532
  def write(self, oprot):
13533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13535
      return
13536
    oprot.writeStructBegin('addCategory_result')
13537
    if self.success is not None:
13538
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13539
      oprot.writeBool(self.success)
13540
      oprot.writeFieldEnd()
13541
    oprot.writeFieldStop()
13542
    oprot.writeStructEnd()
13543
 
13544
  def validate(self):
13545
    return
13546
 
13547
 
13548
  def __repr__(self):
13549
    L = ['%s=%r' % (key, value)
13550
      for key, value in self.__dict__.iteritems()]
13551
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13552
 
13553
  def __eq__(self, other):
13554
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13555
 
13556
  def __ne__(self, other):
13557
    return not (self == other)
13558
 
13559
class getCategory_args:
13560
  """
13561
  Attributes:
13562
   - id
13563
  """
13564
 
13565
  thrift_spec = (
13566
    None, # 0
13567
    (1, TType.I64, 'id', None, None, ), # 1
13568
  )
13569
 
13570
  def __init__(self, id=None,):
13571
    self.id = id
13572
 
13573
  def read(self, iprot):
13574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13576
      return
13577
    iprot.readStructBegin()
13578
    while True:
13579
      (fname, ftype, fid) = iprot.readFieldBegin()
13580
      if ftype == TType.STOP:
13581
        break
13582
      if fid == 1:
13583
        if ftype == TType.I64:
13584
          self.id = iprot.readI64();
13585
        else:
13586
          iprot.skip(ftype)
13587
      else:
13588
        iprot.skip(ftype)
13589
      iprot.readFieldEnd()
13590
    iprot.readStructEnd()
13591
 
13592
  def write(self, oprot):
13593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13595
      return
13596
    oprot.writeStructBegin('getCategory_args')
13597
    if self.id is not None:
13598
      oprot.writeFieldBegin('id', TType.I64, 1)
13599
      oprot.writeI64(self.id)
13600
      oprot.writeFieldEnd()
13601
    oprot.writeFieldStop()
13602
    oprot.writeStructEnd()
13603
 
13604
  def validate(self):
13605
    return
13606
 
13607
 
13608
  def __repr__(self):
13609
    L = ['%s=%r' % (key, value)
13610
      for key, value in self.__dict__.iteritems()]
13611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13612
 
13613
  def __eq__(self, other):
13614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13615
 
13616
  def __ne__(self, other):
13617
    return not (self == other)
13618
 
13619
class getCategory_result:
13620
  """
13621
  Attributes:
13622
   - success
13623
  """
13624
 
13625
  thrift_spec = (
13626
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13627
  )
13628
 
13629
  def __init__(self, success=None,):
13630
    self.success = success
13631
 
13632
  def read(self, iprot):
13633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13635
      return
13636
    iprot.readStructBegin()
13637
    while True:
13638
      (fname, ftype, fid) = iprot.readFieldBegin()
13639
      if ftype == TType.STOP:
13640
        break
13641
      if fid == 0:
13642
        if ftype == TType.STRUCT:
13643
          self.success = Category()
13644
          self.success.read(iprot)
13645
        else:
13646
          iprot.skip(ftype)
13647
      else:
13648
        iprot.skip(ftype)
13649
      iprot.readFieldEnd()
13650
    iprot.readStructEnd()
13651
 
13652
  def write(self, oprot):
13653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13655
      return
13656
    oprot.writeStructBegin('getCategory_result')
13657
    if self.success is not None:
13658
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13659
      self.success.write(oprot)
13660
      oprot.writeFieldEnd()
13661
    oprot.writeFieldStop()
13662
    oprot.writeStructEnd()
13663
 
13664
  def validate(self):
13665
    return
13666
 
13667
 
13668
  def __repr__(self):
13669
    L = ['%s=%r' % (key, value)
13670
      for key, value in self.__dict__.iteritems()]
13671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13672
 
13673
  def __eq__(self, other):
13674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13675
 
13676
  def __ne__(self, other):
13677
    return not (self == other)
13678
 
13679
class getAllCategories_args:
13680
 
13681
  thrift_spec = (
13682
  )
13683
 
13684
  def read(self, iprot):
13685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13687
      return
13688
    iprot.readStructBegin()
13689
    while True:
13690
      (fname, ftype, fid) = iprot.readFieldBegin()
13691
      if ftype == TType.STOP:
13692
        break
13693
      else:
13694
        iprot.skip(ftype)
13695
      iprot.readFieldEnd()
13696
    iprot.readStructEnd()
13697
 
13698
  def write(self, oprot):
13699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13701
      return
13702
    oprot.writeStructBegin('getAllCategories_args')
13703
    oprot.writeFieldStop()
13704
    oprot.writeStructEnd()
13705
 
13706
  def validate(self):
13707
    return
13708
 
13709
 
13710
  def __repr__(self):
13711
    L = ['%s=%r' % (key, value)
13712
      for key, value in self.__dict__.iteritems()]
13713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13714
 
13715
  def __eq__(self, other):
13716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13717
 
13718
  def __ne__(self, other):
13719
    return not (self == other)
13720
 
13721
class getAllCategories_result:
13722
  """
13723
  Attributes:
13724
   - success
13725
  """
13726
 
13727
  thrift_spec = (
13728
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
13729
  )
13730
 
13731
  def __init__(self, success=None,):
13732
    self.success = success
13733
 
13734
  def read(self, iprot):
13735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13737
      return
13738
    iprot.readStructBegin()
13739
    while True:
13740
      (fname, ftype, fid) = iprot.readFieldBegin()
13741
      if ftype == TType.STOP:
13742
        break
13743
      if fid == 0:
13744
        if ftype == TType.LIST:
13745
          self.success = []
12567 amit.gupta 13746
          (_etype163, _size160) = iprot.readListBegin()
13747
          for _i164 in xrange(_size160):
13748
            _elem165 = Category()
13749
            _elem165.read(iprot)
13750
            self.success.append(_elem165)
5944 mandeep.dh 13751
          iprot.readListEnd()
13752
        else:
13753
          iprot.skip(ftype)
13754
      else:
13755
        iprot.skip(ftype)
13756
      iprot.readFieldEnd()
13757
    iprot.readStructEnd()
13758
 
13759
  def write(self, oprot):
13760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13762
      return
13763
    oprot.writeStructBegin('getAllCategories_result')
13764
    if self.success is not None:
13765
      oprot.writeFieldBegin('success', TType.LIST, 0)
13766
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13767
      for iter166 in self.success:
13768
        iter166.write(oprot)
5944 mandeep.dh 13769
      oprot.writeListEnd()
13770
      oprot.writeFieldEnd()
13771
    oprot.writeFieldStop()
13772
    oprot.writeStructEnd()
13773
 
13774
  def validate(self):
13775
    return
13776
 
13777
 
13778
  def __repr__(self):
13779
    L = ['%s=%r' % (key, value)
13780
      for key, value in self.__dict__.iteritems()]
13781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13782
 
13783
  def __eq__(self, other):
13784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13785
 
13786
  def __ne__(self, other):
13787
    return not (self == other)
13788
 
13789
class getAllSimilarItems_args:
13790
  """
13791
  Attributes:
13792
   - itemId
13793
  """
13794
 
13795
  thrift_spec = (
13796
    None, # 0
13797
    (1, TType.I64, 'itemId', None, None, ), # 1
13798
  )
13799
 
13800
  def __init__(self, itemId=None,):
13801
    self.itemId = itemId
13802
 
13803
  def read(self, iprot):
13804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13806
      return
13807
    iprot.readStructBegin()
13808
    while True:
13809
      (fname, ftype, fid) = iprot.readFieldBegin()
13810
      if ftype == TType.STOP:
13811
        break
13812
      if fid == 1:
13813
        if ftype == TType.I64:
13814
          self.itemId = iprot.readI64();
13815
        else:
13816
          iprot.skip(ftype)
13817
      else:
13818
        iprot.skip(ftype)
13819
      iprot.readFieldEnd()
13820
    iprot.readStructEnd()
13821
 
13822
  def write(self, oprot):
13823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13825
      return
13826
    oprot.writeStructBegin('getAllSimilarItems_args')
13827
    if self.itemId is not None:
13828
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13829
      oprot.writeI64(self.itemId)
13830
      oprot.writeFieldEnd()
13831
    oprot.writeFieldStop()
13832
    oprot.writeStructEnd()
13833
 
13834
  def validate(self):
13835
    return
13836
 
13837
 
13838
  def __repr__(self):
13839
    L = ['%s=%r' % (key, value)
13840
      for key, value in self.__dict__.iteritems()]
13841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13842
 
13843
  def __eq__(self, other):
13844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13845
 
13846
  def __ne__(self, other):
13847
    return not (self == other)
13848
 
13849
class getAllSimilarItems_result:
13850
  """
13851
  Attributes:
13852
   - success
13853
  """
13854
 
13855
  thrift_spec = (
13856
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13857
  )
13858
 
13859
  def __init__(self, success=None,):
13860
    self.success = success
13861
 
13862
  def read(self, iprot):
13863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13865
      return
13866
    iprot.readStructBegin()
13867
    while True:
13868
      (fname, ftype, fid) = iprot.readFieldBegin()
13869
      if ftype == TType.STOP:
13870
        break
13871
      if fid == 0:
13872
        if ftype == TType.LIST:
13873
          self.success = []
12567 amit.gupta 13874
          (_etype170, _size167) = iprot.readListBegin()
13875
          for _i171 in xrange(_size167):
13876
            _elem172 = Item()
13877
            _elem172.read(iprot)
13878
            self.success.append(_elem172)
5944 mandeep.dh 13879
          iprot.readListEnd()
13880
        else:
13881
          iprot.skip(ftype)
13882
      else:
13883
        iprot.skip(ftype)
13884
      iprot.readFieldEnd()
13885
    iprot.readStructEnd()
13886
 
13887
  def write(self, oprot):
13888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13890
      return
13891
    oprot.writeStructBegin('getAllSimilarItems_result')
13892
    if self.success is not None:
13893
      oprot.writeFieldBegin('success', TType.LIST, 0)
13894
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13895
      for iter173 in self.success:
13896
        iter173.write(oprot)
5944 mandeep.dh 13897
      oprot.writeListEnd()
13898
      oprot.writeFieldEnd()
13899
    oprot.writeFieldStop()
13900
    oprot.writeStructEnd()
13901
 
13902
  def validate(self):
13903
    return
13904
 
13905
 
13906
  def __repr__(self):
13907
    L = ['%s=%r' % (key, value)
13908
      for key, value in self.__dict__.iteritems()]
13909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13910
 
13911
  def __eq__(self, other):
13912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13913
 
13914
  def __ne__(self, other):
13915
    return not (self == other)
13916
 
13917
class addSimilarItem_args:
13918
  """
13919
  Attributes:
13920
   - itemId
13921
   - catalogItemId
13922
  """
13923
 
13924
  thrift_spec = (
13925
    None, # 0
13926
    (1, TType.I64, 'itemId', None, None, ), # 1
13927
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
13928
  )
13929
 
13930
  def __init__(self, itemId=None, catalogItemId=None,):
13931
    self.itemId = itemId
13932
    self.catalogItemId = catalogItemId
13933
 
13934
  def read(self, iprot):
13935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13937
      return
13938
    iprot.readStructBegin()
13939
    while True:
13940
      (fname, ftype, fid) = iprot.readFieldBegin()
13941
      if ftype == TType.STOP:
13942
        break
13943
      if fid == 1:
13944
        if ftype == TType.I64:
13945
          self.itemId = iprot.readI64();
13946
        else:
13947
          iprot.skip(ftype)
13948
      elif fid == 2:
13949
        if ftype == TType.I64:
13950
          self.catalogItemId = iprot.readI64();
13951
        else:
13952
          iprot.skip(ftype)
13953
      else:
13954
        iprot.skip(ftype)
13955
      iprot.readFieldEnd()
13956
    iprot.readStructEnd()
13957
 
13958
  def write(self, oprot):
13959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13961
      return
13962
    oprot.writeStructBegin('addSimilarItem_args')
13963
    if self.itemId is not None:
13964
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13965
      oprot.writeI64(self.itemId)
13966
      oprot.writeFieldEnd()
13967
    if self.catalogItemId is not None:
13968
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
13969
      oprot.writeI64(self.catalogItemId)
13970
      oprot.writeFieldEnd()
13971
    oprot.writeFieldStop()
13972
    oprot.writeStructEnd()
13973
 
13974
  def validate(self):
13975
    return
13976
 
13977
 
13978
  def __repr__(self):
13979
    L = ['%s=%r' % (key, value)
13980
      for key, value in self.__dict__.iteritems()]
13981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13982
 
13983
  def __eq__(self, other):
13984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13985
 
13986
  def __ne__(self, other):
13987
    return not (self == other)
13988
 
13989
class addSimilarItem_result:
13990
  """
13991
  Attributes:
13992
   - success
13993
   - cex
13994
  """
13995
 
13996
  thrift_spec = (
13997
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
13998
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13999
  )
14000
 
14001
  def __init__(self, success=None, cex=None,):
14002
    self.success = success
14003
    self.cex = cex
14004
 
14005
  def read(self, iprot):
14006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14008
      return
14009
    iprot.readStructBegin()
14010
    while True:
14011
      (fname, ftype, fid) = iprot.readFieldBegin()
14012
      if ftype == TType.STOP:
14013
        break
14014
      if fid == 0:
14015
        if ftype == TType.STRUCT:
14016
          self.success = Item()
14017
          self.success.read(iprot)
14018
        else:
14019
          iprot.skip(ftype)
14020
      elif fid == 1:
14021
        if ftype == TType.STRUCT:
14022
          self.cex = CatalogServiceException()
14023
          self.cex.read(iprot)
14024
        else:
14025
          iprot.skip(ftype)
14026
      else:
14027
        iprot.skip(ftype)
14028
      iprot.readFieldEnd()
14029
    iprot.readStructEnd()
14030
 
14031
  def write(self, oprot):
14032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14034
      return
14035
    oprot.writeStructBegin('addSimilarItem_result')
14036
    if self.success is not None:
14037
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14038
      self.success.write(oprot)
14039
      oprot.writeFieldEnd()
14040
    if self.cex is not None:
14041
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14042
      self.cex.write(oprot)
14043
      oprot.writeFieldEnd()
14044
    oprot.writeFieldStop()
14045
    oprot.writeStructEnd()
14046
 
14047
  def validate(self):
14048
    return
14049
 
14050
 
14051
  def __repr__(self):
14052
    L = ['%s=%r' % (key, value)
14053
      for key, value in self.__dict__.iteritems()]
14054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14055
 
14056
  def __eq__(self, other):
14057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14058
 
14059
  def __ne__(self, other):
14060
    return not (self == other)
14061
 
6512 kshitij.so 14062
class addTag_args:
14063
  """
14064
  Attributes:
14065
   - displayName
14066
   - itemId
14067
  """
14068
 
14069
  thrift_spec = (
14070
    None, # 0
14071
    (1, TType.STRING, 'displayName', None, None, ), # 1
14072
    (2, TType.I64, 'itemId', None, None, ), # 2
14073
  )
14074
 
14075
  def __init__(self, displayName=None, itemId=None,):
14076
    self.displayName = displayName
14077
    self.itemId = itemId
14078
 
14079
  def read(self, iprot):
14080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14082
      return
14083
    iprot.readStructBegin()
14084
    while True:
14085
      (fname, ftype, fid) = iprot.readFieldBegin()
14086
      if ftype == TType.STOP:
14087
        break
14088
      if fid == 1:
14089
        if ftype == TType.STRING:
14090
          self.displayName = iprot.readString();
14091
        else:
14092
          iprot.skip(ftype)
14093
      elif fid == 2:
14094
        if ftype == TType.I64:
14095
          self.itemId = iprot.readI64();
14096
        else:
14097
          iprot.skip(ftype)
14098
      else:
14099
        iprot.skip(ftype)
14100
      iprot.readFieldEnd()
14101
    iprot.readStructEnd()
14102
 
14103
  def write(self, oprot):
14104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14106
      return
14107
    oprot.writeStructBegin('addTag_args')
14108
    if self.displayName is not None:
14109
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14110
      oprot.writeString(self.displayName)
14111
      oprot.writeFieldEnd()
14112
    if self.itemId is not None:
14113
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14114
      oprot.writeI64(self.itemId)
14115
      oprot.writeFieldEnd()
14116
    oprot.writeFieldStop()
14117
    oprot.writeStructEnd()
14118
 
14119
  def validate(self):
14120
    return
14121
 
14122
 
14123
  def __repr__(self):
14124
    L = ['%s=%r' % (key, value)
14125
      for key, value in self.__dict__.iteritems()]
14126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14127
 
14128
  def __eq__(self, other):
14129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14130
 
14131
  def __ne__(self, other):
14132
    return not (self == other)
14133
 
14134
class addTag_result:
14135
  """
14136
  Attributes:
14137
   - success
14138
  """
14139
 
14140
  thrift_spec = (
14141
    (0, TType.BOOL, 'success', None, None, ), # 0
14142
  )
14143
 
14144
  def __init__(self, success=None,):
14145
    self.success = success
14146
 
14147
  def read(self, iprot):
14148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14150
      return
14151
    iprot.readStructBegin()
14152
    while True:
14153
      (fname, ftype, fid) = iprot.readFieldBegin()
14154
      if ftype == TType.STOP:
14155
        break
14156
      if fid == 0:
14157
        if ftype == TType.BOOL:
14158
          self.success = iprot.readBool();
14159
        else:
14160
          iprot.skip(ftype)
14161
      else:
14162
        iprot.skip(ftype)
14163
      iprot.readFieldEnd()
14164
    iprot.readStructEnd()
14165
 
14166
  def write(self, oprot):
14167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14169
      return
14170
    oprot.writeStructBegin('addTag_result')
14171
    if self.success is not None:
14172
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14173
      oprot.writeBool(self.success)
14174
      oprot.writeFieldEnd()
14175
    oprot.writeFieldStop()
14176
    oprot.writeStructEnd()
14177
 
14178
  def validate(self):
14179
    return
14180
 
14181
 
14182
  def __repr__(self):
14183
    L = ['%s=%r' % (key, value)
14184
      for key, value in self.__dict__.iteritems()]
14185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14186
 
14187
  def __eq__(self, other):
14188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14189
 
14190
  def __ne__(self, other):
14191
    return not (self == other)
14192
 
14193
class deleteEntityTag_args:
14194
  """
14195
  Attributes:
14196
   - displayName
14197
   - itemId
14198
  """
14199
 
14200
  thrift_spec = (
14201
    None, # 0
14202
    (1, TType.STRING, 'displayName', None, None, ), # 1
14203
    (2, TType.I64, 'itemId', None, None, ), # 2
14204
  )
14205
 
14206
  def __init__(self, displayName=None, itemId=None,):
14207
    self.displayName = displayName
14208
    self.itemId = itemId
14209
 
14210
  def read(self, iprot):
14211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14213
      return
14214
    iprot.readStructBegin()
14215
    while True:
14216
      (fname, ftype, fid) = iprot.readFieldBegin()
14217
      if ftype == TType.STOP:
14218
        break
14219
      if fid == 1:
14220
        if ftype == TType.STRING:
14221
          self.displayName = iprot.readString();
14222
        else:
14223
          iprot.skip(ftype)
14224
      elif fid == 2:
14225
        if ftype == TType.I64:
14226
          self.itemId = iprot.readI64();
14227
        else:
14228
          iprot.skip(ftype)
14229
      else:
14230
        iprot.skip(ftype)
14231
      iprot.readFieldEnd()
14232
    iprot.readStructEnd()
14233
 
14234
  def write(self, oprot):
14235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14237
      return
14238
    oprot.writeStructBegin('deleteEntityTag_args')
14239
    if self.displayName is not None:
14240
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14241
      oprot.writeString(self.displayName)
14242
      oprot.writeFieldEnd()
14243
    if self.itemId is not None:
14244
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14245
      oprot.writeI64(self.itemId)
14246
      oprot.writeFieldEnd()
14247
    oprot.writeFieldStop()
14248
    oprot.writeStructEnd()
14249
 
14250
  def validate(self):
14251
    return
14252
 
14253
 
14254
  def __repr__(self):
14255
    L = ['%s=%r' % (key, value)
14256
      for key, value in self.__dict__.iteritems()]
14257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14258
 
14259
  def __eq__(self, other):
14260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14261
 
14262
  def __ne__(self, other):
14263
    return not (self == other)
14264
 
14265
class deleteEntityTag_result:
14266
  """
14267
  Attributes:
14268
   - success
14269
  """
14270
 
14271
  thrift_spec = (
14272
    (0, TType.BOOL, 'success', None, None, ), # 0
14273
  )
14274
 
14275
  def __init__(self, success=None,):
14276
    self.success = success
14277
 
14278
  def read(self, iprot):
14279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14281
      return
14282
    iprot.readStructBegin()
14283
    while True:
14284
      (fname, ftype, fid) = iprot.readFieldBegin()
14285
      if ftype == TType.STOP:
14286
        break
14287
      if fid == 0:
14288
        if ftype == TType.BOOL:
14289
          self.success = iprot.readBool();
14290
        else:
14291
          iprot.skip(ftype)
14292
      else:
14293
        iprot.skip(ftype)
14294
      iprot.readFieldEnd()
14295
    iprot.readStructEnd()
14296
 
14297
  def write(self, oprot):
14298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14300
      return
14301
    oprot.writeStructBegin('deleteEntityTag_result')
14302
    if self.success is not None:
14303
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14304
      oprot.writeBool(self.success)
14305
      oprot.writeFieldEnd()
14306
    oprot.writeFieldStop()
14307
    oprot.writeStructEnd()
14308
 
14309
  def validate(self):
14310
    return
14311
 
14312
 
14313
  def __repr__(self):
14314
    L = ['%s=%r' % (key, value)
14315
      for key, value in self.__dict__.iteritems()]
14316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14317
 
14318
  def __eq__(self, other):
14319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14320
 
14321
  def __ne__(self, other):
14322
    return not (self == other)
14323
 
14324
class deleteTag_args:
14325
  """
14326
  Attributes:
14327
   - displayName
14328
  """
14329
 
14330
  thrift_spec = (
14331
    None, # 0
14332
    (1, TType.STRING, 'displayName', None, None, ), # 1
14333
  )
14334
 
14335
  def __init__(self, displayName=None,):
14336
    self.displayName = displayName
14337
 
14338
  def read(self, iprot):
14339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14341
      return
14342
    iprot.readStructBegin()
14343
    while True:
14344
      (fname, ftype, fid) = iprot.readFieldBegin()
14345
      if ftype == TType.STOP:
14346
        break
14347
      if fid == 1:
14348
        if ftype == TType.STRING:
14349
          self.displayName = iprot.readString();
14350
        else:
14351
          iprot.skip(ftype)
14352
      else:
14353
        iprot.skip(ftype)
14354
      iprot.readFieldEnd()
14355
    iprot.readStructEnd()
14356
 
14357
  def write(self, oprot):
14358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14360
      return
14361
    oprot.writeStructBegin('deleteTag_args')
14362
    if self.displayName is not None:
14363
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14364
      oprot.writeString(self.displayName)
14365
      oprot.writeFieldEnd()
14366
    oprot.writeFieldStop()
14367
    oprot.writeStructEnd()
14368
 
14369
  def validate(self):
14370
    return
14371
 
14372
 
14373
  def __repr__(self):
14374
    L = ['%s=%r' % (key, value)
14375
      for key, value in self.__dict__.iteritems()]
14376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14377
 
14378
  def __eq__(self, other):
14379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14380
 
14381
  def __ne__(self, other):
14382
    return not (self == other)
14383
 
14384
class deleteTag_result:
14385
  """
14386
  Attributes:
14387
   - success
14388
  """
14389
 
14390
  thrift_spec = (
14391
    (0, TType.BOOL, 'success', None, None, ), # 0
14392
  )
14393
 
14394
  def __init__(self, success=None,):
14395
    self.success = success
14396
 
14397
  def read(self, iprot):
14398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14400
      return
14401
    iprot.readStructBegin()
14402
    while True:
14403
      (fname, ftype, fid) = iprot.readFieldBegin()
14404
      if ftype == TType.STOP:
14405
        break
14406
      if fid == 0:
14407
        if ftype == TType.BOOL:
14408
          self.success = iprot.readBool();
14409
        else:
14410
          iprot.skip(ftype)
14411
      else:
14412
        iprot.skip(ftype)
14413
      iprot.readFieldEnd()
14414
    iprot.readStructEnd()
14415
 
14416
  def write(self, oprot):
14417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14419
      return
14420
    oprot.writeStructBegin('deleteTag_result')
14421
    if self.success is not None:
14422
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14423
      oprot.writeBool(self.success)
14424
      oprot.writeFieldEnd()
14425
    oprot.writeFieldStop()
14426
    oprot.writeStructEnd()
14427
 
14428
  def validate(self):
14429
    return
14430
 
14431
 
14432
  def __repr__(self):
14433
    L = ['%s=%r' % (key, value)
14434
      for key, value in self.__dict__.iteritems()]
14435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14436
 
14437
  def __eq__(self, other):
14438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14439
 
14440
  def __ne__(self, other):
14441
    return not (self == other)
14442
 
14443
class getAllTags_args:
14444
 
14445
  thrift_spec = (
14446
  )
14447
 
14448
  def read(self, iprot):
14449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14451
      return
14452
    iprot.readStructBegin()
14453
    while True:
14454
      (fname, ftype, fid) = iprot.readFieldBegin()
14455
      if ftype == TType.STOP:
14456
        break
14457
      else:
14458
        iprot.skip(ftype)
14459
      iprot.readFieldEnd()
14460
    iprot.readStructEnd()
14461
 
14462
  def write(self, oprot):
14463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14465
      return
14466
    oprot.writeStructBegin('getAllTags_args')
14467
    oprot.writeFieldStop()
14468
    oprot.writeStructEnd()
14469
 
14470
  def validate(self):
14471
    return
14472
 
14473
 
14474
  def __repr__(self):
14475
    L = ['%s=%r' % (key, value)
14476
      for key, value in self.__dict__.iteritems()]
14477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14478
 
14479
  def __eq__(self, other):
14480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14481
 
14482
  def __ne__(self, other):
14483
    return not (self == other)
14484
 
14485
class getAllTags_result:
14486
  """
14487
  Attributes:
14488
   - success
14489
  """
14490
 
14491
  thrift_spec = (
14492
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14493
  )
14494
 
14495
  def __init__(self, success=None,):
14496
    self.success = success
14497
 
14498
  def read(self, iprot):
14499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14501
      return
14502
    iprot.readStructBegin()
14503
    while True:
14504
      (fname, ftype, fid) = iprot.readFieldBegin()
14505
      if ftype == TType.STOP:
14506
        break
14507
      if fid == 0:
14508
        if ftype == TType.LIST:
14509
          self.success = []
12567 amit.gupta 14510
          (_etype177, _size174) = iprot.readListBegin()
14511
          for _i178 in xrange(_size174):
14512
            _elem179 = iprot.readString();
14513
            self.success.append(_elem179)
6512 kshitij.so 14514
          iprot.readListEnd()
14515
        else:
14516
          iprot.skip(ftype)
14517
      else:
14518
        iprot.skip(ftype)
14519
      iprot.readFieldEnd()
14520
    iprot.readStructEnd()
14521
 
14522
  def write(self, oprot):
14523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14525
      return
14526
    oprot.writeStructBegin('getAllTags_result')
14527
    if self.success is not None:
14528
      oprot.writeFieldBegin('success', TType.LIST, 0)
14529
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 14530
      for iter180 in self.success:
14531
        oprot.writeString(iter180)
6512 kshitij.so 14532
      oprot.writeListEnd()
14533
      oprot.writeFieldEnd()
14534
    oprot.writeFieldStop()
14535
    oprot.writeStructEnd()
14536
 
14537
  def validate(self):
14538
    return
14539
 
14540
 
14541
  def __repr__(self):
14542
    L = ['%s=%r' % (key, value)
14543
      for key, value in self.__dict__.iteritems()]
14544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14545
 
14546
  def __eq__(self, other):
14547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14548
 
14549
  def __ne__(self, other):
14550
    return not (self == other)
14551
 
14552
class getAllEntitiesByTagName_args:
14553
  """
14554
  Attributes:
14555
   - displayName
14556
  """
14557
 
14558
  thrift_spec = (
14559
    None, # 0
14560
    (1, TType.STRING, 'displayName', None, None, ), # 1
14561
  )
14562
 
14563
  def __init__(self, displayName=None,):
14564
    self.displayName = displayName
14565
 
14566
  def read(self, iprot):
14567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14569
      return
14570
    iprot.readStructBegin()
14571
    while True:
14572
      (fname, ftype, fid) = iprot.readFieldBegin()
14573
      if ftype == TType.STOP:
14574
        break
14575
      if fid == 1:
14576
        if ftype == TType.STRING:
14577
          self.displayName = iprot.readString();
14578
        else:
14579
          iprot.skip(ftype)
14580
      else:
14581
        iprot.skip(ftype)
14582
      iprot.readFieldEnd()
14583
    iprot.readStructEnd()
14584
 
14585
  def write(self, oprot):
14586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14588
      return
14589
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14590
    if self.displayName is not None:
14591
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14592
      oprot.writeString(self.displayName)
14593
      oprot.writeFieldEnd()
14594
    oprot.writeFieldStop()
14595
    oprot.writeStructEnd()
14596
 
14597
  def validate(self):
14598
    return
14599
 
14600
 
14601
  def __repr__(self):
14602
    L = ['%s=%r' % (key, value)
14603
      for key, value in self.__dict__.iteritems()]
14604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14605
 
14606
  def __eq__(self, other):
14607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14608
 
14609
  def __ne__(self, other):
14610
    return not (self == other)
14611
 
14612
class getAllEntitiesByTagName_result:
14613
  """
14614
  Attributes:
14615
   - success
14616
  """
14617
 
14618
  thrift_spec = (
14619
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14620
  )
14621
 
14622
  def __init__(self, success=None,):
14623
    self.success = success
14624
 
14625
  def read(self, iprot):
14626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14628
      return
14629
    iprot.readStructBegin()
14630
    while True:
14631
      (fname, ftype, fid) = iprot.readFieldBegin()
14632
      if ftype == TType.STOP:
14633
        break
14634
      if fid == 0:
14635
        if ftype == TType.LIST:
14636
          self.success = []
12567 amit.gupta 14637
          (_etype184, _size181) = iprot.readListBegin()
14638
          for _i185 in xrange(_size181):
14639
            _elem186 = iprot.readI64();
14640
            self.success.append(_elem186)
6512 kshitij.so 14641
          iprot.readListEnd()
14642
        else:
14643
          iprot.skip(ftype)
14644
      else:
14645
        iprot.skip(ftype)
14646
      iprot.readFieldEnd()
14647
    iprot.readStructEnd()
14648
 
14649
  def write(self, oprot):
14650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14652
      return
14653
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14654
    if self.success is not None:
14655
      oprot.writeFieldBegin('success', TType.LIST, 0)
14656
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 14657
      for iter187 in self.success:
14658
        oprot.writeI64(iter187)
6512 kshitij.so 14659
      oprot.writeListEnd()
14660
      oprot.writeFieldEnd()
14661
    oprot.writeFieldStop()
14662
    oprot.writeStructEnd()
14663
 
14664
  def validate(self):
14665
    return
14666
 
14667
 
14668
  def __repr__(self):
14669
    L = ['%s=%r' % (key, value)
14670
      for key, value in self.__dict__.iteritems()]
14671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14672
 
14673
  def __eq__(self, other):
14674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14675
 
14676
  def __ne__(self, other):
14677
    return not (self == other)
14678
 
6845 amit.gupta 14679
class getAllEntityTags_args:
14680
 
14681
  thrift_spec = (
14682
  )
14683
 
14684
  def read(self, iprot):
14685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14687
      return
14688
    iprot.readStructBegin()
14689
    while True:
14690
      (fname, ftype, fid) = iprot.readFieldBegin()
14691
      if ftype == TType.STOP:
14692
        break
14693
      else:
14694
        iprot.skip(ftype)
14695
      iprot.readFieldEnd()
14696
    iprot.readStructEnd()
14697
 
14698
  def write(self, oprot):
14699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14701
      return
14702
    oprot.writeStructBegin('getAllEntityTags_args')
14703
    oprot.writeFieldStop()
14704
    oprot.writeStructEnd()
14705
 
14706
  def validate(self):
14707
    return
14708
 
14709
 
14710
  def __repr__(self):
14711
    L = ['%s=%r' % (key, value)
14712
      for key, value in self.__dict__.iteritems()]
14713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14714
 
14715
  def __eq__(self, other):
14716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14717
 
14718
  def __ne__(self, other):
14719
    return not (self == other)
14720
 
14721
class getAllEntityTags_result:
14722
  """
14723
  Attributes:
14724
   - success
14725
  """
14726
 
14727
  thrift_spec = (
14728
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
14729
  )
14730
 
14731
  def __init__(self, success=None,):
14732
    self.success = success
14733
 
14734
  def read(self, iprot):
14735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14737
      return
14738
    iprot.readStructBegin()
14739
    while True:
14740
      (fname, ftype, fid) = iprot.readFieldBegin()
14741
      if ftype == TType.STOP:
14742
        break
14743
      if fid == 0:
14744
        if ftype == TType.MAP:
14745
          self.success = {}
12567 amit.gupta 14746
          (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin() 
14747
          for _i192 in xrange(_size188):
14748
            _key193 = iprot.readI64();
14749
            _val194 = []
14750
            (_etype198, _size195) = iprot.readListBegin()
14751
            for _i199 in xrange(_size195):
14752
              _elem200 = iprot.readString();
14753
              _val194.append(_elem200)
6845 amit.gupta 14754
            iprot.readListEnd()
12567 amit.gupta 14755
            self.success[_key193] = _val194
6845 amit.gupta 14756
          iprot.readMapEnd()
14757
        else:
14758
          iprot.skip(ftype)
14759
      else:
14760
        iprot.skip(ftype)
14761
      iprot.readFieldEnd()
14762
    iprot.readStructEnd()
14763
 
14764
  def write(self, oprot):
14765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14767
      return
14768
    oprot.writeStructBegin('getAllEntityTags_result')
14769
    if self.success is not None:
14770
      oprot.writeFieldBegin('success', TType.MAP, 0)
14771
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
12567 amit.gupta 14772
      for kiter201,viter202 in self.success.items():
14773
        oprot.writeI64(kiter201)
14774
        oprot.writeListBegin(TType.STRING, len(viter202))
14775
        for iter203 in viter202:
14776
          oprot.writeString(iter203)
6845 amit.gupta 14777
        oprot.writeListEnd()
14778
      oprot.writeMapEnd()
14779
      oprot.writeFieldEnd()
14780
    oprot.writeFieldStop()
14781
    oprot.writeStructEnd()
14782
 
14783
  def validate(self):
14784
    return
14785
 
14786
 
14787
  def __repr__(self):
14788
    L = ['%s=%r' % (key, value)
14789
      for key, value in self.__dict__.iteritems()]
14790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14791
 
14792
  def __eq__(self, other):
14793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14794
 
14795
  def __ne__(self, other):
14796
    return not (self == other)
14797
 
6850 kshitij.so 14798
class addBanner_args:
14799
  """
14800
  Attributes:
8590 kshitij.so 14801
   - bannerCongregate
6850 kshitij.so 14802
  """
14803
 
14804
  thrift_spec = (
14805
    None, # 0
8590 kshitij.so 14806
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 14807
  )
14808
 
8590 kshitij.so 14809
  def __init__(self, bannerCongregate=None,):
14810
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 14811
 
14812
  def read(self, iprot):
14813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14815
      return
14816
    iprot.readStructBegin()
14817
    while True:
14818
      (fname, ftype, fid) = iprot.readFieldBegin()
14819
      if ftype == TType.STOP:
14820
        break
14821
      if fid == 1:
8579 kshitij.so 14822
        if ftype == TType.STRUCT:
8590 kshitij.so 14823
          self.bannerCongregate = BannerCongregate()
14824
          self.bannerCongregate.read(iprot)
6850 kshitij.so 14825
        else:
14826
          iprot.skip(ftype)
8579 kshitij.so 14827
      else:
14828
        iprot.skip(ftype)
14829
      iprot.readFieldEnd()
14830
    iprot.readStructEnd()
14831
 
14832
  def write(self, oprot):
14833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14835
      return
14836
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 14837
    if self.bannerCongregate is not None:
14838
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
14839
      self.bannerCongregate.write(oprot)
8579 kshitij.so 14840
      oprot.writeFieldEnd()
14841
    oprot.writeFieldStop()
14842
    oprot.writeStructEnd()
14843
 
14844
  def validate(self):
14845
    return
14846
 
14847
 
14848
  def __repr__(self):
14849
    L = ['%s=%r' % (key, value)
14850
      for key, value in self.__dict__.iteritems()]
14851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14852
 
14853
  def __eq__(self, other):
14854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14855
 
14856
  def __ne__(self, other):
14857
    return not (self == other)
14858
 
14859
class addBanner_result:
10097 kshitij.so 14860
  """
14861
  Attributes:
14862
   - success
14863
  """
8579 kshitij.so 14864
 
14865
  thrift_spec = (
10097 kshitij.so 14866
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 14867
  )
14868
 
10097 kshitij.so 14869
  def __init__(self, success=None,):
14870
    self.success = success
14871
 
8579 kshitij.so 14872
  def read(self, iprot):
14873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14875
      return
14876
    iprot.readStructBegin()
14877
    while True:
14878
      (fname, ftype, fid) = iprot.readFieldBegin()
14879
      if ftype == TType.STOP:
14880
        break
10097 kshitij.so 14881
      if fid == 0:
14882
        if ftype == TType.BOOL:
14883
          self.success = iprot.readBool();
14884
        else:
14885
          iprot.skip(ftype)
8579 kshitij.so 14886
      else:
14887
        iprot.skip(ftype)
14888
      iprot.readFieldEnd()
14889
    iprot.readStructEnd()
14890
 
14891
  def write(self, oprot):
14892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14894
      return
14895
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 14896
    if self.success is not None:
14897
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14898
      oprot.writeBool(self.success)
14899
      oprot.writeFieldEnd()
8579 kshitij.so 14900
    oprot.writeFieldStop()
14901
    oprot.writeStructEnd()
14902
 
14903
  def validate(self):
14904
    return
14905
 
14906
 
14907
  def __repr__(self):
14908
    L = ['%s=%r' % (key, value)
14909
      for key, value in self.__dict__.iteritems()]
14910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14911
 
14912
  def __eq__(self, other):
14913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14914
 
14915
  def __ne__(self, other):
14916
    return not (self == other)
14917
 
14918
class updateBanner_args:
14919
  """
14920
  Attributes:
14921
   - banner
14922
  """
14923
 
14924
  thrift_spec = (
14925
    None, # 0
14926
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
14927
  )
14928
 
14929
  def __init__(self, banner=None,):
14930
    self.banner = banner
14931
 
14932
  def read(self, iprot):
14933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14935
      return
14936
    iprot.readStructBegin()
14937
    while True:
14938
      (fname, ftype, fid) = iprot.readFieldBegin()
14939
      if ftype == TType.STOP:
14940
        break
14941
      if fid == 1:
14942
        if ftype == TType.STRUCT:
14943
          self.banner = Banner()
14944
          self.banner.read(iprot)
6850 kshitij.so 14945
        else:
14946
          iprot.skip(ftype)
14947
      else:
14948
        iprot.skip(ftype)
14949
      iprot.readFieldEnd()
14950
    iprot.readStructEnd()
14951
 
14952
  def write(self, oprot):
14953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14955
      return
8579 kshitij.so 14956
    oprot.writeStructBegin('updateBanner_args')
14957
    if self.banner is not None:
14958
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
14959
      self.banner.write(oprot)
6850 kshitij.so 14960
      oprot.writeFieldEnd()
14961
    oprot.writeFieldStop()
14962
    oprot.writeStructEnd()
14963
 
14964
  def validate(self):
14965
    return
14966
 
14967
 
14968
  def __repr__(self):
14969
    L = ['%s=%r' % (key, value)
14970
      for key, value in self.__dict__.iteritems()]
14971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14972
 
14973
  def __eq__(self, other):
14974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14975
 
14976
  def __ne__(self, other):
14977
    return not (self == other)
14978
 
8579 kshitij.so 14979
class updateBanner_result:
6850 kshitij.so 14980
  """
14981
  Attributes:
14982
   - success
14983
  """
14984
 
14985
  thrift_spec = (
14986
    (0, TType.BOOL, 'success', None, None, ), # 0
14987
  )
14988
 
14989
  def __init__(self, success=None,):
14990
    self.success = success
14991
 
14992
  def read(self, iprot):
14993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14995
      return
14996
    iprot.readStructBegin()
14997
    while True:
14998
      (fname, ftype, fid) = iprot.readFieldBegin()
14999
      if ftype == TType.STOP:
15000
        break
15001
      if fid == 0:
15002
        if ftype == TType.BOOL:
15003
          self.success = iprot.readBool();
15004
        else:
15005
          iprot.skip(ftype)
15006
      else:
15007
        iprot.skip(ftype)
15008
      iprot.readFieldEnd()
15009
    iprot.readStructEnd()
15010
 
15011
  def write(self, oprot):
15012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15014
      return
8579 kshitij.so 15015
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 15016
    if self.success is not None:
15017
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15018
      oprot.writeBool(self.success)
15019
      oprot.writeFieldEnd()
15020
    oprot.writeFieldStop()
15021
    oprot.writeStructEnd()
15022
 
15023
  def validate(self):
15024
    return
15025
 
15026
 
15027
  def __repr__(self):
15028
    L = ['%s=%r' % (key, value)
15029
      for key, value in self.__dict__.iteritems()]
15030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15031
 
15032
  def __eq__(self, other):
15033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15034
 
15035
  def __ne__(self, other):
15036
    return not (self == other)
15037
 
15038
class getAllBanners_args:
15039
 
15040
  thrift_spec = (
15041
  )
15042
 
15043
  def read(self, iprot):
15044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15046
      return
15047
    iprot.readStructBegin()
15048
    while True:
15049
      (fname, ftype, fid) = iprot.readFieldBegin()
15050
      if ftype == TType.STOP:
15051
        break
15052
      else:
15053
        iprot.skip(ftype)
15054
      iprot.readFieldEnd()
15055
    iprot.readStructEnd()
15056
 
15057
  def write(self, oprot):
15058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15060
      return
15061
    oprot.writeStructBegin('getAllBanners_args')
15062
    oprot.writeFieldStop()
15063
    oprot.writeStructEnd()
15064
 
15065
  def validate(self):
15066
    return
15067
 
15068
 
15069
  def __repr__(self):
15070
    L = ['%s=%r' % (key, value)
15071
      for key, value in self.__dict__.iteritems()]
15072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15073
 
15074
  def __eq__(self, other):
15075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15076
 
15077
  def __ne__(self, other):
15078
    return not (self == other)
15079
 
15080
class getAllBanners_result:
15081
  """
15082
  Attributes:
15083
   - success
15084
  """
15085
 
15086
  thrift_spec = (
8579 kshitij.so 15087
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15088
  )
15089
 
15090
  def __init__(self, success=None,):
15091
    self.success = success
15092
 
15093
  def read(self, iprot):
15094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15096
      return
15097
    iprot.readStructBegin()
15098
    while True:
15099
      (fname, ftype, fid) = iprot.readFieldBegin()
15100
      if ftype == TType.STOP:
15101
        break
15102
      if fid == 0:
15103
        if ftype == TType.LIST:
15104
          self.success = []
12567 amit.gupta 15105
          (_etype207, _size204) = iprot.readListBegin()
15106
          for _i208 in xrange(_size204):
15107
            _elem209 = Banner()
15108
            _elem209.read(iprot)
15109
            self.success.append(_elem209)
6850 kshitij.so 15110
          iprot.readListEnd()
15111
        else:
15112
          iprot.skip(ftype)
15113
      else:
15114
        iprot.skip(ftype)
15115
      iprot.readFieldEnd()
15116
    iprot.readStructEnd()
15117
 
15118
  def write(self, oprot):
15119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15121
      return
15122
    oprot.writeStructBegin('getAllBanners_result')
15123
    if self.success is not None:
15124
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15125
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15126
      for iter210 in self.success:
15127
        iter210.write(oprot)
6850 kshitij.so 15128
      oprot.writeListEnd()
15129
      oprot.writeFieldEnd()
15130
    oprot.writeFieldStop()
15131
    oprot.writeStructEnd()
15132
 
15133
  def validate(self):
15134
    return
15135
 
15136
 
15137
  def __repr__(self):
15138
    L = ['%s=%r' % (key, value)
15139
      for key, value in self.__dict__.iteritems()]
15140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15141
 
15142
  def __eq__(self, other):
15143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15144
 
15145
  def __ne__(self, other):
15146
    return not (self == other)
15147
 
15148
class deleteBanner_args:
15149
  """
15150
  Attributes:
15151
   - bannerName
9155 kshitij.so 15152
   - bannerType
6850 kshitij.so 15153
  """
15154
 
15155
  thrift_spec = (
15156
    None, # 0
15157
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15158
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15159
  )
15160
 
9155 kshitij.so 15161
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15162
    self.bannerName = bannerName
9155 kshitij.so 15163
    self.bannerType = bannerType
6850 kshitij.so 15164
 
15165
  def read(self, iprot):
15166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15168
      return
15169
    iprot.readStructBegin()
15170
    while True:
15171
      (fname, ftype, fid) = iprot.readFieldBegin()
15172
      if ftype == TType.STOP:
15173
        break
15174
      if fid == 1:
15175
        if ftype == TType.STRING:
15176
          self.bannerName = iprot.readString();
15177
        else:
15178
          iprot.skip(ftype)
9155 kshitij.so 15179
      elif fid == 2:
15180
        if ftype == TType.I32:
15181
          self.bannerType = iprot.readI32();
15182
        else:
15183
          iprot.skip(ftype)
6850 kshitij.so 15184
      else:
15185
        iprot.skip(ftype)
15186
      iprot.readFieldEnd()
15187
    iprot.readStructEnd()
15188
 
15189
  def write(self, oprot):
15190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15192
      return
15193
    oprot.writeStructBegin('deleteBanner_args')
15194
    if self.bannerName is not None:
15195
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15196
      oprot.writeString(self.bannerName)
15197
      oprot.writeFieldEnd()
9155 kshitij.so 15198
    if self.bannerType is not None:
15199
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15200
      oprot.writeI32(self.bannerType)
15201
      oprot.writeFieldEnd()
6850 kshitij.so 15202
    oprot.writeFieldStop()
15203
    oprot.writeStructEnd()
15204
 
15205
  def validate(self):
15206
    return
15207
 
15208
 
15209
  def __repr__(self):
15210
    L = ['%s=%r' % (key, value)
15211
      for key, value in self.__dict__.iteritems()]
15212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15213
 
15214
  def __eq__(self, other):
15215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15216
 
15217
  def __ne__(self, other):
15218
    return not (self == other)
15219
 
15220
class deleteBanner_result:
15221
  """
15222
  Attributes:
15223
   - success
15224
  """
15225
 
15226
  thrift_spec = (
15227
    (0, TType.BOOL, 'success', None, None, ), # 0
15228
  )
15229
 
15230
  def __init__(self, success=None,):
15231
    self.success = success
15232
 
15233
  def read(self, iprot):
15234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15236
      return
15237
    iprot.readStructBegin()
15238
    while True:
15239
      (fname, ftype, fid) = iprot.readFieldBegin()
15240
      if ftype == TType.STOP:
15241
        break
15242
      if fid == 0:
15243
        if ftype == TType.BOOL:
15244
          self.success = iprot.readBool();
15245
        else:
15246
          iprot.skip(ftype)
15247
      else:
15248
        iprot.skip(ftype)
15249
      iprot.readFieldEnd()
15250
    iprot.readStructEnd()
15251
 
15252
  def write(self, oprot):
15253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15255
      return
15256
    oprot.writeStructBegin('deleteBanner_result')
15257
    if self.success is not None:
15258
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15259
      oprot.writeBool(self.success)
15260
      oprot.writeFieldEnd()
15261
    oprot.writeFieldStop()
15262
    oprot.writeStructEnd()
15263
 
15264
  def validate(self):
15265
    return
15266
 
15267
 
15268
  def __repr__(self):
15269
    L = ['%s=%r' % (key, value)
15270
      for key, value in self.__dict__.iteritems()]
15271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15272
 
15273
  def __eq__(self, other):
15274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15275
 
15276
  def __ne__(self, other):
15277
    return not (self == other)
15278
 
15279
class getBannerDetails_args:
15280
  """
15281
  Attributes:
15282
   - bannerName
9155 kshitij.so 15283
   - bannerType
6850 kshitij.so 15284
  """
15285
 
15286
  thrift_spec = (
15287
    None, # 0
15288
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15289
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15290
  )
15291
 
9155 kshitij.so 15292
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15293
    self.bannerName = bannerName
9155 kshitij.so 15294
    self.bannerType = bannerType
6850 kshitij.so 15295
 
15296
  def read(self, iprot):
15297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15299
      return
15300
    iprot.readStructBegin()
15301
    while True:
15302
      (fname, ftype, fid) = iprot.readFieldBegin()
15303
      if ftype == TType.STOP:
15304
        break
15305
      if fid == 1:
15306
        if ftype == TType.STRING:
15307
          self.bannerName = iprot.readString();
15308
        else:
15309
          iprot.skip(ftype)
9155 kshitij.so 15310
      elif fid == 2:
15311
        if ftype == TType.I32:
15312
          self.bannerType = iprot.readI32();
15313
        else:
15314
          iprot.skip(ftype)
6850 kshitij.so 15315
      else:
15316
        iprot.skip(ftype)
15317
      iprot.readFieldEnd()
15318
    iprot.readStructEnd()
15319
 
15320
  def write(self, oprot):
15321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15323
      return
15324
    oprot.writeStructBegin('getBannerDetails_args')
15325
    if self.bannerName is not None:
15326
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15327
      oprot.writeString(self.bannerName)
15328
      oprot.writeFieldEnd()
9155 kshitij.so 15329
    if self.bannerType is not None:
15330
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15331
      oprot.writeI32(self.bannerType)
15332
      oprot.writeFieldEnd()
6850 kshitij.so 15333
    oprot.writeFieldStop()
15334
    oprot.writeStructEnd()
15335
 
15336
  def validate(self):
15337
    return
15338
 
15339
 
15340
  def __repr__(self):
15341
    L = ['%s=%r' % (key, value)
15342
      for key, value in self.__dict__.iteritems()]
15343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15344
 
15345
  def __eq__(self, other):
15346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15347
 
15348
  def __ne__(self, other):
15349
    return not (self == other)
15350
 
15351
class getBannerDetails_result:
15352
  """
15353
  Attributes:
15354
   - success
15355
  """
15356
 
15357
  thrift_spec = (
15358
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15359
  )
15360
 
15361
  def __init__(self, success=None,):
15362
    self.success = success
15363
 
15364
  def read(self, iprot):
15365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15367
      return
15368
    iprot.readStructBegin()
15369
    while True:
15370
      (fname, ftype, fid) = iprot.readFieldBegin()
15371
      if ftype == TType.STOP:
15372
        break
15373
      if fid == 0:
15374
        if ftype == TType.STRUCT:
15375
          self.success = Banner()
15376
          self.success.read(iprot)
15377
        else:
15378
          iprot.skip(ftype)
15379
      else:
15380
        iprot.skip(ftype)
15381
      iprot.readFieldEnd()
15382
    iprot.readStructEnd()
15383
 
15384
  def write(self, oprot):
15385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15387
      return
15388
    oprot.writeStructBegin('getBannerDetails_result')
15389
    if self.success is not None:
15390
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15391
      self.success.write(oprot)
15392
      oprot.writeFieldEnd()
15393
    oprot.writeFieldStop()
15394
    oprot.writeStructEnd()
15395
 
15396
  def validate(self):
15397
    return
15398
 
15399
 
15400
  def __repr__(self):
15401
    L = ['%s=%r' % (key, value)
15402
      for key, value in self.__dict__.iteritems()]
15403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15404
 
15405
  def __eq__(self, other):
15406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15407
 
15408
  def __ne__(self, other):
15409
    return not (self == other)
15410
 
15411
class getActiveBanners_args:
15412
 
15413
  thrift_spec = (
15414
  )
15415
 
15416
  def read(self, iprot):
15417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15419
      return
15420
    iprot.readStructBegin()
15421
    while True:
15422
      (fname, ftype, fid) = iprot.readFieldBegin()
15423
      if ftype == TType.STOP:
15424
        break
15425
      else:
15426
        iprot.skip(ftype)
15427
      iprot.readFieldEnd()
15428
    iprot.readStructEnd()
15429
 
15430
  def write(self, oprot):
15431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15433
      return
15434
    oprot.writeStructBegin('getActiveBanners_args')
15435
    oprot.writeFieldStop()
15436
    oprot.writeStructEnd()
15437
 
15438
  def validate(self):
15439
    return
15440
 
15441
 
15442
  def __repr__(self):
15443
    L = ['%s=%r' % (key, value)
15444
      for key, value in self.__dict__.iteritems()]
15445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15446
 
15447
  def __eq__(self, other):
15448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15449
 
15450
  def __ne__(self, other):
15451
    return not (self == other)
15452
 
15453
class getActiveBanners_result:
15454
  """
15455
  Attributes:
15456
   - success
15457
  """
15458
 
15459
  thrift_spec = (
8579 kshitij.so 15460
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15461
  )
15462
 
15463
  def __init__(self, success=None,):
15464
    self.success = success
15465
 
15466
  def read(self, iprot):
15467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15469
      return
15470
    iprot.readStructBegin()
15471
    while True:
15472
      (fname, ftype, fid) = iprot.readFieldBegin()
15473
      if ftype == TType.STOP:
15474
        break
15475
      if fid == 0:
8579 kshitij.so 15476
        if ftype == TType.MAP:
15477
          self.success = {}
12567 amit.gupta 15478
          (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() 
15479
          for _i215 in xrange(_size211):
15480
            _key216 = iprot.readString();
15481
            _val217 = []
15482
            (_etype221, _size218) = iprot.readListBegin()
15483
            for _i222 in xrange(_size218):
15484
              _elem223 = Banner()
15485
              _elem223.read(iprot)
15486
              _val217.append(_elem223)
8579 kshitij.so 15487
            iprot.readListEnd()
12567 amit.gupta 15488
            self.success[_key216] = _val217
8579 kshitij.so 15489
          iprot.readMapEnd()
6850 kshitij.so 15490
        else:
15491
          iprot.skip(ftype)
15492
      else:
15493
        iprot.skip(ftype)
15494
      iprot.readFieldEnd()
15495
    iprot.readStructEnd()
15496
 
15497
  def write(self, oprot):
15498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15500
      return
15501
    oprot.writeStructBegin('getActiveBanners_result')
15502
    if self.success is not None:
8579 kshitij.so 15503
      oprot.writeFieldBegin('success', TType.MAP, 0)
15504
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 15505
      for kiter224,viter225 in self.success.items():
15506
        oprot.writeString(kiter224)
15507
        oprot.writeListBegin(TType.STRUCT, len(viter225))
15508
        for iter226 in viter225:
15509
          iter226.write(oprot)
8579 kshitij.so 15510
        oprot.writeListEnd()
15511
      oprot.writeMapEnd()
6850 kshitij.so 15512
      oprot.writeFieldEnd()
15513
    oprot.writeFieldStop()
15514
    oprot.writeStructEnd()
15515
 
15516
  def validate(self):
15517
    return
15518
 
15519
 
15520
  def __repr__(self):
15521
    L = ['%s=%r' % (key, value)
15522
      for key, value in self.__dict__.iteritems()]
15523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15524
 
15525
  def __eq__(self, other):
15526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15527
 
15528
  def __ne__(self, other):
15529
    return not (self == other)
15530
 
6849 kshitij.so 15531
class addBannerMap_args:
15532
  """
15533
  Attributes:
8579 kshitij.so 15534
   - bannerMaps
6849 kshitij.so 15535
  """
15536
 
15537
  thrift_spec = (
15538
    None, # 0
8579 kshitij.so 15539
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15540
  )
15541
 
8579 kshitij.so 15542
  def __init__(self, bannerMaps=None,):
15543
    self.bannerMaps = bannerMaps
6849 kshitij.so 15544
 
15545
  def read(self, iprot):
15546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15548
      return
15549
    iprot.readStructBegin()
15550
    while True:
15551
      (fname, ftype, fid) = iprot.readFieldBegin()
15552
      if ftype == TType.STOP:
15553
        break
15554
      if fid == 1:
8579 kshitij.so 15555
        if ftype == TType.LIST:
15556
          self.bannerMaps = []
12567 amit.gupta 15557
          (_etype230, _size227) = iprot.readListBegin()
15558
          for _i231 in xrange(_size227):
15559
            _elem232 = BannerMap()
15560
            _elem232.read(iprot)
15561
            self.bannerMaps.append(_elem232)
8579 kshitij.so 15562
          iprot.readListEnd()
6849 kshitij.so 15563
        else:
15564
          iprot.skip(ftype)
8579 kshitij.so 15565
      else:
15566
        iprot.skip(ftype)
15567
      iprot.readFieldEnd()
15568
    iprot.readStructEnd()
15569
 
15570
  def write(self, oprot):
15571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15573
      return
15574
    oprot.writeStructBegin('addBannerMap_args')
15575
    if self.bannerMaps is not None:
15576
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15577
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
12567 amit.gupta 15578
      for iter233 in self.bannerMaps:
15579
        iter233.write(oprot)
8579 kshitij.so 15580
      oprot.writeListEnd()
15581
      oprot.writeFieldEnd()
15582
    oprot.writeFieldStop()
15583
    oprot.writeStructEnd()
15584
 
15585
  def validate(self):
15586
    return
15587
 
15588
 
15589
  def __repr__(self):
15590
    L = ['%s=%r' % (key, value)
15591
      for key, value in self.__dict__.iteritems()]
15592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15593
 
15594
  def __eq__(self, other):
15595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15596
 
15597
  def __ne__(self, other):
15598
    return not (self == other)
15599
 
15600
class addBannerMap_result:
15601
  """
15602
  Attributes:
15603
   - success
15604
  """
15605
 
15606
  thrift_spec = (
15607
    (0, TType.BOOL, 'success', None, None, ), # 0
15608
  )
15609
 
15610
  def __init__(self, success=None,):
15611
    self.success = success
15612
 
15613
  def read(self, iprot):
15614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15616
      return
15617
    iprot.readStructBegin()
15618
    while True:
15619
      (fname, ftype, fid) = iprot.readFieldBegin()
15620
      if ftype == TType.STOP:
15621
        break
15622
      if fid == 0:
15623
        if ftype == TType.BOOL:
15624
          self.success = iprot.readBool();
6849 kshitij.so 15625
        else:
15626
          iprot.skip(ftype)
8579 kshitij.so 15627
      else:
15628
        iprot.skip(ftype)
15629
      iprot.readFieldEnd()
15630
    iprot.readStructEnd()
15631
 
15632
  def write(self, oprot):
15633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15635
      return
15636
    oprot.writeStructBegin('addBannerMap_result')
15637
    if self.success is not None:
15638
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15639
      oprot.writeBool(self.success)
15640
      oprot.writeFieldEnd()
15641
    oprot.writeFieldStop()
15642
    oprot.writeStructEnd()
15643
 
15644
  def validate(self):
15645
    return
15646
 
15647
 
15648
  def __repr__(self):
15649
    L = ['%s=%r' % (key, value)
15650
      for key, value in self.__dict__.iteritems()]
15651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15652
 
15653
  def __eq__(self, other):
15654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15655
 
15656
  def __ne__(self, other):
15657
    return not (self == other)
15658
 
15659
class updateBannerMap_args:
15660
  """
15661
  Attributes:
15662
   - bannerMap
15663
  """
15664
 
15665
  thrift_spec = (
15666
    None, # 0
15667
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15668
  )
15669
 
15670
  def __init__(self, bannerMap=None,):
15671
    self.bannerMap = bannerMap
15672
 
15673
  def read(self, iprot):
15674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15676
      return
15677
    iprot.readStructBegin()
15678
    while True:
15679
      (fname, ftype, fid) = iprot.readFieldBegin()
15680
      if ftype == TType.STOP:
15681
        break
15682
      if fid == 1:
15683
        if ftype == TType.STRUCT:
15684
          self.bannerMap = BannerMap()
15685
          self.bannerMap.read(iprot)
6849 kshitij.so 15686
        else:
15687
          iprot.skip(ftype)
15688
      else:
15689
        iprot.skip(ftype)
15690
      iprot.readFieldEnd()
15691
    iprot.readStructEnd()
15692
 
15693
  def write(self, oprot):
15694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15696
      return
8579 kshitij.so 15697
    oprot.writeStructBegin('updateBannerMap_args')
15698
    if self.bannerMap is not None:
15699
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
15700
      self.bannerMap.write(oprot)
6849 kshitij.so 15701
      oprot.writeFieldEnd()
15702
    oprot.writeFieldStop()
15703
    oprot.writeStructEnd()
15704
 
15705
  def validate(self):
15706
    return
15707
 
15708
 
15709
  def __repr__(self):
15710
    L = ['%s=%r' % (key, value)
15711
      for key, value in self.__dict__.iteritems()]
15712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15713
 
15714
  def __eq__(self, other):
15715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15716
 
15717
  def __ne__(self, other):
15718
    return not (self == other)
15719
 
8579 kshitij.so 15720
class updateBannerMap_result:
6849 kshitij.so 15721
  """
15722
  Attributes:
15723
   - success
15724
  """
15725
 
15726
  thrift_spec = (
15727
    (0, TType.BOOL, 'success', None, None, ), # 0
15728
  )
15729
 
15730
  def __init__(self, success=None,):
15731
    self.success = success
15732
 
15733
  def read(self, iprot):
15734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15736
      return
15737
    iprot.readStructBegin()
15738
    while True:
15739
      (fname, ftype, fid) = iprot.readFieldBegin()
15740
      if ftype == TType.STOP:
15741
        break
15742
      if fid == 0:
15743
        if ftype == TType.BOOL:
15744
          self.success = iprot.readBool();
15745
        else:
15746
          iprot.skip(ftype)
15747
      else:
15748
        iprot.skip(ftype)
15749
      iprot.readFieldEnd()
15750
    iprot.readStructEnd()
15751
 
15752
  def write(self, oprot):
15753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15755
      return
8579 kshitij.so 15756
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 15757
    if self.success is not None:
15758
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15759
      oprot.writeBool(self.success)
15760
      oprot.writeFieldEnd()
15761
    oprot.writeFieldStop()
15762
    oprot.writeStructEnd()
15763
 
15764
  def validate(self):
15765
    return
15766
 
15767
 
15768
  def __repr__(self):
15769
    L = ['%s=%r' % (key, value)
15770
      for key, value in self.__dict__.iteritems()]
15771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15772
 
15773
  def __eq__(self, other):
15774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15775
 
15776
  def __ne__(self, other):
15777
    return not (self == other)
15778
 
15779
class deleteBannerMap_args:
15780
  """
15781
  Attributes:
15782
   - bannerName
15783
  """
15784
 
15785
  thrift_spec = (
15786
    None, # 0
15787
    (1, TType.STRING, 'bannerName', None, None, ), # 1
15788
  )
15789
 
15790
  def __init__(self, bannerName=None,):
15791
    self.bannerName = bannerName
15792
 
15793
  def read(self, iprot):
15794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15796
      return
15797
    iprot.readStructBegin()
15798
    while True:
15799
      (fname, ftype, fid) = iprot.readFieldBegin()
15800
      if ftype == TType.STOP:
15801
        break
15802
      if fid == 1:
15803
        if ftype == TType.STRING:
15804
          self.bannerName = iprot.readString();
15805
        else:
15806
          iprot.skip(ftype)
15807
      else:
15808
        iprot.skip(ftype)
15809
      iprot.readFieldEnd()
15810
    iprot.readStructEnd()
15811
 
15812
  def write(self, oprot):
15813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15815
      return
15816
    oprot.writeStructBegin('deleteBannerMap_args')
15817
    if self.bannerName is not None:
15818
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15819
      oprot.writeString(self.bannerName)
15820
      oprot.writeFieldEnd()
15821
    oprot.writeFieldStop()
15822
    oprot.writeStructEnd()
15823
 
15824
  def validate(self):
15825
    return
15826
 
15827
 
15828
  def __repr__(self):
15829
    L = ['%s=%r' % (key, value)
15830
      for key, value in self.__dict__.iteritems()]
15831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15832
 
15833
  def __eq__(self, other):
15834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15835
 
15836
  def __ne__(self, other):
15837
    return not (self == other)
15838
 
15839
class deleteBannerMap_result:
15840
  """
15841
  Attributes:
15842
   - success
15843
  """
15844
 
15845
  thrift_spec = (
15846
    (0, TType.BOOL, 'success', None, None, ), # 0
15847
  )
15848
 
15849
  def __init__(self, success=None,):
15850
    self.success = success
15851
 
15852
  def read(self, iprot):
15853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15855
      return
15856
    iprot.readStructBegin()
15857
    while True:
15858
      (fname, ftype, fid) = iprot.readFieldBegin()
15859
      if ftype == TType.STOP:
15860
        break
15861
      if fid == 0:
15862
        if ftype == TType.BOOL:
15863
          self.success = iprot.readBool();
15864
        else:
15865
          iprot.skip(ftype)
15866
      else:
15867
        iprot.skip(ftype)
15868
      iprot.readFieldEnd()
15869
    iprot.readStructEnd()
15870
 
15871
  def write(self, oprot):
15872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15874
      return
15875
    oprot.writeStructBegin('deleteBannerMap_result')
15876
    if self.success is not None:
15877
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15878
      oprot.writeBool(self.success)
15879
      oprot.writeFieldEnd()
15880
    oprot.writeFieldStop()
15881
    oprot.writeStructEnd()
15882
 
15883
  def validate(self):
15884
    return
15885
 
15886
 
15887
  def __repr__(self):
15888
    L = ['%s=%r' % (key, value)
15889
      for key, value in self.__dict__.iteritems()]
15890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15891
 
15892
  def __eq__(self, other):
15893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15894
 
15895
  def __ne__(self, other):
15896
    return not (self == other)
15897
 
15898
class getBannerMapDetails_args:
15899
  """
15900
  Attributes:
15901
   - bannerName
9155 kshitij.so 15902
   - bannerType
6849 kshitij.so 15903
  """
15904
 
15905
  thrift_spec = (
15906
    None, # 0
15907
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15908
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 15909
  )
15910
 
9155 kshitij.so 15911
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 15912
    self.bannerName = bannerName
9155 kshitij.so 15913
    self.bannerType = bannerType
6849 kshitij.so 15914
 
15915
  def read(self, iprot):
15916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15918
      return
15919
    iprot.readStructBegin()
15920
    while True:
15921
      (fname, ftype, fid) = iprot.readFieldBegin()
15922
      if ftype == TType.STOP:
15923
        break
15924
      if fid == 1:
15925
        if ftype == TType.STRING:
15926
          self.bannerName = iprot.readString();
15927
        else:
15928
          iprot.skip(ftype)
9155 kshitij.so 15929
      elif fid == 2:
15930
        if ftype == TType.I32:
15931
          self.bannerType = iprot.readI32();
15932
        else:
15933
          iprot.skip(ftype)
6849 kshitij.so 15934
      else:
15935
        iprot.skip(ftype)
15936
      iprot.readFieldEnd()
15937
    iprot.readStructEnd()
15938
 
15939
  def write(self, oprot):
15940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15942
      return
15943
    oprot.writeStructBegin('getBannerMapDetails_args')
15944
    if self.bannerName is not None:
15945
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15946
      oprot.writeString(self.bannerName)
15947
      oprot.writeFieldEnd()
9155 kshitij.so 15948
    if self.bannerType is not None:
15949
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15950
      oprot.writeI32(self.bannerType)
15951
      oprot.writeFieldEnd()
6849 kshitij.so 15952
    oprot.writeFieldStop()
15953
    oprot.writeStructEnd()
15954
 
15955
  def validate(self):
15956
    return
15957
 
15958
 
15959
  def __repr__(self):
15960
    L = ['%s=%r' % (key, value)
15961
      for key, value in self.__dict__.iteritems()]
15962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15963
 
15964
  def __eq__(self, other):
15965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15966
 
15967
  def __ne__(self, other):
15968
    return not (self == other)
15969
 
15970
class getBannerMapDetails_result:
15971
  """
15972
  Attributes:
15973
   - success
15974
  """
15975
 
15976
  thrift_spec = (
15977
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
15978
  )
15979
 
15980
  def __init__(self, success=None,):
15981
    self.success = success
15982
 
15983
  def read(self, iprot):
15984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15986
      return
15987
    iprot.readStructBegin()
15988
    while True:
15989
      (fname, ftype, fid) = iprot.readFieldBegin()
15990
      if ftype == TType.STOP:
15991
        break
15992
      if fid == 0:
15993
        if ftype == TType.LIST:
15994
          self.success = []
12567 amit.gupta 15995
          (_etype237, _size234) = iprot.readListBegin()
15996
          for _i238 in xrange(_size234):
15997
            _elem239 = BannerMap()
15998
            _elem239.read(iprot)
15999
            self.success.append(_elem239)
6849 kshitij.so 16000
          iprot.readListEnd()
16001
        else:
16002
          iprot.skip(ftype)
16003
      else:
16004
        iprot.skip(ftype)
16005
      iprot.readFieldEnd()
16006
    iprot.readStructEnd()
16007
 
16008
  def write(self, oprot):
16009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16011
      return
16012
    oprot.writeStructBegin('getBannerMapDetails_result')
16013
    if self.success is not None:
16014
      oprot.writeFieldBegin('success', TType.LIST, 0)
16015
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16016
      for iter240 in self.success:
16017
        iter240.write(oprot)
6849 kshitij.so 16018
      oprot.writeListEnd()
16019
      oprot.writeFieldEnd()
16020
    oprot.writeFieldStop()
16021
    oprot.writeStructEnd()
16022
 
16023
  def validate(self):
16024
    return
16025
 
16026
 
16027
  def __repr__(self):
16028
    L = ['%s=%r' % (key, value)
16029
      for key, value in self.__dict__.iteritems()]
16030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16031
 
16032
  def __eq__(self, other):
16033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16034
 
16035
  def __ne__(self, other):
16036
    return not (self == other)
16037
 
8579 kshitij.so 16038
class addBannerUri_args:
16039
  """
16040
  Attributes:
16041
   - bannerUriMappings
16042
  """
16043
 
16044
  thrift_spec = (
16045
    None, # 0
16046
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
16047
  )
16048
 
16049
  def __init__(self, bannerUriMappings=None,):
16050
    self.bannerUriMappings = bannerUriMappings
16051
 
16052
  def read(self, iprot):
16053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16055
      return
16056
    iprot.readStructBegin()
16057
    while True:
16058
      (fname, ftype, fid) = iprot.readFieldBegin()
16059
      if ftype == TType.STOP:
16060
        break
16061
      if fid == 1:
16062
        if ftype == TType.LIST:
16063
          self.bannerUriMappings = []
12567 amit.gupta 16064
          (_etype244, _size241) = iprot.readListBegin()
16065
          for _i245 in xrange(_size241):
16066
            _elem246 = BannerUriMapping()
16067
            _elem246.read(iprot)
16068
            self.bannerUriMappings.append(_elem246)
8579 kshitij.so 16069
          iprot.readListEnd()
16070
        else:
16071
          iprot.skip(ftype)
16072
      else:
16073
        iprot.skip(ftype)
16074
      iprot.readFieldEnd()
16075
    iprot.readStructEnd()
16076
 
16077
  def write(self, oprot):
16078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16080
      return
16081
    oprot.writeStructBegin('addBannerUri_args')
16082
    if self.bannerUriMappings is not None:
16083
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16084
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
12567 amit.gupta 16085
      for iter247 in self.bannerUriMappings:
16086
        iter247.write(oprot)
8579 kshitij.so 16087
      oprot.writeListEnd()
16088
      oprot.writeFieldEnd()
16089
    oprot.writeFieldStop()
16090
    oprot.writeStructEnd()
16091
 
16092
  def validate(self):
16093
    return
16094
 
16095
 
16096
  def __repr__(self):
16097
    L = ['%s=%r' % (key, value)
16098
      for key, value in self.__dict__.iteritems()]
16099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16100
 
16101
  def __eq__(self, other):
16102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16103
 
16104
  def __ne__(self, other):
16105
    return not (self == other)
16106
 
16107
class addBannerUri_result:
16108
 
16109
  thrift_spec = (
16110
  )
16111
 
16112
  def read(self, iprot):
16113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16115
      return
16116
    iprot.readStructBegin()
16117
    while True:
16118
      (fname, ftype, fid) = iprot.readFieldBegin()
16119
      if ftype == TType.STOP:
16120
        break
16121
      else:
16122
        iprot.skip(ftype)
16123
      iprot.readFieldEnd()
16124
    iprot.readStructEnd()
16125
 
16126
  def write(self, oprot):
16127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16129
      return
16130
    oprot.writeStructBegin('addBannerUri_result')
16131
    oprot.writeFieldStop()
16132
    oprot.writeStructEnd()
16133
 
16134
  def validate(self):
16135
    return
16136
 
16137
 
16138
  def __repr__(self):
16139
    L = ['%s=%r' % (key, value)
16140
      for key, value in self.__dict__.iteritems()]
16141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16142
 
16143
  def __eq__(self, other):
16144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16145
 
16146
  def __ne__(self, other):
16147
    return not (self == other)
16148
 
16149
class getUriMapping_args:
16150
  """
16151
  Attributes:
16152
   - bannerName
9155 kshitij.so 16153
   - bannerType
8579 kshitij.so 16154
  """
16155
 
16156
  thrift_spec = (
16157
    None, # 0
16158
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16159
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16160
  )
16161
 
9155 kshitij.so 16162
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16163
    self.bannerName = bannerName
9155 kshitij.so 16164
    self.bannerType = bannerType
8579 kshitij.so 16165
 
16166
  def read(self, iprot):
16167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16169
      return
16170
    iprot.readStructBegin()
16171
    while True:
16172
      (fname, ftype, fid) = iprot.readFieldBegin()
16173
      if ftype == TType.STOP:
16174
        break
16175
      if fid == 1:
16176
        if ftype == TType.STRING:
16177
          self.bannerName = iprot.readString();
16178
        else:
16179
          iprot.skip(ftype)
9155 kshitij.so 16180
      elif fid == 2:
16181
        if ftype == TType.I32:
16182
          self.bannerType = iprot.readI32();
16183
        else:
16184
          iprot.skip(ftype)
8579 kshitij.so 16185
      else:
16186
        iprot.skip(ftype)
16187
      iprot.readFieldEnd()
16188
    iprot.readStructEnd()
16189
 
16190
  def write(self, oprot):
16191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16193
      return
16194
    oprot.writeStructBegin('getUriMapping_args')
16195
    if self.bannerName is not None:
16196
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16197
      oprot.writeString(self.bannerName)
16198
      oprot.writeFieldEnd()
9155 kshitij.so 16199
    if self.bannerType is not None:
16200
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16201
      oprot.writeI32(self.bannerType)
16202
      oprot.writeFieldEnd()
8579 kshitij.so 16203
    oprot.writeFieldStop()
16204
    oprot.writeStructEnd()
16205
 
16206
  def validate(self):
16207
    return
16208
 
16209
 
16210
  def __repr__(self):
16211
    L = ['%s=%r' % (key, value)
16212
      for key, value in self.__dict__.iteritems()]
16213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16214
 
16215
  def __eq__(self, other):
16216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16217
 
16218
  def __ne__(self, other):
16219
    return not (self == other)
16220
 
16221
class getUriMapping_result:
16222
  """
16223
  Attributes:
16224
   - success
16225
  """
16226
 
16227
  thrift_spec = (
16228
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16229
  )
16230
 
16231
  def __init__(self, success=None,):
16232
    self.success = success
16233
 
16234
  def read(self, iprot):
16235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16237
      return
16238
    iprot.readStructBegin()
16239
    while True:
16240
      (fname, ftype, fid) = iprot.readFieldBegin()
16241
      if ftype == TType.STOP:
16242
        break
16243
      if fid == 0:
16244
        if ftype == TType.LIST:
16245
          self.success = []
12567 amit.gupta 16246
          (_etype251, _size248) = iprot.readListBegin()
16247
          for _i252 in xrange(_size248):
16248
            _elem253 = BannerUriMapping()
16249
            _elem253.read(iprot)
16250
            self.success.append(_elem253)
8579 kshitij.so 16251
          iprot.readListEnd()
16252
        else:
16253
          iprot.skip(ftype)
16254
      else:
16255
        iprot.skip(ftype)
16256
      iprot.readFieldEnd()
16257
    iprot.readStructEnd()
16258
 
16259
  def write(self, oprot):
16260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16262
      return
16263
    oprot.writeStructBegin('getUriMapping_result')
16264
    if self.success is not None:
16265
      oprot.writeFieldBegin('success', TType.LIST, 0)
16266
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16267
      for iter254 in self.success:
16268
        iter254.write(oprot)
8579 kshitij.so 16269
      oprot.writeListEnd()
16270
      oprot.writeFieldEnd()
16271
    oprot.writeFieldStop()
16272
    oprot.writeStructEnd()
16273
 
16274
  def validate(self):
16275
    return
16276
 
16277
 
16278
  def __repr__(self):
16279
    L = ['%s=%r' % (key, value)
16280
      for key, value in self.__dict__.iteritems()]
16281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16282
 
16283
  def __eq__(self, other):
16284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16285
 
16286
  def __ne__(self, other):
16287
    return not (self == other)
16288
 
16289
class addCampaign_args:
16290
  """
16291
  Attributes:
16292
   - campaign
16293
  """
16294
 
16295
  thrift_spec = (
16296
    None, # 0
16297
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16298
  )
16299
 
16300
  def __init__(self, campaign=None,):
16301
    self.campaign = campaign
16302
 
16303
  def read(self, iprot):
16304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16306
      return
16307
    iprot.readStructBegin()
16308
    while True:
16309
      (fname, ftype, fid) = iprot.readFieldBegin()
16310
      if ftype == TType.STOP:
16311
        break
16312
      if fid == 1:
16313
        if ftype == TType.STRUCT:
16314
          self.campaign = Campaign()
16315
          self.campaign.read(iprot)
16316
        else:
16317
          iprot.skip(ftype)
16318
      else:
16319
        iprot.skip(ftype)
16320
      iprot.readFieldEnd()
16321
    iprot.readStructEnd()
16322
 
16323
  def write(self, oprot):
16324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16326
      return
16327
    oprot.writeStructBegin('addCampaign_args')
16328
    if self.campaign is not None:
16329
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16330
      self.campaign.write(oprot)
16331
      oprot.writeFieldEnd()
16332
    oprot.writeFieldStop()
16333
    oprot.writeStructEnd()
16334
 
16335
  def validate(self):
16336
    return
16337
 
16338
 
16339
  def __repr__(self):
16340
    L = ['%s=%r' % (key, value)
16341
      for key, value in self.__dict__.iteritems()]
16342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16343
 
16344
  def __eq__(self, other):
16345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16346
 
16347
  def __ne__(self, other):
16348
    return not (self == other)
16349
 
16350
class addCampaign_result:
16351
 
16352
  thrift_spec = (
16353
  )
16354
 
16355
  def read(self, iprot):
16356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16358
      return
16359
    iprot.readStructBegin()
16360
    while True:
16361
      (fname, ftype, fid) = iprot.readFieldBegin()
16362
      if ftype == TType.STOP:
16363
        break
16364
      else:
16365
        iprot.skip(ftype)
16366
      iprot.readFieldEnd()
16367
    iprot.readStructEnd()
16368
 
16369
  def write(self, oprot):
16370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16372
      return
16373
    oprot.writeStructBegin('addCampaign_result')
16374
    oprot.writeFieldStop()
16375
    oprot.writeStructEnd()
16376
 
16377
  def validate(self):
16378
    return
16379
 
16380
 
16381
  def __repr__(self):
16382
    L = ['%s=%r' % (key, value)
16383
      for key, value in self.__dict__.iteritems()]
16384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16385
 
16386
  def __eq__(self, other):
16387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16388
 
16389
  def __ne__(self, other):
16390
    return not (self == other)
16391
 
16392
class getCampaigns_args:
16393
  """
16394
  Attributes:
16395
   - campaignName
16396
  """
16397
 
16398
  thrift_spec = (
16399
    None, # 0
16400
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16401
  )
16402
 
16403
  def __init__(self, campaignName=None,):
16404
    self.campaignName = campaignName
16405
 
16406
  def read(self, iprot):
16407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16409
      return
16410
    iprot.readStructBegin()
16411
    while True:
16412
      (fname, ftype, fid) = iprot.readFieldBegin()
16413
      if ftype == TType.STOP:
16414
        break
16415
      if fid == 1:
16416
        if ftype == TType.STRING:
16417
          self.campaignName = iprot.readString();
16418
        else:
16419
          iprot.skip(ftype)
16420
      else:
16421
        iprot.skip(ftype)
16422
      iprot.readFieldEnd()
16423
    iprot.readStructEnd()
16424
 
16425
  def write(self, oprot):
16426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16428
      return
16429
    oprot.writeStructBegin('getCampaigns_args')
16430
    if self.campaignName is not None:
16431
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16432
      oprot.writeString(self.campaignName)
16433
      oprot.writeFieldEnd()
16434
    oprot.writeFieldStop()
16435
    oprot.writeStructEnd()
16436
 
16437
  def validate(self):
16438
    return
16439
 
16440
 
16441
  def __repr__(self):
16442
    L = ['%s=%r' % (key, value)
16443
      for key, value in self.__dict__.iteritems()]
16444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16445
 
16446
  def __eq__(self, other):
16447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16448
 
16449
  def __ne__(self, other):
16450
    return not (self == other)
16451
 
16452
class getCampaigns_result:
16453
  """
16454
  Attributes:
16455
   - success
16456
  """
16457
 
16458
  thrift_spec = (
16459
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16460
  )
16461
 
16462
  def __init__(self, success=None,):
16463
    self.success = success
16464
 
16465
  def read(self, iprot):
16466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16468
      return
16469
    iprot.readStructBegin()
16470
    while True:
16471
      (fname, ftype, fid) = iprot.readFieldBegin()
16472
      if ftype == TType.STOP:
16473
        break
16474
      if fid == 0:
16475
        if ftype == TType.LIST:
16476
          self.success = []
12567 amit.gupta 16477
          (_etype258, _size255) = iprot.readListBegin()
16478
          for _i259 in xrange(_size255):
16479
            _elem260 = Campaign()
16480
            _elem260.read(iprot)
16481
            self.success.append(_elem260)
8579 kshitij.so 16482
          iprot.readListEnd()
16483
        else:
16484
          iprot.skip(ftype)
16485
      else:
16486
        iprot.skip(ftype)
16487
      iprot.readFieldEnd()
16488
    iprot.readStructEnd()
16489
 
16490
  def write(self, oprot):
16491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16493
      return
16494
    oprot.writeStructBegin('getCampaigns_result')
16495
    if self.success is not None:
16496
      oprot.writeFieldBegin('success', TType.LIST, 0)
16497
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16498
      for iter261 in self.success:
16499
        iter261.write(oprot)
8579 kshitij.so 16500
      oprot.writeListEnd()
16501
      oprot.writeFieldEnd()
16502
    oprot.writeFieldStop()
16503
    oprot.writeStructEnd()
16504
 
16505
  def validate(self):
16506
    return
16507
 
16508
 
16509
  def __repr__(self):
16510
    L = ['%s=%r' % (key, value)
16511
      for key, value in self.__dict__.iteritems()]
16512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16513
 
16514
  def __eq__(self, other):
16515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16516
 
16517
  def __ne__(self, other):
16518
    return not (self == other)
16519
 
16520
class deleteCampaign_args:
16521
  """
16522
  Attributes:
16523
   - campaignId
16524
  """
16525
 
16526
  thrift_spec = (
16527
    None, # 0
16528
    (1, TType.I64, 'campaignId', None, None, ), # 1
16529
  )
16530
 
16531
  def __init__(self, campaignId=None,):
16532
    self.campaignId = campaignId
16533
 
16534
  def read(self, iprot):
16535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16537
      return
16538
    iprot.readStructBegin()
16539
    while True:
16540
      (fname, ftype, fid) = iprot.readFieldBegin()
16541
      if ftype == TType.STOP:
16542
        break
16543
      if fid == 1:
16544
        if ftype == TType.I64:
16545
          self.campaignId = iprot.readI64();
16546
        else:
16547
          iprot.skip(ftype)
16548
      else:
16549
        iprot.skip(ftype)
16550
      iprot.readFieldEnd()
16551
    iprot.readStructEnd()
16552
 
16553
  def write(self, oprot):
16554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16556
      return
16557
    oprot.writeStructBegin('deleteCampaign_args')
16558
    if self.campaignId is not None:
16559
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16560
      oprot.writeI64(self.campaignId)
16561
      oprot.writeFieldEnd()
16562
    oprot.writeFieldStop()
16563
    oprot.writeStructEnd()
16564
 
16565
  def validate(self):
16566
    return
16567
 
16568
 
16569
  def __repr__(self):
16570
    L = ['%s=%r' % (key, value)
16571
      for key, value in self.__dict__.iteritems()]
16572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16573
 
16574
  def __eq__(self, other):
16575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16576
 
16577
  def __ne__(self, other):
16578
    return not (self == other)
16579
 
16580
class deleteCampaign_result:
16581
 
16582
  thrift_spec = (
16583
  )
16584
 
16585
  def read(self, iprot):
16586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16588
      return
16589
    iprot.readStructBegin()
16590
    while True:
16591
      (fname, ftype, fid) = iprot.readFieldBegin()
16592
      if ftype == TType.STOP:
16593
        break
16594
      else:
16595
        iprot.skip(ftype)
16596
      iprot.readFieldEnd()
16597
    iprot.readStructEnd()
16598
 
16599
  def write(self, oprot):
16600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16602
      return
16603
    oprot.writeStructBegin('deleteCampaign_result')
16604
    oprot.writeFieldStop()
16605
    oprot.writeStructEnd()
16606
 
16607
  def validate(self):
16608
    return
16609
 
16610
 
16611
  def __repr__(self):
16612
    L = ['%s=%r' % (key, value)
16613
      for key, value in self.__dict__.iteritems()]
16614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16615
 
16616
  def __eq__(self, other):
16617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16618
 
16619
  def __ne__(self, other):
16620
    return not (self == other)
16621
 
16622
class getAllCampaigns_args:
16623
 
16624
  thrift_spec = (
16625
  )
16626
 
16627
  def read(self, iprot):
16628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16630
      return
16631
    iprot.readStructBegin()
16632
    while True:
16633
      (fname, ftype, fid) = iprot.readFieldBegin()
16634
      if ftype == TType.STOP:
16635
        break
16636
      else:
16637
        iprot.skip(ftype)
16638
      iprot.readFieldEnd()
16639
    iprot.readStructEnd()
16640
 
16641
  def write(self, oprot):
16642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16644
      return
16645
    oprot.writeStructBegin('getAllCampaigns_args')
16646
    oprot.writeFieldStop()
16647
    oprot.writeStructEnd()
16648
 
16649
  def validate(self):
16650
    return
16651
 
16652
 
16653
  def __repr__(self):
16654
    L = ['%s=%r' % (key, value)
16655
      for key, value in self.__dict__.iteritems()]
16656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16657
 
16658
  def __eq__(self, other):
16659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16660
 
16661
  def __ne__(self, other):
16662
    return not (self == other)
16663
 
16664
class getAllCampaigns_result:
16665
  """
16666
  Attributes:
16667
   - success
16668
  """
16669
 
16670
  thrift_spec = (
16671
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16672
  )
16673
 
16674
  def __init__(self, success=None,):
16675
    self.success = success
16676
 
16677
  def read(self, iprot):
16678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16680
      return
16681
    iprot.readStructBegin()
16682
    while True:
16683
      (fname, ftype, fid) = iprot.readFieldBegin()
16684
      if ftype == TType.STOP:
16685
        break
16686
      if fid == 0:
16687
        if ftype == TType.LIST:
16688
          self.success = []
12567 amit.gupta 16689
          (_etype265, _size262) = iprot.readListBegin()
16690
          for _i266 in xrange(_size262):
16691
            _elem267 = iprot.readString();
16692
            self.success.append(_elem267)
8579 kshitij.so 16693
          iprot.readListEnd()
16694
        else:
16695
          iprot.skip(ftype)
16696
      else:
16697
        iprot.skip(ftype)
16698
      iprot.readFieldEnd()
16699
    iprot.readStructEnd()
16700
 
16701
  def write(self, oprot):
16702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16704
      return
16705
    oprot.writeStructBegin('getAllCampaigns_result')
16706
    if self.success is not None:
16707
      oprot.writeFieldBegin('success', TType.LIST, 0)
16708
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 16709
      for iter268 in self.success:
16710
        oprot.writeString(iter268)
8579 kshitij.so 16711
      oprot.writeListEnd()
16712
      oprot.writeFieldEnd()
16713
    oprot.writeFieldStop()
16714
    oprot.writeStructEnd()
16715
 
16716
  def validate(self):
16717
    return
16718
 
16719
 
16720
  def __repr__(self):
16721
    L = ['%s=%r' % (key, value)
16722
      for key, value in self.__dict__.iteritems()]
16723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16724
 
16725
  def __eq__(self, other):
16726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16727
 
16728
  def __ne__(self, other):
16729
    return not (self == other)
16730
 
9155 kshitij.so 16731
class getActiveBannersForMobileSite_args:
16732
 
16733
  thrift_spec = (
16734
  )
16735
 
16736
  def read(self, iprot):
16737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16739
      return
16740
    iprot.readStructBegin()
16741
    while True:
16742
      (fname, ftype, fid) = iprot.readFieldBegin()
16743
      if ftype == TType.STOP:
16744
        break
16745
      else:
16746
        iprot.skip(ftype)
16747
      iprot.readFieldEnd()
16748
    iprot.readStructEnd()
16749
 
16750
  def write(self, oprot):
16751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16753
      return
16754
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
16755
    oprot.writeFieldStop()
16756
    oprot.writeStructEnd()
16757
 
16758
  def validate(self):
16759
    return
16760
 
16761
 
16762
  def __repr__(self):
16763
    L = ['%s=%r' % (key, value)
16764
      for key, value in self.__dict__.iteritems()]
16765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16766
 
16767
  def __eq__(self, other):
16768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16769
 
16770
  def __ne__(self, other):
16771
    return not (self == other)
16772
 
16773
class getActiveBannersForMobileSite_result:
16774
  """
16775
  Attributes:
16776
   - success
16777
  """
16778
 
16779
  thrift_spec = (
16780
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
16781
  )
16782
 
16783
  def __init__(self, success=None,):
16784
    self.success = success
16785
 
16786
  def read(self, iprot):
16787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16789
      return
16790
    iprot.readStructBegin()
16791
    while True:
16792
      (fname, ftype, fid) = iprot.readFieldBegin()
16793
      if ftype == TType.STOP:
16794
        break
16795
      if fid == 0:
16796
        if ftype == TType.MAP:
16797
          self.success = {}
12567 amit.gupta 16798
          (_ktype270, _vtype271, _size269 ) = iprot.readMapBegin() 
16799
          for _i273 in xrange(_size269):
16800
            _key274 = iprot.readString();
16801
            _val275 = []
16802
            (_etype279, _size276) = iprot.readListBegin()
16803
            for _i280 in xrange(_size276):
16804
              _elem281 = Banner()
16805
              _elem281.read(iprot)
16806
              _val275.append(_elem281)
9155 kshitij.so 16807
            iprot.readListEnd()
12567 amit.gupta 16808
            self.success[_key274] = _val275
9155 kshitij.so 16809
          iprot.readMapEnd()
16810
        else:
16811
          iprot.skip(ftype)
16812
      else:
16813
        iprot.skip(ftype)
16814
      iprot.readFieldEnd()
16815
    iprot.readStructEnd()
16816
 
16817
  def write(self, oprot):
16818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16820
      return
16821
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
16822
    if self.success is not None:
16823
      oprot.writeFieldBegin('success', TType.MAP, 0)
16824
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 16825
      for kiter282,viter283 in self.success.items():
16826
        oprot.writeString(kiter282)
16827
        oprot.writeListBegin(TType.STRUCT, len(viter283))
16828
        for iter284 in viter283:
16829
          iter284.write(oprot)
9155 kshitij.so 16830
        oprot.writeListEnd()
16831
      oprot.writeMapEnd()
16832
      oprot.writeFieldEnd()
16833
    oprot.writeFieldStop()
16834
    oprot.writeStructEnd()
16835
 
16836
  def validate(self):
16837
    return
16838
 
16839
 
16840
  def __repr__(self):
16841
    L = ['%s=%r' % (key, value)
16842
      for key, value in self.__dict__.iteritems()]
16843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16844
 
16845
  def __eq__(self, other):
16846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16847
 
16848
  def __ne__(self, other):
16849
    return not (self == other)
16850
 
5944 mandeep.dh 16851
class deleteSimilarItem_args:
16852
  """
16853
  Attributes:
16854
   - itemId
16855
   - catalogItemId
16856
  """
16857
 
16858
  thrift_spec = (
16859
    None, # 0
16860
    (1, TType.I64, 'itemId', None, None, ), # 1
16861
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
16862
  )
16863
 
16864
  def __init__(self, itemId=None, catalogItemId=None,):
16865
    self.itemId = itemId
16866
    self.catalogItemId = catalogItemId
16867
 
16868
  def read(self, iprot):
16869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16871
      return
16872
    iprot.readStructBegin()
16873
    while True:
16874
      (fname, ftype, fid) = iprot.readFieldBegin()
16875
      if ftype == TType.STOP:
16876
        break
16877
      if fid == 1:
16878
        if ftype == TType.I64:
16879
          self.itemId = iprot.readI64();
16880
        else:
16881
          iprot.skip(ftype)
16882
      elif fid == 2:
16883
        if ftype == TType.I64:
16884
          self.catalogItemId = iprot.readI64();
16885
        else:
16886
          iprot.skip(ftype)
16887
      else:
16888
        iprot.skip(ftype)
16889
      iprot.readFieldEnd()
16890
    iprot.readStructEnd()
16891
 
16892
  def write(self, oprot):
16893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16895
      return
16896
    oprot.writeStructBegin('deleteSimilarItem_args')
16897
    if self.itemId is not None:
16898
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16899
      oprot.writeI64(self.itemId)
16900
      oprot.writeFieldEnd()
16901
    if self.catalogItemId is not None:
16902
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
16903
      oprot.writeI64(self.catalogItemId)
16904
      oprot.writeFieldEnd()
16905
    oprot.writeFieldStop()
16906
    oprot.writeStructEnd()
16907
 
16908
  def validate(self):
16909
    return
16910
 
16911
 
16912
  def __repr__(self):
16913
    L = ['%s=%r' % (key, value)
16914
      for key, value in self.__dict__.iteritems()]
16915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16916
 
16917
  def __eq__(self, other):
16918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16919
 
16920
  def __ne__(self, other):
16921
    return not (self == other)
16922
 
16923
class deleteSimilarItem_result:
16924
  """
16925
  Attributes:
16926
   - success
16927
   - cex
16928
  """
16929
 
16930
  thrift_spec = (
16931
    (0, TType.BOOL, 'success', None, None, ), # 0
16932
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16933
  )
16934
 
16935
  def __init__(self, success=None, cex=None,):
16936
    self.success = success
16937
    self.cex = cex
16938
 
16939
  def read(self, iprot):
16940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16942
      return
16943
    iprot.readStructBegin()
16944
    while True:
16945
      (fname, ftype, fid) = iprot.readFieldBegin()
16946
      if ftype == TType.STOP:
16947
        break
16948
      if fid == 0:
16949
        if ftype == TType.BOOL:
16950
          self.success = iprot.readBool();
16951
        else:
16952
          iprot.skip(ftype)
16953
      elif fid == 1:
16954
        if ftype == TType.STRUCT:
16955
          self.cex = CatalogServiceException()
16956
          self.cex.read(iprot)
16957
        else:
16958
          iprot.skip(ftype)
16959
      else:
16960
        iprot.skip(ftype)
16961
      iprot.readFieldEnd()
16962
    iprot.readStructEnd()
16963
 
16964
  def write(self, oprot):
16965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16967
      return
16968
    oprot.writeStructBegin('deleteSimilarItem_result')
16969
    if self.success is not None:
16970
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16971
      oprot.writeBool(self.success)
16972
      oprot.writeFieldEnd()
16973
    if self.cex is not None:
16974
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16975
      self.cex.write(oprot)
16976
      oprot.writeFieldEnd()
16977
    oprot.writeFieldStop()
16978
    oprot.writeStructEnd()
16979
 
16980
  def validate(self):
16981
    return
16982
 
16983
 
16984
  def __repr__(self):
16985
    L = ['%s=%r' % (key, value)
16986
      for key, value in self.__dict__.iteritems()]
16987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16988
 
16989
  def __eq__(self, other):
16990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16991
 
16992
  def __ne__(self, other):
16993
    return not (self == other)
16994
 
16995
class checkSimilarItem_args:
16996
  """
16997
  Attributes:
16998
   - brand
16999
   - modelNumber
17000
   - modelName
17001
   - color
17002
  """
17003
 
17004
  thrift_spec = (
17005
    None, # 0
17006
    (1, TType.STRING, 'brand', None, None, ), # 1
17007
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
17008
    (3, TType.STRING, 'modelName', None, None, ), # 3
17009
    (4, TType.STRING, 'color', None, None, ), # 4
17010
  )
17011
 
17012
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
17013
    self.brand = brand
17014
    self.modelNumber = modelNumber
17015
    self.modelName = modelName
17016
    self.color = color
17017
 
17018
  def read(self, iprot):
17019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17021
      return
17022
    iprot.readStructBegin()
17023
    while True:
17024
      (fname, ftype, fid) = iprot.readFieldBegin()
17025
      if ftype == TType.STOP:
17026
        break
17027
      if fid == 1:
17028
        if ftype == TType.STRING:
17029
          self.brand = iprot.readString();
17030
        else:
17031
          iprot.skip(ftype)
17032
      elif fid == 2:
17033
        if ftype == TType.STRING:
17034
          self.modelNumber = iprot.readString();
17035
        else:
17036
          iprot.skip(ftype)
17037
      elif fid == 3:
17038
        if ftype == TType.STRING:
17039
          self.modelName = iprot.readString();
17040
        else:
17041
          iprot.skip(ftype)
17042
      elif fid == 4:
17043
        if ftype == TType.STRING:
17044
          self.color = iprot.readString();
17045
        else:
17046
          iprot.skip(ftype)
17047
      else:
17048
        iprot.skip(ftype)
17049
      iprot.readFieldEnd()
17050
    iprot.readStructEnd()
17051
 
17052
  def write(self, oprot):
17053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17055
      return
17056
    oprot.writeStructBegin('checkSimilarItem_args')
17057
    if self.brand is not None:
17058
      oprot.writeFieldBegin('brand', TType.STRING, 1)
17059
      oprot.writeString(self.brand)
17060
      oprot.writeFieldEnd()
17061
    if self.modelNumber is not None:
17062
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
17063
      oprot.writeString(self.modelNumber)
17064
      oprot.writeFieldEnd()
17065
    if self.modelName is not None:
17066
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
17067
      oprot.writeString(self.modelName)
17068
      oprot.writeFieldEnd()
17069
    if self.color is not None:
17070
      oprot.writeFieldBegin('color', TType.STRING, 4)
17071
      oprot.writeString(self.color)
17072
      oprot.writeFieldEnd()
17073
    oprot.writeFieldStop()
17074
    oprot.writeStructEnd()
17075
 
17076
  def validate(self):
17077
    return
17078
 
17079
 
17080
  def __repr__(self):
17081
    L = ['%s=%r' % (key, value)
17082
      for key, value in self.__dict__.iteritems()]
17083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17084
 
17085
  def __eq__(self, other):
17086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17087
 
17088
  def __ne__(self, other):
17089
    return not (self == other)
17090
 
17091
class checkSimilarItem_result:
17092
  """
17093
  Attributes:
17094
   - success
17095
  """
17096
 
17097
  thrift_spec = (
17098
    (0, TType.I64, 'success', None, None, ), # 0
17099
  )
17100
 
17101
  def __init__(self, success=None,):
17102
    self.success = success
17103
 
17104
  def read(self, iprot):
17105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17107
      return
17108
    iprot.readStructBegin()
17109
    while True:
17110
      (fname, ftype, fid) = iprot.readFieldBegin()
17111
      if ftype == TType.STOP:
17112
        break
17113
      if fid == 0:
17114
        if ftype == TType.I64:
17115
          self.success = iprot.readI64();
17116
        else:
17117
          iprot.skip(ftype)
17118
      else:
17119
        iprot.skip(ftype)
17120
      iprot.readFieldEnd()
17121
    iprot.readStructEnd()
17122
 
17123
  def write(self, oprot):
17124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17126
      return
17127
    oprot.writeStructBegin('checkSimilarItem_result')
17128
    if self.success is not None:
17129
      oprot.writeFieldBegin('success', TType.I64, 0)
17130
      oprot.writeI64(self.success)
17131
      oprot.writeFieldEnd()
17132
    oprot.writeFieldStop()
17133
    oprot.writeStructEnd()
17134
 
17135
  def validate(self):
17136
    return
17137
 
17138
 
17139
  def __repr__(self):
17140
    L = ['%s=%r' % (key, value)
17141
      for key, value in self.__dict__.iteritems()]
17142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17143
 
17144
  def __eq__(self, other):
17145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17146
 
17147
  def __ne__(self, other):
17148
    return not (self == other)
17149
 
17150
class validateRiskyStatus_args:
17151
  """
17152
  Attributes:
17153
   - itemId
17154
  """
17155
 
17156
  thrift_spec = (
17157
    None, # 0
17158
    (1, TType.I64, 'itemId', None, None, ), # 1
17159
  )
17160
 
17161
  def __init__(self, itemId=None,):
17162
    self.itemId = itemId
17163
 
17164
  def read(self, iprot):
17165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17167
      return
17168
    iprot.readStructBegin()
17169
    while True:
17170
      (fname, ftype, fid) = iprot.readFieldBegin()
17171
      if ftype == TType.STOP:
17172
        break
17173
      if fid == 1:
17174
        if ftype == TType.I64:
17175
          self.itemId = iprot.readI64();
17176
        else:
17177
          iprot.skip(ftype)
17178
      else:
17179
        iprot.skip(ftype)
17180
      iprot.readFieldEnd()
17181
    iprot.readStructEnd()
17182
 
17183
  def write(self, oprot):
17184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17186
      return
17187
    oprot.writeStructBegin('validateRiskyStatus_args')
17188
    if self.itemId is not None:
17189
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17190
      oprot.writeI64(self.itemId)
17191
      oprot.writeFieldEnd()
17192
    oprot.writeFieldStop()
17193
    oprot.writeStructEnd()
17194
 
17195
  def validate(self):
17196
    return
17197
 
17198
 
17199
  def __repr__(self):
17200
    L = ['%s=%r' % (key, value)
17201
      for key, value in self.__dict__.iteritems()]
17202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17203
 
17204
  def __eq__(self, other):
17205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17206
 
17207
  def __ne__(self, other):
17208
    return not (self == other)
17209
 
17210
class validateRiskyStatus_result:
17211
 
17212
  thrift_spec = (
17213
  )
17214
 
17215
  def read(self, iprot):
17216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17218
      return
17219
    iprot.readStructBegin()
17220
    while True:
17221
      (fname, ftype, fid) = iprot.readFieldBegin()
17222
      if ftype == TType.STOP:
17223
        break
17224
      else:
17225
        iprot.skip(ftype)
17226
      iprot.readFieldEnd()
17227
    iprot.readStructEnd()
17228
 
17229
  def write(self, oprot):
17230
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17231
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17232
      return
17233
    oprot.writeStructBegin('validateRiskyStatus_result')
17234
    oprot.writeFieldStop()
17235
    oprot.writeStructEnd()
17236
 
17237
  def validate(self):
17238
    return
17239
 
17240
 
17241
  def __repr__(self):
17242
    L = ['%s=%r' % (key, value)
17243
      for key, value in self.__dict__.iteritems()]
17244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17245
 
17246
  def __eq__(self, other):
17247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17248
 
17249
  def __ne__(self, other):
17250
    return not (self == other)
17251
 
17252
class changeItemRiskyFlag_args:
17253
  """
17254
  Attributes:
17255
   - itemId
17256
   - risky
17257
  """
17258
 
17259
  thrift_spec = (
17260
    None, # 0
17261
    (1, TType.I64, 'itemId', None, None, ), # 1
17262
    (2, TType.BOOL, 'risky', None, None, ), # 2
17263
  )
17264
 
17265
  def __init__(self, itemId=None, risky=None,):
17266
    self.itemId = itemId
17267
    self.risky = risky
17268
 
17269
  def read(self, iprot):
17270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17272
      return
17273
    iprot.readStructBegin()
17274
    while True:
17275
      (fname, ftype, fid) = iprot.readFieldBegin()
17276
      if ftype == TType.STOP:
17277
        break
17278
      if fid == 1:
17279
        if ftype == TType.I64:
17280
          self.itemId = iprot.readI64();
17281
        else:
17282
          iprot.skip(ftype)
17283
      elif fid == 2:
17284
        if ftype == TType.BOOL:
17285
          self.risky = iprot.readBool();
17286
        else:
17287
          iprot.skip(ftype)
17288
      else:
17289
        iprot.skip(ftype)
17290
      iprot.readFieldEnd()
17291
    iprot.readStructEnd()
17292
 
17293
  def write(self, oprot):
17294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17296
      return
17297
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17298
    if self.itemId is not None:
17299
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17300
      oprot.writeI64(self.itemId)
17301
      oprot.writeFieldEnd()
17302
    if self.risky is not None:
17303
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17304
      oprot.writeBool(self.risky)
17305
      oprot.writeFieldEnd()
17306
    oprot.writeFieldStop()
17307
    oprot.writeStructEnd()
17308
 
17309
  def validate(self):
17310
    return
17311
 
17312
 
17313
  def __repr__(self):
17314
    L = ['%s=%r' % (key, value)
17315
      for key, value in self.__dict__.iteritems()]
17316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17317
 
17318
  def __eq__(self, other):
17319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17320
 
17321
  def __ne__(self, other):
17322
    return not (self == other)
17323
 
17324
class changeItemRiskyFlag_result:
17325
 
17326
  thrift_spec = (
17327
  )
17328
 
17329
  def read(self, iprot):
17330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17332
      return
17333
    iprot.readStructBegin()
17334
    while True:
17335
      (fname, ftype, fid) = iprot.readFieldBegin()
17336
      if ftype == TType.STOP:
17337
        break
17338
      else:
17339
        iprot.skip(ftype)
17340
      iprot.readFieldEnd()
17341
    iprot.readStructEnd()
17342
 
17343
  def write(self, oprot):
17344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17346
      return
17347
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17348
    oprot.writeFieldStop()
17349
    oprot.writeStructEnd()
17350
 
17351
  def validate(self):
17352
    return
17353
 
17354
 
17355
  def __repr__(self):
17356
    L = ['%s=%r' % (key, value)
17357
      for key, value in self.__dict__.iteritems()]
17358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17359
 
17360
  def __eq__(self, other):
17361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17362
 
17363
  def __ne__(self, other):
17364
    return not (self == other)
17365
 
17366
class getItemsByRiskyFlag_args:
17367
 
17368
  thrift_spec = (
17369
  )
17370
 
17371
  def read(self, iprot):
17372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17374
      return
17375
    iprot.readStructBegin()
17376
    while True:
17377
      (fname, ftype, fid) = iprot.readFieldBegin()
17378
      if ftype == TType.STOP:
17379
        break
17380
      else:
17381
        iprot.skip(ftype)
17382
      iprot.readFieldEnd()
17383
    iprot.readStructEnd()
17384
 
17385
  def write(self, oprot):
17386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17388
      return
17389
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17390
    oprot.writeFieldStop()
17391
    oprot.writeStructEnd()
17392
 
17393
  def validate(self):
17394
    return
17395
 
17396
 
17397
  def __repr__(self):
17398
    L = ['%s=%r' % (key, value)
17399
      for key, value in self.__dict__.iteritems()]
17400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17401
 
17402
  def __eq__(self, other):
17403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17404
 
17405
  def __ne__(self, other):
17406
    return not (self == other)
17407
 
17408
class getItemsByRiskyFlag_result:
17409
  """
17410
  Attributes:
17411
   - success
17412
  """
17413
 
17414
  thrift_spec = (
17415
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17416
  )
17417
 
17418
  def __init__(self, success=None,):
17419
    self.success = success
17420
 
17421
  def read(self, iprot):
17422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17424
      return
17425
    iprot.readStructBegin()
17426
    while True:
17427
      (fname, ftype, fid) = iprot.readFieldBegin()
17428
      if ftype == TType.STOP:
17429
        break
17430
      if fid == 0:
17431
        if ftype == TType.LIST:
17432
          self.success = []
12567 amit.gupta 17433
          (_etype288, _size285) = iprot.readListBegin()
17434
          for _i289 in xrange(_size285):
17435
            _elem290 = Item()
17436
            _elem290.read(iprot)
17437
            self.success.append(_elem290)
5944 mandeep.dh 17438
          iprot.readListEnd()
17439
        else:
17440
          iprot.skip(ftype)
17441
      else:
17442
        iprot.skip(ftype)
17443
      iprot.readFieldEnd()
17444
    iprot.readStructEnd()
17445
 
17446
  def write(self, oprot):
17447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17449
      return
17450
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17451
    if self.success is not None:
17452
      oprot.writeFieldBegin('success', TType.LIST, 0)
17453
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17454
      for iter291 in self.success:
17455
        iter291.write(oprot)
5944 mandeep.dh 17456
      oprot.writeListEnd()
17457
      oprot.writeFieldEnd()
17458
    oprot.writeFieldStop()
17459
    oprot.writeStructEnd()
17460
 
17461
  def validate(self):
17462
    return
17463
 
17464
 
17465
  def __repr__(self):
17466
    L = ['%s=%r' % (key, value)
17467
      for key, value in self.__dict__.iteritems()]
17468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17469
 
17470
  def __eq__(self, other):
17471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17472
 
17473
  def __ne__(self, other):
17474
    return not (self == other)
17475
 
17476
class getItemsForMasterSheet_args:
17477
  """
17478
  Attributes:
17479
   - category
17480
   - brand
17481
  """
17482
 
17483
  thrift_spec = (
17484
    None, # 0
17485
    (1, TType.STRING, 'category', None, None, ), # 1
17486
    (2, TType.STRING, 'brand', None, None, ), # 2
17487
  )
17488
 
17489
  def __init__(self, category=None, brand=None,):
17490
    self.category = category
17491
    self.brand = brand
17492
 
17493
  def read(self, iprot):
17494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17496
      return
17497
    iprot.readStructBegin()
17498
    while True:
17499
      (fname, ftype, fid) = iprot.readFieldBegin()
17500
      if ftype == TType.STOP:
17501
        break
17502
      if fid == 1:
17503
        if ftype == TType.STRING:
17504
          self.category = iprot.readString();
17505
        else:
17506
          iprot.skip(ftype)
17507
      elif fid == 2:
17508
        if ftype == TType.STRING:
17509
          self.brand = iprot.readString();
17510
        else:
17511
          iprot.skip(ftype)
17512
      else:
17513
        iprot.skip(ftype)
17514
      iprot.readFieldEnd()
17515
    iprot.readStructEnd()
17516
 
17517
  def write(self, oprot):
17518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17520
      return
17521
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17522
    if self.category is not None:
17523
      oprot.writeFieldBegin('category', TType.STRING, 1)
17524
      oprot.writeString(self.category)
17525
      oprot.writeFieldEnd()
17526
    if self.brand is not None:
17527
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17528
      oprot.writeString(self.brand)
17529
      oprot.writeFieldEnd()
17530
    oprot.writeFieldStop()
17531
    oprot.writeStructEnd()
17532
 
17533
  def validate(self):
17534
    return
17535
 
17536
 
17537
  def __repr__(self):
17538
    L = ['%s=%r' % (key, value)
17539
      for key, value in self.__dict__.iteritems()]
17540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17541
 
17542
  def __eq__(self, other):
17543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17544
 
17545
  def __ne__(self, other):
17546
    return not (self == other)
17547
 
17548
class getItemsForMasterSheet_result:
17549
  """
17550
  Attributes:
17551
   - success
17552
  """
17553
 
17554
  thrift_spec = (
17555
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17556
  )
17557
 
17558
  def __init__(self, success=None,):
17559
    self.success = success
17560
 
17561
  def read(self, iprot):
17562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17564
      return
17565
    iprot.readStructBegin()
17566
    while True:
17567
      (fname, ftype, fid) = iprot.readFieldBegin()
17568
      if ftype == TType.STOP:
17569
        break
17570
      if fid == 0:
17571
        if ftype == TType.LIST:
17572
          self.success = []
12567 amit.gupta 17573
          (_etype295, _size292) = iprot.readListBegin()
17574
          for _i296 in xrange(_size292):
17575
            _elem297 = Item()
17576
            _elem297.read(iprot)
17577
            self.success.append(_elem297)
5944 mandeep.dh 17578
          iprot.readListEnd()
17579
        else:
17580
          iprot.skip(ftype)
17581
      else:
17582
        iprot.skip(ftype)
17583
      iprot.readFieldEnd()
17584
    iprot.readStructEnd()
17585
 
17586
  def write(self, oprot):
17587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17589
      return
17590
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17591
    if self.success is not None:
17592
      oprot.writeFieldBegin('success', TType.LIST, 0)
17593
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17594
      for iter298 in self.success:
17595
        iter298.write(oprot)
5944 mandeep.dh 17596
      oprot.writeListEnd()
17597
      oprot.writeFieldEnd()
17598
    oprot.writeFieldStop()
17599
    oprot.writeStructEnd()
17600
 
17601
  def validate(self):
17602
    return
17603
 
17604
 
17605
  def __repr__(self):
17606
    L = ['%s=%r' % (key, value)
17607
      for key, value in self.__dict__.iteritems()]
17608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17609
 
17610
  def __eq__(self, other):
17611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17612
 
17613
  def __ne__(self, other):
17614
    return not (self == other)
17615
 
17616
class getSimilarItemsCatalogIds_args:
17617
  """
17618
  Attributes:
17619
   - beginIndex
17620
   - totalItems
17621
   - itemId
17622
  """
17623
 
17624
  thrift_spec = (
17625
    None, # 0
17626
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17627
    (2, TType.I64, 'totalItems', None, None, ), # 2
17628
    (3, TType.I64, 'itemId', None, None, ), # 3
17629
  )
17630
 
17631
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17632
    self.beginIndex = beginIndex
17633
    self.totalItems = totalItems
17634
    self.itemId = itemId
17635
 
17636
  def read(self, iprot):
17637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17639
      return
17640
    iprot.readStructBegin()
17641
    while True:
17642
      (fname, ftype, fid) = iprot.readFieldBegin()
17643
      if ftype == TType.STOP:
17644
        break
17645
      if fid == 1:
17646
        if ftype == TType.I64:
17647
          self.beginIndex = iprot.readI64();
17648
        else:
17649
          iprot.skip(ftype)
17650
      elif fid == 2:
17651
        if ftype == TType.I64:
17652
          self.totalItems = iprot.readI64();
17653
        else:
17654
          iprot.skip(ftype)
17655
      elif fid == 3:
17656
        if ftype == TType.I64:
17657
          self.itemId = iprot.readI64();
17658
        else:
17659
          iprot.skip(ftype)
17660
      else:
17661
        iprot.skip(ftype)
17662
      iprot.readFieldEnd()
17663
    iprot.readStructEnd()
17664
 
17665
  def write(self, oprot):
17666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17668
      return
17669
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17670
    if self.beginIndex is not None:
17671
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17672
      oprot.writeI64(self.beginIndex)
17673
      oprot.writeFieldEnd()
17674
    if self.totalItems is not None:
17675
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17676
      oprot.writeI64(self.totalItems)
17677
      oprot.writeFieldEnd()
17678
    if self.itemId is not None:
17679
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17680
      oprot.writeI64(self.itemId)
17681
      oprot.writeFieldEnd()
17682
    oprot.writeFieldStop()
17683
    oprot.writeStructEnd()
17684
 
17685
  def validate(self):
17686
    return
17687
 
17688
 
17689
  def __repr__(self):
17690
    L = ['%s=%r' % (key, value)
17691
      for key, value in self.__dict__.iteritems()]
17692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17693
 
17694
  def __eq__(self, other):
17695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17696
 
17697
  def __ne__(self, other):
17698
    return not (self == other)
17699
 
17700
class getSimilarItemsCatalogIds_result:
17701
  """
17702
  Attributes:
17703
   - success
17704
  """
17705
 
17706
  thrift_spec = (
17707
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17708
  )
17709
 
17710
  def __init__(self, success=None,):
17711
    self.success = success
17712
 
17713
  def read(self, iprot):
17714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17716
      return
17717
    iprot.readStructBegin()
17718
    while True:
17719
      (fname, ftype, fid) = iprot.readFieldBegin()
17720
      if ftype == TType.STOP:
17721
        break
17722
      if fid == 0:
17723
        if ftype == TType.LIST:
17724
          self.success = []
12567 amit.gupta 17725
          (_etype302, _size299) = iprot.readListBegin()
17726
          for _i303 in xrange(_size299):
17727
            _elem304 = iprot.readI64();
17728
            self.success.append(_elem304)
5944 mandeep.dh 17729
          iprot.readListEnd()
17730
        else:
17731
          iprot.skip(ftype)
17732
      else:
17733
        iprot.skip(ftype)
17734
      iprot.readFieldEnd()
17735
    iprot.readStructEnd()
17736
 
17737
  def write(self, oprot):
17738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17740
      return
17741
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
17742
    if self.success is not None:
17743
      oprot.writeFieldBegin('success', TType.LIST, 0)
17744
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 17745
      for iter305 in self.success:
17746
        oprot.writeI64(iter305)
5944 mandeep.dh 17747
      oprot.writeListEnd()
17748
      oprot.writeFieldEnd()
17749
    oprot.writeFieldStop()
17750
    oprot.writeStructEnd()
17751
 
17752
  def validate(self):
17753
    return
17754
 
17755
 
17756
  def __repr__(self):
17757
    L = ['%s=%r' % (key, value)
17758
      for key, value in self.__dict__.iteritems()]
17759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17760
 
17761
  def __eq__(self, other):
17762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17763
 
17764
  def __ne__(self, other):
17765
    return not (self == other)
17766
 
17767
class addProductNotification_args:
17768
  """
17769
  Attributes:
17770
   - itemId
17771
   - email
17772
  """
17773
 
17774
  thrift_spec = None
17775
  def __init__(self, itemId=None, email=None,):
17776
    self.itemId = itemId
17777
    self.email = email
17778
 
17779
  def read(self, iprot):
17780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17782
      return
17783
    iprot.readStructBegin()
17784
    while True:
17785
      (fname, ftype, fid) = iprot.readFieldBegin()
17786
      if ftype == TType.STOP:
17787
        break
17788
      if fid == -1:
17789
        if ftype == TType.I64:
17790
          self.itemId = iprot.readI64();
17791
        else:
17792
          iprot.skip(ftype)
17793
      elif fid == -2:
17794
        if ftype == TType.STRING:
17795
          self.email = iprot.readString();
17796
        else:
17797
          iprot.skip(ftype)
17798
      else:
17799
        iprot.skip(ftype)
17800
      iprot.readFieldEnd()
17801
    iprot.readStructEnd()
17802
 
17803
  def write(self, oprot):
17804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17806
      return
17807
    oprot.writeStructBegin('addProductNotification_args')
17808
    if self.email is not None:
17809
      oprot.writeFieldBegin('email', TType.STRING, -2)
17810
      oprot.writeString(self.email)
17811
      oprot.writeFieldEnd()
17812
    if self.itemId is not None:
17813
      oprot.writeFieldBegin('itemId', TType.I64, -1)
17814
      oprot.writeI64(self.itemId)
17815
      oprot.writeFieldEnd()
17816
    oprot.writeFieldStop()
17817
    oprot.writeStructEnd()
17818
 
17819
  def validate(self):
17820
    return
17821
 
17822
 
17823
  def __repr__(self):
17824
    L = ['%s=%r' % (key, value)
17825
      for key, value in self.__dict__.iteritems()]
17826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17827
 
17828
  def __eq__(self, other):
17829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17830
 
17831
  def __ne__(self, other):
17832
    return not (self == other)
17833
 
17834
class addProductNotification_result:
17835
  """
17836
  Attributes:
17837
   - success
17838
  """
17839
 
17840
  thrift_spec = (
17841
    (0, TType.BOOL, 'success', None, None, ), # 0
17842
  )
17843
 
17844
  def __init__(self, success=None,):
17845
    self.success = success
17846
 
17847
  def read(self, iprot):
17848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17850
      return
17851
    iprot.readStructBegin()
17852
    while True:
17853
      (fname, ftype, fid) = iprot.readFieldBegin()
17854
      if ftype == TType.STOP:
17855
        break
17856
      if fid == 0:
17857
        if ftype == TType.BOOL:
17858
          self.success = iprot.readBool();
17859
        else:
17860
          iprot.skip(ftype)
17861
      else:
17862
        iprot.skip(ftype)
17863
      iprot.readFieldEnd()
17864
    iprot.readStructEnd()
17865
 
17866
  def write(self, oprot):
17867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17869
      return
17870
    oprot.writeStructBegin('addProductNotification_result')
17871
    if self.success is not None:
17872
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17873
      oprot.writeBool(self.success)
17874
      oprot.writeFieldEnd()
17875
    oprot.writeFieldStop()
17876
    oprot.writeStructEnd()
17877
 
17878
  def validate(self):
17879
    return
17880
 
17881
 
17882
  def __repr__(self):
17883
    L = ['%s=%r' % (key, value)
17884
      for key, value in self.__dict__.iteritems()]
17885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17886
 
17887
  def __eq__(self, other):
17888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17889
 
17890
  def __ne__(self, other):
17891
    return not (self == other)
17892
 
17893
class sendProductNotifications_args:
17894
 
17895
  thrift_spec = (
17896
  )
17897
 
17898
  def read(self, iprot):
17899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17901
      return
17902
    iprot.readStructBegin()
17903
    while True:
17904
      (fname, ftype, fid) = iprot.readFieldBegin()
17905
      if ftype == TType.STOP:
17906
        break
17907
      else:
17908
        iprot.skip(ftype)
17909
      iprot.readFieldEnd()
17910
    iprot.readStructEnd()
17911
 
17912
  def write(self, oprot):
17913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17915
      return
17916
    oprot.writeStructBegin('sendProductNotifications_args')
17917
    oprot.writeFieldStop()
17918
    oprot.writeStructEnd()
17919
 
17920
  def validate(self):
17921
    return
17922
 
17923
 
17924
  def __repr__(self):
17925
    L = ['%s=%r' % (key, value)
17926
      for key, value in self.__dict__.iteritems()]
17927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17928
 
17929
  def __eq__(self, other):
17930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17931
 
17932
  def __ne__(self, other):
17933
    return not (self == other)
17934
 
17935
class sendProductNotifications_result:
17936
  """
17937
  Attributes:
17938
   - success
17939
  """
17940
 
17941
  thrift_spec = (
17942
    (0, TType.BOOL, 'success', None, None, ), # 0
17943
  )
17944
 
17945
  def __init__(self, success=None,):
17946
    self.success = success
17947
 
17948
  def read(self, iprot):
17949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17951
      return
17952
    iprot.readStructBegin()
17953
    while True:
17954
      (fname, ftype, fid) = iprot.readFieldBegin()
17955
      if ftype == TType.STOP:
17956
        break
17957
      if fid == 0:
17958
        if ftype == TType.BOOL:
17959
          self.success = iprot.readBool();
17960
        else:
17961
          iprot.skip(ftype)
17962
      else:
17963
        iprot.skip(ftype)
17964
      iprot.readFieldEnd()
17965
    iprot.readStructEnd()
17966
 
17967
  def write(self, oprot):
17968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17970
      return
17971
    oprot.writeStructBegin('sendProductNotifications_result')
17972
    if self.success is not None:
17973
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17974
      oprot.writeBool(self.success)
17975
      oprot.writeFieldEnd()
17976
    oprot.writeFieldStop()
17977
    oprot.writeStructEnd()
17978
 
17979
  def validate(self):
17980
    return
17981
 
17982
 
17983
  def __repr__(self):
17984
    L = ['%s=%r' % (key, value)
17985
      for key, value in self.__dict__.iteritems()]
17986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17987
 
17988
  def __eq__(self, other):
17989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17990
 
17991
  def __ne__(self, other):
17992
    return not (self == other)
17993
 
17994
class getAllBrandsByCategory_args:
17995
  """
17996
  Attributes:
17997
   - categoryId
17998
  """
17999
 
18000
  thrift_spec = (
18001
    None, # 0
18002
    (1, TType.I64, 'categoryId', None, None, ), # 1
18003
  )
18004
 
18005
  def __init__(self, categoryId=None,):
18006
    self.categoryId = categoryId
18007
 
18008
  def read(self, iprot):
18009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18011
      return
18012
    iprot.readStructBegin()
18013
    while True:
18014
      (fname, ftype, fid) = iprot.readFieldBegin()
18015
      if ftype == TType.STOP:
18016
        break
18017
      if fid == 1:
18018
        if ftype == TType.I64:
18019
          self.categoryId = iprot.readI64();
18020
        else:
18021
          iprot.skip(ftype)
18022
      else:
18023
        iprot.skip(ftype)
18024
      iprot.readFieldEnd()
18025
    iprot.readStructEnd()
18026
 
18027
  def write(self, oprot):
18028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18030
      return
18031
    oprot.writeStructBegin('getAllBrandsByCategory_args')
18032
    if self.categoryId is not None:
18033
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
18034
      oprot.writeI64(self.categoryId)
18035
      oprot.writeFieldEnd()
18036
    oprot.writeFieldStop()
18037
    oprot.writeStructEnd()
18038
 
18039
  def validate(self):
18040
    return
18041
 
18042
 
18043
  def __repr__(self):
18044
    L = ['%s=%r' % (key, value)
18045
      for key, value in self.__dict__.iteritems()]
18046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18047
 
18048
  def __eq__(self, other):
18049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18050
 
18051
  def __ne__(self, other):
18052
    return not (self == other)
18053
 
18054
class getAllBrandsByCategory_result:
18055
  """
18056
  Attributes:
18057
   - success
18058
  """
18059
 
18060
  thrift_spec = (
18061
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18062
  )
18063
 
18064
  def __init__(self, success=None,):
18065
    self.success = success
18066
 
18067
  def read(self, iprot):
18068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18070
      return
18071
    iprot.readStructBegin()
18072
    while True:
18073
      (fname, ftype, fid) = iprot.readFieldBegin()
18074
      if ftype == TType.STOP:
18075
        break
18076
      if fid == 0:
18077
        if ftype == TType.LIST:
18078
          self.success = []
12567 amit.gupta 18079
          (_etype309, _size306) = iprot.readListBegin()
18080
          for _i310 in xrange(_size306):
18081
            _elem311 = iprot.readString();
18082
            self.success.append(_elem311)
5944 mandeep.dh 18083
          iprot.readListEnd()
18084
        else:
18085
          iprot.skip(ftype)
18086
      else:
18087
        iprot.skip(ftype)
18088
      iprot.readFieldEnd()
18089
    iprot.readStructEnd()
18090
 
18091
  def write(self, oprot):
18092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18094
      return
18095
    oprot.writeStructBegin('getAllBrandsByCategory_result')
18096
    if self.success is not None:
18097
      oprot.writeFieldBegin('success', TType.LIST, 0)
18098
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18099
      for iter312 in self.success:
18100
        oprot.writeString(iter312)
5944 mandeep.dh 18101
      oprot.writeListEnd()
18102
      oprot.writeFieldEnd()
18103
    oprot.writeFieldStop()
18104
    oprot.writeStructEnd()
18105
 
18106
  def validate(self):
18107
    return
18108
 
18109
 
18110
  def __repr__(self):
18111
    L = ['%s=%r' % (key, value)
18112
      for key, value in self.__dict__.iteritems()]
18113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18114
 
18115
  def __eq__(self, other):
18116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18117
 
18118
  def __ne__(self, other):
18119
    return not (self == other)
18120
 
18121
class getAllBrands_args:
18122
 
18123
  thrift_spec = (
18124
  )
18125
 
18126
  def read(self, iprot):
18127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18129
      return
18130
    iprot.readStructBegin()
18131
    while True:
18132
      (fname, ftype, fid) = iprot.readFieldBegin()
18133
      if ftype == TType.STOP:
18134
        break
18135
      else:
18136
        iprot.skip(ftype)
18137
      iprot.readFieldEnd()
18138
    iprot.readStructEnd()
18139
 
18140
  def write(self, oprot):
18141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18143
      return
18144
    oprot.writeStructBegin('getAllBrands_args')
18145
    oprot.writeFieldStop()
18146
    oprot.writeStructEnd()
18147
 
18148
  def validate(self):
18149
    return
18150
 
18151
 
18152
  def __repr__(self):
18153
    L = ['%s=%r' % (key, value)
18154
      for key, value in self.__dict__.iteritems()]
18155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18156
 
18157
  def __eq__(self, other):
18158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18159
 
18160
  def __ne__(self, other):
18161
    return not (self == other)
18162
 
18163
class getAllBrands_result:
18164
  """
18165
  Attributes:
18166
   - success
18167
  """
18168
 
18169
  thrift_spec = (
18170
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18171
  )
18172
 
18173
  def __init__(self, success=None,):
18174
    self.success = success
18175
 
18176
  def read(self, iprot):
18177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18179
      return
18180
    iprot.readStructBegin()
18181
    while True:
18182
      (fname, ftype, fid) = iprot.readFieldBegin()
18183
      if ftype == TType.STOP:
18184
        break
18185
      if fid == 0:
18186
        if ftype == TType.LIST:
18187
          self.success = []
12567 amit.gupta 18188
          (_etype316, _size313) = iprot.readListBegin()
18189
          for _i317 in xrange(_size313):
18190
            _elem318 = iprot.readString();
18191
            self.success.append(_elem318)
5944 mandeep.dh 18192
          iprot.readListEnd()
18193
        else:
18194
          iprot.skip(ftype)
18195
      else:
18196
        iprot.skip(ftype)
18197
      iprot.readFieldEnd()
18198
    iprot.readStructEnd()
18199
 
18200
  def write(self, oprot):
18201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18203
      return
18204
    oprot.writeStructBegin('getAllBrands_result')
18205
    if self.success is not None:
18206
      oprot.writeFieldBegin('success', TType.LIST, 0)
18207
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18208
      for iter319 in self.success:
18209
        oprot.writeString(iter319)
5944 mandeep.dh 18210
      oprot.writeListEnd()
18211
      oprot.writeFieldEnd()
18212
    oprot.writeFieldStop()
18213
    oprot.writeStructEnd()
18214
 
18215
  def validate(self):
18216
    return
18217
 
18218
 
18219
  def __repr__(self):
18220
    L = ['%s=%r' % (key, value)
18221
      for key, value in self.__dict__.iteritems()]
18222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18223
 
18224
  def __eq__(self, other):
18225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18226
 
18227
  def __ne__(self, other):
18228
    return not (self == other)
18229
 
18230
class getAllSources_args:
18231
 
18232
  thrift_spec = (
18233
  )
18234
 
18235
  def read(self, iprot):
18236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18238
      return
18239
    iprot.readStructBegin()
18240
    while True:
18241
      (fname, ftype, fid) = iprot.readFieldBegin()
18242
      if ftype == TType.STOP:
18243
        break
18244
      else:
18245
        iprot.skip(ftype)
18246
      iprot.readFieldEnd()
18247
    iprot.readStructEnd()
18248
 
18249
  def write(self, oprot):
18250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18252
      return
18253
    oprot.writeStructBegin('getAllSources_args')
18254
    oprot.writeFieldStop()
18255
    oprot.writeStructEnd()
18256
 
18257
  def validate(self):
18258
    return
18259
 
18260
 
18261
  def __repr__(self):
18262
    L = ['%s=%r' % (key, value)
18263
      for key, value in self.__dict__.iteritems()]
18264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18265
 
18266
  def __eq__(self, other):
18267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18268
 
18269
  def __ne__(self, other):
18270
    return not (self == other)
18271
 
18272
class getAllSources_result:
18273
  """
18274
  Attributes:
18275
   - success
18276
  """
18277
 
18278
  thrift_spec = (
18279
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18280
  )
18281
 
18282
  def __init__(self, success=None,):
18283
    self.success = success
18284
 
18285
  def read(self, iprot):
18286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18288
      return
18289
    iprot.readStructBegin()
18290
    while True:
18291
      (fname, ftype, fid) = iprot.readFieldBegin()
18292
      if ftype == TType.STOP:
18293
        break
18294
      if fid == 0:
18295
        if ftype == TType.LIST:
18296
          self.success = []
12567 amit.gupta 18297
          (_etype323, _size320) = iprot.readListBegin()
18298
          for _i324 in xrange(_size320):
18299
            _elem325 = Source()
18300
            _elem325.read(iprot)
18301
            self.success.append(_elem325)
5944 mandeep.dh 18302
          iprot.readListEnd()
18303
        else:
18304
          iprot.skip(ftype)
18305
      else:
18306
        iprot.skip(ftype)
18307
      iprot.readFieldEnd()
18308
    iprot.readStructEnd()
18309
 
18310
  def write(self, oprot):
18311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18313
      return
18314
    oprot.writeStructBegin('getAllSources_result')
18315
    if self.success is not None:
18316
      oprot.writeFieldBegin('success', TType.LIST, 0)
18317
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18318
      for iter326 in self.success:
18319
        iter326.write(oprot)
5944 mandeep.dh 18320
      oprot.writeListEnd()
18321
      oprot.writeFieldEnd()
18322
    oprot.writeFieldStop()
18323
    oprot.writeStructEnd()
18324
 
18325
  def validate(self):
18326
    return
18327
 
18328
 
18329
  def __repr__(self):
18330
    L = ['%s=%r' % (key, value)
18331
      for key, value in self.__dict__.iteritems()]
18332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18333
 
18334
  def __eq__(self, other):
18335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18336
 
18337
  def __ne__(self, other):
18338
    return not (self == other)
18339
 
18340
class getItemPricingBySource_args:
18341
  """
18342
  Attributes:
18343
   - itemId
18344
   - sourceId
18345
  """
18346
 
18347
  thrift_spec = (
18348
    None, # 0
18349
    (1, TType.I64, 'itemId', None, None, ), # 1
18350
    (2, TType.I64, 'sourceId', None, None, ), # 2
18351
  )
18352
 
18353
  def __init__(self, itemId=None, sourceId=None,):
18354
    self.itemId = itemId
18355
    self.sourceId = sourceId
18356
 
18357
  def read(self, iprot):
18358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18360
      return
18361
    iprot.readStructBegin()
18362
    while True:
18363
      (fname, ftype, fid) = iprot.readFieldBegin()
18364
      if ftype == TType.STOP:
18365
        break
18366
      if fid == 1:
18367
        if ftype == TType.I64:
18368
          self.itemId = iprot.readI64();
18369
        else:
18370
          iprot.skip(ftype)
18371
      elif fid == 2:
18372
        if ftype == TType.I64:
18373
          self.sourceId = iprot.readI64();
18374
        else:
18375
          iprot.skip(ftype)
18376
      else:
18377
        iprot.skip(ftype)
18378
      iprot.readFieldEnd()
18379
    iprot.readStructEnd()
18380
 
18381
  def write(self, oprot):
18382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18384
      return
18385
    oprot.writeStructBegin('getItemPricingBySource_args')
18386
    if self.itemId is not None:
18387
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18388
      oprot.writeI64(self.itemId)
18389
      oprot.writeFieldEnd()
18390
    if self.sourceId is not None:
18391
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18392
      oprot.writeI64(self.sourceId)
18393
      oprot.writeFieldEnd()
18394
    oprot.writeFieldStop()
18395
    oprot.writeStructEnd()
18396
 
18397
  def validate(self):
18398
    return
18399
 
18400
 
18401
  def __repr__(self):
18402
    L = ['%s=%r' % (key, value)
18403
      for key, value in self.__dict__.iteritems()]
18404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18405
 
18406
  def __eq__(self, other):
18407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18408
 
18409
  def __ne__(self, other):
18410
    return not (self == other)
18411
 
18412
class getItemPricingBySource_result:
18413
  """
18414
  Attributes:
18415
   - success
18416
   - cex
18417
  """
18418
 
18419
  thrift_spec = (
18420
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18421
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18422
  )
18423
 
18424
  def __init__(self, success=None, cex=None,):
18425
    self.success = success
18426
    self.cex = cex
18427
 
18428
  def read(self, iprot):
18429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18431
      return
18432
    iprot.readStructBegin()
18433
    while True:
18434
      (fname, ftype, fid) = iprot.readFieldBegin()
18435
      if ftype == TType.STOP:
18436
        break
18437
      if fid == 0:
18438
        if ftype == TType.STRUCT:
18439
          self.success = SourceItemPricing()
18440
          self.success.read(iprot)
18441
        else:
18442
          iprot.skip(ftype)
18443
      elif fid == 1:
18444
        if ftype == TType.STRUCT:
18445
          self.cex = CatalogServiceException()
18446
          self.cex.read(iprot)
18447
        else:
18448
          iprot.skip(ftype)
18449
      else:
18450
        iprot.skip(ftype)
18451
      iprot.readFieldEnd()
18452
    iprot.readStructEnd()
18453
 
18454
  def write(self, oprot):
18455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18457
      return
18458
    oprot.writeStructBegin('getItemPricingBySource_result')
18459
    if self.success is not None:
18460
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18461
      self.success.write(oprot)
18462
      oprot.writeFieldEnd()
18463
    if self.cex is not None:
18464
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18465
      self.cex.write(oprot)
18466
      oprot.writeFieldEnd()
18467
    oprot.writeFieldStop()
18468
    oprot.writeStructEnd()
18469
 
18470
  def validate(self):
18471
    return
18472
 
18473
 
18474
  def __repr__(self):
18475
    L = ['%s=%r' % (key, value)
18476
      for key, value in self.__dict__.iteritems()]
18477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18478
 
18479
  def __eq__(self, other):
18480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18481
 
18482
  def __ne__(self, other):
18483
    return not (self == other)
18484
 
18485
class addSourceItemPricing_args:
18486
  """
18487
  Attributes:
18488
   - sourceItemPricing
18489
  """
18490
 
18491
  thrift_spec = (
18492
    None, # 0
18493
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18494
  )
18495
 
18496
  def __init__(self, sourceItemPricing=None,):
18497
    self.sourceItemPricing = sourceItemPricing
18498
 
18499
  def read(self, iprot):
18500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18502
      return
18503
    iprot.readStructBegin()
18504
    while True:
18505
      (fname, ftype, fid) = iprot.readFieldBegin()
18506
      if ftype == TType.STOP:
18507
        break
18508
      if fid == 1:
18509
        if ftype == TType.STRUCT:
18510
          self.sourceItemPricing = SourceItemPricing()
18511
          self.sourceItemPricing.read(iprot)
18512
        else:
18513
          iprot.skip(ftype)
18514
      else:
18515
        iprot.skip(ftype)
18516
      iprot.readFieldEnd()
18517
    iprot.readStructEnd()
18518
 
18519
  def write(self, oprot):
18520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18522
      return
18523
    oprot.writeStructBegin('addSourceItemPricing_args')
18524
    if self.sourceItemPricing is not None:
18525
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18526
      self.sourceItemPricing.write(oprot)
18527
      oprot.writeFieldEnd()
18528
    oprot.writeFieldStop()
18529
    oprot.writeStructEnd()
18530
 
18531
  def validate(self):
18532
    return
18533
 
18534
 
18535
  def __repr__(self):
18536
    L = ['%s=%r' % (key, value)
18537
      for key, value in self.__dict__.iteritems()]
18538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18539
 
18540
  def __eq__(self, other):
18541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18542
 
18543
  def __ne__(self, other):
18544
    return not (self == other)
18545
 
18546
class addSourceItemPricing_result:
18547
  """
18548
  Attributes:
18549
   - cex
18550
  """
18551
 
18552
  thrift_spec = (
18553
    None, # 0
18554
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18555
  )
18556
 
18557
  def __init__(self, cex=None,):
18558
    self.cex = cex
18559
 
18560
  def read(self, iprot):
18561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18563
      return
18564
    iprot.readStructBegin()
18565
    while True:
18566
      (fname, ftype, fid) = iprot.readFieldBegin()
18567
      if ftype == TType.STOP:
18568
        break
18569
      if fid == 1:
18570
        if ftype == TType.STRUCT:
18571
          self.cex = CatalogServiceException()
18572
          self.cex.read(iprot)
18573
        else:
18574
          iprot.skip(ftype)
18575
      else:
18576
        iprot.skip(ftype)
18577
      iprot.readFieldEnd()
18578
    iprot.readStructEnd()
18579
 
18580
  def write(self, oprot):
18581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18583
      return
18584
    oprot.writeStructBegin('addSourceItemPricing_result')
18585
    if self.cex is not None:
18586
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18587
      self.cex.write(oprot)
18588
      oprot.writeFieldEnd()
18589
    oprot.writeFieldStop()
18590
    oprot.writeStructEnd()
18591
 
18592
  def validate(self):
18593
    return
18594
 
18595
 
18596
  def __repr__(self):
18597
    L = ['%s=%r' % (key, value)
18598
      for key, value in self.__dict__.iteritems()]
18599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18600
 
18601
  def __eq__(self, other):
18602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18603
 
18604
  def __ne__(self, other):
18605
    return not (self == other)
18606
 
18607
class getAllSourcePricing_args:
18608
  """
18609
  Attributes:
18610
   - itemId
18611
  """
18612
 
18613
  thrift_spec = (
18614
    None, # 0
18615
    (1, TType.I64, 'itemId', None, None, ), # 1
18616
  )
18617
 
18618
  def __init__(self, itemId=None,):
18619
    self.itemId = itemId
18620
 
18621
  def read(self, iprot):
18622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18624
      return
18625
    iprot.readStructBegin()
18626
    while True:
18627
      (fname, ftype, fid) = iprot.readFieldBegin()
18628
      if ftype == TType.STOP:
18629
        break
18630
      if fid == 1:
18631
        if ftype == TType.I64:
18632
          self.itemId = iprot.readI64();
18633
        else:
18634
          iprot.skip(ftype)
18635
      else:
18636
        iprot.skip(ftype)
18637
      iprot.readFieldEnd()
18638
    iprot.readStructEnd()
18639
 
18640
  def write(self, oprot):
18641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18643
      return
18644
    oprot.writeStructBegin('getAllSourcePricing_args')
18645
    if self.itemId is not None:
18646
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18647
      oprot.writeI64(self.itemId)
18648
      oprot.writeFieldEnd()
18649
    oprot.writeFieldStop()
18650
    oprot.writeStructEnd()
18651
 
18652
  def validate(self):
18653
    return
18654
 
18655
 
18656
  def __repr__(self):
18657
    L = ['%s=%r' % (key, value)
18658
      for key, value in self.__dict__.iteritems()]
18659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18660
 
18661
  def __eq__(self, other):
18662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18663
 
18664
  def __ne__(self, other):
18665
    return not (self == other)
18666
 
18667
class getAllSourcePricing_result:
18668
  """
18669
  Attributes:
18670
   - success
18671
   - cex
18672
  """
18673
 
18674
  thrift_spec = (
18675
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18676
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18677
  )
18678
 
18679
  def __init__(self, success=None, cex=None,):
18680
    self.success = success
18681
    self.cex = cex
18682
 
18683
  def read(self, iprot):
18684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18686
      return
18687
    iprot.readStructBegin()
18688
    while True:
18689
      (fname, ftype, fid) = iprot.readFieldBegin()
18690
      if ftype == TType.STOP:
18691
        break
18692
      if fid == 0:
18693
        if ftype == TType.LIST:
18694
          self.success = []
12567 amit.gupta 18695
          (_etype330, _size327) = iprot.readListBegin()
18696
          for _i331 in xrange(_size327):
18697
            _elem332 = SourceItemPricing()
18698
            _elem332.read(iprot)
18699
            self.success.append(_elem332)
5944 mandeep.dh 18700
          iprot.readListEnd()
18701
        else:
18702
          iprot.skip(ftype)
18703
      elif fid == 1:
18704
        if ftype == TType.STRUCT:
18705
          self.cex = CatalogServiceException()
18706
          self.cex.read(iprot)
18707
        else:
18708
          iprot.skip(ftype)
18709
      else:
18710
        iprot.skip(ftype)
18711
      iprot.readFieldEnd()
18712
    iprot.readStructEnd()
18713
 
18714
  def write(self, oprot):
18715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18717
      return
18718
    oprot.writeStructBegin('getAllSourcePricing_result')
18719
    if self.success is not None:
18720
      oprot.writeFieldBegin('success', TType.LIST, 0)
18721
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18722
      for iter333 in self.success:
18723
        iter333.write(oprot)
5944 mandeep.dh 18724
      oprot.writeListEnd()
18725
      oprot.writeFieldEnd()
18726
    if self.cex is not None:
18727
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18728
      self.cex.write(oprot)
18729
      oprot.writeFieldEnd()
18730
    oprot.writeFieldStop()
18731
    oprot.writeStructEnd()
18732
 
18733
  def validate(self):
18734
    return
18735
 
18736
 
18737
  def __repr__(self):
18738
    L = ['%s=%r' % (key, value)
18739
      for key, value in self.__dict__.iteritems()]
18740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18741
 
18742
  def __eq__(self, other):
18743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18744
 
18745
  def __ne__(self, other):
18746
    return not (self == other)
18747
 
18748
class getItemForSource_args:
18749
  """
18750
  Attributes:
18751
   - item_id
18752
   - sourceId
18753
  """
18754
 
18755
  thrift_spec = (
18756
    None, # 0
18757
    (1, TType.I64, 'item_id', None, None, ), # 1
18758
    (2, TType.I64, 'sourceId', None, None, ), # 2
18759
  )
18760
 
18761
  def __init__(self, item_id=None, sourceId=None,):
18762
    self.item_id = item_id
18763
    self.sourceId = sourceId
18764
 
18765
  def read(self, iprot):
18766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18768
      return
18769
    iprot.readStructBegin()
18770
    while True:
18771
      (fname, ftype, fid) = iprot.readFieldBegin()
18772
      if ftype == TType.STOP:
18773
        break
18774
      if fid == 1:
18775
        if ftype == TType.I64:
18776
          self.item_id = iprot.readI64();
18777
        else:
18778
          iprot.skip(ftype)
18779
      elif fid == 2:
18780
        if ftype == TType.I64:
18781
          self.sourceId = iprot.readI64();
18782
        else:
18783
          iprot.skip(ftype)
18784
      else:
18785
        iprot.skip(ftype)
18786
      iprot.readFieldEnd()
18787
    iprot.readStructEnd()
18788
 
18789
  def write(self, oprot):
18790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18792
      return
18793
    oprot.writeStructBegin('getItemForSource_args')
18794
    if self.item_id is not None:
18795
      oprot.writeFieldBegin('item_id', TType.I64, 1)
18796
      oprot.writeI64(self.item_id)
18797
      oprot.writeFieldEnd()
18798
    if self.sourceId is not None:
18799
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18800
      oprot.writeI64(self.sourceId)
18801
      oprot.writeFieldEnd()
18802
    oprot.writeFieldStop()
18803
    oprot.writeStructEnd()
18804
 
18805
  def validate(self):
18806
    return
18807
 
18808
 
18809
  def __repr__(self):
18810
    L = ['%s=%r' % (key, value)
18811
      for key, value in self.__dict__.iteritems()]
18812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18813
 
18814
  def __eq__(self, other):
18815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18816
 
18817
  def __ne__(self, other):
18818
    return not (self == other)
18819
 
18820
class getItemForSource_result:
18821
  """
18822
  Attributes:
18823
   - success
18824
   - cex
18825
  """
18826
 
18827
  thrift_spec = (
18828
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
18829
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18830
  )
18831
 
18832
  def __init__(self, success=None, cex=None,):
18833
    self.success = success
18834
    self.cex = cex
18835
 
18836
  def read(self, iprot):
18837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18839
      return
18840
    iprot.readStructBegin()
18841
    while True:
18842
      (fname, ftype, fid) = iprot.readFieldBegin()
18843
      if ftype == TType.STOP:
18844
        break
18845
      if fid == 0:
18846
        if ftype == TType.STRUCT:
18847
          self.success = Item()
18848
          self.success.read(iprot)
18849
        else:
18850
          iprot.skip(ftype)
18851
      elif fid == 1:
18852
        if ftype == TType.STRUCT:
18853
          self.cex = CatalogServiceException()
18854
          self.cex.read(iprot)
18855
        else:
18856
          iprot.skip(ftype)
18857
      else:
18858
        iprot.skip(ftype)
18859
      iprot.readFieldEnd()
18860
    iprot.readStructEnd()
18861
 
18862
  def write(self, oprot):
18863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18865
      return
18866
    oprot.writeStructBegin('getItemForSource_result')
18867
    if self.success is not None:
18868
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18869
      self.success.write(oprot)
18870
      oprot.writeFieldEnd()
18871
    if self.cex is not None:
18872
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18873
      self.cex.write(oprot)
18874
      oprot.writeFieldEnd()
18875
    oprot.writeFieldStop()
18876
    oprot.writeStructEnd()
18877
 
18878
  def validate(self):
18879
    return
18880
 
18881
 
18882
  def __repr__(self):
18883
    L = ['%s=%r' % (key, value)
18884
      for key, value in self.__dict__.iteritems()]
18885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18886
 
18887
  def __eq__(self, other):
18888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18889
 
18890
  def __ne__(self, other):
18891
    return not (self == other)
18892
 
18893
class searchItemsInRange_args:
18894
  """
18895
  Attributes:
18896
   - searchTerms
18897
   - offset
18898
   - limit
18899
  """
18900
 
18901
  thrift_spec = (
18902
    None, # 0
18903
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18904
    (2, TType.I64, 'offset', None, None, ), # 2
18905
    (3, TType.I64, 'limit', None, None, ), # 3
18906
  )
18907
 
18908
  def __init__(self, searchTerms=None, offset=None, limit=None,):
18909
    self.searchTerms = searchTerms
18910
    self.offset = offset
18911
    self.limit = limit
18912
 
18913
  def read(self, iprot):
18914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18916
      return
18917
    iprot.readStructBegin()
18918
    while True:
18919
      (fname, ftype, fid) = iprot.readFieldBegin()
18920
      if ftype == TType.STOP:
18921
        break
18922
      if fid == 1:
18923
        if ftype == TType.LIST:
18924
          self.searchTerms = []
12567 amit.gupta 18925
          (_etype337, _size334) = iprot.readListBegin()
18926
          for _i338 in xrange(_size334):
18927
            _elem339 = iprot.readString();
18928
            self.searchTerms.append(_elem339)
5944 mandeep.dh 18929
          iprot.readListEnd()
18930
        else:
18931
          iprot.skip(ftype)
18932
      elif fid == 2:
18933
        if ftype == TType.I64:
18934
          self.offset = iprot.readI64();
18935
        else:
18936
          iprot.skip(ftype)
18937
      elif fid == 3:
18938
        if ftype == TType.I64:
18939
          self.limit = iprot.readI64();
18940
        else:
18941
          iprot.skip(ftype)
18942
      else:
18943
        iprot.skip(ftype)
18944
      iprot.readFieldEnd()
18945
    iprot.readStructEnd()
18946
 
18947
  def write(self, oprot):
18948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18950
      return
18951
    oprot.writeStructBegin('searchItemsInRange_args')
18952
    if self.searchTerms is not None:
18953
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
18954
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 18955
      for iter340 in self.searchTerms:
18956
        oprot.writeString(iter340)
5944 mandeep.dh 18957
      oprot.writeListEnd()
18958
      oprot.writeFieldEnd()
18959
    if self.offset is not None:
18960
      oprot.writeFieldBegin('offset', TType.I64, 2)
18961
      oprot.writeI64(self.offset)
18962
      oprot.writeFieldEnd()
18963
    if self.limit is not None:
18964
      oprot.writeFieldBegin('limit', TType.I64, 3)
18965
      oprot.writeI64(self.limit)
18966
      oprot.writeFieldEnd()
18967
    oprot.writeFieldStop()
18968
    oprot.writeStructEnd()
18969
 
18970
  def validate(self):
18971
    return
18972
 
18973
 
18974
  def __repr__(self):
18975
    L = ['%s=%r' % (key, value)
18976
      for key, value in self.__dict__.iteritems()]
18977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18978
 
18979
  def __eq__(self, other):
18980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18981
 
18982
  def __ne__(self, other):
18983
    return not (self == other)
18984
 
18985
class searchItemsInRange_result:
18986
  """
18987
  Attributes:
18988
   - success
18989
  """
18990
 
18991
  thrift_spec = (
18992
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18993
  )
18994
 
18995
  def __init__(self, success=None,):
18996
    self.success = success
18997
 
18998
  def read(self, iprot):
18999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19001
      return
19002
    iprot.readStructBegin()
19003
    while True:
19004
      (fname, ftype, fid) = iprot.readFieldBegin()
19005
      if ftype == TType.STOP:
19006
        break
19007
      if fid == 0:
19008
        if ftype == TType.LIST:
19009
          self.success = []
12567 amit.gupta 19010
          (_etype344, _size341) = iprot.readListBegin()
19011
          for _i345 in xrange(_size341):
19012
            _elem346 = Item()
19013
            _elem346.read(iprot)
19014
            self.success.append(_elem346)
5944 mandeep.dh 19015
          iprot.readListEnd()
19016
        else:
19017
          iprot.skip(ftype)
19018
      else:
19019
        iprot.skip(ftype)
19020
      iprot.readFieldEnd()
19021
    iprot.readStructEnd()
19022
 
19023
  def write(self, oprot):
19024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19026
      return
19027
    oprot.writeStructBegin('searchItemsInRange_result')
19028
    if self.success is not None:
19029
      oprot.writeFieldBegin('success', TType.LIST, 0)
19030
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19031
      for iter347 in self.success:
19032
        iter347.write(oprot)
5944 mandeep.dh 19033
      oprot.writeListEnd()
19034
      oprot.writeFieldEnd()
19035
    oprot.writeFieldStop()
19036
    oprot.writeStructEnd()
19037
 
19038
  def validate(self):
19039
    return
19040
 
19041
 
19042
  def __repr__(self):
19043
    L = ['%s=%r' % (key, value)
19044
      for key, value in self.__dict__.iteritems()]
19045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19046
 
19047
  def __eq__(self, other):
19048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19049
 
19050
  def __ne__(self, other):
19051
    return not (self == other)
19052
 
19053
class getSearchResultCount_args:
19054
  """
19055
  Attributes:
19056
   - searchTerms
19057
  """
19058
 
19059
  thrift_spec = (
19060
    None, # 0
19061
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19062
  )
19063
 
19064
  def __init__(self, searchTerms=None,):
19065
    self.searchTerms = searchTerms
19066
 
19067
  def read(self, iprot):
19068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19070
      return
19071
    iprot.readStructBegin()
19072
    while True:
19073
      (fname, ftype, fid) = iprot.readFieldBegin()
19074
      if ftype == TType.STOP:
19075
        break
19076
      if fid == 1:
19077
        if ftype == TType.LIST:
19078
          self.searchTerms = []
12567 amit.gupta 19079
          (_etype351, _size348) = iprot.readListBegin()
19080
          for _i352 in xrange(_size348):
19081
            _elem353 = iprot.readString();
19082
            self.searchTerms.append(_elem353)
5944 mandeep.dh 19083
          iprot.readListEnd()
19084
        else:
19085
          iprot.skip(ftype)
19086
      else:
19087
        iprot.skip(ftype)
19088
      iprot.readFieldEnd()
19089
    iprot.readStructEnd()
19090
 
19091
  def write(self, oprot):
19092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19094
      return
19095
    oprot.writeStructBegin('getSearchResultCount_args')
19096
    if self.searchTerms is not None:
19097
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19098
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19099
      for iter354 in self.searchTerms:
19100
        oprot.writeString(iter354)
5944 mandeep.dh 19101
      oprot.writeListEnd()
19102
      oprot.writeFieldEnd()
19103
    oprot.writeFieldStop()
19104
    oprot.writeStructEnd()
19105
 
19106
  def validate(self):
19107
    return
19108
 
19109
 
19110
  def __repr__(self):
19111
    L = ['%s=%r' % (key, value)
19112
      for key, value in self.__dict__.iteritems()]
19113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19114
 
19115
  def __eq__(self, other):
19116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19117
 
19118
  def __ne__(self, other):
19119
    return not (self == other)
19120
 
19121
class getSearchResultCount_result:
19122
  """
19123
  Attributes:
19124
   - success
19125
  """
19126
 
19127
  thrift_spec = (
19128
    (0, TType.I32, 'success', None, None, ), # 0
19129
  )
19130
 
19131
  def __init__(self, success=None,):
19132
    self.success = success
19133
 
19134
  def read(self, iprot):
19135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19137
      return
19138
    iprot.readStructBegin()
19139
    while True:
19140
      (fname, ftype, fid) = iprot.readFieldBegin()
19141
      if ftype == TType.STOP:
19142
        break
19143
      if fid == 0:
19144
        if ftype == TType.I32:
19145
          self.success = iprot.readI32();
19146
        else:
19147
          iprot.skip(ftype)
19148
      else:
19149
        iprot.skip(ftype)
19150
      iprot.readFieldEnd()
19151
    iprot.readStructEnd()
19152
 
19153
  def write(self, oprot):
19154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19156
      return
19157
    oprot.writeStructBegin('getSearchResultCount_result')
19158
    if self.success is not None:
19159
      oprot.writeFieldBegin('success', TType.I32, 0)
19160
      oprot.writeI32(self.success)
19161
      oprot.writeFieldEnd()
19162
    oprot.writeFieldStop()
19163
    oprot.writeStructEnd()
19164
 
19165
  def validate(self):
19166
    return
19167
 
19168
 
19169
  def __repr__(self):
19170
    L = ['%s=%r' % (key, value)
19171
      for key, value in self.__dict__.iteritems()]
19172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19173
 
19174
  def __eq__(self, other):
19175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19176
 
19177
  def __ne__(self, other):
19178
    return not (self == other)
19179
 
19180
class getProductNotifications_args:
19181
  """
19182
  Attributes:
19183
   - startDateTime
19184
  """
19185
 
19186
  thrift_spec = (
19187
    None, # 0
19188
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19189
  )
19190
 
19191
  def __init__(self, startDateTime=None,):
19192
    self.startDateTime = startDateTime
19193
 
19194
  def read(self, iprot):
19195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19197
      return
19198
    iprot.readStructBegin()
19199
    while True:
19200
      (fname, ftype, fid) = iprot.readFieldBegin()
19201
      if ftype == TType.STOP:
19202
        break
19203
      if fid == 1:
19204
        if ftype == TType.I64:
19205
          self.startDateTime = iprot.readI64();
19206
        else:
19207
          iprot.skip(ftype)
19208
      else:
19209
        iprot.skip(ftype)
19210
      iprot.readFieldEnd()
19211
    iprot.readStructEnd()
19212
 
19213
  def write(self, oprot):
19214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19216
      return
19217
    oprot.writeStructBegin('getProductNotifications_args')
19218
    if self.startDateTime is not None:
19219
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19220
      oprot.writeI64(self.startDateTime)
19221
      oprot.writeFieldEnd()
19222
    oprot.writeFieldStop()
19223
    oprot.writeStructEnd()
19224
 
19225
  def validate(self):
19226
    return
19227
 
19228
 
19229
  def __repr__(self):
19230
    L = ['%s=%r' % (key, value)
19231
      for key, value in self.__dict__.iteritems()]
19232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19233
 
19234
  def __eq__(self, other):
19235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19236
 
19237
  def __ne__(self, other):
19238
    return not (self == other)
19239
 
19240
class getProductNotifications_result:
19241
  """
19242
  Attributes:
19243
   - success
19244
  """
19245
 
19246
  thrift_spec = (
19247
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19248
  )
19249
 
19250
  def __init__(self, success=None,):
19251
    self.success = success
19252
 
19253
  def read(self, iprot):
19254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19256
      return
19257
    iprot.readStructBegin()
19258
    while True:
19259
      (fname, ftype, fid) = iprot.readFieldBegin()
19260
      if ftype == TType.STOP:
19261
        break
19262
      if fid == 0:
19263
        if ftype == TType.LIST:
19264
          self.success = []
12567 amit.gupta 19265
          (_etype358, _size355) = iprot.readListBegin()
19266
          for _i359 in xrange(_size355):
19267
            _elem360 = ProductNotificationRequest()
19268
            _elem360.read(iprot)
19269
            self.success.append(_elem360)
5944 mandeep.dh 19270
          iprot.readListEnd()
19271
        else:
19272
          iprot.skip(ftype)
19273
      else:
19274
        iprot.skip(ftype)
19275
      iprot.readFieldEnd()
19276
    iprot.readStructEnd()
19277
 
19278
  def write(self, oprot):
19279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19281
      return
19282
    oprot.writeStructBegin('getProductNotifications_result')
19283
    if self.success is not None:
19284
      oprot.writeFieldBegin('success', TType.LIST, 0)
19285
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19286
      for iter361 in self.success:
19287
        iter361.write(oprot)
5944 mandeep.dh 19288
      oprot.writeListEnd()
19289
      oprot.writeFieldEnd()
19290
    oprot.writeFieldStop()
19291
    oprot.writeStructEnd()
19292
 
19293
  def validate(self):
19294
    return
19295
 
19296
 
19297
  def __repr__(self):
19298
    L = ['%s=%r' % (key, value)
19299
      for key, value in self.__dict__.iteritems()]
19300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19301
 
19302
  def __eq__(self, other):
19303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19304
 
19305
  def __ne__(self, other):
19306
    return not (self == other)
19307
 
19308
class getProductNotificationRequestCount_args:
19309
  """
19310
  Attributes:
19311
   - startDateTime
7897 amar.kumar 19312
   - categoryId
5944 mandeep.dh 19313
  """
19314
 
19315
  thrift_spec = (
19316
    None, # 0
19317
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19318
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19319
  )
19320
 
7897 amar.kumar 19321
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19322
    self.startDateTime = startDateTime
7897 amar.kumar 19323
    self.categoryId = categoryId
5944 mandeep.dh 19324
 
19325
  def read(self, iprot):
19326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19328
      return
19329
    iprot.readStructBegin()
19330
    while True:
19331
      (fname, ftype, fid) = iprot.readFieldBegin()
19332
      if ftype == TType.STOP:
19333
        break
19334
      if fid == 1:
19335
        if ftype == TType.I64:
19336
          self.startDateTime = iprot.readI64();
19337
        else:
19338
          iprot.skip(ftype)
7897 amar.kumar 19339
      elif fid == 2:
19340
        if ftype == TType.I64:
19341
          self.categoryId = iprot.readI64();
19342
        else:
19343
          iprot.skip(ftype)
5944 mandeep.dh 19344
      else:
19345
        iprot.skip(ftype)
19346
      iprot.readFieldEnd()
19347
    iprot.readStructEnd()
19348
 
19349
  def write(self, oprot):
19350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19352
      return
19353
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19354
    if self.startDateTime is not None:
19355
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19356
      oprot.writeI64(self.startDateTime)
19357
      oprot.writeFieldEnd()
7897 amar.kumar 19358
    if self.categoryId is not None:
19359
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19360
      oprot.writeI64(self.categoryId)
19361
      oprot.writeFieldEnd()
5944 mandeep.dh 19362
    oprot.writeFieldStop()
19363
    oprot.writeStructEnd()
19364
 
19365
  def validate(self):
19366
    return
19367
 
19368
 
19369
  def __repr__(self):
19370
    L = ['%s=%r' % (key, value)
19371
      for key, value in self.__dict__.iteritems()]
19372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19373
 
19374
  def __eq__(self, other):
19375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19376
 
19377
  def __ne__(self, other):
19378
    return not (self == other)
19379
 
19380
class getProductNotificationRequestCount_result:
19381
  """
19382
  Attributes:
19383
   - success
19384
  """
19385
 
19386
  thrift_spec = (
19387
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19388
  )
19389
 
19390
  def __init__(self, success=None,):
19391
    self.success = success
19392
 
19393
  def read(self, iprot):
19394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19396
      return
19397
    iprot.readStructBegin()
19398
    while True:
19399
      (fname, ftype, fid) = iprot.readFieldBegin()
19400
      if ftype == TType.STOP:
19401
        break
19402
      if fid == 0:
19403
        if ftype == TType.LIST:
19404
          self.success = []
12567 amit.gupta 19405
          (_etype365, _size362) = iprot.readListBegin()
19406
          for _i366 in xrange(_size362):
19407
            _elem367 = ProductNotificationRequestCount()
19408
            _elem367.read(iprot)
19409
            self.success.append(_elem367)
5944 mandeep.dh 19410
          iprot.readListEnd()
19411
        else:
19412
          iprot.skip(ftype)
19413
      else:
19414
        iprot.skip(ftype)
19415
      iprot.readFieldEnd()
19416
    iprot.readStructEnd()
19417
 
19418
  def write(self, oprot):
19419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19421
      return
19422
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19423
    if self.success is not None:
19424
      oprot.writeFieldBegin('success', TType.LIST, 0)
19425
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19426
      for iter368 in self.success:
19427
        iter368.write(oprot)
5944 mandeep.dh 19428
      oprot.writeListEnd()
19429
      oprot.writeFieldEnd()
19430
    oprot.writeFieldStop()
19431
    oprot.writeStructEnd()
19432
 
19433
  def validate(self):
19434
    return
19435
 
19436
 
19437
  def __repr__(self):
19438
    L = ['%s=%r' % (key, value)
19439
      for key, value in self.__dict__.iteritems()]
19440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19441
 
19442
  def __eq__(self, other):
19443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19444
 
19445
  def __ne__(self, other):
19446
    return not (self == other)
19447
 
19448
class addAuthorizationLog_args:
19449
  """
19450
  Attributes:
19451
   - itemId
19452
   - username
19453
   - reason
19454
  """
19455
 
19456
  thrift_spec = (
19457
    None, # 0
19458
    (1, TType.I64, 'itemId', None, None, ), # 1
19459
    (2, TType.STRING, 'username', None, None, ), # 2
19460
    (3, TType.STRING, 'reason', None, None, ), # 3
19461
  )
19462
 
19463
  def __init__(self, itemId=None, username=None, reason=None,):
19464
    self.itemId = itemId
19465
    self.username = username
19466
    self.reason = reason
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 == 1:
19478
        if ftype == TType.I64:
19479
          self.itemId = iprot.readI64();
19480
        else:
19481
          iprot.skip(ftype)
19482
      elif fid == 2:
19483
        if ftype == TType.STRING:
19484
          self.username = iprot.readString();
19485
        else:
19486
          iprot.skip(ftype)
19487
      elif fid == 3:
19488
        if ftype == TType.STRING:
19489
          self.reason = iprot.readString();
19490
        else:
19491
          iprot.skip(ftype)
19492
      else:
19493
        iprot.skip(ftype)
19494
      iprot.readFieldEnd()
19495
    iprot.readStructEnd()
19496
 
19497
  def write(self, oprot):
19498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19500
      return
19501
    oprot.writeStructBegin('addAuthorizationLog_args')
19502
    if self.itemId is not None:
19503
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19504
      oprot.writeI64(self.itemId)
19505
      oprot.writeFieldEnd()
19506
    if self.username is not None:
19507
      oprot.writeFieldBegin('username', TType.STRING, 2)
19508
      oprot.writeString(self.username)
19509
      oprot.writeFieldEnd()
19510
    if self.reason is not None:
19511
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19512
      oprot.writeString(self.reason)
19513
      oprot.writeFieldEnd()
19514
    oprot.writeFieldStop()
19515
    oprot.writeStructEnd()
19516
 
19517
  def validate(self):
19518
    return
19519
 
19520
 
19521
  def __repr__(self):
19522
    L = ['%s=%r' % (key, value)
19523
      for key, value in self.__dict__.iteritems()]
19524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19525
 
19526
  def __eq__(self, other):
19527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19528
 
19529
  def __ne__(self, other):
19530
    return not (self == other)
19531
 
19532
class addAuthorizationLog_result:
19533
  """
19534
  Attributes:
19535
   - success
19536
   - cex
19537
  """
19538
 
19539
  thrift_spec = (
19540
    (0, TType.BOOL, 'success', None, None, ), # 0
19541
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19542
  )
19543
 
19544
  def __init__(self, success=None, cex=None,):
19545
    self.success = success
19546
    self.cex = cex
19547
 
19548
  def read(self, iprot):
19549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19551
      return
19552
    iprot.readStructBegin()
19553
    while True:
19554
      (fname, ftype, fid) = iprot.readFieldBegin()
19555
      if ftype == TType.STOP:
19556
        break
19557
      if fid == 0:
19558
        if ftype == TType.BOOL:
19559
          self.success = iprot.readBool();
19560
        else:
19561
          iprot.skip(ftype)
19562
      elif fid == 1:
19563
        if ftype == TType.STRUCT:
19564
          self.cex = CatalogServiceException()
19565
          self.cex.read(iprot)
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('addAuthorizationLog_result')
19578
    if self.success is not None:
19579
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19580
      oprot.writeBool(self.success)
19581
      oprot.writeFieldEnd()
19582
    if self.cex is not None:
19583
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19584
      self.cex.write(oprot)
19585
      oprot.writeFieldEnd()
19586
    oprot.writeFieldStop()
19587
    oprot.writeStructEnd()
19588
 
19589
  def validate(self):
19590
    return
19591
 
19592
 
19593
  def __repr__(self):
19594
    L = ['%s=%r' % (key, value)
19595
      for key, value in self.__dict__.iteritems()]
19596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19597
 
19598
  def __eq__(self, other):
19599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19600
 
19601
  def __ne__(self, other):
19602
    return not (self == other)
19603
 
19604
class addupdateVoucherForItem_args:
19605
  """
19606
  Attributes:
19607
   - catalog_item_id
19608
   - voucherType
19609
   - voucherAmount
19610
  """
19611
 
19612
  thrift_spec = (
19613
    None, # 0
19614
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19615
    (2, TType.I64, 'voucherType', None, None, ), # 2
19616
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19617
  )
19618
 
19619
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19620
    self.catalog_item_id = catalog_item_id
19621
    self.voucherType = voucherType
19622
    self.voucherAmount = voucherAmount
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 == 1:
19634
        if ftype == TType.I64:
19635
          self.catalog_item_id = iprot.readI64();
19636
        else:
19637
          iprot.skip(ftype)
19638
      elif fid == 2:
19639
        if ftype == TType.I64:
19640
          self.voucherType = iprot.readI64();
19641
        else:
19642
          iprot.skip(ftype)
19643
      elif fid == 3:
19644
        if ftype == TType.I64:
19645
          self.voucherAmount = iprot.readI64();
19646
        else:
19647
          iprot.skip(ftype)
19648
      else:
19649
        iprot.skip(ftype)
19650
      iprot.readFieldEnd()
19651
    iprot.readStructEnd()
19652
 
19653
  def write(self, oprot):
19654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19656
      return
19657
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19658
    if self.catalog_item_id is not None:
19659
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19660
      oprot.writeI64(self.catalog_item_id)
19661
      oprot.writeFieldEnd()
19662
    if self.voucherType is not None:
19663
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19664
      oprot.writeI64(self.voucherType)
19665
      oprot.writeFieldEnd()
19666
    if self.voucherAmount is not None:
19667
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19668
      oprot.writeI64(self.voucherAmount)
19669
      oprot.writeFieldEnd()
19670
    oprot.writeFieldStop()
19671
    oprot.writeStructEnd()
19672
 
19673
  def validate(self):
19674
    return
19675
 
19676
 
19677
  def __repr__(self):
19678
    L = ['%s=%r' % (key, value)
19679
      for key, value in self.__dict__.iteritems()]
19680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19681
 
19682
  def __eq__(self, other):
19683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19684
 
19685
  def __ne__(self, other):
19686
    return not (self == other)
19687
 
19688
class addupdateVoucherForItem_result:
19689
  """
19690
  Attributes:
19691
   - success
19692
   - cex
19693
  """
19694
 
19695
  thrift_spec = (
19696
    (0, TType.BOOL, 'success', None, None, ), # 0
19697
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19698
  )
19699
 
19700
  def __init__(self, success=None, cex=None,):
19701
    self.success = success
19702
    self.cex = cex
19703
 
19704
  def read(self, iprot):
19705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19707
      return
19708
    iprot.readStructBegin()
19709
    while True:
19710
      (fname, ftype, fid) = iprot.readFieldBegin()
19711
      if ftype == TType.STOP:
19712
        break
19713
      if fid == 0:
19714
        if ftype == TType.BOOL:
19715
          self.success = iprot.readBool();
19716
        else:
19717
          iprot.skip(ftype)
19718
      elif fid == 1:
19719
        if ftype == TType.STRUCT:
19720
          self.cex = CatalogServiceException()
19721
          self.cex.read(iprot)
19722
        else:
19723
          iprot.skip(ftype)
19724
      else:
19725
        iprot.skip(ftype)
19726
      iprot.readFieldEnd()
19727
    iprot.readStructEnd()
19728
 
19729
  def write(self, oprot):
19730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19732
      return
19733
    oprot.writeStructBegin('addupdateVoucherForItem_result')
19734
    if self.success is not None:
19735
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19736
      oprot.writeBool(self.success)
19737
      oprot.writeFieldEnd()
19738
    if self.cex is not None:
19739
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19740
      self.cex.write(oprot)
19741
      oprot.writeFieldEnd()
19742
    oprot.writeFieldStop()
19743
    oprot.writeStructEnd()
19744
 
19745
  def validate(self):
19746
    return
19747
 
19748
 
19749
  def __repr__(self):
19750
    L = ['%s=%r' % (key, value)
19751
      for key, value in self.__dict__.iteritems()]
19752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19753
 
19754
  def __eq__(self, other):
19755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19756
 
19757
  def __ne__(self, other):
19758
    return not (self == other)
19759
 
19760
class deleteVoucherForItem_args:
19761
  """
19762
  Attributes:
19763
   - catalog_item_id
19764
   - voucherType
19765
  """
19766
 
19767
  thrift_spec = (
19768
    None, # 0
19769
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19770
    (2, TType.I64, 'voucherType', None, None, ), # 2
19771
  )
19772
 
19773
  def __init__(self, catalog_item_id=None, voucherType=None,):
19774
    self.catalog_item_id = catalog_item_id
19775
    self.voucherType = voucherType
19776
 
19777
  def read(self, iprot):
19778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19780
      return
19781
    iprot.readStructBegin()
19782
    while True:
19783
      (fname, ftype, fid) = iprot.readFieldBegin()
19784
      if ftype == TType.STOP:
19785
        break
19786
      if fid == 1:
19787
        if ftype == TType.I64:
19788
          self.catalog_item_id = iprot.readI64();
19789
        else:
19790
          iprot.skip(ftype)
19791
      elif fid == 2:
19792
        if ftype == TType.I64:
19793
          self.voucherType = iprot.readI64();
19794
        else:
19795
          iprot.skip(ftype)
19796
      else:
19797
        iprot.skip(ftype)
19798
      iprot.readFieldEnd()
19799
    iprot.readStructEnd()
19800
 
19801
  def write(self, oprot):
19802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19804
      return
19805
    oprot.writeStructBegin('deleteVoucherForItem_args')
19806
    if self.catalog_item_id is not None:
19807
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19808
      oprot.writeI64(self.catalog_item_id)
19809
      oprot.writeFieldEnd()
19810
    if self.voucherType is not None:
19811
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19812
      oprot.writeI64(self.voucherType)
19813
      oprot.writeFieldEnd()
19814
    oprot.writeFieldStop()
19815
    oprot.writeStructEnd()
19816
 
19817
  def validate(self):
19818
    return
19819
 
19820
 
19821
  def __repr__(self):
19822
    L = ['%s=%r' % (key, value)
19823
      for key, value in self.__dict__.iteritems()]
19824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19825
 
19826
  def __eq__(self, other):
19827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19828
 
19829
  def __ne__(self, other):
19830
    return not (self == other)
19831
 
19832
class deleteVoucherForItem_result:
19833
  """
19834
  Attributes:
19835
   - success
19836
   - cex
19837
  """
19838
 
19839
  thrift_spec = (
19840
    (0, TType.BOOL, 'success', None, None, ), # 0
19841
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19842
  )
19843
 
19844
  def __init__(self, success=None, cex=None,):
19845
    self.success = success
19846
    self.cex = cex
19847
 
19848
  def read(self, iprot):
19849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19851
      return
19852
    iprot.readStructBegin()
19853
    while True:
19854
      (fname, ftype, fid) = iprot.readFieldBegin()
19855
      if ftype == TType.STOP:
19856
        break
19857
      if fid == 0:
19858
        if ftype == TType.BOOL:
19859
          self.success = iprot.readBool();
19860
        else:
19861
          iprot.skip(ftype)
19862
      elif fid == 1:
19863
        if ftype == TType.STRUCT:
19864
          self.cex = CatalogServiceException()
19865
          self.cex.read(iprot)
19866
        else:
19867
          iprot.skip(ftype)
19868
      else:
19869
        iprot.skip(ftype)
19870
      iprot.readFieldEnd()
19871
    iprot.readStructEnd()
19872
 
19873
  def write(self, oprot):
19874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19876
      return
19877
    oprot.writeStructBegin('deleteVoucherForItem_result')
19878
    if self.success is not None:
19879
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19880
      oprot.writeBool(self.success)
19881
      oprot.writeFieldEnd()
19882
    if self.cex is not None:
19883
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19884
      self.cex.write(oprot)
19885
      oprot.writeFieldEnd()
19886
    oprot.writeFieldStop()
19887
    oprot.writeStructEnd()
19888
 
19889
  def validate(self):
19890
    return
19891
 
19892
 
19893
  def __repr__(self):
19894
    L = ['%s=%r' % (key, value)
19895
      for key, value in self.__dict__.iteritems()]
19896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19897
 
19898
  def __eq__(self, other):
19899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19900
 
19901
  def __ne__(self, other):
19902
    return not (self == other)
19903
 
19904
class getVoucherAmount_args:
19905
  """
19906
  Attributes:
19907
   - itemId
19908
   - voucherType
19909
  """
19910
 
19911
  thrift_spec = (
19912
    None, # 0
19913
    (1, TType.I64, 'itemId', None, None, ), # 1
19914
    (2, TType.I64, 'voucherType', None, None, ), # 2
19915
  )
19916
 
19917
  def __init__(self, itemId=None, voucherType=None,):
19918
    self.itemId = itemId
19919
    self.voucherType = voucherType
19920
 
19921
  def read(self, iprot):
19922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19924
      return
19925
    iprot.readStructBegin()
19926
    while True:
19927
      (fname, ftype, fid) = iprot.readFieldBegin()
19928
      if ftype == TType.STOP:
19929
        break
19930
      if fid == 1:
19931
        if ftype == TType.I64:
19932
          self.itemId = iprot.readI64();
19933
        else:
19934
          iprot.skip(ftype)
19935
      elif fid == 2:
19936
        if ftype == TType.I64:
19937
          self.voucherType = iprot.readI64();
19938
        else:
19939
          iprot.skip(ftype)
19940
      else:
19941
        iprot.skip(ftype)
19942
      iprot.readFieldEnd()
19943
    iprot.readStructEnd()
19944
 
19945
  def write(self, oprot):
19946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19948
      return
19949
    oprot.writeStructBegin('getVoucherAmount_args')
19950
    if self.itemId is not None:
19951
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19952
      oprot.writeI64(self.itemId)
19953
      oprot.writeFieldEnd()
19954
    if self.voucherType is not None:
19955
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19956
      oprot.writeI64(self.voucherType)
19957
      oprot.writeFieldEnd()
19958
    oprot.writeFieldStop()
19959
    oprot.writeStructEnd()
19960
 
19961
  def validate(self):
19962
    return
19963
 
19964
 
19965
  def __repr__(self):
19966
    L = ['%s=%r' % (key, value)
19967
      for key, value in self.__dict__.iteritems()]
19968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19969
 
19970
  def __eq__(self, other):
19971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19972
 
19973
  def __ne__(self, other):
19974
    return not (self == other)
19975
 
19976
class getVoucherAmount_result:
19977
  """
19978
  Attributes:
19979
   - success
19980
  """
19981
 
19982
  thrift_spec = (
19983
    (0, TType.I64, 'success', None, None, ), # 0
19984
  )
19985
 
19986
  def __init__(self, success=None,):
19987
    self.success = success
19988
 
19989
  def read(self, iprot):
19990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19992
      return
19993
    iprot.readStructBegin()
19994
    while True:
19995
      (fname, ftype, fid) = iprot.readFieldBegin()
19996
      if ftype == TType.STOP:
19997
        break
19998
      if fid == 0:
19999
        if ftype == TType.I64:
20000
          self.success = iprot.readI64();
20001
        else:
20002
          iprot.skip(ftype)
20003
      else:
20004
        iprot.skip(ftype)
20005
      iprot.readFieldEnd()
20006
    iprot.readStructEnd()
20007
 
20008
  def write(self, oprot):
20009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20011
      return
20012
    oprot.writeStructBegin('getVoucherAmount_result')
20013
    if self.success is not None:
20014
      oprot.writeFieldBegin('success', TType.I64, 0)
20015
      oprot.writeI64(self.success)
20016
      oprot.writeFieldEnd()
20017
    oprot.writeFieldStop()
20018
    oprot.writeStructEnd()
20019
 
20020
  def validate(self):
20021
    return
20022
 
20023
 
20024
  def __repr__(self):
20025
    L = ['%s=%r' % (key, value)
20026
      for key, value in self.__dict__.iteritems()]
20027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20028
 
20029
  def __eq__(self, other):
20030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20031
 
20032
  def __ne__(self, other):
20033
    return not (self == other)
20034
 
20035
class getAllItemVouchers_args:
20036
  """
20037
  Attributes:
20038
   - itemId
20039
  """
20040
 
20041
  thrift_spec = (
20042
    None, # 0
20043
    (1, TType.I64, 'itemId', None, None, ), # 1
20044
  )
20045
 
20046
  def __init__(self, itemId=None,):
20047
    self.itemId = itemId
20048
 
20049
  def read(self, iprot):
20050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20052
      return
20053
    iprot.readStructBegin()
20054
    while True:
20055
      (fname, ftype, fid) = iprot.readFieldBegin()
20056
      if ftype == TType.STOP:
20057
        break
20058
      if fid == 1:
20059
        if ftype == TType.I64:
20060
          self.itemId = iprot.readI64();
20061
        else:
20062
          iprot.skip(ftype)
20063
      else:
20064
        iprot.skip(ftype)
20065
      iprot.readFieldEnd()
20066
    iprot.readStructEnd()
20067
 
20068
  def write(self, oprot):
20069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20071
      return
20072
    oprot.writeStructBegin('getAllItemVouchers_args')
20073
    if self.itemId is not None:
20074
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20075
      oprot.writeI64(self.itemId)
20076
      oprot.writeFieldEnd()
20077
    oprot.writeFieldStop()
20078
    oprot.writeStructEnd()
20079
 
20080
  def validate(self):
20081
    return
20082
 
20083
 
20084
  def __repr__(self):
20085
    L = ['%s=%r' % (key, value)
20086
      for key, value in self.__dict__.iteritems()]
20087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20088
 
20089
  def __eq__(self, other):
20090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20091
 
20092
  def __ne__(self, other):
20093
    return not (self == other)
20094
 
20095
class getAllItemVouchers_result:
20096
  """
20097
  Attributes:
20098
   - success
20099
  """
20100
 
20101
  thrift_spec = (
20102
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20103
  )
20104
 
20105
  def __init__(self, success=None,):
20106
    self.success = success
20107
 
20108
  def read(self, iprot):
20109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20111
      return
20112
    iprot.readStructBegin()
20113
    while True:
20114
      (fname, ftype, fid) = iprot.readFieldBegin()
20115
      if ftype == TType.STOP:
20116
        break
20117
      if fid == 0:
20118
        if ftype == TType.LIST:
20119
          self.success = []
12567 amit.gupta 20120
          (_etype372, _size369) = iprot.readListBegin()
20121
          for _i373 in xrange(_size369):
20122
            _elem374 = VoucherItemMapping()
20123
            _elem374.read(iprot)
20124
            self.success.append(_elem374)
5944 mandeep.dh 20125
          iprot.readListEnd()
20126
        else:
20127
          iprot.skip(ftype)
20128
      else:
20129
        iprot.skip(ftype)
20130
      iprot.readFieldEnd()
20131
    iprot.readStructEnd()
20132
 
20133
  def write(self, oprot):
20134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20136
      return
20137
    oprot.writeStructBegin('getAllItemVouchers_result')
20138
    if self.success is not None:
20139
      oprot.writeFieldBegin('success', TType.LIST, 0)
20140
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20141
      for iter375 in self.success:
20142
        iter375.write(oprot)
5944 mandeep.dh 20143
      oprot.writeListEnd()
20144
      oprot.writeFieldEnd()
20145
    oprot.writeFieldStop()
20146
    oprot.writeStructEnd()
20147
 
20148
  def validate(self):
20149
    return
20150
 
20151
 
20152
  def __repr__(self):
20153
    L = ['%s=%r' % (key, value)
20154
      for key, value in self.__dict__.iteritems()]
20155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20156
 
20157
  def __eq__(self, other):
20158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20159
 
20160
  def __ne__(self, other):
20161
    return not (self == other)
20162
 
20163
class isValidCatalogItemId_args:
20164
  """
20165
  Attributes:
20166
   - catalog_item_id
20167
  """
20168
 
20169
  thrift_spec = (
20170
    None, # 0
20171
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20172
  )
20173
 
20174
  def __init__(self, catalog_item_id=None,):
20175
    self.catalog_item_id = catalog_item_id
20176
 
20177
  def read(self, iprot):
20178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20180
      return
20181
    iprot.readStructBegin()
20182
    while True:
20183
      (fname, ftype, fid) = iprot.readFieldBegin()
20184
      if ftype == TType.STOP:
20185
        break
20186
      if fid == 1:
20187
        if ftype == TType.I64:
20188
          self.catalog_item_id = iprot.readI64();
20189
        else:
20190
          iprot.skip(ftype)
20191
      else:
20192
        iprot.skip(ftype)
20193
      iprot.readFieldEnd()
20194
    iprot.readStructEnd()
20195
 
20196
  def write(self, oprot):
20197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20199
      return
20200
    oprot.writeStructBegin('isValidCatalogItemId_args')
20201
    if self.catalog_item_id is not None:
20202
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20203
      oprot.writeI64(self.catalog_item_id)
20204
      oprot.writeFieldEnd()
20205
    oprot.writeFieldStop()
20206
    oprot.writeStructEnd()
20207
 
20208
  def validate(self):
20209
    return
20210
 
20211
 
20212
  def __repr__(self):
20213
    L = ['%s=%r' % (key, value)
20214
      for key, value in self.__dict__.iteritems()]
20215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20216
 
20217
  def __eq__(self, other):
20218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20219
 
20220
  def __ne__(self, other):
20221
    return not (self == other)
20222
 
20223
class isValidCatalogItemId_result:
20224
  """
20225
  Attributes:
20226
   - success
20227
  """
20228
 
20229
  thrift_spec = (
20230
    (0, TType.BOOL, 'success', None, None, ), # 0
20231
  )
20232
 
20233
  def __init__(self, success=None,):
20234
    self.success = success
20235
 
20236
  def read(self, iprot):
20237
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20238
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20239
      return
20240
    iprot.readStructBegin()
20241
    while True:
20242
      (fname, ftype, fid) = iprot.readFieldBegin()
20243
      if ftype == TType.STOP:
20244
        break
20245
      if fid == 0:
20246
        if ftype == TType.BOOL:
20247
          self.success = iprot.readBool();
20248
        else:
20249
          iprot.skip(ftype)
20250
      else:
20251
        iprot.skip(ftype)
20252
      iprot.readFieldEnd()
20253
    iprot.readStructEnd()
20254
 
20255
  def write(self, oprot):
20256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20258
      return
20259
    oprot.writeStructBegin('isValidCatalogItemId_result')
20260
    if self.success is not None:
20261
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20262
      oprot.writeBool(self.success)
20263
      oprot.writeFieldEnd()
20264
    oprot.writeFieldStop()
20265
    oprot.writeStructEnd()
20266
 
20267
  def validate(self):
20268
    return
20269
 
20270
 
20271
  def __repr__(self):
20272
    L = ['%s=%r' % (key, value)
20273
      for key, value in self.__dict__.iteritems()]
20274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20275
 
20276
  def __eq__(self, other):
20277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20278
 
20279
  def __ne__(self, other):
20280
    return not (self == other)
6039 amit.gupta 20281
 
20282
class getVatPercentageForItem_args:
20283
  """
20284
  Attributes:
20285
   - itemId
7330 amit.gupta 20286
   - stateId
6039 amit.gupta 20287
   - price
20288
  """
20289
 
20290
  thrift_spec = (
20291
    None, # 0
20292
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20293
    (2, TType.I64, 'stateId', None, None, ), # 2
20294
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20295
  )
20296
 
7330 amit.gupta 20297
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20298
    self.itemId = itemId
7330 amit.gupta 20299
    self.stateId = stateId
6039 amit.gupta 20300
    self.price = price
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 == 1:
20312
        if ftype == TType.I64:
20313
          self.itemId = iprot.readI64();
20314
        else:
20315
          iprot.skip(ftype)
20316
      elif fid == 2:
7330 amit.gupta 20317
        if ftype == TType.I64:
20318
          self.stateId = iprot.readI64();
20319
        else:
20320
          iprot.skip(ftype)
20321
      elif fid == 3:
6039 amit.gupta 20322
        if ftype == TType.DOUBLE:
20323
          self.price = iprot.readDouble();
20324
        else:
20325
          iprot.skip(ftype)
20326
      else:
20327
        iprot.skip(ftype)
20328
      iprot.readFieldEnd()
20329
    iprot.readStructEnd()
20330
 
20331
  def write(self, oprot):
20332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20334
      return
20335
    oprot.writeStructBegin('getVatPercentageForItem_args')
20336
    if self.itemId is not None:
20337
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20338
      oprot.writeI64(self.itemId)
20339
      oprot.writeFieldEnd()
7330 amit.gupta 20340
    if self.stateId is not None:
20341
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20342
      oprot.writeI64(self.stateId)
20343
      oprot.writeFieldEnd()
6039 amit.gupta 20344
    if self.price is not None:
7330 amit.gupta 20345
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20346
      oprot.writeDouble(self.price)
20347
      oprot.writeFieldEnd()
20348
    oprot.writeFieldStop()
20349
    oprot.writeStructEnd()
20350
 
20351
  def validate(self):
20352
    return
20353
 
20354
 
20355
  def __repr__(self):
20356
    L = ['%s=%r' % (key, value)
20357
      for key, value in self.__dict__.iteritems()]
20358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20359
 
20360
  def __eq__(self, other):
20361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20362
 
20363
  def __ne__(self, other):
20364
    return not (self == other)
20365
 
20366
class getVatPercentageForItem_result:
20367
  """
20368
  Attributes:
20369
   - success
7340 amit.gupta 20370
   - cex
6039 amit.gupta 20371
  """
20372
 
20373
  thrift_spec = (
20374
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20375
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20376
  )
20377
 
7340 amit.gupta 20378
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20379
    self.success = success
7340 amit.gupta 20380
    self.cex = cex
6039 amit.gupta 20381
 
20382
  def read(self, iprot):
20383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20385
      return
20386
    iprot.readStructBegin()
20387
    while True:
20388
      (fname, ftype, fid) = iprot.readFieldBegin()
20389
      if ftype == TType.STOP:
20390
        break
20391
      if fid == 0:
20392
        if ftype == TType.DOUBLE:
20393
          self.success = iprot.readDouble();
20394
        else:
20395
          iprot.skip(ftype)
7340 amit.gupta 20396
      elif fid == 1:
20397
        if ftype == TType.STRUCT:
20398
          self.cex = CatalogServiceException()
20399
          self.cex.read(iprot)
20400
        else:
20401
          iprot.skip(ftype)
6039 amit.gupta 20402
      else:
20403
        iprot.skip(ftype)
20404
      iprot.readFieldEnd()
20405
    iprot.readStructEnd()
20406
 
20407
  def write(self, oprot):
20408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20410
      return
20411
    oprot.writeStructBegin('getVatPercentageForItem_result')
20412
    if self.success is not None:
20413
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20414
      oprot.writeDouble(self.success)
20415
      oprot.writeFieldEnd()
7340 amit.gupta 20416
    if self.cex is not None:
20417
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20418
      self.cex.write(oprot)
20419
      oprot.writeFieldEnd()
6039 amit.gupta 20420
    oprot.writeFieldStop()
20421
    oprot.writeStructEnd()
20422
 
20423
  def validate(self):
20424
    return
20425
 
20426
 
20427
  def __repr__(self):
20428
    L = ['%s=%r' % (key, value)
20429
      for key, value in self.__dict__.iteritems()]
20430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20431
 
20432
  def __eq__(self, other):
20433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20434
 
20435
  def __ne__(self, other):
20436
    return not (self == other)
20437
 
20438
class getVatAmountForItem_args:
20439
  """
20440
  Attributes:
20441
   - itemId
20442
   - price
20443
  """
20444
 
20445
  thrift_spec = (
20446
    None, # 0
20447
    (1, TType.I64, 'itemId', None, None, ), # 1
20448
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20449
  )
20450
 
20451
  def __init__(self, itemId=None, price=None,):
20452
    self.itemId = itemId
20453
    self.price = price
20454
 
20455
  def read(self, iprot):
20456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20458
      return
20459
    iprot.readStructBegin()
20460
    while True:
20461
      (fname, ftype, fid) = iprot.readFieldBegin()
20462
      if ftype == TType.STOP:
20463
        break
20464
      if fid == 1:
20465
        if ftype == TType.I64:
20466
          self.itemId = iprot.readI64();
20467
        else:
20468
          iprot.skip(ftype)
20469
      elif fid == 2:
20470
        if ftype == TType.DOUBLE:
20471
          self.price = iprot.readDouble();
20472
        else:
20473
          iprot.skip(ftype)
20474
      else:
20475
        iprot.skip(ftype)
20476
      iprot.readFieldEnd()
20477
    iprot.readStructEnd()
20478
 
20479
  def write(self, oprot):
20480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20482
      return
20483
    oprot.writeStructBegin('getVatAmountForItem_args')
20484
    if self.itemId is not None:
20485
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20486
      oprot.writeI64(self.itemId)
20487
      oprot.writeFieldEnd()
20488
    if self.price is not None:
20489
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20490
      oprot.writeDouble(self.price)
20491
      oprot.writeFieldEnd()
20492
    oprot.writeFieldStop()
20493
    oprot.writeStructEnd()
20494
 
20495
  def validate(self):
20496
    return
20497
 
20498
 
20499
  def __repr__(self):
20500
    L = ['%s=%r' % (key, value)
20501
      for key, value in self.__dict__.iteritems()]
20502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20503
 
20504
  def __eq__(self, other):
20505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20506
 
20507
  def __ne__(self, other):
20508
    return not (self == other)
20509
 
20510
class getVatAmountForItem_result:
20511
  """
20512
  Attributes:
20513
   - success
20514
  """
20515
 
20516
  thrift_spec = (
20517
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20518
  )
20519
 
20520
  def __init__(self, success=None,):
20521
    self.success = success
20522
 
20523
  def read(self, iprot):
20524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20526
      return
20527
    iprot.readStructBegin()
20528
    while True:
20529
      (fname, ftype, fid) = iprot.readFieldBegin()
20530
      if ftype == TType.STOP:
20531
        break
20532
      if fid == 0:
20533
        if ftype == TType.DOUBLE:
20534
          self.success = iprot.readDouble();
20535
        else:
20536
          iprot.skip(ftype)
20537
      else:
20538
        iprot.skip(ftype)
20539
      iprot.readFieldEnd()
20540
    iprot.readStructEnd()
20541
 
20542
  def write(self, oprot):
20543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20545
      return
20546
    oprot.writeStructBegin('getVatAmountForItem_result')
20547
    if self.success is not None:
20548
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20549
      oprot.writeDouble(self.success)
20550
      oprot.writeFieldEnd()
20551
    oprot.writeFieldStop()
20552
    oprot.writeStructEnd()
20553
 
20554
  def validate(self):
20555
    return
20556
 
20557
 
20558
  def __repr__(self):
20559
    L = ['%s=%r' % (key, value)
20560
      for key, value in self.__dict__.iteritems()]
20561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20562
 
20563
  def __eq__(self, other):
20564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20565
 
20566
  def __ne__(self, other):
20567
    return not (self == other)
6531 vikram.rag 20568
 
20569
class getAllIgnoredInventoryUpdateItemsList_args:
20570
  """
20571
  Attributes:
20572
   - offset
20573
   - limit
20574
  """
20575
 
20576
  thrift_spec = (
20577
    None, # 0
20578
    (1, TType.I32, 'offset', None, None, ), # 1
20579
    (2, TType.I32, 'limit', None, None, ), # 2
20580
  )
20581
 
20582
  def __init__(self, offset=None, limit=None,):
20583
    self.offset = offset
20584
    self.limit = limit
20585
 
20586
  def read(self, iprot):
20587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20589
      return
20590
    iprot.readStructBegin()
20591
    while True:
20592
      (fname, ftype, fid) = iprot.readFieldBegin()
20593
      if ftype == TType.STOP:
20594
        break
20595
      if fid == 1:
20596
        if ftype == TType.I32:
20597
          self.offset = iprot.readI32();
20598
        else:
20599
          iprot.skip(ftype)
20600
      elif fid == 2:
20601
        if ftype == TType.I32:
20602
          self.limit = iprot.readI32();
20603
        else:
20604
          iprot.skip(ftype)
20605
      else:
20606
        iprot.skip(ftype)
20607
      iprot.readFieldEnd()
20608
    iprot.readStructEnd()
20609
 
20610
  def write(self, oprot):
20611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20613
      return
20614
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20615
    if self.offset is not None:
20616
      oprot.writeFieldBegin('offset', TType.I32, 1)
20617
      oprot.writeI32(self.offset)
20618
      oprot.writeFieldEnd()
20619
    if self.limit is not None:
20620
      oprot.writeFieldBegin('limit', TType.I32, 2)
20621
      oprot.writeI32(self.limit)
20622
      oprot.writeFieldEnd()
20623
    oprot.writeFieldStop()
20624
    oprot.writeStructEnd()
20625
 
20626
  def validate(self):
20627
    return
20628
 
20629
 
20630
  def __repr__(self):
20631
    L = ['%s=%r' % (key, value)
20632
      for key, value in self.__dict__.iteritems()]
20633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20634
 
20635
  def __eq__(self, other):
20636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20637
 
20638
  def __ne__(self, other):
20639
    return not (self == other)
20640
 
20641
class getAllIgnoredInventoryUpdateItemsList_result:
20642
  """
20643
  Attributes:
20644
   - success
20645
  """
20646
 
20647
  thrift_spec = (
20648
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20649
  )
20650
 
20651
  def __init__(self, success=None,):
20652
    self.success = success
20653
 
20654
  def read(self, iprot):
20655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20657
      return
20658
    iprot.readStructBegin()
20659
    while True:
20660
      (fname, ftype, fid) = iprot.readFieldBegin()
20661
      if ftype == TType.STOP:
20662
        break
20663
      if fid == 0:
20664
        if ftype == TType.LIST:
20665
          self.success = []
12567 amit.gupta 20666
          (_etype379, _size376) = iprot.readListBegin()
20667
          for _i380 in xrange(_size376):
20668
            _elem381 = Item()
20669
            _elem381.read(iprot)
20670
            self.success.append(_elem381)
6531 vikram.rag 20671
          iprot.readListEnd()
20672
        else:
20673
          iprot.skip(ftype)
20674
      else:
20675
        iprot.skip(ftype)
20676
      iprot.readFieldEnd()
20677
    iprot.readStructEnd()
20678
 
20679
  def write(self, oprot):
20680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20682
      return
20683
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20684
    if self.success is not None:
20685
      oprot.writeFieldBegin('success', TType.LIST, 0)
20686
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20687
      for iter382 in self.success:
20688
        iter382.write(oprot)
6531 vikram.rag 20689
      oprot.writeListEnd()
20690
      oprot.writeFieldEnd()
20691
    oprot.writeFieldStop()
20692
    oprot.writeStructEnd()
20693
 
20694
  def validate(self):
20695
    return
20696
 
20697
 
20698
  def __repr__(self):
20699
    L = ['%s=%r' % (key, value)
20700
      for key, value in self.__dict__.iteritems()]
20701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20702
 
20703
  def __eq__(self, other):
20704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20705
 
20706
  def __ne__(self, other):
20707
    return not (self == other)
6805 anupam.sin 20708
 
6821 amar.kumar 20709
class getAllAliveItems_args:
20710
 
20711
  thrift_spec = (
20712
  )
20713
 
20714
  def read(self, iprot):
20715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20717
      return
20718
    iprot.readStructBegin()
20719
    while True:
20720
      (fname, ftype, fid) = iprot.readFieldBegin()
20721
      if ftype == TType.STOP:
20722
        break
20723
      else:
20724
        iprot.skip(ftype)
20725
      iprot.readFieldEnd()
20726
    iprot.readStructEnd()
20727
 
20728
  def write(self, oprot):
20729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20731
      return
20732
    oprot.writeStructBegin('getAllAliveItems_args')
20733
    oprot.writeFieldStop()
20734
    oprot.writeStructEnd()
20735
 
20736
  def validate(self):
20737
    return
20738
 
20739
 
20740
  def __repr__(self):
20741
    L = ['%s=%r' % (key, value)
20742
      for key, value in self.__dict__.iteritems()]
20743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20744
 
20745
  def __eq__(self, other):
20746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20747
 
20748
  def __ne__(self, other):
20749
    return not (self == other)
20750
 
20751
class getAllAliveItems_result:
20752
  """
20753
  Attributes:
20754
   - success
20755
  """
20756
 
20757
  thrift_spec = (
20758
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20759
  )
20760
 
20761
  def __init__(self, success=None,):
20762
    self.success = success
20763
 
20764
  def read(self, iprot):
20765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20767
      return
20768
    iprot.readStructBegin()
20769
    while True:
20770
      (fname, ftype, fid) = iprot.readFieldBegin()
20771
      if ftype == TType.STOP:
20772
        break
20773
      if fid == 0:
20774
        if ftype == TType.LIST:
20775
          self.success = []
12567 amit.gupta 20776
          (_etype386, _size383) = iprot.readListBegin()
20777
          for _i387 in xrange(_size383):
20778
            _elem388 = Item()
20779
            _elem388.read(iprot)
20780
            self.success.append(_elem388)
6821 amar.kumar 20781
          iprot.readListEnd()
20782
        else:
20783
          iprot.skip(ftype)
20784
      else:
20785
        iprot.skip(ftype)
20786
      iprot.readFieldEnd()
20787
    iprot.readStructEnd()
20788
 
20789
  def write(self, oprot):
20790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20792
      return
20793
    oprot.writeStructBegin('getAllAliveItems_result')
20794
    if self.success is not None:
20795
      oprot.writeFieldBegin('success', TType.LIST, 0)
20796
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20797
      for iter389 in self.success:
20798
        iter389.write(oprot)
6821 amar.kumar 20799
      oprot.writeListEnd()
20800
      oprot.writeFieldEnd()
20801
    oprot.writeFieldStop()
20802
    oprot.writeStructEnd()
20803
 
20804
  def validate(self):
20805
    return
20806
 
20807
 
20808
  def __repr__(self):
20809
    L = ['%s=%r' % (key, value)
20810
      for key, value in self.__dict__.iteritems()]
20811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20812
 
20813
  def __eq__(self, other):
20814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20815
 
20816
  def __ne__(self, other):
20817
    return not (self == other)
20818
 
6805 anupam.sin 20819
class getInsuranceAmount_args:
20820
  """
20821
  Attributes:
20822
   - itemId
6921 anupam.sin 20823
   - price
6805 anupam.sin 20824
   - insurerId
20825
   - quantity
20826
  """
20827
 
20828
  thrift_spec = (
20829
    None, # 0
20830
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 20831
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20832
    (3, TType.I64, 'insurerId', None, None, ), # 3
20833
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 20834
  )
20835
 
6921 anupam.sin 20836
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 20837
    self.itemId = itemId
6921 anupam.sin 20838
    self.price = price
6805 anupam.sin 20839
    self.insurerId = insurerId
20840
    self.quantity = quantity
20841
 
20842
  def read(self, iprot):
20843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20845
      return
20846
    iprot.readStructBegin()
20847
    while True:
20848
      (fname, ftype, fid) = iprot.readFieldBegin()
20849
      if ftype == TType.STOP:
20850
        break
20851
      if fid == 1:
20852
        if ftype == TType.I64:
20853
          self.itemId = iprot.readI64();
20854
        else:
20855
          iprot.skip(ftype)
20856
      elif fid == 2:
6921 anupam.sin 20857
        if ftype == TType.DOUBLE:
20858
          self.price = iprot.readDouble();
20859
        else:
20860
          iprot.skip(ftype)
20861
      elif fid == 3:
6805 anupam.sin 20862
        if ftype == TType.I64:
20863
          self.insurerId = iprot.readI64();
20864
        else:
20865
          iprot.skip(ftype)
6921 anupam.sin 20866
      elif fid == 4:
6805 anupam.sin 20867
        if ftype == TType.I64:
20868
          self.quantity = iprot.readI64();
20869
        else:
20870
          iprot.skip(ftype)
20871
      else:
20872
        iprot.skip(ftype)
20873
      iprot.readFieldEnd()
20874
    iprot.readStructEnd()
20875
 
20876
  def write(self, oprot):
20877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20879
      return
20880
    oprot.writeStructBegin('getInsuranceAmount_args')
20881
    if self.itemId is not None:
20882
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20883
      oprot.writeI64(self.itemId)
20884
      oprot.writeFieldEnd()
6921 anupam.sin 20885
    if self.price is not None:
20886
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20887
      oprot.writeDouble(self.price)
20888
      oprot.writeFieldEnd()
6805 anupam.sin 20889
    if self.insurerId is not None:
6921 anupam.sin 20890
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 20891
      oprot.writeI64(self.insurerId)
20892
      oprot.writeFieldEnd()
20893
    if self.quantity is not None:
6921 anupam.sin 20894
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 20895
      oprot.writeI64(self.quantity)
20896
      oprot.writeFieldEnd()
20897
    oprot.writeFieldStop()
20898
    oprot.writeStructEnd()
20899
 
20900
  def validate(self):
20901
    return
20902
 
20903
 
20904
  def __repr__(self):
20905
    L = ['%s=%r' % (key, value)
20906
      for key, value in self.__dict__.iteritems()]
20907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20908
 
20909
  def __eq__(self, other):
20910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20911
 
20912
  def __ne__(self, other):
20913
    return not (self == other)
20914
 
20915
class getInsuranceAmount_result:
20916
  """
20917
  Attributes:
20918
   - success
20919
  """
20920
 
20921
  thrift_spec = (
20922
    (0, TType.I64, 'success', None, None, ), # 0
20923
  )
20924
 
20925
  def __init__(self, success=None,):
20926
    self.success = success
20927
 
20928
  def read(self, iprot):
20929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20931
      return
20932
    iprot.readStructBegin()
20933
    while True:
20934
      (fname, ftype, fid) = iprot.readFieldBegin()
20935
      if ftype == TType.STOP:
20936
        break
20937
      if fid == 0:
20938
        if ftype == TType.I64:
20939
          self.success = iprot.readI64();
20940
        else:
20941
          iprot.skip(ftype)
20942
      else:
20943
        iprot.skip(ftype)
20944
      iprot.readFieldEnd()
20945
    iprot.readStructEnd()
20946
 
20947
  def write(self, oprot):
20948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20950
      return
20951
    oprot.writeStructBegin('getInsuranceAmount_result')
20952
    if self.success is not None:
20953
      oprot.writeFieldBegin('success', TType.I64, 0)
20954
      oprot.writeI64(self.success)
20955
      oprot.writeFieldEnd()
20956
    oprot.writeFieldStop()
20957
    oprot.writeStructEnd()
20958
 
20959
  def validate(self):
20960
    return
20961
 
20962
 
20963
  def __repr__(self):
20964
    L = ['%s=%r' % (key, value)
20965
      for key, value in self.__dict__.iteritems()]
20966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20967
 
20968
  def __eq__(self, other):
20969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20970
 
20971
  def __ne__(self, other):
20972
    return not (self == other)
20973
 
20974
class getInsurer_args:
20975
  """
20976
  Attributes:
20977
   - insurerId
20978
  """
20979
 
20980
  thrift_spec = (
20981
    None, # 0
20982
    (1, TType.I64, 'insurerId', None, None, ), # 1
20983
  )
20984
 
20985
  def __init__(self, insurerId=None,):
20986
    self.insurerId = insurerId
20987
 
20988
  def read(self, iprot):
20989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20991
      return
20992
    iprot.readStructBegin()
20993
    while True:
20994
      (fname, ftype, fid) = iprot.readFieldBegin()
20995
      if ftype == TType.STOP:
20996
        break
20997
      if fid == 1:
20998
        if ftype == TType.I64:
20999
          self.insurerId = iprot.readI64();
21000
        else:
21001
          iprot.skip(ftype)
21002
      else:
21003
        iprot.skip(ftype)
21004
      iprot.readFieldEnd()
21005
    iprot.readStructEnd()
21006
 
21007
  def write(self, oprot):
21008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21010
      return
21011
    oprot.writeStructBegin('getInsurer_args')
21012
    if self.insurerId is not None:
21013
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21014
      oprot.writeI64(self.insurerId)
21015
      oprot.writeFieldEnd()
21016
    oprot.writeFieldStop()
21017
    oprot.writeStructEnd()
21018
 
21019
  def validate(self):
21020
    return
21021
 
21022
 
21023
  def __repr__(self):
21024
    L = ['%s=%r' % (key, value)
21025
      for key, value in self.__dict__.iteritems()]
21026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21027
 
21028
  def __eq__(self, other):
21029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21030
 
21031
  def __ne__(self, other):
21032
    return not (self == other)
21033
 
21034
class getInsurer_result:
21035
  """
21036
  Attributes:
21037
   - success
21038
  """
21039
 
21040
  thrift_spec = (
21041
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
21042
  )
21043
 
21044
  def __init__(self, success=None,):
21045
    self.success = success
21046
 
21047
  def read(self, iprot):
21048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21050
      return
21051
    iprot.readStructBegin()
21052
    while True:
21053
      (fname, ftype, fid) = iprot.readFieldBegin()
21054
      if ftype == TType.STOP:
21055
        break
21056
      if fid == 0:
21057
        if ftype == TType.STRUCT:
21058
          self.success = Insurer()
21059
          self.success.read(iprot)
21060
        else:
21061
          iprot.skip(ftype)
21062
      else:
21063
        iprot.skip(ftype)
21064
      iprot.readFieldEnd()
21065
    iprot.readStructEnd()
21066
 
21067
  def write(self, oprot):
21068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21070
      return
21071
    oprot.writeStructBegin('getInsurer_result')
21072
    if self.success is not None:
21073
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21074
      self.success.write(oprot)
21075
      oprot.writeFieldEnd()
21076
    oprot.writeFieldStop()
21077
    oprot.writeStructEnd()
21078
 
21079
  def validate(self):
21080
    return
21081
 
21082
 
21083
  def __repr__(self):
21084
    L = ['%s=%r' % (key, value)
21085
      for key, value in self.__dict__.iteritems()]
21086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21087
 
21088
  def __eq__(self, other):
21089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21090
 
21091
  def __ne__(self, other):
21092
    return not (self == other)
6838 vikram.rag 21093
 
21094
class getAllInsurers_args:
21095
 
21096
  thrift_spec = (
21097
  )
21098
 
21099
  def read(self, iprot):
21100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21102
      return
21103
    iprot.readStructBegin()
21104
    while True:
21105
      (fname, ftype, fid) = iprot.readFieldBegin()
21106
      if ftype == TType.STOP:
21107
        break
21108
      else:
21109
        iprot.skip(ftype)
21110
      iprot.readFieldEnd()
21111
    iprot.readStructEnd()
21112
 
21113
  def write(self, oprot):
21114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21116
      return
21117
    oprot.writeStructBegin('getAllInsurers_args')
21118
    oprot.writeFieldStop()
21119
    oprot.writeStructEnd()
21120
 
21121
  def validate(self):
21122
    return
21123
 
21124
 
21125
  def __repr__(self):
21126
    L = ['%s=%r' % (key, value)
21127
      for key, value in self.__dict__.iteritems()]
21128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21129
 
21130
  def __eq__(self, other):
21131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21132
 
21133
  def __ne__(self, other):
21134
    return not (self == other)
21135
 
21136
class getAllInsurers_result:
21137
  """
21138
  Attributes:
21139
   - success
21140
  """
21141
 
21142
  thrift_spec = (
21143
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21144
  )
21145
 
21146
  def __init__(self, success=None,):
21147
    self.success = success
21148
 
21149
  def read(self, iprot):
21150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21152
      return
21153
    iprot.readStructBegin()
21154
    while True:
21155
      (fname, ftype, fid) = iprot.readFieldBegin()
21156
      if ftype == TType.STOP:
21157
        break
21158
      if fid == 0:
21159
        if ftype == TType.LIST:
21160
          self.success = []
12567 amit.gupta 21161
          (_etype393, _size390) = iprot.readListBegin()
21162
          for _i394 in xrange(_size390):
21163
            _elem395 = Insurer()
21164
            _elem395.read(iprot)
21165
            self.success.append(_elem395)
6838 vikram.rag 21166
          iprot.readListEnd()
21167
        else:
21168
          iprot.skip(ftype)
21169
      else:
21170
        iprot.skip(ftype)
21171
      iprot.readFieldEnd()
21172
    iprot.readStructEnd()
21173
 
21174
  def write(self, oprot):
21175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21177
      return
21178
    oprot.writeStructBegin('getAllInsurers_result')
21179
    if self.success is not None:
21180
      oprot.writeFieldBegin('success', TType.LIST, 0)
21181
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21182
      for iter396 in self.success:
21183
        iter396.write(oprot)
6838 vikram.rag 21184
      oprot.writeListEnd()
21185
      oprot.writeFieldEnd()
21186
    oprot.writeFieldStop()
21187
    oprot.writeStructEnd()
21188
 
21189
  def validate(self):
21190
    return
21191
 
21192
 
21193
  def __repr__(self):
21194
    L = ['%s=%r' % (key, value)
21195
      for key, value in self.__dict__.iteritems()]
21196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21197
 
21198
  def __eq__(self, other):
21199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21200
 
21201
  def __ne__(self, other):
21202
    return not (self == other)
6962 rajveer 21203
 
21204
class updateInsuranceDeclaredAmount_args:
21205
  """
21206
  Attributes:
21207
   - insurerId
21208
   - amount
21209
  """
21210
 
21211
  thrift_spec = (
21212
    None, # 0
21213
    (1, TType.I64, 'insurerId', None, None, ), # 1
21214
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21215
  )
21216
 
21217
  def __init__(self, insurerId=None, amount=None,):
21218
    self.insurerId = insurerId
21219
    self.amount = amount
21220
 
21221
  def read(self, iprot):
21222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21224
      return
21225
    iprot.readStructBegin()
21226
    while True:
21227
      (fname, ftype, fid) = iprot.readFieldBegin()
21228
      if ftype == TType.STOP:
21229
        break
21230
      if fid == 1:
21231
        if ftype == TType.I64:
21232
          self.insurerId = iprot.readI64();
21233
        else:
21234
          iprot.skip(ftype)
21235
      elif fid == 2:
21236
        if ftype == TType.DOUBLE:
21237
          self.amount = iprot.readDouble();
21238
        else:
21239
          iprot.skip(ftype)
21240
      else:
21241
        iprot.skip(ftype)
21242
      iprot.readFieldEnd()
21243
    iprot.readStructEnd()
21244
 
21245
  def write(self, oprot):
21246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21248
      return
21249
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21250
    if self.insurerId is not None:
21251
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21252
      oprot.writeI64(self.insurerId)
21253
      oprot.writeFieldEnd()
21254
    if self.amount is not None:
21255
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21256
      oprot.writeDouble(self.amount)
21257
      oprot.writeFieldEnd()
21258
    oprot.writeFieldStop()
21259
    oprot.writeStructEnd()
21260
 
21261
  def validate(self):
21262
    return
21263
 
21264
 
21265
  def __repr__(self):
21266
    L = ['%s=%r' % (key, value)
21267
      for key, value in self.__dict__.iteritems()]
21268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21269
 
21270
  def __eq__(self, other):
21271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21272
 
21273
  def __ne__(self, other):
21274
    return not (self == other)
21275
 
21276
class updateInsuranceDeclaredAmount_result:
21277
 
21278
  thrift_spec = (
21279
  )
21280
 
21281
  def read(self, iprot):
21282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21284
      return
21285
    iprot.readStructBegin()
21286
    while True:
21287
      (fname, ftype, fid) = iprot.readFieldBegin()
21288
      if ftype == TType.STOP:
21289
        break
21290
      else:
21291
        iprot.skip(ftype)
21292
      iprot.readFieldEnd()
21293
    iprot.readStructEnd()
21294
 
21295
  def write(self, oprot):
21296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21298
      return
21299
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21300
    oprot.writeFieldStop()
21301
    oprot.writeStructEnd()
21302
 
21303
  def validate(self):
21304
    return
21305
 
21306
 
21307
  def __repr__(self):
21308
    L = ['%s=%r' % (key, value)
21309
      for key, value in self.__dict__.iteritems()]
21310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21311
 
21312
  def __eq__(self, other):
21313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21314
 
21315
  def __ne__(self, other):
21316
    return not (self == other)
7190 amar.kumar 21317
 
21318
class getFreebieForItem_args:
21319
  """
21320
  Attributes:
21321
   - itemId
21322
  """
21323
 
21324
  thrift_spec = (
21325
    None, # 0
21326
    (1, TType.I64, 'itemId', None, None, ), # 1
21327
  )
21328
 
21329
  def __init__(self, itemId=None,):
21330
    self.itemId = itemId
21331
 
21332
  def read(self, iprot):
21333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21335
      return
21336
    iprot.readStructBegin()
21337
    while True:
21338
      (fname, ftype, fid) = iprot.readFieldBegin()
21339
      if ftype == TType.STOP:
21340
        break
21341
      if fid == 1:
21342
        if ftype == TType.I64:
21343
          self.itemId = iprot.readI64();
21344
        else:
21345
          iprot.skip(ftype)
21346
      else:
21347
        iprot.skip(ftype)
21348
      iprot.readFieldEnd()
21349
    iprot.readStructEnd()
21350
 
21351
  def write(self, oprot):
21352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21354
      return
21355
    oprot.writeStructBegin('getFreebieForItem_args')
21356
    if self.itemId is not None:
21357
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21358
      oprot.writeI64(self.itemId)
21359
      oprot.writeFieldEnd()
21360
    oprot.writeFieldStop()
21361
    oprot.writeStructEnd()
21362
 
21363
  def validate(self):
21364
    return
21365
 
21366
 
21367
  def __repr__(self):
21368
    L = ['%s=%r' % (key, value)
21369
      for key, value in self.__dict__.iteritems()]
21370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21371
 
21372
  def __eq__(self, other):
21373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21374
 
21375
  def __ne__(self, other):
21376
    return not (self == other)
21377
 
21378
class getFreebieForItem_result:
21379
  """
21380
  Attributes:
21381
   - success
21382
  """
21383
 
21384
  thrift_spec = (
21385
    (0, TType.I64, 'success', None, None, ), # 0
21386
  )
21387
 
21388
  def __init__(self, success=None,):
21389
    self.success = success
21390
 
21391
  def read(self, iprot):
21392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21394
      return
21395
    iprot.readStructBegin()
21396
    while True:
21397
      (fname, ftype, fid) = iprot.readFieldBegin()
21398
      if ftype == TType.STOP:
21399
        break
21400
      if fid == 0:
21401
        if ftype == TType.I64:
21402
          self.success = iprot.readI64();
21403
        else:
21404
          iprot.skip(ftype)
21405
      else:
21406
        iprot.skip(ftype)
21407
      iprot.readFieldEnd()
21408
    iprot.readStructEnd()
21409
 
21410
  def write(self, oprot):
21411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21413
      return
21414
    oprot.writeStructBegin('getFreebieForItem_result')
21415
    if self.success is not None:
21416
      oprot.writeFieldBegin('success', TType.I64, 0)
21417
      oprot.writeI64(self.success)
21418
      oprot.writeFieldEnd()
21419
    oprot.writeFieldStop()
21420
    oprot.writeStructEnd()
21421
 
21422
  def validate(self):
21423
    return
21424
 
21425
 
21426
  def __repr__(self):
21427
    L = ['%s=%r' % (key, value)
21428
      for key, value in self.__dict__.iteritems()]
21429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21430
 
21431
  def __eq__(self, other):
21432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21433
 
21434
  def __ne__(self, other):
21435
    return not (self == other)
21436
 
21437
class addOrUpdateFreebieForItem_args:
21438
  """
21439
  Attributes:
21440
   - freebieItem
21441
  """
21442
 
21443
  thrift_spec = (
21444
    None, # 0
21445
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21446
  )
21447
 
21448
  def __init__(self, freebieItem=None,):
21449
    self.freebieItem = freebieItem
21450
 
21451
  def read(self, iprot):
21452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21454
      return
21455
    iprot.readStructBegin()
21456
    while True:
21457
      (fname, ftype, fid) = iprot.readFieldBegin()
21458
      if ftype == TType.STOP:
21459
        break
21460
      if fid == 1:
21461
        if ftype == TType.STRUCT:
21462
          self.freebieItem = FreebieItem()
21463
          self.freebieItem.read(iprot)
21464
        else:
21465
          iprot.skip(ftype)
21466
      else:
21467
        iprot.skip(ftype)
21468
      iprot.readFieldEnd()
21469
    iprot.readStructEnd()
21470
 
21471
  def write(self, oprot):
21472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21474
      return
21475
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21476
    if self.freebieItem is not None:
21477
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21478
      self.freebieItem.write(oprot)
21479
      oprot.writeFieldEnd()
21480
    oprot.writeFieldStop()
21481
    oprot.writeStructEnd()
21482
 
21483
  def validate(self):
21484
    return
21485
 
21486
 
21487
  def __repr__(self):
21488
    L = ['%s=%r' % (key, value)
21489
      for key, value in self.__dict__.iteritems()]
21490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21491
 
21492
  def __eq__(self, other):
21493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21494
 
21495
  def __ne__(self, other):
21496
    return not (self == other)
21497
 
21498
class addOrUpdateFreebieForItem_result:
21499
 
21500
  thrift_spec = (
21501
  )
21502
 
21503
  def read(self, iprot):
21504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21506
      return
21507
    iprot.readStructBegin()
21508
    while True:
21509
      (fname, ftype, fid) = iprot.readFieldBegin()
21510
      if ftype == TType.STOP:
21511
        break
21512
      else:
21513
        iprot.skip(ftype)
21514
      iprot.readFieldEnd()
21515
    iprot.readStructEnd()
21516
 
21517
  def write(self, oprot):
21518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21520
      return
21521
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21522
    oprot.writeFieldStop()
21523
    oprot.writeStructEnd()
21524
 
21525
  def validate(self):
21526
    return
21527
 
21528
 
21529
  def __repr__(self):
21530
    L = ['%s=%r' % (key, value)
21531
      for key, value in self.__dict__.iteritems()]
21532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21533
 
21534
  def __eq__(self, other):
21535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21536
 
21537
  def __ne__(self, other):
21538
    return not (self == other)
7256 rajveer 21539
 
7272 amit.gupta 21540
class addOrUpdateBrandInfo_args:
21541
  """
21542
  Attributes:
21543
   - brandInfo
21544
  """
21545
 
21546
  thrift_spec = (
21547
    None, # 0
21548
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21549
  )
21550
 
21551
  def __init__(self, brandInfo=None,):
21552
    self.brandInfo = brandInfo
21553
 
21554
  def read(self, iprot):
21555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21557
      return
21558
    iprot.readStructBegin()
21559
    while True:
21560
      (fname, ftype, fid) = iprot.readFieldBegin()
21561
      if ftype == TType.STOP:
21562
        break
21563
      if fid == 1:
21564
        if ftype == TType.STRUCT:
21565
          self.brandInfo = BrandInfo()
21566
          self.brandInfo.read(iprot)
21567
        else:
21568
          iprot.skip(ftype)
21569
      else:
21570
        iprot.skip(ftype)
21571
      iprot.readFieldEnd()
21572
    iprot.readStructEnd()
21573
 
21574
  def write(self, oprot):
21575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21577
      return
21578
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21579
    if self.brandInfo is not None:
21580
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21581
      self.brandInfo.write(oprot)
21582
      oprot.writeFieldEnd()
21583
    oprot.writeFieldStop()
21584
    oprot.writeStructEnd()
21585
 
21586
  def validate(self):
21587
    return
21588
 
21589
 
21590
  def __repr__(self):
21591
    L = ['%s=%r' % (key, value)
21592
      for key, value in self.__dict__.iteritems()]
21593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21594
 
21595
  def __eq__(self, other):
21596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21597
 
21598
  def __ne__(self, other):
21599
    return not (self == other)
21600
 
21601
class addOrUpdateBrandInfo_result:
21602
 
21603
  thrift_spec = (
21604
  )
21605
 
21606
  def read(self, iprot):
21607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21609
      return
21610
    iprot.readStructBegin()
21611
    while True:
21612
      (fname, ftype, fid) = iprot.readFieldBegin()
21613
      if ftype == TType.STOP:
21614
        break
21615
      else:
21616
        iprot.skip(ftype)
21617
      iprot.readFieldEnd()
21618
    iprot.readStructEnd()
21619
 
21620
  def write(self, oprot):
21621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21623
      return
21624
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21625
    oprot.writeFieldStop()
21626
    oprot.writeStructEnd()
21627
 
21628
  def validate(self):
21629
    return
21630
 
21631
 
21632
  def __repr__(self):
21633
    L = ['%s=%r' % (key, value)
21634
      for key, value in self.__dict__.iteritems()]
21635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21636
 
21637
  def __eq__(self, other):
21638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21639
 
21640
  def __ne__(self, other):
21641
    return not (self == other)
21642
 
21643
class getBrandInfo_args:
21644
 
21645
  thrift_spec = (
21646
  )
21647
 
21648
  def read(self, iprot):
21649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21651
      return
21652
    iprot.readStructBegin()
21653
    while True:
21654
      (fname, ftype, fid) = iprot.readFieldBegin()
21655
      if ftype == TType.STOP:
21656
        break
21657
      else:
21658
        iprot.skip(ftype)
21659
      iprot.readFieldEnd()
21660
    iprot.readStructEnd()
21661
 
21662
  def write(self, oprot):
21663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21665
      return
21666
    oprot.writeStructBegin('getBrandInfo_args')
21667
    oprot.writeFieldStop()
21668
    oprot.writeStructEnd()
21669
 
21670
  def validate(self):
21671
    return
21672
 
21673
 
21674
  def __repr__(self):
21675
    L = ['%s=%r' % (key, value)
21676
      for key, value in self.__dict__.iteritems()]
21677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21678
 
21679
  def __eq__(self, other):
21680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21681
 
21682
  def __ne__(self, other):
21683
    return not (self == other)
21684
 
21685
class getBrandInfo_result:
21686
  """
21687
  Attributes:
21688
   - success
21689
  """
21690
 
21691
  thrift_spec = (
21692
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21693
  )
21694
 
21695
  def __init__(self, success=None,):
21696
    self.success = success
21697
 
21698
  def read(self, iprot):
21699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21701
      return
21702
    iprot.readStructBegin()
21703
    while True:
21704
      (fname, ftype, fid) = iprot.readFieldBegin()
21705
      if ftype == TType.STOP:
21706
        break
21707
      if fid == 0:
21708
        if ftype == TType.MAP:
21709
          self.success = {}
12567 amit.gupta 21710
          (_ktype398, _vtype399, _size397 ) = iprot.readMapBegin() 
21711
          for _i401 in xrange(_size397):
21712
            _key402 = iprot.readString();
21713
            _val403 = BrandInfo()
21714
            _val403.read(iprot)
21715
            self.success[_key402] = _val403
7272 amit.gupta 21716
          iprot.readMapEnd()
21717
        else:
21718
          iprot.skip(ftype)
21719
      else:
21720
        iprot.skip(ftype)
21721
      iprot.readFieldEnd()
21722
    iprot.readStructEnd()
21723
 
21724
  def write(self, oprot):
21725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21727
      return
21728
    oprot.writeStructBegin('getBrandInfo_result')
21729
    if self.success is not None:
21730
      oprot.writeFieldBegin('success', TType.MAP, 0)
21731
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
12567 amit.gupta 21732
      for kiter404,viter405 in self.success.items():
21733
        oprot.writeString(kiter404)
21734
        viter405.write(oprot)
7272 amit.gupta 21735
      oprot.writeMapEnd()
21736
      oprot.writeFieldEnd()
21737
    oprot.writeFieldStop()
21738
    oprot.writeStructEnd()
21739
 
21740
  def validate(self):
21741
    return
21742
 
21743
 
21744
  def __repr__(self):
21745
    L = ['%s=%r' % (key, value)
21746
      for key, value in self.__dict__.iteritems()]
21747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21748
 
21749
  def __eq__(self, other):
21750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21751
 
21752
  def __ne__(self, other):
21753
    return not (self == other)
21754
 
7256 rajveer 21755
class getStorePricing_args:
21756
  """
21757
  Attributes:
21758
   - itemId
21759
  """
21760
 
21761
  thrift_spec = (
21762
    None, # 0
21763
    (1, TType.I64, 'itemId', None, None, ), # 1
21764
  )
21765
 
21766
  def __init__(self, itemId=None,):
21767
    self.itemId = itemId
21768
 
21769
  def read(self, iprot):
21770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21772
      return
21773
    iprot.readStructBegin()
21774
    while True:
21775
      (fname, ftype, fid) = iprot.readFieldBegin()
21776
      if ftype == TType.STOP:
21777
        break
21778
      if fid == 1:
21779
        if ftype == TType.I64:
21780
          self.itemId = iprot.readI64();
21781
        else:
21782
          iprot.skip(ftype)
21783
      else:
21784
        iprot.skip(ftype)
21785
      iprot.readFieldEnd()
21786
    iprot.readStructEnd()
21787
 
21788
  def write(self, oprot):
21789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21791
      return
21792
    oprot.writeStructBegin('getStorePricing_args')
21793
    if self.itemId is not None:
21794
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21795
      oprot.writeI64(self.itemId)
21796
      oprot.writeFieldEnd()
21797
    oprot.writeFieldStop()
21798
    oprot.writeStructEnd()
21799
 
21800
  def validate(self):
21801
    return
21802
 
21803
 
21804
  def __repr__(self):
21805
    L = ['%s=%r' % (key, value)
21806
      for key, value in self.__dict__.iteritems()]
21807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21808
 
21809
  def __eq__(self, other):
21810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21811
 
21812
  def __ne__(self, other):
21813
    return not (self == other)
21814
 
21815
class getStorePricing_result:
21816
  """
21817
  Attributes:
21818
   - success
21819
  """
21820
 
21821
  thrift_spec = (
21822
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
21823
  )
21824
 
21825
  def __init__(self, success=None,):
21826
    self.success = success
21827
 
21828
  def read(self, iprot):
21829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21831
      return
21832
    iprot.readStructBegin()
21833
    while True:
21834
      (fname, ftype, fid) = iprot.readFieldBegin()
21835
      if ftype == TType.STOP:
21836
        break
21837
      if fid == 0:
21838
        if ftype == TType.STRUCT:
21839
          self.success = StorePricing()
21840
          self.success.read(iprot)
21841
        else:
21842
          iprot.skip(ftype)
21843
      else:
21844
        iprot.skip(ftype)
21845
      iprot.readFieldEnd()
21846
    iprot.readStructEnd()
21847
 
21848
  def write(self, oprot):
21849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21851
      return
21852
    oprot.writeStructBegin('getStorePricing_result')
21853
    if self.success is not None:
21854
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21855
      self.success.write(oprot)
21856
      oprot.writeFieldEnd()
21857
    oprot.writeFieldStop()
21858
    oprot.writeStructEnd()
21859
 
21860
  def validate(self):
21861
    return
21862
 
21863
 
21864
  def __repr__(self):
21865
    L = ['%s=%r' % (key, value)
21866
      for key, value in self.__dict__.iteritems()]
21867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21868
 
21869
  def __eq__(self, other):
21870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21871
 
21872
  def __ne__(self, other):
21873
    return not (self == other)
7265 rajveer 21874
 
7306 rajveer 21875
class getStorePricings_args:
21876
  """
21877
  Attributes:
21878
   - itemIds
21879
  """
21880
 
21881
  thrift_spec = (
21882
    None, # 0
21883
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
21884
  )
21885
 
21886
  def __init__(self, itemIds=None,):
21887
    self.itemIds = itemIds
21888
 
21889
  def read(self, iprot):
21890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21892
      return
21893
    iprot.readStructBegin()
21894
    while True:
21895
      (fname, ftype, fid) = iprot.readFieldBegin()
21896
      if ftype == TType.STOP:
21897
        break
21898
      if fid == 1:
21899
        if ftype == TType.LIST:
21900
          self.itemIds = []
12567 amit.gupta 21901
          (_etype409, _size406) = iprot.readListBegin()
21902
          for _i410 in xrange(_size406):
21903
            _elem411 = iprot.readI64();
21904
            self.itemIds.append(_elem411)
7306 rajveer 21905
          iprot.readListEnd()
21906
        else:
21907
          iprot.skip(ftype)
21908
      else:
21909
        iprot.skip(ftype)
21910
      iprot.readFieldEnd()
21911
    iprot.readStructEnd()
21912
 
21913
  def write(self, oprot):
21914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21916
      return
21917
    oprot.writeStructBegin('getStorePricings_args')
21918
    if self.itemIds is not None:
21919
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
21920
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 21921
      for iter412 in self.itemIds:
21922
        oprot.writeI64(iter412)
7306 rajveer 21923
      oprot.writeListEnd()
21924
      oprot.writeFieldEnd()
21925
    oprot.writeFieldStop()
21926
    oprot.writeStructEnd()
21927
 
21928
  def validate(self):
21929
    return
21930
 
21931
 
21932
  def __repr__(self):
21933
    L = ['%s=%r' % (key, value)
21934
      for key, value in self.__dict__.iteritems()]
21935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21936
 
21937
  def __eq__(self, other):
21938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21939
 
21940
  def __ne__(self, other):
21941
    return not (self == other)
21942
 
21943
class getStorePricings_result:
21944
  """
21945
  Attributes:
21946
   - success
21947
  """
21948
 
21949
  thrift_spec = (
21950
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
21951
  )
21952
 
21953
  def __init__(self, success=None,):
21954
    self.success = success
21955
 
21956
  def read(self, iprot):
21957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21959
      return
21960
    iprot.readStructBegin()
21961
    while True:
21962
      (fname, ftype, fid) = iprot.readFieldBegin()
21963
      if ftype == TType.STOP:
21964
        break
21965
      if fid == 0:
21966
        if ftype == TType.LIST:
21967
          self.success = []
12567 amit.gupta 21968
          (_etype416, _size413) = iprot.readListBegin()
21969
          for _i417 in xrange(_size413):
21970
            _elem418 = StorePricing()
21971
            _elem418.read(iprot)
21972
            self.success.append(_elem418)
7306 rajveer 21973
          iprot.readListEnd()
21974
        else:
21975
          iprot.skip(ftype)
21976
      else:
21977
        iprot.skip(ftype)
21978
      iprot.readFieldEnd()
21979
    iprot.readStructEnd()
21980
 
21981
  def write(self, oprot):
21982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21984
      return
21985
    oprot.writeStructBegin('getStorePricings_result')
21986
    if self.success is not None:
21987
      oprot.writeFieldBegin('success', TType.LIST, 0)
21988
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21989
      for iter419 in self.success:
21990
        iter419.write(oprot)
7306 rajveer 21991
      oprot.writeListEnd()
21992
      oprot.writeFieldEnd()
21993
    oprot.writeFieldStop()
21994
    oprot.writeStructEnd()
21995
 
21996
  def validate(self):
21997
    return
21998
 
21999
 
22000
  def __repr__(self):
22001
    L = ['%s=%r' % (key, value)
22002
      for key, value in self.__dict__.iteritems()]
22003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22004
 
22005
  def __eq__(self, other):
22006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22007
 
22008
  def __ne__(self, other):
22009
    return not (self == other)
22010
 
7265 rajveer 22011
class updateStorePricing_args:
22012
  """
22013
  Attributes:
22014
   - sp
7382 rajveer 22015
   - allColors
7265 rajveer 22016
  """
22017
 
22018
  thrift_spec = (
22019
    None, # 0
22020
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 22021
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 22022
  )
22023
 
7382 rajveer 22024
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 22025
    self.sp = sp
7382 rajveer 22026
    self.allColors = allColors
7265 rajveer 22027
 
22028
  def read(self, iprot):
22029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22031
      return
22032
    iprot.readStructBegin()
22033
    while True:
22034
      (fname, ftype, fid) = iprot.readFieldBegin()
22035
      if ftype == TType.STOP:
22036
        break
22037
      if fid == 1:
22038
        if ftype == TType.STRUCT:
22039
          self.sp = StorePricing()
22040
          self.sp.read(iprot)
22041
        else:
22042
          iprot.skip(ftype)
7382 rajveer 22043
      elif fid == 2:
22044
        if ftype == TType.BOOL:
22045
          self.allColors = iprot.readBool();
22046
        else:
22047
          iprot.skip(ftype)
7265 rajveer 22048
      else:
22049
        iprot.skip(ftype)
22050
      iprot.readFieldEnd()
22051
    iprot.readStructEnd()
22052
 
22053
  def write(self, oprot):
22054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22056
      return
22057
    oprot.writeStructBegin('updateStorePricing_args')
22058
    if self.sp is not None:
22059
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
22060
      self.sp.write(oprot)
22061
      oprot.writeFieldEnd()
7382 rajveer 22062
    if self.allColors is not None:
22063
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
22064
      oprot.writeBool(self.allColors)
22065
      oprot.writeFieldEnd()
7265 rajveer 22066
    oprot.writeFieldStop()
22067
    oprot.writeStructEnd()
22068
 
22069
  def validate(self):
22070
    return
22071
 
22072
 
22073
  def __repr__(self):
22074
    L = ['%s=%r' % (key, value)
22075
      for key, value in self.__dict__.iteritems()]
22076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22077
 
22078
  def __eq__(self, other):
22079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22080
 
22081
  def __ne__(self, other):
22082
    return not (self == other)
22083
 
22084
class updateStorePricing_result:
22085
 
22086
  thrift_spec = (
22087
  )
22088
 
22089
  def read(self, iprot):
22090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22092
      return
22093
    iprot.readStructBegin()
22094
    while True:
22095
      (fname, ftype, fid) = iprot.readFieldBegin()
22096
      if ftype == TType.STOP:
22097
        break
22098
      else:
22099
        iprot.skip(ftype)
22100
      iprot.readFieldEnd()
22101
    iprot.readStructEnd()
22102
 
22103
  def write(self, oprot):
22104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22106
      return
22107
    oprot.writeStructBegin('updateStorePricing_result')
22108
    oprot.writeFieldStop()
22109
    oprot.writeStructEnd()
22110
 
22111
  def validate(self):
22112
    return
22113
 
22114
 
22115
  def __repr__(self):
22116
    L = ['%s=%r' % (key, value)
22117
      for key, value in self.__dict__.iteritems()]
22118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22119
 
22120
  def __eq__(self, other):
22121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22122
 
22123
  def __ne__(self, other):
22124
    return not (self == other)
7281 kshitij.so 22125
 
22126
class getAllAmazonListedItems_args:
22127
 
22128
  thrift_spec = (
22129
  )
22130
 
22131
  def read(self, iprot):
22132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22134
      return
22135
    iprot.readStructBegin()
22136
    while True:
22137
      (fname, ftype, fid) = iprot.readFieldBegin()
22138
      if ftype == TType.STOP:
22139
        break
22140
      else:
22141
        iprot.skip(ftype)
22142
      iprot.readFieldEnd()
22143
    iprot.readStructEnd()
22144
 
22145
  def write(self, oprot):
22146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22148
      return
22149
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22150
    oprot.writeFieldStop()
22151
    oprot.writeStructEnd()
22152
 
22153
  def validate(self):
22154
    return
22155
 
22156
 
22157
  def __repr__(self):
22158
    L = ['%s=%r' % (key, value)
22159
      for key, value in self.__dict__.iteritems()]
22160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22161
 
22162
  def __eq__(self, other):
22163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22164
 
22165
  def __ne__(self, other):
22166
    return not (self == other)
22167
 
22168
class getAllAmazonListedItems_result:
22169
  """
22170
  Attributes:
22171
   - success
22172
  """
22173
 
22174
  thrift_spec = (
22175
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22176
  )
22177
 
22178
  def __init__(self, success=None,):
22179
    self.success = success
22180
 
22181
  def read(self, iprot):
22182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22184
      return
22185
    iprot.readStructBegin()
22186
    while True:
22187
      (fname, ftype, fid) = iprot.readFieldBegin()
22188
      if ftype == TType.STOP:
22189
        break
22190
      if fid == 0:
22191
        if ftype == TType.LIST:
22192
          self.success = []
12567 amit.gupta 22193
          (_etype423, _size420) = iprot.readListBegin()
22194
          for _i424 in xrange(_size420):
22195
            _elem425 = Amazonlisted()
22196
            _elem425.read(iprot)
22197
            self.success.append(_elem425)
7281 kshitij.so 22198
          iprot.readListEnd()
22199
        else:
22200
          iprot.skip(ftype)
22201
      else:
22202
        iprot.skip(ftype)
22203
      iprot.readFieldEnd()
22204
    iprot.readStructEnd()
22205
 
22206
  def write(self, oprot):
22207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22209
      return
22210
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22211
    if self.success is not None:
22212
      oprot.writeFieldBegin('success', TType.LIST, 0)
22213
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22214
      for iter426 in self.success:
22215
        iter426.write(oprot)
7281 kshitij.so 22216
      oprot.writeListEnd()
22217
      oprot.writeFieldEnd()
22218
    oprot.writeFieldStop()
22219
    oprot.writeStructEnd()
22220
 
22221
  def validate(self):
22222
    return
22223
 
22224
 
22225
  def __repr__(self):
22226
    L = ['%s=%r' % (key, value)
22227
      for key, value in self.__dict__.iteritems()]
22228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22229
 
22230
  def __eq__(self, other):
22231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22232
 
22233
  def __ne__(self, other):
22234
    return not (self == other)
22235
 
8619 kshitij.so 22236
class searchAmazonItems_args:
22237
  """
22238
  Attributes:
22239
   - searchTerm
22240
   - offset
22241
   - limit
22242
  """
22243
 
22244
  thrift_spec = (
22245
    None, # 0
22246
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22247
    (2, TType.I64, 'offset', None, None, ), # 2
22248
    (3, TType.I64, 'limit', None, None, ), # 3
22249
  )
22250
 
22251
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22252
    self.searchTerm = searchTerm
22253
    self.offset = offset
22254
    self.limit = limit
22255
 
22256
  def read(self, iprot):
22257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22259
      return
22260
    iprot.readStructBegin()
22261
    while True:
22262
      (fname, ftype, fid) = iprot.readFieldBegin()
22263
      if ftype == TType.STOP:
22264
        break
22265
      if fid == 1:
22266
        if ftype == TType.LIST:
22267
          self.searchTerm = []
12567 amit.gupta 22268
          (_etype430, _size427) = iprot.readListBegin()
22269
          for _i431 in xrange(_size427):
22270
            _elem432 = iprot.readString();
22271
            self.searchTerm.append(_elem432)
8619 kshitij.so 22272
          iprot.readListEnd()
22273
        else:
22274
          iprot.skip(ftype)
22275
      elif fid == 2:
22276
        if ftype == TType.I64:
22277
          self.offset = iprot.readI64();
22278
        else:
22279
          iprot.skip(ftype)
22280
      elif fid == 3:
22281
        if ftype == TType.I64:
22282
          self.limit = iprot.readI64();
22283
        else:
22284
          iprot.skip(ftype)
22285
      else:
22286
        iprot.skip(ftype)
22287
      iprot.readFieldEnd()
22288
    iprot.readStructEnd()
22289
 
22290
  def write(self, oprot):
22291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22293
      return
22294
    oprot.writeStructBegin('searchAmazonItems_args')
22295
    if self.searchTerm is not None:
22296
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22297
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22298
      for iter433 in self.searchTerm:
22299
        oprot.writeString(iter433)
8619 kshitij.so 22300
      oprot.writeListEnd()
22301
      oprot.writeFieldEnd()
22302
    if self.offset is not None:
22303
      oprot.writeFieldBegin('offset', TType.I64, 2)
22304
      oprot.writeI64(self.offset)
22305
      oprot.writeFieldEnd()
22306
    if self.limit is not None:
22307
      oprot.writeFieldBegin('limit', TType.I64, 3)
22308
      oprot.writeI64(self.limit)
22309
      oprot.writeFieldEnd()
22310
    oprot.writeFieldStop()
22311
    oprot.writeStructEnd()
22312
 
22313
  def validate(self):
22314
    return
22315
 
22316
 
22317
  def __repr__(self):
22318
    L = ['%s=%r' % (key, value)
22319
      for key, value in self.__dict__.iteritems()]
22320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22321
 
22322
  def __eq__(self, other):
22323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22324
 
22325
  def __ne__(self, other):
22326
    return not (self == other)
22327
 
22328
class searchAmazonItems_result:
22329
  """
22330
  Attributes:
22331
   - success
22332
  """
22333
 
22334
  thrift_spec = (
22335
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22336
  )
22337
 
22338
  def __init__(self, success=None,):
22339
    self.success = success
22340
 
22341
  def read(self, iprot):
22342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22344
      return
22345
    iprot.readStructBegin()
22346
    while True:
22347
      (fname, ftype, fid) = iprot.readFieldBegin()
22348
      if ftype == TType.STOP:
22349
        break
22350
      if fid == 0:
22351
        if ftype == TType.LIST:
22352
          self.success = []
12567 amit.gupta 22353
          (_etype437, _size434) = iprot.readListBegin()
22354
          for _i438 in xrange(_size434):
22355
            _elem439 = Amazonlisted()
22356
            _elem439.read(iprot)
22357
            self.success.append(_elem439)
8619 kshitij.so 22358
          iprot.readListEnd()
22359
        else:
22360
          iprot.skip(ftype)
22361
      else:
22362
        iprot.skip(ftype)
22363
      iprot.readFieldEnd()
22364
    iprot.readStructEnd()
22365
 
22366
  def write(self, oprot):
22367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22369
      return
22370
    oprot.writeStructBegin('searchAmazonItems_result')
22371
    if self.success is not None:
22372
      oprot.writeFieldBegin('success', TType.LIST, 0)
22373
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22374
      for iter440 in self.success:
22375
        iter440.write(oprot)
8619 kshitij.so 22376
      oprot.writeListEnd()
22377
      oprot.writeFieldEnd()
22378
    oprot.writeFieldStop()
22379
    oprot.writeStructEnd()
22380
 
22381
  def validate(self):
22382
    return
22383
 
22384
 
22385
  def __repr__(self):
22386
    L = ['%s=%r' % (key, value)
22387
      for key, value in self.__dict__.iteritems()]
22388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22389
 
22390
  def __eq__(self, other):
22391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22392
 
22393
  def __ne__(self, other):
22394
    return not (self == other)
22395
 
22396
class getAmazonSearchResultCount_args:
22397
  """
22398
  Attributes:
22399
   - searchTerm
22400
  """
22401
 
22402
  thrift_spec = (
22403
    None, # 0
22404
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22405
  )
22406
 
22407
  def __init__(self, searchTerm=None,):
22408
    self.searchTerm = searchTerm
22409
 
22410
  def read(self, iprot):
22411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22413
      return
22414
    iprot.readStructBegin()
22415
    while True:
22416
      (fname, ftype, fid) = iprot.readFieldBegin()
22417
      if ftype == TType.STOP:
22418
        break
22419
      if fid == 1:
22420
        if ftype == TType.LIST:
22421
          self.searchTerm = []
12567 amit.gupta 22422
          (_etype444, _size441) = iprot.readListBegin()
22423
          for _i445 in xrange(_size441):
22424
            _elem446 = iprot.readString();
22425
            self.searchTerm.append(_elem446)
8619 kshitij.so 22426
          iprot.readListEnd()
22427
        else:
22428
          iprot.skip(ftype)
22429
      else:
22430
        iprot.skip(ftype)
22431
      iprot.readFieldEnd()
22432
    iprot.readStructEnd()
22433
 
22434
  def write(self, oprot):
22435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22437
      return
22438
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22439
    if self.searchTerm is not None:
22440
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22441
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22442
      for iter447 in self.searchTerm:
22443
        oprot.writeString(iter447)
8619 kshitij.so 22444
      oprot.writeListEnd()
22445
      oprot.writeFieldEnd()
22446
    oprot.writeFieldStop()
22447
    oprot.writeStructEnd()
22448
 
22449
  def validate(self):
22450
    return
22451
 
22452
 
22453
  def __repr__(self):
22454
    L = ['%s=%r' % (key, value)
22455
      for key, value in self.__dict__.iteritems()]
22456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22457
 
22458
  def __eq__(self, other):
22459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22460
 
22461
  def __ne__(self, other):
22462
    return not (self == other)
22463
 
22464
class getAmazonSearchResultCount_result:
22465
  """
22466
  Attributes:
22467
   - success
22468
  """
22469
 
22470
  thrift_spec = (
22471
    (0, TType.I64, 'success', None, None, ), # 0
22472
  )
22473
 
22474
  def __init__(self, success=None,):
22475
    self.success = success
22476
 
22477
  def read(self, iprot):
22478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22480
      return
22481
    iprot.readStructBegin()
22482
    while True:
22483
      (fname, ftype, fid) = iprot.readFieldBegin()
22484
      if ftype == TType.STOP:
22485
        break
22486
      if fid == 0:
22487
        if ftype == TType.I64:
22488
          self.success = iprot.readI64();
22489
        else:
22490
          iprot.skip(ftype)
22491
      else:
22492
        iprot.skip(ftype)
22493
      iprot.readFieldEnd()
22494
    iprot.readStructEnd()
22495
 
22496
  def write(self, oprot):
22497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22499
      return
22500
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22501
    if self.success is not None:
22502
      oprot.writeFieldBegin('success', TType.I64, 0)
22503
      oprot.writeI64(self.success)
22504
      oprot.writeFieldEnd()
22505
    oprot.writeFieldStop()
22506
    oprot.writeStructEnd()
22507
 
22508
  def validate(self):
22509
    return
22510
 
22511
 
22512
  def __repr__(self):
22513
    L = ['%s=%r' % (key, value)
22514
      for key, value in self.__dict__.iteritems()]
22515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22516
 
22517
  def __eq__(self, other):
22518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22519
 
22520
  def __ne__(self, other):
22521
    return not (self == other)
22522
 
22523
class getCountForAmazonlistedItems_args:
22524
 
22525
  thrift_spec = (
22526
  )
22527
 
22528
  def read(self, iprot):
22529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22531
      return
22532
    iprot.readStructBegin()
22533
    while True:
22534
      (fname, ftype, fid) = iprot.readFieldBegin()
22535
      if ftype == TType.STOP:
22536
        break
22537
      else:
22538
        iprot.skip(ftype)
22539
      iprot.readFieldEnd()
22540
    iprot.readStructEnd()
22541
 
22542
  def write(self, oprot):
22543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22545
      return
22546
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22547
    oprot.writeFieldStop()
22548
    oprot.writeStructEnd()
22549
 
22550
  def validate(self):
22551
    return
22552
 
22553
 
22554
  def __repr__(self):
22555
    L = ['%s=%r' % (key, value)
22556
      for key, value in self.__dict__.iteritems()]
22557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22558
 
22559
  def __eq__(self, other):
22560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22561
 
22562
  def __ne__(self, other):
22563
    return not (self == other)
22564
 
22565
class getCountForAmazonlistedItems_result:
22566
  """
22567
  Attributes:
22568
   - success
22569
  """
22570
 
22571
  thrift_spec = (
22572
    (0, TType.I64, 'success', None, None, ), # 0
22573
  )
22574
 
22575
  def __init__(self, success=None,):
22576
    self.success = success
22577
 
22578
  def read(self, iprot):
22579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22581
      return
22582
    iprot.readStructBegin()
22583
    while True:
22584
      (fname, ftype, fid) = iprot.readFieldBegin()
22585
      if ftype == TType.STOP:
22586
        break
22587
      if fid == 0:
22588
        if ftype == TType.I64:
22589
          self.success = iprot.readI64();
22590
        else:
22591
          iprot.skip(ftype)
22592
      else:
22593
        iprot.skip(ftype)
22594
      iprot.readFieldEnd()
22595
    iprot.readStructEnd()
22596
 
22597
  def write(self, oprot):
22598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22600
      return
22601
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22602
    if self.success is not None:
22603
      oprot.writeFieldBegin('success', TType.I64, 0)
22604
      oprot.writeI64(self.success)
22605
      oprot.writeFieldEnd()
22606
    oprot.writeFieldStop()
22607
    oprot.writeStructEnd()
22608
 
22609
  def validate(self):
22610
    return
22611
 
22612
 
22613
  def __repr__(self):
22614
    L = ['%s=%r' % (key, value)
22615
      for key, value in self.__dict__.iteritems()]
22616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22617
 
22618
  def __eq__(self, other):
22619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22620
 
22621
  def __ne__(self, other):
22622
    return not (self == other)
22623
 
7281 kshitij.so 22624
class getAmazonItemDetails_args:
22625
  """
22626
  Attributes:
22627
   - itemId
22628
  """
22629
 
22630
  thrift_spec = (
22631
    None, # 0
22632
    (1, TType.I64, 'itemId', None, None, ), # 1
22633
  )
22634
 
22635
  def __init__(self, itemId=None,):
22636
    self.itemId = itemId
22637
 
22638
  def read(self, iprot):
22639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22641
      return
22642
    iprot.readStructBegin()
22643
    while True:
22644
      (fname, ftype, fid) = iprot.readFieldBegin()
22645
      if ftype == TType.STOP:
22646
        break
22647
      if fid == 1:
22648
        if ftype == TType.I64:
22649
          self.itemId = iprot.readI64();
22650
        else:
22651
          iprot.skip(ftype)
22652
      else:
22653
        iprot.skip(ftype)
22654
      iprot.readFieldEnd()
22655
    iprot.readStructEnd()
22656
 
22657
  def write(self, oprot):
22658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22660
      return
22661
    oprot.writeStructBegin('getAmazonItemDetails_args')
22662
    if self.itemId is not None:
22663
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22664
      oprot.writeI64(self.itemId)
22665
      oprot.writeFieldEnd()
22666
    oprot.writeFieldStop()
22667
    oprot.writeStructEnd()
22668
 
22669
  def validate(self):
22670
    return
22671
 
22672
 
22673
  def __repr__(self):
22674
    L = ['%s=%r' % (key, value)
22675
      for key, value in self.__dict__.iteritems()]
22676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22677
 
22678
  def __eq__(self, other):
22679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22680
 
22681
  def __ne__(self, other):
22682
    return not (self == other)
22683
 
22684
class getAmazonItemDetails_result:
22685
  """
22686
  Attributes:
22687
   - success
22688
  """
22689
 
22690
  thrift_spec = (
22691
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22692
  )
22693
 
22694
  def __init__(self, success=None,):
22695
    self.success = success
22696
 
22697
  def read(self, iprot):
22698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22700
      return
22701
    iprot.readStructBegin()
22702
    while True:
22703
      (fname, ftype, fid) = iprot.readFieldBegin()
22704
      if ftype == TType.STOP:
22705
        break
22706
      if fid == 0:
22707
        if ftype == TType.STRUCT:
22708
          self.success = Amazonlisted()
22709
          self.success.read(iprot)
22710
        else:
22711
          iprot.skip(ftype)
22712
      else:
22713
        iprot.skip(ftype)
22714
      iprot.readFieldEnd()
22715
    iprot.readStructEnd()
22716
 
22717
  def write(self, oprot):
22718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22720
      return
22721
    oprot.writeStructBegin('getAmazonItemDetails_result')
22722
    if self.success is not None:
22723
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22724
      self.success.write(oprot)
22725
      oprot.writeFieldEnd()
22726
    oprot.writeFieldStop()
22727
    oprot.writeStructEnd()
22728
 
22729
  def validate(self):
22730
    return
22731
 
22732
 
22733
  def __repr__(self):
22734
    L = ['%s=%r' % (key, value)
22735
      for key, value in self.__dict__.iteritems()]
22736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22737
 
22738
  def __eq__(self, other):
22739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22740
 
22741
  def __ne__(self, other):
22742
    return not (self == other)
22743
 
22744
class updateAmazonItemDetails_args:
22745
  """
22746
  Attributes:
8168 kshitij.so 22747
   - amazonlisted
7281 kshitij.so 22748
  """
22749
 
22750
  thrift_spec = (
22751
    None, # 0
8168 kshitij.so 22752
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 22753
  )
22754
 
8168 kshitij.so 22755
  def __init__(self, amazonlisted=None,):
22756
    self.amazonlisted = amazonlisted
7281 kshitij.so 22757
 
22758
  def read(self, iprot):
22759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22761
      return
22762
    iprot.readStructBegin()
22763
    while True:
22764
      (fname, ftype, fid) = iprot.readFieldBegin()
22765
      if ftype == TType.STOP:
22766
        break
22767
      if fid == 1:
8168 kshitij.so 22768
        if ftype == TType.STRUCT:
22769
          self.amazonlisted = Amazonlisted()
22770
          self.amazonlisted.read(iprot)
7281 kshitij.so 22771
        else:
22772
          iprot.skip(ftype)
22773
      else:
22774
        iprot.skip(ftype)
22775
      iprot.readFieldEnd()
22776
    iprot.readStructEnd()
22777
 
22778
  def write(self, oprot):
22779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22781
      return
22782
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 22783
    if self.amazonlisted is not None:
22784
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22785
      self.amazonlisted.write(oprot)
7281 kshitij.so 22786
      oprot.writeFieldEnd()
22787
    oprot.writeFieldStop()
22788
    oprot.writeStructEnd()
22789
 
22790
  def validate(self):
22791
    return
22792
 
22793
 
22794
  def __repr__(self):
22795
    L = ['%s=%r' % (key, value)
22796
      for key, value in self.__dict__.iteritems()]
22797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22798
 
22799
  def __eq__(self, other):
22800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22801
 
22802
  def __ne__(self, other):
22803
    return not (self == other)
22804
 
22805
class updateAmazonItemDetails_result:
22806
 
22807
  thrift_spec = (
22808
  )
22809
 
22810
  def read(self, iprot):
22811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22813
      return
22814
    iprot.readStructBegin()
22815
    while True:
22816
      (fname, ftype, fid) = iprot.readFieldBegin()
22817
      if ftype == TType.STOP:
22818
        break
22819
      else:
22820
        iprot.skip(ftype)
22821
      iprot.readFieldEnd()
22822
    iprot.readStructEnd()
22823
 
22824
  def write(self, oprot):
22825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22827
      return
22828
    oprot.writeStructBegin('updateAmazonItemDetails_result')
22829
    oprot.writeFieldStop()
22830
    oprot.writeStructEnd()
22831
 
22832
  def validate(self):
22833
    return
22834
 
22835
 
22836
  def __repr__(self):
22837
    L = ['%s=%r' % (key, value)
22838
      for key, value in self.__dict__.iteritems()]
22839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22840
 
22841
  def __eq__(self, other):
22842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22843
 
22844
  def __ne__(self, other):
22845
    return not (self == other)
22846
 
22847
class addAmazonItem_args:
22848
  """
22849
  Attributes:
22850
   - amazonlisted
22851
  """
22852
 
22853
  thrift_spec = (
22854
    None, # 0
22855
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
22856
  )
22857
 
22858
  def __init__(self, amazonlisted=None,):
22859
    self.amazonlisted = amazonlisted
22860
 
22861
  def read(self, iprot):
22862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22864
      return
22865
    iprot.readStructBegin()
22866
    while True:
22867
      (fname, ftype, fid) = iprot.readFieldBegin()
22868
      if ftype == TType.STOP:
22869
        break
22870
      if fid == 1:
22871
        if ftype == TType.STRUCT:
22872
          self.amazonlisted = Amazonlisted()
22873
          self.amazonlisted.read(iprot)
22874
        else:
22875
          iprot.skip(ftype)
22876
      else:
22877
        iprot.skip(ftype)
22878
      iprot.readFieldEnd()
22879
    iprot.readStructEnd()
22880
 
22881
  def write(self, oprot):
22882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22884
      return
22885
    oprot.writeStructBegin('addAmazonItem_args')
22886
    if self.amazonlisted is not None:
22887
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22888
      self.amazonlisted.write(oprot)
22889
      oprot.writeFieldEnd()
22890
    oprot.writeFieldStop()
22891
    oprot.writeStructEnd()
22892
 
22893
  def validate(self):
22894
    return
22895
 
22896
 
22897
  def __repr__(self):
22898
    L = ['%s=%r' % (key, value)
22899
      for key, value in self.__dict__.iteritems()]
22900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22901
 
22902
  def __eq__(self, other):
22903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22904
 
22905
  def __ne__(self, other):
22906
    return not (self == other)
22907
 
22908
class addAmazonItem_result:
22909
 
22910
  thrift_spec = (
22911
  )
22912
 
22913
  def read(self, iprot):
22914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22916
      return
22917
    iprot.readStructBegin()
22918
    while True:
22919
      (fname, ftype, fid) = iprot.readFieldBegin()
22920
      if ftype == TType.STOP:
22921
        break
22922
      else:
22923
        iprot.skip(ftype)
22924
      iprot.readFieldEnd()
22925
    iprot.readStructEnd()
22926
 
22927
  def write(self, oprot):
22928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22930
      return
22931
    oprot.writeStructBegin('addAmazonItem_result')
22932
    oprot.writeFieldStop()
22933
    oprot.writeStructEnd()
22934
 
22935
  def validate(self):
22936
    return
22937
 
22938
 
22939
  def __repr__(self):
22940
    L = ['%s=%r' % (key, value)
22941
      for key, value in self.__dict__.iteritems()]
22942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22943
 
22944
  def __eq__(self, other):
22945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22946
 
22947
  def __ne__(self, other):
22948
    return not (self == other)
7291 vikram.rag 22949
 
22950
class getAsinItems_args:
22951
 
22952
  thrift_spec = (
22953
  )
22954
 
22955
  def read(self, iprot):
22956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22958
      return
22959
    iprot.readStructBegin()
22960
    while True:
22961
      (fname, ftype, fid) = iprot.readFieldBegin()
22962
      if ftype == TType.STOP:
22963
        break
22964
      else:
22965
        iprot.skip(ftype)
22966
      iprot.readFieldEnd()
22967
    iprot.readStructEnd()
22968
 
22969
  def write(self, oprot):
22970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22972
      return
22973
    oprot.writeStructBegin('getAsinItems_args')
22974
    oprot.writeFieldStop()
22975
    oprot.writeStructEnd()
22976
 
22977
  def validate(self):
22978
    return
22979
 
22980
 
22981
  def __repr__(self):
22982
    L = ['%s=%r' % (key, value)
22983
      for key, value in self.__dict__.iteritems()]
22984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22985
 
22986
  def __eq__(self, other):
22987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22988
 
22989
  def __ne__(self, other):
22990
    return not (self == other)
22991
 
22992
class getAsinItems_result:
22993
  """
22994
  Attributes:
22995
   - success
22996
  """
22997
 
22998
  thrift_spec = (
22999
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
23000
  )
23001
 
23002
  def __init__(self, success=None,):
23003
    self.success = success
23004
 
23005
  def read(self, iprot):
23006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23008
      return
23009
    iprot.readStructBegin()
23010
    while True:
23011
      (fname, ftype, fid) = iprot.readFieldBegin()
23012
      if ftype == TType.STOP:
23013
        break
23014
      if fid == 0:
23015
        if ftype == TType.LIST:
23016
          self.success = []
12567 amit.gupta 23017
          (_etype451, _size448) = iprot.readListBegin()
23018
          for _i452 in xrange(_size448):
23019
            _elem453 = Item()
23020
            _elem453.read(iprot)
23021
            self.success.append(_elem453)
7291 vikram.rag 23022
          iprot.readListEnd()
23023
        else:
23024
          iprot.skip(ftype)
23025
      else:
23026
        iprot.skip(ftype)
23027
      iprot.readFieldEnd()
23028
    iprot.readStructEnd()
23029
 
23030
  def write(self, oprot):
23031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23033
      return
23034
    oprot.writeStructBegin('getAsinItems_result')
23035
    if self.success is not None:
23036
      oprot.writeFieldBegin('success', TType.LIST, 0)
23037
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23038
      for iter454 in self.success:
23039
        iter454.write(oprot)
7291 vikram.rag 23040
      oprot.writeListEnd()
23041
      oprot.writeFieldEnd()
23042
    oprot.writeFieldStop()
23043
    oprot.writeStructEnd()
23044
 
23045
  def validate(self):
23046
    return
23047
 
23048
 
23049
  def __repr__(self):
23050
    L = ['%s=%r' % (key, value)
23051
      for key, value in self.__dict__.iteritems()]
23052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23053
 
23054
  def __eq__(self, other):
23055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23056
 
23057
  def __ne__(self, other):
23058
    return not (self == other)
23059
 
23060
class getAllFbaListedItems_args:
23061
 
23062
  thrift_spec = (
23063
  )
23064
 
23065
  def read(self, iprot):
23066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23068
      return
23069
    iprot.readStructBegin()
23070
    while True:
23071
      (fname, ftype, fid) = iprot.readFieldBegin()
23072
      if ftype == TType.STOP:
23073
        break
23074
      else:
23075
        iprot.skip(ftype)
23076
      iprot.readFieldEnd()
23077
    iprot.readStructEnd()
23078
 
23079
  def write(self, oprot):
23080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23082
      return
23083
    oprot.writeStructBegin('getAllFbaListedItems_args')
23084
    oprot.writeFieldStop()
23085
    oprot.writeStructEnd()
23086
 
23087
  def validate(self):
23088
    return
23089
 
23090
 
23091
  def __repr__(self):
23092
    L = ['%s=%r' % (key, value)
23093
      for key, value in self.__dict__.iteritems()]
23094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23095
 
23096
  def __eq__(self, other):
23097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23098
 
23099
  def __ne__(self, other):
23100
    return not (self == other)
23101
 
23102
class getAllFbaListedItems_result:
23103
  """
23104
  Attributes:
23105
   - success
23106
  """
23107
 
23108
  thrift_spec = (
23109
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23110
  )
23111
 
23112
  def __init__(self, success=None,):
23113
    self.success = success
23114
 
23115
  def read(self, iprot):
23116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23118
      return
23119
    iprot.readStructBegin()
23120
    while True:
23121
      (fname, ftype, fid) = iprot.readFieldBegin()
23122
      if ftype == TType.STOP:
23123
        break
23124
      if fid == 0:
23125
        if ftype == TType.LIST:
23126
          self.success = []
12567 amit.gupta 23127
          (_etype458, _size455) = iprot.readListBegin()
23128
          for _i459 in xrange(_size455):
23129
            _elem460 = Amazonlisted()
23130
            _elem460.read(iprot)
23131
            self.success.append(_elem460)
7291 vikram.rag 23132
          iprot.readListEnd()
23133
        else:
23134
          iprot.skip(ftype)
23135
      else:
23136
        iprot.skip(ftype)
23137
      iprot.readFieldEnd()
23138
    iprot.readStructEnd()
23139
 
23140
  def write(self, oprot):
23141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23143
      return
23144
    oprot.writeStructBegin('getAllFbaListedItems_result')
23145
    if self.success is not None:
23146
      oprot.writeFieldBegin('success', TType.LIST, 0)
23147
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23148
      for iter461 in self.success:
23149
        iter461.write(oprot)
7291 vikram.rag 23150
      oprot.writeListEnd()
23151
      oprot.writeFieldEnd()
23152
    oprot.writeFieldStop()
23153
    oprot.writeStructEnd()
23154
 
23155
  def validate(self):
23156
    return
23157
 
23158
 
23159
  def __repr__(self):
23160
    L = ['%s=%r' % (key, value)
23161
      for key, value in self.__dict__.iteritems()]
23162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23163
 
23164
  def __eq__(self, other):
23165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23166
 
23167
  def __ne__(self, other):
23168
    return not (self == other)
23169
 
23170
class getAllNonFbaListedItems_args:
23171
 
23172
  thrift_spec = (
23173
  )
23174
 
23175
  def read(self, iprot):
23176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23178
      return
23179
    iprot.readStructBegin()
23180
    while True:
23181
      (fname, ftype, fid) = iprot.readFieldBegin()
23182
      if ftype == TType.STOP:
23183
        break
23184
      else:
23185
        iprot.skip(ftype)
23186
      iprot.readFieldEnd()
23187
    iprot.readStructEnd()
23188
 
23189
  def write(self, oprot):
23190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23192
      return
23193
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23194
    oprot.writeFieldStop()
23195
    oprot.writeStructEnd()
23196
 
23197
  def validate(self):
23198
    return
23199
 
23200
 
23201
  def __repr__(self):
23202
    L = ['%s=%r' % (key, value)
23203
      for key, value in self.__dict__.iteritems()]
23204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23205
 
23206
  def __eq__(self, other):
23207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23208
 
23209
  def __ne__(self, other):
23210
    return not (self == other)
23211
 
23212
class getAllNonFbaListedItems_result:
23213
  """
23214
  Attributes:
23215
   - success
23216
  """
23217
 
23218
  thrift_spec = (
23219
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23220
  )
23221
 
23222
  def __init__(self, success=None,):
23223
    self.success = success
23224
 
23225
  def read(self, iprot):
23226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23228
      return
23229
    iprot.readStructBegin()
23230
    while True:
23231
      (fname, ftype, fid) = iprot.readFieldBegin()
23232
      if ftype == TType.STOP:
23233
        break
23234
      if fid == 0:
23235
        if ftype == TType.LIST:
23236
          self.success = []
12567 amit.gupta 23237
          (_etype465, _size462) = iprot.readListBegin()
23238
          for _i466 in xrange(_size462):
23239
            _elem467 = Amazonlisted()
23240
            _elem467.read(iprot)
23241
            self.success.append(_elem467)
7291 vikram.rag 23242
          iprot.readListEnd()
23243
        else:
23244
          iprot.skip(ftype)
23245
      else:
23246
        iprot.skip(ftype)
23247
      iprot.readFieldEnd()
23248
    iprot.readStructEnd()
23249
 
23250
  def write(self, oprot):
23251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23253
      return
23254
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23255
    if self.success is not None:
23256
      oprot.writeFieldBegin('success', TType.LIST, 0)
23257
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23258
      for iter468 in self.success:
23259
        iter468.write(oprot)
7291 vikram.rag 23260
      oprot.writeListEnd()
23261
      oprot.writeFieldEnd()
23262
    oprot.writeFieldStop()
23263
    oprot.writeStructEnd()
23264
 
23265
  def validate(self):
23266
    return
23267
 
23268
 
23269
  def __repr__(self):
23270
    L = ['%s=%r' % (key, value)
23271
      for key, value in self.__dict__.iteritems()]
23272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23273
 
23274
  def __eq__(self, other):
23275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23276
 
23277
  def __ne__(self, other):
23278
    return not (self == other)
7460 kshitij.so 23279
 
23280
class updateItemInventory_args:
23281
  """
23282
  Attributes:
23283
   - itemId
23284
   - holdInventory
23285
   - defaultInventory
23286
  """
23287
 
23288
  thrift_spec = (
23289
    None, # 0
23290
    (1, TType.I64, 'itemId', None, None, ), # 1
23291
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23292
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23293
  )
23294
 
23295
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23296
    self.itemId = itemId
23297
    self.holdInventory = holdInventory
23298
    self.defaultInventory = defaultInventory
23299
 
23300
  def read(self, iprot):
23301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23303
      return
23304
    iprot.readStructBegin()
23305
    while True:
23306
      (fname, ftype, fid) = iprot.readFieldBegin()
23307
      if ftype == TType.STOP:
23308
        break
23309
      if fid == 1:
23310
        if ftype == TType.I64:
23311
          self.itemId = iprot.readI64();
23312
        else:
23313
          iprot.skip(ftype)
23314
      elif fid == 2:
23315
        if ftype == TType.I64:
23316
          self.holdInventory = iprot.readI64();
23317
        else:
23318
          iprot.skip(ftype)
23319
      elif fid == 3:
23320
        if ftype == TType.I64:
23321
          self.defaultInventory = iprot.readI64();
23322
        else:
23323
          iprot.skip(ftype)
23324
      else:
23325
        iprot.skip(ftype)
23326
      iprot.readFieldEnd()
23327
    iprot.readStructEnd()
23328
 
23329
  def write(self, oprot):
23330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23332
      return
23333
    oprot.writeStructBegin('updateItemInventory_args')
23334
    if self.itemId is not None:
23335
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23336
      oprot.writeI64(self.itemId)
23337
      oprot.writeFieldEnd()
23338
    if self.holdInventory is not None:
23339
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23340
      oprot.writeI64(self.holdInventory)
23341
      oprot.writeFieldEnd()
23342
    if self.defaultInventory is not None:
23343
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23344
      oprot.writeI64(self.defaultInventory)
23345
      oprot.writeFieldEnd()
23346
    oprot.writeFieldStop()
23347
    oprot.writeStructEnd()
23348
 
23349
  def validate(self):
23350
    return
23351
 
23352
 
23353
  def __repr__(self):
23354
    L = ['%s=%r' % (key, value)
23355
      for key, value in self.__dict__.iteritems()]
23356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23357
 
23358
  def __eq__(self, other):
23359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23360
 
23361
  def __ne__(self, other):
23362
    return not (self == other)
23363
 
23364
class updateItemInventory_result:
23365
  """
23366
  Attributes:
23367
   - success
23368
  """
23369
 
23370
  thrift_spec = (
23371
    (0, TType.BOOL, 'success', None, None, ), # 0
23372
  )
23373
 
23374
  def __init__(self, success=None,):
23375
    self.success = success
23376
 
23377
  def read(self, iprot):
23378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23380
      return
23381
    iprot.readStructBegin()
23382
    while True:
23383
      (fname, ftype, fid) = iprot.readFieldBegin()
23384
      if ftype == TType.STOP:
23385
        break
23386
      if fid == 0:
23387
        if ftype == TType.BOOL:
23388
          self.success = iprot.readBool();
23389
        else:
23390
          iprot.skip(ftype)
23391
      else:
23392
        iprot.skip(ftype)
23393
      iprot.readFieldEnd()
23394
    iprot.readStructEnd()
23395
 
23396
  def write(self, oprot):
23397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23399
      return
23400
    oprot.writeStructBegin('updateItemInventory_result')
23401
    if self.success is not None:
23402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23403
      oprot.writeBool(self.success)
23404
      oprot.writeFieldEnd()
23405
    oprot.writeFieldStop()
23406
    oprot.writeStructEnd()
23407
 
23408
  def validate(self):
23409
    return
23410
 
23411
 
23412
  def __repr__(self):
23413
    L = ['%s=%r' % (key, value)
23414
      for key, value in self.__dict__.iteritems()]
23415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23416
 
23417
  def __eq__(self, other):
23418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23419
 
23420
  def __ne__(self, other):
23421
    return not (self == other)
7770 kshitij.so 23422
 
23423
class updateTimestampForAmazonFeeds_args:
23424
  """
23425
  Attributes:
23426
   - type
23427
   - sku
23428
   - timestamp
23429
  """
23430
 
23431
  thrift_spec = (
23432
    None, # 0
23433
    (1, TType.STRING, 'type', None, None, ), # 1
23434
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23435
    (3, TType.I64, 'timestamp', None, None, ), # 3
23436
  )
23437
 
23438
  def __init__(self, type=None, sku=None, timestamp=None,):
23439
    self.type = type
23440
    self.sku = sku
23441
    self.timestamp = timestamp
23442
 
23443
  def read(self, iprot):
23444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23446
      return
23447
    iprot.readStructBegin()
23448
    while True:
23449
      (fname, ftype, fid) = iprot.readFieldBegin()
23450
      if ftype == TType.STOP:
23451
        break
23452
      if fid == 1:
23453
        if ftype == TType.STRING:
23454
          self.type = iprot.readString();
23455
        else:
23456
          iprot.skip(ftype)
23457
      elif fid == 2:
23458
        if ftype == TType.LIST:
23459
          self.sku = []
12567 amit.gupta 23460
          (_etype472, _size469) = iprot.readListBegin()
23461
          for _i473 in xrange(_size469):
23462
            _elem474 = iprot.readI64();
23463
            self.sku.append(_elem474)
7770 kshitij.so 23464
          iprot.readListEnd()
23465
        else:
23466
          iprot.skip(ftype)
23467
      elif fid == 3:
23468
        if ftype == TType.I64:
23469
          self.timestamp = iprot.readI64();
23470
        else:
23471
          iprot.skip(ftype)
23472
      else:
23473
        iprot.skip(ftype)
23474
      iprot.readFieldEnd()
23475
    iprot.readStructEnd()
23476
 
23477
  def write(self, oprot):
23478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23480
      return
23481
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23482
    if self.type is not None:
23483
      oprot.writeFieldBegin('type', TType.STRING, 1)
23484
      oprot.writeString(self.type)
23485
      oprot.writeFieldEnd()
23486
    if self.sku is not None:
23487
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23488
      oprot.writeListBegin(TType.I64, len(self.sku))
12567 amit.gupta 23489
      for iter475 in self.sku:
23490
        oprot.writeI64(iter475)
7770 kshitij.so 23491
      oprot.writeListEnd()
23492
      oprot.writeFieldEnd()
23493
    if self.timestamp is not None:
23494
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23495
      oprot.writeI64(self.timestamp)
23496
      oprot.writeFieldEnd()
23497
    oprot.writeFieldStop()
23498
    oprot.writeStructEnd()
23499
 
23500
  def validate(self):
23501
    return
23502
 
23503
 
23504
  def __repr__(self):
23505
    L = ['%s=%r' % (key, value)
23506
      for key, value in self.__dict__.iteritems()]
23507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23508
 
23509
  def __eq__(self, other):
23510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23511
 
23512
  def __ne__(self, other):
23513
    return not (self == other)
23514
 
23515
class updateTimestampForAmazonFeeds_result:
23516
  """
23517
  Attributes:
23518
   - success
23519
  """
23520
 
23521
  thrift_spec = (
23522
    (0, TType.BOOL, 'success', None, None, ), # 0
23523
  )
23524
 
23525
  def __init__(self, success=None,):
23526
    self.success = success
23527
 
23528
  def read(self, iprot):
23529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23531
      return
23532
    iprot.readStructBegin()
23533
    while True:
23534
      (fname, ftype, fid) = iprot.readFieldBegin()
23535
      if ftype == TType.STOP:
23536
        break
23537
      if fid == 0:
23538
        if ftype == TType.BOOL:
23539
          self.success = iprot.readBool();
23540
        else:
23541
          iprot.skip(ftype)
23542
      else:
23543
        iprot.skip(ftype)
23544
      iprot.readFieldEnd()
23545
    iprot.readStructEnd()
23546
 
23547
  def write(self, oprot):
23548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23550
      return
23551
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23552
    if self.success is not None:
23553
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23554
      oprot.writeBool(self.success)
23555
      oprot.writeFieldEnd()
23556
    oprot.writeFieldStop()
23557
    oprot.writeStructEnd()
23558
 
23559
  def validate(self):
23560
    return
23561
 
23562
 
23563
  def __repr__(self):
23564
    L = ['%s=%r' % (key, value)
23565
      for key, value in self.__dict__.iteritems()]
23566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23567
 
23568
  def __eq__(self, other):
23569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23570
 
23571
  def __ne__(self, other):
23572
    return not (self == other)
7897 amar.kumar 23573
 
23574
class getAllParentCategories_args:
23575
 
23576
  thrift_spec = (
23577
  )
23578
 
23579
  def read(self, iprot):
23580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23582
      return
23583
    iprot.readStructBegin()
23584
    while True:
23585
      (fname, ftype, fid) = iprot.readFieldBegin()
23586
      if ftype == TType.STOP:
23587
        break
23588
      else:
23589
        iprot.skip(ftype)
23590
      iprot.readFieldEnd()
23591
    iprot.readStructEnd()
23592
 
23593
  def write(self, oprot):
23594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23596
      return
23597
    oprot.writeStructBegin('getAllParentCategories_args')
23598
    oprot.writeFieldStop()
23599
    oprot.writeStructEnd()
23600
 
23601
  def validate(self):
23602
    return
23603
 
23604
 
23605
  def __repr__(self):
23606
    L = ['%s=%r' % (key, value)
23607
      for key, value in self.__dict__.iteritems()]
23608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23609
 
23610
  def __eq__(self, other):
23611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23612
 
23613
  def __ne__(self, other):
23614
    return not (self == other)
23615
 
23616
class getAllParentCategories_result:
23617
  """
23618
  Attributes:
23619
   - success
23620
  """
23621
 
23622
  thrift_spec = (
23623
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23624
  )
23625
 
23626
  def __init__(self, success=None,):
23627
    self.success = success
23628
 
23629
  def read(self, iprot):
23630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23632
      return
23633
    iprot.readStructBegin()
23634
    while True:
23635
      (fname, ftype, fid) = iprot.readFieldBegin()
23636
      if ftype == TType.STOP:
23637
        break
23638
      if fid == 0:
23639
        if ftype == TType.LIST:
23640
          self.success = []
12567 amit.gupta 23641
          (_etype479, _size476) = iprot.readListBegin()
23642
          for _i480 in xrange(_size476):
23643
            _elem481 = Category()
23644
            _elem481.read(iprot)
23645
            self.success.append(_elem481)
7897 amar.kumar 23646
          iprot.readListEnd()
23647
        else:
23648
          iprot.skip(ftype)
23649
      else:
23650
        iprot.skip(ftype)
23651
      iprot.readFieldEnd()
23652
    iprot.readStructEnd()
23653
 
23654
  def write(self, oprot):
23655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23657
      return
23658
    oprot.writeStructBegin('getAllParentCategories_result')
23659
    if self.success is not None:
23660
      oprot.writeFieldBegin('success', TType.LIST, 0)
23661
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23662
      for iter482 in self.success:
23663
        iter482.write(oprot)
7897 amar.kumar 23664
      oprot.writeListEnd()
23665
      oprot.writeFieldEnd()
23666
    oprot.writeFieldStop()
23667
    oprot.writeStructEnd()
23668
 
23669
  def validate(self):
23670
    return
23671
 
23672
 
23673
  def __repr__(self):
23674
    L = ['%s=%r' % (key, value)
23675
      for key, value in self.__dict__.iteritems()]
23676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23677
 
23678
  def __eq__(self, other):
23679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23680
 
23681
  def __ne__(self, other):
23682
    return not (self == other)
7977 kshitij.so 23683
 
23684
class addPageViewEvent_args:
23685
  """
23686
  Attributes:
23687
   - pageViewEvents
23688
  """
23689
 
23690
  thrift_spec = (
23691
    None, # 0
23692
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23693
  )
23694
 
23695
  def __init__(self, pageViewEvents=None,):
23696
    self.pageViewEvents = pageViewEvents
23697
 
23698
  def read(self, iprot):
23699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23701
      return
23702
    iprot.readStructBegin()
23703
    while True:
23704
      (fname, ftype, fid) = iprot.readFieldBegin()
23705
      if ftype == TType.STOP:
23706
        break
23707
      if fid == 1:
23708
        if ftype == TType.STRUCT:
23709
          self.pageViewEvents = PageViewEvents()
23710
          self.pageViewEvents.read(iprot)
23711
        else:
23712
          iprot.skip(ftype)
23713
      else:
23714
        iprot.skip(ftype)
23715
      iprot.readFieldEnd()
23716
    iprot.readStructEnd()
23717
 
23718
  def write(self, oprot):
23719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23721
      return
23722
    oprot.writeStructBegin('addPageViewEvent_args')
23723
    if self.pageViewEvents is not None:
23724
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
23725
      self.pageViewEvents.write(oprot)
23726
      oprot.writeFieldEnd()
23727
    oprot.writeFieldStop()
23728
    oprot.writeStructEnd()
23729
 
23730
  def validate(self):
23731
    return
23732
 
23733
 
23734
  def __repr__(self):
23735
    L = ['%s=%r' % (key, value)
23736
      for key, value in self.__dict__.iteritems()]
23737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23738
 
23739
  def __eq__(self, other):
23740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23741
 
23742
  def __ne__(self, other):
23743
    return not (self == other)
23744
 
23745
class addPageViewEvent_result:
23746
 
23747
  thrift_spec = (
23748
  )
23749
 
23750
  def read(self, iprot):
23751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23753
      return
23754
    iprot.readStructBegin()
23755
    while True:
23756
      (fname, ftype, fid) = iprot.readFieldBegin()
23757
      if ftype == TType.STOP:
23758
        break
23759
      else:
23760
        iprot.skip(ftype)
23761
      iprot.readFieldEnd()
23762
    iprot.readStructEnd()
23763
 
23764
  def write(self, oprot):
23765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23767
      return
23768
    oprot.writeStructBegin('addPageViewEvent_result')
23769
    oprot.writeFieldStop()
23770
    oprot.writeStructEnd()
23771
 
23772
  def validate(self):
23773
    return
23774
 
23775
 
23776
  def __repr__(self):
23777
    L = ['%s=%r' % (key, value)
23778
      for key, value in self.__dict__.iteritems()]
23779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23780
 
23781
  def __eq__(self, other):
23782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23783
 
23784
  def __ne__(self, other):
23785
    return not (self == other)
23786
 
23787
class addCartEvent_args:
23788
  """
23789
  Attributes:
23790
   - cartEvents
23791
  """
23792
 
23793
  thrift_spec = (
23794
    None, # 0
23795
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
23796
  )
23797
 
23798
  def __init__(self, cartEvents=None,):
23799
    self.cartEvents = cartEvents
23800
 
23801
  def read(self, iprot):
23802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23804
      return
23805
    iprot.readStructBegin()
23806
    while True:
23807
      (fname, ftype, fid) = iprot.readFieldBegin()
23808
      if ftype == TType.STOP:
23809
        break
23810
      if fid == 1:
23811
        if ftype == TType.STRUCT:
23812
          self.cartEvents = CartEvents()
23813
          self.cartEvents.read(iprot)
23814
        else:
23815
          iprot.skip(ftype)
23816
      else:
23817
        iprot.skip(ftype)
23818
      iprot.readFieldEnd()
23819
    iprot.readStructEnd()
23820
 
23821
  def write(self, oprot):
23822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23824
      return
23825
    oprot.writeStructBegin('addCartEvent_args')
23826
    if self.cartEvents is not None:
23827
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
23828
      self.cartEvents.write(oprot)
23829
      oprot.writeFieldEnd()
23830
    oprot.writeFieldStop()
23831
    oprot.writeStructEnd()
23832
 
23833
  def validate(self):
23834
    return
23835
 
23836
 
23837
  def __repr__(self):
23838
    L = ['%s=%r' % (key, value)
23839
      for key, value in self.__dict__.iteritems()]
23840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23841
 
23842
  def __eq__(self, other):
23843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23844
 
23845
  def __ne__(self, other):
23846
    return not (self == other)
23847
 
23848
class addCartEvent_result:
23849
 
23850
  thrift_spec = (
23851
  )
23852
 
23853
  def read(self, iprot):
23854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23856
      return
23857
    iprot.readStructBegin()
23858
    while True:
23859
      (fname, ftype, fid) = iprot.readFieldBegin()
23860
      if ftype == TType.STOP:
23861
        break
23862
      else:
23863
        iprot.skip(ftype)
23864
      iprot.readFieldEnd()
23865
    iprot.readStructEnd()
23866
 
23867
  def write(self, oprot):
23868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23870
      return
23871
    oprot.writeStructBegin('addCartEvent_result')
23872
    oprot.writeFieldStop()
23873
    oprot.writeStructEnd()
23874
 
23875
  def validate(self):
23876
    return
23877
 
23878
 
23879
  def __repr__(self):
23880
    L = ['%s=%r' % (key, value)
23881
      for key, value in self.__dict__.iteritems()]
23882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23883
 
23884
  def __eq__(self, other):
23885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23886
 
23887
  def __ne__(self, other):
23888
    return not (self == other)
8139 kshitij.so 23889
 
8182 amar.kumar 23890
class addEbayItem_args:
23891
  """
23892
  Attributes:
23893
   - ebayItem
23894
  """
23895
 
23896
  thrift_spec = (
23897
    None, # 0
23898
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23899
  )
23900
 
23901
  def __init__(self, ebayItem=None,):
23902
    self.ebayItem = ebayItem
23903
 
23904
  def read(self, iprot):
23905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23907
      return
23908
    iprot.readStructBegin()
23909
    while True:
23910
      (fname, ftype, fid) = iprot.readFieldBegin()
23911
      if ftype == TType.STOP:
23912
        break
23913
      if fid == 1:
23914
        if ftype == TType.STRUCT:
23915
          self.ebayItem = EbayItem()
23916
          self.ebayItem.read(iprot)
23917
        else:
23918
          iprot.skip(ftype)
23919
      else:
23920
        iprot.skip(ftype)
23921
      iprot.readFieldEnd()
23922
    iprot.readStructEnd()
23923
 
23924
  def write(self, oprot):
23925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23927
      return
23928
    oprot.writeStructBegin('addEbayItem_args')
23929
    if self.ebayItem is not None:
23930
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
23931
      self.ebayItem.write(oprot)
23932
      oprot.writeFieldEnd()
23933
    oprot.writeFieldStop()
23934
    oprot.writeStructEnd()
23935
 
23936
  def validate(self):
23937
    return
23938
 
23939
 
23940
  def __repr__(self):
23941
    L = ['%s=%r' % (key, value)
23942
      for key, value in self.__dict__.iteritems()]
23943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23944
 
23945
  def __eq__(self, other):
23946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23947
 
23948
  def __ne__(self, other):
23949
    return not (self == other)
23950
 
23951
class addEbayItem_result:
23952
 
23953
  thrift_spec = (
23954
  )
23955
 
23956
  def read(self, iprot):
23957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23959
      return
23960
    iprot.readStructBegin()
23961
    while True:
23962
      (fname, ftype, fid) = iprot.readFieldBegin()
23963
      if ftype == TType.STOP:
23964
        break
23965
      else:
23966
        iprot.skip(ftype)
23967
      iprot.readFieldEnd()
23968
    iprot.readStructEnd()
23969
 
23970
  def write(self, oprot):
23971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23973
      return
23974
    oprot.writeStructBegin('addEbayItem_result')
23975
    oprot.writeFieldStop()
23976
    oprot.writeStructEnd()
23977
 
23978
  def validate(self):
23979
    return
23980
 
23981
 
23982
  def __repr__(self):
23983
    L = ['%s=%r' % (key, value)
23984
      for key, value in self.__dict__.iteritems()]
23985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23986
 
23987
  def __eq__(self, other):
23988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23989
 
23990
  def __ne__(self, other):
23991
    return not (self == other)
23992
 
23993
class getEbayItem_args:
23994
  """
23995
  Attributes:
23996
   - listingId
23997
  """
23998
 
23999
  thrift_spec = (
24000
    None, # 0
24001
    (1, TType.STRING, 'listingId', None, None, ), # 1
24002
  )
24003
 
24004
  def __init__(self, listingId=None,):
24005
    self.listingId = listingId
24006
 
24007
  def read(self, iprot):
24008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24010
      return
24011
    iprot.readStructBegin()
24012
    while True:
24013
      (fname, ftype, fid) = iprot.readFieldBegin()
24014
      if ftype == TType.STOP:
24015
        break
24016
      if fid == 1:
24017
        if ftype == TType.STRING:
24018
          self.listingId = iprot.readString();
24019
        else:
24020
          iprot.skip(ftype)
24021
      else:
24022
        iprot.skip(ftype)
24023
      iprot.readFieldEnd()
24024
    iprot.readStructEnd()
24025
 
24026
  def write(self, oprot):
24027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24029
      return
24030
    oprot.writeStructBegin('getEbayItem_args')
24031
    if self.listingId is not None:
24032
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
24033
      oprot.writeString(self.listingId)
24034
      oprot.writeFieldEnd()
24035
    oprot.writeFieldStop()
24036
    oprot.writeStructEnd()
24037
 
24038
  def validate(self):
24039
    return
24040
 
24041
 
24042
  def __repr__(self):
24043
    L = ['%s=%r' % (key, value)
24044
      for key, value in self.__dict__.iteritems()]
24045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24046
 
24047
  def __eq__(self, other):
24048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24049
 
24050
  def __ne__(self, other):
24051
    return not (self == other)
24052
 
24053
class getEbayItem_result:
24054
  """
24055
  Attributes:
24056
   - success
24057
  """
24058
 
24059
  thrift_spec = (
24060
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
24061
  )
24062
 
24063
  def __init__(self, success=None,):
24064
    self.success = success
24065
 
24066
  def read(self, iprot):
24067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24069
      return
24070
    iprot.readStructBegin()
24071
    while True:
24072
      (fname, ftype, fid) = iprot.readFieldBegin()
24073
      if ftype == TType.STOP:
24074
        break
24075
      if fid == 0:
24076
        if ftype == TType.STRUCT:
24077
          self.success = EbayItem()
24078
          self.success.read(iprot)
24079
        else:
24080
          iprot.skip(ftype)
24081
      else:
24082
        iprot.skip(ftype)
24083
      iprot.readFieldEnd()
24084
    iprot.readStructEnd()
24085
 
24086
  def write(self, oprot):
24087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24089
      return
24090
    oprot.writeStructBegin('getEbayItem_result')
24091
    if self.success is not None:
24092
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24093
      self.success.write(oprot)
24094
      oprot.writeFieldEnd()
24095
    oprot.writeFieldStop()
24096
    oprot.writeStructEnd()
24097
 
24098
  def validate(self):
24099
    return
24100
 
24101
 
24102
  def __repr__(self):
24103
    L = ['%s=%r' % (key, value)
24104
      for key, value in self.__dict__.iteritems()]
24105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24106
 
24107
  def __eq__(self, other):
24108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24109
 
24110
  def __ne__(self, other):
24111
    return not (self == other)
24112
 
24113
class updateEbayItem_args:
24114
  """
24115
  Attributes:
24116
   - ebayItem
24117
  """
24118
 
24119
  thrift_spec = (
24120
    None, # 0
24121
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24122
  )
24123
 
24124
  def __init__(self, ebayItem=None,):
24125
    self.ebayItem = ebayItem
24126
 
24127
  def read(self, iprot):
24128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24130
      return
24131
    iprot.readStructBegin()
24132
    while True:
24133
      (fname, ftype, fid) = iprot.readFieldBegin()
24134
      if ftype == TType.STOP:
24135
        break
24136
      if fid == 1:
24137
        if ftype == TType.STRUCT:
24138
          self.ebayItem = EbayItem()
24139
          self.ebayItem.read(iprot)
24140
        else:
24141
          iprot.skip(ftype)
24142
      else:
24143
        iprot.skip(ftype)
24144
      iprot.readFieldEnd()
24145
    iprot.readStructEnd()
24146
 
24147
  def write(self, oprot):
24148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24150
      return
24151
    oprot.writeStructBegin('updateEbayItem_args')
24152
    if self.ebayItem is not None:
24153
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24154
      self.ebayItem.write(oprot)
24155
      oprot.writeFieldEnd()
24156
    oprot.writeFieldStop()
24157
    oprot.writeStructEnd()
24158
 
24159
  def validate(self):
24160
    return
24161
 
24162
 
24163
  def __repr__(self):
24164
    L = ['%s=%r' % (key, value)
24165
      for key, value in self.__dict__.iteritems()]
24166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24167
 
24168
  def __eq__(self, other):
24169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24170
 
24171
  def __ne__(self, other):
24172
    return not (self == other)
24173
 
24174
class updateEbayItem_result:
24175
 
24176
  thrift_spec = (
24177
  )
24178
 
24179
  def read(self, iprot):
24180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24182
      return
24183
    iprot.readStructBegin()
24184
    while True:
24185
      (fname, ftype, fid) = iprot.readFieldBegin()
24186
      if ftype == TType.STOP:
24187
        break
24188
      else:
24189
        iprot.skip(ftype)
24190
      iprot.readFieldEnd()
24191
    iprot.readStructEnd()
24192
 
24193
  def write(self, oprot):
24194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24196
      return
24197
    oprot.writeStructBegin('updateEbayItem_result')
24198
    oprot.writeFieldStop()
24199
    oprot.writeStructEnd()
24200
 
24201
  def validate(self):
24202
    return
24203
 
24204
 
24205
  def __repr__(self):
24206
    L = ['%s=%r' % (key, value)
24207
      for key, value in self.__dict__.iteritems()]
24208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24209
 
24210
  def __eq__(self, other):
24211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24212
 
24213
  def __ne__(self, other):
24214
    return not (self == other)
24215
 
8139 kshitij.so 24216
class getAmazonListedItems_args:
24217
  """
24218
  Attributes:
24219
   - offset
24220
   - limit
24221
  """
24222
 
24223
  thrift_spec = (
24224
    None, # 0
24225
    (1, TType.I64, 'offset', None, None, ), # 1
24226
    (2, TType.I64, 'limit', None, None, ), # 2
24227
  )
24228
 
24229
  def __init__(self, offset=None, limit=None,):
24230
    self.offset = offset
24231
    self.limit = limit
24232
 
24233
  def read(self, iprot):
24234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24236
      return
24237
    iprot.readStructBegin()
24238
    while True:
24239
      (fname, ftype, fid) = iprot.readFieldBegin()
24240
      if ftype == TType.STOP:
24241
        break
24242
      if fid == 1:
24243
        if ftype == TType.I64:
24244
          self.offset = iprot.readI64();
24245
        else:
24246
          iprot.skip(ftype)
24247
      elif fid == 2:
24248
        if ftype == TType.I64:
24249
          self.limit = iprot.readI64();
24250
        else:
24251
          iprot.skip(ftype)
24252
      else:
24253
        iprot.skip(ftype)
24254
      iprot.readFieldEnd()
24255
    iprot.readStructEnd()
24256
 
24257
  def write(self, oprot):
24258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24260
      return
24261
    oprot.writeStructBegin('getAmazonListedItems_args')
24262
    if self.offset is not None:
24263
      oprot.writeFieldBegin('offset', TType.I64, 1)
24264
      oprot.writeI64(self.offset)
24265
      oprot.writeFieldEnd()
24266
    if self.limit is not None:
24267
      oprot.writeFieldBegin('limit', TType.I64, 2)
24268
      oprot.writeI64(self.limit)
24269
      oprot.writeFieldEnd()
24270
    oprot.writeFieldStop()
24271
    oprot.writeStructEnd()
24272
 
24273
  def validate(self):
24274
    return
24275
 
24276
 
24277
  def __repr__(self):
24278
    L = ['%s=%r' % (key, value)
24279
      for key, value in self.__dict__.iteritems()]
24280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24281
 
24282
  def __eq__(self, other):
24283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24284
 
24285
  def __ne__(self, other):
24286
    return not (self == other)
24287
 
24288
class getAmazonListedItems_result:
24289
  """
24290
  Attributes:
24291
   - success
24292
  """
24293
 
24294
  thrift_spec = (
24295
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24296
  )
24297
 
24298
  def __init__(self, success=None,):
24299
    self.success = success
24300
 
24301
  def read(self, iprot):
24302
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24303
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24304
      return
24305
    iprot.readStructBegin()
24306
    while True:
24307
      (fname, ftype, fid) = iprot.readFieldBegin()
24308
      if ftype == TType.STOP:
24309
        break
24310
      if fid == 0:
24311
        if ftype == TType.LIST:
24312
          self.success = []
12567 amit.gupta 24313
          (_etype486, _size483) = iprot.readListBegin()
24314
          for _i487 in xrange(_size483):
24315
            _elem488 = Amazonlisted()
24316
            _elem488.read(iprot)
24317
            self.success.append(_elem488)
8139 kshitij.so 24318
          iprot.readListEnd()
24319
        else:
24320
          iprot.skip(ftype)
24321
      else:
24322
        iprot.skip(ftype)
24323
      iprot.readFieldEnd()
24324
    iprot.readStructEnd()
24325
 
24326
  def write(self, oprot):
24327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24329
      return
24330
    oprot.writeStructBegin('getAmazonListedItems_result')
24331
    if self.success is not None:
24332
      oprot.writeFieldBegin('success', TType.LIST, 0)
24333
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24334
      for iter489 in self.success:
24335
        iter489.write(oprot)
8139 kshitij.so 24336
      oprot.writeListEnd()
24337
      oprot.writeFieldEnd()
24338
    oprot.writeFieldStop()
24339
    oprot.writeStructEnd()
24340
 
24341
  def validate(self):
24342
    return
24343
 
24344
 
24345
  def __repr__(self):
24346
    L = ['%s=%r' % (key, value)
24347
      for key, value in self.__dict__.iteritems()]
24348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24349
 
24350
  def __eq__(self, other):
24351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24352
 
24353
  def __ne__(self, other):
24354
    return not (self == other)
8168 kshitij.so 24355
 
24356
class updateAmazonAttributesInBulk_args:
24357
  """
24358
  Attributes:
24359
   - amazonlisted
24360
  """
24361
 
24362
  thrift_spec = (
24363
    None, # 0
24364
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24365
  )
24366
 
24367
  def __init__(self, amazonlisted=None,):
24368
    self.amazonlisted = amazonlisted
24369
 
24370
  def read(self, iprot):
24371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24373
      return
24374
    iprot.readStructBegin()
24375
    while True:
24376
      (fname, ftype, fid) = iprot.readFieldBegin()
24377
      if ftype == TType.STOP:
24378
        break
24379
      if fid == 1:
24380
        if ftype == TType.MAP:
24381
          self.amazonlisted = {}
12567 amit.gupta 24382
          (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() 
24383
          for _i494 in xrange(_size490):
24384
            _key495 = iprot.readI64();
24385
            _val496 = Amazonlisted()
24386
            _val496.read(iprot)
24387
            self.amazonlisted[_key495] = _val496
8168 kshitij.so 24388
          iprot.readMapEnd()
24389
        else:
24390
          iprot.skip(ftype)
24391
      else:
24392
        iprot.skip(ftype)
24393
      iprot.readFieldEnd()
24394
    iprot.readStructEnd()
24395
 
24396
  def write(self, oprot):
24397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24399
      return
24400
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24401
    if self.amazonlisted is not None:
24402
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24403
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
12567 amit.gupta 24404
      for kiter497,viter498 in self.amazonlisted.items():
24405
        oprot.writeI64(kiter497)
24406
        viter498.write(oprot)
8168 kshitij.so 24407
      oprot.writeMapEnd()
24408
      oprot.writeFieldEnd()
24409
    oprot.writeFieldStop()
24410
    oprot.writeStructEnd()
24411
 
24412
  def validate(self):
24413
    return
24414
 
24415
 
24416
  def __repr__(self):
24417
    L = ['%s=%r' % (key, value)
24418
      for key, value in self.__dict__.iteritems()]
24419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24420
 
24421
  def __eq__(self, other):
24422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24423
 
24424
  def __ne__(self, other):
24425
    return not (self == other)
24426
 
24427
class updateAmazonAttributesInBulk_result:
24428
  """
24429
  Attributes:
24430
   - success
24431
  """
24432
 
24433
  thrift_spec = (
24434
    (0, TType.BOOL, 'success', None, None, ), # 0
24435
  )
24436
 
24437
  def __init__(self, success=None,):
24438
    self.success = success
24439
 
24440
  def read(self, iprot):
24441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24443
      return
24444
    iprot.readStructBegin()
24445
    while True:
24446
      (fname, ftype, fid) = iprot.readFieldBegin()
24447
      if ftype == TType.STOP:
24448
        break
24449
      if fid == 0:
24450
        if ftype == TType.BOOL:
24451
          self.success = iprot.readBool();
24452
        else:
24453
          iprot.skip(ftype)
24454
      else:
24455
        iprot.skip(ftype)
24456
      iprot.readFieldEnd()
24457
    iprot.readStructEnd()
24458
 
24459
  def write(self, oprot):
24460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24462
      return
24463
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24464
    if self.success is not None:
24465
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24466
      oprot.writeBool(self.success)
24467
      oprot.writeFieldEnd()
24468
    oprot.writeFieldStop()
24469
    oprot.writeStructEnd()
24470
 
24471
  def validate(self):
24472
    return
24473
 
24474
 
24475
  def __repr__(self):
24476
    L = ['%s=%r' % (key, value)
24477
      for key, value in self.__dict__.iteritems()]
24478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24479
 
24480
  def __eq__(self, other):
24481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24482
 
24483
  def __ne__(self, other):
24484
    return not (self == other)
8379 vikram.rag 24485
 
24486
class getAllItemstoListOnFba_args:
24487
 
24488
  thrift_spec = (
24489
  )
24490
 
24491
  def read(self, iprot):
24492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24494
      return
24495
    iprot.readStructBegin()
24496
    while True:
24497
      (fname, ftype, fid) = iprot.readFieldBegin()
24498
      if ftype == TType.STOP:
24499
        break
24500
      else:
24501
        iprot.skip(ftype)
24502
      iprot.readFieldEnd()
24503
    iprot.readStructEnd()
24504
 
24505
  def write(self, oprot):
24506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24508
      return
24509
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24510
    oprot.writeFieldStop()
24511
    oprot.writeStructEnd()
24512
 
24513
  def validate(self):
24514
    return
24515
 
24516
 
24517
  def __repr__(self):
24518
    L = ['%s=%r' % (key, value)
24519
      for key, value in self.__dict__.iteritems()]
24520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24521
 
24522
  def __eq__(self, other):
24523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24524
 
24525
  def __ne__(self, other):
24526
    return not (self == other)
24527
 
24528
class getAllItemstoListOnFba_result:
24529
  """
24530
  Attributes:
24531
   - success
24532
  """
24533
 
24534
  thrift_spec = (
24535
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24536
  )
24537
 
24538
  def __init__(self, success=None,):
24539
    self.success = success
24540
 
24541
  def read(self, iprot):
24542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24544
      return
24545
    iprot.readStructBegin()
24546
    while True:
24547
      (fname, ftype, fid) = iprot.readFieldBegin()
24548
      if ftype == TType.STOP:
24549
        break
24550
      if fid == 0:
24551
        if ftype == TType.LIST:
24552
          self.success = []
12567 amit.gupta 24553
          (_etype502, _size499) = iprot.readListBegin()
24554
          for _i503 in xrange(_size499):
24555
            _elem504 = Amazonlisted()
24556
            _elem504.read(iprot)
24557
            self.success.append(_elem504)
8379 vikram.rag 24558
          iprot.readListEnd()
24559
        else:
24560
          iprot.skip(ftype)
24561
      else:
24562
        iprot.skip(ftype)
24563
      iprot.readFieldEnd()
24564
    iprot.readStructEnd()
24565
 
24566
  def write(self, oprot):
24567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24569
      return
24570
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24571
    if self.success is not None:
24572
      oprot.writeFieldBegin('success', TType.LIST, 0)
24573
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24574
      for iter505 in self.success:
24575
        iter505.write(oprot)
8379 vikram.rag 24576
      oprot.writeListEnd()
24577
      oprot.writeFieldEnd()
24578
    oprot.writeFieldStop()
24579
    oprot.writeStructEnd()
24580
 
24581
  def validate(self):
24582
    return
24583
 
24584
 
24585
  def __repr__(self):
24586
    L = ['%s=%r' % (key, value)
24587
      for key, value in self.__dict__.iteritems()]
24588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24589
 
24590
  def __eq__(self, other):
24591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24592
 
24593
  def __ne__(self, other):
24594
    return not (self == other)
24595
 
24596
class getAllItemstoListOnNonFba_args:
24597
 
24598
  thrift_spec = (
24599
  )
24600
 
24601
  def read(self, iprot):
24602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24604
      return
24605
    iprot.readStructBegin()
24606
    while True:
24607
      (fname, ftype, fid) = iprot.readFieldBegin()
24608
      if ftype == TType.STOP:
24609
        break
24610
      else:
24611
        iprot.skip(ftype)
24612
      iprot.readFieldEnd()
24613
    iprot.readStructEnd()
24614
 
24615
  def write(self, oprot):
24616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24618
      return
24619
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24620
    oprot.writeFieldStop()
24621
    oprot.writeStructEnd()
24622
 
24623
  def validate(self):
24624
    return
24625
 
24626
 
24627
  def __repr__(self):
24628
    L = ['%s=%r' % (key, value)
24629
      for key, value in self.__dict__.iteritems()]
24630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24631
 
24632
  def __eq__(self, other):
24633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24634
 
24635
  def __ne__(self, other):
24636
    return not (self == other)
24637
 
24638
class getAllItemstoListOnNonFba_result:
24639
  """
24640
  Attributes:
24641
   - success
24642
  """
24643
 
24644
  thrift_spec = (
24645
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24646
  )
24647
 
24648
  def __init__(self, success=None,):
24649
    self.success = success
24650
 
24651
  def read(self, iprot):
24652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24654
      return
24655
    iprot.readStructBegin()
24656
    while True:
24657
      (fname, ftype, fid) = iprot.readFieldBegin()
24658
      if ftype == TType.STOP:
24659
        break
24660
      if fid == 0:
24661
        if ftype == TType.LIST:
24662
          self.success = []
12567 amit.gupta 24663
          (_etype509, _size506) = iprot.readListBegin()
24664
          for _i510 in xrange(_size506):
24665
            _elem511 = Amazonlisted()
24666
            _elem511.read(iprot)
24667
            self.success.append(_elem511)
8379 vikram.rag 24668
          iprot.readListEnd()
24669
        else:
24670
          iprot.skip(ftype)
24671
      else:
24672
        iprot.skip(ftype)
24673
      iprot.readFieldEnd()
24674
    iprot.readStructEnd()
24675
 
24676
  def write(self, oprot):
24677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24679
      return
24680
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24681
    if self.success is not None:
24682
      oprot.writeFieldBegin('success', TType.LIST, 0)
24683
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24684
      for iter512 in self.success:
24685
        iter512.write(oprot)
8379 vikram.rag 24686
      oprot.writeListEnd()
24687
      oprot.writeFieldEnd()
24688
    oprot.writeFieldStop()
24689
    oprot.writeStructEnd()
24690
 
24691
  def validate(self):
24692
    return
24693
 
24694
 
24695
  def __repr__(self):
24696
    L = ['%s=%r' % (key, value)
24697
      for key, value in self.__dict__.iteritems()]
24698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24699
 
24700
  def __eq__(self, other):
24701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24702
 
24703
  def __ne__(self, other):
24704
    return not (self == other)
8616 vikram.rag 24705
 
9242 kshitij.so 24706
class updateAsin_args:
24707
  """
24708
  Attributes:
24709
   - item
24710
  """
8616 vikram.rag 24711
 
24712
  thrift_spec = (
9242 kshitij.so 24713
    None, # 0
24714
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 24715
  )
24716
 
9242 kshitij.so 24717
  def __init__(self, item=None,):
24718
    self.item = item
24719
 
8616 vikram.rag 24720
  def read(self, iprot):
24721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24723
      return
24724
    iprot.readStructBegin()
24725
    while True:
24726
      (fname, ftype, fid) = iprot.readFieldBegin()
24727
      if ftype == TType.STOP:
24728
        break
9242 kshitij.so 24729
      if fid == 1:
24730
        if ftype == TType.MAP:
24731
          self.item = {}
12567 amit.gupta 24732
          (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() 
24733
          for _i517 in xrange(_size513):
24734
            _key518 = iprot.readI64();
24735
            _val519 = Item()
24736
            _val519.read(iprot)
24737
            self.item[_key518] = _val519
9242 kshitij.so 24738
          iprot.readMapEnd()
24739
        else:
24740
          iprot.skip(ftype)
8616 vikram.rag 24741
      else:
24742
        iprot.skip(ftype)
24743
      iprot.readFieldEnd()
24744
    iprot.readStructEnd()
24745
 
24746
  def write(self, oprot):
24747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24749
      return
9242 kshitij.so 24750
    oprot.writeStructBegin('updateAsin_args')
24751
    if self.item is not None:
24752
      oprot.writeFieldBegin('item', TType.MAP, 1)
24753
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
12567 amit.gupta 24754
      for kiter520,viter521 in self.item.items():
24755
        oprot.writeI64(kiter520)
24756
        viter521.write(oprot)
9242 kshitij.so 24757
      oprot.writeMapEnd()
24758
      oprot.writeFieldEnd()
8616 vikram.rag 24759
    oprot.writeFieldStop()
24760
    oprot.writeStructEnd()
24761
 
24762
  def validate(self):
24763
    return
24764
 
24765
 
24766
  def __repr__(self):
24767
    L = ['%s=%r' % (key, value)
24768
      for key, value in self.__dict__.iteritems()]
24769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24770
 
24771
  def __eq__(self, other):
24772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24773
 
24774
  def __ne__(self, other):
24775
    return not (self == other)
24776
 
9242 kshitij.so 24777
class updateAsin_result:
8616 vikram.rag 24778
 
24779
  thrift_spec = (
24780
  )
24781
 
24782
  def read(self, iprot):
24783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24785
      return
24786
    iprot.readStructBegin()
24787
    while True:
24788
      (fname, ftype, fid) = iprot.readFieldBegin()
24789
      if ftype == TType.STOP:
24790
        break
24791
      else:
24792
        iprot.skip(ftype)
24793
      iprot.readFieldEnd()
24794
    iprot.readStructEnd()
24795
 
24796
  def write(self, oprot):
24797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24799
      return
9242 kshitij.so 24800
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 24801
    oprot.writeFieldStop()
24802
    oprot.writeStructEnd()
24803
 
24804
  def validate(self):
24805
    return
24806
 
24807
 
24808
  def __repr__(self):
24809
    L = ['%s=%r' % (key, value)
24810
      for key, value in self.__dict__.iteritems()]
24811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24812
 
24813
  def __eq__(self, other):
24814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24815
 
24816
  def __ne__(self, other):
24817
    return not (self == other)
8619 kshitij.so 24818
 
9242 kshitij.so 24819
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 24820
  """
24821
  Attributes:
9242 kshitij.so 24822
   - snapdealitem
8619 kshitij.so 24823
  """
24824
 
9242 kshitij.so 24825
  thrift_spec = None
24826
  def __init__(self, snapdealitem=None,):
24827
    self.snapdealitem = snapdealitem
8619 kshitij.so 24828
 
24829
  def read(self, iprot):
24830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24832
      return
24833
    iprot.readStructBegin()
24834
    while True:
24835
      (fname, ftype, fid) = iprot.readFieldBegin()
24836
      if ftype == TType.STOP:
24837
        break
9242 kshitij.so 24838
      if fid == -1:
24839
        if ftype == TType.STRUCT:
24840
          self.snapdealitem = SnapdealItem()
24841
          self.snapdealitem.read(iprot)
8619 kshitij.so 24842
        else:
24843
          iprot.skip(ftype)
24844
      else:
24845
        iprot.skip(ftype)
24846
      iprot.readFieldEnd()
24847
    iprot.readStructEnd()
24848
 
24849
  def write(self, oprot):
24850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24852
      return
9242 kshitij.so 24853
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
24854
    if self.snapdealitem is not None:
24855
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
24856
      self.snapdealitem.write(oprot)
8619 kshitij.so 24857
      oprot.writeFieldEnd()
24858
    oprot.writeFieldStop()
24859
    oprot.writeStructEnd()
24860
 
24861
  def validate(self):
24862
    return
24863
 
24864
 
24865
  def __repr__(self):
24866
    L = ['%s=%r' % (key, value)
24867
      for key, value in self.__dict__.iteritems()]
24868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24869
 
24870
  def __eq__(self, other):
24871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24872
 
24873
  def __ne__(self, other):
24874
    return not (self == other)
24875
 
9242 kshitij.so 24876
class addOrUpdateSnapdealItem_result:
24877
  """
24878
  Attributes:
24879
   - success
24880
  """
8619 kshitij.so 24881
 
24882
  thrift_spec = (
9242 kshitij.so 24883
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 24884
  )
24885
 
9242 kshitij.so 24886
  def __init__(self, success=None,):
24887
    self.success = success
24888
 
8619 kshitij.so 24889
  def read(self, iprot):
24890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24892
      return
24893
    iprot.readStructBegin()
24894
    while True:
24895
      (fname, ftype, fid) = iprot.readFieldBegin()
24896
      if ftype == TType.STOP:
24897
        break
9242 kshitij.so 24898
      if fid == 0:
24899
        if ftype == TType.BOOL:
24900
          self.success = iprot.readBool();
24901
        else:
24902
          iprot.skip(ftype)
8619 kshitij.so 24903
      else:
24904
        iprot.skip(ftype)
24905
      iprot.readFieldEnd()
24906
    iprot.readStructEnd()
24907
 
24908
  def write(self, oprot):
24909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24911
      return
9242 kshitij.so 24912
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
24913
    if self.success is not None:
24914
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24915
      oprot.writeBool(self.success)
24916
      oprot.writeFieldEnd()
8619 kshitij.so 24917
    oprot.writeFieldStop()
24918
    oprot.writeStructEnd()
24919
 
24920
  def validate(self):
24921
    return
24922
 
24923
 
24924
  def __repr__(self):
24925
    L = ['%s=%r' % (key, value)
24926
      for key, value in self.__dict__.iteritems()]
24927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24928
 
24929
  def __eq__(self, other):
24930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24931
 
24932
  def __ne__(self, other):
24933
    return not (self == other)
8739 vikram.rag 24934
 
9242 kshitij.so 24935
class getSnapdealItem_args:
8739 vikram.rag 24936
  """
24937
  Attributes:
9242 kshitij.so 24938
   - item_id
8739 vikram.rag 24939
  """
24940
 
9242 kshitij.so 24941
  thrift_spec = (
24942
    None, # 0
24943
    (1, TType.I64, 'item_id', None, None, ), # 1
24944
  )
8739 vikram.rag 24945
 
9242 kshitij.so 24946
  def __init__(self, item_id=None,):
24947
    self.item_id = item_id
24948
 
8739 vikram.rag 24949
  def read(self, iprot):
24950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24952
      return
24953
    iprot.readStructBegin()
24954
    while True:
24955
      (fname, ftype, fid) = iprot.readFieldBegin()
24956
      if ftype == TType.STOP:
24957
        break
9242 kshitij.so 24958
      if fid == 1:
24959
        if ftype == TType.I64:
24960
          self.item_id = iprot.readI64();
8739 vikram.rag 24961
        else:
24962
          iprot.skip(ftype)
24963
      else:
24964
        iprot.skip(ftype)
24965
      iprot.readFieldEnd()
24966
    iprot.readStructEnd()
24967
 
24968
  def write(self, oprot):
24969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24971
      return
9242 kshitij.so 24972
    oprot.writeStructBegin('getSnapdealItem_args')
24973
    if self.item_id is not None:
24974
      oprot.writeFieldBegin('item_id', TType.I64, 1)
24975
      oprot.writeI64(self.item_id)
8739 vikram.rag 24976
      oprot.writeFieldEnd()
24977
    oprot.writeFieldStop()
24978
    oprot.writeStructEnd()
24979
 
24980
  def validate(self):
24981
    return
24982
 
24983
 
24984
  def __repr__(self):
24985
    L = ['%s=%r' % (key, value)
24986
      for key, value in self.__dict__.iteritems()]
24987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24988
 
24989
  def __eq__(self, other):
24990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24991
 
24992
  def __ne__(self, other):
24993
    return not (self == other)
24994
 
9242 kshitij.so 24995
class getSnapdealItem_result:
8739 vikram.rag 24996
  """
24997
  Attributes:
24998
   - success
24999
  """
25000
 
25001
  thrift_spec = (
9242 kshitij.so 25002
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 25003
  )
25004
 
25005
  def __init__(self, success=None,):
25006
    self.success = success
25007
 
25008
  def read(self, iprot):
25009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25011
      return
25012
    iprot.readStructBegin()
25013
    while True:
25014
      (fname, ftype, fid) = iprot.readFieldBegin()
25015
      if ftype == TType.STOP:
25016
        break
25017
      if fid == 0:
9242 kshitij.so 25018
        if ftype == TType.STRUCT:
25019
          self.success = SnapdealItem()
25020
          self.success.read(iprot)
8739 vikram.rag 25021
        else:
25022
          iprot.skip(ftype)
25023
      else:
25024
        iprot.skip(ftype)
25025
      iprot.readFieldEnd()
25026
    iprot.readStructEnd()
25027
 
25028
  def write(self, oprot):
25029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25031
      return
9242 kshitij.so 25032
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 25033
    if self.success is not None:
9242 kshitij.so 25034
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25035
      self.success.write(oprot)
8739 vikram.rag 25036
      oprot.writeFieldEnd()
25037
    oprot.writeFieldStop()
25038
    oprot.writeStructEnd()
25039
 
25040
  def validate(self):
25041
    return
25042
 
25043
 
25044
  def __repr__(self):
25045
    L = ['%s=%r' % (key, value)
25046
      for key, value in self.__dict__.iteritems()]
25047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25048
 
25049
  def __eq__(self, other):
25050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25051
 
25052
  def __ne__(self, other):
25053
    return not (self == other)
25054
 
9242 kshitij.so 25055
class getSnapdealItemDetails_args:
8739 vikram.rag 25056
  """
25057
  Attributes:
25058
   - item_id
25059
  """
25060
 
25061
  thrift_spec = (
25062
    None, # 0
25063
    (1, TType.I64, 'item_id', None, None, ), # 1
25064
  )
25065
 
25066
  def __init__(self, item_id=None,):
25067
    self.item_id = item_id
25068
 
25069
  def read(self, iprot):
25070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25072
      return
25073
    iprot.readStructBegin()
25074
    while True:
25075
      (fname, ftype, fid) = iprot.readFieldBegin()
25076
      if ftype == TType.STOP:
25077
        break
25078
      if fid == 1:
25079
        if ftype == TType.I64:
25080
          self.item_id = iprot.readI64();
25081
        else:
25082
          iprot.skip(ftype)
25083
      else:
25084
        iprot.skip(ftype)
25085
      iprot.readFieldEnd()
25086
    iprot.readStructEnd()
25087
 
25088
  def write(self, oprot):
25089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25091
      return
9242 kshitij.so 25092
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25093
    if self.item_id is not None:
25094
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25095
      oprot.writeI64(self.item_id)
25096
      oprot.writeFieldEnd()
25097
    oprot.writeFieldStop()
25098
    oprot.writeStructEnd()
25099
 
25100
  def validate(self):
25101
    return
25102
 
25103
 
25104
  def __repr__(self):
25105
    L = ['%s=%r' % (key, value)
25106
      for key, value in self.__dict__.iteritems()]
25107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25108
 
25109
  def __eq__(self, other):
25110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25111
 
25112
  def __ne__(self, other):
25113
    return not (self == other)
25114
 
9242 kshitij.so 25115
class getSnapdealItemDetails_result:
8739 vikram.rag 25116
  """
25117
  Attributes:
25118
   - success
25119
  """
25120
 
25121
  thrift_spec = (
9242 kshitij.so 25122
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25123
  )
25124
 
25125
  def __init__(self, success=None,):
25126
    self.success = success
25127
 
25128
  def read(self, iprot):
25129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25131
      return
25132
    iprot.readStructBegin()
25133
    while True:
25134
      (fname, ftype, fid) = iprot.readFieldBegin()
25135
      if ftype == TType.STOP:
25136
        break
25137
      if fid == 0:
25138
        if ftype == TType.STRUCT:
9242 kshitij.so 25139
          self.success = SnapdealItemDetails()
8739 vikram.rag 25140
          self.success.read(iprot)
25141
        else:
25142
          iprot.skip(ftype)
25143
      else:
25144
        iprot.skip(ftype)
25145
      iprot.readFieldEnd()
25146
    iprot.readStructEnd()
25147
 
25148
  def write(self, oprot):
25149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25151
      return
9242 kshitij.so 25152
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25153
    if self.success is not None:
25154
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25155
      self.success.write(oprot)
25156
      oprot.writeFieldEnd()
25157
    oprot.writeFieldStop()
25158
    oprot.writeStructEnd()
25159
 
25160
  def validate(self):
25161
    return
25162
 
25163
 
25164
  def __repr__(self):
25165
    L = ['%s=%r' % (key, value)
25166
      for key, value in self.__dict__.iteritems()]
25167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25168
 
25169
  def __eq__(self, other):
25170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25171
 
25172
  def __ne__(self, other):
25173
    return not (self == other)
25174
 
25175
class getAllSnapdealItems_args:
25176
 
25177
  thrift_spec = (
25178
  )
25179
 
25180
  def read(self, iprot):
25181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25183
      return
25184
    iprot.readStructBegin()
25185
    while True:
25186
      (fname, ftype, fid) = iprot.readFieldBegin()
25187
      if ftype == TType.STOP:
25188
        break
25189
      else:
25190
        iprot.skip(ftype)
25191
      iprot.readFieldEnd()
25192
    iprot.readStructEnd()
25193
 
25194
  def write(self, oprot):
25195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25197
      return
25198
    oprot.writeStructBegin('getAllSnapdealItems_args')
25199
    oprot.writeFieldStop()
25200
    oprot.writeStructEnd()
25201
 
25202
  def validate(self):
25203
    return
25204
 
25205
 
25206
  def __repr__(self):
25207
    L = ['%s=%r' % (key, value)
25208
      for key, value in self.__dict__.iteritems()]
25209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25210
 
25211
  def __eq__(self, other):
25212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25213
 
25214
  def __ne__(self, other):
25215
    return not (self == other)
25216
 
25217
class getAllSnapdealItems_result:
25218
  """
25219
  Attributes:
25220
   - success
25221
  """
25222
 
25223
  thrift_spec = (
9242 kshitij.so 25224
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25225
  )
25226
 
25227
  def __init__(self, success=None,):
25228
    self.success = success
25229
 
25230
  def read(self, iprot):
25231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25233
      return
25234
    iprot.readStructBegin()
25235
    while True:
25236
      (fname, ftype, fid) = iprot.readFieldBegin()
25237
      if ftype == TType.STOP:
25238
        break
25239
      if fid == 0:
25240
        if ftype == TType.LIST:
25241
          self.success = []
12567 amit.gupta 25242
          (_etype525, _size522) = iprot.readListBegin()
25243
          for _i526 in xrange(_size522):
25244
            _elem527 = SnapdealItemDetails()
25245
            _elem527.read(iprot)
25246
            self.success.append(_elem527)
9242 kshitij.so 25247
          iprot.readListEnd()
25248
        else:
25249
          iprot.skip(ftype)
25250
      else:
25251
        iprot.skip(ftype)
25252
      iprot.readFieldEnd()
25253
    iprot.readStructEnd()
25254
 
25255
  def write(self, oprot):
25256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25258
      return
25259
    oprot.writeStructBegin('getAllSnapdealItems_result')
25260
    if self.success is not None:
25261
      oprot.writeFieldBegin('success', TType.LIST, 0)
25262
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25263
      for iter528 in self.success:
25264
        iter528.write(oprot)
9242 kshitij.so 25265
      oprot.writeListEnd()
25266
      oprot.writeFieldEnd()
25267
    oprot.writeFieldStop()
25268
    oprot.writeStructEnd()
25269
 
25270
  def validate(self):
25271
    return
25272
 
25273
 
25274
  def __repr__(self):
25275
    L = ['%s=%r' % (key, value)
25276
      for key, value in self.__dict__.iteritems()]
25277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25278
 
25279
  def __eq__(self, other):
25280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25281
 
25282
  def __ne__(self, other):
25283
    return not (self == other)
25284
 
25285
class getSnapdealItems_args:
25286
  """
25287
  Attributes:
25288
   - offset
25289
   - limit
25290
  """
25291
 
25292
  thrift_spec = (
25293
    None, # 0
25294
    (1, TType.I64, 'offset', None, None, ), # 1
25295
    (2, TType.I64, 'limit', None, None, ), # 2
25296
  )
25297
 
25298
  def __init__(self, offset=None, limit=None,):
25299
    self.offset = offset
25300
    self.limit = limit
25301
 
25302
  def read(self, iprot):
25303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25305
      return
25306
    iprot.readStructBegin()
25307
    while True:
25308
      (fname, ftype, fid) = iprot.readFieldBegin()
25309
      if ftype == TType.STOP:
25310
        break
25311
      if fid == 1:
25312
        if ftype == TType.I64:
25313
          self.offset = iprot.readI64();
25314
        else:
25315
          iprot.skip(ftype)
25316
      elif fid == 2:
25317
        if ftype == TType.I64:
25318
          self.limit = iprot.readI64();
25319
        else:
25320
          iprot.skip(ftype)
25321
      else:
25322
        iprot.skip(ftype)
25323
      iprot.readFieldEnd()
25324
    iprot.readStructEnd()
25325
 
25326
  def write(self, oprot):
25327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25329
      return
25330
    oprot.writeStructBegin('getSnapdealItems_args')
25331
    if self.offset is not None:
25332
      oprot.writeFieldBegin('offset', TType.I64, 1)
25333
      oprot.writeI64(self.offset)
25334
      oprot.writeFieldEnd()
25335
    if self.limit is not None:
25336
      oprot.writeFieldBegin('limit', TType.I64, 2)
25337
      oprot.writeI64(self.limit)
25338
      oprot.writeFieldEnd()
25339
    oprot.writeFieldStop()
25340
    oprot.writeStructEnd()
25341
 
25342
  def validate(self):
25343
    return
25344
 
25345
 
25346
  def __repr__(self):
25347
    L = ['%s=%r' % (key, value)
25348
      for key, value in self.__dict__.iteritems()]
25349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25350
 
25351
  def __eq__(self, other):
25352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25353
 
25354
  def __ne__(self, other):
25355
    return not (self == other)
25356
 
25357
class getSnapdealItems_result:
25358
  """
25359
  Attributes:
25360
   - success
25361
  """
25362
 
25363
  thrift_spec = (
25364
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25365
  )
25366
 
25367
  def __init__(self, success=None,):
25368
    self.success = success
25369
 
25370
  def read(self, iprot):
25371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25373
      return
25374
    iprot.readStructBegin()
25375
    while True:
25376
      (fname, ftype, fid) = iprot.readFieldBegin()
25377
      if ftype == TType.STOP:
25378
        break
25379
      if fid == 0:
25380
        if ftype == TType.LIST:
25381
          self.success = []
12567 amit.gupta 25382
          (_etype532, _size529) = iprot.readListBegin()
25383
          for _i533 in xrange(_size529):
25384
            _elem534 = SnapdealItemDetails()
25385
            _elem534.read(iprot)
25386
            self.success.append(_elem534)
8739 vikram.rag 25387
          iprot.readListEnd()
25388
        else:
25389
          iprot.skip(ftype)
25390
      else:
25391
        iprot.skip(ftype)
25392
      iprot.readFieldEnd()
25393
    iprot.readStructEnd()
25394
 
25395
  def write(self, oprot):
25396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25398
      return
9242 kshitij.so 25399
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25400
    if self.success is not None:
25401
      oprot.writeFieldBegin('success', TType.LIST, 0)
25402
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25403
      for iter535 in self.success:
25404
        iter535.write(oprot)
8739 vikram.rag 25405
      oprot.writeListEnd()
25406
      oprot.writeFieldEnd()
25407
    oprot.writeFieldStop()
25408
    oprot.writeStructEnd()
25409
 
25410
  def validate(self):
25411
    return
25412
 
25413
 
25414
  def __repr__(self):
25415
    L = ['%s=%r' % (key, value)
25416
      for key, value in self.__dict__.iteritems()]
25417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25418
 
25419
  def __eq__(self, other):
25420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25421
 
25422
  def __ne__(self, other):
25423
    return not (self == other)
9242 kshitij.so 25424
 
25425
class searchSnapdealItems_args:
25426
  """
25427
  Attributes:
25428
   - searchTerm
25429
   - offset
25430
   - limit
25431
  """
25432
 
25433
  thrift_spec = (
25434
    None, # 0
25435
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25436
    (2, TType.I64, 'offset', None, None, ), # 2
25437
    (3, TType.I64, 'limit', None, None, ), # 3
25438
  )
25439
 
25440
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25441
    self.searchTerm = searchTerm
25442
    self.offset = offset
25443
    self.limit = limit
25444
 
25445
  def read(self, iprot):
25446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25448
      return
25449
    iprot.readStructBegin()
25450
    while True:
25451
      (fname, ftype, fid) = iprot.readFieldBegin()
25452
      if ftype == TType.STOP:
25453
        break
25454
      if fid == 1:
25455
        if ftype == TType.LIST:
25456
          self.searchTerm = []
12567 amit.gupta 25457
          (_etype539, _size536) = iprot.readListBegin()
25458
          for _i540 in xrange(_size536):
25459
            _elem541 = iprot.readString();
25460
            self.searchTerm.append(_elem541)
9242 kshitij.so 25461
          iprot.readListEnd()
25462
        else:
25463
          iprot.skip(ftype)
25464
      elif fid == 2:
25465
        if ftype == TType.I64:
25466
          self.offset = iprot.readI64();
25467
        else:
25468
          iprot.skip(ftype)
25469
      elif fid == 3:
25470
        if ftype == TType.I64:
25471
          self.limit = iprot.readI64();
25472
        else:
25473
          iprot.skip(ftype)
25474
      else:
25475
        iprot.skip(ftype)
25476
      iprot.readFieldEnd()
25477
    iprot.readStructEnd()
25478
 
25479
  def write(self, oprot):
25480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25482
      return
25483
    oprot.writeStructBegin('searchSnapdealItems_args')
25484
    if self.searchTerm is not None:
25485
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25486
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25487
      for iter542 in self.searchTerm:
25488
        oprot.writeString(iter542)
9242 kshitij.so 25489
      oprot.writeListEnd()
25490
      oprot.writeFieldEnd()
25491
    if self.offset is not None:
25492
      oprot.writeFieldBegin('offset', TType.I64, 2)
25493
      oprot.writeI64(self.offset)
25494
      oprot.writeFieldEnd()
25495
    if self.limit is not None:
25496
      oprot.writeFieldBegin('limit', TType.I64, 3)
25497
      oprot.writeI64(self.limit)
25498
      oprot.writeFieldEnd()
25499
    oprot.writeFieldStop()
25500
    oprot.writeStructEnd()
25501
 
25502
  def validate(self):
25503
    return
25504
 
25505
 
25506
  def __repr__(self):
25507
    L = ['%s=%r' % (key, value)
25508
      for key, value in self.__dict__.iteritems()]
25509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25510
 
25511
  def __eq__(self, other):
25512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25513
 
25514
  def __ne__(self, other):
25515
    return not (self == other)
25516
 
25517
class searchSnapdealItems_result:
25518
  """
25519
  Attributes:
25520
   - success
25521
  """
25522
 
25523
  thrift_spec = (
25524
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25525
  )
25526
 
25527
  def __init__(self, success=None,):
25528
    self.success = success
25529
 
25530
  def read(self, iprot):
25531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25533
      return
25534
    iprot.readStructBegin()
25535
    while True:
25536
      (fname, ftype, fid) = iprot.readFieldBegin()
25537
      if ftype == TType.STOP:
25538
        break
25539
      if fid == 0:
25540
        if ftype == TType.LIST:
25541
          self.success = []
12567 amit.gupta 25542
          (_etype546, _size543) = iprot.readListBegin()
25543
          for _i547 in xrange(_size543):
25544
            _elem548 = SnapdealItemDetails()
25545
            _elem548.read(iprot)
25546
            self.success.append(_elem548)
9242 kshitij.so 25547
          iprot.readListEnd()
25548
        else:
25549
          iprot.skip(ftype)
25550
      else:
25551
        iprot.skip(ftype)
25552
      iprot.readFieldEnd()
25553
    iprot.readStructEnd()
25554
 
25555
  def write(self, oprot):
25556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25558
      return
25559
    oprot.writeStructBegin('searchSnapdealItems_result')
25560
    if self.success is not None:
25561
      oprot.writeFieldBegin('success', TType.LIST, 0)
25562
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25563
      for iter549 in self.success:
25564
        iter549.write(oprot)
9242 kshitij.so 25565
      oprot.writeListEnd()
25566
      oprot.writeFieldEnd()
25567
    oprot.writeFieldStop()
25568
    oprot.writeStructEnd()
25569
 
25570
  def validate(self):
25571
    return
25572
 
25573
 
25574
  def __repr__(self):
25575
    L = ['%s=%r' % (key, value)
25576
      for key, value in self.__dict__.iteritems()]
25577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25578
 
25579
  def __eq__(self, other):
25580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25581
 
25582
  def __ne__(self, other):
25583
    return not (self == other)
25584
 
25585
class getCountForSnapdealItems_args:
25586
 
25587
  thrift_spec = (
25588
  )
25589
 
25590
  def read(self, iprot):
25591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25593
      return
25594
    iprot.readStructBegin()
25595
    while True:
25596
      (fname, ftype, fid) = iprot.readFieldBegin()
25597
      if ftype == TType.STOP:
25598
        break
25599
      else:
25600
        iprot.skip(ftype)
25601
      iprot.readFieldEnd()
25602
    iprot.readStructEnd()
25603
 
25604
  def write(self, oprot):
25605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25607
      return
25608
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25609
    oprot.writeFieldStop()
25610
    oprot.writeStructEnd()
25611
 
25612
  def validate(self):
25613
    return
25614
 
25615
 
25616
  def __repr__(self):
25617
    L = ['%s=%r' % (key, value)
25618
      for key, value in self.__dict__.iteritems()]
25619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25620
 
25621
  def __eq__(self, other):
25622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25623
 
25624
  def __ne__(self, other):
25625
    return not (self == other)
25626
 
25627
class getCountForSnapdealItems_result:
25628
  """
25629
  Attributes:
25630
   - success
25631
  """
25632
 
25633
  thrift_spec = (
25634
    (0, TType.I64, 'success', None, None, ), # 0
25635
  )
25636
 
25637
  def __init__(self, success=None,):
25638
    self.success = success
25639
 
25640
  def read(self, iprot):
25641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25643
      return
25644
    iprot.readStructBegin()
25645
    while True:
25646
      (fname, ftype, fid) = iprot.readFieldBegin()
25647
      if ftype == TType.STOP:
25648
        break
25649
      if fid == 0:
25650
        if ftype == TType.I64:
25651
          self.success = iprot.readI64();
25652
        else:
25653
          iprot.skip(ftype)
25654
      else:
25655
        iprot.skip(ftype)
25656
      iprot.readFieldEnd()
25657
    iprot.readStructEnd()
25658
 
25659
  def write(self, oprot):
25660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25662
      return
25663
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25664
    if self.success is not None:
25665
      oprot.writeFieldBegin('success', TType.I64, 0)
25666
      oprot.writeI64(self.success)
25667
      oprot.writeFieldEnd()
25668
    oprot.writeFieldStop()
25669
    oprot.writeStructEnd()
25670
 
25671
  def validate(self):
25672
    return
25673
 
25674
 
25675
  def __repr__(self):
25676
    L = ['%s=%r' % (key, value)
25677
      for key, value in self.__dict__.iteritems()]
25678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25679
 
25680
  def __eq__(self, other):
25681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25682
 
25683
  def __ne__(self, other):
25684
    return not (self == other)
25685
 
25686
class getSnapdealSearchResultCount_args:
25687
  """
25688
  Attributes:
25689
   - searchTerm
25690
  """
25691
 
25692
  thrift_spec = (
25693
    None, # 0
25694
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25695
  )
25696
 
25697
  def __init__(self, searchTerm=None,):
25698
    self.searchTerm = searchTerm
25699
 
25700
  def read(self, iprot):
25701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25703
      return
25704
    iprot.readStructBegin()
25705
    while True:
25706
      (fname, ftype, fid) = iprot.readFieldBegin()
25707
      if ftype == TType.STOP:
25708
        break
25709
      if fid == 1:
25710
        if ftype == TType.LIST:
25711
          self.searchTerm = []
12567 amit.gupta 25712
          (_etype553, _size550) = iprot.readListBegin()
25713
          for _i554 in xrange(_size550):
25714
            _elem555 = iprot.readString();
25715
            self.searchTerm.append(_elem555)
9242 kshitij.so 25716
          iprot.readListEnd()
25717
        else:
25718
          iprot.skip(ftype)
25719
      else:
25720
        iprot.skip(ftype)
25721
      iprot.readFieldEnd()
25722
    iprot.readStructEnd()
25723
 
25724
  def write(self, oprot):
25725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25727
      return
25728
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
25729
    if self.searchTerm is not None:
25730
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25731
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25732
      for iter556 in self.searchTerm:
25733
        oprot.writeString(iter556)
9242 kshitij.so 25734
      oprot.writeListEnd()
25735
      oprot.writeFieldEnd()
25736
    oprot.writeFieldStop()
25737
    oprot.writeStructEnd()
25738
 
25739
  def validate(self):
25740
    return
25741
 
25742
 
25743
  def __repr__(self):
25744
    L = ['%s=%r' % (key, value)
25745
      for key, value in self.__dict__.iteritems()]
25746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25747
 
25748
  def __eq__(self, other):
25749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25750
 
25751
  def __ne__(self, other):
25752
    return not (self == other)
25753
 
25754
class getSnapdealSearchResultCount_result:
25755
  """
25756
  Attributes:
25757
   - success
25758
  """
25759
 
25760
  thrift_spec = (
25761
    (0, TType.I64, 'success', None, None, ), # 0
25762
  )
25763
 
25764
  def __init__(self, success=None,):
25765
    self.success = success
25766
 
25767
  def read(self, iprot):
25768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25770
      return
25771
    iprot.readStructBegin()
25772
    while True:
25773
      (fname, ftype, fid) = iprot.readFieldBegin()
25774
      if ftype == TType.STOP:
25775
        break
25776
      if fid == 0:
25777
        if ftype == TType.I64:
25778
          self.success = iprot.readI64();
25779
        else:
25780
          iprot.skip(ftype)
25781
      else:
25782
        iprot.skip(ftype)
25783
      iprot.readFieldEnd()
25784
    iprot.readStructEnd()
25785
 
25786
  def write(self, oprot):
25787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25789
      return
25790
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
25791
    if self.success is not None:
25792
      oprot.writeFieldBegin('success', TType.I64, 0)
25793
      oprot.writeI64(self.success)
25794
      oprot.writeFieldEnd()
25795
    oprot.writeFieldStop()
25796
    oprot.writeStructEnd()
25797
 
25798
  def validate(self):
25799
    return
25800
 
25801
 
25802
  def __repr__(self):
25803
    L = ['%s=%r' % (key, value)
25804
      for key, value in self.__dict__.iteritems()]
25805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25806
 
25807
  def __eq__(self, other):
25808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25809
 
25810
  def __ne__(self, other):
25811
    return not (self == other)
9299 kshitij.so 25812
 
25813
class getPrefferedInsurerForItem_args:
25814
  """
25815
  Attributes:
25816
   - itemId
25817
   - insurerType
25818
  """
25819
 
25820
  thrift_spec = (
25821
    None, # 0
25822
    (1, TType.I64, 'itemId', None, None, ), # 1
25823
    (2, TType.I32, 'insurerType', None, None, ), # 2
25824
  )
25825
 
25826
  def __init__(self, itemId=None, insurerType=None,):
25827
    self.itemId = itemId
25828
    self.insurerType = insurerType
25829
 
25830
  def read(self, iprot):
25831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25833
      return
25834
    iprot.readStructBegin()
25835
    while True:
25836
      (fname, ftype, fid) = iprot.readFieldBegin()
25837
      if ftype == TType.STOP:
25838
        break
25839
      if fid == 1:
25840
        if ftype == TType.I64:
25841
          self.itemId = iprot.readI64();
25842
        else:
25843
          iprot.skip(ftype)
25844
      elif fid == 2:
25845
        if ftype == TType.I32:
25846
          self.insurerType = iprot.readI32();
25847
        else:
25848
          iprot.skip(ftype)
25849
      else:
25850
        iprot.skip(ftype)
25851
      iprot.readFieldEnd()
25852
    iprot.readStructEnd()
25853
 
25854
  def write(self, oprot):
25855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25857
      return
25858
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
25859
    if self.itemId is not None:
25860
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25861
      oprot.writeI64(self.itemId)
25862
      oprot.writeFieldEnd()
25863
    if self.insurerType is not None:
25864
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
25865
      oprot.writeI32(self.insurerType)
25866
      oprot.writeFieldEnd()
25867
    oprot.writeFieldStop()
25868
    oprot.writeStructEnd()
25869
 
25870
  def validate(self):
25871
    return
25872
 
25873
 
25874
  def __repr__(self):
25875
    L = ['%s=%r' % (key, value)
25876
      for key, value in self.__dict__.iteritems()]
25877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25878
 
25879
  def __eq__(self, other):
25880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25881
 
25882
  def __ne__(self, other):
25883
    return not (self == other)
25884
 
25885
class getPrefferedInsurerForItem_result:
25886
  """
25887
  Attributes:
25888
   - success
25889
  """
25890
 
25891
  thrift_spec = (
25892
    (0, TType.I64, 'success', None, None, ), # 0
25893
  )
25894
 
25895
  def __init__(self, success=None,):
25896
    self.success = success
25897
 
25898
  def read(self, iprot):
25899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25901
      return
25902
    iprot.readStructBegin()
25903
    while True:
25904
      (fname, ftype, fid) = iprot.readFieldBegin()
25905
      if ftype == TType.STOP:
25906
        break
25907
      if fid == 0:
25908
        if ftype == TType.I64:
25909
          self.success = iprot.readI64();
25910
        else:
25911
          iprot.skip(ftype)
25912
      else:
25913
        iprot.skip(ftype)
25914
      iprot.readFieldEnd()
25915
    iprot.readStructEnd()
25916
 
25917
  def write(self, oprot):
25918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25920
      return
25921
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
25922
    if self.success is not None:
25923
      oprot.writeFieldBegin('success', TType.I64, 0)
25924
      oprot.writeI64(self.success)
25925
      oprot.writeFieldEnd()
25926
    oprot.writeFieldStop()
25927
    oprot.writeStructEnd()
25928
 
25929
  def validate(self):
25930
    return
25931
 
25932
 
25933
  def __repr__(self):
25934
    L = ['%s=%r' % (key, value)
25935
      for key, value in self.__dict__.iteritems()]
25936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25937
 
25938
  def __eq__(self, other):
25939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25940
 
25941
  def __ne__(self, other):
25942
    return not (self == other)
9456 vikram.rag 25943
 
25944
class getSnapdealItembySkuAtSnapdeal_args:
25945
  """
25946
  Attributes:
25947
   - skuAtSnapdeal
25948
  """
25949
 
25950
  thrift_spec = None
25951
  def __init__(self, skuAtSnapdeal=None,):
25952
    self.skuAtSnapdeal = skuAtSnapdeal
25953
 
25954
  def read(self, iprot):
25955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25957
      return
25958
    iprot.readStructBegin()
25959
    while True:
25960
      (fname, ftype, fid) = iprot.readFieldBegin()
25961
      if ftype == TType.STOP:
25962
        break
25963
      if fid == -1:
25964
        if ftype == TType.STRING:
25965
          self.skuAtSnapdeal = iprot.readString();
25966
        else:
25967
          iprot.skip(ftype)
25968
      else:
25969
        iprot.skip(ftype)
25970
      iprot.readFieldEnd()
25971
    iprot.readStructEnd()
25972
 
25973
  def write(self, oprot):
25974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25976
      return
25977
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
25978
    if self.skuAtSnapdeal is not None:
25979
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
25980
      oprot.writeString(self.skuAtSnapdeal)
25981
      oprot.writeFieldEnd()
25982
    oprot.writeFieldStop()
25983
    oprot.writeStructEnd()
25984
 
25985
  def validate(self):
25986
    return
25987
 
25988
 
25989
  def __repr__(self):
25990
    L = ['%s=%r' % (key, value)
25991
      for key, value in self.__dict__.iteritems()]
25992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25993
 
25994
  def __eq__(self, other):
25995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25996
 
25997
  def __ne__(self, other):
25998
    return not (self == other)
25999
 
26000
class getSnapdealItembySkuAtSnapdeal_result:
26001
  """
26002
  Attributes:
26003
   - success
26004
  """
26005
 
26006
  thrift_spec = (
26007
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
26008
  )
26009
 
26010
  def __init__(self, success=None,):
26011
    self.success = success
26012
 
26013
  def read(self, iprot):
26014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26016
      return
26017
    iprot.readStructBegin()
26018
    while True:
26019
      (fname, ftype, fid) = iprot.readFieldBegin()
26020
      if ftype == TType.STOP:
26021
        break
26022
      if fid == 0:
26023
        if ftype == TType.STRUCT:
26024
          self.success = SnapdealItem()
26025
          self.success.read(iprot)
26026
        else:
26027
          iprot.skip(ftype)
26028
      else:
26029
        iprot.skip(ftype)
26030
      iprot.readFieldEnd()
26031
    iprot.readStructEnd()
26032
 
26033
  def write(self, oprot):
26034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26036
      return
26037
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
26038
    if self.success is not None:
26039
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26040
      self.success.write(oprot)
26041
      oprot.writeFieldEnd()
26042
    oprot.writeFieldStop()
26043
    oprot.writeStructEnd()
26044
 
26045
  def validate(self):
26046
    return
26047
 
26048
 
26049
  def __repr__(self):
26050
    L = ['%s=%r' % (key, value)
26051
      for key, value in self.__dict__.iteritems()]
26052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26053
 
26054
  def __eq__(self, other):
26055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26056
 
26057
  def __ne__(self, other):
26058
    return not (self == other)
9621 manish.sha 26059
 
26060
class getProductFeedSubmit_args:
26061
  """
26062
  Attributes:
26063
   - catalogItemId
26064
  """
26065
 
26066
  thrift_spec = (
26067
    None, # 0
26068
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26069
  )
26070
 
26071
  def __init__(self, catalogItemId=None,):
26072
    self.catalogItemId = catalogItemId
26073
 
26074
  def read(self, iprot):
26075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26077
      return
26078
    iprot.readStructBegin()
26079
    while True:
26080
      (fname, ftype, fid) = iprot.readFieldBegin()
26081
      if ftype == TType.STOP:
26082
        break
26083
      if fid == 1:
26084
        if ftype == TType.I64:
26085
          self.catalogItemId = iprot.readI64();
26086
        else:
26087
          iprot.skip(ftype)
26088
      else:
26089
        iprot.skip(ftype)
26090
      iprot.readFieldEnd()
26091
    iprot.readStructEnd()
26092
 
26093
  def write(self, oprot):
26094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26096
      return
26097
    oprot.writeStructBegin('getProductFeedSubmit_args')
26098
    if self.catalogItemId is not None:
26099
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26100
      oprot.writeI64(self.catalogItemId)
26101
      oprot.writeFieldEnd()
26102
    oprot.writeFieldStop()
26103
    oprot.writeStructEnd()
26104
 
26105
  def validate(self):
26106
    return
26107
 
26108
 
26109
  def __repr__(self):
26110
    L = ['%s=%r' % (key, value)
26111
      for key, value in self.__dict__.iteritems()]
26112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26113
 
26114
  def __eq__(self, other):
26115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26116
 
26117
  def __ne__(self, other):
26118
    return not (self == other)
26119
 
26120
class getProductFeedSubmit_result:
26121
  """
26122
  Attributes:
26123
   - success
26124
   - cex
26125
  """
26126
 
26127
  thrift_spec = (
26128
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26129
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26130
  )
26131
 
26132
  def __init__(self, success=None, cex=None,):
26133
    self.success = success
26134
    self.cex = cex
26135
 
26136
  def read(self, iprot):
26137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26139
      return
26140
    iprot.readStructBegin()
26141
    while True:
26142
      (fname, ftype, fid) = iprot.readFieldBegin()
26143
      if ftype == TType.STOP:
26144
        break
26145
      if fid == 0:
26146
        if ftype == TType.STRUCT:
26147
          self.success = ProductFeedSubmit()
26148
          self.success.read(iprot)
26149
        else:
26150
          iprot.skip(ftype)
26151
      elif fid == 1:
26152
        if ftype == TType.STRUCT:
26153
          self.cex = CatalogServiceException()
26154
          self.cex.read(iprot)
26155
        else:
26156
          iprot.skip(ftype)
26157
      else:
26158
        iprot.skip(ftype)
26159
      iprot.readFieldEnd()
26160
    iprot.readStructEnd()
26161
 
26162
  def write(self, oprot):
26163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26165
      return
26166
    oprot.writeStructBegin('getProductFeedSubmit_result')
26167
    if self.success is not None:
26168
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26169
      self.success.write(oprot)
26170
      oprot.writeFieldEnd()
26171
    if self.cex is not None:
26172
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26173
      self.cex.write(oprot)
26174
      oprot.writeFieldEnd()
26175
    oprot.writeFieldStop()
26176
    oprot.writeStructEnd()
26177
 
26178
  def validate(self):
26179
    return
26180
 
26181
 
26182
  def __repr__(self):
26183
    L = ['%s=%r' % (key, value)
26184
      for key, value in self.__dict__.iteritems()]
26185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26186
 
26187
  def __eq__(self, other):
26188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26189
 
26190
  def __ne__(self, other):
26191
    return not (self == other)
26192
 
26193
class addProductFeedSubmit_args:
26194
  """
26195
  Attributes:
26196
   - productFeedSubmit
26197
  """
26198
 
26199
  thrift_spec = (
26200
    None, # 0
26201
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26202
  )
26203
 
26204
  def __init__(self, productFeedSubmit=None,):
26205
    self.productFeedSubmit = productFeedSubmit
26206
 
26207
  def read(self, iprot):
26208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26210
      return
26211
    iprot.readStructBegin()
26212
    while True:
26213
      (fname, ftype, fid) = iprot.readFieldBegin()
26214
      if ftype == TType.STOP:
26215
        break
26216
      if fid == 1:
26217
        if ftype == TType.STRUCT:
26218
          self.productFeedSubmit = ProductFeedSubmit()
26219
          self.productFeedSubmit.read(iprot)
26220
        else:
26221
          iprot.skip(ftype)
26222
      else:
26223
        iprot.skip(ftype)
26224
      iprot.readFieldEnd()
26225
    iprot.readStructEnd()
26226
 
26227
  def write(self, oprot):
26228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26230
      return
26231
    oprot.writeStructBegin('addProductFeedSubmit_args')
26232
    if self.productFeedSubmit is not None:
26233
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26234
      self.productFeedSubmit.write(oprot)
26235
      oprot.writeFieldEnd()
26236
    oprot.writeFieldStop()
26237
    oprot.writeStructEnd()
26238
 
26239
  def validate(self):
26240
    return
26241
 
26242
 
26243
  def __repr__(self):
26244
    L = ['%s=%r' % (key, value)
26245
      for key, value in self.__dict__.iteritems()]
26246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26247
 
26248
  def __eq__(self, other):
26249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26250
 
26251
  def __ne__(self, other):
26252
    return not (self == other)
26253
 
26254
class addProductFeedSubmit_result:
26255
  """
26256
  Attributes:
26257
   - success
26258
   - cex
26259
  """
26260
 
26261
  thrift_spec = (
26262
    (0, TType.BOOL, 'success', None, None, ), # 0
26263
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26264
  )
26265
 
26266
  def __init__(self, success=None, cex=None,):
26267
    self.success = success
26268
    self.cex = cex
26269
 
26270
  def read(self, iprot):
26271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26273
      return
26274
    iprot.readStructBegin()
26275
    while True:
26276
      (fname, ftype, fid) = iprot.readFieldBegin()
26277
      if ftype == TType.STOP:
26278
        break
26279
      if fid == 0:
26280
        if ftype == TType.BOOL:
26281
          self.success = iprot.readBool();
26282
        else:
26283
          iprot.skip(ftype)
26284
      elif fid == 1:
26285
        if ftype == TType.STRUCT:
26286
          self.cex = CatalogServiceException()
26287
          self.cex.read(iprot)
26288
        else:
26289
          iprot.skip(ftype)
26290
      else:
26291
        iprot.skip(ftype)
26292
      iprot.readFieldEnd()
26293
    iprot.readStructEnd()
26294
 
26295
  def write(self, oprot):
26296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26298
      return
26299
    oprot.writeStructBegin('addProductFeedSubmit_result')
26300
    if self.success is not None:
26301
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26302
      oprot.writeBool(self.success)
26303
      oprot.writeFieldEnd()
26304
    if self.cex is not None:
26305
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26306
      self.cex.write(oprot)
26307
      oprot.writeFieldEnd()
26308
    oprot.writeFieldStop()
26309
    oprot.writeStructEnd()
26310
 
26311
  def validate(self):
26312
    return
26313
 
26314
 
26315
  def __repr__(self):
26316
    L = ['%s=%r' % (key, value)
26317
      for key, value in self.__dict__.iteritems()]
26318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26319
 
26320
  def __eq__(self, other):
26321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26322
 
26323
  def __ne__(self, other):
26324
    return not (self == other)
26325
 
26326
class updateProductFeedSubmit_args:
26327
  """
26328
  Attributes:
26329
   - productFeedSubmit
26330
  """
26331
 
26332
  thrift_spec = (
26333
    None, # 0
26334
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26335
  )
26336
 
26337
  def __init__(self, productFeedSubmit=None,):
26338
    self.productFeedSubmit = productFeedSubmit
26339
 
26340
  def read(self, iprot):
26341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26343
      return
26344
    iprot.readStructBegin()
26345
    while True:
26346
      (fname, ftype, fid) = iprot.readFieldBegin()
26347
      if ftype == TType.STOP:
26348
        break
26349
      if fid == 1:
26350
        if ftype == TType.STRUCT:
26351
          self.productFeedSubmit = ProductFeedSubmit()
26352
          self.productFeedSubmit.read(iprot)
26353
        else:
26354
          iprot.skip(ftype)
26355
      else:
26356
        iprot.skip(ftype)
26357
      iprot.readFieldEnd()
26358
    iprot.readStructEnd()
26359
 
26360
  def write(self, oprot):
26361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26363
      return
26364
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26365
    if self.productFeedSubmit is not None:
26366
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26367
      self.productFeedSubmit.write(oprot)
26368
      oprot.writeFieldEnd()
26369
    oprot.writeFieldStop()
26370
    oprot.writeStructEnd()
26371
 
26372
  def validate(self):
26373
    return
26374
 
26375
 
26376
  def __repr__(self):
26377
    L = ['%s=%r' % (key, value)
26378
      for key, value in self.__dict__.iteritems()]
26379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26380
 
26381
  def __eq__(self, other):
26382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26383
 
26384
  def __ne__(self, other):
26385
    return not (self == other)
26386
 
26387
class updateProductFeedSubmit_result:
26388
  """
26389
  Attributes:
26390
   - success
26391
   - cex
26392
  """
26393
 
26394
  thrift_spec = (
26395
    (0, TType.BOOL, 'success', None, None, ), # 0
26396
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26397
  )
26398
 
26399
  def __init__(self, success=None, cex=None,):
26400
    self.success = success
26401
    self.cex = cex
26402
 
26403
  def read(self, iprot):
26404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26406
      return
26407
    iprot.readStructBegin()
26408
    while True:
26409
      (fname, ftype, fid) = iprot.readFieldBegin()
26410
      if ftype == TType.STOP:
26411
        break
26412
      if fid == 0:
26413
        if ftype == TType.BOOL:
26414
          self.success = iprot.readBool();
26415
        else:
26416
          iprot.skip(ftype)
26417
      elif fid == 1:
26418
        if ftype == TType.STRUCT:
26419
          self.cex = CatalogServiceException()
26420
          self.cex.read(iprot)
26421
        else:
26422
          iprot.skip(ftype)
26423
      else:
26424
        iprot.skip(ftype)
26425
      iprot.readFieldEnd()
26426
    iprot.readStructEnd()
26427
 
26428
  def write(self, oprot):
26429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26431
      return
26432
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26433
    if self.success is not None:
26434
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26435
      oprot.writeBool(self.success)
26436
      oprot.writeFieldEnd()
26437
    if self.cex is not None:
26438
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26439
      self.cex.write(oprot)
26440
      oprot.writeFieldEnd()
26441
    oprot.writeFieldStop()
26442
    oprot.writeStructEnd()
26443
 
26444
  def validate(self):
26445
    return
26446
 
26447
 
26448
  def __repr__(self):
26449
    L = ['%s=%r' % (key, value)
26450
      for key, value in self.__dict__.iteritems()]
26451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26452
 
26453
  def __eq__(self, other):
26454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26455
 
26456
  def __ne__(self, other):
26457
    return not (self == other)
26458
 
26459
class deleteProductFeedSubmit_args:
26460
  """
26461
  Attributes:
26462
   - catalogItemId
26463
  """
26464
 
26465
  thrift_spec = (
26466
    None, # 0
26467
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26468
  )
26469
 
26470
  def __init__(self, catalogItemId=None,):
26471
    self.catalogItemId = catalogItemId
26472
 
26473
  def read(self, iprot):
26474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26476
      return
26477
    iprot.readStructBegin()
26478
    while True:
26479
      (fname, ftype, fid) = iprot.readFieldBegin()
26480
      if ftype == TType.STOP:
26481
        break
26482
      if fid == 1:
26483
        if ftype == TType.I64:
26484
          self.catalogItemId = iprot.readI64();
26485
        else:
26486
          iprot.skip(ftype)
26487
      else:
26488
        iprot.skip(ftype)
26489
      iprot.readFieldEnd()
26490
    iprot.readStructEnd()
26491
 
26492
  def write(self, oprot):
26493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26495
      return
26496
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26497
    if self.catalogItemId is not None:
26498
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26499
      oprot.writeI64(self.catalogItemId)
26500
      oprot.writeFieldEnd()
26501
    oprot.writeFieldStop()
26502
    oprot.writeStructEnd()
26503
 
26504
  def validate(self):
26505
    return
26506
 
26507
 
26508
  def __repr__(self):
26509
    L = ['%s=%r' % (key, value)
26510
      for key, value in self.__dict__.iteritems()]
26511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26512
 
26513
  def __eq__(self, other):
26514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26515
 
26516
  def __ne__(self, other):
26517
    return not (self == other)
26518
 
26519
class deleteProductFeedSubmit_result:
26520
  """
26521
  Attributes:
26522
   - success
26523
   - cex
26524
  """
26525
 
26526
  thrift_spec = (
26527
    (0, TType.BOOL, 'success', None, None, ), # 0
26528
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26529
  )
26530
 
26531
  def __init__(self, success=None, cex=None,):
26532
    self.success = success
26533
    self.cex = cex
26534
 
26535
  def read(self, iprot):
26536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26538
      return
26539
    iprot.readStructBegin()
26540
    while True:
26541
      (fname, ftype, fid) = iprot.readFieldBegin()
26542
      if ftype == TType.STOP:
26543
        break
26544
      if fid == 0:
26545
        if ftype == TType.BOOL:
26546
          self.success = iprot.readBool();
26547
        else:
26548
          iprot.skip(ftype)
26549
      elif fid == 1:
26550
        if ftype == TType.STRUCT:
26551
          self.cex = CatalogServiceException()
26552
          self.cex.read(iprot)
26553
        else:
26554
          iprot.skip(ftype)
26555
      else:
26556
        iprot.skip(ftype)
26557
      iprot.readFieldEnd()
26558
    iprot.readStructEnd()
26559
 
26560
  def write(self, oprot):
26561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26563
      return
26564
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26565
    if self.success is not None:
26566
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26567
      oprot.writeBool(self.success)
26568
      oprot.writeFieldEnd()
26569
    if self.cex is not None:
26570
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26571
      self.cex.write(oprot)
26572
      oprot.writeFieldEnd()
26573
    oprot.writeFieldStop()
26574
    oprot.writeStructEnd()
26575
 
26576
  def validate(self):
26577
    return
26578
 
26579
 
26580
  def __repr__(self):
26581
    L = ['%s=%r' % (key, value)
26582
      for key, value in self.__dict__.iteritems()]
26583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26584
 
26585
  def __eq__(self, other):
26586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26587
 
26588
  def __ne__(self, other):
26589
    return not (self == other)
26590
 
26591
class getAllProductFeedSubmit_args:
26592
 
26593
  thrift_spec = (
26594
  )
26595
 
26596
  def read(self, iprot):
26597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26599
      return
26600
    iprot.readStructBegin()
26601
    while True:
26602
      (fname, ftype, fid) = iprot.readFieldBegin()
26603
      if ftype == TType.STOP:
26604
        break
26605
      else:
26606
        iprot.skip(ftype)
26607
      iprot.readFieldEnd()
26608
    iprot.readStructEnd()
26609
 
26610
  def write(self, oprot):
26611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26613
      return
26614
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26615
    oprot.writeFieldStop()
26616
    oprot.writeStructEnd()
26617
 
26618
  def validate(self):
26619
    return
26620
 
26621
 
26622
  def __repr__(self):
26623
    L = ['%s=%r' % (key, value)
26624
      for key, value in self.__dict__.iteritems()]
26625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26626
 
26627
  def __eq__(self, other):
26628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26629
 
26630
  def __ne__(self, other):
26631
    return not (self == other)
26632
 
26633
class getAllProductFeedSubmit_result:
26634
  """
26635
  Attributes:
26636
   - success
26637
   - cex
26638
  """
26639
 
26640
  thrift_spec = (
26641
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26642
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26643
  )
26644
 
26645
  def __init__(self, success=None, cex=None,):
26646
    self.success = success
26647
    self.cex = cex
26648
 
26649
  def read(self, iprot):
26650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26652
      return
26653
    iprot.readStructBegin()
26654
    while True:
26655
      (fname, ftype, fid) = iprot.readFieldBegin()
26656
      if ftype == TType.STOP:
26657
        break
26658
      if fid == 0:
26659
        if ftype == TType.LIST:
26660
          self.success = []
12567 amit.gupta 26661
          (_etype560, _size557) = iprot.readListBegin()
26662
          for _i561 in xrange(_size557):
26663
            _elem562 = ProductFeedSubmit()
26664
            _elem562.read(iprot)
26665
            self.success.append(_elem562)
9621 manish.sha 26666
          iprot.readListEnd()
26667
        else:
26668
          iprot.skip(ftype)
26669
      elif fid == 1:
26670
        if ftype == TType.STRUCT:
26671
          self.cex = CatalogServiceException()
26672
          self.cex.read(iprot)
26673
        else:
26674
          iprot.skip(ftype)
26675
      else:
26676
        iprot.skip(ftype)
26677
      iprot.readFieldEnd()
26678
    iprot.readStructEnd()
26679
 
26680
  def write(self, oprot):
26681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26683
      return
26684
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26685
    if self.success is not None:
26686
      oprot.writeFieldBegin('success', TType.LIST, 0)
26687
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 26688
      for iter563 in self.success:
26689
        iter563.write(oprot)
9621 manish.sha 26690
      oprot.writeListEnd()
26691
      oprot.writeFieldEnd()
26692
    if self.cex is not None:
26693
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26694
      self.cex.write(oprot)
26695
      oprot.writeFieldEnd()
26696
    oprot.writeFieldStop()
26697
    oprot.writeStructEnd()
26698
 
26699
  def validate(self):
26700
    return
26701
 
26702
 
26703
  def __repr__(self):
26704
    L = ['%s=%r' % (key, value)
26705
      for key, value in self.__dict__.iteritems()]
26706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26707
 
26708
  def __eq__(self, other):
26709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26710
 
26711
  def __ne__(self, other):
26712
    return not (self == other)
9724 kshitij.so 26713
 
26714
class getMarketplacedetailsForItem_args:
26715
  """
26716
  Attributes:
26717
   - itemId
26718
   - sourceId
26719
  """
26720
 
26721
  thrift_spec = (
26722
    None, # 0
26723
    (1, TType.I64, 'itemId', None, None, ), # 1
26724
    (2, TType.I64, 'sourceId', None, None, ), # 2
26725
  )
26726
 
26727
  def __init__(self, itemId=None, sourceId=None,):
26728
    self.itemId = itemId
26729
    self.sourceId = sourceId
26730
 
26731
  def read(self, iprot):
26732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26734
      return
26735
    iprot.readStructBegin()
26736
    while True:
26737
      (fname, ftype, fid) = iprot.readFieldBegin()
26738
      if ftype == TType.STOP:
26739
        break
26740
      if fid == 1:
26741
        if ftype == TType.I64:
26742
          self.itemId = iprot.readI64();
26743
        else:
26744
          iprot.skip(ftype)
26745
      elif fid == 2:
26746
        if ftype == TType.I64:
26747
          self.sourceId = iprot.readI64();
26748
        else:
26749
          iprot.skip(ftype)
26750
      else:
26751
        iprot.skip(ftype)
26752
      iprot.readFieldEnd()
26753
    iprot.readStructEnd()
26754
 
26755
  def write(self, oprot):
26756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26758
      return
26759
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
26760
    if self.itemId is not None:
26761
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26762
      oprot.writeI64(self.itemId)
26763
      oprot.writeFieldEnd()
26764
    if self.sourceId is not None:
26765
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
26766
      oprot.writeI64(self.sourceId)
26767
      oprot.writeFieldEnd()
26768
    oprot.writeFieldStop()
26769
    oprot.writeStructEnd()
26770
 
26771
  def validate(self):
26772
    return
26773
 
26774
 
26775
  def __repr__(self):
26776
    L = ['%s=%r' % (key, value)
26777
      for key, value in self.__dict__.iteritems()]
26778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26779
 
26780
  def __eq__(self, other):
26781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26782
 
26783
  def __ne__(self, other):
26784
    return not (self == other)
26785
 
26786
class getMarketplacedetailsForItem_result:
26787
  """
26788
  Attributes:
26789
   - success
26790
  """
26791
 
26792
  thrift_spec = (
26793
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
26794
  )
26795
 
26796
  def __init__(self, success=None,):
26797
    self.success = success
26798
 
26799
  def read(self, iprot):
26800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26802
      return
26803
    iprot.readStructBegin()
26804
    while True:
26805
      (fname, ftype, fid) = iprot.readFieldBegin()
26806
      if ftype == TType.STOP:
26807
        break
26808
      if fid == 0:
26809
        if ftype == TType.STRUCT:
26810
          self.success = MarketplaceItems()
26811
          self.success.read(iprot)
26812
        else:
26813
          iprot.skip(ftype)
26814
      else:
26815
        iprot.skip(ftype)
26816
      iprot.readFieldEnd()
26817
    iprot.readStructEnd()
26818
 
26819
  def write(self, oprot):
26820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26822
      return
26823
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
26824
    if self.success is not None:
26825
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26826
      self.success.write(oprot)
26827
      oprot.writeFieldEnd()
26828
    oprot.writeFieldStop()
26829
    oprot.writeStructEnd()
26830
 
26831
  def validate(self):
26832
    return
26833
 
26834
 
26835
  def __repr__(self):
26836
    L = ['%s=%r' % (key, value)
26837
      for key, value in self.__dict__.iteritems()]
26838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26839
 
26840
  def __eq__(self, other):
26841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26842
 
26843
  def __ne__(self, other):
26844
    return not (self == other)
26845
 
26846
class updateMarketplaceAttributesForItem_args:
26847
  """
26848
  Attributes:
26849
   - marketPlaceItem
26850
  """
26851
 
26852
  thrift_spec = (
26853
    None, # 0
26854
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
26855
  )
26856
 
26857
  def __init__(self, marketPlaceItem=None,):
26858
    self.marketPlaceItem = marketPlaceItem
26859
 
26860
  def read(self, iprot):
26861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26863
      return
26864
    iprot.readStructBegin()
26865
    while True:
26866
      (fname, ftype, fid) = iprot.readFieldBegin()
26867
      if ftype == TType.STOP:
26868
        break
26869
      if fid == 1:
26870
        if ftype == TType.STRUCT:
26871
          self.marketPlaceItem = MarketplaceItems()
26872
          self.marketPlaceItem.read(iprot)
26873
        else:
26874
          iprot.skip(ftype)
26875
      else:
26876
        iprot.skip(ftype)
26877
      iprot.readFieldEnd()
26878
    iprot.readStructEnd()
26879
 
26880
  def write(self, oprot):
26881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26883
      return
26884
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
26885
    if self.marketPlaceItem is not None:
26886
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
26887
      self.marketPlaceItem.write(oprot)
26888
      oprot.writeFieldEnd()
26889
    oprot.writeFieldStop()
26890
    oprot.writeStructEnd()
26891
 
26892
  def validate(self):
26893
    return
26894
 
26895
 
26896
  def __repr__(self):
26897
    L = ['%s=%r' % (key, value)
26898
      for key, value in self.__dict__.iteritems()]
26899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26900
 
26901
  def __eq__(self, other):
26902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26903
 
26904
  def __ne__(self, other):
26905
    return not (self == other)
26906
 
26907
class updateMarketplaceAttributesForItem_result:
26908
  """
26909
  Attributes:
26910
   - success
26911
  """
26912
 
26913
  thrift_spec = (
26914
    (0, TType.BOOL, 'success', None, None, ), # 0
26915
  )
26916
 
26917
  def __init__(self, success=None,):
26918
    self.success = success
26919
 
26920
  def read(self, iprot):
26921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26923
      return
26924
    iprot.readStructBegin()
26925
    while True:
26926
      (fname, ftype, fid) = iprot.readFieldBegin()
26927
      if ftype == TType.STOP:
26928
        break
26929
      if fid == 0:
26930
        if ftype == TType.BOOL:
26931
          self.success = iprot.readBool();
26932
        else:
26933
          iprot.skip(ftype)
26934
      else:
26935
        iprot.skip(ftype)
26936
      iprot.readFieldEnd()
26937
    iprot.readStructEnd()
26938
 
26939
  def write(self, oprot):
26940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26942
      return
26943
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
26944
    if self.success is not None:
26945
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26946
      oprot.writeBool(self.success)
26947
      oprot.writeFieldEnd()
26948
    oprot.writeFieldStop()
26949
    oprot.writeStructEnd()
26950
 
26951
  def validate(self):
26952
    return
26953
 
26954
 
26955
  def __repr__(self):
26956
    L = ['%s=%r' % (key, value)
26957
      for key, value in self.__dict__.iteritems()]
26958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26959
 
26960
  def __eq__(self, other):
26961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26962
 
26963
  def __ne__(self, other):
26964
    return not (self == other)
9776 vikram.rag 26965
 
9779 kshitij.so 26966
class getCostingForMarketplace_args:
26967
  """
26968
  Attributes:
26969
   - source
26970
   - item_id
26971
  """
26972
 
26973
  thrift_spec = (
26974
    None, # 0
26975
    (1, TType.I64, 'source', None, None, ), # 1
26976
    (2, TType.I64, 'item_id', None, None, ), # 2
26977
  )
26978
 
26979
  def __init__(self, source=None, item_id=None,):
26980
    self.source = source
26981
    self.item_id = item_id
26982
 
26983
  def read(self, iprot):
26984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26986
      return
26987
    iprot.readStructBegin()
26988
    while True:
26989
      (fname, ftype, fid) = iprot.readFieldBegin()
26990
      if ftype == TType.STOP:
26991
        break
26992
      if fid == 1:
26993
        if ftype == TType.I64:
26994
          self.source = iprot.readI64();
26995
        else:
26996
          iprot.skip(ftype)
26997
      elif fid == 2:
26998
        if ftype == TType.I64:
26999
          self.item_id = iprot.readI64();
27000
        else:
27001
          iprot.skip(ftype)
27002
      else:
27003
        iprot.skip(ftype)
27004
      iprot.readFieldEnd()
27005
    iprot.readStructEnd()
27006
 
27007
  def write(self, oprot):
27008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27010
      return
27011
    oprot.writeStructBegin('getCostingForMarketplace_args')
27012
    if self.source is not None:
27013
      oprot.writeFieldBegin('source', TType.I64, 1)
27014
      oprot.writeI64(self.source)
27015
      oprot.writeFieldEnd()
27016
    if self.item_id is not None:
27017
      oprot.writeFieldBegin('item_id', TType.I64, 2)
27018
      oprot.writeI64(self.item_id)
27019
      oprot.writeFieldEnd()
27020
    oprot.writeFieldStop()
27021
    oprot.writeStructEnd()
27022
 
27023
  def validate(self):
27024
    return
27025
 
27026
 
27027
  def __repr__(self):
27028
    L = ['%s=%r' % (key, value)
27029
      for key, value in self.__dict__.iteritems()]
27030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27031
 
27032
  def __eq__(self, other):
27033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27034
 
27035
  def __ne__(self, other):
27036
    return not (self == other)
27037
 
27038
class getCostingForMarketplace_result:
27039
  """
27040
  Attributes:
27041
   - success
27042
  """
27043
 
27044
  thrift_spec = (
27045
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
27046
  )
27047
 
27048
  def __init__(self, success=None,):
27049
    self.success = success
27050
 
27051
  def read(self, iprot):
27052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27054
      return
27055
    iprot.readStructBegin()
27056
    while True:
27057
      (fname, ftype, fid) = iprot.readFieldBegin()
27058
      if ftype == TType.STOP:
27059
        break
27060
      if fid == 0:
27061
        if ftype == TType.STRUCT:
27062
          self.success = MarketplacePercentage()
27063
          self.success.read(iprot)
27064
        else:
27065
          iprot.skip(ftype)
27066
      else:
27067
        iprot.skip(ftype)
27068
      iprot.readFieldEnd()
27069
    iprot.readStructEnd()
27070
 
27071
  def write(self, oprot):
27072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27074
      return
27075
    oprot.writeStructBegin('getCostingForMarketplace_result')
27076
    if self.success is not None:
27077
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27078
      self.success.write(oprot)
27079
      oprot.writeFieldEnd()
27080
    oprot.writeFieldStop()
27081
    oprot.writeStructEnd()
27082
 
27083
  def validate(self):
27084
    return
27085
 
27086
 
27087
  def __repr__(self):
27088
    L = ['%s=%r' % (key, value)
27089
      for key, value in self.__dict__.iteritems()]
27090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27091
 
27092
  def __eq__(self, other):
27093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27094
 
27095
  def __ne__(self, other):
27096
    return not (self == other)
27097
 
9776 vikram.rag 27098
class getMarketPlaceItemsForPriceUpdate_args:
27099
  """
27100
  Attributes:
27101
   - source
27102
  """
27103
 
27104
  thrift_spec = (
27105
    None, # 0
27106
    (1, TType.I64, 'source', None, None, ), # 1
27107
  )
27108
 
27109
  def __init__(self, source=None,):
27110
    self.source = source
27111
 
27112
  def read(self, iprot):
27113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27115
      return
27116
    iprot.readStructBegin()
27117
    while True:
27118
      (fname, ftype, fid) = iprot.readFieldBegin()
27119
      if ftype == TType.STOP:
27120
        break
27121
      if fid == 1:
27122
        if ftype == TType.I64:
27123
          self.source = iprot.readI64();
27124
        else:
27125
          iprot.skip(ftype)
27126
      else:
27127
        iprot.skip(ftype)
27128
      iprot.readFieldEnd()
27129
    iprot.readStructEnd()
27130
 
27131
  def write(self, oprot):
27132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27134
      return
27135
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27136
    if self.source is not None:
27137
      oprot.writeFieldBegin('source', TType.I64, 1)
27138
      oprot.writeI64(self.source)
27139
      oprot.writeFieldEnd()
27140
    oprot.writeFieldStop()
27141
    oprot.writeStructEnd()
27142
 
27143
  def validate(self):
27144
    return
27145
 
27146
 
27147
  def __repr__(self):
27148
    L = ['%s=%r' % (key, value)
27149
      for key, value in self.__dict__.iteritems()]
27150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27151
 
27152
  def __eq__(self, other):
27153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27154
 
27155
  def __ne__(self, other):
27156
    return not (self == other)
27157
 
27158
class getMarketPlaceItemsForPriceUpdate_result:
27159
  """
27160
  Attributes:
27161
   - success
27162
  """
27163
 
27164
  thrift_spec = (
27165
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27166
  )
27167
 
27168
  def __init__(self, success=None,):
27169
    self.success = success
27170
 
27171
  def read(self, iprot):
27172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27174
      return
27175
    iprot.readStructBegin()
27176
    while True:
27177
      (fname, ftype, fid) = iprot.readFieldBegin()
27178
      if ftype == TType.STOP:
27179
        break
27180
      if fid == 0:
27181
        if ftype == TType.LIST:
27182
          self.success = []
12567 amit.gupta 27183
          (_etype567, _size564) = iprot.readListBegin()
27184
          for _i568 in xrange(_size564):
27185
            _elem569 = MarketPlaceItemPrice()
27186
            _elem569.read(iprot)
27187
            self.success.append(_elem569)
9776 vikram.rag 27188
          iprot.readListEnd()
27189
        else:
27190
          iprot.skip(ftype)
27191
      else:
27192
        iprot.skip(ftype)
27193
      iprot.readFieldEnd()
27194
    iprot.readStructEnd()
27195
 
27196
  def write(self, oprot):
27197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27199
      return
27200
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27201
    if self.success is not None:
27202
      oprot.writeFieldBegin('success', TType.LIST, 0)
27203
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27204
      for iter570 in self.success:
27205
        iter570.write(oprot)
9776 vikram.rag 27206
      oprot.writeListEnd()
27207
      oprot.writeFieldEnd()
27208
    oprot.writeFieldStop()
27209
    oprot.writeStructEnd()
27210
 
27211
  def validate(self):
27212
    return
27213
 
27214
 
27215
  def __repr__(self):
27216
    L = ['%s=%r' % (key, value)
27217
      for key, value in self.__dict__.iteritems()]
27218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27219
 
27220
  def __eq__(self, other):
27221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27222
 
27223
  def __ne__(self, other):
27224
    return not (self == other)
27225
 
27226
class updateMarketPlacePriceUpdateStatus_args:
27227
  """
27228
  Attributes:
27229
   - skulist
27230
   - timestamp
9816 kshitij.so 27231
   - source
9776 vikram.rag 27232
  """
27233
 
27234
  thrift_spec = (
27235
    None, # 0
27236
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27237
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27238
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27239
  )
27240
 
9816 kshitij.so 27241
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27242
    self.skulist = skulist
27243
    self.timestamp = timestamp
9816 kshitij.so 27244
    self.source = source
9776 vikram.rag 27245
 
27246
  def read(self, iprot):
27247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27249
      return
27250
    iprot.readStructBegin()
27251
    while True:
27252
      (fname, ftype, fid) = iprot.readFieldBegin()
27253
      if ftype == TType.STOP:
27254
        break
27255
      if fid == 1:
27256
        if ftype == TType.LIST:
27257
          self.skulist = []
12567 amit.gupta 27258
          (_etype574, _size571) = iprot.readListBegin()
27259
          for _i575 in xrange(_size571):
27260
            _elem576 = iprot.readI64();
27261
            self.skulist.append(_elem576)
9776 vikram.rag 27262
          iprot.readListEnd()
27263
        else:
27264
          iprot.skip(ftype)
27265
      elif fid == 2:
27266
        if ftype == TType.I64:
27267
          self.timestamp = iprot.readI64();
27268
        else:
27269
          iprot.skip(ftype)
9816 kshitij.so 27270
      elif fid == 3:
27271
        if ftype == TType.I64:
27272
          self.source = iprot.readI64();
27273
        else:
27274
          iprot.skip(ftype)
9776 vikram.rag 27275
      else:
27276
        iprot.skip(ftype)
27277
      iprot.readFieldEnd()
27278
    iprot.readStructEnd()
27279
 
27280
  def write(self, oprot):
27281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27283
      return
27284
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27285
    if self.skulist is not None:
27286
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27287
      oprot.writeListBegin(TType.I64, len(self.skulist))
12567 amit.gupta 27288
      for iter577 in self.skulist:
27289
        oprot.writeI64(iter577)
9776 vikram.rag 27290
      oprot.writeListEnd()
27291
      oprot.writeFieldEnd()
27292
    if self.timestamp is not None:
27293
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27294
      oprot.writeI64(self.timestamp)
27295
      oprot.writeFieldEnd()
9816 kshitij.so 27296
    if self.source is not None:
27297
      oprot.writeFieldBegin('source', TType.I64, 3)
27298
      oprot.writeI64(self.source)
27299
      oprot.writeFieldEnd()
9776 vikram.rag 27300
    oprot.writeFieldStop()
27301
    oprot.writeStructEnd()
27302
 
27303
  def validate(self):
27304
    return
27305
 
27306
 
27307
  def __repr__(self):
27308
    L = ['%s=%r' % (key, value)
27309
      for key, value in self.__dict__.iteritems()]
27310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27311
 
27312
  def __eq__(self, other):
27313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27314
 
27315
  def __ne__(self, other):
27316
    return not (self == other)
27317
 
27318
class updateMarketPlacePriceUpdateStatus_result:
27319
 
27320
  thrift_spec = (
27321
  )
27322
 
27323
  def read(self, iprot):
27324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27326
      return
27327
    iprot.readStructBegin()
27328
    while True:
27329
      (fname, ftype, fid) = iprot.readFieldBegin()
27330
      if ftype == TType.STOP:
27331
        break
27332
      else:
27333
        iprot.skip(ftype)
27334
      iprot.readFieldEnd()
27335
    iprot.readStructEnd()
27336
 
27337
  def write(self, oprot):
27338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27340
      return
27341
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27342
    oprot.writeFieldStop()
27343
    oprot.writeStructEnd()
27344
 
27345
  def validate(self):
27346
    return
27347
 
27348
 
27349
  def __repr__(self):
27350
    L = ['%s=%r' % (key, value)
27351
      for key, value in self.__dict__.iteritems()]
27352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27353
 
27354
  def __eq__(self, other):
27355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27356
 
27357
  def __ne__(self, other):
27358
    return not (self == other)
9861 rajveer 27359
 
27360
class updateItemHoldInventory_args:
27361
  """
27362
  Attributes:
27363
   - itemHoldMap
27364
  """
27365
 
27366
  thrift_spec = (
27367
    None, # 0
27368
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27369
  )
27370
 
27371
  def __init__(self, itemHoldMap=None,):
27372
    self.itemHoldMap = itemHoldMap
27373
 
27374
  def read(self, iprot):
27375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27377
      return
27378
    iprot.readStructBegin()
27379
    while True:
27380
      (fname, ftype, fid) = iprot.readFieldBegin()
27381
      if ftype == TType.STOP:
27382
        break
27383
      if fid == 1:
27384
        if ftype == TType.MAP:
27385
          self.itemHoldMap = {}
12567 amit.gupta 27386
          (_ktype579, _vtype580, _size578 ) = iprot.readMapBegin() 
27387
          for _i582 in xrange(_size578):
27388
            _key583 = iprot.readI64();
27389
            _val584 = iprot.readI64();
27390
            self.itemHoldMap[_key583] = _val584
9861 rajveer 27391
          iprot.readMapEnd()
27392
        else:
27393
          iprot.skip(ftype)
27394
      else:
27395
        iprot.skip(ftype)
27396
      iprot.readFieldEnd()
27397
    iprot.readStructEnd()
27398
 
27399
  def write(self, oprot):
27400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27402
      return
27403
    oprot.writeStructBegin('updateItemHoldInventory_args')
27404
    if self.itemHoldMap is not None:
27405
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27406
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
12567 amit.gupta 27407
      for kiter585,viter586 in self.itemHoldMap.items():
27408
        oprot.writeI64(kiter585)
27409
        oprot.writeI64(viter586)
9861 rajveer 27410
      oprot.writeMapEnd()
27411
      oprot.writeFieldEnd()
27412
    oprot.writeFieldStop()
27413
    oprot.writeStructEnd()
27414
 
27415
  def validate(self):
27416
    return
27417
 
27418
 
27419
  def __repr__(self):
27420
    L = ['%s=%r' % (key, value)
27421
      for key, value in self.__dict__.iteritems()]
27422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27423
 
27424
  def __eq__(self, other):
27425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27426
 
27427
  def __ne__(self, other):
27428
    return not (self == other)
27429
 
27430
class updateItemHoldInventory_result:
27431
 
27432
  thrift_spec = (
27433
  )
27434
 
27435
  def read(self, iprot):
27436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27438
      return
27439
    iprot.readStructBegin()
27440
    while True:
27441
      (fname, ftype, fid) = iprot.readFieldBegin()
27442
      if ftype == TType.STOP:
27443
        break
27444
      else:
27445
        iprot.skip(ftype)
27446
      iprot.readFieldEnd()
27447
    iprot.readStructEnd()
27448
 
27449
  def write(self, oprot):
27450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27452
      return
27453
    oprot.writeStructBegin('updateItemHoldInventory_result')
27454
    oprot.writeFieldStop()
27455
    oprot.writeStructEnd()
27456
 
27457
  def validate(self):
27458
    return
27459
 
27460
 
27461
  def __repr__(self):
27462
    L = ['%s=%r' % (key, value)
27463
      for key, value in self.__dict__.iteritems()]
27464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27465
 
27466
  def __eq__(self, other):
27467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27468
 
27469
  def __ne__(self, other):
27470
    return not (self == other)
9895 vikram.rag 27471
 
27472
class updateNlcAtMarketplaces_args:
27473
  """
27474
  Attributes:
27475
   - item_id
27476
   - vendor_id
27477
   - nlc
27478
  """
27479
 
27480
  thrift_spec = None
27481
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27482
    self.item_id = item_id
27483
    self.vendor_id = vendor_id
27484
    self.nlc = nlc
27485
 
27486
  def read(self, iprot):
27487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27489
      return
27490
    iprot.readStructBegin()
27491
    while True:
27492
      (fname, ftype, fid) = iprot.readFieldBegin()
27493
      if ftype == TType.STOP:
27494
        break
27495
      if fid == 1:
27496
        if ftype == TType.I64:
27497
          self.item_id = iprot.readI64();
27498
        else:
27499
          iprot.skip(ftype)
27500
      elif fid == 2:
27501
        if ftype == TType.I64:
27502
          self.vendor_id = iprot.readI64();
27503
        else:
27504
          iprot.skip(ftype)
27505
      elif fid == -1:
27506
        if ftype == TType.DOUBLE:
27507
          self.nlc = iprot.readDouble();
27508
        else:
27509
          iprot.skip(ftype)
27510
      else:
27511
        iprot.skip(ftype)
27512
      iprot.readFieldEnd()
27513
    iprot.readStructEnd()
27514
 
27515
  def write(self, oprot):
27516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27518
      return
27519
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27520
    if self.nlc is not None:
27521
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27522
      oprot.writeDouble(self.nlc)
27523
      oprot.writeFieldEnd()
27524
    if self.item_id is not None:
27525
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27526
      oprot.writeI64(self.item_id)
27527
      oprot.writeFieldEnd()
27528
    if self.vendor_id is not None:
27529
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27530
      oprot.writeI64(self.vendor_id)
27531
      oprot.writeFieldEnd()
27532
    oprot.writeFieldStop()
27533
    oprot.writeStructEnd()
27534
 
27535
  def validate(self):
27536
    return
27537
 
27538
 
27539
  def __repr__(self):
27540
    L = ['%s=%r' % (key, value)
27541
      for key, value in self.__dict__.iteritems()]
27542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27543
 
27544
  def __eq__(self, other):
27545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27546
 
27547
  def __ne__(self, other):
27548
    return not (self == other)
27549
 
27550
class updateNlcAtMarketplaces_result:
27551
 
27552
  thrift_spec = (
27553
  )
27554
 
27555
  def read(self, iprot):
27556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27558
      return
27559
    iprot.readStructBegin()
27560
    while True:
27561
      (fname, ftype, fid) = iprot.readFieldBegin()
27562
      if ftype == TType.STOP:
27563
        break
27564
      else:
27565
        iprot.skip(ftype)
27566
      iprot.readFieldEnd()
27567
    iprot.readStructEnd()
27568
 
27569
  def write(self, oprot):
27570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27572
      return
27573
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27574
    oprot.writeFieldStop()
27575
    oprot.writeStructEnd()
27576
 
27577
  def validate(self):
27578
    return
27579
 
27580
 
27581
  def __repr__(self):
27582
    L = ['%s=%r' % (key, value)
27583
      for key, value in self.__dict__.iteritems()]
27584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27585
 
27586
  def __eq__(self, other):
27587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27588
 
27589
  def __ne__(self, other):
27590
    return not (self == other)
9945 vikram.rag 27591
 
27592
class getAllFlipkartItems_args:
27593
 
27594
  thrift_spec = (
27595
  )
27596
 
27597
  def read(self, iprot):
27598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27600
      return
27601
    iprot.readStructBegin()
27602
    while True:
27603
      (fname, ftype, fid) = iprot.readFieldBegin()
27604
      if ftype == TType.STOP:
27605
        break
27606
      else:
27607
        iprot.skip(ftype)
27608
      iprot.readFieldEnd()
27609
    iprot.readStructEnd()
27610
 
27611
  def write(self, oprot):
27612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27614
      return
27615
    oprot.writeStructBegin('getAllFlipkartItems_args')
27616
    oprot.writeFieldStop()
27617
    oprot.writeStructEnd()
27618
 
27619
  def validate(self):
27620
    return
27621
 
27622
 
27623
  def __repr__(self):
27624
    L = ['%s=%r' % (key, value)
27625
      for key, value in self.__dict__.iteritems()]
27626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27627
 
27628
  def __eq__(self, other):
27629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27630
 
27631
  def __ne__(self, other):
27632
    return not (self == other)
27633
 
27634
class getAllFlipkartItems_result:
27635
  """
27636
  Attributes:
27637
   - success
27638
  """
27639
 
27640
  thrift_spec = (
27641
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27642
  )
27643
 
27644
  def __init__(self, success=None,):
27645
    self.success = success
27646
 
27647
  def read(self, iprot):
27648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27650
      return
27651
    iprot.readStructBegin()
27652
    while True:
27653
      (fname, ftype, fid) = iprot.readFieldBegin()
27654
      if ftype == TType.STOP:
27655
        break
27656
      if fid == 0:
27657
        if ftype == TType.LIST:
27658
          self.success = []
12567 amit.gupta 27659
          (_etype590, _size587) = iprot.readListBegin()
27660
          for _i591 in xrange(_size587):
27661
            _elem592 = FlipkartItem()
27662
            _elem592.read(iprot)
27663
            self.success.append(_elem592)
9945 vikram.rag 27664
          iprot.readListEnd()
27665
        else:
27666
          iprot.skip(ftype)
27667
      else:
27668
        iprot.skip(ftype)
27669
      iprot.readFieldEnd()
27670
    iprot.readStructEnd()
27671
 
27672
  def write(self, oprot):
27673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27675
      return
27676
    oprot.writeStructBegin('getAllFlipkartItems_result')
27677
    if self.success is not None:
27678
      oprot.writeFieldBegin('success', TType.LIST, 0)
27679
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27680
      for iter593 in self.success:
27681
        iter593.write(oprot)
9945 vikram.rag 27682
      oprot.writeListEnd()
27683
      oprot.writeFieldEnd()
27684
    oprot.writeFieldStop()
27685
    oprot.writeStructEnd()
27686
 
27687
  def validate(self):
27688
    return
27689
 
27690
 
27691
  def __repr__(self):
27692
    L = ['%s=%r' % (key, value)
27693
      for key, value in self.__dict__.iteritems()]
27694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27695
 
27696
  def __eq__(self, other):
27697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27698
 
27699
  def __ne__(self, other):
27700
    return not (self == other)
10097 kshitij.so 27701
 
27702
class addOrUpdateFlipkartItem_args:
27703
  """
27704
  Attributes:
27705
   - flipkartitem
27706
  """
27707
 
27708
  thrift_spec = None
27709
  def __init__(self, flipkartitem=None,):
27710
    self.flipkartitem = flipkartitem
27711
 
27712
  def read(self, iprot):
27713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27715
      return
27716
    iprot.readStructBegin()
27717
    while True:
27718
      (fname, ftype, fid) = iprot.readFieldBegin()
27719
      if ftype == TType.STOP:
27720
        break
27721
      if fid == -1:
27722
        if ftype == TType.STRUCT:
27723
          self.flipkartitem = FlipkartItem()
27724
          self.flipkartitem.read(iprot)
27725
        else:
27726
          iprot.skip(ftype)
27727
      else:
27728
        iprot.skip(ftype)
27729
      iprot.readFieldEnd()
27730
    iprot.readStructEnd()
27731
 
27732
  def write(self, oprot):
27733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27735
      return
27736
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
27737
    if self.flipkartitem is not None:
27738
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
27739
      self.flipkartitem.write(oprot)
27740
      oprot.writeFieldEnd()
27741
    oprot.writeFieldStop()
27742
    oprot.writeStructEnd()
27743
 
27744
  def validate(self):
27745
    return
27746
 
27747
 
27748
  def __repr__(self):
27749
    L = ['%s=%r' % (key, value)
27750
      for key, value in self.__dict__.iteritems()]
27751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27752
 
27753
  def __eq__(self, other):
27754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27755
 
27756
  def __ne__(self, other):
27757
    return not (self == other)
27758
 
27759
class addOrUpdateFlipkartItem_result:
27760
  """
27761
  Attributes:
27762
   - success
27763
  """
27764
 
27765
  thrift_spec = (
27766
    (0, TType.BOOL, 'success', None, None, ), # 0
27767
  )
27768
 
27769
  def __init__(self, success=None,):
27770
    self.success = success
27771
 
27772
  def read(self, iprot):
27773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27775
      return
27776
    iprot.readStructBegin()
27777
    while True:
27778
      (fname, ftype, fid) = iprot.readFieldBegin()
27779
      if ftype == TType.STOP:
27780
        break
27781
      if fid == 0:
27782
        if ftype == TType.BOOL:
27783
          self.success = iprot.readBool();
27784
        else:
27785
          iprot.skip(ftype)
27786
      else:
27787
        iprot.skip(ftype)
27788
      iprot.readFieldEnd()
27789
    iprot.readStructEnd()
27790
 
27791
  def write(self, oprot):
27792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27794
      return
27795
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
27796
    if self.success is not None:
27797
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27798
      oprot.writeBool(self.success)
27799
      oprot.writeFieldEnd()
27800
    oprot.writeFieldStop()
27801
    oprot.writeStructEnd()
27802
 
27803
  def validate(self):
27804
    return
27805
 
27806
 
27807
  def __repr__(self):
27808
    L = ['%s=%r' % (key, value)
27809
      for key, value in self.__dict__.iteritems()]
27810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27811
 
27812
  def __eq__(self, other):
27813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27814
 
27815
  def __ne__(self, other):
27816
    return not (self == other)
27817
 
27818
class getFlipkartItem_args:
27819
  """
27820
  Attributes:
27821
   - item_id
27822
  """
27823
 
27824
  thrift_spec = (
27825
    None, # 0
27826
    (1, TType.I64, 'item_id', None, None, ), # 1
27827
  )
27828
 
27829
  def __init__(self, item_id=None,):
27830
    self.item_id = item_id
27831
 
27832
  def read(self, iprot):
27833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27835
      return
27836
    iprot.readStructBegin()
27837
    while True:
27838
      (fname, ftype, fid) = iprot.readFieldBegin()
27839
      if ftype == TType.STOP:
27840
        break
27841
      if fid == 1:
27842
        if ftype == TType.I64:
27843
          self.item_id = iprot.readI64();
27844
        else:
27845
          iprot.skip(ftype)
27846
      else:
27847
        iprot.skip(ftype)
27848
      iprot.readFieldEnd()
27849
    iprot.readStructEnd()
27850
 
27851
  def write(self, oprot):
27852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27854
      return
27855
    oprot.writeStructBegin('getFlipkartItem_args')
27856
    if self.item_id is not None:
27857
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27858
      oprot.writeI64(self.item_id)
27859
      oprot.writeFieldEnd()
27860
    oprot.writeFieldStop()
27861
    oprot.writeStructEnd()
27862
 
27863
  def validate(self):
27864
    return
27865
 
27866
 
27867
  def __repr__(self):
27868
    L = ['%s=%r' % (key, value)
27869
      for key, value in self.__dict__.iteritems()]
27870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27871
 
27872
  def __eq__(self, other):
27873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27874
 
27875
  def __ne__(self, other):
27876
    return not (self == other)
27877
 
27878
class getFlipkartItem_result:
27879
  """
27880
  Attributes:
27881
   - success
27882
  """
27883
 
27884
  thrift_spec = (
27885
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27886
  )
27887
 
27888
  def __init__(self, success=None,):
27889
    self.success = success
27890
 
27891
  def read(self, iprot):
27892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27894
      return
27895
    iprot.readStructBegin()
27896
    while True:
27897
      (fname, ftype, fid) = iprot.readFieldBegin()
27898
      if ftype == TType.STOP:
27899
        break
27900
      if fid == 0:
27901
        if ftype == TType.STRUCT:
27902
          self.success = FlipkartItem()
27903
          self.success.read(iprot)
27904
        else:
27905
          iprot.skip(ftype)
27906
      else:
27907
        iprot.skip(ftype)
27908
      iprot.readFieldEnd()
27909
    iprot.readStructEnd()
27910
 
27911
  def write(self, oprot):
27912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27914
      return
27915
    oprot.writeStructBegin('getFlipkartItem_result')
27916
    if self.success is not None:
27917
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27918
      self.success.write(oprot)
27919
      oprot.writeFieldEnd()
27920
    oprot.writeFieldStop()
27921
    oprot.writeStructEnd()
27922
 
27923
  def validate(self):
27924
    return
27925
 
27926
 
27927
  def __repr__(self):
27928
    L = ['%s=%r' % (key, value)
27929
      for key, value in self.__dict__.iteritems()]
27930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27931
 
27932
  def __eq__(self, other):
27933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27934
 
27935
  def __ne__(self, other):
27936
    return not (self == other)
27937
 
27938
class getFlipkartItemDetails_args:
27939
  """
27940
  Attributes:
27941
   - item_id
27942
  """
27943
 
27944
  thrift_spec = (
27945
    None, # 0
27946
    (1, TType.I64, 'item_id', None, None, ), # 1
27947
  )
27948
 
27949
  def __init__(self, item_id=None,):
27950
    self.item_id = item_id
27951
 
27952
  def read(self, iprot):
27953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27955
      return
27956
    iprot.readStructBegin()
27957
    while True:
27958
      (fname, ftype, fid) = iprot.readFieldBegin()
27959
      if ftype == TType.STOP:
27960
        break
27961
      if fid == 1:
27962
        if ftype == TType.I64:
27963
          self.item_id = iprot.readI64();
27964
        else:
27965
          iprot.skip(ftype)
27966
      else:
27967
        iprot.skip(ftype)
27968
      iprot.readFieldEnd()
27969
    iprot.readStructEnd()
27970
 
27971
  def write(self, oprot):
27972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27974
      return
27975
    oprot.writeStructBegin('getFlipkartItemDetails_args')
27976
    if self.item_id is not None:
27977
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27978
      oprot.writeI64(self.item_id)
27979
      oprot.writeFieldEnd()
27980
    oprot.writeFieldStop()
27981
    oprot.writeStructEnd()
27982
 
27983
  def validate(self):
27984
    return
27985
 
27986
 
27987
  def __repr__(self):
27988
    L = ['%s=%r' % (key, value)
27989
      for key, value in self.__dict__.iteritems()]
27990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27991
 
27992
  def __eq__(self, other):
27993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27994
 
27995
  def __ne__(self, other):
27996
    return not (self == other)
27997
 
27998
class getFlipkartItemDetails_result:
27999
  """
28000
  Attributes:
28001
   - success
28002
  """
28003
 
28004
  thrift_spec = (
28005
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
28006
  )
28007
 
28008
  def __init__(self, success=None,):
28009
    self.success = success
28010
 
28011
  def read(self, iprot):
28012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28014
      return
28015
    iprot.readStructBegin()
28016
    while True:
28017
      (fname, ftype, fid) = iprot.readFieldBegin()
28018
      if ftype == TType.STOP:
28019
        break
28020
      if fid == 0:
28021
        if ftype == TType.STRUCT:
28022
          self.success = FlipkartItemDetails()
28023
          self.success.read(iprot)
28024
        else:
28025
          iprot.skip(ftype)
28026
      else:
28027
        iprot.skip(ftype)
28028
      iprot.readFieldEnd()
28029
    iprot.readStructEnd()
28030
 
28031
  def write(self, oprot):
28032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28034
      return
28035
    oprot.writeStructBegin('getFlipkartItemDetails_result')
28036
    if self.success is not None:
28037
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28038
      self.success.write(oprot)
28039
      oprot.writeFieldEnd()
28040
    oprot.writeFieldStop()
28041
    oprot.writeStructEnd()
28042
 
28043
  def validate(self):
28044
    return
28045
 
28046
 
28047
  def __repr__(self):
28048
    L = ['%s=%r' % (key, value)
28049
      for key, value in self.__dict__.iteritems()]
28050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28051
 
28052
  def __eq__(self, other):
28053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28054
 
28055
  def __ne__(self, other):
28056
    return not (self == other)
28057
 
28058
class getFlipkartItems_args:
28059
  """
28060
  Attributes:
28061
   - offset
28062
   - limit
28063
  """
28064
 
28065
  thrift_spec = (
28066
    None, # 0
28067
    (1, TType.I64, 'offset', None, None, ), # 1
28068
    (2, TType.I64, 'limit', None, None, ), # 2
28069
  )
28070
 
28071
  def __init__(self, offset=None, limit=None,):
28072
    self.offset = offset
28073
    self.limit = limit
28074
 
28075
  def read(self, iprot):
28076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28078
      return
28079
    iprot.readStructBegin()
28080
    while True:
28081
      (fname, ftype, fid) = iprot.readFieldBegin()
28082
      if ftype == TType.STOP:
28083
        break
28084
      if fid == 1:
28085
        if ftype == TType.I64:
28086
          self.offset = iprot.readI64();
28087
        else:
28088
          iprot.skip(ftype)
28089
      elif fid == 2:
28090
        if ftype == TType.I64:
28091
          self.limit = iprot.readI64();
28092
        else:
28093
          iprot.skip(ftype)
28094
      else:
28095
        iprot.skip(ftype)
28096
      iprot.readFieldEnd()
28097
    iprot.readStructEnd()
28098
 
28099
  def write(self, oprot):
28100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28102
      return
28103
    oprot.writeStructBegin('getFlipkartItems_args')
28104
    if self.offset is not None:
28105
      oprot.writeFieldBegin('offset', TType.I64, 1)
28106
      oprot.writeI64(self.offset)
28107
      oprot.writeFieldEnd()
28108
    if self.limit is not None:
28109
      oprot.writeFieldBegin('limit', TType.I64, 2)
28110
      oprot.writeI64(self.limit)
28111
      oprot.writeFieldEnd()
28112
    oprot.writeFieldStop()
28113
    oprot.writeStructEnd()
28114
 
28115
  def validate(self):
28116
    return
28117
 
28118
 
28119
  def __repr__(self):
28120
    L = ['%s=%r' % (key, value)
28121
      for key, value in self.__dict__.iteritems()]
28122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28123
 
28124
  def __eq__(self, other):
28125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28126
 
28127
  def __ne__(self, other):
28128
    return not (self == other)
28129
 
28130
class getFlipkartItems_result:
28131
  """
28132
  Attributes:
28133
   - success
28134
  """
28135
 
28136
  thrift_spec = (
28137
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28138
  )
28139
 
28140
  def __init__(self, success=None,):
28141
    self.success = success
28142
 
28143
  def read(self, iprot):
28144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28146
      return
28147
    iprot.readStructBegin()
28148
    while True:
28149
      (fname, ftype, fid) = iprot.readFieldBegin()
28150
      if ftype == TType.STOP:
28151
        break
28152
      if fid == 0:
28153
        if ftype == TType.LIST:
28154
          self.success = []
12567 amit.gupta 28155
          (_etype597, _size594) = iprot.readListBegin()
28156
          for _i598 in xrange(_size594):
28157
            _elem599 = FlipkartItemDetails()
28158
            _elem599.read(iprot)
28159
            self.success.append(_elem599)
10097 kshitij.so 28160
          iprot.readListEnd()
28161
        else:
28162
          iprot.skip(ftype)
28163
      else:
28164
        iprot.skip(ftype)
28165
      iprot.readFieldEnd()
28166
    iprot.readStructEnd()
28167
 
28168
  def write(self, oprot):
28169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28171
      return
28172
    oprot.writeStructBegin('getFlipkartItems_result')
28173
    if self.success is not None:
28174
      oprot.writeFieldBegin('success', TType.LIST, 0)
28175
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28176
      for iter600 in self.success:
28177
        iter600.write(oprot)
10097 kshitij.so 28178
      oprot.writeListEnd()
28179
      oprot.writeFieldEnd()
28180
    oprot.writeFieldStop()
28181
    oprot.writeStructEnd()
28182
 
28183
  def validate(self):
28184
    return
28185
 
28186
 
28187
  def __repr__(self):
28188
    L = ['%s=%r' % (key, value)
28189
      for key, value in self.__dict__.iteritems()]
28190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28191
 
28192
  def __eq__(self, other):
28193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28194
 
28195
  def __ne__(self, other):
28196
    return not (self == other)
28197
 
28198
class searchFlipkartItems_args:
28199
  """
28200
  Attributes:
28201
   - searchTerm
28202
   - offset
28203
   - limit
28204
  """
28205
 
28206
  thrift_spec = (
28207
    None, # 0
28208
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28209
    (2, TType.I64, 'offset', None, None, ), # 2
28210
    (3, TType.I64, 'limit', None, None, ), # 3
28211
  )
28212
 
28213
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28214
    self.searchTerm = searchTerm
28215
    self.offset = offset
28216
    self.limit = limit
28217
 
28218
  def read(self, iprot):
28219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28221
      return
28222
    iprot.readStructBegin()
28223
    while True:
28224
      (fname, ftype, fid) = iprot.readFieldBegin()
28225
      if ftype == TType.STOP:
28226
        break
28227
      if fid == 1:
28228
        if ftype == TType.LIST:
28229
          self.searchTerm = []
12567 amit.gupta 28230
          (_etype604, _size601) = iprot.readListBegin()
28231
          for _i605 in xrange(_size601):
28232
            _elem606 = iprot.readString();
28233
            self.searchTerm.append(_elem606)
10097 kshitij.so 28234
          iprot.readListEnd()
28235
        else:
28236
          iprot.skip(ftype)
28237
      elif fid == 2:
28238
        if ftype == TType.I64:
28239
          self.offset = iprot.readI64();
28240
        else:
28241
          iprot.skip(ftype)
28242
      elif fid == 3:
28243
        if ftype == TType.I64:
28244
          self.limit = iprot.readI64();
28245
        else:
28246
          iprot.skip(ftype)
28247
      else:
28248
        iprot.skip(ftype)
28249
      iprot.readFieldEnd()
28250
    iprot.readStructEnd()
28251
 
28252
  def write(self, oprot):
28253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28255
      return
28256
    oprot.writeStructBegin('searchFlipkartItems_args')
28257
    if self.searchTerm is not None:
28258
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28259
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28260
      for iter607 in self.searchTerm:
28261
        oprot.writeString(iter607)
10097 kshitij.so 28262
      oprot.writeListEnd()
28263
      oprot.writeFieldEnd()
28264
    if self.offset is not None:
28265
      oprot.writeFieldBegin('offset', TType.I64, 2)
28266
      oprot.writeI64(self.offset)
28267
      oprot.writeFieldEnd()
28268
    if self.limit is not None:
28269
      oprot.writeFieldBegin('limit', TType.I64, 3)
28270
      oprot.writeI64(self.limit)
28271
      oprot.writeFieldEnd()
28272
    oprot.writeFieldStop()
28273
    oprot.writeStructEnd()
28274
 
28275
  def validate(self):
28276
    return
28277
 
28278
 
28279
  def __repr__(self):
28280
    L = ['%s=%r' % (key, value)
28281
      for key, value in self.__dict__.iteritems()]
28282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28283
 
28284
  def __eq__(self, other):
28285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28286
 
28287
  def __ne__(self, other):
28288
    return not (self == other)
28289
 
28290
class searchFlipkartItems_result:
28291
  """
28292
  Attributes:
28293
   - success
28294
  """
28295
 
28296
  thrift_spec = (
28297
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28298
  )
28299
 
28300
  def __init__(self, success=None,):
28301
    self.success = success
28302
 
28303
  def read(self, iprot):
28304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28306
      return
28307
    iprot.readStructBegin()
28308
    while True:
28309
      (fname, ftype, fid) = iprot.readFieldBegin()
28310
      if ftype == TType.STOP:
28311
        break
28312
      if fid == 0:
28313
        if ftype == TType.LIST:
28314
          self.success = []
12567 amit.gupta 28315
          (_etype611, _size608) = iprot.readListBegin()
28316
          for _i612 in xrange(_size608):
28317
            _elem613 = FlipkartItemDetails()
28318
            _elem613.read(iprot)
28319
            self.success.append(_elem613)
10097 kshitij.so 28320
          iprot.readListEnd()
28321
        else:
28322
          iprot.skip(ftype)
28323
      else:
28324
        iprot.skip(ftype)
28325
      iprot.readFieldEnd()
28326
    iprot.readStructEnd()
28327
 
28328
  def write(self, oprot):
28329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28331
      return
28332
    oprot.writeStructBegin('searchFlipkartItems_result')
28333
    if self.success is not None:
28334
      oprot.writeFieldBegin('success', TType.LIST, 0)
28335
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28336
      for iter614 in self.success:
28337
        iter614.write(oprot)
10097 kshitij.so 28338
      oprot.writeListEnd()
28339
      oprot.writeFieldEnd()
28340
    oprot.writeFieldStop()
28341
    oprot.writeStructEnd()
28342
 
28343
  def validate(self):
28344
    return
28345
 
28346
 
28347
  def __repr__(self):
28348
    L = ['%s=%r' % (key, value)
28349
      for key, value in self.__dict__.iteritems()]
28350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28351
 
28352
  def __eq__(self, other):
28353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28354
 
28355
  def __ne__(self, other):
28356
    return not (self == other)
28357
 
28358
class getCountForFlipkartItems_args:
28359
 
28360
  thrift_spec = (
28361
  )
28362
 
28363
  def read(self, iprot):
28364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28366
      return
28367
    iprot.readStructBegin()
28368
    while True:
28369
      (fname, ftype, fid) = iprot.readFieldBegin()
28370
      if ftype == TType.STOP:
28371
        break
28372
      else:
28373
        iprot.skip(ftype)
28374
      iprot.readFieldEnd()
28375
    iprot.readStructEnd()
28376
 
28377
  def write(self, oprot):
28378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28380
      return
28381
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28382
    oprot.writeFieldStop()
28383
    oprot.writeStructEnd()
28384
 
28385
  def validate(self):
28386
    return
28387
 
28388
 
28389
  def __repr__(self):
28390
    L = ['%s=%r' % (key, value)
28391
      for key, value in self.__dict__.iteritems()]
28392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28393
 
28394
  def __eq__(self, other):
28395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28396
 
28397
  def __ne__(self, other):
28398
    return not (self == other)
28399
 
28400
class getCountForFlipkartItems_result:
28401
  """
28402
  Attributes:
28403
   - success
28404
  """
28405
 
28406
  thrift_spec = (
28407
    (0, TType.I64, 'success', None, None, ), # 0
28408
  )
28409
 
28410
  def __init__(self, success=None,):
28411
    self.success = success
28412
 
28413
  def read(self, iprot):
28414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28416
      return
28417
    iprot.readStructBegin()
28418
    while True:
28419
      (fname, ftype, fid) = iprot.readFieldBegin()
28420
      if ftype == TType.STOP:
28421
        break
28422
      if fid == 0:
28423
        if ftype == TType.I64:
28424
          self.success = iprot.readI64();
28425
        else:
28426
          iprot.skip(ftype)
28427
      else:
28428
        iprot.skip(ftype)
28429
      iprot.readFieldEnd()
28430
    iprot.readStructEnd()
28431
 
28432
  def write(self, oprot):
28433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28435
      return
28436
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28437
    if self.success is not None:
28438
      oprot.writeFieldBegin('success', TType.I64, 0)
28439
      oprot.writeI64(self.success)
28440
      oprot.writeFieldEnd()
28441
    oprot.writeFieldStop()
28442
    oprot.writeStructEnd()
28443
 
28444
  def validate(self):
28445
    return
28446
 
28447
 
28448
  def __repr__(self):
28449
    L = ['%s=%r' % (key, value)
28450
      for key, value in self.__dict__.iteritems()]
28451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28452
 
28453
  def __eq__(self, other):
28454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28455
 
28456
  def __ne__(self, other):
28457
    return not (self == other)
28458
 
28459
class getFlipkartSearchResultCount_args:
28460
  """
28461
  Attributes:
28462
   - searchTerm
28463
  """
28464
 
28465
  thrift_spec = (
28466
    None, # 0
28467
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28468
  )
28469
 
28470
  def __init__(self, searchTerm=None,):
28471
    self.searchTerm = searchTerm
28472
 
28473
  def read(self, iprot):
28474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28476
      return
28477
    iprot.readStructBegin()
28478
    while True:
28479
      (fname, ftype, fid) = iprot.readFieldBegin()
28480
      if ftype == TType.STOP:
28481
        break
28482
      if fid == 1:
28483
        if ftype == TType.LIST:
28484
          self.searchTerm = []
12567 amit.gupta 28485
          (_etype618, _size615) = iprot.readListBegin()
28486
          for _i619 in xrange(_size615):
28487
            _elem620 = iprot.readString();
28488
            self.searchTerm.append(_elem620)
10097 kshitij.so 28489
          iprot.readListEnd()
28490
        else:
28491
          iprot.skip(ftype)
28492
      else:
28493
        iprot.skip(ftype)
28494
      iprot.readFieldEnd()
28495
    iprot.readStructEnd()
28496
 
28497
  def write(self, oprot):
28498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28500
      return
28501
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28502
    if self.searchTerm is not None:
28503
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28504
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28505
      for iter621 in self.searchTerm:
28506
        oprot.writeString(iter621)
10097 kshitij.so 28507
      oprot.writeListEnd()
28508
      oprot.writeFieldEnd()
28509
    oprot.writeFieldStop()
28510
    oprot.writeStructEnd()
28511
 
28512
  def validate(self):
28513
    return
28514
 
28515
 
28516
  def __repr__(self):
28517
    L = ['%s=%r' % (key, value)
28518
      for key, value in self.__dict__.iteritems()]
28519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28520
 
28521
  def __eq__(self, other):
28522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28523
 
28524
  def __ne__(self, other):
28525
    return not (self == other)
28526
 
28527
class getFlipkartSearchResultCount_result:
28528
  """
28529
  Attributes:
28530
   - success
28531
  """
28532
 
28533
  thrift_spec = (
28534
    (0, TType.I64, 'success', None, None, ), # 0
28535
  )
28536
 
28537
  def __init__(self, success=None,):
28538
    self.success = success
28539
 
28540
  def read(self, iprot):
28541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28543
      return
28544
    iprot.readStructBegin()
28545
    while True:
28546
      (fname, ftype, fid) = iprot.readFieldBegin()
28547
      if ftype == TType.STOP:
28548
        break
28549
      if fid == 0:
28550
        if ftype == TType.I64:
28551
          self.success = iprot.readI64();
28552
        else:
28553
          iprot.skip(ftype)
28554
      else:
28555
        iprot.skip(ftype)
28556
      iprot.readFieldEnd()
28557
    iprot.readStructEnd()
28558
 
28559
  def write(self, oprot):
28560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28562
      return
28563
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28564
    if self.success is not None:
28565
      oprot.writeFieldBegin('success', TType.I64, 0)
28566
      oprot.writeI64(self.success)
28567
      oprot.writeFieldEnd()
28568
    oprot.writeFieldStop()
28569
    oprot.writeStructEnd()
28570
 
28571
  def validate(self):
28572
    return
28573
 
28574
 
28575
  def __repr__(self):
28576
    L = ['%s=%r' % (key, value)
28577
      for key, value in self.__dict__.iteritems()]
28578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28579
 
28580
  def __eq__(self, other):
28581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28582
 
28583
  def __ne__(self, other):
28584
    return not (self == other)
28585
 
28586
class getAllFkItems_args:
28587
 
28588
  thrift_spec = (
28589
  )
28590
 
28591
  def read(self, iprot):
28592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28594
      return
28595
    iprot.readStructBegin()
28596
    while True:
28597
      (fname, ftype, fid) = iprot.readFieldBegin()
28598
      if ftype == TType.STOP:
28599
        break
28600
      else:
28601
        iprot.skip(ftype)
28602
      iprot.readFieldEnd()
28603
    iprot.readStructEnd()
28604
 
28605
  def write(self, oprot):
28606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28608
      return
28609
    oprot.writeStructBegin('getAllFkItems_args')
28610
    oprot.writeFieldStop()
28611
    oprot.writeStructEnd()
28612
 
28613
  def validate(self):
28614
    return
28615
 
28616
 
28617
  def __repr__(self):
28618
    L = ['%s=%r' % (key, value)
28619
      for key, value in self.__dict__.iteritems()]
28620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28621
 
28622
  def __eq__(self, other):
28623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28624
 
28625
  def __ne__(self, other):
28626
    return not (self == other)
28627
 
28628
class getAllFkItems_result:
28629
  """
28630
  Attributes:
28631
   - success
28632
  """
28633
 
28634
  thrift_spec = (
28635
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28636
  )
28637
 
28638
  def __init__(self, success=None,):
28639
    self.success = success
28640
 
28641
  def read(self, iprot):
28642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28644
      return
28645
    iprot.readStructBegin()
28646
    while True:
28647
      (fname, ftype, fid) = iprot.readFieldBegin()
28648
      if ftype == TType.STOP:
28649
        break
28650
      if fid == 0:
28651
        if ftype == TType.LIST:
28652
          self.success = []
12567 amit.gupta 28653
          (_etype625, _size622) = iprot.readListBegin()
28654
          for _i626 in xrange(_size622):
28655
            _elem627 = FlipkartItemDetails()
28656
            _elem627.read(iprot)
28657
            self.success.append(_elem627)
10097 kshitij.so 28658
          iprot.readListEnd()
28659
        else:
28660
          iprot.skip(ftype)
28661
      else:
28662
        iprot.skip(ftype)
28663
      iprot.readFieldEnd()
28664
    iprot.readStructEnd()
28665
 
28666
  def write(self, oprot):
28667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28669
      return
28670
    oprot.writeStructBegin('getAllFkItems_result')
28671
    if self.success is not None:
28672
      oprot.writeFieldBegin('success', TType.LIST, 0)
28673
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28674
      for iter628 in self.success:
28675
        iter628.write(oprot)
10097 kshitij.so 28676
      oprot.writeListEnd()
28677
      oprot.writeFieldEnd()
28678
    oprot.writeFieldStop()
28679
    oprot.writeStructEnd()
28680
 
28681
  def validate(self):
28682
    return
28683
 
28684
 
28685
  def __repr__(self):
28686
    L = ['%s=%r' % (key, value)
28687
      for key, value in self.__dict__.iteritems()]
28688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28689
 
28690
  def __eq__(self, other):
28691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28692
 
28693
  def __ne__(self, other):
28694
    return not (self == other)
10140 vikram.rag 28695
 
28696
class getFlipkartItemBySkyAtFlipkart_args:
28697
  """
28698
  Attributes:
28699
   - sku
28700
  """
28701
 
11531 vikram.rag 28702
  thrift_spec = None
10140 vikram.rag 28703
  def __init__(self, sku=None,):
28704
    self.sku = sku
28705
 
28706
  def read(self, iprot):
28707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28709
      return
28710
    iprot.readStructBegin()
28711
    while True:
28712
      (fname, ftype, fid) = iprot.readFieldBegin()
28713
      if ftype == TType.STOP:
28714
        break
11531 vikram.rag 28715
      if fid == -1:
10140 vikram.rag 28716
        if ftype == TType.STRING:
28717
          self.sku = iprot.readString();
28718
        else:
28719
          iprot.skip(ftype)
28720
      else:
28721
        iprot.skip(ftype)
28722
      iprot.readFieldEnd()
28723
    iprot.readStructEnd()
28724
 
28725
  def write(self, oprot):
28726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28728
      return
28729
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
28730
    if self.sku is not None:
11531 vikram.rag 28731
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 28732
      oprot.writeString(self.sku)
28733
      oprot.writeFieldEnd()
28734
    oprot.writeFieldStop()
28735
    oprot.writeStructEnd()
28736
 
28737
  def validate(self):
28738
    return
28739
 
28740
 
28741
  def __repr__(self):
28742
    L = ['%s=%r' % (key, value)
28743
      for key, value in self.__dict__.iteritems()]
28744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28745
 
28746
  def __eq__(self, other):
28747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28748
 
28749
  def __ne__(self, other):
28750
    return not (self == other)
28751
 
28752
class getFlipkartItemBySkyAtFlipkart_result:
28753
  """
28754
  Attributes:
28755
   - success
28756
  """
28757
 
28758
  thrift_spec = (
28759
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28760
  )
28761
 
28762
  def __init__(self, success=None,):
28763
    self.success = success
28764
 
28765
  def read(self, iprot):
28766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28768
      return
28769
    iprot.readStructBegin()
28770
    while True:
28771
      (fname, ftype, fid) = iprot.readFieldBegin()
28772
      if ftype == TType.STOP:
28773
        break
28774
      if fid == 0:
28775
        if ftype == TType.STRUCT:
28776
          self.success = FlipkartItem()
28777
          self.success.read(iprot)
28778
        else:
28779
          iprot.skip(ftype)
28780
      else:
28781
        iprot.skip(ftype)
28782
      iprot.readFieldEnd()
28783
    iprot.readStructEnd()
28784
 
28785
  def write(self, oprot):
28786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28788
      return
28789
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
28790
    if self.success is not None:
28791
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28792
      self.success.write(oprot)
28793
      oprot.writeFieldEnd()
28794
    oprot.writeFieldStop()
28795
    oprot.writeStructEnd()
28796
 
28797
  def validate(self):
28798
    return
28799
 
28800
 
28801
  def __repr__(self):
28802
    L = ['%s=%r' % (key, value)
28803
      for key, value in self.__dict__.iteritems()]
28804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28805
 
28806
  def __eq__(self, other):
28807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28808
 
28809
  def __ne__(self, other):
28810
    return not (self == other)
10909 vikram.rag 28811
 
11015 kshitij.so 28812
class getMarketplaceHistory_args:
28813
  """
28814
  Attributes:
28815
   - source
28816
   - offset
28817
   - itemId
28818
  """
10909 vikram.rag 28819
 
28820
  thrift_spec = (
11015 kshitij.so 28821
    None, # 0
28822
    (1, TType.I64, 'source', None, None, ), # 1
28823
    (2, TType.I64, 'offset', None, None, ), # 2
28824
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 28825
  )
28826
 
11015 kshitij.so 28827
  def __init__(self, source=None, offset=None, itemId=None,):
28828
    self.source = source
28829
    self.offset = offset
28830
    self.itemId = itemId
28831
 
10909 vikram.rag 28832
  def read(self, iprot):
28833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28835
      return
28836
    iprot.readStructBegin()
28837
    while True:
28838
      (fname, ftype, fid) = iprot.readFieldBegin()
28839
      if ftype == TType.STOP:
28840
        break
11015 kshitij.so 28841
      if fid == 1:
28842
        if ftype == TType.I64:
28843
          self.source = iprot.readI64();
28844
        else:
28845
          iprot.skip(ftype)
28846
      elif fid == 2:
28847
        if ftype == TType.I64:
28848
          self.offset = iprot.readI64();
28849
        else:
28850
          iprot.skip(ftype)
28851
      elif fid == 3:
28852
        if ftype == TType.I64:
28853
          self.itemId = iprot.readI64();
28854
        else:
28855
          iprot.skip(ftype)
10909 vikram.rag 28856
      else:
28857
        iprot.skip(ftype)
28858
      iprot.readFieldEnd()
28859
    iprot.readStructEnd()
28860
 
28861
  def write(self, oprot):
28862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28864
      return
11015 kshitij.so 28865
    oprot.writeStructBegin('getMarketplaceHistory_args')
28866
    if self.source is not None:
28867
      oprot.writeFieldBegin('source', TType.I64, 1)
28868
      oprot.writeI64(self.source)
28869
      oprot.writeFieldEnd()
28870
    if self.offset is not None:
28871
      oprot.writeFieldBegin('offset', TType.I64, 2)
28872
      oprot.writeI64(self.offset)
28873
      oprot.writeFieldEnd()
28874
    if self.itemId is not None:
28875
      oprot.writeFieldBegin('itemId', TType.I64, 3)
28876
      oprot.writeI64(self.itemId)
28877
      oprot.writeFieldEnd()
10909 vikram.rag 28878
    oprot.writeFieldStop()
28879
    oprot.writeStructEnd()
28880
 
28881
  def validate(self):
28882
    return
28883
 
28884
 
28885
  def __repr__(self):
28886
    L = ['%s=%r' % (key, value)
28887
      for key, value in self.__dict__.iteritems()]
28888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28889
 
28890
  def __eq__(self, other):
28891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28892
 
28893
  def __ne__(self, other):
28894
    return not (self == other)
28895
 
11015 kshitij.so 28896
class getMarketplaceHistory_result:
10909 vikram.rag 28897
  """
28898
  Attributes:
28899
   - success
28900
  """
28901
 
28902
  thrift_spec = (
11015 kshitij.so 28903
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 28904
  )
28905
 
28906
  def __init__(self, success=None,):
28907
    self.success = success
28908
 
28909
  def read(self, iprot):
28910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28912
      return
28913
    iprot.readStructBegin()
28914
    while True:
28915
      (fname, ftype, fid) = iprot.readFieldBegin()
28916
      if ftype == TType.STOP:
28917
        break
28918
      if fid == 0:
28919
        if ftype == TType.LIST:
28920
          self.success = []
12567 amit.gupta 28921
          (_etype632, _size629) = iprot.readListBegin()
28922
          for _i633 in xrange(_size629):
28923
            _elem634 = MarketplaceHistory()
28924
            _elem634.read(iprot)
28925
            self.success.append(_elem634)
10909 vikram.rag 28926
          iprot.readListEnd()
28927
        else:
28928
          iprot.skip(ftype)
28929
      else:
28930
        iprot.skip(ftype)
28931
      iprot.readFieldEnd()
28932
    iprot.readStructEnd()
28933
 
28934
  def write(self, oprot):
28935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28937
      return
11015 kshitij.so 28938
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 28939
    if self.success is not None:
28940
      oprot.writeFieldBegin('success', TType.LIST, 0)
28941
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28942
      for iter635 in self.success:
28943
        iter635.write(oprot)
10909 vikram.rag 28944
      oprot.writeListEnd()
28945
      oprot.writeFieldEnd()
28946
    oprot.writeFieldStop()
28947
    oprot.writeStructEnd()
28948
 
28949
  def validate(self):
28950
    return
28951
 
28952
 
28953
  def __repr__(self):
28954
    L = ['%s=%r' % (key, value)
28955
      for key, value in self.__dict__.iteritems()]
28956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28957
 
28958
  def __eq__(self, other):
28959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28960
 
28961
  def __ne__(self, other):
28962
    return not (self == other)
10924 vikram.rag 28963
 
11015 kshitij.so 28964
class getAllFbbListedItems_args:
10924 vikram.rag 28965
 
28966
  thrift_spec = (
28967
  )
28968
 
28969
  def read(self, iprot):
28970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28972
      return
28973
    iprot.readStructBegin()
28974
    while True:
28975
      (fname, ftype, fid) = iprot.readFieldBegin()
28976
      if ftype == TType.STOP:
28977
        break
28978
      else:
28979
        iprot.skip(ftype)
28980
      iprot.readFieldEnd()
28981
    iprot.readStructEnd()
28982
 
28983
  def write(self, oprot):
28984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28986
      return
11015 kshitij.so 28987
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 28988
    oprot.writeFieldStop()
28989
    oprot.writeStructEnd()
28990
 
28991
  def validate(self):
28992
    return
28993
 
28994
 
28995
  def __repr__(self):
28996
    L = ['%s=%r' % (key, value)
28997
      for key, value in self.__dict__.iteritems()]
28998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28999
 
29000
  def __eq__(self, other):
29001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29002
 
29003
  def __ne__(self, other):
29004
    return not (self == other)
29005
 
11015 kshitij.so 29006
class getAllFbbListedItems_result:
10924 vikram.rag 29007
  """
29008
  Attributes:
29009
   - success
29010
  """
29011
 
29012
  thrift_spec = (
29013
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29014
  )
29015
 
29016
  def __init__(self, success=None,):
29017
    self.success = success
29018
 
29019
  def read(self, iprot):
29020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29022
      return
29023
    iprot.readStructBegin()
29024
    while True:
29025
      (fname, ftype, fid) = iprot.readFieldBegin()
29026
      if ftype == TType.STOP:
29027
        break
29028
      if fid == 0:
29029
        if ftype == TType.LIST:
29030
          self.success = []
12567 amit.gupta 29031
          (_etype639, _size636) = iprot.readListBegin()
29032
          for _i640 in xrange(_size636):
29033
            _elem641 = Amazonlisted()
29034
            _elem641.read(iprot)
29035
            self.success.append(_elem641)
10924 vikram.rag 29036
          iprot.readListEnd()
29037
        else:
29038
          iprot.skip(ftype)
29039
      else:
29040
        iprot.skip(ftype)
29041
      iprot.readFieldEnd()
29042
    iprot.readStructEnd()
29043
 
29044
  def write(self, oprot):
29045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29047
      return
11015 kshitij.so 29048
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 29049
    if self.success is not None:
29050
      oprot.writeFieldBegin('success', TType.LIST, 0)
29051
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29052
      for iter642 in self.success:
29053
        iter642.write(oprot)
10924 vikram.rag 29054
      oprot.writeListEnd()
29055
      oprot.writeFieldEnd()
29056
    oprot.writeFieldStop()
29057
    oprot.writeStructEnd()
29058
 
29059
  def validate(self):
29060
    return
29061
 
29062
 
29063
  def __repr__(self):
29064
    L = ['%s=%r' % (key, value)
29065
      for key, value in self.__dict__.iteritems()]
29066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29067
 
29068
  def __eq__(self, other):
29069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29070
 
29071
  def __ne__(self, other):
29072
    return not (self == other)
11015 kshitij.so 29073
 
29074
class getAllFbbPricingItems_args:
29075
 
29076
  thrift_spec = (
29077
  )
29078
 
29079
  def read(self, iprot):
29080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29082
      return
29083
    iprot.readStructBegin()
29084
    while True:
29085
      (fname, ftype, fid) = iprot.readFieldBegin()
29086
      if ftype == TType.STOP:
29087
        break
29088
      else:
29089
        iprot.skip(ftype)
29090
      iprot.readFieldEnd()
29091
    iprot.readStructEnd()
29092
 
29093
  def write(self, oprot):
29094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29096
      return
29097
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29098
    oprot.writeFieldStop()
29099
    oprot.writeStructEnd()
29100
 
29101
  def validate(self):
29102
    return
29103
 
29104
 
29105
  def __repr__(self):
29106
    L = ['%s=%r' % (key, value)
29107
      for key, value in self.__dict__.iteritems()]
29108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29109
 
29110
  def __eq__(self, other):
29111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29112
 
29113
  def __ne__(self, other):
29114
    return not (self == other)
29115
 
29116
class getAllFbbPricingItems_result:
29117
  """
29118
  Attributes:
29119
   - success
29120
  """
29121
 
29122
  thrift_spec = (
29123
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29124
  )
29125
 
29126
  def __init__(self, success=None,):
29127
    self.success = success
29128
 
29129
  def read(self, iprot):
29130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29132
      return
29133
    iprot.readStructBegin()
29134
    while True:
29135
      (fname, ftype, fid) = iprot.readFieldBegin()
29136
      if ftype == TType.STOP:
29137
        break
29138
      if fid == 0:
29139
        if ftype == TType.LIST:
29140
          self.success = []
12567 amit.gupta 29141
          (_etype646, _size643) = iprot.readListBegin()
29142
          for _i647 in xrange(_size643):
29143
            _elem648 = Amazonlisted()
29144
            _elem648.read(iprot)
29145
            self.success.append(_elem648)
11015 kshitij.so 29146
          iprot.readListEnd()
29147
        else:
29148
          iprot.skip(ftype)
29149
      else:
29150
        iprot.skip(ftype)
29151
      iprot.readFieldEnd()
29152
    iprot.readStructEnd()
29153
 
29154
  def write(self, oprot):
29155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29157
      return
29158
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29159
    if self.success is not None:
29160
      oprot.writeFieldBegin('success', TType.LIST, 0)
29161
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29162
      for iter649 in self.success:
29163
        iter649.write(oprot)
11015 kshitij.so 29164
      oprot.writeListEnd()
29165
      oprot.writeFieldEnd()
29166
    oprot.writeFieldStop()
29167
    oprot.writeStructEnd()
29168
 
29169
  def validate(self):
29170
    return
29171
 
29172
 
29173
  def __repr__(self):
29174
    L = ['%s=%r' % (key, value)
29175
      for key, value in self.__dict__.iteritems()]
29176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29177
 
29178
  def __eq__(self, other):
29179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29180
 
29181
  def __ne__(self, other):
29182
    return not (self == other)
29183
 
29184
class getCountForMarketplaceHistory_args:
29185
  """
29186
  Attributes:
29187
   - source
29188
   - itemId
29189
  """
29190
 
29191
  thrift_spec = (
29192
    None, # 0
29193
    (1, TType.I64, 'source', None, None, ), # 1
29194
    (2, TType.I64, 'itemId', None, None, ), # 2
29195
  )
29196
 
29197
  def __init__(self, source=None, itemId=None,):
29198
    self.source = source
29199
    self.itemId = itemId
29200
 
29201
  def read(self, iprot):
29202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29204
      return
29205
    iprot.readStructBegin()
29206
    while True:
29207
      (fname, ftype, fid) = iprot.readFieldBegin()
29208
      if ftype == TType.STOP:
29209
        break
29210
      if fid == 1:
29211
        if ftype == TType.I64:
29212
          self.source = iprot.readI64();
29213
        else:
29214
          iprot.skip(ftype)
29215
      elif fid == 2:
29216
        if ftype == TType.I64:
29217
          self.itemId = iprot.readI64();
29218
        else:
29219
          iprot.skip(ftype)
29220
      else:
29221
        iprot.skip(ftype)
29222
      iprot.readFieldEnd()
29223
    iprot.readStructEnd()
29224
 
29225
  def write(self, oprot):
29226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29228
      return
29229
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29230
    if self.source is not None:
29231
      oprot.writeFieldBegin('source', TType.I64, 1)
29232
      oprot.writeI64(self.source)
29233
      oprot.writeFieldEnd()
29234
    if self.itemId is not None:
29235
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29236
      oprot.writeI64(self.itemId)
29237
      oprot.writeFieldEnd()
29238
    oprot.writeFieldStop()
29239
    oprot.writeStructEnd()
29240
 
29241
  def validate(self):
29242
    return
29243
 
29244
 
29245
  def __repr__(self):
29246
    L = ['%s=%r' % (key, value)
29247
      for key, value in self.__dict__.iteritems()]
29248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29249
 
29250
  def __eq__(self, other):
29251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29252
 
29253
  def __ne__(self, other):
29254
    return not (self == other)
29255
 
29256
class getCountForMarketplaceHistory_result:
29257
  """
29258
  Attributes:
29259
   - success
29260
  """
29261
 
29262
  thrift_spec = (
29263
    (0, TType.I64, 'success', None, None, ), # 0
29264
  )
29265
 
29266
  def __init__(self, success=None,):
29267
    self.success = success
29268
 
29269
  def read(self, iprot):
29270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29272
      return
29273
    iprot.readStructBegin()
29274
    while True:
29275
      (fname, ftype, fid) = iprot.readFieldBegin()
29276
      if ftype == TType.STOP:
29277
        break
29278
      if fid == 0:
29279
        if ftype == TType.I64:
29280
          self.success = iprot.readI64();
29281
        else:
29282
          iprot.skip(ftype)
29283
      else:
29284
        iprot.skip(ftype)
29285
      iprot.readFieldEnd()
29286
    iprot.readStructEnd()
29287
 
29288
  def write(self, oprot):
29289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29291
      return
29292
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29293
    if self.success is not None:
29294
      oprot.writeFieldBegin('success', TType.I64, 0)
29295
      oprot.writeI64(self.success)
29296
      oprot.writeFieldEnd()
29297
    oprot.writeFieldStop()
29298
    oprot.writeStructEnd()
29299
 
29300
  def validate(self):
29301
    return
29302
 
29303
 
29304
  def __repr__(self):
29305
    L = ['%s=%r' % (key, value)
29306
      for key, value in self.__dict__.iteritems()]
29307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29308
 
29309
  def __eq__(self, other):
29310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29311
 
29312
  def __ne__(self, other):
29313
    return not (self == other)
29314
 
29315
class getMarketplaceHistoryByDate_args:
29316
  """
29317
  Attributes:
29318
   - source
29319
   - startDate
29320
   - endDate
29321
   - offset
29322
   - limit
29323
   - itemId
29324
  """
29325
 
29326
  thrift_spec = (
29327
    None, # 0
29328
    (1, TType.I64, 'source', None, None, ), # 1
29329
    (2, TType.I64, 'startDate', None, None, ), # 2
29330
    (3, TType.I64, 'endDate', None, None, ), # 3
29331
    (4, TType.I64, 'offset', None, None, ), # 4
29332
    (5, TType.I64, 'limit', None, None, ), # 5
29333
    (6, TType.I64, 'itemId', None, None, ), # 6
29334
  )
29335
 
29336
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29337
    self.source = source
29338
    self.startDate = startDate
29339
    self.endDate = endDate
29340
    self.offset = offset
29341
    self.limit = limit
29342
    self.itemId = itemId
29343
 
29344
  def read(self, iprot):
29345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29347
      return
29348
    iprot.readStructBegin()
29349
    while True:
29350
      (fname, ftype, fid) = iprot.readFieldBegin()
29351
      if ftype == TType.STOP:
29352
        break
29353
      if fid == 1:
29354
        if ftype == TType.I64:
29355
          self.source = iprot.readI64();
29356
        else:
29357
          iprot.skip(ftype)
29358
      elif fid == 2:
29359
        if ftype == TType.I64:
29360
          self.startDate = iprot.readI64();
29361
        else:
29362
          iprot.skip(ftype)
29363
      elif fid == 3:
29364
        if ftype == TType.I64:
29365
          self.endDate = iprot.readI64();
29366
        else:
29367
          iprot.skip(ftype)
29368
      elif fid == 4:
29369
        if ftype == TType.I64:
29370
          self.offset = iprot.readI64();
29371
        else:
29372
          iprot.skip(ftype)
29373
      elif fid == 5:
29374
        if ftype == TType.I64:
29375
          self.limit = iprot.readI64();
29376
        else:
29377
          iprot.skip(ftype)
29378
      elif fid == 6:
29379
        if ftype == TType.I64:
29380
          self.itemId = iprot.readI64();
29381
        else:
29382
          iprot.skip(ftype)
29383
      else:
29384
        iprot.skip(ftype)
29385
      iprot.readFieldEnd()
29386
    iprot.readStructEnd()
29387
 
29388
  def write(self, oprot):
29389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29391
      return
29392
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
29393
    if self.source is not None:
29394
      oprot.writeFieldBegin('source', TType.I64, 1)
29395
      oprot.writeI64(self.source)
29396
      oprot.writeFieldEnd()
29397
    if self.startDate is not None:
29398
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29399
      oprot.writeI64(self.startDate)
29400
      oprot.writeFieldEnd()
29401
    if self.endDate is not None:
29402
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29403
      oprot.writeI64(self.endDate)
29404
      oprot.writeFieldEnd()
29405
    if self.offset is not None:
29406
      oprot.writeFieldBegin('offset', TType.I64, 4)
29407
      oprot.writeI64(self.offset)
29408
      oprot.writeFieldEnd()
29409
    if self.limit is not None:
29410
      oprot.writeFieldBegin('limit', TType.I64, 5)
29411
      oprot.writeI64(self.limit)
29412
      oprot.writeFieldEnd()
29413
    if self.itemId is not None:
29414
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29415
      oprot.writeI64(self.itemId)
29416
      oprot.writeFieldEnd()
29417
    oprot.writeFieldStop()
29418
    oprot.writeStructEnd()
29419
 
29420
  def validate(self):
29421
    return
29422
 
29423
 
29424
  def __repr__(self):
29425
    L = ['%s=%r' % (key, value)
29426
      for key, value in self.__dict__.iteritems()]
29427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29428
 
29429
  def __eq__(self, other):
29430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29431
 
29432
  def __ne__(self, other):
29433
    return not (self == other)
29434
 
29435
class getMarketplaceHistoryByDate_result:
29436
  """
29437
  Attributes:
29438
   - success
29439
  """
29440
 
29441
  thrift_spec = (
29442
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29443
  )
29444
 
29445
  def __init__(self, success=None,):
29446
    self.success = success
29447
 
29448
  def read(self, iprot):
29449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29451
      return
29452
    iprot.readStructBegin()
29453
    while True:
29454
      (fname, ftype, fid) = iprot.readFieldBegin()
29455
      if ftype == TType.STOP:
29456
        break
29457
      if fid == 0:
29458
        if ftype == TType.LIST:
29459
          self.success = []
12567 amit.gupta 29460
          (_etype653, _size650) = iprot.readListBegin()
29461
          for _i654 in xrange(_size650):
29462
            _elem655 = MarketplaceHistory()
29463
            _elem655.read(iprot)
29464
            self.success.append(_elem655)
11015 kshitij.so 29465
          iprot.readListEnd()
29466
        else:
29467
          iprot.skip(ftype)
29468
      else:
29469
        iprot.skip(ftype)
29470
      iprot.readFieldEnd()
29471
    iprot.readStructEnd()
29472
 
29473
  def write(self, oprot):
29474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29476
      return
29477
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29478
    if self.success is not None:
29479
      oprot.writeFieldBegin('success', TType.LIST, 0)
29480
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29481
      for iter656 in self.success:
29482
        iter656.write(oprot)
11015 kshitij.so 29483
      oprot.writeListEnd()
29484
      oprot.writeFieldEnd()
29485
    oprot.writeFieldStop()
29486
    oprot.writeStructEnd()
29487
 
29488
  def validate(self):
29489
    return
29490
 
29491
 
29492
  def __repr__(self):
29493
    L = ['%s=%r' % (key, value)
29494
      for key, value in self.__dict__.iteritems()]
29495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29496
 
29497
  def __eq__(self, other):
29498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29499
 
29500
  def __ne__(self, other):
29501
    return not (self == other)
11531 vikram.rag 29502
 
29503
class getPrivateDealDetails_args:
29504
  """
29505
  Attributes:
29506
   - item_id
29507
  """
29508
 
29509
  thrift_spec = (
29510
    None, # 0
29511
    (1, TType.I64, 'item_id', None, None, ), # 1
29512
  )
29513
 
29514
  def __init__(self, item_id=None,):
29515
    self.item_id = item_id
29516
 
29517
  def read(self, iprot):
29518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29520
      return
29521
    iprot.readStructBegin()
29522
    while True:
29523
      (fname, ftype, fid) = iprot.readFieldBegin()
29524
      if ftype == TType.STOP:
29525
        break
29526
      if fid == 1:
29527
        if ftype == TType.I64:
29528
          self.item_id = iprot.readI64();
29529
        else:
29530
          iprot.skip(ftype)
29531
      else:
29532
        iprot.skip(ftype)
29533
      iprot.readFieldEnd()
29534
    iprot.readStructEnd()
29535
 
29536
  def write(self, oprot):
29537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29539
      return
29540
    oprot.writeStructBegin('getPrivateDealDetails_args')
29541
    if self.item_id is not None:
29542
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29543
      oprot.writeI64(self.item_id)
29544
      oprot.writeFieldEnd()
29545
    oprot.writeFieldStop()
29546
    oprot.writeStructEnd()
29547
 
29548
  def validate(self):
29549
    return
29550
 
29551
 
29552
  def __repr__(self):
29553
    L = ['%s=%r' % (key, value)
29554
      for key, value in self.__dict__.iteritems()]
29555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29556
 
29557
  def __eq__(self, other):
29558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29559
 
29560
  def __ne__(self, other):
29561
    return not (self == other)
29562
 
29563
class getPrivateDealDetails_result:
29564
  """
29565
  Attributes:
29566
   - success
29567
  """
29568
 
29569
  thrift_spec = (
29570
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29571
  )
29572
 
29573
  def __init__(self, success=None,):
29574
    self.success = success
29575
 
29576
  def read(self, iprot):
29577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29579
      return
29580
    iprot.readStructBegin()
29581
    while True:
29582
      (fname, ftype, fid) = iprot.readFieldBegin()
29583
      if ftype == TType.STOP:
29584
        break
29585
      if fid == 0:
29586
        if ftype == TType.STRUCT:
29587
          self.success = PrivateDeal()
29588
          self.success.read(iprot)
29589
        else:
29590
          iprot.skip(ftype)
29591
      else:
29592
        iprot.skip(ftype)
29593
      iprot.readFieldEnd()
29594
    iprot.readStructEnd()
29595
 
29596
  def write(self, oprot):
29597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29599
      return
29600
    oprot.writeStructBegin('getPrivateDealDetails_result')
29601
    if self.success is not None:
29602
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29603
      self.success.write(oprot)
29604
      oprot.writeFieldEnd()
29605
    oprot.writeFieldStop()
29606
    oprot.writeStructEnd()
29607
 
29608
  def validate(self):
29609
    return
29610
 
29611
 
29612
  def __repr__(self):
29613
    L = ['%s=%r' % (key, value)
29614
      for key, value in self.__dict__.iteritems()]
29615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29616
 
29617
  def __eq__(self, other):
29618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29619
 
29620
  def __ne__(self, other):
29621
    return not (self == other)
29622
 
29623
class getPrivateDealItems_args:
29624
  """
29625
  Attributes:
29626
   - offset
29627
   - limit
29628
  """
29629
 
29630
  thrift_spec = (
29631
    None, # 0
29632
    (1, TType.I64, 'offset', None, None, ), # 1
29633
    (2, TType.I64, 'limit', None, None, ), # 2
29634
  )
29635
 
29636
  def __init__(self, offset=None, limit=None,):
29637
    self.offset = offset
29638
    self.limit = limit
29639
 
29640
  def read(self, iprot):
29641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29643
      return
29644
    iprot.readStructBegin()
29645
    while True:
29646
      (fname, ftype, fid) = iprot.readFieldBegin()
29647
      if ftype == TType.STOP:
29648
        break
29649
      if fid == 1:
29650
        if ftype == TType.I64:
29651
          self.offset = iprot.readI64();
29652
        else:
29653
          iprot.skip(ftype)
29654
      elif fid == 2:
29655
        if ftype == TType.I64:
29656
          self.limit = iprot.readI64();
29657
        else:
29658
          iprot.skip(ftype)
29659
      else:
29660
        iprot.skip(ftype)
29661
      iprot.readFieldEnd()
29662
    iprot.readStructEnd()
29663
 
29664
  def write(self, oprot):
29665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29667
      return
29668
    oprot.writeStructBegin('getPrivateDealItems_args')
29669
    if self.offset is not None:
29670
      oprot.writeFieldBegin('offset', TType.I64, 1)
29671
      oprot.writeI64(self.offset)
29672
      oprot.writeFieldEnd()
29673
    if self.limit is not None:
29674
      oprot.writeFieldBegin('limit', TType.I64, 2)
29675
      oprot.writeI64(self.limit)
29676
      oprot.writeFieldEnd()
29677
    oprot.writeFieldStop()
29678
    oprot.writeStructEnd()
29679
 
29680
  def validate(self):
29681
    return
29682
 
29683
 
29684
  def __repr__(self):
29685
    L = ['%s=%r' % (key, value)
29686
      for key, value in self.__dict__.iteritems()]
29687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29688
 
29689
  def __eq__(self, other):
29690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29691
 
29692
  def __ne__(self, other):
29693
    return not (self == other)
29694
 
29695
class getPrivateDealItems_result:
29696
  """
29697
  Attributes:
29698
   - success
29699
  """
29700
 
29701
  thrift_spec = (
29702
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
29703
  )
29704
 
29705
  def __init__(self, success=None,):
29706
    self.success = success
29707
 
29708
  def read(self, iprot):
29709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29711
      return
29712
    iprot.readStructBegin()
29713
    while True:
29714
      (fname, ftype, fid) = iprot.readFieldBegin()
29715
      if ftype == TType.STOP:
29716
        break
29717
      if fid == 0:
29718
        if ftype == TType.LIST:
29719
          self.success = []
12567 amit.gupta 29720
          (_etype660, _size657) = iprot.readListBegin()
29721
          for _i661 in xrange(_size657):
29722
            _elem662 = Item()
29723
            _elem662.read(iprot)
29724
            self.success.append(_elem662)
11531 vikram.rag 29725
          iprot.readListEnd()
29726
        else:
29727
          iprot.skip(ftype)
29728
      else:
29729
        iprot.skip(ftype)
29730
      iprot.readFieldEnd()
29731
    iprot.readStructEnd()
29732
 
29733
  def write(self, oprot):
29734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29736
      return
29737
    oprot.writeStructBegin('getPrivateDealItems_result')
29738
    if self.success is not None:
29739
      oprot.writeFieldBegin('success', TType.LIST, 0)
29740
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29741
      for iter663 in self.success:
29742
        iter663.write(oprot)
11531 vikram.rag 29743
      oprot.writeListEnd()
29744
      oprot.writeFieldEnd()
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
 
11592 amit.gupta 29763
class getAllActivePrivateDeals_args:
11653 amit.gupta 29764
  """
29765
  Attributes:
29766
   - itemIds
29767
   - daysDelta
29768
  """
11592 amit.gupta 29769
 
29770
  thrift_spec = (
11653 amit.gupta 29771
    None, # 0
29772
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
29773
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 29774
  )
29775
 
11653 amit.gupta 29776
  def __init__(self, itemIds=None, daysDelta=None,):
29777
    self.itemIds = itemIds
29778
    self.daysDelta = daysDelta
29779
 
11592 amit.gupta 29780
  def read(self, iprot):
29781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29783
      return
29784
    iprot.readStructBegin()
29785
    while True:
29786
      (fname, ftype, fid) = iprot.readFieldBegin()
29787
      if ftype == TType.STOP:
29788
        break
11653 amit.gupta 29789
      if fid == 1:
29790
        if ftype == TType.LIST:
29791
          self.itemIds = []
12567 amit.gupta 29792
          (_etype667, _size664) = iprot.readListBegin()
29793
          for _i668 in xrange(_size664):
29794
            _elem669 = iprot.readI64();
29795
            self.itemIds.append(_elem669)
11653 amit.gupta 29796
          iprot.readListEnd()
29797
        else:
29798
          iprot.skip(ftype)
29799
      elif fid == 2:
29800
        if ftype == TType.I64:
29801
          self.daysDelta = iprot.readI64();
29802
        else:
29803
          iprot.skip(ftype)
11592 amit.gupta 29804
      else:
29805
        iprot.skip(ftype)
29806
      iprot.readFieldEnd()
29807
    iprot.readStructEnd()
29808
 
29809
  def write(self, oprot):
29810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29812
      return
29813
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 29814
    if self.itemIds is not None:
29815
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
29816
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 29817
      for iter670 in self.itemIds:
29818
        oprot.writeI64(iter670)
11653 amit.gupta 29819
      oprot.writeListEnd()
29820
      oprot.writeFieldEnd()
29821
    if self.daysDelta is not None:
29822
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
29823
      oprot.writeI64(self.daysDelta)
29824
      oprot.writeFieldEnd()
11592 amit.gupta 29825
    oprot.writeFieldStop()
29826
    oprot.writeStructEnd()
29827
 
29828
  def validate(self):
29829
    return
29830
 
29831
 
29832
  def __repr__(self):
29833
    L = ['%s=%r' % (key, value)
29834
      for key, value in self.__dict__.iteritems()]
29835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29836
 
29837
  def __eq__(self, other):
29838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29839
 
29840
  def __ne__(self, other):
29841
    return not (self == other)
29842
 
29843
class getAllActivePrivateDeals_result:
29844
  """
29845
  Attributes:
29846
   - success
29847
  """
29848
 
29849
  thrift_spec = (
29850
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
29851
  )
29852
 
29853
  def __init__(self, success=None,):
29854
    self.success = success
29855
 
29856
  def read(self, iprot):
29857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29859
      return
29860
    iprot.readStructBegin()
29861
    while True:
29862
      (fname, ftype, fid) = iprot.readFieldBegin()
29863
      if ftype == TType.STOP:
29864
        break
29865
      if fid == 0:
29866
        if ftype == TType.MAP:
29867
          self.success = {}
12567 amit.gupta 29868
          (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() 
29869
          for _i675 in xrange(_size671):
29870
            _key676 = iprot.readI64();
29871
            _val677 = PrivateDeal()
29872
            _val677.read(iprot)
29873
            self.success[_key676] = _val677
11592 amit.gupta 29874
          iprot.readMapEnd()
29875
        else:
29876
          iprot.skip(ftype)
29877
      else:
29878
        iprot.skip(ftype)
29879
      iprot.readFieldEnd()
29880
    iprot.readStructEnd()
29881
 
29882
  def write(self, oprot):
29883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29885
      return
29886
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
29887
    if self.success is not None:
29888
      oprot.writeFieldBegin('success', TType.MAP, 0)
29889
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12567 amit.gupta 29890
      for kiter678,viter679 in self.success.items():
29891
        oprot.writeI64(kiter678)
29892
        viter679.write(oprot)
11592 amit.gupta 29893
      oprot.writeMapEnd()
29894
      oprot.writeFieldEnd()
29895
    oprot.writeFieldStop()
29896
    oprot.writeStructEnd()
29897
 
29898
  def validate(self):
29899
    return
29900
 
29901
 
29902
  def __repr__(self):
29903
    L = ['%s=%r' % (key, value)
29904
      for key, value in self.__dict__.iteritems()]
29905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29906
 
29907
  def __eq__(self, other):
29908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29909
 
29910
  def __ne__(self, other):
29911
    return not (self == other)
29912
 
11531 vikram.rag 29913
class addOrUpdatePrivateDeal_args:
29914
  """
29915
  Attributes:
29916
   - privateDeal
29917
  """
29918
 
29919
  thrift_spec = (
29920
    None, # 0
29921
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
29922
  )
29923
 
29924
  def __init__(self, privateDeal=None,):
29925
    self.privateDeal = privateDeal
29926
 
29927
  def read(self, iprot):
29928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29930
      return
29931
    iprot.readStructBegin()
29932
    while True:
29933
      (fname, ftype, fid) = iprot.readFieldBegin()
29934
      if ftype == TType.STOP:
29935
        break
29936
      if fid == 1:
29937
        if ftype == TType.STRUCT:
29938
          self.privateDeal = PrivateDeal()
29939
          self.privateDeal.read(iprot)
29940
        else:
29941
          iprot.skip(ftype)
29942
      else:
29943
        iprot.skip(ftype)
29944
      iprot.readFieldEnd()
29945
    iprot.readStructEnd()
29946
 
29947
  def write(self, oprot):
29948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29950
      return
29951
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
29952
    if self.privateDeal is not None:
29953
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
29954
      self.privateDeal.write(oprot)
29955
      oprot.writeFieldEnd()
29956
    oprot.writeFieldStop()
29957
    oprot.writeStructEnd()
29958
 
29959
  def validate(self):
29960
    return
29961
 
29962
 
29963
  def __repr__(self):
29964
    L = ['%s=%r' % (key, value)
29965
      for key, value in self.__dict__.iteritems()]
29966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29967
 
29968
  def __eq__(self, other):
29969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29970
 
29971
  def __ne__(self, other):
29972
    return not (self == other)
29973
 
29974
class addOrUpdatePrivateDeal_result:
29975
  """
29976
  Attributes:
29977
   - success
29978
  """
29979
 
29980
  thrift_spec = (
29981
    (0, TType.BOOL, 'success', None, None, ), # 0
29982
  )
29983
 
29984
  def __init__(self, success=None,):
29985
    self.success = success
29986
 
29987
  def read(self, iprot):
29988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29990
      return
29991
    iprot.readStructBegin()
29992
    while True:
29993
      (fname, ftype, fid) = iprot.readFieldBegin()
29994
      if ftype == TType.STOP:
29995
        break
29996
      if fid == 0:
29997
        if ftype == TType.BOOL:
29998
          self.success = iprot.readBool();
29999
        else:
30000
          iprot.skip(ftype)
30001
      else:
30002
        iprot.skip(ftype)
30003
      iprot.readFieldEnd()
30004
    iprot.readStructEnd()
30005
 
30006
  def write(self, oprot):
30007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30009
      return
30010
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
30011
    if self.success is not None:
30012
      oprot.writeFieldBegin('success', TType.BOOL, 0)
30013
      oprot.writeBool(self.success)
30014
      oprot.writeFieldEnd()
30015
    oprot.writeFieldStop()
30016
    oprot.writeStructEnd()
30017
 
30018
  def validate(self):
30019
    return
30020
 
30021
 
30022
  def __repr__(self):
30023
    L = ['%s=%r' % (key, value)
30024
      for key, value in self.__dict__.iteritems()]
30025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30026
 
30027
  def __eq__(self, other):
30028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30029
 
30030
  def __ne__(self, other):
30031
    return not (self == other)
11635 vikram.rag 30032
 
30033
class getPrivateDealsCatalogIds_args:
30034
  """
30035
  Attributes:
30036
   - beginIndex
30037
   - totalItems
30038
  """
30039
 
30040
  thrift_spec = (
30041
    None, # 0
30042
    (1, TType.I64, 'beginIndex', None, None, ), # 1
30043
    (2, TType.I64, 'totalItems', None, None, ), # 2
30044
  )
30045
 
30046
  def __init__(self, beginIndex=None, totalItems=None,):
30047
    self.beginIndex = beginIndex
30048
    self.totalItems = totalItems
30049
 
30050
  def read(self, iprot):
30051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30053
      return
30054
    iprot.readStructBegin()
30055
    while True:
30056
      (fname, ftype, fid) = iprot.readFieldBegin()
30057
      if ftype == TType.STOP:
30058
        break
30059
      if fid == 1:
30060
        if ftype == TType.I64:
30061
          self.beginIndex = iprot.readI64();
30062
        else:
30063
          iprot.skip(ftype)
30064
      elif fid == 2:
30065
        if ftype == TType.I64:
30066
          self.totalItems = iprot.readI64();
30067
        else:
30068
          iprot.skip(ftype)
30069
      else:
30070
        iprot.skip(ftype)
30071
      iprot.readFieldEnd()
30072
    iprot.readStructEnd()
30073
 
30074
  def write(self, oprot):
30075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30077
      return
30078
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
30079
    if self.beginIndex is not None:
30080
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30081
      oprot.writeI64(self.beginIndex)
30082
      oprot.writeFieldEnd()
30083
    if self.totalItems is not None:
30084
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30085
      oprot.writeI64(self.totalItems)
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)
30104
 
30105
class getPrivateDealsCatalogIds_result:
30106
  """
30107
  Attributes:
30108
   - success
30109
   - cex
30110
  """
30111
 
30112
  thrift_spec = (
30113
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30114
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30115
  )
30116
 
30117
  def __init__(self, success=None, cex=None,):
30118
    self.success = success
30119
    self.cex = cex
30120
 
30121
  def read(self, iprot):
30122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30124
      return
30125
    iprot.readStructBegin()
30126
    while True:
30127
      (fname, ftype, fid) = iprot.readFieldBegin()
30128
      if ftype == TType.STOP:
30129
        break
30130
      if fid == 0:
30131
        if ftype == TType.LIST:
30132
          self.success = []
12567 amit.gupta 30133
          (_etype683, _size680) = iprot.readListBegin()
30134
          for _i684 in xrange(_size680):
30135
            _elem685 = iprot.readI64();
30136
            self.success.append(_elem685)
11635 vikram.rag 30137
          iprot.readListEnd()
30138
        else:
30139
          iprot.skip(ftype)
30140
      elif fid == 1:
30141
        if ftype == TType.STRUCT:
30142
          self.cex = CatalogServiceException()
30143
          self.cex.read(iprot)
30144
        else:
30145
          iprot.skip(ftype)
30146
      else:
30147
        iprot.skip(ftype)
30148
      iprot.readFieldEnd()
30149
    iprot.readStructEnd()
30150
 
30151
  def write(self, oprot):
30152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30154
      return
30155
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30156
    if self.success is not None:
30157
      oprot.writeFieldBegin('success', TType.LIST, 0)
30158
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 30159
      for iter686 in self.success:
30160
        oprot.writeI64(iter686)
11635 vikram.rag 30161
      oprot.writeListEnd()
30162
      oprot.writeFieldEnd()
30163
    if self.cex is not None:
30164
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30165
      self.cex.write(oprot)
30166
      oprot.writeFieldEnd()
30167
    oprot.writeFieldStop()
30168
    oprot.writeStructEnd()
30169
 
30170
  def validate(self):
30171
    return
30172
 
30173
 
30174
  def __repr__(self):
30175
    L = ['%s=%r' % (key, value)
30176
      for key, value in self.__dict__.iteritems()]
30177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30178
 
30179
  def __eq__(self, other):
30180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30181
 
30182
  def __ne__(self, other):
30183
    return not (self == other)
11645 amit.gupta 30184
 
30185
class getPrivateDealsCount_args:
30186
 
30187
  thrift_spec = (
30188
  )
30189
 
30190
  def read(self, iprot):
30191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30193
      return
30194
    iprot.readStructBegin()
30195
    while True:
30196
      (fname, ftype, fid) = iprot.readFieldBegin()
30197
      if ftype == TType.STOP:
30198
        break
30199
      else:
30200
        iprot.skip(ftype)
30201
      iprot.readFieldEnd()
30202
    iprot.readStructEnd()
30203
 
30204
  def write(self, oprot):
30205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30207
      return
30208
    oprot.writeStructBegin('getPrivateDealsCount_args')
30209
    oprot.writeFieldStop()
30210
    oprot.writeStructEnd()
30211
 
30212
  def validate(self):
30213
    return
30214
 
30215
 
30216
  def __repr__(self):
30217
    L = ['%s=%r' % (key, value)
30218
      for key, value in self.__dict__.iteritems()]
30219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30220
 
30221
  def __eq__(self, other):
30222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30223
 
30224
  def __ne__(self, other):
30225
    return not (self == other)
30226
 
30227
class getPrivateDealsCount_result:
30228
  """
30229
  Attributes:
30230
   - success
30231
  """
30232
 
30233
  thrift_spec = (
30234
    (0, TType.I32, 'success', None, None, ), # 0
30235
  )
30236
 
30237
  def __init__(self, success=None,):
30238
    self.success = success
30239
 
30240
  def read(self, iprot):
30241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30243
      return
30244
    iprot.readStructBegin()
30245
    while True:
30246
      (fname, ftype, fid) = iprot.readFieldBegin()
30247
      if ftype == TType.STOP:
30248
        break
30249
      if fid == 0:
30250
        if ftype == TType.I32:
30251
          self.success = iprot.readI32();
30252
        else:
30253
          iprot.skip(ftype)
30254
      else:
30255
        iprot.skip(ftype)
30256
      iprot.readFieldEnd()
30257
    iprot.readStructEnd()
30258
 
30259
  def write(self, oprot):
30260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30262
      return
30263
    oprot.writeStructBegin('getPrivateDealsCount_result')
30264
    if self.success is not None:
30265
      oprot.writeFieldBegin('success', TType.I32, 0)
30266
      oprot.writeI32(self.success)
30267
      oprot.writeFieldEnd()
30268
    oprot.writeFieldStop()
30269
    oprot.writeStructEnd()
30270
 
30271
  def validate(self):
30272
    return
30273
 
30274
 
30275
  def __repr__(self):
30276
    L = ['%s=%r' % (key, value)
30277
      for key, value in self.__dict__.iteritems()]
30278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30279
 
30280
  def __eq__(self, other):
30281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30282
 
30283
  def __ne__(self, other):
30284
    return not (self == other)
11905 kshitij.so 30285
 
30286
class getAmazonOutSyncItems_args:
30287
  """
30288
  Attributes:
30289
   - item_id
30290
  """
30291
 
30292
  thrift_spec = (
30293
    None, # 0
30294
    (1, TType.I64, 'item_id', None, None, ), # 1
30295
  )
30296
 
30297
  def __init__(self, item_id=None,):
30298
    self.item_id = item_id
30299
 
30300
  def read(self, iprot):
30301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30303
      return
30304
    iprot.readStructBegin()
30305
    while True:
30306
      (fname, ftype, fid) = iprot.readFieldBegin()
30307
      if ftype == TType.STOP:
30308
        break
30309
      if fid == 1:
30310
        if ftype == TType.I64:
30311
          self.item_id = iprot.readI64();
30312
        else:
30313
          iprot.skip(ftype)
30314
      else:
30315
        iprot.skip(ftype)
30316
      iprot.readFieldEnd()
30317
    iprot.readStructEnd()
30318
 
30319
  def write(self, oprot):
30320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30322
      return
30323
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30324
    if self.item_id is not None:
30325
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30326
      oprot.writeI64(self.item_id)
30327
      oprot.writeFieldEnd()
30328
    oprot.writeFieldStop()
30329
    oprot.writeStructEnd()
30330
 
30331
  def validate(self):
30332
    return
30333
 
30334
 
30335
  def __repr__(self):
30336
    L = ['%s=%r' % (key, value)
30337
      for key, value in self.__dict__.iteritems()]
30338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30339
 
30340
  def __eq__(self, other):
30341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30342
 
30343
  def __ne__(self, other):
30344
    return not (self == other)
30345
 
30346
class getAmazonOutSyncItems_result:
30347
  """
30348
  Attributes:
30349
   - success
30350
  """
30351
 
30352
  thrift_spec = (
30353
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30354
  )
30355
 
30356
  def __init__(self, success=None,):
30357
    self.success = success
30358
 
30359
  def read(self, iprot):
30360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30362
      return
30363
    iprot.readStructBegin()
30364
    while True:
30365
      (fname, ftype, fid) = iprot.readFieldBegin()
30366
      if ftype == TType.STOP:
30367
        break
30368
      if fid == 0:
30369
        if ftype == TType.STRUCT:
30370
          self.success = AmazonOutOfSync()
30371
          self.success.read(iprot)
30372
        else:
30373
          iprot.skip(ftype)
30374
      else:
30375
        iprot.skip(ftype)
30376
      iprot.readFieldEnd()
30377
    iprot.readStructEnd()
30378
 
30379
  def write(self, oprot):
30380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30382
      return
30383
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30384
    if self.success is not None:
30385
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30386
      self.success.write(oprot)
30387
      oprot.writeFieldEnd()
30388
    oprot.writeFieldStop()
30389
    oprot.writeStructEnd()
30390
 
30391
  def validate(self):
30392
    return
30393
 
30394
 
30395
  def __repr__(self):
30396
    L = ['%s=%r' % (key, value)
30397
      for key, value in self.__dict__.iteritems()]
30398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30399
 
30400
  def __eq__(self, other):
30401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30402
 
30403
  def __ne__(self, other):
30404
    return not (self == other)
30405
 
30406
class getAllPrivateDealsComparison_args:
30407
 
30408
  thrift_spec = (
30409
  )
30410
 
30411
  def read(self, iprot):
30412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30414
      return
30415
    iprot.readStructBegin()
30416
    while True:
30417
      (fname, ftype, fid) = iprot.readFieldBegin()
30418
      if ftype == TType.STOP:
30419
        break
30420
      else:
30421
        iprot.skip(ftype)
30422
      iprot.readFieldEnd()
30423
    iprot.readStructEnd()
30424
 
30425
  def write(self, oprot):
30426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30428
      return
30429
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30430
    oprot.writeFieldStop()
30431
    oprot.writeStructEnd()
30432
 
30433
  def validate(self):
30434
    return
30435
 
30436
 
30437
  def __repr__(self):
30438
    L = ['%s=%r' % (key, value)
30439
      for key, value in self.__dict__.iteritems()]
30440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30441
 
30442
  def __eq__(self, other):
30443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30444
 
30445
  def __ne__(self, other):
30446
    return not (self == other)
30447
 
30448
class getAllPrivateDealsComparison_result:
30449
  """
30450
  Attributes:
30451
   - success
30452
  """
30453
 
30454
  thrift_spec = (
30455
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30456
  )
30457
 
30458
  def __init__(self, success=None,):
30459
    self.success = success
30460
 
30461
  def read(self, iprot):
30462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30464
      return
30465
    iprot.readStructBegin()
30466
    while True:
30467
      (fname, ftype, fid) = iprot.readFieldBegin()
30468
      if ftype == TType.STOP:
30469
        break
30470
      if fid == 0:
30471
        if ftype == TType.LIST:
30472
          self.success = []
12567 amit.gupta 30473
          (_etype690, _size687) = iprot.readListBegin()
30474
          for _i691 in xrange(_size687):
30475
            _elem692 = PdPriceComp()
30476
            _elem692.read(iprot)
30477
            self.success.append(_elem692)
11905 kshitij.so 30478
          iprot.readListEnd()
30479
        else:
30480
          iprot.skip(ftype)
30481
      else:
30482
        iprot.skip(ftype)
30483
      iprot.readFieldEnd()
30484
    iprot.readStructEnd()
30485
 
30486
  def write(self, oprot):
30487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30489
      return
30490
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30491
    if self.success is not None:
30492
      oprot.writeFieldBegin('success', TType.LIST, 0)
30493
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30494
      for iter693 in self.success:
30495
        iter693.write(oprot)
11905 kshitij.so 30496
      oprot.writeListEnd()
30497
      oprot.writeFieldEnd()
30498
    oprot.writeFieldStop()
30499
    oprot.writeStructEnd()
30500
 
30501
  def validate(self):
30502
    return
30503
 
30504
 
30505
  def __repr__(self):
30506
    L = ['%s=%r' % (key, value)
30507
      for key, value in self.__dict__.iteritems()]
30508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30509
 
30510
  def __eq__(self, other):
30511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30512
 
30513
  def __ne__(self, other):
30514
    return not (self == other)
12133 kshitij.so 30515
 
30516
class getAllSnapdealMarketplaceItem_args:
30517
 
30518
  thrift_spec = (
30519
  )
30520
 
30521
  def read(self, iprot):
30522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30524
      return
30525
    iprot.readStructBegin()
30526
    while True:
30527
      (fname, ftype, fid) = iprot.readFieldBegin()
30528
      if ftype == TType.STOP:
30529
        break
30530
      else:
30531
        iprot.skip(ftype)
30532
      iprot.readFieldEnd()
30533
    iprot.readStructEnd()
30534
 
30535
  def write(self, oprot):
30536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30538
      return
30539
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30540
    oprot.writeFieldStop()
30541
    oprot.writeStructEnd()
30542
 
30543
  def validate(self):
30544
    return
30545
 
30546
 
30547
  def __repr__(self):
30548
    L = ['%s=%r' % (key, value)
30549
      for key, value in self.__dict__.iteritems()]
30550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30551
 
30552
  def __eq__(self, other):
30553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30554
 
30555
  def __ne__(self, other):
30556
    return not (self == other)
30557
 
30558
class getAllSnapdealMarketplaceItem_result:
30559
  """
30560
  Attributes:
30561
   - success
30562
  """
30563
 
30564
  thrift_spec = (
30565
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30566
  )
30567
 
30568
  def __init__(self, success=None,):
30569
    self.success = success
30570
 
30571
  def read(self, iprot):
30572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30574
      return
30575
    iprot.readStructBegin()
30576
    while True:
30577
      (fname, ftype, fid) = iprot.readFieldBegin()
30578
      if ftype == TType.STOP:
30579
        break
30580
      if fid == 0:
30581
        if ftype == TType.LIST:
30582
          self.success = []
12567 amit.gupta 30583
          (_etype697, _size694) = iprot.readListBegin()
30584
          for _i698 in xrange(_size694):
30585
            _elem699 = SnapdealItem()
30586
            _elem699.read(iprot)
30587
            self.success.append(_elem699)
12133 kshitij.so 30588
          iprot.readListEnd()
30589
        else:
30590
          iprot.skip(ftype)
30591
      else:
30592
        iprot.skip(ftype)
30593
      iprot.readFieldEnd()
30594
    iprot.readStructEnd()
30595
 
30596
  def write(self, oprot):
30597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30599
      return
30600
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30601
    if self.success is not None:
30602
      oprot.writeFieldBegin('success', TType.LIST, 0)
30603
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30604
      for iter700 in self.success:
30605
        iter700.write(oprot)
12133 kshitij.so 30606
      oprot.writeListEnd()
30607
      oprot.writeFieldEnd()
30608
    oprot.writeFieldStop()
30609
    oprot.writeStructEnd()
30610
 
30611
  def validate(self):
30612
    return
30613
 
30614
 
30615
  def __repr__(self):
30616
    L = ['%s=%r' % (key, value)
30617
      for key, value in self.__dict__.iteritems()]
30618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30619
 
30620
  def __eq__(self, other):
30621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30622
 
30623
  def __ne__(self, other):
30624
    return not (self == other)
30625
 
30626
class getAllFlipkartMarketplaceItem_args:
30627
 
30628
  thrift_spec = (
30629
  )
30630
 
30631
  def read(self, iprot):
30632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30634
      return
30635
    iprot.readStructBegin()
30636
    while True:
30637
      (fname, ftype, fid) = iprot.readFieldBegin()
30638
      if ftype == TType.STOP:
30639
        break
30640
      else:
30641
        iprot.skip(ftype)
30642
      iprot.readFieldEnd()
30643
    iprot.readStructEnd()
30644
 
30645
  def write(self, oprot):
30646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30648
      return
30649
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30650
    oprot.writeFieldStop()
30651
    oprot.writeStructEnd()
30652
 
30653
  def validate(self):
30654
    return
30655
 
30656
 
30657
  def __repr__(self):
30658
    L = ['%s=%r' % (key, value)
30659
      for key, value in self.__dict__.iteritems()]
30660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30661
 
30662
  def __eq__(self, other):
30663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30664
 
30665
  def __ne__(self, other):
30666
    return not (self == other)
30667
 
30668
class getAllFlipkartMarketplaceItem_result:
30669
  """
30670
  Attributes:
30671
   - success
30672
  """
30673
 
30674
  thrift_spec = (
30675
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30676
  )
30677
 
30678
  def __init__(self, success=None,):
30679
    self.success = success
30680
 
30681
  def read(self, iprot):
30682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30684
      return
30685
    iprot.readStructBegin()
30686
    while True:
30687
      (fname, ftype, fid) = iprot.readFieldBegin()
30688
      if ftype == TType.STOP:
30689
        break
30690
      if fid == 0:
30691
        if ftype == TType.LIST:
30692
          self.success = []
12567 amit.gupta 30693
          (_etype704, _size701) = iprot.readListBegin()
30694
          for _i705 in xrange(_size701):
30695
            _elem706 = FlipkartItem()
30696
            _elem706.read(iprot)
30697
            self.success.append(_elem706)
12133 kshitij.so 30698
          iprot.readListEnd()
30699
        else:
30700
          iprot.skip(ftype)
30701
      else:
30702
        iprot.skip(ftype)
30703
      iprot.readFieldEnd()
30704
    iprot.readStructEnd()
30705
 
30706
  def write(self, oprot):
30707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30709
      return
30710
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
30711
    if self.success is not None:
30712
      oprot.writeFieldBegin('success', TType.LIST, 0)
30713
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30714
      for iter707 in self.success:
30715
        iter707.write(oprot)
12133 kshitij.so 30716
      oprot.writeListEnd()
30717
      oprot.writeFieldEnd()
30718
    oprot.writeFieldStop()
30719
    oprot.writeStructEnd()
30720
 
30721
  def validate(self):
30722
    return
30723
 
30724
 
30725
  def __repr__(self):
30726
    L = ['%s=%r' % (key, value)
30727
      for key, value in self.__dict__.iteritems()]
30728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30729
 
30730
  def __eq__(self, other):
30731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30732
 
30733
  def __ne__(self, other):
30734
    return not (self == other)
12243 kshitij.so 30735
 
30736
class addCompetitorScraping_args:
30737
  """
30738
  Attributes:
30739
   - competitorPricingMap
30740
  """
30741
 
30742
  thrift_spec = (
30743
    None, # 0
30744
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
30745
  )
30746
 
30747
  def __init__(self, competitorPricingMap=None,):
30748
    self.competitorPricingMap = competitorPricingMap
30749
 
30750
  def read(self, iprot):
30751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30753
      return
30754
    iprot.readStructBegin()
30755
    while True:
30756
      (fname, ftype, fid) = iprot.readFieldBegin()
30757
      if ftype == TType.STOP:
30758
        break
30759
      if fid == 1:
30760
        if ftype == TType.MAP:
30761
          self.competitorPricingMap = {}
12567 amit.gupta 30762
          (_ktype709, _vtype710, _size708 ) = iprot.readMapBegin() 
30763
          for _i712 in xrange(_size708):
30764
            _key713 = iprot.readI64();
30765
            _val714 = CompetitorPricing()
30766
            _val714.read(iprot)
30767
            self.competitorPricingMap[_key713] = _val714
12243 kshitij.so 30768
          iprot.readMapEnd()
30769
        else:
30770
          iprot.skip(ftype)
30771
      else:
30772
        iprot.skip(ftype)
30773
      iprot.readFieldEnd()
30774
    iprot.readStructEnd()
30775
 
30776
  def write(self, oprot):
30777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30779
      return
30780
    oprot.writeStructBegin('addCompetitorScraping_args')
30781
    if self.competitorPricingMap is not None:
30782
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
30783
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
12567 amit.gupta 30784
      for kiter715,viter716 in self.competitorPricingMap.items():
30785
        oprot.writeI64(kiter715)
30786
        viter716.write(oprot)
12243 kshitij.so 30787
      oprot.writeMapEnd()
30788
      oprot.writeFieldEnd()
30789
    oprot.writeFieldStop()
30790
    oprot.writeStructEnd()
30791
 
30792
  def validate(self):
30793
    return
30794
 
30795
 
30796
  def __repr__(self):
30797
    L = ['%s=%r' % (key, value)
30798
      for key, value in self.__dict__.iteritems()]
30799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30800
 
30801
  def __eq__(self, other):
30802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30803
 
30804
  def __ne__(self, other):
30805
    return not (self == other)
30806
 
30807
class addCompetitorScraping_result:
30808
 
30809
  thrift_spec = (
30810
  )
30811
 
30812
  def read(self, iprot):
30813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30815
      return
30816
    iprot.readStructBegin()
30817
    while True:
30818
      (fname, ftype, fid) = iprot.readFieldBegin()
30819
      if ftype == TType.STOP:
30820
        break
30821
      else:
30822
        iprot.skip(ftype)
30823
      iprot.readFieldEnd()
30824
    iprot.readStructEnd()
30825
 
30826
  def write(self, oprot):
30827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30829
      return
30830
    oprot.writeStructBegin('addCompetitorScraping_result')
30831
    oprot.writeFieldStop()
30832
    oprot.writeStructEnd()
30833
 
30834
  def validate(self):
30835
    return
30836
 
30837
 
30838
  def __repr__(self):
30839
    L = ['%s=%r' % (key, value)
30840
      for key, value in self.__dict__.iteritems()]
30841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30842
 
30843
  def __eq__(self, other):
30844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30845
 
30846
  def __ne__(self, other):
30847
    return not (self == other)
30848
 
30849
class getPreviousCompetitorScraping_args:
30850
  """
30851
  Attributes:
30852
   - delta
30853
  """
30854
 
30855
  thrift_spec = (
30856
    None, # 0
30857
    (1, TType.I64, 'delta', None, None, ), # 1
30858
  )
30859
 
30860
  def __init__(self, delta=None,):
30861
    self.delta = delta
30862
 
30863
  def read(self, iprot):
30864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30866
      return
30867
    iprot.readStructBegin()
30868
    while True:
30869
      (fname, ftype, fid) = iprot.readFieldBegin()
30870
      if ftype == TType.STOP:
30871
        break
30872
      if fid == 1:
30873
        if ftype == TType.I64:
30874
          self.delta = iprot.readI64();
30875
        else:
30876
          iprot.skip(ftype)
30877
      else:
30878
        iprot.skip(ftype)
30879
      iprot.readFieldEnd()
30880
    iprot.readStructEnd()
30881
 
30882
  def write(self, oprot):
30883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30885
      return
30886
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
30887
    if self.delta is not None:
30888
      oprot.writeFieldBegin('delta', TType.I64, 1)
30889
      oprot.writeI64(self.delta)
30890
      oprot.writeFieldEnd()
30891
    oprot.writeFieldStop()
30892
    oprot.writeStructEnd()
30893
 
30894
  def validate(self):
30895
    return
30896
 
30897
 
30898
  def __repr__(self):
30899
    L = ['%s=%r' % (key, value)
30900
      for key, value in self.__dict__.iteritems()]
30901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30902
 
30903
  def __eq__(self, other):
30904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30905
 
30906
  def __ne__(self, other):
30907
    return not (self == other)
30908
 
30909
class getPreviousCompetitorScraping_result:
30910
  """
30911
  Attributes:
30912
   - success
30913
  """
30914
 
30915
  thrift_spec = (
30916
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30917
  )
30918
 
30919
  def __init__(self, success=None,):
30920
    self.success = success
30921
 
30922
  def read(self, iprot):
30923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30925
      return
30926
    iprot.readStructBegin()
30927
    while True:
30928
      (fname, ftype, fid) = iprot.readFieldBegin()
30929
      if ftype == TType.STOP:
30930
        break
30931
      if fid == 0:
30932
        if ftype == TType.LIST:
30933
          self.success = []
12567 amit.gupta 30934
          (_etype720, _size717) = iprot.readListBegin()
30935
          for _i721 in xrange(_size717):
30936
            _elem722 = CompetitorPricing()
30937
            _elem722.read(iprot)
30938
            self.success.append(_elem722)
12243 kshitij.so 30939
          iprot.readListEnd()
30940
        else:
30941
          iprot.skip(ftype)
30942
      else:
30943
        iprot.skip(ftype)
30944
      iprot.readFieldEnd()
30945
    iprot.readStructEnd()
30946
 
30947
  def write(self, oprot):
30948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30950
      return
30951
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
30952
    if self.success is not None:
30953
      oprot.writeFieldBegin('success', TType.LIST, 0)
30954
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30955
      for iter723 in self.success:
30956
        iter723.write(oprot)
12243 kshitij.so 30957
      oprot.writeListEnd()
30958
      oprot.writeFieldEnd()
30959
    oprot.writeFieldStop()
30960
    oprot.writeStructEnd()
30961
 
30962
  def validate(self):
30963
    return
30964
 
30965
 
30966
  def __repr__(self):
30967
    L = ['%s=%r' % (key, value)
30968
      for key, value in self.__dict__.iteritems()]
30969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30970
 
30971
  def __eq__(self, other):
30972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30973
 
30974
  def __ne__(self, other):
30975
    return not (self == other)
12256 kshitij.so 30976
 
30977
class getUploadResultById_args:
30978
  """
30979
  Attributes:
30980
   - uploadId
30981
  """
30982
 
30983
  thrift_spec = (
30984
    None, # 0
30985
    (1, TType.I64, 'uploadId', None, None, ), # 1
30986
  )
30987
 
30988
  def __init__(self, uploadId=None,):
30989
    self.uploadId = uploadId
30990
 
30991
  def read(self, iprot):
30992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30994
      return
30995
    iprot.readStructBegin()
30996
    while True:
30997
      (fname, ftype, fid) = iprot.readFieldBegin()
30998
      if ftype == TType.STOP:
30999
        break
31000
      if fid == 1:
31001
        if ftype == TType.I64:
31002
          self.uploadId = iprot.readI64();
31003
        else:
31004
          iprot.skip(ftype)
31005
      else:
31006
        iprot.skip(ftype)
31007
      iprot.readFieldEnd()
31008
    iprot.readStructEnd()
31009
 
31010
  def write(self, oprot):
31011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31013
      return
31014
    oprot.writeStructBegin('getUploadResultById_args')
31015
    if self.uploadId is not None:
31016
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
31017
      oprot.writeI64(self.uploadId)
31018
      oprot.writeFieldEnd()
31019
    oprot.writeFieldStop()
31020
    oprot.writeStructEnd()
31021
 
31022
  def validate(self):
31023
    return
31024
 
31025
 
31026
  def __repr__(self):
31027
    L = ['%s=%r' % (key, value)
31028
      for key, value in self.__dict__.iteritems()]
31029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31030
 
31031
  def __eq__(self, other):
31032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31033
 
31034
  def __ne__(self, other):
31035
    return not (self == other)
31036
 
31037
class getUploadResultById_result:
31038
  """
31039
  Attributes:
31040
   - success
31041
  """
31042
 
31043
  thrift_spec = (
31044
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31045
  )
31046
 
31047
  def __init__(self, success=None,):
31048
    self.success = success
31049
 
31050
  def read(self, iprot):
31051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31053
      return
31054
    iprot.readStructBegin()
31055
    while True:
31056
      (fname, ftype, fid) = iprot.readFieldBegin()
31057
      if ftype == TType.STOP:
31058
        break
31059
      if fid == 0:
31060
        if ftype == TType.LIST:
31061
          self.success = []
12567 amit.gupta 31062
          (_etype727, _size724) = iprot.readListBegin()
31063
          for _i728 in xrange(_size724):
31064
            _elem729 = CompetitorPricing()
31065
            _elem729.read(iprot)
31066
            self.success.append(_elem729)
12256 kshitij.so 31067
          iprot.readListEnd()
31068
        else:
31069
          iprot.skip(ftype)
31070
      else:
31071
        iprot.skip(ftype)
31072
      iprot.readFieldEnd()
31073
    iprot.readStructEnd()
31074
 
31075
  def write(self, oprot):
31076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31078
      return
31079
    oprot.writeStructBegin('getUploadResultById_result')
31080
    if self.success is not None:
31081
      oprot.writeFieldBegin('success', TType.LIST, 0)
31082
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31083
      for iter730 in self.success:
31084
        iter730.write(oprot)
12256 kshitij.so 31085
      oprot.writeListEnd()
31086
      oprot.writeFieldEnd()
31087
    oprot.writeFieldStop()
31088
    oprot.writeStructEnd()
31089
 
31090
  def validate(self):
31091
    return
31092
 
31093
 
31094
  def __repr__(self):
31095
    L = ['%s=%r' % (key, value)
31096
      for key, value in self.__dict__.iteritems()]
31097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31098
 
31099
  def __eq__(self, other):
31100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31101
 
31102
  def __ne__(self, other):
31103
    return not (self == other)
12363 kshitij.so 31104
 
31105
class addAmazonPromotion_args:
31106
  """
31107
  Attributes:
31108
   - amazonPromotions
31109
  """
31110
 
31111
  thrift_spec = (
31112
    None, # 0
31113
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31114
  )
31115
 
31116
  def __init__(self, amazonPromotions=None,):
31117
    self.amazonPromotions = amazonPromotions
31118
 
31119
  def read(self, iprot):
31120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31122
      return
31123
    iprot.readStructBegin()
31124
    while True:
31125
      (fname, ftype, fid) = iprot.readFieldBegin()
31126
      if ftype == TType.STOP:
31127
        break
31128
      if fid == 1:
31129
        if ftype == TType.MAP:
31130
          self.amazonPromotions = {}
12567 amit.gupta 31131
          (_ktype732, _vtype733, _size731 ) = iprot.readMapBegin() 
31132
          for _i735 in xrange(_size731):
31133
            _key736 = iprot.readString();
31134
            _val737 = AmazonPromotion()
31135
            _val737.read(iprot)
31136
            self.amazonPromotions[_key736] = _val737
12363 kshitij.so 31137
          iprot.readMapEnd()
31138
        else:
31139
          iprot.skip(ftype)
31140
      else:
31141
        iprot.skip(ftype)
31142
      iprot.readFieldEnd()
31143
    iprot.readStructEnd()
31144
 
31145
  def write(self, oprot):
31146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31148
      return
31149
    oprot.writeStructBegin('addAmazonPromotion_args')
31150
    if self.amazonPromotions is not None:
31151
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31152
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31153
      for kiter738,viter739 in self.amazonPromotions.items():
31154
        oprot.writeString(kiter738)
31155
        viter739.write(oprot)
12363 kshitij.so 31156
      oprot.writeMapEnd()
31157
      oprot.writeFieldEnd()
31158
    oprot.writeFieldStop()
31159
    oprot.writeStructEnd()
31160
 
31161
  def validate(self):
31162
    return
31163
 
31164
 
31165
  def __repr__(self):
31166
    L = ['%s=%r' % (key, value)
31167
      for key, value in self.__dict__.iteritems()]
31168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31169
 
31170
  def __eq__(self, other):
31171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31172
 
31173
  def __ne__(self, other):
31174
    return not (self == other)
31175
 
31176
class addAmazonPromotion_result:
31177
  """
31178
  Attributes:
31179
   - success
31180
  """
31181
 
31182
  thrift_spec = (
31183
    (0, TType.BOOL, 'success', None, None, ), # 0
31184
  )
31185
 
31186
  def __init__(self, success=None,):
31187
    self.success = success
31188
 
31189
  def read(self, iprot):
31190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31192
      return
31193
    iprot.readStructBegin()
31194
    while True:
31195
      (fname, ftype, fid) = iprot.readFieldBegin()
31196
      if ftype == TType.STOP:
31197
        break
31198
      if fid == 0:
31199
        if ftype == TType.BOOL:
31200
          self.success = iprot.readBool();
31201
        else:
31202
          iprot.skip(ftype)
31203
      else:
31204
        iprot.skip(ftype)
31205
      iprot.readFieldEnd()
31206
    iprot.readStructEnd()
31207
 
31208
  def write(self, oprot):
31209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31211
      return
31212
    oprot.writeStructBegin('addAmazonPromotion_result')
31213
    if self.success is not None:
31214
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31215
      oprot.writeBool(self.success)
31216
      oprot.writeFieldEnd()
31217
    oprot.writeFieldStop()
31218
    oprot.writeStructEnd()
31219
 
31220
  def validate(self):
31221
    return
31222
 
31223
 
31224
  def __repr__(self):
31225
    L = ['%s=%r' % (key, value)
31226
      for key, value in self.__dict__.iteritems()]
31227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31228
 
31229
  def __eq__(self, other):
31230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31231
 
31232
  def __ne__(self, other):
31233
    return not (self == other)
31234
 
31235
class getAmazonPromotion_args:
31236
  """
31237
  Attributes:
31238
   - startDate
31239
   - endDate
31240
  """
31241
 
31242
  thrift_spec = (
31243
    None, # 0
31244
    (1, TType.I64, 'startDate', None, None, ), # 1
31245
    (2, TType.I64, 'endDate', None, None, ), # 2
31246
  )
31247
 
31248
  def __init__(self, startDate=None, endDate=None,):
31249
    self.startDate = startDate
31250
    self.endDate = endDate
31251
 
31252
  def read(self, iprot):
31253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31255
      return
31256
    iprot.readStructBegin()
31257
    while True:
31258
      (fname, ftype, fid) = iprot.readFieldBegin()
31259
      if ftype == TType.STOP:
31260
        break
31261
      if fid == 1:
31262
        if ftype == TType.I64:
31263
          self.startDate = iprot.readI64();
31264
        else:
31265
          iprot.skip(ftype)
31266
      elif fid == 2:
31267
        if ftype == TType.I64:
31268
          self.endDate = iprot.readI64();
31269
        else:
31270
          iprot.skip(ftype)
31271
      else:
31272
        iprot.skip(ftype)
31273
      iprot.readFieldEnd()
31274
    iprot.readStructEnd()
31275
 
31276
  def write(self, oprot):
31277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31279
      return
31280
    oprot.writeStructBegin('getAmazonPromotion_args')
31281
    if self.startDate is not None:
31282
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31283
      oprot.writeI64(self.startDate)
31284
      oprot.writeFieldEnd()
31285
    if self.endDate is not None:
31286
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31287
      oprot.writeI64(self.endDate)
31288
      oprot.writeFieldEnd()
31289
    oprot.writeFieldStop()
31290
    oprot.writeStructEnd()
31291
 
31292
  def validate(self):
31293
    return
31294
 
31295
 
31296
  def __repr__(self):
31297
    L = ['%s=%r' % (key, value)
31298
      for key, value in self.__dict__.iteritems()]
31299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31300
 
31301
  def __eq__(self, other):
31302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31303
 
31304
  def __ne__(self, other):
31305
    return not (self == other)
31306
 
31307
class getAmazonPromotion_result:
31308
  """
31309
  Attributes:
31310
   - success
31311
  """
31312
 
31313
  thrift_spec = (
31314
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31315
  )
31316
 
31317
  def __init__(self, success=None,):
31318
    self.success = success
31319
 
31320
  def read(self, iprot):
31321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31323
      return
31324
    iprot.readStructBegin()
31325
    while True:
31326
      (fname, ftype, fid) = iprot.readFieldBegin()
31327
      if ftype == TType.STOP:
31328
        break
31329
      if fid == 0:
31330
        if ftype == TType.LIST:
31331
          self.success = []
12567 amit.gupta 31332
          (_etype743, _size740) = iprot.readListBegin()
31333
          for _i744 in xrange(_size740):
31334
            _elem745 = AmazonPromotion()
31335
            _elem745.read(iprot)
31336
            self.success.append(_elem745)
12363 kshitij.so 31337
          iprot.readListEnd()
31338
        else:
31339
          iprot.skip(ftype)
31340
      else:
31341
        iprot.skip(ftype)
31342
      iprot.readFieldEnd()
31343
    iprot.readStructEnd()
31344
 
31345
  def write(self, oprot):
31346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31348
      return
31349
    oprot.writeStructBegin('getAmazonPromotion_result')
31350
    if self.success is not None:
31351
      oprot.writeFieldBegin('success', TType.LIST, 0)
31352
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31353
      for iter746 in self.success:
31354
        iter746.write(oprot)
12363 kshitij.so 31355
      oprot.writeListEnd()
31356
      oprot.writeFieldEnd()
31357
    oprot.writeFieldStop()
31358
    oprot.writeStructEnd()
31359
 
31360
  def validate(self):
31361
    return
31362
 
31363
 
31364
  def __repr__(self):
31365
    L = ['%s=%r' % (key, value)
31366
      for key, value in self.__dict__.iteritems()]
31367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31368
 
31369
  def __eq__(self, other):
31370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31371
 
31372
  def __ne__(self, other):
31373
    return not (self == other)
31374
 
31375
class updateAmazonPromotion_args:
31376
  """
31377
  Attributes:
31378
   - amazonPromotions
31379
  """
31380
 
31381
  thrift_spec = (
31382
    None, # 0
31383
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31384
  )
31385
 
31386
  def __init__(self, amazonPromotions=None,):
31387
    self.amazonPromotions = amazonPromotions
31388
 
31389
  def read(self, iprot):
31390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31392
      return
31393
    iprot.readStructBegin()
31394
    while True:
31395
      (fname, ftype, fid) = iprot.readFieldBegin()
31396
      if ftype == TType.STOP:
31397
        break
31398
      if fid == 1:
31399
        if ftype == TType.LIST:
31400
          self.amazonPromotions = []
12567 amit.gupta 31401
          (_etype750, _size747) = iprot.readListBegin()
31402
          for _i751 in xrange(_size747):
31403
            _elem752 = AmazonPromotion()
31404
            _elem752.read(iprot)
31405
            self.amazonPromotions.append(_elem752)
12363 kshitij.so 31406
          iprot.readListEnd()
31407
        else:
31408
          iprot.skip(ftype)
31409
      else:
31410
        iprot.skip(ftype)
31411
      iprot.readFieldEnd()
31412
    iprot.readStructEnd()
31413
 
31414
  def write(self, oprot):
31415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31417
      return
31418
    oprot.writeStructBegin('updateAmazonPromotion_args')
31419
    if self.amazonPromotions is not None:
31420
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31421
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31422
      for iter753 in self.amazonPromotions:
31423
        iter753.write(oprot)
12363 kshitij.so 31424
      oprot.writeListEnd()
31425
      oprot.writeFieldEnd()
31426
    oprot.writeFieldStop()
31427
    oprot.writeStructEnd()
31428
 
31429
  def validate(self):
31430
    return
31431
 
31432
 
31433
  def __repr__(self):
31434
    L = ['%s=%r' % (key, value)
31435
      for key, value in self.__dict__.iteritems()]
31436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31437
 
31438
  def __eq__(self, other):
31439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31440
 
31441
  def __ne__(self, other):
31442
    return not (self == other)
31443
 
31444
class updateAmazonPromotion_result:
31445
  """
31446
  Attributes:
31447
   - success
31448
  """
31449
 
31450
  thrift_spec = (
31451
    (0, TType.BOOL, 'success', None, None, ), # 0
31452
  )
31453
 
31454
  def __init__(self, success=None,):
31455
    self.success = success
31456
 
31457
  def read(self, iprot):
31458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31460
      return
31461
    iprot.readStructBegin()
31462
    while True:
31463
      (fname, ftype, fid) = iprot.readFieldBegin()
31464
      if ftype == TType.STOP:
31465
        break
31466
      if fid == 0:
31467
        if ftype == TType.BOOL:
31468
          self.success = iprot.readBool();
31469
        else:
31470
          iprot.skip(ftype)
31471
      else:
31472
        iprot.skip(ftype)
31473
      iprot.readFieldEnd()
31474
    iprot.readStructEnd()
31475
 
31476
  def write(self, oprot):
31477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31479
      return
31480
    oprot.writeStructBegin('updateAmazonPromotion_result')
31481
    if self.success is not None:
31482
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31483
      oprot.writeBool(self.success)
31484
      oprot.writeFieldEnd()
31485
    oprot.writeFieldStop()
31486
    oprot.writeStructEnd()
31487
 
31488
  def validate(self):
31489
    return
31490
 
31491
 
31492
  def __repr__(self):
31493
    L = ['%s=%r' % (key, value)
31494
      for key, value in self.__dict__.iteritems()]
31495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31496
 
31497
  def __eq__(self, other):
31498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31499
 
31500
  def __ne__(self, other):
31501
    return not (self == other)
12567 amit.gupta 31502
 
31503
class markPartiallyActive_args:
31504
  """
31505
  Attributes:
31506
   - itemId
31507
   - categoryId
31508
  """
31509
 
31510
  thrift_spec = (
31511
    None, # 0
31512
    (1, TType.I64, 'itemId', None, None, ), # 1
31513
    (2, TType.I64, 'categoryId', None, None, ), # 2
31514
  )
31515
 
31516
  def __init__(self, itemId=None, categoryId=None,):
31517
    self.itemId = itemId
31518
    self.categoryId = categoryId
31519
 
31520
  def read(self, iprot):
31521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31523
      return
31524
    iprot.readStructBegin()
31525
    while True:
31526
      (fname, ftype, fid) = iprot.readFieldBegin()
31527
      if ftype == TType.STOP:
31528
        break
31529
      if fid == 1:
31530
        if ftype == TType.I64:
31531
          self.itemId = iprot.readI64();
31532
        else:
31533
          iprot.skip(ftype)
31534
      elif fid == 2:
31535
        if ftype == TType.I64:
31536
          self.categoryId = iprot.readI64();
31537
        else:
31538
          iprot.skip(ftype)
31539
      else:
31540
        iprot.skip(ftype)
31541
      iprot.readFieldEnd()
31542
    iprot.readStructEnd()
31543
 
31544
  def write(self, oprot):
31545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31547
      return
31548
    oprot.writeStructBegin('markPartiallyActive_args')
31549
    if self.itemId is not None:
31550
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31551
      oprot.writeI64(self.itemId)
31552
      oprot.writeFieldEnd()
31553
    if self.categoryId is not None:
31554
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
31555
      oprot.writeI64(self.categoryId)
31556
      oprot.writeFieldEnd()
31557
    oprot.writeFieldStop()
31558
    oprot.writeStructEnd()
31559
 
31560
  def validate(self):
31561
    return
31562
 
31563
 
31564
  def __repr__(self):
31565
    L = ['%s=%r' % (key, value)
31566
      for key, value in self.__dict__.iteritems()]
31567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31568
 
31569
  def __eq__(self, other):
31570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31571
 
31572
  def __ne__(self, other):
31573
    return not (self == other)
31574
 
31575
class markPartiallyActive_result:
31576
  """
31577
  Attributes:
31578
   - success
31579
  """
31580
 
31581
  thrift_spec = (
31582
    (0, TType.BOOL, 'success', None, None, ), # 0
31583
  )
31584
 
31585
  def __init__(self, success=None,):
31586
    self.success = success
31587
 
31588
  def read(self, iprot):
31589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31591
      return
31592
    iprot.readStructBegin()
31593
    while True:
31594
      (fname, ftype, fid) = iprot.readFieldBegin()
31595
      if ftype == TType.STOP:
31596
        break
31597
      if fid == 0:
31598
        if ftype == TType.BOOL:
31599
          self.success = iprot.readBool();
31600
        else:
31601
          iprot.skip(ftype)
31602
      else:
31603
        iprot.skip(ftype)
31604
      iprot.readFieldEnd()
31605
    iprot.readStructEnd()
31606
 
31607
  def write(self, oprot):
31608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31610
      return
31611
    oprot.writeStructBegin('markPartiallyActive_result')
31612
    if self.success is not None:
31613
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31614
      oprot.writeBool(self.success)
31615
      oprot.writeFieldEnd()
31616
    oprot.writeFieldStop()
31617
    oprot.writeStructEnd()
31618
 
31619
  def validate(self):
31620
    return
31621
 
31622
 
31623
  def __repr__(self):
31624
    L = ['%s=%r' % (key, value)
31625
      for key, value in self.__dict__.iteritems()]
31626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31627
 
31628
  def __eq__(self, other):
31629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31630
 
31631
  def __ne__(self, other):
31632
    return not (self == other)
31633
 
31634
class updateItemStateVat_args:
31635
  """
31636
  Attributes:
31637
   - itemId
31638
   - statevat
31639
  """
31640
 
31641
  thrift_spec = (
31642
    None, # 0
31643
    (1, TType.I64, 'itemId', None, None, ), # 1
31644
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
31645
  )
31646
 
31647
  def __init__(self, itemId=None, statevat=None,):
31648
    self.itemId = itemId
31649
    self.statevat = statevat
31650
 
31651
  def read(self, iprot):
31652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31654
      return
31655
    iprot.readStructBegin()
31656
    while True:
31657
      (fname, ftype, fid) = iprot.readFieldBegin()
31658
      if ftype == TType.STOP:
31659
        break
31660
      if fid == 1:
31661
        if ftype == TType.I64:
31662
          self.itemId = iprot.readI64();
31663
        else:
31664
          iprot.skip(ftype)
31665
      elif fid == 2:
31666
        if ftype == TType.MAP:
31667
          self.statevat = {}
31668
          (_ktype755, _vtype756, _size754 ) = iprot.readMapBegin() 
31669
          for _i758 in xrange(_size754):
31670
            _key759 = iprot.readI64();
31671
            _val760 = iprot.readDouble();
31672
            self.statevat[_key759] = _val760
31673
          iprot.readMapEnd()
31674
        else:
31675
          iprot.skip(ftype)
31676
      else:
31677
        iprot.skip(ftype)
31678
      iprot.readFieldEnd()
31679
    iprot.readStructEnd()
31680
 
31681
  def write(self, oprot):
31682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31684
      return
31685
    oprot.writeStructBegin('updateItemStateVat_args')
31686
    if self.itemId is not None:
31687
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31688
      oprot.writeI64(self.itemId)
31689
      oprot.writeFieldEnd()
31690
    if self.statevat is not None:
31691
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
31692
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
31693
      for kiter761,viter762 in self.statevat.items():
31694
        oprot.writeI64(kiter761)
31695
        oprot.writeDouble(viter762)
31696
      oprot.writeMapEnd()
31697
      oprot.writeFieldEnd()
31698
    oprot.writeFieldStop()
31699
    oprot.writeStructEnd()
31700
 
31701
  def validate(self):
31702
    return
31703
 
31704
 
31705
  def __repr__(self):
31706
    L = ['%s=%r' % (key, value)
31707
      for key, value in self.__dict__.iteritems()]
31708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31709
 
31710
  def __eq__(self, other):
31711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31712
 
31713
  def __ne__(self, other):
31714
    return not (self == other)
31715
 
31716
class updateItemStateVat_result:
31717
  """
31718
  Attributes:
31719
   - success
31720
  """
31721
 
31722
  thrift_spec = (
31723
    (0, TType.BOOL, 'success', None, None, ), # 0
31724
  )
31725
 
31726
  def __init__(self, success=None,):
31727
    self.success = success
31728
 
31729
  def read(self, iprot):
31730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31732
      return
31733
    iprot.readStructBegin()
31734
    while True:
31735
      (fname, ftype, fid) = iprot.readFieldBegin()
31736
      if ftype == TType.STOP:
31737
        break
31738
      if fid == 0:
31739
        if ftype == TType.BOOL:
31740
          self.success = iprot.readBool();
31741
        else:
31742
          iprot.skip(ftype)
31743
      else:
31744
        iprot.skip(ftype)
31745
      iprot.readFieldEnd()
31746
    iprot.readStructEnd()
31747
 
31748
  def write(self, oprot):
31749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31751
      return
31752
    oprot.writeStructBegin('updateItemStateVat_result')
31753
    if self.success is not None:
31754
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31755
      oprot.writeBool(self.success)
31756
      oprot.writeFieldEnd()
31757
    oprot.writeFieldStop()
31758
    oprot.writeStructEnd()
31759
 
31760
  def validate(self):
31761
    return
31762
 
31763
 
31764
  def __repr__(self):
31765
    L = ['%s=%r' % (key, value)
31766
      for key, value in self.__dict__.iteritems()]
31767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31768
 
31769
  def __eq__(self, other):
31770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31771
 
31772
  def __ne__(self, other):
31773
    return not (self == other)
12620 amit.gupta 31774
 
31775
class getExAffiliateItemInfo_args:
31776
 
31777
  thrift_spec = (
31778
  )
31779
 
31780
  def read(self, iprot):
31781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31783
      return
31784
    iprot.readStructBegin()
31785
    while True:
31786
      (fname, ftype, fid) = iprot.readFieldBegin()
31787
      if ftype == TType.STOP:
31788
        break
31789
      else:
31790
        iprot.skip(ftype)
31791
      iprot.readFieldEnd()
31792
    iprot.readStructEnd()
31793
 
31794
  def write(self, oprot):
31795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31797
      return
31798
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
31799
    oprot.writeFieldStop()
31800
    oprot.writeStructEnd()
31801
 
31802
  def validate(self):
31803
    return
31804
 
31805
 
31806
  def __repr__(self):
31807
    L = ['%s=%r' % (key, value)
31808
      for key, value in self.__dict__.iteritems()]
31809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31810
 
31811
  def __eq__(self, other):
31812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31813
 
31814
  def __ne__(self, other):
31815
    return not (self == other)
31816
 
31817
class getExAffiliateItemInfo_result:
31818
  """
31819
  Attributes:
31820
   - success
31821
  """
31822
 
31823
  thrift_spec = (
31824
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
31825
  )
31826
 
31827
  def __init__(self, success=None,):
31828
    self.success = success
31829
 
31830
  def read(self, iprot):
31831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31833
      return
31834
    iprot.readStructBegin()
31835
    while True:
31836
      (fname, ftype, fid) = iprot.readFieldBegin()
31837
      if ftype == TType.STOP:
31838
        break
31839
      if fid == 0:
31840
        if ftype == TType.MAP:
31841
          self.success = {}
31842
          (_ktype764, _vtype765, _size763 ) = iprot.readMapBegin() 
31843
          for _i767 in xrange(_size763):
31844
            _key768 = iprot.readI64();
31845
            _val769 = ExclusiveAffiliateItemInfo()
31846
            _val769.read(iprot)
31847
            self.success[_key768] = _val769
31848
          iprot.readMapEnd()
31849
        else:
31850
          iprot.skip(ftype)
31851
      else:
31852
        iprot.skip(ftype)
31853
      iprot.readFieldEnd()
31854
    iprot.readStructEnd()
31855
 
31856
  def write(self, oprot):
31857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31859
      return
31860
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
31861
    if self.success is not None:
31862
      oprot.writeFieldBegin('success', TType.MAP, 0)
31863
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
31864
      for kiter770,viter771 in self.success.items():
31865
        oprot.writeI64(kiter770)
31866
        viter771.write(oprot)
31867
      oprot.writeMapEnd()
31868
      oprot.writeFieldEnd()
31869
    oprot.writeFieldStop()
31870
    oprot.writeStructEnd()
31871
 
31872
  def validate(self):
31873
    return
31874
 
31875
 
31876
  def __repr__(self):
31877
    L = ['%s=%r' % (key, value)
31878
      for key, value in self.__dict__.iteritems()]
31879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31880
 
31881
  def __eq__(self, other):
31882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31883
 
31884
  def __ne__(self, other):
31885
    return not (self == other)
12888 kshitij.so 31886
 
31887
class getAllItemstoListOnFbg_args:
31888
 
31889
  thrift_spec = (
31890
  )
31891
 
31892
  def read(self, iprot):
31893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31895
      return
31896
    iprot.readStructBegin()
31897
    while True:
31898
      (fname, ftype, fid) = iprot.readFieldBegin()
31899
      if ftype == TType.STOP:
31900
        break
31901
      else:
31902
        iprot.skip(ftype)
31903
      iprot.readFieldEnd()
31904
    iprot.readStructEnd()
31905
 
31906
  def write(self, oprot):
31907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31909
      return
31910
    oprot.writeStructBegin('getAllItemstoListOnFbg_args')
31911
    oprot.writeFieldStop()
31912
    oprot.writeStructEnd()
31913
 
31914
  def validate(self):
31915
    return
31916
 
31917
 
31918
  def __repr__(self):
31919
    L = ['%s=%r' % (key, value)
31920
      for key, value in self.__dict__.iteritems()]
31921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31922
 
31923
  def __eq__(self, other):
31924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31925
 
31926
  def __ne__(self, other):
31927
    return not (self == other)
31928
 
31929
class getAllItemstoListOnFbg_result:
31930
  """
31931
  Attributes:
31932
   - success
31933
  """
31934
 
31935
  thrift_spec = (
31936
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
31937
  )
31938
 
31939
  def __init__(self, success=None,):
31940
    self.success = success
31941
 
31942
  def read(self, iprot):
31943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31945
      return
31946
    iprot.readStructBegin()
31947
    while True:
31948
      (fname, ftype, fid) = iprot.readFieldBegin()
31949
      if ftype == TType.STOP:
31950
        break
31951
      if fid == 0:
31952
        if ftype == TType.LIST:
31953
          self.success = []
31954
          (_etype775, _size772) = iprot.readListBegin()
31955
          for _i776 in xrange(_size772):
31956
            _elem777 = Amazonlisted()
31957
            _elem777.read(iprot)
31958
            self.success.append(_elem777)
31959
          iprot.readListEnd()
31960
        else:
31961
          iprot.skip(ftype)
31962
      else:
31963
        iprot.skip(ftype)
31964
      iprot.readFieldEnd()
31965
    iprot.readStructEnd()
31966
 
31967
  def write(self, oprot):
31968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31970
      return
31971
    oprot.writeStructBegin('getAllItemstoListOnFbg_result')
31972
    if self.success is not None:
31973
      oprot.writeFieldBegin('success', TType.LIST, 0)
31974
      oprot.writeListBegin(TType.STRUCT, len(self.success))
31975
      for iter778 in self.success:
31976
        iter778.write(oprot)
31977
      oprot.writeListEnd()
31978
      oprot.writeFieldEnd()
31979
    oprot.writeFieldStop()
31980
    oprot.writeStructEnd()
31981
 
31982
  def validate(self):
31983
    return
31984
 
31985
 
31986
  def __repr__(self):
31987
    L = ['%s=%r' % (key, value)
31988
      for key, value in self.__dict__.iteritems()]
31989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31990
 
31991
  def __eq__(self, other):
31992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31993
 
31994
  def __ne__(self, other):
31995
    return not (self == other)