Subversion Repositories SmartDukaan

Rev

Rev 12567 | Rev 12888 | 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
 
12620 amit.gupta 1276
 
5944 mandeep.dh 1277
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1278
  def __init__(self, iprot, oprot=None):
1279
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1280
 
1281
  def addItem(self, item):
1282
    """
1283
    Availability and inventory attributes
1284
 
1285
    Parameters:
1286
     - item
1287
    """
1288
    self.send_addItem(item)
1289
    return self.recv_addItem()
1290
 
1291
  def send_addItem(self, item):
1292
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1293
    args = addItem_args()
1294
    args.item = item
1295
    args.write(self._oprot)
1296
    self._oprot.writeMessageEnd()
1297
    self._oprot.trans.flush()
1298
 
1299
  def recv_addItem(self, ):
1300
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1301
    if mtype == TMessageType.EXCEPTION:
1302
      x = TApplicationException()
1303
      x.read(self._iprot)
1304
      self._iprot.readMessageEnd()
1305
      raise x
1306
    result = addItem_result()
1307
    result.read(self._iprot)
1308
    self._iprot.readMessageEnd()
1309
    if result.success is not None:
1310
      return result.success
1311
    if result.cex is not None:
1312
      raise result.cex
1313
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1314
 
1315
  def updateItem(self, item):
1316
    """
1317
    Parameters:
1318
     - item
1319
    """
1320
    self.send_updateItem(item)
1321
    return self.recv_updateItem()
1322
 
1323
  def send_updateItem(self, item):
1324
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1325
    args = updateItem_args()
1326
    args.item = item
1327
    args.write(self._oprot)
1328
    self._oprot.writeMessageEnd()
1329
    self._oprot.trans.flush()
1330
 
1331
  def recv_updateItem(self, ):
1332
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1333
    if mtype == TMessageType.EXCEPTION:
1334
      x = TApplicationException()
1335
      x.read(self._iprot)
1336
      self._iprot.readMessageEnd()
1337
      raise x
1338
    result = updateItem_result()
1339
    result.read(self._iprot)
1340
    self._iprot.readMessageEnd()
1341
    if result.success is not None:
1342
      return result.success
1343
    if result.cex is not None:
1344
      raise result.cex
1345
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1346
 
1347
  def isActive(self, itemId):
1348
    """
1349
    Checks if the item given to the corresponding itemId is active. If it's active,
1350
    whether it's risky and if it's risky, its inventory position.
1351
 
1352
    Parameters:
1353
     - itemId
1354
    """
1355
    self.send_isActive(itemId)
1356
    return self.recv_isActive()
1357
 
1358
  def send_isActive(self, itemId):
1359
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1360
    args = isActive_args()
1361
    args.itemId = itemId
1362
    args.write(self._oprot)
1363
    self._oprot.writeMessageEnd()
1364
    self._oprot.trans.flush()
1365
 
1366
  def recv_isActive(self, ):
1367
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1368
    if mtype == TMessageType.EXCEPTION:
1369
      x = TApplicationException()
1370
      x.read(self._iprot)
1371
      self._iprot.readMessageEnd()
1372
      raise x
1373
    result = isActive_result()
1374
    result.read(self._iprot)
1375
    self._iprot.readMessageEnd()
1376
    if result.success is not None:
1377
      return result.success
1378
    if result.isex is not None:
1379
      raise result.isex
1380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1381
 
7438 amit.gupta 1382
  def getItemsStatus(self, itemIds):
1383
    """
1384
    Parameters:
1385
     - itemIds
1386
    """
1387
    self.send_getItemsStatus(itemIds)
1388
    return self.recv_getItemsStatus()
1389
 
1390
  def send_getItemsStatus(self, itemIds):
1391
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1392
    args = getItemsStatus_args()
1393
    args.itemIds = itemIds
1394
    args.write(self._oprot)
1395
    self._oprot.writeMessageEnd()
1396
    self._oprot.trans.flush()
1397
 
1398
  def recv_getItemsStatus(self, ):
1399
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1400
    if mtype == TMessageType.EXCEPTION:
1401
      x = TApplicationException()
1402
      x.read(self._iprot)
1403
      self._iprot.readMessageEnd()
1404
      raise x
1405
    result = getItemsStatus_result()
1406
    result.read(self._iprot)
1407
    self._iprot.readMessageEnd()
1408
    if result.success is not None:
1409
      return result.success
1410
    if result.isex is not None:
1411
      raise result.isex
1412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1413
 
5944 mandeep.dh 1414
  def getItemStatusDescription(self, itemId):
1415
    """
1416
    Parameters:
1417
     - itemId
1418
    """
1419
    self.send_getItemStatusDescription(itemId)
1420
    return self.recv_getItemStatusDescription()
1421
 
1422
  def send_getItemStatusDescription(self, itemId):
1423
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1424
    args = getItemStatusDescription_args()
1425
    args.itemId = itemId
1426
    args.write(self._oprot)
1427
    self._oprot.writeMessageEnd()
1428
    self._oprot.trans.flush()
1429
 
1430
  def recv_getItemStatusDescription(self, ):
1431
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1432
    if mtype == TMessageType.EXCEPTION:
1433
      x = TApplicationException()
1434
      x.read(self._iprot)
1435
      self._iprot.readMessageEnd()
1436
      raise x
1437
    result = getItemStatusDescription_result()
1438
    result.read(self._iprot)
1439
    self._iprot.readMessageEnd()
1440
    if result.success is not None:
1441
      return result.success
1442
    if result.isex is not None:
1443
      raise result.isex
1444
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1445
 
1446
  def startItemOn(self, item_id, timestamp):
1447
    """
1448
    Parameters:
1449
     - item_id
1450
     - timestamp
1451
    """
1452
    self.send_startItemOn(item_id, timestamp)
1453
    self.recv_startItemOn()
1454
 
1455
  def send_startItemOn(self, item_id, timestamp):
1456
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1457
    args = startItemOn_args()
1458
    args.item_id = item_id
1459
    args.timestamp = timestamp
1460
    args.write(self._oprot)
1461
    self._oprot.writeMessageEnd()
1462
    self._oprot.trans.flush()
1463
 
1464
  def recv_startItemOn(self, ):
1465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1466
    if mtype == TMessageType.EXCEPTION:
1467
      x = TApplicationException()
1468
      x.read(self._iprot)
1469
      self._iprot.readMessageEnd()
1470
      raise x
1471
    result = startItemOn_result()
1472
    result.read(self._iprot)
1473
    self._iprot.readMessageEnd()
1474
    if result.cex is not None:
1475
      raise result.cex
1476
    return
1477
 
1478
  def retireItemOn(self, item_id, timestamp):
1479
    """
1480
    Parameters:
1481
     - item_id
1482
     - timestamp
1483
    """
1484
    self.send_retireItemOn(item_id, timestamp)
1485
    self.recv_retireItemOn()
1486
 
1487
  def send_retireItemOn(self, item_id, timestamp):
1488
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1489
    args = retireItemOn_args()
1490
    args.item_id = item_id
1491
    args.timestamp = timestamp
1492
    args.write(self._oprot)
1493
    self._oprot.writeMessageEnd()
1494
    self._oprot.trans.flush()
1495
 
1496
  def recv_retireItemOn(self, ):
1497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1498
    if mtype == TMessageType.EXCEPTION:
1499
      x = TApplicationException()
1500
      x.read(self._iprot)
1501
      self._iprot.readMessageEnd()
1502
      raise x
1503
    result = retireItemOn_result()
1504
    result.read(self._iprot)
1505
    self._iprot.readMessageEnd()
1506
    if result.cex is not None:
1507
      raise result.cex
1508
    return
1509
 
1510
  def changeItemStatus(self, item_id, timestamp, newstatus):
1511
    """
1512
    Parameters:
1513
     - item_id
1514
     - timestamp
1515
     - newstatus
1516
    """
1517
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1518
    self.recv_changeItemStatus()
1519
 
1520
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1521
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1522
    args = changeItemStatus_args()
1523
    args.item_id = item_id
1524
    args.timestamp = timestamp
1525
    args.newstatus = newstatus
1526
    args.write(self._oprot)
1527
    self._oprot.writeMessageEnd()
1528
    self._oprot.trans.flush()
1529
 
1530
  def recv_changeItemStatus(self, ):
1531
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1532
    if mtype == TMessageType.EXCEPTION:
1533
      x = TApplicationException()
1534
      x.read(self._iprot)
1535
      self._iprot.readMessageEnd()
1536
      raise x
1537
    result = changeItemStatus_result()
1538
    result.read(self._iprot)
1539
    self._iprot.readMessageEnd()
1540
    if result.cex is not None:
1541
      raise result.cex
1542
    return
1543
 
1544
  def getItem(self, item_id):
1545
    """
1546
    Parameters:
1547
     - item_id
1548
    """
1549
    self.send_getItem(item_id)
1550
    return self.recv_getItem()
1551
 
1552
  def send_getItem(self, item_id):
1553
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1554
    args = getItem_args()
1555
    args.item_id = item_id
1556
    args.write(self._oprot)
1557
    self._oprot.writeMessageEnd()
1558
    self._oprot.trans.flush()
1559
 
1560
  def recv_getItem(self, ):
1561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1562
    if mtype == TMessageType.EXCEPTION:
1563
      x = TApplicationException()
1564
      x.read(self._iprot)
1565
      self._iprot.readMessageEnd()
1566
      raise x
1567
    result = getItem_result()
1568
    result.read(self._iprot)
1569
    self._iprot.readMessageEnd()
1570
    if result.success is not None:
1571
      return result.success
1572
    if result.cex is not None:
1573
      raise result.cex
1574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1575
 
1576
  def getItemsByCatalogId(self, catalog_item_id):
1577
    """
1578
    Parameters:
1579
     - catalog_item_id
1580
    """
1581
    self.send_getItemsByCatalogId(catalog_item_id)
1582
    return self.recv_getItemsByCatalogId()
1583
 
1584
  def send_getItemsByCatalogId(self, catalog_item_id):
1585
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1586
    args = getItemsByCatalogId_args()
1587
    args.catalog_item_id = catalog_item_id
1588
    args.write(self._oprot)
1589
    self._oprot.writeMessageEnd()
1590
    self._oprot.trans.flush()
1591
 
1592
  def recv_getItemsByCatalogId(self, ):
1593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1594
    if mtype == TMessageType.EXCEPTION:
1595
      x = TApplicationException()
1596
      x.read(self._iprot)
1597
      self._iprot.readMessageEnd()
1598
      raise x
1599
    result = getItemsByCatalogId_result()
1600
    result.read(self._iprot)
1601
    self._iprot.readMessageEnd()
1602
    if result.success is not None:
1603
      return result.success
1604
    if result.cex is not None:
1605
      raise result.cex
1606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1607
 
1608
  def getValidItemsByCatalogId(self, catalog_item_id):
1609
    """
1610
    Parameters:
1611
     - catalog_item_id
1612
    """
1613
    self.send_getValidItemsByCatalogId(catalog_item_id)
1614
    return self.recv_getValidItemsByCatalogId()
1615
 
1616
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1617
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1618
    args = getValidItemsByCatalogId_args()
1619
    args.catalog_item_id = catalog_item_id
1620
    args.write(self._oprot)
1621
    self._oprot.writeMessageEnd()
1622
    self._oprot.trans.flush()
1623
 
1624
  def recv_getValidItemsByCatalogId(self, ):
1625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1626
    if mtype == TMessageType.EXCEPTION:
1627
      x = TApplicationException()
1628
      x.read(self._iprot)
1629
      self._iprot.readMessageEnd()
1630
      raise x
1631
    result = getValidItemsByCatalogId_result()
1632
    result.read(self._iprot)
1633
    self._iprot.readMessageEnd()
1634
    if result.success is not None:
1635
      return result.success
1636
    if result.cex is not None:
1637
      raise result.cex
1638
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1639
 
1640
  def getAllItems(self, isActive):
1641
    """
1642
    Parameters:
1643
     - isActive
1644
    """
1645
    self.send_getAllItems(isActive)
1646
    return self.recv_getAllItems()
1647
 
1648
  def send_getAllItems(self, isActive):
1649
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1650
    args = getAllItems_args()
1651
    args.isActive = isActive
1652
    args.write(self._oprot)
1653
    self._oprot.writeMessageEnd()
1654
    self._oprot.trans.flush()
1655
 
1656
  def recv_getAllItems(self, ):
1657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1658
    if mtype == TMessageType.EXCEPTION:
1659
      x = TApplicationException()
1660
      x.read(self._iprot)
1661
      self._iprot.readMessageEnd()
1662
      raise x
1663
    result = getAllItems_result()
1664
    result.read(self._iprot)
1665
    self._iprot.readMessageEnd()
1666
    if result.success is not None:
1667
      return result.success
1668
    if result.cex is not None:
1669
      raise result.cex
1670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1671
 
1672
  def getAllItemsByStatus(self, itemStatus):
1673
    """
1674
    Parameters:
1675
     - itemStatus
1676
    """
1677
    self.send_getAllItemsByStatus(itemStatus)
1678
    return self.recv_getAllItemsByStatus()
1679
 
1680
  def send_getAllItemsByStatus(self, itemStatus):
1681
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1682
    args = getAllItemsByStatus_args()
1683
    args.itemStatus = itemStatus
1684
    args.write(self._oprot)
1685
    self._oprot.writeMessageEnd()
1686
    self._oprot.trans.flush()
1687
 
1688
  def recv_getAllItemsByStatus(self, ):
1689
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1690
    if mtype == TMessageType.EXCEPTION:
1691
      x = TApplicationException()
1692
      x.read(self._iprot)
1693
      self._iprot.readMessageEnd()
1694
      raise x
1695
    result = getAllItemsByStatus_result()
1696
    result.read(self._iprot)
1697
    self._iprot.readMessageEnd()
1698
    if result.success is not None:
1699
      return result.success
1700
    if result.cex is not None:
1701
      raise result.cex
1702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1703
 
9253 rajveer 1704
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1705
    """
1706
    Parameters:
1707
     - entityId
1708
     - category
1709
     - brand
1710
     - modelName
1711
     - modelNumber
9253 rajveer 1712
     - isAndroid
5944 mandeep.dh 1713
    """
9253 rajveer 1714
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1715
    return self.recv_markItemAsContentComplete()
1716
 
9253 rajveer 1717
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1718
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1719
    args = markItemAsContentComplete_args()
1720
    args.entityId = entityId
1721
    args.category = category
1722
    args.brand = brand
1723
    args.modelName = modelName
1724
    args.modelNumber = modelNumber
9253 rajveer 1725
    args.isAndroid = isAndroid
5944 mandeep.dh 1726
    args.write(self._oprot)
1727
    self._oprot.writeMessageEnd()
1728
    self._oprot.trans.flush()
1729
 
1730
  def recv_markItemAsContentComplete(self, ):
1731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1732
    if mtype == TMessageType.EXCEPTION:
1733
      x = TApplicationException()
1734
      x.read(self._iprot)
1735
      self._iprot.readMessageEnd()
1736
      raise x
1737
    result = markItemAsContentComplete_result()
1738
    result.read(self._iprot)
1739
    self._iprot.readMessageEnd()
1740
    if result.success is not None:
1741
      return result.success
1742
    if result.cex is not None:
1743
      raise result.cex
1744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1745
 
12567 amit.gupta 1746
  def getVatRates(self, itemId, categoryId):
1747
    """
1748
    Parameters:
1749
     - itemId
1750
     - categoryId
1751
    """
1752
    self.send_getVatRates(itemId, categoryId)
1753
    return self.recv_getVatRates()
1754
 
1755
  def send_getVatRates(self, itemId, categoryId):
1756
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1757
    args = getVatRates_args()
1758
    args.itemId = itemId
1759
    args.categoryId = categoryId
1760
    args.write(self._oprot)
1761
    self._oprot.writeMessageEnd()
1762
    self._oprot.trans.flush()
1763
 
1764
  def recv_getVatRates(self, ):
1765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1766
    if mtype == TMessageType.EXCEPTION:
1767
      x = TApplicationException()
1768
      x.read(self._iprot)
1769
      self._iprot.readMessageEnd()
1770
      raise x
1771
    result = getVatRates_result()
1772
    result.read(self._iprot)
1773
    self._iprot.readMessageEnd()
1774
    if result.success is not None:
1775
      return result.success
1776
    if result.cex is not None:
1777
      raise result.cex
1778
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1779
 
5944 mandeep.dh 1780
  def getAllItemsInRange(self, offset, limit):
1781
    """
1782
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1783
 
1784
    Parameters:
1785
     - offset
1786
     - limit
1787
    """
1788
    self.send_getAllItemsInRange(offset, limit)
1789
    return self.recv_getAllItemsInRange()
1790
 
1791
  def send_getAllItemsInRange(self, offset, limit):
1792
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1793
    args = getAllItemsInRange_args()
1794
    args.offset = offset
1795
    args.limit = limit
1796
    args.write(self._oprot)
1797
    self._oprot.writeMessageEnd()
1798
    self._oprot.trans.flush()
1799
 
1800
  def recv_getAllItemsInRange(self, ):
1801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1802
    if mtype == TMessageType.EXCEPTION:
1803
      x = TApplicationException()
1804
      x.read(self._iprot)
1805
      self._iprot.readMessageEnd()
1806
      raise x
1807
    result = getAllItemsInRange_result()
1808
    result.read(self._iprot)
1809
    self._iprot.readMessageEnd()
1810
    if result.success is not None:
1811
      return result.success
1812
    if result.cex is not None:
1813
      raise result.cex
1814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1815
 
1816
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1817
    """
1818
    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.
1819
 
1820
    Parameters:
1821
     - itemStatus
1822
     - offset
1823
     - limit
1824
    """
1825
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1826
    return self.recv_getAllItemsByStatusInRange()
1827
 
1828
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1829
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1830
    args = getAllItemsByStatusInRange_args()
1831
    args.itemStatus = itemStatus
1832
    args.offset = offset
1833
    args.limit = limit
1834
    args.write(self._oprot)
1835
    self._oprot.writeMessageEnd()
1836
    self._oprot.trans.flush()
1837
 
1838
  def recv_getAllItemsByStatusInRange(self, ):
1839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1840
    if mtype == TMessageType.EXCEPTION:
1841
      x = TApplicationException()
1842
      x.read(self._iprot)
1843
      self._iprot.readMessageEnd()
1844
      raise x
1845
    result = getAllItemsByStatusInRange_result()
1846
    result.read(self._iprot)
1847
    self._iprot.readMessageEnd()
1848
    if result.success is not None:
1849
      return result.success
1850
    if result.cex is not None:
1851
      raise result.cex
1852
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1853
 
1854
  def getItemCountByStatus(self, useStatus, itemStatus):
1855
    """
1856
    Gets a count of all items by status
1857
 
1858
    Parameters:
1859
     - useStatus
1860
     - itemStatus
1861
    """
1862
    self.send_getItemCountByStatus(useStatus, itemStatus)
1863
    return self.recv_getItemCountByStatus()
1864
 
1865
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1866
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1867
    args = getItemCountByStatus_args()
1868
    args.useStatus = useStatus
1869
    args.itemStatus = itemStatus
1870
    args.write(self._oprot)
1871
    self._oprot.writeMessageEnd()
1872
    self._oprot.trans.flush()
1873
 
1874
  def recv_getItemCountByStatus(self, ):
1875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1876
    if mtype == TMessageType.EXCEPTION:
1877
      x = TApplicationException()
1878
      x.read(self._iprot)
1879
      self._iprot.readMessageEnd()
1880
      raise x
1881
    result = getItemCountByStatus_result()
1882
    result.read(self._iprot)
1883
    self._iprot.readMessageEnd()
1884
    if result.success is not None:
1885
      return result.success
1886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1887
 
1888
  def getBestSellers(self, ):
1889
    self.send_getBestSellers()
1890
    return self.recv_getBestSellers()
1891
 
1892
  def send_getBestSellers(self, ):
1893
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1894
    args = getBestSellers_args()
1895
    args.write(self._oprot)
1896
    self._oprot.writeMessageEnd()
1897
    self._oprot.trans.flush()
1898
 
1899
  def recv_getBestSellers(self, ):
1900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1901
    if mtype == TMessageType.EXCEPTION:
1902
      x = TApplicationException()
1903
      x.read(self._iprot)
1904
      self._iprot.readMessageEnd()
1905
      raise x
1906
    result = getBestSellers_result()
1907
    result.read(self._iprot)
1908
    self._iprot.readMessageEnd()
1909
    if result.success is not None:
1910
      return result.success
1911
    if result.isex is not None:
1912
      raise result.isex
1913
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1914
 
1915
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1916
    """
1917
    Parameters:
1918
     - beginIndex
1919
     - totalItems
1920
     - brand
1921
     - category
1922
    """
1923
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1924
    return self.recv_getBestSellersCatalogIds()
1925
 
1926
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1927
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1928
    args = getBestSellersCatalogIds_args()
1929
    args.beginIndex = beginIndex
1930
    args.totalItems = totalItems
1931
    args.brand = brand
1932
    args.category = category
1933
    args.write(self._oprot)
1934
    self._oprot.writeMessageEnd()
1935
    self._oprot.trans.flush()
1936
 
1937
  def recv_getBestSellersCatalogIds(self, ):
1938
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1939
    if mtype == TMessageType.EXCEPTION:
1940
      x = TApplicationException()
1941
      x.read(self._iprot)
1942
      self._iprot.readMessageEnd()
1943
      raise x
1944
    result = getBestSellersCatalogIds_result()
1945
    result.read(self._iprot)
1946
    self._iprot.readMessageEnd()
1947
    if result.success is not None:
1948
      return result.success
1949
    if result.cex is not None:
1950
      raise result.cex
1951
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1952
 
1953
  def getBestSellersCount(self, ):
1954
    self.send_getBestSellersCount()
1955
    return self.recv_getBestSellersCount()
1956
 
1957
  def send_getBestSellersCount(self, ):
1958
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1959
    args = getBestSellersCount_args()
1960
    args.write(self._oprot)
1961
    self._oprot.writeMessageEnd()
1962
    self._oprot.trans.flush()
1963
 
1964
  def recv_getBestSellersCount(self, ):
1965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1966
    if mtype == TMessageType.EXCEPTION:
1967
      x = TApplicationException()
1968
      x.read(self._iprot)
1969
      self._iprot.readMessageEnd()
1970
      raise x
1971
    result = getBestSellersCount_result()
1972
    result.read(self._iprot)
1973
    self._iprot.readMessageEnd()
1974
    if result.success is not None:
1975
      return result.success
1976
    if result.cex is not None:
1977
      raise result.cex
1978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1979
 
1980
  def getBestDeals(self, ):
1981
    self.send_getBestDeals()
1982
    return self.recv_getBestDeals()
1983
 
1984
  def send_getBestDeals(self, ):
1985
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1986
    args = getBestDeals_args()
1987
    args.write(self._oprot)
1988
    self._oprot.writeMessageEnd()
1989
    self._oprot.trans.flush()
1990
 
1991
  def recv_getBestDeals(self, ):
1992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1993
    if mtype == TMessageType.EXCEPTION:
1994
      x = TApplicationException()
1995
      x.read(self._iprot)
1996
      self._iprot.readMessageEnd()
1997
      raise x
1998
    result = getBestDeals_result()
1999
    result.read(self._iprot)
2000
    self._iprot.readMessageEnd()
2001
    if result.success is not None:
2002
      return result.success
2003
    if result.isex is not None:
2004
      raise result.isex
2005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2006
 
2007
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2008
    """
2009
    Parameters:
2010
     - beginIndex
2011
     - totalItems
2012
     - brand
2013
     - category
2014
    """
2015
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2016
    return self.recv_getBestDealsCatalogIds()
2017
 
2018
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2019
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2020
    args = getBestDealsCatalogIds_args()
2021
    args.beginIndex = beginIndex
2022
    args.totalItems = totalItems
2023
    args.brand = brand
2024
    args.category = category
2025
    args.write(self._oprot)
2026
    self._oprot.writeMessageEnd()
2027
    self._oprot.trans.flush()
2028
 
2029
  def recv_getBestDealsCatalogIds(self, ):
2030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2031
    if mtype == TMessageType.EXCEPTION:
2032
      x = TApplicationException()
2033
      x.read(self._iprot)
2034
      self._iprot.readMessageEnd()
2035
      raise x
2036
    result = getBestDealsCatalogIds_result()
2037
    result.read(self._iprot)
2038
    self._iprot.readMessageEnd()
2039
    if result.success is not None:
2040
      return result.success
2041
    if result.cex is not None:
2042
      raise result.cex
2043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2044
 
2045
  def getBestDealsCount(self, ):
2046
    self.send_getBestDealsCount()
2047
    return self.recv_getBestDealsCount()
2048
 
2049
  def send_getBestDealsCount(self, ):
2050
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2051
    args = getBestDealsCount_args()
2052
    args.write(self._oprot)
2053
    self._oprot.writeMessageEnd()
2054
    self._oprot.trans.flush()
2055
 
2056
  def recv_getBestDealsCount(self, ):
2057
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2058
    if mtype == TMessageType.EXCEPTION:
2059
      x = TApplicationException()
2060
      x.read(self._iprot)
2061
      self._iprot.readMessageEnd()
2062
      raise x
2063
    result = getBestDealsCount_result()
2064
    result.read(self._iprot)
2065
    self._iprot.readMessageEnd()
2066
    if result.success is not None:
2067
      return result.success
2068
    if result.cex is not None:
2069
      raise result.cex
2070
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2071
 
2072
  def getComingSoon(self, ):
2073
    self.send_getComingSoon()
2074
    return self.recv_getComingSoon()
2075
 
2076
  def send_getComingSoon(self, ):
2077
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2078
    args = getComingSoon_args()
2079
    args.write(self._oprot)
2080
    self._oprot.writeMessageEnd()
2081
    self._oprot.trans.flush()
2082
 
2083
  def recv_getComingSoon(self, ):
2084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2085
    if mtype == TMessageType.EXCEPTION:
2086
      x = TApplicationException()
2087
      x.read(self._iprot)
2088
      self._iprot.readMessageEnd()
2089
      raise x
2090
    result = getComingSoon_result()
2091
    result.read(self._iprot)
2092
    self._iprot.readMessageEnd()
2093
    if result.success is not None:
2094
      return result.success
2095
    if result.isex is not None:
2096
      raise result.isex
2097
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2098
 
2099
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2100
    """
2101
    Parameters:
2102
     - beginIndex
2103
     - totalItems
2104
     - brand
2105
     - category
2106
    """
2107
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2108
    return self.recv_getComingSoonCatalogIds()
2109
 
2110
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2111
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2112
    args = getComingSoonCatalogIds_args()
2113
    args.beginIndex = beginIndex
2114
    args.totalItems = totalItems
2115
    args.brand = brand
2116
    args.category = category
2117
    args.write(self._oprot)
2118
    self._oprot.writeMessageEnd()
2119
    self._oprot.trans.flush()
2120
 
2121
  def recv_getComingSoonCatalogIds(self, ):
2122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2123
    if mtype == TMessageType.EXCEPTION:
2124
      x = TApplicationException()
2125
      x.read(self._iprot)
2126
      self._iprot.readMessageEnd()
2127
      raise x
2128
    result = getComingSoonCatalogIds_result()
2129
    result.read(self._iprot)
2130
    self._iprot.readMessageEnd()
2131
    if result.success is not None:
2132
      return result.success
2133
    if result.cex is not None:
2134
      raise result.cex
2135
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2136
 
2137
  def getComingSoonCount(self, ):
2138
    self.send_getComingSoonCount()
2139
    return self.recv_getComingSoonCount()
2140
 
2141
  def send_getComingSoonCount(self, ):
2142
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2143
    args = getComingSoonCount_args()
2144
    args.write(self._oprot)
2145
    self._oprot.writeMessageEnd()
2146
    self._oprot.trans.flush()
2147
 
2148
  def recv_getComingSoonCount(self, ):
2149
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2150
    if mtype == TMessageType.EXCEPTION:
2151
      x = TApplicationException()
2152
      x.read(self._iprot)
2153
      self._iprot.readMessageEnd()
2154
      raise x
2155
    result = getComingSoonCount_result()
2156
    result.read(self._iprot)
2157
    self._iprot.readMessageEnd()
2158
    if result.success is not None:
2159
      return result.success
2160
    if result.cex is not None:
2161
      raise result.cex
2162
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2163
 
2164
  def getLatestArrivals(self, ):
2165
    """
2166
    Returns a list of items sorted in the descending order by start date.
2167
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2168
    """
2169
    self.send_getLatestArrivals()
2170
    return self.recv_getLatestArrivals()
2171
 
2172
  def send_getLatestArrivals(self, ):
2173
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2174
    args = getLatestArrivals_args()
2175
    args.write(self._oprot)
2176
    self._oprot.writeMessageEnd()
2177
    self._oprot.trans.flush()
2178
 
2179
  def recv_getLatestArrivals(self, ):
2180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2181
    if mtype == TMessageType.EXCEPTION:
2182
      x = TApplicationException()
2183
      x.read(self._iprot)
2184
      self._iprot.readMessageEnd()
2185
      raise x
2186
    result = getLatestArrivals_result()
2187
    result.read(self._iprot)
2188
    self._iprot.readMessageEnd()
2189
    if result.success is not None:
2190
      return result.success
2191
    if result.isex is not None:
2192
      raise result.isex
2193
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2194
 
2195
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2196
    """
2197
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2198
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2199
 
2200
    Parameters:
2201
     - beginIndex
2202
     - totalItems
2203
     - brand
2204
     - categories
2205
    """
2206
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2207
    return self.recv_getLatestArrivalsCatalogIds()
2208
 
2209
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2210
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2211
    args = getLatestArrivalsCatalogIds_args()
2212
    args.beginIndex = beginIndex
2213
    args.totalItems = totalItems
2214
    args.brand = brand
2215
    args.categories = categories
2216
    args.write(self._oprot)
2217
    self._oprot.writeMessageEnd()
2218
    self._oprot.trans.flush()
2219
 
2220
  def recv_getLatestArrivalsCatalogIds(self, ):
2221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2222
    if mtype == TMessageType.EXCEPTION:
2223
      x = TApplicationException()
2224
      x.read(self._iprot)
2225
      self._iprot.readMessageEnd()
2226
      raise x
2227
    result = getLatestArrivalsCatalogIds_result()
2228
    result.read(self._iprot)
2229
    self._iprot.readMessageEnd()
2230
    if result.success is not None:
2231
      return result.success
2232
    if result.cex is not None:
2233
      raise result.cex
2234
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2235
 
2236
  def getLatestArrivalsCount(self, ):
2237
    """
2238
    Get the total number of latest arrivals we are willing to show.
2239
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2240
    """
2241
    self.send_getLatestArrivalsCount()
2242
    return self.recv_getLatestArrivalsCount()
2243
 
2244
  def send_getLatestArrivalsCount(self, ):
2245
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2246
    args = getLatestArrivalsCount_args()
2247
    args.write(self._oprot)
2248
    self._oprot.writeMessageEnd()
2249
    self._oprot.trans.flush()
2250
 
2251
  def recv_getLatestArrivalsCount(self, ):
2252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2253
    if mtype == TMessageType.EXCEPTION:
2254
      x = TApplicationException()
2255
      x.read(self._iprot)
2256
      self._iprot.readMessageEnd()
2257
      raise x
2258
    result = getLatestArrivalsCount_result()
2259
    result.read(self._iprot)
2260
    self._iprot.readMessageEnd()
2261
    if result.success is not None:
2262
      return result.success
2263
    if result.cex is not None:
2264
      raise result.cex
2265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2266
 
2267
  def generateNewEntityID(self, ):
2268
    self.send_generateNewEntityID()
2269
    return self.recv_generateNewEntityID()
2270
 
2271
  def send_generateNewEntityID(self, ):
2272
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2273
    args = generateNewEntityID_args()
2274
    args.write(self._oprot)
2275
    self._oprot.writeMessageEnd()
2276
    self._oprot.trans.flush()
2277
 
2278
  def recv_generateNewEntityID(self, ):
2279
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2280
    if mtype == TMessageType.EXCEPTION:
2281
      x = TApplicationException()
2282
      x.read(self._iprot)
2283
      self._iprot.readMessageEnd()
2284
      raise x
2285
    result = generateNewEntityID_result()
2286
    result.read(self._iprot)
2287
    self._iprot.readMessageEnd()
2288
    if result.success is not None:
2289
      return result.success
2290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2291
 
2292
  def addCategory(self, category):
2293
    """
2294
    All category related functions
2295
 
2296
    Parameters:
2297
     - category
2298
    """
2299
    self.send_addCategory(category)
2300
    return self.recv_addCategory()
2301
 
2302
  def send_addCategory(self, category):
2303
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2304
    args = addCategory_args()
2305
    args.category = category
2306
    args.write(self._oprot)
2307
    self._oprot.writeMessageEnd()
2308
    self._oprot.trans.flush()
2309
 
2310
  def recv_addCategory(self, ):
2311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2312
    if mtype == TMessageType.EXCEPTION:
2313
      x = TApplicationException()
2314
      x.read(self._iprot)
2315
      self._iprot.readMessageEnd()
2316
      raise x
2317
    result = addCategory_result()
2318
    result.read(self._iprot)
2319
    self._iprot.readMessageEnd()
2320
    if result.success is not None:
2321
      return result.success
2322
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2323
 
2324
  def getCategory(self, id):
2325
    """
2326
    Parameters:
2327
     - id
2328
    """
2329
    self.send_getCategory(id)
2330
    return self.recv_getCategory()
2331
 
2332
  def send_getCategory(self, id):
2333
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2334
    args = getCategory_args()
2335
    args.id = id
2336
    args.write(self._oprot)
2337
    self._oprot.writeMessageEnd()
2338
    self._oprot.trans.flush()
2339
 
2340
  def recv_getCategory(self, ):
2341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2342
    if mtype == TMessageType.EXCEPTION:
2343
      x = TApplicationException()
2344
      x.read(self._iprot)
2345
      self._iprot.readMessageEnd()
2346
      raise x
2347
    result = getCategory_result()
2348
    result.read(self._iprot)
2349
    self._iprot.readMessageEnd()
2350
    if result.success is not None:
2351
      return result.success
2352
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2353
 
2354
  def getAllCategories(self, ):
2355
    self.send_getAllCategories()
2356
    return self.recv_getAllCategories()
2357
 
2358
  def send_getAllCategories(self, ):
2359
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2360
    args = getAllCategories_args()
2361
    args.write(self._oprot)
2362
    self._oprot.writeMessageEnd()
2363
    self._oprot.trans.flush()
2364
 
2365
  def recv_getAllCategories(self, ):
2366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2367
    if mtype == TMessageType.EXCEPTION:
2368
      x = TApplicationException()
2369
      x.read(self._iprot)
2370
      self._iprot.readMessageEnd()
2371
      raise x
2372
    result = getAllCategories_result()
2373
    result.read(self._iprot)
2374
    self._iprot.readMessageEnd()
2375
    if result.success is not None:
2376
      return result.success
2377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2378
 
2379
  def getAllSimilarItems(self, itemId):
2380
    """
2381
    Returns the list of similar items.
2382
 
2383
    Parameters:
2384
     - itemId
2385
    """
2386
    self.send_getAllSimilarItems(itemId)
2387
    return self.recv_getAllSimilarItems()
2388
 
2389
  def send_getAllSimilarItems(self, itemId):
2390
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2391
    args = getAllSimilarItems_args()
2392
    args.itemId = itemId
2393
    args.write(self._oprot)
2394
    self._oprot.writeMessageEnd()
2395
    self._oprot.trans.flush()
2396
 
2397
  def recv_getAllSimilarItems(self, ):
2398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2399
    if mtype == TMessageType.EXCEPTION:
2400
      x = TApplicationException()
2401
      x.read(self._iprot)
2402
      self._iprot.readMessageEnd()
2403
      raise x
2404
    result = getAllSimilarItems_result()
2405
    result.read(self._iprot)
2406
    self._iprot.readMessageEnd()
2407
    if result.success is not None:
2408
      return result.success
2409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2410
 
2411
  def addSimilarItem(self, itemId, catalogItemId):
2412
    """
2413
    Adds similar item.
2414
 
2415
    Parameters:
2416
     - itemId
2417
     - catalogItemId
2418
    """
2419
    self.send_addSimilarItem(itemId, catalogItemId)
2420
    return self.recv_addSimilarItem()
2421
 
2422
  def send_addSimilarItem(self, itemId, catalogItemId):
2423
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2424
    args = addSimilarItem_args()
2425
    args.itemId = itemId
2426
    args.catalogItemId = catalogItemId
2427
    args.write(self._oprot)
2428
    self._oprot.writeMessageEnd()
2429
    self._oprot.trans.flush()
2430
 
2431
  def recv_addSimilarItem(self, ):
2432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2433
    if mtype == TMessageType.EXCEPTION:
2434
      x = TApplicationException()
2435
      x.read(self._iprot)
2436
      self._iprot.readMessageEnd()
2437
      raise x
2438
    result = addSimilarItem_result()
2439
    result.read(self._iprot)
2440
    self._iprot.readMessageEnd()
2441
    if result.success is not None:
2442
      return result.success
2443
    if result.cex is not None:
2444
      raise result.cex
2445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2446
 
6512 kshitij.so 2447
  def addTag(self, displayName, itemId):
2448
    """
2449
    Tag Related
2450
 
2451
    Parameters:
2452
     - displayName
2453
     - itemId
2454
    """
2455
    self.send_addTag(displayName, itemId)
2456
    return self.recv_addTag()
2457
 
2458
  def send_addTag(self, displayName, itemId):
2459
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2460
    args = addTag_args()
2461
    args.displayName = displayName
2462
    args.itemId = itemId
2463
    args.write(self._oprot)
2464
    self._oprot.writeMessageEnd()
2465
    self._oprot.trans.flush()
2466
 
2467
  def recv_addTag(self, ):
2468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2469
    if mtype == TMessageType.EXCEPTION:
2470
      x = TApplicationException()
2471
      x.read(self._iprot)
2472
      self._iprot.readMessageEnd()
2473
      raise x
2474
    result = addTag_result()
2475
    result.read(self._iprot)
2476
    self._iprot.readMessageEnd()
2477
    if result.success is not None:
2478
      return result.success
2479
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2480
 
2481
  def deleteEntityTag(self, displayName, itemId):
2482
    """
2483
    Parameters:
2484
     - displayName
2485
     - itemId
2486
    """
2487
    self.send_deleteEntityTag(displayName, itemId)
2488
    return self.recv_deleteEntityTag()
2489
 
2490
  def send_deleteEntityTag(self, displayName, itemId):
2491
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2492
    args = deleteEntityTag_args()
2493
    args.displayName = displayName
2494
    args.itemId = itemId
2495
    args.write(self._oprot)
2496
    self._oprot.writeMessageEnd()
2497
    self._oprot.trans.flush()
2498
 
2499
  def recv_deleteEntityTag(self, ):
2500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2501
    if mtype == TMessageType.EXCEPTION:
2502
      x = TApplicationException()
2503
      x.read(self._iprot)
2504
      self._iprot.readMessageEnd()
2505
      raise x
2506
    result = deleteEntityTag_result()
2507
    result.read(self._iprot)
2508
    self._iprot.readMessageEnd()
2509
    if result.success is not None:
2510
      return result.success
2511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2512
 
2513
  def deleteTag(self, displayName):
2514
    """
2515
    Parameters:
2516
     - displayName
2517
    """
2518
    self.send_deleteTag(displayName)
2519
    return self.recv_deleteTag()
2520
 
2521
  def send_deleteTag(self, displayName):
2522
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2523
    args = deleteTag_args()
2524
    args.displayName = displayName
2525
    args.write(self._oprot)
2526
    self._oprot.writeMessageEnd()
2527
    self._oprot.trans.flush()
2528
 
2529
  def recv_deleteTag(self, ):
2530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2531
    if mtype == TMessageType.EXCEPTION:
2532
      x = TApplicationException()
2533
      x.read(self._iprot)
2534
      self._iprot.readMessageEnd()
2535
      raise x
2536
    result = deleteTag_result()
2537
    result.read(self._iprot)
2538
    self._iprot.readMessageEnd()
2539
    if result.success is not None:
2540
      return result.success
2541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2542
 
2543
  def getAllTags(self, ):
2544
    self.send_getAllTags()
2545
    return self.recv_getAllTags()
2546
 
2547
  def send_getAllTags(self, ):
2548
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2549
    args = getAllTags_args()
2550
    args.write(self._oprot)
2551
    self._oprot.writeMessageEnd()
2552
    self._oprot.trans.flush()
2553
 
2554
  def recv_getAllTags(self, ):
2555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2556
    if mtype == TMessageType.EXCEPTION:
2557
      x = TApplicationException()
2558
      x.read(self._iprot)
2559
      self._iprot.readMessageEnd()
2560
      raise x
2561
    result = getAllTags_result()
2562
    result.read(self._iprot)
2563
    self._iprot.readMessageEnd()
2564
    if result.success is not None:
2565
      return result.success
2566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2567
 
2568
  def getAllEntitiesByTagName(self, displayName):
2569
    """
2570
    Parameters:
2571
     - displayName
2572
    """
2573
    self.send_getAllEntitiesByTagName(displayName)
2574
    return self.recv_getAllEntitiesByTagName()
2575
 
2576
  def send_getAllEntitiesByTagName(self, displayName):
2577
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2578
    args = getAllEntitiesByTagName_args()
2579
    args.displayName = displayName
2580
    args.write(self._oprot)
2581
    self._oprot.writeMessageEnd()
2582
    self._oprot.trans.flush()
2583
 
2584
  def recv_getAllEntitiesByTagName(self, ):
2585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2586
    if mtype == TMessageType.EXCEPTION:
2587
      x = TApplicationException()
2588
      x.read(self._iprot)
2589
      self._iprot.readMessageEnd()
2590
      raise x
2591
    result = getAllEntitiesByTagName_result()
2592
    result.read(self._iprot)
2593
    self._iprot.readMessageEnd()
2594
    if result.success is not None:
2595
      return result.success
2596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2597
 
6845 amit.gupta 2598
  def getAllEntityTags(self, ):
2599
    self.send_getAllEntityTags()
2600
    return self.recv_getAllEntityTags()
2601
 
2602
  def send_getAllEntityTags(self, ):
2603
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2604
    args = getAllEntityTags_args()
2605
    args.write(self._oprot)
2606
    self._oprot.writeMessageEnd()
2607
    self._oprot.trans.flush()
2608
 
2609
  def recv_getAllEntityTags(self, ):
2610
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2611
    if mtype == TMessageType.EXCEPTION:
2612
      x = TApplicationException()
2613
      x.read(self._iprot)
2614
      self._iprot.readMessageEnd()
2615
      raise x
2616
    result = getAllEntityTags_result()
2617
    result.read(self._iprot)
2618
    self._iprot.readMessageEnd()
2619
    if result.success is not None:
2620
      return result.success
2621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2622
 
8590 kshitij.so 2623
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2624
    """
8579 kshitij.so 2625
    Banner Related
2626
 
6850 kshitij.so 2627
    Parameters:
8590 kshitij.so 2628
     - bannerCongregate
6850 kshitij.so 2629
    """
8590 kshitij.so 2630
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2631
    return self.recv_addBanner()
6850 kshitij.so 2632
 
8590 kshitij.so 2633
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2634
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2635
    args = addBanner_args()
8590 kshitij.so 2636
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2637
    args.write(self._oprot)
2638
    self._oprot.writeMessageEnd()
2639
    self._oprot.trans.flush()
2640
 
2641
  def recv_addBanner(self, ):
2642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2643
    if mtype == TMessageType.EXCEPTION:
2644
      x = TApplicationException()
2645
      x.read(self._iprot)
2646
      self._iprot.readMessageEnd()
2647
      raise x
2648
    result = addBanner_result()
2649
    result.read(self._iprot)
2650
    self._iprot.readMessageEnd()
10097 kshitij.so 2651
    if result.success is not None:
2652
      return result.success
2653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2654
 
8579 kshitij.so 2655
  def updateBanner(self, banner):
2656
    """
2657
    Parameters:
2658
     - banner
2659
    """
2660
    self.send_updateBanner(banner)
2661
    return self.recv_updateBanner()
2662
 
2663
  def send_updateBanner(self, banner):
2664
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2665
    args = updateBanner_args()
2666
    args.banner = banner
2667
    args.write(self._oprot)
2668
    self._oprot.writeMessageEnd()
2669
    self._oprot.trans.flush()
2670
 
2671
  def recv_updateBanner(self, ):
2672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2673
    if mtype == TMessageType.EXCEPTION:
2674
      x = TApplicationException()
2675
      x.read(self._iprot)
2676
      self._iprot.readMessageEnd()
2677
      raise x
2678
    result = updateBanner_result()
2679
    result.read(self._iprot)
2680
    self._iprot.readMessageEnd()
2681
    if result.success is not None:
2682
      return result.success
2683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2684
 
6850 kshitij.so 2685
  def getAllBanners(self, ):
2686
    self.send_getAllBanners()
2687
    return self.recv_getAllBanners()
2688
 
2689
  def send_getAllBanners(self, ):
2690
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2691
    args = getAllBanners_args()
2692
    args.write(self._oprot)
2693
    self._oprot.writeMessageEnd()
2694
    self._oprot.trans.flush()
2695
 
2696
  def recv_getAllBanners(self, ):
2697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2698
    if mtype == TMessageType.EXCEPTION:
2699
      x = TApplicationException()
2700
      x.read(self._iprot)
2701
      self._iprot.readMessageEnd()
2702
      raise x
2703
    result = getAllBanners_result()
2704
    result.read(self._iprot)
2705
    self._iprot.readMessageEnd()
2706
    if result.success is not None:
2707
      return result.success
2708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2709
 
9155 kshitij.so 2710
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2711
    """
2712
    Parameters:
2713
     - bannerName
9155 kshitij.so 2714
     - bannerType
6850 kshitij.so 2715
    """
9155 kshitij.so 2716
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2717
    return self.recv_deleteBanner()
2718
 
9155 kshitij.so 2719
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2720
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2721
    args = deleteBanner_args()
2722
    args.bannerName = bannerName
9155 kshitij.so 2723
    args.bannerType = bannerType
6850 kshitij.so 2724
    args.write(self._oprot)
2725
    self._oprot.writeMessageEnd()
2726
    self._oprot.trans.flush()
2727
 
2728
  def recv_deleteBanner(self, ):
2729
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2730
    if mtype == TMessageType.EXCEPTION:
2731
      x = TApplicationException()
2732
      x.read(self._iprot)
2733
      self._iprot.readMessageEnd()
2734
      raise x
2735
    result = deleteBanner_result()
2736
    result.read(self._iprot)
2737
    self._iprot.readMessageEnd()
2738
    if result.success is not None:
2739
      return result.success
2740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2741
 
9155 kshitij.so 2742
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2743
    """
2744
    Parameters:
2745
     - bannerName
9155 kshitij.so 2746
     - bannerType
6850 kshitij.so 2747
    """
9155 kshitij.so 2748
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2749
    return self.recv_getBannerDetails()
2750
 
9155 kshitij.so 2751
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2752
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2753
    args = getBannerDetails_args()
2754
    args.bannerName = bannerName
9155 kshitij.so 2755
    args.bannerType = bannerType
6850 kshitij.so 2756
    args.write(self._oprot)
2757
    self._oprot.writeMessageEnd()
2758
    self._oprot.trans.flush()
2759
 
2760
  def recv_getBannerDetails(self, ):
2761
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2762
    if mtype == TMessageType.EXCEPTION:
2763
      x = TApplicationException()
2764
      x.read(self._iprot)
2765
      self._iprot.readMessageEnd()
2766
      raise x
2767
    result = getBannerDetails_result()
2768
    result.read(self._iprot)
2769
    self._iprot.readMessageEnd()
2770
    if result.success is not None:
2771
      return result.success
2772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2773
 
2774
  def getActiveBanners(self, ):
2775
    self.send_getActiveBanners()
2776
    return self.recv_getActiveBanners()
2777
 
2778
  def send_getActiveBanners(self, ):
2779
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2780
    args = getActiveBanners_args()
2781
    args.write(self._oprot)
2782
    self._oprot.writeMessageEnd()
2783
    self._oprot.trans.flush()
2784
 
2785
  def recv_getActiveBanners(self, ):
2786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2787
    if mtype == TMessageType.EXCEPTION:
2788
      x = TApplicationException()
2789
      x.read(self._iprot)
2790
      self._iprot.readMessageEnd()
2791
      raise x
2792
    result = getActiveBanners_result()
2793
    result.read(self._iprot)
2794
    self._iprot.readMessageEnd()
2795
    if result.success is not None:
2796
      return result.success
2797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2798
 
8579 kshitij.so 2799
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2800
    """
2801
    Parameters:
8579 kshitij.so 2802
     - bannerMaps
6849 kshitij.so 2803
    """
8579 kshitij.so 2804
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2805
    return self.recv_addBannerMap()
2806
 
8579 kshitij.so 2807
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2808
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2809
    args = addBannerMap_args()
8579 kshitij.so 2810
    args.bannerMaps = bannerMaps
6849 kshitij.so 2811
    args.write(self._oprot)
2812
    self._oprot.writeMessageEnd()
2813
    self._oprot.trans.flush()
2814
 
2815
  def recv_addBannerMap(self, ):
2816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2817
    if mtype == TMessageType.EXCEPTION:
2818
      x = TApplicationException()
2819
      x.read(self._iprot)
2820
      self._iprot.readMessageEnd()
2821
      raise x
2822
    result = addBannerMap_result()
2823
    result.read(self._iprot)
2824
    self._iprot.readMessageEnd()
2825
    if result.success is not None:
2826
      return result.success
2827
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2828
 
8579 kshitij.so 2829
  def updateBannerMap(self, bannerMap):
2830
    """
2831
    Parameters:
2832
     - bannerMap
2833
    """
2834
    self.send_updateBannerMap(bannerMap)
2835
    return self.recv_updateBannerMap()
2836
 
2837
  def send_updateBannerMap(self, bannerMap):
2838
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2839
    args = updateBannerMap_args()
2840
    args.bannerMap = bannerMap
2841
    args.write(self._oprot)
2842
    self._oprot.writeMessageEnd()
2843
    self._oprot.trans.flush()
2844
 
2845
  def recv_updateBannerMap(self, ):
2846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2847
    if mtype == TMessageType.EXCEPTION:
2848
      x = TApplicationException()
2849
      x.read(self._iprot)
2850
      self._iprot.readMessageEnd()
2851
      raise x
2852
    result = updateBannerMap_result()
2853
    result.read(self._iprot)
2854
    self._iprot.readMessageEnd()
2855
    if result.success is not None:
2856
      return result.success
2857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2858
 
6849 kshitij.so 2859
  def deleteBannerMap(self, bannerName):
2860
    """
2861
    Parameters:
2862
     - bannerName
2863
    """
2864
    self.send_deleteBannerMap(bannerName)
2865
    return self.recv_deleteBannerMap()
2866
 
2867
  def send_deleteBannerMap(self, bannerName):
2868
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2869
    args = deleteBannerMap_args()
2870
    args.bannerName = bannerName
2871
    args.write(self._oprot)
2872
    self._oprot.writeMessageEnd()
2873
    self._oprot.trans.flush()
2874
 
2875
  def recv_deleteBannerMap(self, ):
2876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2877
    if mtype == TMessageType.EXCEPTION:
2878
      x = TApplicationException()
2879
      x.read(self._iprot)
2880
      self._iprot.readMessageEnd()
2881
      raise x
2882
    result = deleteBannerMap_result()
2883
    result.read(self._iprot)
2884
    self._iprot.readMessageEnd()
2885
    if result.success is not None:
2886
      return result.success
2887
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2888
 
9155 kshitij.so 2889
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2890
    """
2891
    Parameters:
2892
     - bannerName
9155 kshitij.so 2893
     - bannerType
6849 kshitij.so 2894
    """
9155 kshitij.so 2895
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2896
    return self.recv_getBannerMapDetails()
2897
 
9155 kshitij.so 2898
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2899
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2900
    args = getBannerMapDetails_args()
2901
    args.bannerName = bannerName
9155 kshitij.so 2902
    args.bannerType = bannerType
6849 kshitij.so 2903
    args.write(self._oprot)
2904
    self._oprot.writeMessageEnd()
2905
    self._oprot.trans.flush()
2906
 
2907
  def recv_getBannerMapDetails(self, ):
2908
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2909
    if mtype == TMessageType.EXCEPTION:
2910
      x = TApplicationException()
2911
      x.read(self._iprot)
2912
      self._iprot.readMessageEnd()
2913
      raise x
2914
    result = getBannerMapDetails_result()
2915
    result.read(self._iprot)
2916
    self._iprot.readMessageEnd()
2917
    if result.success is not None:
2918
      return result.success
2919
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2920
 
8579 kshitij.so 2921
  def addBannerUri(self, bannerUriMappings):
2922
    """
2923
    Parameters:
2924
     - bannerUriMappings
2925
    """
2926
    self.send_addBannerUri(bannerUriMappings)
2927
    self.recv_addBannerUri()
2928
 
2929
  def send_addBannerUri(self, bannerUriMappings):
2930
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2931
    args = addBannerUri_args()
2932
    args.bannerUriMappings = bannerUriMappings
2933
    args.write(self._oprot)
2934
    self._oprot.writeMessageEnd()
2935
    self._oprot.trans.flush()
2936
 
2937
  def recv_addBannerUri(self, ):
2938
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2939
    if mtype == TMessageType.EXCEPTION:
2940
      x = TApplicationException()
2941
      x.read(self._iprot)
2942
      self._iprot.readMessageEnd()
2943
      raise x
2944
    result = addBannerUri_result()
2945
    result.read(self._iprot)
2946
    self._iprot.readMessageEnd()
2947
    return
2948
 
9155 kshitij.so 2949
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2950
    """
2951
    Parameters:
2952
     - bannerName
9155 kshitij.so 2953
     - bannerType
8579 kshitij.so 2954
    """
9155 kshitij.so 2955
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2956
    return self.recv_getUriMapping()
2957
 
9155 kshitij.so 2958
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2959
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2960
    args = getUriMapping_args()
2961
    args.bannerName = bannerName
9155 kshitij.so 2962
    args.bannerType = bannerType
8579 kshitij.so 2963
    args.write(self._oprot)
2964
    self._oprot.writeMessageEnd()
2965
    self._oprot.trans.flush()
2966
 
2967
  def recv_getUriMapping(self, ):
2968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2969
    if mtype == TMessageType.EXCEPTION:
2970
      x = TApplicationException()
2971
      x.read(self._iprot)
2972
      self._iprot.readMessageEnd()
2973
      raise x
2974
    result = getUriMapping_result()
2975
    result.read(self._iprot)
2976
    self._iprot.readMessageEnd()
2977
    if result.success is not None:
2978
      return result.success
2979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2980
 
2981
  def addCampaign(self, campaign):
2982
    """
2983
    Parameters:
2984
     - campaign
2985
    """
2986
    self.send_addCampaign(campaign)
2987
    self.recv_addCampaign()
2988
 
2989
  def send_addCampaign(self, campaign):
2990
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2991
    args = addCampaign_args()
2992
    args.campaign = campaign
2993
    args.write(self._oprot)
2994
    self._oprot.writeMessageEnd()
2995
    self._oprot.trans.flush()
2996
 
2997
  def recv_addCampaign(self, ):
2998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2999
    if mtype == TMessageType.EXCEPTION:
3000
      x = TApplicationException()
3001
      x.read(self._iprot)
3002
      self._iprot.readMessageEnd()
3003
      raise x
3004
    result = addCampaign_result()
3005
    result.read(self._iprot)
3006
    self._iprot.readMessageEnd()
3007
    return
3008
 
3009
  def getCampaigns(self, campaignName):
3010
    """
3011
    Parameters:
3012
     - campaignName
3013
    """
3014
    self.send_getCampaigns(campaignName)
3015
    return self.recv_getCampaigns()
3016
 
3017
  def send_getCampaigns(self, campaignName):
3018
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3019
    args = getCampaigns_args()
3020
    args.campaignName = campaignName
3021
    args.write(self._oprot)
3022
    self._oprot.writeMessageEnd()
3023
    self._oprot.trans.flush()
3024
 
3025
  def recv_getCampaigns(self, ):
3026
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3027
    if mtype == TMessageType.EXCEPTION:
3028
      x = TApplicationException()
3029
      x.read(self._iprot)
3030
      self._iprot.readMessageEnd()
3031
      raise x
3032
    result = getCampaigns_result()
3033
    result.read(self._iprot)
3034
    self._iprot.readMessageEnd()
3035
    if result.success is not None:
3036
      return result.success
3037
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3038
 
3039
  def deleteCampaign(self, campaignId):
3040
    """
3041
    Parameters:
3042
     - campaignId
3043
    """
3044
    self.send_deleteCampaign(campaignId)
3045
    self.recv_deleteCampaign()
3046
 
3047
  def send_deleteCampaign(self, campaignId):
3048
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3049
    args = deleteCampaign_args()
3050
    args.campaignId = campaignId
3051
    args.write(self._oprot)
3052
    self._oprot.writeMessageEnd()
3053
    self._oprot.trans.flush()
3054
 
3055
  def recv_deleteCampaign(self, ):
3056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3057
    if mtype == TMessageType.EXCEPTION:
3058
      x = TApplicationException()
3059
      x.read(self._iprot)
3060
      self._iprot.readMessageEnd()
3061
      raise x
3062
    result = deleteCampaign_result()
3063
    result.read(self._iprot)
3064
    self._iprot.readMessageEnd()
3065
    return
3066
 
3067
  def getAllCampaigns(self, ):
3068
    self.send_getAllCampaigns()
3069
    return self.recv_getAllCampaigns()
3070
 
3071
  def send_getAllCampaigns(self, ):
3072
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3073
    args = getAllCampaigns_args()
3074
    args.write(self._oprot)
3075
    self._oprot.writeMessageEnd()
3076
    self._oprot.trans.flush()
3077
 
3078
  def recv_getAllCampaigns(self, ):
3079
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3080
    if mtype == TMessageType.EXCEPTION:
3081
      x = TApplicationException()
3082
      x.read(self._iprot)
3083
      self._iprot.readMessageEnd()
3084
      raise x
3085
    result = getAllCampaigns_result()
3086
    result.read(self._iprot)
3087
    self._iprot.readMessageEnd()
3088
    if result.success is not None:
3089
      return result.success
3090
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3091
 
9155 kshitij.so 3092
  def getActiveBannersForMobileSite(self, ):
3093
    self.send_getActiveBannersForMobileSite()
3094
    return self.recv_getActiveBannersForMobileSite()
3095
 
3096
  def send_getActiveBannersForMobileSite(self, ):
3097
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3098
    args = getActiveBannersForMobileSite_args()
3099
    args.write(self._oprot)
3100
    self._oprot.writeMessageEnd()
3101
    self._oprot.trans.flush()
3102
 
3103
  def recv_getActiveBannersForMobileSite(self, ):
3104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3105
    if mtype == TMessageType.EXCEPTION:
3106
      x = TApplicationException()
3107
      x.read(self._iprot)
3108
      self._iprot.readMessageEnd()
3109
      raise x
3110
    result = getActiveBannersForMobileSite_result()
3111
    result.read(self._iprot)
3112
    self._iprot.readMessageEnd()
3113
    if result.success is not None:
3114
      return result.success
3115
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3116
 
5944 mandeep.dh 3117
  def deleteSimilarItem(self, itemId, catalogItemId):
3118
    """
3119
    Delete similar item.
3120
 
3121
    Parameters:
3122
     - itemId
3123
     - catalogItemId
3124
    """
3125
    self.send_deleteSimilarItem(itemId, catalogItemId)
3126
    return self.recv_deleteSimilarItem()
3127
 
3128
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3129
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3130
    args = deleteSimilarItem_args()
3131
    args.itemId = itemId
3132
    args.catalogItemId = catalogItemId
3133
    args.write(self._oprot)
3134
    self._oprot.writeMessageEnd()
3135
    self._oprot.trans.flush()
3136
 
3137
  def recv_deleteSimilarItem(self, ):
3138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3139
    if mtype == TMessageType.EXCEPTION:
3140
      x = TApplicationException()
3141
      x.read(self._iprot)
3142
      self._iprot.readMessageEnd()
3143
      raise x
3144
    result = deleteSimilarItem_result()
3145
    result.read(self._iprot)
3146
    self._iprot.readMessageEnd()
3147
    if result.success is not None:
3148
      return result.success
3149
    if result.cex is not None:
3150
      raise result.cex
3151
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3152
 
3153
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3154
    """
3155
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3156
    If yes, returns the itemId else returns 0
3157
 
3158
    Parameters:
3159
     - brand
3160
     - modelNumber
3161
     - modelName
3162
     - color
3163
    """
3164
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3165
    return self.recv_checkSimilarItem()
3166
 
3167
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3168
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3169
    args = checkSimilarItem_args()
3170
    args.brand = brand
3171
    args.modelNumber = modelNumber
3172
    args.modelName = modelName
3173
    args.color = color
3174
    args.write(self._oprot)
3175
    self._oprot.writeMessageEnd()
3176
    self._oprot.trans.flush()
3177
 
3178
  def recv_checkSimilarItem(self, ):
3179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3180
    if mtype == TMessageType.EXCEPTION:
3181
      x = TApplicationException()
3182
      x.read(self._iprot)
3183
      self._iprot.readMessageEnd()
3184
      raise x
3185
    result = checkSimilarItem_result()
3186
    result.read(self._iprot)
3187
    self._iprot.readMessageEnd()
3188
    if result.success is not None:
3189
      return result.success
3190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3191
 
3192
  def validateRiskyStatus(self, itemId):
3193
    """
3194
    Check wether item is risky and change status if inventory is not available for risky items
3195
 
3196
    Parameters:
3197
     - itemId
3198
    """
3199
    self.send_validateRiskyStatus(itemId)
3200
    self.recv_validateRiskyStatus()
3201
 
3202
  def send_validateRiskyStatus(self, itemId):
3203
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3204
    args = validateRiskyStatus_args()
3205
    args.itemId = itemId
3206
    args.write(self._oprot)
3207
    self._oprot.writeMessageEnd()
3208
    self._oprot.trans.flush()
3209
 
3210
  def recv_validateRiskyStatus(self, ):
3211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3212
    if mtype == TMessageType.EXCEPTION:
3213
      x = TApplicationException()
3214
      x.read(self._iprot)
3215
      self._iprot.readMessageEnd()
3216
      raise x
3217
    result = validateRiskyStatus_result()
3218
    result.read(self._iprot)
3219
    self._iprot.readMessageEnd()
3220
    return
3221
 
3222
  def changeItemRiskyFlag(self, itemId, risky):
3223
    """
3224
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3225
 
3226
    Parameters:
3227
     - itemId
3228
     - risky
3229
    """
3230
    self.send_changeItemRiskyFlag(itemId, risky)
3231
    self.recv_changeItemRiskyFlag()
3232
 
3233
  def send_changeItemRiskyFlag(self, itemId, risky):
3234
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3235
    args = changeItemRiskyFlag_args()
3236
    args.itemId = itemId
3237
    args.risky = risky
3238
    args.write(self._oprot)
3239
    self._oprot.writeMessageEnd()
3240
    self._oprot.trans.flush()
3241
 
3242
  def recv_changeItemRiskyFlag(self, ):
3243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3244
    if mtype == TMessageType.EXCEPTION:
3245
      x = TApplicationException()
3246
      x.read(self._iprot)
3247
      self._iprot.readMessageEnd()
3248
      raise x
3249
    result = changeItemRiskyFlag_result()
3250
    result.read(self._iprot)
3251
    self._iprot.readMessageEnd()
3252
    return
3253
 
3254
  def getItemsByRiskyFlag(self, ):
3255
    """
3256
    Returns list of items marked as risky.
3257
    """
3258
    self.send_getItemsByRiskyFlag()
3259
    return self.recv_getItemsByRiskyFlag()
3260
 
3261
  def send_getItemsByRiskyFlag(self, ):
3262
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3263
    args = getItemsByRiskyFlag_args()
3264
    args.write(self._oprot)
3265
    self._oprot.writeMessageEnd()
3266
    self._oprot.trans.flush()
3267
 
3268
  def recv_getItemsByRiskyFlag(self, ):
3269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3270
    if mtype == TMessageType.EXCEPTION:
3271
      x = TApplicationException()
3272
      x.read(self._iprot)
3273
      self._iprot.readMessageEnd()
3274
      raise x
3275
    result = getItemsByRiskyFlag_result()
3276
    result.read(self._iprot)
3277
    self._iprot.readMessageEnd()
3278
    if result.success is not None:
3279
      return result.success
3280
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3281
 
3282
  def getItemsForMasterSheet(self, category, brand):
3283
    """
3284
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3285
 
3286
    Parameters:
3287
     - category
3288
     - brand
3289
    """
3290
    self.send_getItemsForMasterSheet(category, brand)
3291
    return self.recv_getItemsForMasterSheet()
3292
 
3293
  def send_getItemsForMasterSheet(self, category, brand):
3294
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3295
    args = getItemsForMasterSheet_args()
3296
    args.category = category
3297
    args.brand = brand
3298
    args.write(self._oprot)
3299
    self._oprot.writeMessageEnd()
3300
    self._oprot.trans.flush()
3301
 
3302
  def recv_getItemsForMasterSheet(self, ):
3303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3304
    if mtype == TMessageType.EXCEPTION:
3305
      x = TApplicationException()
3306
      x.read(self._iprot)
3307
      self._iprot.readMessageEnd()
3308
      raise x
3309
    result = getItemsForMasterSheet_result()
3310
    result.read(self._iprot)
3311
    self._iprot.readMessageEnd()
3312
    if result.success is not None:
3313
      return result.success
3314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3315
 
3316
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3317
    """
3318
    Returns list of catalog ids of items with same similarity index as of the given itemId
3319
 
3320
    Parameters:
3321
     - beginIndex
3322
     - totalItems
3323
     - itemId
3324
    """
3325
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3326
    return self.recv_getSimilarItemsCatalogIds()
3327
 
3328
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3329
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3330
    args = getSimilarItemsCatalogIds_args()
3331
    args.beginIndex = beginIndex
3332
    args.totalItems = totalItems
3333
    args.itemId = itemId
3334
    args.write(self._oprot)
3335
    self._oprot.writeMessageEnd()
3336
    self._oprot.trans.flush()
3337
 
3338
  def recv_getSimilarItemsCatalogIds(self, ):
3339
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3340
    if mtype == TMessageType.EXCEPTION:
3341
      x = TApplicationException()
3342
      x.read(self._iprot)
3343
      self._iprot.readMessageEnd()
3344
      raise x
3345
    result = getSimilarItemsCatalogIds_result()
3346
    result.read(self._iprot)
3347
    self._iprot.readMessageEnd()
3348
    if result.success is not None:
3349
      return result.success
3350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3351
 
3352
  def addProductNotification(self, itemId, email):
3353
    """
3354
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3355
 
3356
    Parameters:
3357
     - itemId
3358
     - email
3359
    """
3360
    self.send_addProductNotification(itemId, email)
3361
    return self.recv_addProductNotification()
3362
 
3363
  def send_addProductNotification(self, itemId, email):
3364
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3365
    args = addProductNotification_args()
3366
    args.itemId = itemId
3367
    args.email = email
3368
    args.write(self._oprot)
3369
    self._oprot.writeMessageEnd()
3370
    self._oprot.trans.flush()
3371
 
3372
  def recv_addProductNotification(self, ):
3373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3374
    if mtype == TMessageType.EXCEPTION:
3375
      x = TApplicationException()
3376
      x.read(self._iprot)
3377
      self._iprot.readMessageEnd()
3378
      raise x
3379
    result = addProductNotification_result()
3380
    result.read(self._iprot)
3381
    self._iprot.readMessageEnd()
3382
    if result.success is not None:
3383
      return result.success
3384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3385
 
3386
  def sendProductNotifications(self, ):
3387
    """
3388
    Send the product notifications to the users for items which has stock.
3389
    """
3390
    self.send_sendProductNotifications()
3391
    return self.recv_sendProductNotifications()
3392
 
3393
  def send_sendProductNotifications(self, ):
3394
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3395
    args = sendProductNotifications_args()
3396
    args.write(self._oprot)
3397
    self._oprot.writeMessageEnd()
3398
    self._oprot.trans.flush()
3399
 
3400
  def recv_sendProductNotifications(self, ):
3401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3402
    if mtype == TMessageType.EXCEPTION:
3403
      x = TApplicationException()
3404
      x.read(self._iprot)
3405
      self._iprot.readMessageEnd()
3406
      raise x
3407
    result = sendProductNotifications_result()
3408
    result.read(self._iprot)
3409
    self._iprot.readMessageEnd()
3410
    if result.success is not None:
3411
      return result.success
3412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3413
 
3414
  def getAllBrandsByCategory(self, categoryId):
3415
    """
3416
    Returns list of brand names for a given category Id
3417
 
3418
    Parameters:
3419
     - categoryId
3420
    """
3421
    self.send_getAllBrandsByCategory(categoryId)
3422
    return self.recv_getAllBrandsByCategory()
3423
 
3424
  def send_getAllBrandsByCategory(self, categoryId):
3425
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3426
    args = getAllBrandsByCategory_args()
3427
    args.categoryId = categoryId
3428
    args.write(self._oprot)
3429
    self._oprot.writeMessageEnd()
3430
    self._oprot.trans.flush()
3431
 
3432
  def recv_getAllBrandsByCategory(self, ):
3433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3434
    if mtype == TMessageType.EXCEPTION:
3435
      x = TApplicationException()
3436
      x.read(self._iprot)
3437
      self._iprot.readMessageEnd()
3438
      raise x
3439
    result = getAllBrandsByCategory_result()
3440
    result.read(self._iprot)
3441
    self._iprot.readMessageEnd()
3442
    if result.success is not None:
3443
      return result.success
3444
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3445
 
3446
  def getAllBrands(self, ):
3447
    """
3448
    Returns list of brand names
3449
    """
3450
    self.send_getAllBrands()
3451
    return self.recv_getAllBrands()
3452
 
3453
  def send_getAllBrands(self, ):
3454
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3455
    args = getAllBrands_args()
3456
    args.write(self._oprot)
3457
    self._oprot.writeMessageEnd()
3458
    self._oprot.trans.flush()
3459
 
3460
  def recv_getAllBrands(self, ):
3461
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3462
    if mtype == TMessageType.EXCEPTION:
3463
      x = TApplicationException()
3464
      x.read(self._iprot)
3465
      self._iprot.readMessageEnd()
3466
      raise x
3467
    result = getAllBrands_result()
3468
    result.read(self._iprot)
3469
    self._iprot.readMessageEnd()
3470
    if result.success is not None:
3471
      return result.success
3472
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3473
 
3474
  def getAllSources(self, ):
3475
    """
3476
    Return list of all sources
3477
    """
3478
    self.send_getAllSources()
3479
    return self.recv_getAllSources()
3480
 
3481
  def send_getAllSources(self, ):
3482
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3483
    args = getAllSources_args()
3484
    args.write(self._oprot)
3485
    self._oprot.writeMessageEnd()
3486
    self._oprot.trans.flush()
3487
 
3488
  def recv_getAllSources(self, ):
3489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3490
    if mtype == TMessageType.EXCEPTION:
3491
      x = TApplicationException()
3492
      x.read(self._iprot)
3493
      self._iprot.readMessageEnd()
3494
      raise x
3495
    result = getAllSources_result()
3496
    result.read(self._iprot)
3497
    self._iprot.readMessageEnd()
3498
    if result.success is not None:
3499
      return result.success
3500
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3501
 
3502
  def getItemPricingBySource(self, itemId, sourceId):
3503
    """
3504
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3505
 
3506
    Parameters:
3507
     - itemId
3508
     - sourceId
3509
    """
3510
    self.send_getItemPricingBySource(itemId, sourceId)
3511
    return self.recv_getItemPricingBySource()
3512
 
3513
  def send_getItemPricingBySource(self, itemId, sourceId):
3514
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3515
    args = getItemPricingBySource_args()
3516
    args.itemId = itemId
3517
    args.sourceId = sourceId
3518
    args.write(self._oprot)
3519
    self._oprot.writeMessageEnd()
3520
    self._oprot.trans.flush()
3521
 
3522
  def recv_getItemPricingBySource(self, ):
3523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3524
    if mtype == TMessageType.EXCEPTION:
3525
      x = TApplicationException()
3526
      x.read(self._iprot)
3527
      self._iprot.readMessageEnd()
3528
      raise x
3529
    result = getItemPricingBySource_result()
3530
    result.read(self._iprot)
3531
    self._iprot.readMessageEnd()
3532
    if result.success is not None:
3533
      return result.success
3534
    if result.cex is not None:
3535
      raise result.cex
3536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3537
 
3538
  def addSourceItemPricing(self, sourceItemPricing):
3539
    """
3540
    Adds prices to be displayed corresponding to the item if user comes from a source.
3541
    If item is not found or source is not found, it will throw exception.
3542
 
3543
    Parameters:
3544
     - sourceItemPricing
3545
    """
3546
    self.send_addSourceItemPricing(sourceItemPricing)
3547
    self.recv_addSourceItemPricing()
3548
 
3549
  def send_addSourceItemPricing(self, sourceItemPricing):
3550
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3551
    args = addSourceItemPricing_args()
3552
    args.sourceItemPricing = sourceItemPricing
3553
    args.write(self._oprot)
3554
    self._oprot.writeMessageEnd()
3555
    self._oprot.trans.flush()
3556
 
3557
  def recv_addSourceItemPricing(self, ):
3558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3559
    if mtype == TMessageType.EXCEPTION:
3560
      x = TApplicationException()
3561
      x.read(self._iprot)
3562
      self._iprot.readMessageEnd()
3563
      raise x
3564
    result = addSourceItemPricing_result()
3565
    result.read(self._iprot)
3566
    self._iprot.readMessageEnd()
3567
    if result.cex is not None:
3568
      raise result.cex
3569
    return
3570
 
3571
  def getAllSourcePricing(self, itemId):
3572
    """
3573
    Returns the list of source pricing information of an item.
3574
    Raises an exception if item not found corresponding to itemId
3575
 
3576
    Parameters:
3577
     - itemId
3578
    """
3579
    self.send_getAllSourcePricing(itemId)
3580
    return self.recv_getAllSourcePricing()
3581
 
3582
  def send_getAllSourcePricing(self, itemId):
3583
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3584
    args = getAllSourcePricing_args()
3585
    args.itemId = itemId
3586
    args.write(self._oprot)
3587
    self._oprot.writeMessageEnd()
3588
    self._oprot.trans.flush()
3589
 
3590
  def recv_getAllSourcePricing(self, ):
3591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3592
    if mtype == TMessageType.EXCEPTION:
3593
      x = TApplicationException()
3594
      x.read(self._iprot)
3595
      self._iprot.readMessageEnd()
3596
      raise x
3597
    result = getAllSourcePricing_result()
3598
    result.read(self._iprot)
3599
    self._iprot.readMessageEnd()
3600
    if result.success is not None:
3601
      return result.success
3602
    if result.cex is not None:
3603
      raise result.cex
3604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3605
 
3606
  def getItemForSource(self, item_id, sourceId):
3607
    """
3608
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3609
 
3610
    Parameters:
3611
     - item_id
3612
     - sourceId
3613
    """
3614
    self.send_getItemForSource(item_id, sourceId)
3615
    return self.recv_getItemForSource()
3616
 
3617
  def send_getItemForSource(self, item_id, sourceId):
3618
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3619
    args = getItemForSource_args()
3620
    args.item_id = item_id
3621
    args.sourceId = sourceId
3622
    args.write(self._oprot)
3623
    self._oprot.writeMessageEnd()
3624
    self._oprot.trans.flush()
3625
 
3626
  def recv_getItemForSource(self, ):
3627
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3628
    if mtype == TMessageType.EXCEPTION:
3629
      x = TApplicationException()
3630
      x.read(self._iprot)
3631
      self._iprot.readMessageEnd()
3632
      raise x
3633
    result = getItemForSource_result()
3634
    result.read(self._iprot)
3635
    self._iprot.readMessageEnd()
3636
    if result.success is not None:
3637
      return result.success
3638
    if result.cex is not None:
3639
      raise result.cex
3640
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3641
 
3642
  def searchItemsInRange(self, searchTerms, offset, limit):
3643
    """
3644
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3645
 
3646
    Parameters:
3647
     - searchTerms
3648
     - offset
3649
     - limit
3650
    """
3651
    self.send_searchItemsInRange(searchTerms, offset, limit)
3652
    return self.recv_searchItemsInRange()
3653
 
3654
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3655
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3656
    args = searchItemsInRange_args()
3657
    args.searchTerms = searchTerms
3658
    args.offset = offset
3659
    args.limit = limit
3660
    args.write(self._oprot)
3661
    self._oprot.writeMessageEnd()
3662
    self._oprot.trans.flush()
3663
 
3664
  def recv_searchItemsInRange(self, ):
3665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3666
    if mtype == TMessageType.EXCEPTION:
3667
      x = TApplicationException()
3668
      x.read(self._iprot)
3669
      self._iprot.readMessageEnd()
3670
      raise x
3671
    result = searchItemsInRange_result()
3672
    result.read(self._iprot)
3673
    self._iprot.readMessageEnd()
3674
    if result.success is not None:
3675
      return result.success
3676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3677
 
3678
  def getSearchResultCount(self, searchTerms):
3679
    """
3680
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3681
 
3682
    Parameters:
3683
     - searchTerms
3684
    """
3685
    self.send_getSearchResultCount(searchTerms)
3686
    return self.recv_getSearchResultCount()
3687
 
3688
  def send_getSearchResultCount(self, searchTerms):
3689
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3690
    args = getSearchResultCount_args()
3691
    args.searchTerms = searchTerms
3692
    args.write(self._oprot)
3693
    self._oprot.writeMessageEnd()
3694
    self._oprot.trans.flush()
3695
 
3696
  def recv_getSearchResultCount(self, ):
3697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3698
    if mtype == TMessageType.EXCEPTION:
3699
      x = TApplicationException()
3700
      x.read(self._iprot)
3701
      self._iprot.readMessageEnd()
3702
      raise x
3703
    result = getSearchResultCount_result()
3704
    result.read(self._iprot)
3705
    self._iprot.readMessageEnd()
3706
    if result.success is not None:
3707
      return result.success
3708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3709
 
3710
  def getProductNotifications(self, startDateTime):
3711
    """
3712
    Returns a list of product notifications added after a supplied datetime
3713
 
3714
    Parameters:
3715
     - startDateTime
3716
    """
3717
    self.send_getProductNotifications(startDateTime)
3718
    return self.recv_getProductNotifications()
3719
 
3720
  def send_getProductNotifications(self, startDateTime):
3721
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3722
    args = getProductNotifications_args()
3723
    args.startDateTime = startDateTime
3724
    args.write(self._oprot)
3725
    self._oprot.writeMessageEnd()
3726
    self._oprot.trans.flush()
3727
 
3728
  def recv_getProductNotifications(self, ):
3729
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3730
    if mtype == TMessageType.EXCEPTION:
3731
      x = TApplicationException()
3732
      x.read(self._iprot)
3733
      self._iprot.readMessageEnd()
3734
      raise x
3735
    result = getProductNotifications_result()
3736
    result.read(self._iprot)
3737
    self._iprot.readMessageEnd()
3738
    if result.success is not None:
3739
      return result.success
3740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3741
 
7897 amar.kumar 3742
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3743
    """
3744
    Returns a list of count of requests for product notification against each item
3745
 
3746
    Parameters:
3747
     - startDateTime
7897 amar.kumar 3748
     - categoryId
5944 mandeep.dh 3749
    """
7897 amar.kumar 3750
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3751
    return self.recv_getProductNotificationRequestCount()
3752
 
7897 amar.kumar 3753
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3754
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3755
    args = getProductNotificationRequestCount_args()
3756
    args.startDateTime = startDateTime
7897 amar.kumar 3757
    args.categoryId = categoryId
5944 mandeep.dh 3758
    args.write(self._oprot)
3759
    self._oprot.writeMessageEnd()
3760
    self._oprot.trans.flush()
3761
 
3762
  def recv_getProductNotificationRequestCount(self, ):
3763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3764
    if mtype == TMessageType.EXCEPTION:
3765
      x = TApplicationException()
3766
      x.read(self._iprot)
3767
      self._iprot.readMessageEnd()
3768
      raise x
3769
    result = getProductNotificationRequestCount_result()
3770
    result.read(self._iprot)
3771
    self._iprot.readMessageEnd()
3772
    if result.success is not None:
3773
      return result.success
3774
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3775
 
3776
  def addAuthorizationLog(self, itemId, username, reason):
3777
    """
3778
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3779
 
3780
    Parameters:
3781
     - itemId
3782
     - username
3783
     - reason
3784
    """
3785
    self.send_addAuthorizationLog(itemId, username, reason)
3786
    return self.recv_addAuthorizationLog()
3787
 
3788
  def send_addAuthorizationLog(self, itemId, username, reason):
3789
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3790
    args = addAuthorizationLog_args()
3791
    args.itemId = itemId
3792
    args.username = username
3793
    args.reason = reason
3794
    args.write(self._oprot)
3795
    self._oprot.writeMessageEnd()
3796
    self._oprot.trans.flush()
3797
 
3798
  def recv_addAuthorizationLog(self, ):
3799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3800
    if mtype == TMessageType.EXCEPTION:
3801
      x = TApplicationException()
3802
      x.read(self._iprot)
3803
      self._iprot.readMessageEnd()
3804
      raise x
3805
    result = addAuthorizationLog_result()
3806
    result.read(self._iprot)
3807
    self._iprot.readMessageEnd()
3808
    if result.success is not None:
3809
      return result.success
3810
    if result.cex is not None:
3811
      raise result.cex
3812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3813
 
3814
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3815
    """
3816
    Parameters:
3817
     - catalog_item_id
3818
     - voucherType
3819
     - voucherAmount
3820
    """
3821
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3822
    return self.recv_addupdateVoucherForItem()
3823
 
3824
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3825
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3826
    args = addupdateVoucherForItem_args()
3827
    args.catalog_item_id = catalog_item_id
3828
    args.voucherType = voucherType
3829
    args.voucherAmount = voucherAmount
3830
    args.write(self._oprot)
3831
    self._oprot.writeMessageEnd()
3832
    self._oprot.trans.flush()
3833
 
3834
  def recv_addupdateVoucherForItem(self, ):
3835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3836
    if mtype == TMessageType.EXCEPTION:
3837
      x = TApplicationException()
3838
      x.read(self._iprot)
3839
      self._iprot.readMessageEnd()
3840
      raise x
3841
    result = addupdateVoucherForItem_result()
3842
    result.read(self._iprot)
3843
    self._iprot.readMessageEnd()
3844
    if result.success is not None:
3845
      return result.success
3846
    if result.cex is not None:
3847
      raise result.cex
3848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3849
 
3850
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3851
    """
3852
    Parameters:
3853
     - catalog_item_id
3854
     - voucherType
3855
    """
3856
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3857
    return self.recv_deleteVoucherForItem()
3858
 
3859
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3860
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3861
    args = deleteVoucherForItem_args()
3862
    args.catalog_item_id = catalog_item_id
3863
    args.voucherType = voucherType
3864
    args.write(self._oprot)
3865
    self._oprot.writeMessageEnd()
3866
    self._oprot.trans.flush()
3867
 
3868
  def recv_deleteVoucherForItem(self, ):
3869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3870
    if mtype == TMessageType.EXCEPTION:
3871
      x = TApplicationException()
3872
      x.read(self._iprot)
3873
      self._iprot.readMessageEnd()
3874
      raise x
3875
    result = deleteVoucherForItem_result()
3876
    result.read(self._iprot)
3877
    self._iprot.readMessageEnd()
3878
    if result.success is not None:
3879
      return result.success
3880
    if result.cex is not None:
3881
      raise result.cex
3882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3883
 
3884
  def getVoucherAmount(self, itemId, voucherType):
3885
    """
3886
    Parameters:
3887
     - itemId
3888
     - voucherType
3889
    """
3890
    self.send_getVoucherAmount(itemId, voucherType)
3891
    return self.recv_getVoucherAmount()
3892
 
3893
  def send_getVoucherAmount(self, itemId, voucherType):
3894
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3895
    args = getVoucherAmount_args()
3896
    args.itemId = itemId
3897
    args.voucherType = voucherType
3898
    args.write(self._oprot)
3899
    self._oprot.writeMessageEnd()
3900
    self._oprot.trans.flush()
3901
 
3902
  def recv_getVoucherAmount(self, ):
3903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3904
    if mtype == TMessageType.EXCEPTION:
3905
      x = TApplicationException()
3906
      x.read(self._iprot)
3907
      self._iprot.readMessageEnd()
3908
      raise x
3909
    result = getVoucherAmount_result()
3910
    result.read(self._iprot)
3911
    self._iprot.readMessageEnd()
3912
    if result.success is not None:
3913
      return result.success
3914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3915
 
3916
  def getAllItemVouchers(self, itemId):
3917
    """
3918
    Parameters:
3919
     - itemId
3920
    """
3921
    self.send_getAllItemVouchers(itemId)
3922
    return self.recv_getAllItemVouchers()
3923
 
3924
  def send_getAllItemVouchers(self, itemId):
3925
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3926
    args = getAllItemVouchers_args()
3927
    args.itemId = itemId
3928
    args.write(self._oprot)
3929
    self._oprot.writeMessageEnd()
3930
    self._oprot.trans.flush()
3931
 
3932
  def recv_getAllItemVouchers(self, ):
3933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3934
    if mtype == TMessageType.EXCEPTION:
3935
      x = TApplicationException()
3936
      x.read(self._iprot)
3937
      self._iprot.readMessageEnd()
3938
      raise x
3939
    result = getAllItemVouchers_result()
3940
    result.read(self._iprot)
3941
    self._iprot.readMessageEnd()
3942
    if result.success is not None:
3943
      return result.success
3944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3945
 
3946
  def isValidCatalogItemId(self, catalog_item_id):
3947
    """
3948
    Parameters:
3949
     - catalog_item_id
3950
    """
3951
    self.send_isValidCatalogItemId(catalog_item_id)
3952
    return self.recv_isValidCatalogItemId()
3953
 
3954
  def send_isValidCatalogItemId(self, catalog_item_id):
3955
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3956
    args = isValidCatalogItemId_args()
3957
    args.catalog_item_id = catalog_item_id
3958
    args.write(self._oprot)
3959
    self._oprot.writeMessageEnd()
3960
    self._oprot.trans.flush()
3961
 
3962
  def recv_isValidCatalogItemId(self, ):
3963
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3964
    if mtype == TMessageType.EXCEPTION:
3965
      x = TApplicationException()
3966
      x.read(self._iprot)
3967
      self._iprot.readMessageEnd()
3968
      raise x
3969
    result = isValidCatalogItemId_result()
3970
    result.read(self._iprot)
3971
    self._iprot.readMessageEnd()
3972
    if result.success is not None:
3973
      return result.success
3974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3975
 
7330 amit.gupta 3976
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3977
    """
3978
    Parameters:
3979
     - itemId
7330 amit.gupta 3980
     - stateId
6039 amit.gupta 3981
     - price
3982
    """
7330 amit.gupta 3983
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3984
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3985
 
7330 amit.gupta 3986
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3987
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3988
    args = getVatPercentageForItem_args()
3989
    args.itemId = itemId
7330 amit.gupta 3990
    args.stateId = stateId
6039 amit.gupta 3991
    args.price = price
3992
    args.write(self._oprot)
3993
    self._oprot.writeMessageEnd()
3994
    self._oprot.trans.flush()
3995
 
3996
  def recv_getVatPercentageForItem(self, ):
3997
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3998
    if mtype == TMessageType.EXCEPTION:
3999
      x = TApplicationException()
4000
      x.read(self._iprot)
4001
      self._iprot.readMessageEnd()
4002
      raise x
4003
    result = getVatPercentageForItem_result()
4004
    result.read(self._iprot)
4005
    self._iprot.readMessageEnd()
4006
    if result.success is not None:
4007
      return result.success
7340 amit.gupta 4008
    if result.cex is not None:
4009
      raise result.cex
6039 amit.gupta 4010
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4011
 
4012
  def getVatAmountForItem(self, itemId, price):
4013
    """
4014
    Parameters:
4015
     - itemId
4016
     - price
4017
    """
4018
    self.send_getVatAmountForItem(itemId, price)
4019
    return self.recv_getVatAmountForItem()
4020
 
4021
  def send_getVatAmountForItem(self, itemId, price):
4022
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4023
    args = getVatAmountForItem_args()
4024
    args.itemId = itemId
4025
    args.price = price
4026
    args.write(self._oprot)
4027
    self._oprot.writeMessageEnd()
4028
    self._oprot.trans.flush()
4029
 
4030
  def recv_getVatAmountForItem(self, ):
4031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4032
    if mtype == TMessageType.EXCEPTION:
4033
      x = TApplicationException()
4034
      x.read(self._iprot)
4035
      self._iprot.readMessageEnd()
4036
      raise x
4037
    result = getVatAmountForItem_result()
4038
    result.read(self._iprot)
4039
    self._iprot.readMessageEnd()
4040
    if result.success is not None:
4041
      return result.success
4042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4043
 
6531 vikram.rag 4044
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4045
    """
4046
    Parameters:
4047
     - offset
4048
     - limit
4049
    """
4050
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4051
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4052
 
6531 vikram.rag 4053
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4054
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4055
    args = getAllIgnoredInventoryUpdateItemsList_args()
4056
    args.offset = offset
4057
    args.limit = limit
4058
    args.write(self._oprot)
4059
    self._oprot.writeMessageEnd()
4060
    self._oprot.trans.flush()
4061
 
4062
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4064
    if mtype == TMessageType.EXCEPTION:
4065
      x = TApplicationException()
4066
      x.read(self._iprot)
4067
      self._iprot.readMessageEnd()
4068
      raise x
4069
    result = getAllIgnoredInventoryUpdateItemsList_result()
4070
    result.read(self._iprot)
4071
    self._iprot.readMessageEnd()
4072
    if result.success is not None:
4073
      return result.success
4074
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4075
 
6821 amar.kumar 4076
  def getAllAliveItems(self, ):
4077
    self.send_getAllAliveItems()
4078
    return self.recv_getAllAliveItems()
4079
 
4080
  def send_getAllAliveItems(self, ):
4081
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4082
    args = getAllAliveItems_args()
4083
    args.write(self._oprot)
4084
    self._oprot.writeMessageEnd()
4085
    self._oprot.trans.flush()
4086
 
4087
  def recv_getAllAliveItems(self, ):
4088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4089
    if mtype == TMessageType.EXCEPTION:
4090
      x = TApplicationException()
4091
      x.read(self._iprot)
4092
      self._iprot.readMessageEnd()
4093
      raise x
4094
    result = getAllAliveItems_result()
4095
    result.read(self._iprot)
4096
    self._iprot.readMessageEnd()
4097
    if result.success is not None:
4098
      return result.success
4099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4100
 
6921 anupam.sin 4101
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4102
    """
4103
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4104
 
6805 anupam.sin 4105
    Parameters:
4106
     - itemId
6921 anupam.sin 4107
     - price
6805 anupam.sin 4108
     - insurerId
4109
     - quantity
4110
    """
6921 anupam.sin 4111
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4112
    return self.recv_getInsuranceAmount()
4113
 
6921 anupam.sin 4114
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4115
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4116
    args = getInsuranceAmount_args()
4117
    args.itemId = itemId
6921 anupam.sin 4118
    args.price = price
6805 anupam.sin 4119
    args.insurerId = insurerId
4120
    args.quantity = quantity
4121
    args.write(self._oprot)
4122
    self._oprot.writeMessageEnd()
4123
    self._oprot.trans.flush()
4124
 
4125
  def recv_getInsuranceAmount(self, ):
4126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4127
    if mtype == TMessageType.EXCEPTION:
4128
      x = TApplicationException()
4129
      x.read(self._iprot)
4130
      self._iprot.readMessageEnd()
4131
      raise x
4132
    result = getInsuranceAmount_result()
4133
    result.read(self._iprot)
4134
    self._iprot.readMessageEnd()
4135
    if result.success is not None:
4136
      return result.success
4137
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4138
 
4139
  def getInsurer(self, insurerId):
4140
    """
4141
    Parameters:
4142
     - insurerId
4143
    """
4144
    self.send_getInsurer(insurerId)
4145
    return self.recv_getInsurer()
4146
 
4147
  def send_getInsurer(self, insurerId):
4148
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4149
    args = getInsurer_args()
4150
    args.insurerId = insurerId
4151
    args.write(self._oprot)
4152
    self._oprot.writeMessageEnd()
4153
    self._oprot.trans.flush()
4154
 
4155
  def recv_getInsurer(self, ):
4156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4157
    if mtype == TMessageType.EXCEPTION:
4158
      x = TApplicationException()
4159
      x.read(self._iprot)
4160
      self._iprot.readMessageEnd()
4161
      raise x
4162
    result = getInsurer_result()
4163
    result.read(self._iprot)
4164
    self._iprot.readMessageEnd()
4165
    if result.success is not None:
4166
      return result.success
4167
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4168
 
6838 vikram.rag 4169
  def getAllInsurers(self, ):
4170
    self.send_getAllInsurers()
4171
    return self.recv_getAllInsurers()
6805 anupam.sin 4172
 
6838 vikram.rag 4173
  def send_getAllInsurers(self, ):
4174
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4175
    args = getAllInsurers_args()
4176
    args.write(self._oprot)
4177
    self._oprot.writeMessageEnd()
4178
    self._oprot.trans.flush()
4179
 
4180
  def recv_getAllInsurers(self, ):
4181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4182
    if mtype == TMessageType.EXCEPTION:
4183
      x = TApplicationException()
4184
      x.read(self._iprot)
4185
      self._iprot.readMessageEnd()
4186
      raise x
4187
    result = getAllInsurers_result()
4188
    result.read(self._iprot)
4189
    self._iprot.readMessageEnd()
4190
    if result.success is not None:
4191
      return result.success
4192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4193
 
6962 rajveer 4194
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4195
    """
4196
    Parameters:
4197
     - insurerId
4198
     - amount
4199
    """
4200
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4201
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4202
 
6962 rajveer 4203
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4204
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4205
    args = updateInsuranceDeclaredAmount_args()
4206
    args.insurerId = insurerId
4207
    args.amount = amount
4208
    args.write(self._oprot)
4209
    self._oprot.writeMessageEnd()
4210
    self._oprot.trans.flush()
4211
 
4212
  def recv_updateInsuranceDeclaredAmount(self, ):
4213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4214
    if mtype == TMessageType.EXCEPTION:
4215
      x = TApplicationException()
4216
      x.read(self._iprot)
4217
      self._iprot.readMessageEnd()
4218
      raise x
4219
    result = updateInsuranceDeclaredAmount_result()
4220
    result.read(self._iprot)
4221
    self._iprot.readMessageEnd()
4222
    return
4223
 
7190 amar.kumar 4224
  def getFreebieForItem(self, itemId):
4225
    """
4226
    Parameters:
4227
     - itemId
4228
    """
4229
    self.send_getFreebieForItem(itemId)
4230
    return self.recv_getFreebieForItem()
6962 rajveer 4231
 
7190 amar.kumar 4232
  def send_getFreebieForItem(self, itemId):
4233
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4234
    args = getFreebieForItem_args()
4235
    args.itemId = itemId
4236
    args.write(self._oprot)
4237
    self._oprot.writeMessageEnd()
4238
    self._oprot.trans.flush()
4239
 
4240
  def recv_getFreebieForItem(self, ):
4241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4242
    if mtype == TMessageType.EXCEPTION:
4243
      x = TApplicationException()
4244
      x.read(self._iprot)
4245
      self._iprot.readMessageEnd()
4246
      raise x
4247
    result = getFreebieForItem_result()
4248
    result.read(self._iprot)
4249
    self._iprot.readMessageEnd()
4250
    if result.success is not None:
4251
      return result.success
4252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4253
 
4254
  def addOrUpdateFreebieForItem(self, freebieItem):
4255
    """
4256
    Parameters:
4257
     - freebieItem
4258
    """
4259
    self.send_addOrUpdateFreebieForItem(freebieItem)
4260
    self.recv_addOrUpdateFreebieForItem()
4261
 
4262
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4263
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4264
    args = addOrUpdateFreebieForItem_args()
4265
    args.freebieItem = freebieItem
4266
    args.write(self._oprot)
4267
    self._oprot.writeMessageEnd()
4268
    self._oprot.trans.flush()
4269
 
4270
  def recv_addOrUpdateFreebieForItem(self, ):
4271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4272
    if mtype == TMessageType.EXCEPTION:
4273
      x = TApplicationException()
4274
      x.read(self._iprot)
4275
      self._iprot.readMessageEnd()
4276
      raise x
4277
    result = addOrUpdateFreebieForItem_result()
4278
    result.read(self._iprot)
4279
    self._iprot.readMessageEnd()
4280
    return
4281
 
7272 amit.gupta 4282
  def addOrUpdateBrandInfo(self, brandInfo):
4283
    """
4284
    Parameters:
4285
     - brandInfo
4286
    """
4287
    self.send_addOrUpdateBrandInfo(brandInfo)
4288
    self.recv_addOrUpdateBrandInfo()
4289
 
4290
  def send_addOrUpdateBrandInfo(self, brandInfo):
4291
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4292
    args = addOrUpdateBrandInfo_args()
4293
    args.brandInfo = brandInfo
4294
    args.write(self._oprot)
4295
    self._oprot.writeMessageEnd()
4296
    self._oprot.trans.flush()
4297
 
4298
  def recv_addOrUpdateBrandInfo(self, ):
4299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4300
    if mtype == TMessageType.EXCEPTION:
4301
      x = TApplicationException()
4302
      x.read(self._iprot)
4303
      self._iprot.readMessageEnd()
4304
      raise x
4305
    result = addOrUpdateBrandInfo_result()
4306
    result.read(self._iprot)
4307
    self._iprot.readMessageEnd()
4308
    return
4309
 
4310
  def getBrandInfo(self, ):
4311
    self.send_getBrandInfo()
4312
    return self.recv_getBrandInfo()
4313
 
4314
  def send_getBrandInfo(self, ):
4315
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4316
    args = getBrandInfo_args()
4317
    args.write(self._oprot)
4318
    self._oprot.writeMessageEnd()
4319
    self._oprot.trans.flush()
4320
 
4321
  def recv_getBrandInfo(self, ):
4322
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4323
    if mtype == TMessageType.EXCEPTION:
4324
      x = TApplicationException()
4325
      x.read(self._iprot)
4326
      self._iprot.readMessageEnd()
4327
      raise x
4328
    result = getBrandInfo_result()
4329
    result.read(self._iprot)
4330
    self._iprot.readMessageEnd()
4331
    if result.success is not None:
4332
      return result.success
4333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4334
 
7256 rajveer 4335
  def getStorePricing(self, itemId):
4336
    """
4337
    Parameters:
4338
     - itemId
4339
    """
4340
    self.send_getStorePricing(itemId)
4341
    return self.recv_getStorePricing()
7190 amar.kumar 4342
 
7256 rajveer 4343
  def send_getStorePricing(self, itemId):
4344
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4345
    args = getStorePricing_args()
4346
    args.itemId = itemId
4347
    args.write(self._oprot)
4348
    self._oprot.writeMessageEnd()
4349
    self._oprot.trans.flush()
4350
 
4351
  def recv_getStorePricing(self, ):
4352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4353
    if mtype == TMessageType.EXCEPTION:
4354
      x = TApplicationException()
4355
      x.read(self._iprot)
4356
      self._iprot.readMessageEnd()
4357
      raise x
4358
    result = getStorePricing_result()
4359
    result.read(self._iprot)
4360
    self._iprot.readMessageEnd()
4361
    if result.success is not None:
4362
      return result.success
4363
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4364
 
7306 rajveer 4365
  def getStorePricings(self, itemIds):
4366
    """
4367
    Parameters:
4368
     - itemIds
4369
    """
4370
    self.send_getStorePricings(itemIds)
4371
    return self.recv_getStorePricings()
4372
 
4373
  def send_getStorePricings(self, itemIds):
4374
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4375
    args = getStorePricings_args()
4376
    args.itemIds = itemIds
4377
    args.write(self._oprot)
4378
    self._oprot.writeMessageEnd()
4379
    self._oprot.trans.flush()
4380
 
4381
  def recv_getStorePricings(self, ):
4382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4383
    if mtype == TMessageType.EXCEPTION:
4384
      x = TApplicationException()
4385
      x.read(self._iprot)
4386
      self._iprot.readMessageEnd()
4387
      raise x
4388
    result = getStorePricings_result()
4389
    result.read(self._iprot)
4390
    self._iprot.readMessageEnd()
4391
    if result.success is not None:
4392
      return result.success
4393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4394
 
7382 rajveer 4395
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4396
    """
4397
    Parameters:
4398
     - sp
7382 rajveer 4399
     - allColors
7265 rajveer 4400
    """
7382 rajveer 4401
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4402
    self.recv_updateStorePricing()
7256 rajveer 4403
 
7382 rajveer 4404
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4405
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4406
    args = updateStorePricing_args()
4407
    args.sp = sp
7382 rajveer 4408
    args.allColors = allColors
7265 rajveer 4409
    args.write(self._oprot)
4410
    self._oprot.writeMessageEnd()
4411
    self._oprot.trans.flush()
4412
 
4413
  def recv_updateStorePricing(self, ):
4414
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4415
    if mtype == TMessageType.EXCEPTION:
4416
      x = TApplicationException()
4417
      x.read(self._iprot)
4418
      self._iprot.readMessageEnd()
4419
      raise x
4420
    result = updateStorePricing_result()
4421
    result.read(self._iprot)
4422
    self._iprot.readMessageEnd()
4423
    return
4424
 
7281 kshitij.so 4425
  def getAllAmazonListedItems(self, ):
4426
    self.send_getAllAmazonListedItems()
4427
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4428
 
7281 kshitij.so 4429
  def send_getAllAmazonListedItems(self, ):
4430
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4431
    args = getAllAmazonListedItems_args()
4432
    args.write(self._oprot)
4433
    self._oprot.writeMessageEnd()
4434
    self._oprot.trans.flush()
4435
 
4436
  def recv_getAllAmazonListedItems(self, ):
4437
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4438
    if mtype == TMessageType.EXCEPTION:
4439
      x = TApplicationException()
4440
      x.read(self._iprot)
4441
      self._iprot.readMessageEnd()
4442
      raise x
4443
    result = getAllAmazonListedItems_result()
4444
    result.read(self._iprot)
4445
    self._iprot.readMessageEnd()
4446
    if result.success is not None:
4447
      return result.success
4448
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4449
 
8619 kshitij.so 4450
  def searchAmazonItems(self, searchTerm, offset, limit):
4451
    """
4452
    Parameters:
4453
     - searchTerm
4454
     - offset
4455
     - limit
4456
    """
4457
    self.send_searchAmazonItems(searchTerm, offset, limit)
4458
    return self.recv_searchAmazonItems()
4459
 
4460
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4461
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4462
    args = searchAmazonItems_args()
4463
    args.searchTerm = searchTerm
4464
    args.offset = offset
4465
    args.limit = limit
4466
    args.write(self._oprot)
4467
    self._oprot.writeMessageEnd()
4468
    self._oprot.trans.flush()
4469
 
4470
  def recv_searchAmazonItems(self, ):
4471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4472
    if mtype == TMessageType.EXCEPTION:
4473
      x = TApplicationException()
4474
      x.read(self._iprot)
4475
      self._iprot.readMessageEnd()
4476
      raise x
4477
    result = searchAmazonItems_result()
4478
    result.read(self._iprot)
4479
    self._iprot.readMessageEnd()
4480
    if result.success is not None:
4481
      return result.success
4482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4483
 
4484
  def getAmazonSearchResultCount(self, searchTerm):
4485
    """
4486
    Parameters:
4487
     - searchTerm
4488
    """
4489
    self.send_getAmazonSearchResultCount(searchTerm)
4490
    return self.recv_getAmazonSearchResultCount()
4491
 
4492
  def send_getAmazonSearchResultCount(self, searchTerm):
4493
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4494
    args = getAmazonSearchResultCount_args()
4495
    args.searchTerm = searchTerm
4496
    args.write(self._oprot)
4497
    self._oprot.writeMessageEnd()
4498
    self._oprot.trans.flush()
4499
 
4500
  def recv_getAmazonSearchResultCount(self, ):
4501
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4502
    if mtype == TMessageType.EXCEPTION:
4503
      x = TApplicationException()
4504
      x.read(self._iprot)
4505
      self._iprot.readMessageEnd()
4506
      raise x
4507
    result = getAmazonSearchResultCount_result()
4508
    result.read(self._iprot)
4509
    self._iprot.readMessageEnd()
4510
    if result.success is not None:
4511
      return result.success
4512
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4513
 
4514
  def getCountForAmazonlistedItems(self, ):
4515
    self.send_getCountForAmazonlistedItems()
4516
    return self.recv_getCountForAmazonlistedItems()
4517
 
4518
  def send_getCountForAmazonlistedItems(self, ):
4519
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4520
    args = getCountForAmazonlistedItems_args()
4521
    args.write(self._oprot)
4522
    self._oprot.writeMessageEnd()
4523
    self._oprot.trans.flush()
4524
 
4525
  def recv_getCountForAmazonlistedItems(self, ):
4526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4527
    if mtype == TMessageType.EXCEPTION:
4528
      x = TApplicationException()
4529
      x.read(self._iprot)
4530
      self._iprot.readMessageEnd()
4531
      raise x
4532
    result = getCountForAmazonlistedItems_result()
4533
    result.read(self._iprot)
4534
    self._iprot.readMessageEnd()
4535
    if result.success is not None:
4536
      return result.success
4537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4538
 
7281 kshitij.so 4539
  def getAmazonItemDetails(self, itemId):
4540
    """
4541
    Parameters:
4542
     - itemId
4543
    """
4544
    self.send_getAmazonItemDetails(itemId)
4545
    return self.recv_getAmazonItemDetails()
4546
 
4547
  def send_getAmazonItemDetails(self, itemId):
4548
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4549
    args = getAmazonItemDetails_args()
4550
    args.itemId = itemId
4551
    args.write(self._oprot)
4552
    self._oprot.writeMessageEnd()
4553
    self._oprot.trans.flush()
4554
 
4555
  def recv_getAmazonItemDetails(self, ):
4556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4557
    if mtype == TMessageType.EXCEPTION:
4558
      x = TApplicationException()
4559
      x.read(self._iprot)
4560
      self._iprot.readMessageEnd()
4561
      raise x
4562
    result = getAmazonItemDetails_result()
4563
    result.read(self._iprot)
4564
    self._iprot.readMessageEnd()
4565
    if result.success is not None:
4566
      return result.success
4567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4568
 
8168 kshitij.so 4569
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4570
    """
4571
    Parameters:
8168 kshitij.so 4572
     - amazonlisted
7281 kshitij.so 4573
    """
8168 kshitij.so 4574
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4575
    self.recv_updateAmazonItemDetails()
4576
 
8168 kshitij.so 4577
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4578
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4579
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4580
    args.amazonlisted = amazonlisted
7281 kshitij.so 4581
    args.write(self._oprot)
4582
    self._oprot.writeMessageEnd()
4583
    self._oprot.trans.flush()
4584
 
4585
  def recv_updateAmazonItemDetails(self, ):
4586
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4587
    if mtype == TMessageType.EXCEPTION:
4588
      x = TApplicationException()
4589
      x.read(self._iprot)
4590
      self._iprot.readMessageEnd()
4591
      raise x
4592
    result = updateAmazonItemDetails_result()
4593
    result.read(self._iprot)
4594
    self._iprot.readMessageEnd()
4595
    return
4596
 
4597
  def addAmazonItem(self, amazonlisted):
4598
    """
4599
    Parameters:
4600
     - amazonlisted
4601
    """
4602
    self.send_addAmazonItem(amazonlisted)
4603
    self.recv_addAmazonItem()
4604
 
4605
  def send_addAmazonItem(self, amazonlisted):
4606
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4607
    args = addAmazonItem_args()
4608
    args.amazonlisted = amazonlisted
4609
    args.write(self._oprot)
4610
    self._oprot.writeMessageEnd()
4611
    self._oprot.trans.flush()
4612
 
4613
  def recv_addAmazonItem(self, ):
4614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4615
    if mtype == TMessageType.EXCEPTION:
4616
      x = TApplicationException()
4617
      x.read(self._iprot)
4618
      self._iprot.readMessageEnd()
4619
      raise x
4620
    result = addAmazonItem_result()
4621
    result.read(self._iprot)
4622
    self._iprot.readMessageEnd()
4623
    return
4624
 
7291 vikram.rag 4625
  def getAsinItems(self, ):
4626
    self.send_getAsinItems()
4627
    return self.recv_getAsinItems()
7281 kshitij.so 4628
 
7291 vikram.rag 4629
  def send_getAsinItems(self, ):
4630
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4631
    args = getAsinItems_args()
4632
    args.write(self._oprot)
4633
    self._oprot.writeMessageEnd()
4634
    self._oprot.trans.flush()
4635
 
4636
  def recv_getAsinItems(self, ):
4637
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4638
    if mtype == TMessageType.EXCEPTION:
4639
      x = TApplicationException()
4640
      x.read(self._iprot)
4641
      self._iprot.readMessageEnd()
4642
      raise x
4643
    result = getAsinItems_result()
4644
    result.read(self._iprot)
4645
    self._iprot.readMessageEnd()
4646
    if result.success is not None:
4647
      return result.success
4648
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4649
 
4650
  def getAllFbaListedItems(self, ):
4651
    self.send_getAllFbaListedItems()
4652
    return self.recv_getAllFbaListedItems()
4653
 
4654
  def send_getAllFbaListedItems(self, ):
4655
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4656
    args = getAllFbaListedItems_args()
4657
    args.write(self._oprot)
4658
    self._oprot.writeMessageEnd()
4659
    self._oprot.trans.flush()
4660
 
4661
  def recv_getAllFbaListedItems(self, ):
4662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4663
    if mtype == TMessageType.EXCEPTION:
4664
      x = TApplicationException()
4665
      x.read(self._iprot)
4666
      self._iprot.readMessageEnd()
4667
      raise x
4668
    result = getAllFbaListedItems_result()
4669
    result.read(self._iprot)
4670
    self._iprot.readMessageEnd()
4671
    if result.success is not None:
4672
      return result.success
4673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4674
 
4675
  def getAllNonFbaListedItems(self, ):
4676
    self.send_getAllNonFbaListedItems()
4677
    return self.recv_getAllNonFbaListedItems()
4678
 
4679
  def send_getAllNonFbaListedItems(self, ):
4680
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4681
    args = getAllNonFbaListedItems_args()
4682
    args.write(self._oprot)
4683
    self._oprot.writeMessageEnd()
4684
    self._oprot.trans.flush()
4685
 
4686
  def recv_getAllNonFbaListedItems(self, ):
4687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4688
    if mtype == TMessageType.EXCEPTION:
4689
      x = TApplicationException()
4690
      x.read(self._iprot)
4691
      self._iprot.readMessageEnd()
4692
      raise x
4693
    result = getAllNonFbaListedItems_result()
4694
    result.read(self._iprot)
4695
    self._iprot.readMessageEnd()
4696
    if result.success is not None:
4697
      return result.success
4698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4699
 
7460 kshitij.so 4700
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4701
    """
4702
    Parameters:
4703
     - itemId
4704
     - holdInventory
4705
     - defaultInventory
4706
    """
4707
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4708
    return self.recv_updateItemInventory()
7291 vikram.rag 4709
 
7460 kshitij.so 4710
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4711
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4712
    args = updateItemInventory_args()
4713
    args.itemId = itemId
4714
    args.holdInventory = holdInventory
4715
    args.defaultInventory = defaultInventory
4716
    args.write(self._oprot)
4717
    self._oprot.writeMessageEnd()
4718
    self._oprot.trans.flush()
4719
 
4720
  def recv_updateItemInventory(self, ):
4721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4722
    if mtype == TMessageType.EXCEPTION:
4723
      x = TApplicationException()
4724
      x.read(self._iprot)
4725
      self._iprot.readMessageEnd()
4726
      raise x
4727
    result = updateItemInventory_result()
4728
    result.read(self._iprot)
4729
    self._iprot.readMessageEnd()
4730
    if result.success is not None:
4731
      return result.success
4732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4733
 
7770 kshitij.so 4734
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4735
    """
4736
    Parameters:
4737
     - type
4738
     - sku
4739
     - timestamp
4740
    """
4741
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4742
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4743
 
7770 kshitij.so 4744
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4745
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4746
    args = updateTimestampForAmazonFeeds_args()
4747
    args.type = type
4748
    args.sku = sku
4749
    args.timestamp = timestamp
4750
    args.write(self._oprot)
4751
    self._oprot.writeMessageEnd()
4752
    self._oprot.trans.flush()
4753
 
4754
  def recv_updateTimestampForAmazonFeeds(self, ):
4755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4756
    if mtype == TMessageType.EXCEPTION:
4757
      x = TApplicationException()
4758
      x.read(self._iprot)
4759
      self._iprot.readMessageEnd()
4760
      raise x
4761
    result = updateTimestampForAmazonFeeds_result()
4762
    result.read(self._iprot)
4763
    self._iprot.readMessageEnd()
4764
    if result.success is not None:
4765
      return result.success
4766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4767
 
7897 amar.kumar 4768
  def getAllParentCategories(self, ):
4769
    self.send_getAllParentCategories()
4770
    return self.recv_getAllParentCategories()
7770 kshitij.so 4771
 
7897 amar.kumar 4772
  def send_getAllParentCategories(self, ):
4773
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4774
    args = getAllParentCategories_args()
4775
    args.write(self._oprot)
4776
    self._oprot.writeMessageEnd()
4777
    self._oprot.trans.flush()
4778
 
4779
  def recv_getAllParentCategories(self, ):
4780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4781
    if mtype == TMessageType.EXCEPTION:
4782
      x = TApplicationException()
4783
      x.read(self._iprot)
4784
      self._iprot.readMessageEnd()
4785
      raise x
4786
    result = getAllParentCategories_result()
4787
    result.read(self._iprot)
4788
    self._iprot.readMessageEnd()
4789
    if result.success is not None:
4790
      return result.success
4791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4792
 
7977 kshitij.so 4793
  def addPageViewEvent(self, pageViewEvents):
4794
    """
4795
    Parameters:
4796
     - pageViewEvents
4797
    """
4798
    self.send_addPageViewEvent(pageViewEvents)
4799
    self.recv_addPageViewEvent()
7897 amar.kumar 4800
 
7977 kshitij.so 4801
  def send_addPageViewEvent(self, pageViewEvents):
4802
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4803
    args = addPageViewEvent_args()
4804
    args.pageViewEvents = pageViewEvents
4805
    args.write(self._oprot)
4806
    self._oprot.writeMessageEnd()
4807
    self._oprot.trans.flush()
4808
 
4809
  def recv_addPageViewEvent(self, ):
4810
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4811
    if mtype == TMessageType.EXCEPTION:
4812
      x = TApplicationException()
4813
      x.read(self._iprot)
4814
      self._iprot.readMessageEnd()
4815
      raise x
4816
    result = addPageViewEvent_result()
4817
    result.read(self._iprot)
4818
    self._iprot.readMessageEnd()
4819
    return
4820
 
4821
  def addCartEvent(self, cartEvents):
4822
    """
4823
    Parameters:
4824
     - cartEvents
4825
    """
4826
    self.send_addCartEvent(cartEvents)
4827
    self.recv_addCartEvent()
4828
 
4829
  def send_addCartEvent(self, cartEvents):
4830
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4831
    args = addCartEvent_args()
4832
    args.cartEvents = cartEvents
4833
    args.write(self._oprot)
4834
    self._oprot.writeMessageEnd()
4835
    self._oprot.trans.flush()
4836
 
4837
  def recv_addCartEvent(self, ):
4838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4839
    if mtype == TMessageType.EXCEPTION:
4840
      x = TApplicationException()
4841
      x.read(self._iprot)
4842
      self._iprot.readMessageEnd()
4843
      raise x
4844
    result = addCartEvent_result()
4845
    result.read(self._iprot)
4846
    self._iprot.readMessageEnd()
4847
    return
4848
 
8182 amar.kumar 4849
  def addEbayItem(self, ebayItem):
4850
    """
4851
    Parameters:
4852
     - ebayItem
4853
    """
4854
    self.send_addEbayItem(ebayItem)
4855
    self.recv_addEbayItem()
4856
 
4857
  def send_addEbayItem(self, ebayItem):
4858
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4859
    args = addEbayItem_args()
4860
    args.ebayItem = ebayItem
4861
    args.write(self._oprot)
4862
    self._oprot.writeMessageEnd()
4863
    self._oprot.trans.flush()
4864
 
4865
  def recv_addEbayItem(self, ):
4866
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4867
    if mtype == TMessageType.EXCEPTION:
4868
      x = TApplicationException()
4869
      x.read(self._iprot)
4870
      self._iprot.readMessageEnd()
4871
      raise x
4872
    result = addEbayItem_result()
4873
    result.read(self._iprot)
4874
    self._iprot.readMessageEnd()
4875
    return
4876
 
4877
  def getEbayItem(self, listingId):
4878
    """
4879
    Parameters:
4880
     - listingId
4881
    """
4882
    self.send_getEbayItem(listingId)
4883
    return self.recv_getEbayItem()
4884
 
4885
  def send_getEbayItem(self, listingId):
4886
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4887
    args = getEbayItem_args()
4888
    args.listingId = listingId
4889
    args.write(self._oprot)
4890
    self._oprot.writeMessageEnd()
4891
    self._oprot.trans.flush()
4892
 
4893
  def recv_getEbayItem(self, ):
4894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4895
    if mtype == TMessageType.EXCEPTION:
4896
      x = TApplicationException()
4897
      x.read(self._iprot)
4898
      self._iprot.readMessageEnd()
4899
      raise x
4900
    result = getEbayItem_result()
4901
    result.read(self._iprot)
4902
    self._iprot.readMessageEnd()
4903
    if result.success is not None:
4904
      return result.success
4905
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4906
 
4907
  def updateEbayItem(self, ebayItem):
4908
    """
4909
    Parameters:
4910
     - ebayItem
4911
    """
4912
    self.send_updateEbayItem(ebayItem)
4913
    self.recv_updateEbayItem()
4914
 
4915
  def send_updateEbayItem(self, ebayItem):
4916
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4917
    args = updateEbayItem_args()
4918
    args.ebayItem = ebayItem
4919
    args.write(self._oprot)
4920
    self._oprot.writeMessageEnd()
4921
    self._oprot.trans.flush()
4922
 
4923
  def recv_updateEbayItem(self, ):
4924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4925
    if mtype == TMessageType.EXCEPTION:
4926
      x = TApplicationException()
4927
      x.read(self._iprot)
4928
      self._iprot.readMessageEnd()
4929
      raise x
4930
    result = updateEbayItem_result()
4931
    result.read(self._iprot)
4932
    self._iprot.readMessageEnd()
4933
    return
4934
 
8139 kshitij.so 4935
  def getAmazonListedItems(self, offset, limit):
4936
    """
4937
    Parameters:
4938
     - offset
4939
     - limit
4940
    """
4941
    self.send_getAmazonListedItems(offset, limit)
4942
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4943
 
8139 kshitij.so 4944
  def send_getAmazonListedItems(self, offset, limit):
4945
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4946
    args = getAmazonListedItems_args()
4947
    args.offset = offset
4948
    args.limit = limit
4949
    args.write(self._oprot)
4950
    self._oprot.writeMessageEnd()
4951
    self._oprot.trans.flush()
4952
 
4953
  def recv_getAmazonListedItems(self, ):
4954
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4955
    if mtype == TMessageType.EXCEPTION:
4956
      x = TApplicationException()
4957
      x.read(self._iprot)
4958
      self._iprot.readMessageEnd()
4959
      raise x
4960
    result = getAmazonListedItems_result()
4961
    result.read(self._iprot)
4962
    self._iprot.readMessageEnd()
4963
    if result.success is not None:
4964
      return result.success
4965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4966
 
8168 kshitij.so 4967
  def updateAmazonAttributesInBulk(self, amazonlisted):
4968
    """
4969
    Parameters:
4970
     - amazonlisted
4971
    """
4972
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4973
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4974
 
8168 kshitij.so 4975
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4976
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4977
    args = updateAmazonAttributesInBulk_args()
4978
    args.amazonlisted = amazonlisted
4979
    args.write(self._oprot)
4980
    self._oprot.writeMessageEnd()
4981
    self._oprot.trans.flush()
4982
 
4983
  def recv_updateAmazonAttributesInBulk(self, ):
4984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4985
    if mtype == TMessageType.EXCEPTION:
4986
      x = TApplicationException()
4987
      x.read(self._iprot)
4988
      self._iprot.readMessageEnd()
4989
      raise x
4990
    result = updateAmazonAttributesInBulk_result()
4991
    result.read(self._iprot)
4992
    self._iprot.readMessageEnd()
4993
    if result.success is not None:
4994
      return result.success
4995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4996
 
8379 vikram.rag 4997
  def getAllItemstoListOnFba(self, ):
4998
    self.send_getAllItemstoListOnFba()
4999
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 5000
 
8379 vikram.rag 5001
  def send_getAllItemstoListOnFba(self, ):
5002
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5003
    args = getAllItemstoListOnFba_args()
5004
    args.write(self._oprot)
5005
    self._oprot.writeMessageEnd()
5006
    self._oprot.trans.flush()
5007
 
5008
  def recv_getAllItemstoListOnFba(self, ):
5009
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5010
    if mtype == TMessageType.EXCEPTION:
5011
      x = TApplicationException()
5012
      x.read(self._iprot)
5013
      self._iprot.readMessageEnd()
5014
      raise x
5015
    result = getAllItemstoListOnFba_result()
5016
    result.read(self._iprot)
5017
    self._iprot.readMessageEnd()
5018
    if result.success is not None:
5019
      return result.success
5020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5021
 
5022
  def getAllItemstoListOnNonFba(self, ):
5023
    self.send_getAllItemstoListOnNonFba()
5024
    return self.recv_getAllItemstoListOnNonFba()
5025
 
5026
  def send_getAllItemstoListOnNonFba(self, ):
5027
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5028
    args = getAllItemstoListOnNonFba_args()
5029
    args.write(self._oprot)
5030
    self._oprot.writeMessageEnd()
5031
    self._oprot.trans.flush()
5032
 
5033
  def recv_getAllItemstoListOnNonFba(self, ):
5034
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5035
    if mtype == TMessageType.EXCEPTION:
5036
      x = TApplicationException()
5037
      x.read(self._iprot)
5038
      self._iprot.readMessageEnd()
5039
      raise x
5040
    result = getAllItemstoListOnNonFba_result()
5041
    result.read(self._iprot)
5042
    self._iprot.readMessageEnd()
5043
    if result.success is not None:
5044
      return result.success
5045
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5046
 
8619 kshitij.so 5047
  def updateAsin(self, item):
5048
    """
5049
    Parameters:
5050
     - item
5051
    """
5052
    self.send_updateAsin(item)
5053
    self.recv_updateAsin()
8616 vikram.rag 5054
 
8619 kshitij.so 5055
  def send_updateAsin(self, item):
5056
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5057
    args = updateAsin_args()
5058
    args.item = item
5059
    args.write(self._oprot)
5060
    self._oprot.writeMessageEnd()
5061
    self._oprot.trans.flush()
5062
 
5063
  def recv_updateAsin(self, ):
5064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5065
    if mtype == TMessageType.EXCEPTION:
5066
      x = TApplicationException()
5067
      x.read(self._iprot)
5068
      self._iprot.readMessageEnd()
5069
      raise x
5070
    result = updateAsin_result()
5071
    result.read(self._iprot)
5072
    self._iprot.readMessageEnd()
5073
    return
5074
 
8739 vikram.rag 5075
  def addOrUpdateSnapdealItem(self, snapdealitem):
5076
    """
5077
    Parameters:
5078
     - snapdealitem
5079
    """
5080
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5081
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5082
 
8739 vikram.rag 5083
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5084
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5085
    args = addOrUpdateSnapdealItem_args()
5086
    args.snapdealitem = snapdealitem
5087
    args.write(self._oprot)
5088
    self._oprot.writeMessageEnd()
5089
    self._oprot.trans.flush()
5090
 
5091
  def recv_addOrUpdateSnapdealItem(self, ):
5092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5093
    if mtype == TMessageType.EXCEPTION:
5094
      x = TApplicationException()
5095
      x.read(self._iprot)
5096
      self._iprot.readMessageEnd()
5097
      raise x
5098
    result = addOrUpdateSnapdealItem_result()
5099
    result.read(self._iprot)
5100
    self._iprot.readMessageEnd()
5101
    if result.success is not None:
5102
      return result.success
5103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5104
 
5105
  def getSnapdealItem(self, item_id):
5106
    """
5107
    Parameters:
5108
     - item_id
5109
    """
5110
    self.send_getSnapdealItem(item_id)
5111
    return self.recv_getSnapdealItem()
5112
 
5113
  def send_getSnapdealItem(self, item_id):
5114
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5115
    args = getSnapdealItem_args()
5116
    args.item_id = item_id
5117
    args.write(self._oprot)
5118
    self._oprot.writeMessageEnd()
5119
    self._oprot.trans.flush()
5120
 
5121
  def recv_getSnapdealItem(self, ):
5122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5123
    if mtype == TMessageType.EXCEPTION:
5124
      x = TApplicationException()
5125
      x.read(self._iprot)
5126
      self._iprot.readMessageEnd()
5127
      raise x
5128
    result = getSnapdealItem_result()
5129
    result.read(self._iprot)
5130
    self._iprot.readMessageEnd()
5131
    if result.success is not None:
5132
      return result.success
5133
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5134
 
9242 kshitij.so 5135
  def getSnapdealItemDetails(self, item_id):
5136
    """
5137
    Parameters:
5138
     - item_id
5139
    """
5140
    self.send_getSnapdealItemDetails(item_id)
5141
    return self.recv_getSnapdealItemDetails()
5142
 
5143
  def send_getSnapdealItemDetails(self, item_id):
5144
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5145
    args = getSnapdealItemDetails_args()
5146
    args.item_id = item_id
5147
    args.write(self._oprot)
5148
    self._oprot.writeMessageEnd()
5149
    self._oprot.trans.flush()
5150
 
5151
  def recv_getSnapdealItemDetails(self, ):
5152
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5153
    if mtype == TMessageType.EXCEPTION:
5154
      x = TApplicationException()
5155
      x.read(self._iprot)
5156
      self._iprot.readMessageEnd()
5157
      raise x
5158
    result = getSnapdealItemDetails_result()
5159
    result.read(self._iprot)
5160
    self._iprot.readMessageEnd()
5161
    if result.success is not None:
5162
      return result.success
5163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5164
 
8739 vikram.rag 5165
  def getAllSnapdealItems(self, ):
5166
    self.send_getAllSnapdealItems()
5167
    return self.recv_getAllSnapdealItems()
5168
 
5169
  def send_getAllSnapdealItems(self, ):
5170
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5171
    args = getAllSnapdealItems_args()
5172
    args.write(self._oprot)
5173
    self._oprot.writeMessageEnd()
5174
    self._oprot.trans.flush()
5175
 
5176
  def recv_getAllSnapdealItems(self, ):
5177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5178
    if mtype == TMessageType.EXCEPTION:
5179
      x = TApplicationException()
5180
      x.read(self._iprot)
5181
      self._iprot.readMessageEnd()
5182
      raise x
5183
    result = getAllSnapdealItems_result()
5184
    result.read(self._iprot)
5185
    self._iprot.readMessageEnd()
5186
    if result.success is not None:
5187
      return result.success
5188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5189
 
9242 kshitij.so 5190
  def getSnapdealItems(self, offset, limit):
5191
    """
5192
    Parameters:
5193
     - offset
5194
     - limit
5195
    """
5196
    self.send_getSnapdealItems(offset, limit)
5197
    return self.recv_getSnapdealItems()
8739 vikram.rag 5198
 
9242 kshitij.so 5199
  def send_getSnapdealItems(self, offset, limit):
5200
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5201
    args = getSnapdealItems_args()
5202
    args.offset = offset
5203
    args.limit = limit
5204
    args.write(self._oprot)
5205
    self._oprot.writeMessageEnd()
5206
    self._oprot.trans.flush()
5207
 
5208
  def recv_getSnapdealItems(self, ):
5209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5210
    if mtype == TMessageType.EXCEPTION:
5211
      x = TApplicationException()
5212
      x.read(self._iprot)
5213
      self._iprot.readMessageEnd()
5214
      raise x
5215
    result = getSnapdealItems_result()
5216
    result.read(self._iprot)
5217
    self._iprot.readMessageEnd()
5218
    if result.success is not None:
5219
      return result.success
5220
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5221
 
5222
  def searchSnapdealItems(self, searchTerm, offset, limit):
5223
    """
5224
    Parameters:
5225
     - searchTerm
5226
     - offset
5227
     - limit
5228
    """
5229
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5230
    return self.recv_searchSnapdealItems()
5231
 
5232
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5233
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5234
    args = searchSnapdealItems_args()
5235
    args.searchTerm = searchTerm
5236
    args.offset = offset
5237
    args.limit = limit
5238
    args.write(self._oprot)
5239
    self._oprot.writeMessageEnd()
5240
    self._oprot.trans.flush()
5241
 
5242
  def recv_searchSnapdealItems(self, ):
5243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5244
    if mtype == TMessageType.EXCEPTION:
5245
      x = TApplicationException()
5246
      x.read(self._iprot)
5247
      self._iprot.readMessageEnd()
5248
      raise x
5249
    result = searchSnapdealItems_result()
5250
    result.read(self._iprot)
5251
    self._iprot.readMessageEnd()
5252
    if result.success is not None:
5253
      return result.success
5254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5255
 
5256
  def getCountForSnapdealItems(self, ):
5257
    self.send_getCountForSnapdealItems()
5258
    return self.recv_getCountForSnapdealItems()
5259
 
5260
  def send_getCountForSnapdealItems(self, ):
5261
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5262
    args = getCountForSnapdealItems_args()
5263
    args.write(self._oprot)
5264
    self._oprot.writeMessageEnd()
5265
    self._oprot.trans.flush()
5266
 
5267
  def recv_getCountForSnapdealItems(self, ):
5268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5269
    if mtype == TMessageType.EXCEPTION:
5270
      x = TApplicationException()
5271
      x.read(self._iprot)
5272
      self._iprot.readMessageEnd()
5273
      raise x
5274
    result = getCountForSnapdealItems_result()
5275
    result.read(self._iprot)
5276
    self._iprot.readMessageEnd()
5277
    if result.success is not None:
5278
      return result.success
5279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5280
 
5281
  def getSnapdealSearchResultCount(self, searchTerm):
5282
    """
5283
    Parameters:
5284
     - searchTerm
5285
    """
5286
    self.send_getSnapdealSearchResultCount(searchTerm)
5287
    return self.recv_getSnapdealSearchResultCount()
5288
 
5289
  def send_getSnapdealSearchResultCount(self, searchTerm):
5290
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5291
    args = getSnapdealSearchResultCount_args()
5292
    args.searchTerm = searchTerm
5293
    args.write(self._oprot)
5294
    self._oprot.writeMessageEnd()
5295
    self._oprot.trans.flush()
5296
 
5297
  def recv_getSnapdealSearchResultCount(self, ):
5298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5299
    if mtype == TMessageType.EXCEPTION:
5300
      x = TApplicationException()
5301
      x.read(self._iprot)
5302
      self._iprot.readMessageEnd()
5303
      raise x
5304
    result = getSnapdealSearchResultCount_result()
5305
    result.read(self._iprot)
5306
    self._iprot.readMessageEnd()
5307
    if result.success is not None:
5308
      return result.success
5309
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5310
 
9299 kshitij.so 5311
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5312
    """
5313
    Parameters:
5314
     - itemId
5315
     - insurerType
5316
    """
5317
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5318
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5319
 
9299 kshitij.so 5320
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5321
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5322
    args = getPrefferedInsurerForItem_args()
5323
    args.itemId = itemId
5324
    args.insurerType = insurerType
5325
    args.write(self._oprot)
5326
    self._oprot.writeMessageEnd()
5327
    self._oprot.trans.flush()
5328
 
5329
  def recv_getPrefferedInsurerForItem(self, ):
5330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5331
    if mtype == TMessageType.EXCEPTION:
5332
      x = TApplicationException()
5333
      x.read(self._iprot)
5334
      self._iprot.readMessageEnd()
5335
      raise x
5336
    result = getPrefferedInsurerForItem_result()
5337
    result.read(self._iprot)
5338
    self._iprot.readMessageEnd()
5339
    if result.success is not None:
5340
      return result.success
5341
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5342
 
9456 vikram.rag 5343
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5344
    """
5345
    Parameters:
5346
     - skuAtSnapdeal
5347
    """
5348
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5349
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5350
 
9456 vikram.rag 5351
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5352
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5353
    args = getSnapdealItembySkuAtSnapdeal_args()
5354
    args.skuAtSnapdeal = skuAtSnapdeal
5355
    args.write(self._oprot)
5356
    self._oprot.writeMessageEnd()
5357
    self._oprot.trans.flush()
5358
 
5359
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5360
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5361
    if mtype == TMessageType.EXCEPTION:
5362
      x = TApplicationException()
5363
      x.read(self._iprot)
5364
      self._iprot.readMessageEnd()
5365
      raise x
5366
    result = getSnapdealItembySkuAtSnapdeal_result()
5367
    result.read(self._iprot)
5368
    self._iprot.readMessageEnd()
5369
    if result.success is not None:
5370
      return result.success
5371
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5372
 
9621 manish.sha 5373
  def getProductFeedSubmit(self, catalogItemId):
5374
    """
5375
    Parameters:
5376
     - catalogItemId
5377
    """
5378
    self.send_getProductFeedSubmit(catalogItemId)
5379
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5380
 
9621 manish.sha 5381
  def send_getProductFeedSubmit(self, catalogItemId):
5382
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5383
    args = getProductFeedSubmit_args()
5384
    args.catalogItemId = catalogItemId
5385
    args.write(self._oprot)
5386
    self._oprot.writeMessageEnd()
5387
    self._oprot.trans.flush()
5388
 
5389
  def recv_getProductFeedSubmit(self, ):
5390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5391
    if mtype == TMessageType.EXCEPTION:
5392
      x = TApplicationException()
5393
      x.read(self._iprot)
5394
      self._iprot.readMessageEnd()
5395
      raise x
5396
    result = getProductFeedSubmit_result()
5397
    result.read(self._iprot)
5398
    self._iprot.readMessageEnd()
5399
    if result.success is not None:
5400
      return result.success
5401
    if result.cex is not None:
5402
      raise result.cex
5403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5404
 
5405
  def addProductFeedSubmit(self, productFeedSubmit):
5406
    """
5407
    Parameters:
5408
     - productFeedSubmit
5409
    """
5410
    self.send_addProductFeedSubmit(productFeedSubmit)
5411
    return self.recv_addProductFeedSubmit()
5412
 
5413
  def send_addProductFeedSubmit(self, productFeedSubmit):
5414
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5415
    args = addProductFeedSubmit_args()
5416
    args.productFeedSubmit = productFeedSubmit
5417
    args.write(self._oprot)
5418
    self._oprot.writeMessageEnd()
5419
    self._oprot.trans.flush()
5420
 
5421
  def recv_addProductFeedSubmit(self, ):
5422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5423
    if mtype == TMessageType.EXCEPTION:
5424
      x = TApplicationException()
5425
      x.read(self._iprot)
5426
      self._iprot.readMessageEnd()
5427
      raise x
5428
    result = addProductFeedSubmit_result()
5429
    result.read(self._iprot)
5430
    self._iprot.readMessageEnd()
5431
    if result.success is not None:
5432
      return result.success
5433
    if result.cex is not None:
5434
      raise result.cex
5435
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5436
 
5437
  def updateProductFeedSubmit(self, productFeedSubmit):
5438
    """
5439
    Parameters:
5440
     - productFeedSubmit
5441
    """
5442
    self.send_updateProductFeedSubmit(productFeedSubmit)
5443
    return self.recv_updateProductFeedSubmit()
5444
 
5445
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5446
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5447
    args = updateProductFeedSubmit_args()
5448
    args.productFeedSubmit = productFeedSubmit
5449
    args.write(self._oprot)
5450
    self._oprot.writeMessageEnd()
5451
    self._oprot.trans.flush()
5452
 
5453
  def recv_updateProductFeedSubmit(self, ):
5454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5455
    if mtype == TMessageType.EXCEPTION:
5456
      x = TApplicationException()
5457
      x.read(self._iprot)
5458
      self._iprot.readMessageEnd()
5459
      raise x
5460
    result = updateProductFeedSubmit_result()
5461
    result.read(self._iprot)
5462
    self._iprot.readMessageEnd()
5463
    if result.success is not None:
5464
      return result.success
5465
    if result.cex is not None:
5466
      raise result.cex
5467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5468
 
5469
  def deleteProductFeedSubmit(self, catalogItemId):
5470
    """
5471
    Parameters:
5472
     - catalogItemId
5473
    """
5474
    self.send_deleteProductFeedSubmit(catalogItemId)
5475
    return self.recv_deleteProductFeedSubmit()
5476
 
5477
  def send_deleteProductFeedSubmit(self, catalogItemId):
5478
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5479
    args = deleteProductFeedSubmit_args()
5480
    args.catalogItemId = catalogItemId
5481
    args.write(self._oprot)
5482
    self._oprot.writeMessageEnd()
5483
    self._oprot.trans.flush()
5484
 
5485
  def recv_deleteProductFeedSubmit(self, ):
5486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5487
    if mtype == TMessageType.EXCEPTION:
5488
      x = TApplicationException()
5489
      x.read(self._iprot)
5490
      self._iprot.readMessageEnd()
5491
      raise x
5492
    result = deleteProductFeedSubmit_result()
5493
    result.read(self._iprot)
5494
    self._iprot.readMessageEnd()
5495
    if result.success is not None:
5496
      return result.success
5497
    if result.cex is not None:
5498
      raise result.cex
5499
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5500
 
5501
  def getAllProductFeedSubmit(self, ):
5502
    self.send_getAllProductFeedSubmit()
5503
    return self.recv_getAllProductFeedSubmit()
5504
 
5505
  def send_getAllProductFeedSubmit(self, ):
5506
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5507
    args = getAllProductFeedSubmit_args()
5508
    args.write(self._oprot)
5509
    self._oprot.writeMessageEnd()
5510
    self._oprot.trans.flush()
5511
 
5512
  def recv_getAllProductFeedSubmit(self, ):
5513
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5514
    if mtype == TMessageType.EXCEPTION:
5515
      x = TApplicationException()
5516
      x.read(self._iprot)
5517
      self._iprot.readMessageEnd()
5518
      raise x
5519
    result = getAllProductFeedSubmit_result()
5520
    result.read(self._iprot)
5521
    self._iprot.readMessageEnd()
5522
    if result.success is not None:
5523
      return result.success
5524
    if result.cex is not None:
5525
      raise result.cex
5526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5527
 
9724 kshitij.so 5528
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5529
    """
5530
    Parameters:
5531
     - itemId
5532
     - sourceId
5533
    """
5534
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5535
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5536
 
9724 kshitij.so 5537
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5538
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5539
    args = getMarketplacedetailsForItem_args()
5540
    args.itemId = itemId
5541
    args.sourceId = sourceId
5542
    args.write(self._oprot)
5543
    self._oprot.writeMessageEnd()
5544
    self._oprot.trans.flush()
5545
 
5546
  def recv_getMarketplacedetailsForItem(self, ):
5547
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5548
    if mtype == TMessageType.EXCEPTION:
5549
      x = TApplicationException()
5550
      x.read(self._iprot)
5551
      self._iprot.readMessageEnd()
5552
      raise x
5553
    result = getMarketplacedetailsForItem_result()
5554
    result.read(self._iprot)
5555
    self._iprot.readMessageEnd()
5556
    if result.success is not None:
5557
      return result.success
5558
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5559
 
5560
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5561
    """
5562
    Parameters:
5563
     - marketPlaceItem
5564
    """
5565
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5566
    return self.recv_updateMarketplaceAttributesForItem()
5567
 
5568
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5569
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5570
    args = updateMarketplaceAttributesForItem_args()
5571
    args.marketPlaceItem = marketPlaceItem
5572
    args.write(self._oprot)
5573
    self._oprot.writeMessageEnd()
5574
    self._oprot.trans.flush()
5575
 
5576
  def recv_updateMarketplaceAttributesForItem(self, ):
5577
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5578
    if mtype == TMessageType.EXCEPTION:
5579
      x = TApplicationException()
5580
      x.read(self._iprot)
5581
      self._iprot.readMessageEnd()
5582
      raise x
5583
    result = updateMarketplaceAttributesForItem_result()
5584
    result.read(self._iprot)
5585
    self._iprot.readMessageEnd()
5586
    if result.success is not None:
5587
      return result.success
5588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5589
 
9779 kshitij.so 5590
  def getCostingForMarketplace(self, source, item_id):
5591
    """
5592
    Parameters:
5593
     - source
5594
     - item_id
5595
    """
5596
    self.send_getCostingForMarketplace(source, item_id)
5597
    return self.recv_getCostingForMarketplace()
5598
 
5599
  def send_getCostingForMarketplace(self, source, item_id):
5600
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5601
    args = getCostingForMarketplace_args()
5602
    args.source = source
5603
    args.item_id = item_id
5604
    args.write(self._oprot)
5605
    self._oprot.writeMessageEnd()
5606
    self._oprot.trans.flush()
5607
 
5608
  def recv_getCostingForMarketplace(self, ):
5609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5610
    if mtype == TMessageType.EXCEPTION:
5611
      x = TApplicationException()
5612
      x.read(self._iprot)
5613
      self._iprot.readMessageEnd()
5614
      raise x
5615
    result = getCostingForMarketplace_result()
5616
    result.read(self._iprot)
5617
    self._iprot.readMessageEnd()
5618
    if result.success is not None:
5619
      return result.success
5620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5621
 
9776 vikram.rag 5622
  def getMarketPlaceItemsForPriceUpdate(self, source):
5623
    """
5624
    Parameters:
5625
     - source
5626
    """
5627
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5628
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5629
 
9776 vikram.rag 5630
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5631
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5632
    args = getMarketPlaceItemsForPriceUpdate_args()
5633
    args.source = source
5634
    args.write(self._oprot)
5635
    self._oprot.writeMessageEnd()
5636
    self._oprot.trans.flush()
5637
 
5638
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5640
    if mtype == TMessageType.EXCEPTION:
5641
      x = TApplicationException()
5642
      x.read(self._iprot)
5643
      self._iprot.readMessageEnd()
5644
      raise x
5645
    result = getMarketPlaceItemsForPriceUpdate_result()
5646
    result.read(self._iprot)
5647
    self._iprot.readMessageEnd()
5648
    if result.success is not None:
5649
      return result.success
5650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5651
 
9816 kshitij.so 5652
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5653
    """
5654
    Parameters:
5655
     - skulist
5656
     - timestamp
9816 kshitij.so 5657
     - source
9776 vikram.rag 5658
    """
9816 kshitij.so 5659
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5660
    self.recv_updateMarketPlacePriceUpdateStatus()
5661
 
9816 kshitij.so 5662
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5663
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5664
    args = updateMarketPlacePriceUpdateStatus_args()
5665
    args.skulist = skulist
5666
    args.timestamp = timestamp
9816 kshitij.so 5667
    args.source = source
9776 vikram.rag 5668
    args.write(self._oprot)
5669
    self._oprot.writeMessageEnd()
5670
    self._oprot.trans.flush()
5671
 
5672
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5674
    if mtype == TMessageType.EXCEPTION:
5675
      x = TApplicationException()
5676
      x.read(self._iprot)
5677
      self._iprot.readMessageEnd()
5678
      raise x
5679
    result = updateMarketPlacePriceUpdateStatus_result()
5680
    result.read(self._iprot)
5681
    self._iprot.readMessageEnd()
5682
    return
5683
 
9861 rajveer 5684
  def updateItemHoldInventory(self, itemHoldMap):
5685
    """
5686
    Parameters:
5687
     - itemHoldMap
5688
    """
5689
    self.send_updateItemHoldInventory(itemHoldMap)
5690
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5691
 
9861 rajveer 5692
  def send_updateItemHoldInventory(self, itemHoldMap):
5693
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5694
    args = updateItemHoldInventory_args()
5695
    args.itemHoldMap = itemHoldMap
5696
    args.write(self._oprot)
5697
    self._oprot.writeMessageEnd()
5698
    self._oprot.trans.flush()
5699
 
5700
  def recv_updateItemHoldInventory(self, ):
5701
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5702
    if mtype == TMessageType.EXCEPTION:
5703
      x = TApplicationException()
5704
      x.read(self._iprot)
5705
      self._iprot.readMessageEnd()
5706
      raise x
5707
    result = updateItemHoldInventory_result()
5708
    result.read(self._iprot)
5709
    self._iprot.readMessageEnd()
5710
    return
5711
 
9895 vikram.rag 5712
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5713
    """
5714
    Parameters:
5715
     - item_id
5716
     - vendor_id
5717
     - nlc
5718
    """
5719
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5720
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5721
 
9895 vikram.rag 5722
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5723
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5724
    args = updateNlcAtMarketplaces_args()
5725
    args.item_id = item_id
5726
    args.vendor_id = vendor_id
5727
    args.nlc = nlc
5728
    args.write(self._oprot)
5729
    self._oprot.writeMessageEnd()
5730
    self._oprot.trans.flush()
5731
 
5732
  def recv_updateNlcAtMarketplaces(self, ):
5733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5734
    if mtype == TMessageType.EXCEPTION:
5735
      x = TApplicationException()
5736
      x.read(self._iprot)
5737
      self._iprot.readMessageEnd()
5738
      raise x
5739
    result = updateNlcAtMarketplaces_result()
5740
    result.read(self._iprot)
5741
    self._iprot.readMessageEnd()
5742
    return
5743
 
9945 vikram.rag 5744
  def getAllFlipkartItems(self, ):
5745
    self.send_getAllFlipkartItems()
5746
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5747
 
9945 vikram.rag 5748
  def send_getAllFlipkartItems(self, ):
5749
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5750
    args = getAllFlipkartItems_args()
5751
    args.write(self._oprot)
5752
    self._oprot.writeMessageEnd()
5753
    self._oprot.trans.flush()
5754
 
5755
  def recv_getAllFlipkartItems(self, ):
5756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5757
    if mtype == TMessageType.EXCEPTION:
5758
      x = TApplicationException()
5759
      x.read(self._iprot)
5760
      self._iprot.readMessageEnd()
5761
      raise x
5762
    result = getAllFlipkartItems_result()
5763
    result.read(self._iprot)
5764
    self._iprot.readMessageEnd()
5765
    if result.success is not None:
5766
      return result.success
5767
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5768
 
10097 kshitij.so 5769
  def addOrUpdateFlipkartItem(self, flipkartitem):
5770
    """
5771
    Parameters:
5772
     - flipkartitem
5773
    """
5774
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5775
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5776
 
10097 kshitij.so 5777
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5778
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5779
    args = addOrUpdateFlipkartItem_args()
5780
    args.flipkartitem = flipkartitem
5781
    args.write(self._oprot)
5782
    self._oprot.writeMessageEnd()
5783
    self._oprot.trans.flush()
5784
 
5785
  def recv_addOrUpdateFlipkartItem(self, ):
5786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5787
    if mtype == TMessageType.EXCEPTION:
5788
      x = TApplicationException()
5789
      x.read(self._iprot)
5790
      self._iprot.readMessageEnd()
5791
      raise x
5792
    result = addOrUpdateFlipkartItem_result()
5793
    result.read(self._iprot)
5794
    self._iprot.readMessageEnd()
5795
    if result.success is not None:
5796
      return result.success
5797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5798
 
5799
  def getFlipkartItem(self, item_id):
5800
    """
5801
    Parameters:
5802
     - item_id
5803
    """
5804
    self.send_getFlipkartItem(item_id)
5805
    return self.recv_getFlipkartItem()
5806
 
5807
  def send_getFlipkartItem(self, item_id):
5808
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5809
    args = getFlipkartItem_args()
5810
    args.item_id = item_id
5811
    args.write(self._oprot)
5812
    self._oprot.writeMessageEnd()
5813
    self._oprot.trans.flush()
5814
 
5815
  def recv_getFlipkartItem(self, ):
5816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5817
    if mtype == TMessageType.EXCEPTION:
5818
      x = TApplicationException()
5819
      x.read(self._iprot)
5820
      self._iprot.readMessageEnd()
5821
      raise x
5822
    result = getFlipkartItem_result()
5823
    result.read(self._iprot)
5824
    self._iprot.readMessageEnd()
5825
    if result.success is not None:
5826
      return result.success
5827
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5828
 
5829
  def getFlipkartItemDetails(self, item_id):
5830
    """
5831
    Parameters:
5832
     - item_id
5833
    """
5834
    self.send_getFlipkartItemDetails(item_id)
5835
    return self.recv_getFlipkartItemDetails()
5836
 
5837
  def send_getFlipkartItemDetails(self, item_id):
5838
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5839
    args = getFlipkartItemDetails_args()
5840
    args.item_id = item_id
5841
    args.write(self._oprot)
5842
    self._oprot.writeMessageEnd()
5843
    self._oprot.trans.flush()
5844
 
5845
  def recv_getFlipkartItemDetails(self, ):
5846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5847
    if mtype == TMessageType.EXCEPTION:
5848
      x = TApplicationException()
5849
      x.read(self._iprot)
5850
      self._iprot.readMessageEnd()
5851
      raise x
5852
    result = getFlipkartItemDetails_result()
5853
    result.read(self._iprot)
5854
    self._iprot.readMessageEnd()
5855
    if result.success is not None:
5856
      return result.success
5857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5858
 
5859
  def getFlipkartItems(self, offset, limit):
5860
    """
5861
    Parameters:
5862
     - offset
5863
     - limit
5864
    """
5865
    self.send_getFlipkartItems(offset, limit)
5866
    return self.recv_getFlipkartItems()
5867
 
5868
  def send_getFlipkartItems(self, offset, limit):
5869
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5870
    args = getFlipkartItems_args()
5871
    args.offset = offset
5872
    args.limit = limit
5873
    args.write(self._oprot)
5874
    self._oprot.writeMessageEnd()
5875
    self._oprot.trans.flush()
5876
 
5877
  def recv_getFlipkartItems(self, ):
5878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5879
    if mtype == TMessageType.EXCEPTION:
5880
      x = TApplicationException()
5881
      x.read(self._iprot)
5882
      self._iprot.readMessageEnd()
5883
      raise x
5884
    result = getFlipkartItems_result()
5885
    result.read(self._iprot)
5886
    self._iprot.readMessageEnd()
5887
    if result.success is not None:
5888
      return result.success
5889
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5890
 
5891
  def searchFlipkartItems(self, searchTerm, offset, limit):
5892
    """
5893
    Parameters:
5894
     - searchTerm
5895
     - offset
5896
     - limit
5897
    """
5898
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5899
    return self.recv_searchFlipkartItems()
5900
 
5901
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5902
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5903
    args = searchFlipkartItems_args()
5904
    args.searchTerm = searchTerm
5905
    args.offset = offset
5906
    args.limit = limit
5907
    args.write(self._oprot)
5908
    self._oprot.writeMessageEnd()
5909
    self._oprot.trans.flush()
5910
 
5911
  def recv_searchFlipkartItems(self, ):
5912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5913
    if mtype == TMessageType.EXCEPTION:
5914
      x = TApplicationException()
5915
      x.read(self._iprot)
5916
      self._iprot.readMessageEnd()
5917
      raise x
5918
    result = searchFlipkartItems_result()
5919
    result.read(self._iprot)
5920
    self._iprot.readMessageEnd()
5921
    if result.success is not None:
5922
      return result.success
5923
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5924
 
5925
  def getCountForFlipkartItems(self, ):
5926
    self.send_getCountForFlipkartItems()
5927
    return self.recv_getCountForFlipkartItems()
5928
 
5929
  def send_getCountForFlipkartItems(self, ):
5930
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5931
    args = getCountForFlipkartItems_args()
5932
    args.write(self._oprot)
5933
    self._oprot.writeMessageEnd()
5934
    self._oprot.trans.flush()
5935
 
5936
  def recv_getCountForFlipkartItems(self, ):
5937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5938
    if mtype == TMessageType.EXCEPTION:
5939
      x = TApplicationException()
5940
      x.read(self._iprot)
5941
      self._iprot.readMessageEnd()
5942
      raise x
5943
    result = getCountForFlipkartItems_result()
5944
    result.read(self._iprot)
5945
    self._iprot.readMessageEnd()
5946
    if result.success is not None:
5947
      return result.success
5948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5949
 
5950
  def getFlipkartSearchResultCount(self, searchTerm):
5951
    """
5952
    Parameters:
5953
     - searchTerm
5954
    """
5955
    self.send_getFlipkartSearchResultCount(searchTerm)
5956
    return self.recv_getFlipkartSearchResultCount()
5957
 
5958
  def send_getFlipkartSearchResultCount(self, searchTerm):
5959
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5960
    args = getFlipkartSearchResultCount_args()
5961
    args.searchTerm = searchTerm
5962
    args.write(self._oprot)
5963
    self._oprot.writeMessageEnd()
5964
    self._oprot.trans.flush()
5965
 
5966
  def recv_getFlipkartSearchResultCount(self, ):
5967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5968
    if mtype == TMessageType.EXCEPTION:
5969
      x = TApplicationException()
5970
      x.read(self._iprot)
5971
      self._iprot.readMessageEnd()
5972
      raise x
5973
    result = getFlipkartSearchResultCount_result()
5974
    result.read(self._iprot)
5975
    self._iprot.readMessageEnd()
5976
    if result.success is not None:
5977
      return result.success
5978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5979
 
5980
  def getAllFkItems(self, ):
5981
    self.send_getAllFkItems()
5982
    return self.recv_getAllFkItems()
5983
 
5984
  def send_getAllFkItems(self, ):
5985
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5986
    args = getAllFkItems_args()
5987
    args.write(self._oprot)
5988
    self._oprot.writeMessageEnd()
5989
    self._oprot.trans.flush()
5990
 
5991
  def recv_getAllFkItems(self, ):
5992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5993
    if mtype == TMessageType.EXCEPTION:
5994
      x = TApplicationException()
5995
      x.read(self._iprot)
5996
      self._iprot.readMessageEnd()
5997
      raise x
5998
    result = getAllFkItems_result()
5999
    result.read(self._iprot)
6000
    self._iprot.readMessageEnd()
6001
    if result.success is not None:
6002
      return result.success
6003
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6004
 
10140 vikram.rag 6005
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6006
    """
6007
    Parameters:
6008
     - sku
6009
    """
6010
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6011
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6012
 
10140 vikram.rag 6013
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6014
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6015
    args = getFlipkartItemBySkyAtFlipkart_args()
6016
    args.sku = sku
6017
    args.write(self._oprot)
6018
    self._oprot.writeMessageEnd()
6019
    self._oprot.trans.flush()
6020
 
6021
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6022
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6023
    if mtype == TMessageType.EXCEPTION:
6024
      x = TApplicationException()
6025
      x.read(self._iprot)
6026
      self._iprot.readMessageEnd()
6027
      raise x
6028
    result = getFlipkartItemBySkyAtFlipkart_result()
6029
    result.read(self._iprot)
6030
    self._iprot.readMessageEnd()
6031
    if result.success is not None:
6032
      return result.success
6033
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6034
 
11015 kshitij.so 6035
  def getMarketplaceHistory(self, source, offset, itemId):
6036
    """
6037
    Parameters:
6038
     - source
6039
     - offset
6040
     - itemId
6041
    """
6042
    self.send_getMarketplaceHistory(source, offset, itemId)
6043
    return self.recv_getMarketplaceHistory()
6044
 
6045
  def send_getMarketplaceHistory(self, source, offset, itemId):
6046
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6047
    args = getMarketplaceHistory_args()
6048
    args.source = source
6049
    args.offset = offset
6050
    args.itemId = itemId
6051
    args.write(self._oprot)
6052
    self._oprot.writeMessageEnd()
6053
    self._oprot.trans.flush()
6054
 
6055
  def recv_getMarketplaceHistory(self, ):
6056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6057
    if mtype == TMessageType.EXCEPTION:
6058
      x = TApplicationException()
6059
      x.read(self._iprot)
6060
      self._iprot.readMessageEnd()
6061
      raise x
6062
    result = getMarketplaceHistory_result()
6063
    result.read(self._iprot)
6064
    self._iprot.readMessageEnd()
6065
    if result.success is not None:
6066
      return result.success
6067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6068
 
10909 vikram.rag 6069
  def getAllFbbListedItems(self, ):
6070
    self.send_getAllFbbListedItems()
6071
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6072
 
10909 vikram.rag 6073
  def send_getAllFbbListedItems(self, ):
6074
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6075
    args = getAllFbbListedItems_args()
6076
    args.write(self._oprot)
6077
    self._oprot.writeMessageEnd()
6078
    self._oprot.trans.flush()
6079
 
6080
  def recv_getAllFbbListedItems(self, ):
6081
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6082
    if mtype == TMessageType.EXCEPTION:
6083
      x = TApplicationException()
6084
      x.read(self._iprot)
6085
      self._iprot.readMessageEnd()
6086
      raise x
6087
    result = getAllFbbListedItems_result()
6088
    result.read(self._iprot)
6089
    self._iprot.readMessageEnd()
6090
    if result.success is not None:
6091
      return result.success
6092
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6093
 
10924 vikram.rag 6094
  def getAllFbbPricingItems(self, ):
6095
    self.send_getAllFbbPricingItems()
6096
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6097
 
10924 vikram.rag 6098
  def send_getAllFbbPricingItems(self, ):
6099
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6100
    args = getAllFbbPricingItems_args()
6101
    args.write(self._oprot)
6102
    self._oprot.writeMessageEnd()
6103
    self._oprot.trans.flush()
6104
 
6105
  def recv_getAllFbbPricingItems(self, ):
6106
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6107
    if mtype == TMessageType.EXCEPTION:
6108
      x = TApplicationException()
6109
      x.read(self._iprot)
6110
      self._iprot.readMessageEnd()
6111
      raise x
6112
    result = getAllFbbPricingItems_result()
6113
    result.read(self._iprot)
6114
    self._iprot.readMessageEnd()
6115
    if result.success is not None:
6116
      return result.success
6117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6118
 
11015 kshitij.so 6119
  def getCountForMarketplaceHistory(self, source, itemId):
6120
    """
6121
    Parameters:
6122
     - source
6123
     - itemId
6124
    """
6125
    self.send_getCountForMarketplaceHistory(source, itemId)
6126
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6127
 
11015 kshitij.so 6128
  def send_getCountForMarketplaceHistory(self, source, itemId):
6129
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6130
    args = getCountForMarketplaceHistory_args()
6131
    args.source = source
6132
    args.itemId = itemId
6133
    args.write(self._oprot)
6134
    self._oprot.writeMessageEnd()
6135
    self._oprot.trans.flush()
6136
 
6137
  def recv_getCountForMarketplaceHistory(self, ):
6138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6139
    if mtype == TMessageType.EXCEPTION:
6140
      x = TApplicationException()
6141
      x.read(self._iprot)
6142
      self._iprot.readMessageEnd()
6143
      raise x
6144
    result = getCountForMarketplaceHistory_result()
6145
    result.read(self._iprot)
6146
    self._iprot.readMessageEnd()
6147
    if result.success is not None:
6148
      return result.success
6149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6150
 
6151
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6152
    """
6153
    Parameters:
6154
     - source
6155
     - startDate
6156
     - endDate
6157
     - offset
6158
     - limit
6159
     - itemId
6160
    """
6161
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6162
    return self.recv_getMarketplaceHistoryByDate()
6163
 
6164
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6165
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6166
    args = getMarketplaceHistoryByDate_args()
6167
    args.source = source
6168
    args.startDate = startDate
6169
    args.endDate = endDate
6170
    args.offset = offset
6171
    args.limit = limit
6172
    args.itemId = itemId
6173
    args.write(self._oprot)
6174
    self._oprot.writeMessageEnd()
6175
    self._oprot.trans.flush()
6176
 
6177
  def recv_getMarketplaceHistoryByDate(self, ):
6178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6179
    if mtype == TMessageType.EXCEPTION:
6180
      x = TApplicationException()
6181
      x.read(self._iprot)
6182
      self._iprot.readMessageEnd()
6183
      raise x
6184
    result = getMarketplaceHistoryByDate_result()
6185
    result.read(self._iprot)
6186
    self._iprot.readMessageEnd()
6187
    if result.success is not None:
6188
      return result.success
6189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6190
 
11531 vikram.rag 6191
  def getPrivateDealDetails(self, item_id):
6192
    """
6193
    Parameters:
6194
     - item_id
6195
    """
6196
    self.send_getPrivateDealDetails(item_id)
6197
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6198
 
11531 vikram.rag 6199
  def send_getPrivateDealDetails(self, item_id):
6200
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6201
    args = getPrivateDealDetails_args()
6202
    args.item_id = item_id
6203
    args.write(self._oprot)
6204
    self._oprot.writeMessageEnd()
6205
    self._oprot.trans.flush()
6206
 
6207
  def recv_getPrivateDealDetails(self, ):
6208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6209
    if mtype == TMessageType.EXCEPTION:
6210
      x = TApplicationException()
6211
      x.read(self._iprot)
6212
      self._iprot.readMessageEnd()
6213
      raise x
6214
    result = getPrivateDealDetails_result()
6215
    result.read(self._iprot)
6216
    self._iprot.readMessageEnd()
6217
    if result.success is not None:
6218
      return result.success
6219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6220
 
6221
  def getPrivateDealItems(self, offset, limit):
6222
    """
6223
    Parameters:
6224
     - offset
6225
     - limit
6226
    """
6227
    self.send_getPrivateDealItems(offset, limit)
6228
    return self.recv_getPrivateDealItems()
6229
 
6230
  def send_getPrivateDealItems(self, offset, limit):
6231
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6232
    args = getPrivateDealItems_args()
6233
    args.offset = offset
6234
    args.limit = limit
6235
    args.write(self._oprot)
6236
    self._oprot.writeMessageEnd()
6237
    self._oprot.trans.flush()
6238
 
6239
  def recv_getPrivateDealItems(self, ):
6240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6241
    if mtype == TMessageType.EXCEPTION:
6242
      x = TApplicationException()
6243
      x.read(self._iprot)
6244
      self._iprot.readMessageEnd()
6245
      raise x
6246
    result = getPrivateDealItems_result()
6247
    result.read(self._iprot)
6248
    self._iprot.readMessageEnd()
6249
    if result.success is not None:
6250
      return result.success
6251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6252
 
11653 amit.gupta 6253
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6254
    """
6255
    Parameters:
6256
     - itemIds
6257
     - daysDelta
6258
    """
6259
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6260
    return self.recv_getAllActivePrivateDeals()
6261
 
11653 amit.gupta 6262
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6263
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6264
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6265
    args.itemIds = itemIds
6266
    args.daysDelta = daysDelta
11592 amit.gupta 6267
    args.write(self._oprot)
6268
    self._oprot.writeMessageEnd()
6269
    self._oprot.trans.flush()
6270
 
6271
  def recv_getAllActivePrivateDeals(self, ):
6272
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6273
    if mtype == TMessageType.EXCEPTION:
6274
      x = TApplicationException()
6275
      x.read(self._iprot)
6276
      self._iprot.readMessageEnd()
6277
      raise x
6278
    result = getAllActivePrivateDeals_result()
6279
    result.read(self._iprot)
6280
    self._iprot.readMessageEnd()
6281
    if result.success is not None:
6282
      return result.success
6283
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6284
 
11531 vikram.rag 6285
  def addOrUpdatePrivateDeal(self, privateDeal):
6286
    """
6287
    Parameters:
6288
     - privateDeal
6289
    """
6290
    self.send_addOrUpdatePrivateDeal(privateDeal)
6291
    return self.recv_addOrUpdatePrivateDeal()
6292
 
6293
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6294
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6295
    args = addOrUpdatePrivateDeal_args()
6296
    args.privateDeal = privateDeal
6297
    args.write(self._oprot)
6298
    self._oprot.writeMessageEnd()
6299
    self._oprot.trans.flush()
6300
 
6301
  def recv_addOrUpdatePrivateDeal(self, ):
6302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6303
    if mtype == TMessageType.EXCEPTION:
6304
      x = TApplicationException()
6305
      x.read(self._iprot)
6306
      self._iprot.readMessageEnd()
6307
      raise x
6308
    result = addOrUpdatePrivateDeal_result()
6309
    result.read(self._iprot)
6310
    self._iprot.readMessageEnd()
6311
    if result.success is not None:
6312
      return result.success
6313
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6314
 
11635 vikram.rag 6315
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6316
    """
6317
    Parameters:
6318
     - beginIndex
6319
     - totalItems
6320
    """
6321
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6322
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6323
 
11635 vikram.rag 6324
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6325
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6326
    args = getPrivateDealsCatalogIds_args()
6327
    args.beginIndex = beginIndex
6328
    args.totalItems = totalItems
6329
    args.write(self._oprot)
6330
    self._oprot.writeMessageEnd()
6331
    self._oprot.trans.flush()
6332
 
6333
  def recv_getPrivateDealsCatalogIds(self, ):
6334
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6335
    if mtype == TMessageType.EXCEPTION:
6336
      x = TApplicationException()
6337
      x.read(self._iprot)
6338
      self._iprot.readMessageEnd()
6339
      raise x
6340
    result = getPrivateDealsCatalogIds_result()
6341
    result.read(self._iprot)
6342
    self._iprot.readMessageEnd()
6343
    if result.success is not None:
6344
      return result.success
6345
    if result.cex is not None:
6346
      raise result.cex
6347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6348
 
11645 amit.gupta 6349
  def getPrivateDealsCount(self, ):
6350
    self.send_getPrivateDealsCount()
6351
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6352
 
11645 amit.gupta 6353
  def send_getPrivateDealsCount(self, ):
6354
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6355
    args = getPrivateDealsCount_args()
6356
    args.write(self._oprot)
6357
    self._oprot.writeMessageEnd()
6358
    self._oprot.trans.flush()
6359
 
6360
  def recv_getPrivateDealsCount(self, ):
6361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6362
    if mtype == TMessageType.EXCEPTION:
6363
      x = TApplicationException()
6364
      x.read(self._iprot)
6365
      self._iprot.readMessageEnd()
6366
      raise x
6367
    result = getPrivateDealsCount_result()
6368
    result.read(self._iprot)
6369
    self._iprot.readMessageEnd()
6370
    if result.success is not None:
6371
      return result.success
6372
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6373
 
11905 kshitij.so 6374
  def getAmazonOutSyncItems(self, item_id):
6375
    """
6376
    Parameters:
6377
     - item_id
6378
    """
6379
    self.send_getAmazonOutSyncItems(item_id)
6380
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6381
 
11905 kshitij.so 6382
  def send_getAmazonOutSyncItems(self, item_id):
6383
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6384
    args = getAmazonOutSyncItems_args()
6385
    args.item_id = item_id
6386
    args.write(self._oprot)
6387
    self._oprot.writeMessageEnd()
6388
    self._oprot.trans.flush()
6389
 
6390
  def recv_getAmazonOutSyncItems(self, ):
6391
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6392
    if mtype == TMessageType.EXCEPTION:
6393
      x = TApplicationException()
6394
      x.read(self._iprot)
6395
      self._iprot.readMessageEnd()
6396
      raise x
6397
    result = getAmazonOutSyncItems_result()
6398
    result.read(self._iprot)
6399
    self._iprot.readMessageEnd()
6400
    if result.success is not None:
6401
      return result.success
6402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6403
 
6404
  def getAllPrivateDealsComparison(self, ):
6405
    self.send_getAllPrivateDealsComparison()
6406
    return self.recv_getAllPrivateDealsComparison()
6407
 
6408
  def send_getAllPrivateDealsComparison(self, ):
6409
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6410
    args = getAllPrivateDealsComparison_args()
6411
    args.write(self._oprot)
6412
    self._oprot.writeMessageEnd()
6413
    self._oprot.trans.flush()
6414
 
6415
  def recv_getAllPrivateDealsComparison(self, ):
6416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6417
    if mtype == TMessageType.EXCEPTION:
6418
      x = TApplicationException()
6419
      x.read(self._iprot)
6420
      self._iprot.readMessageEnd()
6421
      raise x
6422
    result = getAllPrivateDealsComparison_result()
6423
    result.read(self._iprot)
6424
    self._iprot.readMessageEnd()
6425
    if result.success is not None:
6426
      return result.success
6427
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6428
 
12133 kshitij.so 6429
  def getAllSnapdealMarketplaceItem(self, ):
6430
    self.send_getAllSnapdealMarketplaceItem()
6431
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6432
 
12133 kshitij.so 6433
  def send_getAllSnapdealMarketplaceItem(self, ):
6434
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6435
    args = getAllSnapdealMarketplaceItem_args()
6436
    args.write(self._oprot)
6437
    self._oprot.writeMessageEnd()
6438
    self._oprot.trans.flush()
6439
 
6440
  def recv_getAllSnapdealMarketplaceItem(self, ):
6441
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6442
    if mtype == TMessageType.EXCEPTION:
6443
      x = TApplicationException()
6444
      x.read(self._iprot)
6445
      self._iprot.readMessageEnd()
6446
      raise x
6447
    result = getAllSnapdealMarketplaceItem_result()
6448
    result.read(self._iprot)
6449
    self._iprot.readMessageEnd()
6450
    if result.success is not None:
6451
      return result.success
6452
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6453
 
6454
  def getAllFlipkartMarketplaceItem(self, ):
6455
    self.send_getAllFlipkartMarketplaceItem()
6456
    return self.recv_getAllFlipkartMarketplaceItem()
6457
 
6458
  def send_getAllFlipkartMarketplaceItem(self, ):
6459
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6460
    args = getAllFlipkartMarketplaceItem_args()
6461
    args.write(self._oprot)
6462
    self._oprot.writeMessageEnd()
6463
    self._oprot.trans.flush()
6464
 
6465
  def recv_getAllFlipkartMarketplaceItem(self, ):
6466
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6467
    if mtype == TMessageType.EXCEPTION:
6468
      x = TApplicationException()
6469
      x.read(self._iprot)
6470
      self._iprot.readMessageEnd()
6471
      raise x
6472
    result = getAllFlipkartMarketplaceItem_result()
6473
    result.read(self._iprot)
6474
    self._iprot.readMessageEnd()
6475
    if result.success is not None:
6476
      return result.success
6477
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6478
 
12243 kshitij.so 6479
  def addCompetitorScraping(self, competitorPricingMap):
6480
    """
6481
    Parameters:
6482
     - competitorPricingMap
6483
    """
6484
    self.send_addCompetitorScraping(competitorPricingMap)
6485
    self.recv_addCompetitorScraping()
12133 kshitij.so 6486
 
12243 kshitij.so 6487
  def send_addCompetitorScraping(self, competitorPricingMap):
6488
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6489
    args = addCompetitorScraping_args()
6490
    args.competitorPricingMap = competitorPricingMap
6491
    args.write(self._oprot)
6492
    self._oprot.writeMessageEnd()
6493
    self._oprot.trans.flush()
6494
 
6495
  def recv_addCompetitorScraping(self, ):
6496
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6497
    if mtype == TMessageType.EXCEPTION:
6498
      x = TApplicationException()
6499
      x.read(self._iprot)
6500
      self._iprot.readMessageEnd()
6501
      raise x
6502
    result = addCompetitorScraping_result()
6503
    result.read(self._iprot)
6504
    self._iprot.readMessageEnd()
6505
    return
6506
 
6507
  def getPreviousCompetitorScraping(self, delta):
6508
    """
6509
    Parameters:
6510
     - delta
6511
    """
6512
    self.send_getPreviousCompetitorScraping(delta)
6513
    return self.recv_getPreviousCompetitorScraping()
6514
 
6515
  def send_getPreviousCompetitorScraping(self, delta):
6516
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6517
    args = getPreviousCompetitorScraping_args()
6518
    args.delta = delta
6519
    args.write(self._oprot)
6520
    self._oprot.writeMessageEnd()
6521
    self._oprot.trans.flush()
6522
 
6523
  def recv_getPreviousCompetitorScraping(self, ):
6524
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6525
    if mtype == TMessageType.EXCEPTION:
6526
      x = TApplicationException()
6527
      x.read(self._iprot)
6528
      self._iprot.readMessageEnd()
6529
      raise x
6530
    result = getPreviousCompetitorScraping_result()
6531
    result.read(self._iprot)
6532
    self._iprot.readMessageEnd()
6533
    if result.success is not None:
6534
      return result.success
6535
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6536
 
12256 kshitij.so 6537
  def getUploadResultById(self, uploadId):
6538
    """
6539
    Parameters:
6540
     - uploadId
6541
    """
6542
    self.send_getUploadResultById(uploadId)
6543
    return self.recv_getUploadResultById()
12243 kshitij.so 6544
 
12256 kshitij.so 6545
  def send_getUploadResultById(self, uploadId):
6546
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6547
    args = getUploadResultById_args()
6548
    args.uploadId = uploadId
6549
    args.write(self._oprot)
6550
    self._oprot.writeMessageEnd()
6551
    self._oprot.trans.flush()
6552
 
6553
  def recv_getUploadResultById(self, ):
6554
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6555
    if mtype == TMessageType.EXCEPTION:
6556
      x = TApplicationException()
6557
      x.read(self._iprot)
6558
      self._iprot.readMessageEnd()
6559
      raise x
6560
    result = getUploadResultById_result()
6561
    result.read(self._iprot)
6562
    self._iprot.readMessageEnd()
6563
    if result.success is not None:
6564
      return result.success
6565
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6566
 
12363 kshitij.so 6567
  def addAmazonPromotion(self, amazonPromotions):
6568
    """
6569
    Parameters:
6570
     - amazonPromotions
6571
    """
6572
    self.send_addAmazonPromotion(amazonPromotions)
6573
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6574
 
12363 kshitij.so 6575
  def send_addAmazonPromotion(self, amazonPromotions):
6576
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6577
    args = addAmazonPromotion_args()
6578
    args.amazonPromotions = amazonPromotions
6579
    args.write(self._oprot)
6580
    self._oprot.writeMessageEnd()
6581
    self._oprot.trans.flush()
6582
 
6583
  def recv_addAmazonPromotion(self, ):
6584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6585
    if mtype == TMessageType.EXCEPTION:
6586
      x = TApplicationException()
6587
      x.read(self._iprot)
6588
      self._iprot.readMessageEnd()
6589
      raise x
6590
    result = addAmazonPromotion_result()
6591
    result.read(self._iprot)
6592
    self._iprot.readMessageEnd()
6593
    if result.success is not None:
6594
      return result.success
6595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6596
 
6597
  def getAmazonPromotion(self, startDate, endDate):
6598
    """
6599
    Parameters:
6600
     - startDate
6601
     - endDate
6602
    """
6603
    self.send_getAmazonPromotion(startDate, endDate)
6604
    return self.recv_getAmazonPromotion()
6605
 
6606
  def send_getAmazonPromotion(self, startDate, endDate):
6607
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6608
    args = getAmazonPromotion_args()
6609
    args.startDate = startDate
6610
    args.endDate = endDate
6611
    args.write(self._oprot)
6612
    self._oprot.writeMessageEnd()
6613
    self._oprot.trans.flush()
6614
 
6615
  def recv_getAmazonPromotion(self, ):
6616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6617
    if mtype == TMessageType.EXCEPTION:
6618
      x = TApplicationException()
6619
      x.read(self._iprot)
6620
      self._iprot.readMessageEnd()
6621
      raise x
6622
    result = getAmazonPromotion_result()
6623
    result.read(self._iprot)
6624
    self._iprot.readMessageEnd()
6625
    if result.success is not None:
6626
      return result.success
6627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6628
 
6629
  def updateAmazonPromotion(self, amazonPromotions):
6630
    """
6631
    Parameters:
6632
     - amazonPromotions
6633
    """
6634
    self.send_updateAmazonPromotion(amazonPromotions)
6635
    return self.recv_updateAmazonPromotion()
6636
 
6637
  def send_updateAmazonPromotion(self, amazonPromotions):
6638
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6639
    args = updateAmazonPromotion_args()
6640
    args.amazonPromotions = amazonPromotions
6641
    args.write(self._oprot)
6642
    self._oprot.writeMessageEnd()
6643
    self._oprot.trans.flush()
6644
 
6645
  def recv_updateAmazonPromotion(self, ):
6646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6647
    if mtype == TMessageType.EXCEPTION:
6648
      x = TApplicationException()
6649
      x.read(self._iprot)
6650
      self._iprot.readMessageEnd()
6651
      raise x
6652
    result = updateAmazonPromotion_result()
6653
    result.read(self._iprot)
6654
    self._iprot.readMessageEnd()
6655
    if result.success is not None:
6656
      return result.success
6657
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6658
 
12567 amit.gupta 6659
  def markPartiallyActive(self, itemId, categoryId):
6660
    """
6661
    Parameters:
6662
     - itemId
6663
     - categoryId
6664
    """
6665
    self.send_markPartiallyActive(itemId, categoryId)
6666
    return self.recv_markPartiallyActive()
12363 kshitij.so 6667
 
12567 amit.gupta 6668
  def send_markPartiallyActive(self, itemId, categoryId):
6669
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6670
    args = markPartiallyActive_args()
6671
    args.itemId = itemId
6672
    args.categoryId = categoryId
6673
    args.write(self._oprot)
6674
    self._oprot.writeMessageEnd()
6675
    self._oprot.trans.flush()
6676
 
6677
  def recv_markPartiallyActive(self, ):
6678
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6679
    if mtype == TMessageType.EXCEPTION:
6680
      x = TApplicationException()
6681
      x.read(self._iprot)
6682
      self._iprot.readMessageEnd()
6683
      raise x
6684
    result = markPartiallyActive_result()
6685
    result.read(self._iprot)
6686
    self._iprot.readMessageEnd()
6687
    if result.success is not None:
6688
      return result.success
6689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6690
 
6691
  def updateItemStateVat(self, itemId, statevat):
6692
    """
6693
    Parameters:
6694
     - itemId
6695
     - statevat
6696
    """
6697
    self.send_updateItemStateVat(itemId, statevat)
6698
    return self.recv_updateItemStateVat()
6699
 
6700
  def send_updateItemStateVat(self, itemId, statevat):
6701
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6702
    args = updateItemStateVat_args()
6703
    args.itemId = itemId
6704
    args.statevat = statevat
6705
    args.write(self._oprot)
6706
    self._oprot.writeMessageEnd()
6707
    self._oprot.trans.flush()
6708
 
6709
  def recv_updateItemStateVat(self, ):
6710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6711
    if mtype == TMessageType.EXCEPTION:
6712
      x = TApplicationException()
6713
      x.read(self._iprot)
6714
      self._iprot.readMessageEnd()
6715
      raise x
6716
    result = updateItemStateVat_result()
6717
    result.read(self._iprot)
6718
    self._iprot.readMessageEnd()
6719
    if result.success is not None:
6720
      return result.success
6721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6722
 
12620 amit.gupta 6723
  def getExAffiliateItemInfo(self, ):
6724
    self.send_getExAffiliateItemInfo()
6725
    return self.recv_getExAffiliateItemInfo()
12567 amit.gupta 6726
 
12620 amit.gupta 6727
  def send_getExAffiliateItemInfo(self, ):
6728
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
6729
    args = getExAffiliateItemInfo_args()
6730
    args.write(self._oprot)
6731
    self._oprot.writeMessageEnd()
6732
    self._oprot.trans.flush()
6733
 
6734
  def recv_getExAffiliateItemInfo(self, ):
6735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6736
    if mtype == TMessageType.EXCEPTION:
6737
      x = TApplicationException()
6738
      x.read(self._iprot)
6739
      self._iprot.readMessageEnd()
6740
      raise x
6741
    result = getExAffiliateItemInfo_result()
6742
    result.read(self._iprot)
6743
    self._iprot.readMessageEnd()
6744
    if result.success is not None:
6745
      return result.success
6746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6747
 
6748
 
5944 mandeep.dh 6749
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6750
  def __init__(self, handler):
6751
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6752
    self._processMap["addItem"] = Processor.process_addItem
6753
    self._processMap["updateItem"] = Processor.process_updateItem
6754
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6755
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6756
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6757
    self._processMap["startItemOn"] = Processor.process_startItemOn
6758
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6759
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6760
    self._processMap["getItem"] = Processor.process_getItem
6761
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6762
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6763
    self._processMap["getAllItems"] = Processor.process_getAllItems
6764
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6765
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 6766
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 6767
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6768
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6769
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6770
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6771
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6772
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6773
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6774
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6775
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6776
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6777
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6778
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6779
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6780
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6781
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6782
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6783
    self._processMap["addCategory"] = Processor.process_addCategory
6784
    self._processMap["getCategory"] = Processor.process_getCategory
6785
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6786
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6787
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6788
    self._processMap["addTag"] = Processor.process_addTag
6789
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6790
    self._processMap["deleteTag"] = Processor.process_deleteTag
6791
    self._processMap["getAllTags"] = Processor.process_getAllTags
6792
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6793
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6794
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6795
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6796
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6797
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6798
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6799
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6800
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6801
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6802
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6803
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6804
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6805
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6806
    self._processMap["addCampaign"] = Processor.process_addCampaign
6807
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6808
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6809
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6810
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6811
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6812
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6813
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6814
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6815
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6816
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6817
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6818
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6819
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6820
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6821
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6822
    self._processMap["getAllSources"] = Processor.process_getAllSources
6823
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6824
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6825
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6826
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6827
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6828
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6829
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6830
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6831
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6832
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6833
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6834
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6835
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6836
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6837
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6838
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6839
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6840
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6841
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6842
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6843
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6844
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6845
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6846
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6847
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6848
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6849
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6850
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6851
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6852
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6853
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6854
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6855
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6856
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6857
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6858
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6859
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6860
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6861
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6862
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 6863
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 6864
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 6865
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
6866
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 6867
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
6868
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
6869
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 6870
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 6871
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 6872
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
6873
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 6874
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 6875
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
6876
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 6877
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 6878
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 6879
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
6880
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
6881
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6882
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6883
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6884
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6885
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6886
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6887
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6888
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6889
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6890
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6891
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6892
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6893
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6894
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6895
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6896
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6897
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6898
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6899
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6900
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6901
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6902
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6903
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6904
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6905
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 6906
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 6907
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 6908
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 6909
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 6910
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6911
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 6912
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
6913
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 6914
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 6915
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 6916
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 6917
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 6918
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
6919
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 6920
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6921
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 6922
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6923
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 6924
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 6925
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6926
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6927
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 6928
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6929
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
12620 amit.gupta 6930
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
5944 mandeep.dh 6931
 
6932
  def process(self, iprot, oprot):
6933
    (name, type, seqid) = iprot.readMessageBegin()
6934
    if name not in self._processMap:
6935
      iprot.skip(TType.STRUCT)
6936
      iprot.readMessageEnd()
6937
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
6938
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
6939
      x.write(oprot)
6940
      oprot.writeMessageEnd()
6941
      oprot.trans.flush()
6942
      return
6943
    else:
6944
      self._processMap[name](self, seqid, iprot, oprot)
6945
    return True
6946
 
6947
  def process_addItem(self, seqid, iprot, oprot):
6948
    args = addItem_args()
6949
    args.read(iprot)
6950
    iprot.readMessageEnd()
6951
    result = addItem_result()
6952
    try:
6953
      result.success = self._handler.addItem(args.item)
6954
    except CatalogServiceException, cex:
6955
      result.cex = cex
6956
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
6957
    result.write(oprot)
6958
    oprot.writeMessageEnd()
6959
    oprot.trans.flush()
6960
 
6961
  def process_updateItem(self, seqid, iprot, oprot):
6962
    args = updateItem_args()
6963
    args.read(iprot)
6964
    iprot.readMessageEnd()
6965
    result = updateItem_result()
6966
    try:
6967
      result.success = self._handler.updateItem(args.item)
6968
    except CatalogServiceException, cex:
6969
      result.cex = cex
6970
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
6971
    result.write(oprot)
6972
    oprot.writeMessageEnd()
6973
    oprot.trans.flush()
6974
 
6975
  def process_isActive(self, seqid, iprot, oprot):
6976
    args = isActive_args()
6977
    args.read(iprot)
6978
    iprot.readMessageEnd()
6979
    result = isActive_result()
6980
    try:
6981
      result.success = self._handler.isActive(args.itemId)
6982
    except CatalogServiceException, isex:
6983
      result.isex = isex
6984
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
6985
    result.write(oprot)
6986
    oprot.writeMessageEnd()
6987
    oprot.trans.flush()
6988
 
7438 amit.gupta 6989
  def process_getItemsStatus(self, seqid, iprot, oprot):
6990
    args = getItemsStatus_args()
6991
    args.read(iprot)
6992
    iprot.readMessageEnd()
6993
    result = getItemsStatus_result()
6994
    try:
6995
      result.success = self._handler.getItemsStatus(args.itemIds)
6996
    except CatalogServiceException, isex:
6997
      result.isex = isex
6998
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
6999
    result.write(oprot)
7000
    oprot.writeMessageEnd()
7001
    oprot.trans.flush()
7002
 
5944 mandeep.dh 7003
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
7004
    args = getItemStatusDescription_args()
7005
    args.read(iprot)
7006
    iprot.readMessageEnd()
7007
    result = getItemStatusDescription_result()
7008
    try:
7009
      result.success = self._handler.getItemStatusDescription(args.itemId)
7010
    except CatalogServiceException, isex:
7011
      result.isex = isex
7012
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
7013
    result.write(oprot)
7014
    oprot.writeMessageEnd()
7015
    oprot.trans.flush()
7016
 
7017
  def process_startItemOn(self, seqid, iprot, oprot):
7018
    args = startItemOn_args()
7019
    args.read(iprot)
7020
    iprot.readMessageEnd()
7021
    result = startItemOn_result()
7022
    try:
7023
      self._handler.startItemOn(args.item_id, args.timestamp)
7024
    except CatalogServiceException, cex:
7025
      result.cex = cex
7026
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
7027
    result.write(oprot)
7028
    oprot.writeMessageEnd()
7029
    oprot.trans.flush()
7030
 
7031
  def process_retireItemOn(self, seqid, iprot, oprot):
7032
    args = retireItemOn_args()
7033
    args.read(iprot)
7034
    iprot.readMessageEnd()
7035
    result = retireItemOn_result()
7036
    try:
7037
      self._handler.retireItemOn(args.item_id, args.timestamp)
7038
    except CatalogServiceException, cex:
7039
      result.cex = cex
7040
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7041
    result.write(oprot)
7042
    oprot.writeMessageEnd()
7043
    oprot.trans.flush()
7044
 
7045
  def process_changeItemStatus(self, seqid, iprot, oprot):
7046
    args = changeItemStatus_args()
7047
    args.read(iprot)
7048
    iprot.readMessageEnd()
7049
    result = changeItemStatus_result()
7050
    try:
7051
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7052
    except CatalogServiceException, cex:
7053
      result.cex = cex
7054
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7055
    result.write(oprot)
7056
    oprot.writeMessageEnd()
7057
    oprot.trans.flush()
7058
 
7059
  def process_getItem(self, seqid, iprot, oprot):
7060
    args = getItem_args()
7061
    args.read(iprot)
7062
    iprot.readMessageEnd()
7063
    result = getItem_result()
7064
    try:
7065
      result.success = self._handler.getItem(args.item_id)
7066
    except CatalogServiceException, cex:
7067
      result.cex = cex
7068
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7069
    result.write(oprot)
7070
    oprot.writeMessageEnd()
7071
    oprot.trans.flush()
7072
 
7073
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7074
    args = getItemsByCatalogId_args()
7075
    args.read(iprot)
7076
    iprot.readMessageEnd()
7077
    result = getItemsByCatalogId_result()
7078
    try:
7079
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7080
    except CatalogServiceException, cex:
7081
      result.cex = cex
7082
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7083
    result.write(oprot)
7084
    oprot.writeMessageEnd()
7085
    oprot.trans.flush()
7086
 
7087
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7088
    args = getValidItemsByCatalogId_args()
7089
    args.read(iprot)
7090
    iprot.readMessageEnd()
7091
    result = getValidItemsByCatalogId_result()
7092
    try:
7093
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7094
    except CatalogServiceException, cex:
7095
      result.cex = cex
7096
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7097
    result.write(oprot)
7098
    oprot.writeMessageEnd()
7099
    oprot.trans.flush()
7100
 
7101
  def process_getAllItems(self, seqid, iprot, oprot):
7102
    args = getAllItems_args()
7103
    args.read(iprot)
7104
    iprot.readMessageEnd()
7105
    result = getAllItems_result()
7106
    try:
7107
      result.success = self._handler.getAllItems(args.isActive)
7108
    except CatalogServiceException, cex:
7109
      result.cex = cex
7110
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7111
    result.write(oprot)
7112
    oprot.writeMessageEnd()
7113
    oprot.trans.flush()
7114
 
7115
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7116
    args = getAllItemsByStatus_args()
7117
    args.read(iprot)
7118
    iprot.readMessageEnd()
7119
    result = getAllItemsByStatus_result()
7120
    try:
7121
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7122
    except CatalogServiceException, cex:
7123
      result.cex = cex
7124
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7125
    result.write(oprot)
7126
    oprot.writeMessageEnd()
7127
    oprot.trans.flush()
7128
 
7129
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7130
    args = markItemAsContentComplete_args()
7131
    args.read(iprot)
7132
    iprot.readMessageEnd()
7133
    result = markItemAsContentComplete_result()
7134
    try:
9253 rajveer 7135
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7136
    except CatalogServiceException, cex:
7137
      result.cex = cex
7138
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7139
    result.write(oprot)
7140
    oprot.writeMessageEnd()
7141
    oprot.trans.flush()
7142
 
12567 amit.gupta 7143
  def process_getVatRates(self, seqid, iprot, oprot):
7144
    args = getVatRates_args()
7145
    args.read(iprot)
7146
    iprot.readMessageEnd()
7147
    result = getVatRates_result()
7148
    try:
7149
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7150
    except CatalogServiceException, cex:
7151
      result.cex = cex
7152
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7153
    result.write(oprot)
7154
    oprot.writeMessageEnd()
7155
    oprot.trans.flush()
7156
 
5944 mandeep.dh 7157
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7158
    args = getAllItemsInRange_args()
7159
    args.read(iprot)
7160
    iprot.readMessageEnd()
7161
    result = getAllItemsInRange_result()
7162
    try:
7163
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7164
    except CatalogServiceException, cex:
7165
      result.cex = cex
7166
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7167
    result.write(oprot)
7168
    oprot.writeMessageEnd()
7169
    oprot.trans.flush()
7170
 
7171
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7172
    args = getAllItemsByStatusInRange_args()
7173
    args.read(iprot)
7174
    iprot.readMessageEnd()
7175
    result = getAllItemsByStatusInRange_result()
7176
    try:
7177
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7178
    except CatalogServiceException, cex:
7179
      result.cex = cex
7180
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7181
    result.write(oprot)
7182
    oprot.writeMessageEnd()
7183
    oprot.trans.flush()
7184
 
7185
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7186
    args = getItemCountByStatus_args()
7187
    args.read(iprot)
7188
    iprot.readMessageEnd()
7189
    result = getItemCountByStatus_result()
7190
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7191
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7192
    result.write(oprot)
7193
    oprot.writeMessageEnd()
7194
    oprot.trans.flush()
7195
 
7196
  def process_getBestSellers(self, seqid, iprot, oprot):
7197
    args = getBestSellers_args()
7198
    args.read(iprot)
7199
    iprot.readMessageEnd()
7200
    result = getBestSellers_result()
7201
    try:
7202
      result.success = self._handler.getBestSellers()
7203
    except CatalogServiceException, isex:
7204
      result.isex = isex
7205
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7206
    result.write(oprot)
7207
    oprot.writeMessageEnd()
7208
    oprot.trans.flush()
7209
 
7210
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7211
    args = getBestSellersCatalogIds_args()
7212
    args.read(iprot)
7213
    iprot.readMessageEnd()
7214
    result = getBestSellersCatalogIds_result()
7215
    try:
7216
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7217
    except CatalogServiceException, cex:
7218
      result.cex = cex
7219
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7220
    result.write(oprot)
7221
    oprot.writeMessageEnd()
7222
    oprot.trans.flush()
7223
 
7224
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7225
    args = getBestSellersCount_args()
7226
    args.read(iprot)
7227
    iprot.readMessageEnd()
7228
    result = getBestSellersCount_result()
7229
    try:
7230
      result.success = self._handler.getBestSellersCount()
7231
    except CatalogServiceException, cex:
7232
      result.cex = cex
7233
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7234
    result.write(oprot)
7235
    oprot.writeMessageEnd()
7236
    oprot.trans.flush()
7237
 
7238
  def process_getBestDeals(self, seqid, iprot, oprot):
7239
    args = getBestDeals_args()
7240
    args.read(iprot)
7241
    iprot.readMessageEnd()
7242
    result = getBestDeals_result()
7243
    try:
7244
      result.success = self._handler.getBestDeals()
7245
    except CatalogServiceException, isex:
7246
      result.isex = isex
7247
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7248
    result.write(oprot)
7249
    oprot.writeMessageEnd()
7250
    oprot.trans.flush()
7251
 
7252
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7253
    args = getBestDealsCatalogIds_args()
7254
    args.read(iprot)
7255
    iprot.readMessageEnd()
7256
    result = getBestDealsCatalogIds_result()
7257
    try:
7258
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7259
    except CatalogServiceException, cex:
7260
      result.cex = cex
7261
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7262
    result.write(oprot)
7263
    oprot.writeMessageEnd()
7264
    oprot.trans.flush()
7265
 
7266
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7267
    args = getBestDealsCount_args()
7268
    args.read(iprot)
7269
    iprot.readMessageEnd()
7270
    result = getBestDealsCount_result()
7271
    try:
7272
      result.success = self._handler.getBestDealsCount()
7273
    except CatalogServiceException, cex:
7274
      result.cex = cex
7275
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7276
    result.write(oprot)
7277
    oprot.writeMessageEnd()
7278
    oprot.trans.flush()
7279
 
7280
  def process_getComingSoon(self, seqid, iprot, oprot):
7281
    args = getComingSoon_args()
7282
    args.read(iprot)
7283
    iprot.readMessageEnd()
7284
    result = getComingSoon_result()
7285
    try:
7286
      result.success = self._handler.getComingSoon()
7287
    except CatalogServiceException, isex:
7288
      result.isex = isex
7289
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7290
    result.write(oprot)
7291
    oprot.writeMessageEnd()
7292
    oprot.trans.flush()
7293
 
7294
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7295
    args = getComingSoonCatalogIds_args()
7296
    args.read(iprot)
7297
    iprot.readMessageEnd()
7298
    result = getComingSoonCatalogIds_result()
7299
    try:
7300
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7301
    except CatalogServiceException, cex:
7302
      result.cex = cex
7303
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7304
    result.write(oprot)
7305
    oprot.writeMessageEnd()
7306
    oprot.trans.flush()
7307
 
7308
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7309
    args = getComingSoonCount_args()
7310
    args.read(iprot)
7311
    iprot.readMessageEnd()
7312
    result = getComingSoonCount_result()
7313
    try:
7314
      result.success = self._handler.getComingSoonCount()
7315
    except CatalogServiceException, cex:
7316
      result.cex = cex
7317
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7318
    result.write(oprot)
7319
    oprot.writeMessageEnd()
7320
    oprot.trans.flush()
7321
 
7322
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7323
    args = getLatestArrivals_args()
7324
    args.read(iprot)
7325
    iprot.readMessageEnd()
7326
    result = getLatestArrivals_result()
7327
    try:
7328
      result.success = self._handler.getLatestArrivals()
7329
    except CatalogServiceException, isex:
7330
      result.isex = isex
7331
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7332
    result.write(oprot)
7333
    oprot.writeMessageEnd()
7334
    oprot.trans.flush()
7335
 
7336
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7337
    args = getLatestArrivalsCatalogIds_args()
7338
    args.read(iprot)
7339
    iprot.readMessageEnd()
7340
    result = getLatestArrivalsCatalogIds_result()
7341
    try:
7342
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7343
    except CatalogServiceException, cex:
7344
      result.cex = cex
7345
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7346
    result.write(oprot)
7347
    oprot.writeMessageEnd()
7348
    oprot.trans.flush()
7349
 
7350
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7351
    args = getLatestArrivalsCount_args()
7352
    args.read(iprot)
7353
    iprot.readMessageEnd()
7354
    result = getLatestArrivalsCount_result()
7355
    try:
7356
      result.success = self._handler.getLatestArrivalsCount()
7357
    except CatalogServiceException, cex:
7358
      result.cex = cex
7359
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7360
    result.write(oprot)
7361
    oprot.writeMessageEnd()
7362
    oprot.trans.flush()
7363
 
7364
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7365
    args = generateNewEntityID_args()
7366
    args.read(iprot)
7367
    iprot.readMessageEnd()
7368
    result = generateNewEntityID_result()
7369
    result.success = self._handler.generateNewEntityID()
7370
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7371
    result.write(oprot)
7372
    oprot.writeMessageEnd()
7373
    oprot.trans.flush()
7374
 
7375
  def process_addCategory(self, seqid, iprot, oprot):
7376
    args = addCategory_args()
7377
    args.read(iprot)
7378
    iprot.readMessageEnd()
7379
    result = addCategory_result()
7380
    result.success = self._handler.addCategory(args.category)
7381
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7382
    result.write(oprot)
7383
    oprot.writeMessageEnd()
7384
    oprot.trans.flush()
7385
 
7386
  def process_getCategory(self, seqid, iprot, oprot):
7387
    args = getCategory_args()
7388
    args.read(iprot)
7389
    iprot.readMessageEnd()
7390
    result = getCategory_result()
7391
    result.success = self._handler.getCategory(args.id)
7392
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7393
    result.write(oprot)
7394
    oprot.writeMessageEnd()
7395
    oprot.trans.flush()
7396
 
7397
  def process_getAllCategories(self, seqid, iprot, oprot):
7398
    args = getAllCategories_args()
7399
    args.read(iprot)
7400
    iprot.readMessageEnd()
7401
    result = getAllCategories_result()
7402
    result.success = self._handler.getAllCategories()
7403
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7404
    result.write(oprot)
7405
    oprot.writeMessageEnd()
7406
    oprot.trans.flush()
7407
 
7408
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7409
    args = getAllSimilarItems_args()
7410
    args.read(iprot)
7411
    iprot.readMessageEnd()
7412
    result = getAllSimilarItems_result()
7413
    result.success = self._handler.getAllSimilarItems(args.itemId)
7414
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7415
    result.write(oprot)
7416
    oprot.writeMessageEnd()
7417
    oprot.trans.flush()
7418
 
7419
  def process_addSimilarItem(self, seqid, iprot, oprot):
7420
    args = addSimilarItem_args()
7421
    args.read(iprot)
7422
    iprot.readMessageEnd()
7423
    result = addSimilarItem_result()
7424
    try:
7425
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7426
    except CatalogServiceException, cex:
7427
      result.cex = cex
7428
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7429
    result.write(oprot)
7430
    oprot.writeMessageEnd()
7431
    oprot.trans.flush()
7432
 
6512 kshitij.so 7433
  def process_addTag(self, seqid, iprot, oprot):
7434
    args = addTag_args()
7435
    args.read(iprot)
7436
    iprot.readMessageEnd()
7437
    result = addTag_result()
7438
    result.success = self._handler.addTag(args.displayName, args.itemId)
7439
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7440
    result.write(oprot)
7441
    oprot.writeMessageEnd()
7442
    oprot.trans.flush()
7443
 
7444
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7445
    args = deleteEntityTag_args()
7446
    args.read(iprot)
7447
    iprot.readMessageEnd()
7448
    result = deleteEntityTag_result()
7449
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7450
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7451
    result.write(oprot)
7452
    oprot.writeMessageEnd()
7453
    oprot.trans.flush()
7454
 
7455
  def process_deleteTag(self, seqid, iprot, oprot):
7456
    args = deleteTag_args()
7457
    args.read(iprot)
7458
    iprot.readMessageEnd()
7459
    result = deleteTag_result()
7460
    result.success = self._handler.deleteTag(args.displayName)
7461
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7462
    result.write(oprot)
7463
    oprot.writeMessageEnd()
7464
    oprot.trans.flush()
7465
 
7466
  def process_getAllTags(self, seqid, iprot, oprot):
7467
    args = getAllTags_args()
7468
    args.read(iprot)
7469
    iprot.readMessageEnd()
7470
    result = getAllTags_result()
7471
    result.success = self._handler.getAllTags()
7472
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7473
    result.write(oprot)
7474
    oprot.writeMessageEnd()
7475
    oprot.trans.flush()
7476
 
7477
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7478
    args = getAllEntitiesByTagName_args()
7479
    args.read(iprot)
7480
    iprot.readMessageEnd()
7481
    result = getAllEntitiesByTagName_result()
7482
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7483
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7484
    result.write(oprot)
7485
    oprot.writeMessageEnd()
7486
    oprot.trans.flush()
7487
 
6845 amit.gupta 7488
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7489
    args = getAllEntityTags_args()
7490
    args.read(iprot)
7491
    iprot.readMessageEnd()
7492
    result = getAllEntityTags_result()
7493
    result.success = self._handler.getAllEntityTags()
7494
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7495
    result.write(oprot)
7496
    oprot.writeMessageEnd()
7497
    oprot.trans.flush()
7498
 
6850 kshitij.so 7499
  def process_addBanner(self, seqid, iprot, oprot):
7500
    args = addBanner_args()
7501
    args.read(iprot)
7502
    iprot.readMessageEnd()
7503
    result = addBanner_result()
10097 kshitij.so 7504
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7505
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7506
    result.write(oprot)
7507
    oprot.writeMessageEnd()
7508
    oprot.trans.flush()
7509
 
8579 kshitij.so 7510
  def process_updateBanner(self, seqid, iprot, oprot):
7511
    args = updateBanner_args()
7512
    args.read(iprot)
7513
    iprot.readMessageEnd()
7514
    result = updateBanner_result()
7515
    result.success = self._handler.updateBanner(args.banner)
7516
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7517
    result.write(oprot)
7518
    oprot.writeMessageEnd()
7519
    oprot.trans.flush()
7520
 
6850 kshitij.so 7521
  def process_getAllBanners(self, seqid, iprot, oprot):
7522
    args = getAllBanners_args()
7523
    args.read(iprot)
7524
    iprot.readMessageEnd()
7525
    result = getAllBanners_result()
7526
    result.success = self._handler.getAllBanners()
7527
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7528
    result.write(oprot)
7529
    oprot.writeMessageEnd()
7530
    oprot.trans.flush()
7531
 
7532
  def process_deleteBanner(self, seqid, iprot, oprot):
7533
    args = deleteBanner_args()
7534
    args.read(iprot)
7535
    iprot.readMessageEnd()
7536
    result = deleteBanner_result()
9155 kshitij.so 7537
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7538
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7539
    result.write(oprot)
7540
    oprot.writeMessageEnd()
7541
    oprot.trans.flush()
7542
 
7543
  def process_getBannerDetails(self, seqid, iprot, oprot):
7544
    args = getBannerDetails_args()
7545
    args.read(iprot)
7546
    iprot.readMessageEnd()
7547
    result = getBannerDetails_result()
9155 kshitij.so 7548
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7549
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7550
    result.write(oprot)
7551
    oprot.writeMessageEnd()
7552
    oprot.trans.flush()
7553
 
7554
  def process_getActiveBanners(self, seqid, iprot, oprot):
7555
    args = getActiveBanners_args()
7556
    args.read(iprot)
7557
    iprot.readMessageEnd()
7558
    result = getActiveBanners_result()
7559
    result.success = self._handler.getActiveBanners()
7560
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7561
    result.write(oprot)
7562
    oprot.writeMessageEnd()
7563
    oprot.trans.flush()
7564
 
6849 kshitij.so 7565
  def process_addBannerMap(self, seqid, iprot, oprot):
7566
    args = addBannerMap_args()
7567
    args.read(iprot)
7568
    iprot.readMessageEnd()
7569
    result = addBannerMap_result()
8579 kshitij.so 7570
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7571
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7572
    result.write(oprot)
7573
    oprot.writeMessageEnd()
7574
    oprot.trans.flush()
7575
 
8579 kshitij.so 7576
  def process_updateBannerMap(self, seqid, iprot, oprot):
7577
    args = updateBannerMap_args()
7578
    args.read(iprot)
7579
    iprot.readMessageEnd()
7580
    result = updateBannerMap_result()
7581
    result.success = self._handler.updateBannerMap(args.bannerMap)
7582
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7583
    result.write(oprot)
7584
    oprot.writeMessageEnd()
7585
    oprot.trans.flush()
7586
 
6849 kshitij.so 7587
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7588
    args = deleteBannerMap_args()
7589
    args.read(iprot)
7590
    iprot.readMessageEnd()
7591
    result = deleteBannerMap_result()
7592
    result.success = self._handler.deleteBannerMap(args.bannerName)
7593
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7594
    result.write(oprot)
7595
    oprot.writeMessageEnd()
7596
    oprot.trans.flush()
7597
 
7598
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7599
    args = getBannerMapDetails_args()
7600
    args.read(iprot)
7601
    iprot.readMessageEnd()
7602
    result = getBannerMapDetails_result()
9155 kshitij.so 7603
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7604
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7605
    result.write(oprot)
7606
    oprot.writeMessageEnd()
7607
    oprot.trans.flush()
7608
 
8579 kshitij.so 7609
  def process_addBannerUri(self, seqid, iprot, oprot):
7610
    args = addBannerUri_args()
7611
    args.read(iprot)
7612
    iprot.readMessageEnd()
7613
    result = addBannerUri_result()
7614
    self._handler.addBannerUri(args.bannerUriMappings)
7615
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7616
    result.write(oprot)
7617
    oprot.writeMessageEnd()
7618
    oprot.trans.flush()
7619
 
7620
  def process_getUriMapping(self, seqid, iprot, oprot):
7621
    args = getUriMapping_args()
7622
    args.read(iprot)
7623
    iprot.readMessageEnd()
7624
    result = getUriMapping_result()
9155 kshitij.so 7625
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7626
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7627
    result.write(oprot)
7628
    oprot.writeMessageEnd()
7629
    oprot.trans.flush()
7630
 
7631
  def process_addCampaign(self, seqid, iprot, oprot):
7632
    args = addCampaign_args()
7633
    args.read(iprot)
7634
    iprot.readMessageEnd()
7635
    result = addCampaign_result()
7636
    self._handler.addCampaign(args.campaign)
7637
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7638
    result.write(oprot)
7639
    oprot.writeMessageEnd()
7640
    oprot.trans.flush()
7641
 
7642
  def process_getCampaigns(self, seqid, iprot, oprot):
7643
    args = getCampaigns_args()
7644
    args.read(iprot)
7645
    iprot.readMessageEnd()
7646
    result = getCampaigns_result()
7647
    result.success = self._handler.getCampaigns(args.campaignName)
7648
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7649
    result.write(oprot)
7650
    oprot.writeMessageEnd()
7651
    oprot.trans.flush()
7652
 
7653
  def process_deleteCampaign(self, seqid, iprot, oprot):
7654
    args = deleteCampaign_args()
7655
    args.read(iprot)
7656
    iprot.readMessageEnd()
7657
    result = deleteCampaign_result()
7658
    self._handler.deleteCampaign(args.campaignId)
7659
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7660
    result.write(oprot)
7661
    oprot.writeMessageEnd()
7662
    oprot.trans.flush()
7663
 
7664
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7665
    args = getAllCampaigns_args()
7666
    args.read(iprot)
7667
    iprot.readMessageEnd()
7668
    result = getAllCampaigns_result()
7669
    result.success = self._handler.getAllCampaigns()
7670
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7671
    result.write(oprot)
7672
    oprot.writeMessageEnd()
7673
    oprot.trans.flush()
7674
 
9155 kshitij.so 7675
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7676
    args = getActiveBannersForMobileSite_args()
7677
    args.read(iprot)
7678
    iprot.readMessageEnd()
7679
    result = getActiveBannersForMobileSite_result()
7680
    result.success = self._handler.getActiveBannersForMobileSite()
7681
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7682
    result.write(oprot)
7683
    oprot.writeMessageEnd()
7684
    oprot.trans.flush()
7685
 
5944 mandeep.dh 7686
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7687
    args = deleteSimilarItem_args()
7688
    args.read(iprot)
7689
    iprot.readMessageEnd()
7690
    result = deleteSimilarItem_result()
7691
    try:
7692
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7693
    except CatalogServiceException, cex:
7694
      result.cex = cex
7695
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7696
    result.write(oprot)
7697
    oprot.writeMessageEnd()
7698
    oprot.trans.flush()
7699
 
7700
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7701
    args = checkSimilarItem_args()
7702
    args.read(iprot)
7703
    iprot.readMessageEnd()
7704
    result = checkSimilarItem_result()
7705
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7706
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7707
    result.write(oprot)
7708
    oprot.writeMessageEnd()
7709
    oprot.trans.flush()
7710
 
7711
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7712
    args = validateRiskyStatus_args()
7713
    args.read(iprot)
7714
    iprot.readMessageEnd()
7715
    result = validateRiskyStatus_result()
7716
    self._handler.validateRiskyStatus(args.itemId)
7717
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7718
    result.write(oprot)
7719
    oprot.writeMessageEnd()
7720
    oprot.trans.flush()
7721
 
7722
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7723
    args = changeItemRiskyFlag_args()
7724
    args.read(iprot)
7725
    iprot.readMessageEnd()
7726
    result = changeItemRiskyFlag_result()
7727
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7728
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7729
    result.write(oprot)
7730
    oprot.writeMessageEnd()
7731
    oprot.trans.flush()
7732
 
7733
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7734
    args = getItemsByRiskyFlag_args()
7735
    args.read(iprot)
7736
    iprot.readMessageEnd()
7737
    result = getItemsByRiskyFlag_result()
7738
    result.success = self._handler.getItemsByRiskyFlag()
7739
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7740
    result.write(oprot)
7741
    oprot.writeMessageEnd()
7742
    oprot.trans.flush()
7743
 
7744
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7745
    args = getItemsForMasterSheet_args()
7746
    args.read(iprot)
7747
    iprot.readMessageEnd()
7748
    result = getItemsForMasterSheet_result()
7749
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7750
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7751
    result.write(oprot)
7752
    oprot.writeMessageEnd()
7753
    oprot.trans.flush()
7754
 
7755
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7756
    args = getSimilarItemsCatalogIds_args()
7757
    args.read(iprot)
7758
    iprot.readMessageEnd()
7759
    result = getSimilarItemsCatalogIds_result()
7760
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7761
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7762
    result.write(oprot)
7763
    oprot.writeMessageEnd()
7764
    oprot.trans.flush()
7765
 
7766
  def process_addProductNotification(self, seqid, iprot, oprot):
7767
    args = addProductNotification_args()
7768
    args.read(iprot)
7769
    iprot.readMessageEnd()
7770
    result = addProductNotification_result()
7771
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7772
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7773
    result.write(oprot)
7774
    oprot.writeMessageEnd()
7775
    oprot.trans.flush()
7776
 
7777
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7778
    args = sendProductNotifications_args()
7779
    args.read(iprot)
7780
    iprot.readMessageEnd()
7781
    result = sendProductNotifications_result()
7782
    result.success = self._handler.sendProductNotifications()
7783
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7784
    result.write(oprot)
7785
    oprot.writeMessageEnd()
7786
    oprot.trans.flush()
7787
 
7788
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7789
    args = getAllBrandsByCategory_args()
7790
    args.read(iprot)
7791
    iprot.readMessageEnd()
7792
    result = getAllBrandsByCategory_result()
7793
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7794
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7795
    result.write(oprot)
7796
    oprot.writeMessageEnd()
7797
    oprot.trans.flush()
7798
 
7799
  def process_getAllBrands(self, seqid, iprot, oprot):
7800
    args = getAllBrands_args()
7801
    args.read(iprot)
7802
    iprot.readMessageEnd()
7803
    result = getAllBrands_result()
7804
    result.success = self._handler.getAllBrands()
7805
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7806
    result.write(oprot)
7807
    oprot.writeMessageEnd()
7808
    oprot.trans.flush()
7809
 
7810
  def process_getAllSources(self, seqid, iprot, oprot):
7811
    args = getAllSources_args()
7812
    args.read(iprot)
7813
    iprot.readMessageEnd()
7814
    result = getAllSources_result()
7815
    result.success = self._handler.getAllSources()
7816
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7817
    result.write(oprot)
7818
    oprot.writeMessageEnd()
7819
    oprot.trans.flush()
7820
 
7821
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7822
    args = getItemPricingBySource_args()
7823
    args.read(iprot)
7824
    iprot.readMessageEnd()
7825
    result = getItemPricingBySource_result()
7826
    try:
7827
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7828
    except CatalogServiceException, cex:
7829
      result.cex = cex
7830
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7831
    result.write(oprot)
7832
    oprot.writeMessageEnd()
7833
    oprot.trans.flush()
7834
 
7835
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7836
    args = addSourceItemPricing_args()
7837
    args.read(iprot)
7838
    iprot.readMessageEnd()
7839
    result = addSourceItemPricing_result()
7840
    try:
7841
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7842
    except CatalogServiceException, cex:
7843
      result.cex = cex
7844
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7845
    result.write(oprot)
7846
    oprot.writeMessageEnd()
7847
    oprot.trans.flush()
7848
 
7849
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
7850
    args = getAllSourcePricing_args()
7851
    args.read(iprot)
7852
    iprot.readMessageEnd()
7853
    result = getAllSourcePricing_result()
7854
    try:
7855
      result.success = self._handler.getAllSourcePricing(args.itemId)
7856
    except CatalogServiceException, cex:
7857
      result.cex = cex
7858
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
7859
    result.write(oprot)
7860
    oprot.writeMessageEnd()
7861
    oprot.trans.flush()
7862
 
7863
  def process_getItemForSource(self, seqid, iprot, oprot):
7864
    args = getItemForSource_args()
7865
    args.read(iprot)
7866
    iprot.readMessageEnd()
7867
    result = getItemForSource_result()
7868
    try:
7869
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
7870
    except CatalogServiceException, cex:
7871
      result.cex = cex
7872
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
7873
    result.write(oprot)
7874
    oprot.writeMessageEnd()
7875
    oprot.trans.flush()
7876
 
7877
  def process_searchItemsInRange(self, seqid, iprot, oprot):
7878
    args = searchItemsInRange_args()
7879
    args.read(iprot)
7880
    iprot.readMessageEnd()
7881
    result = searchItemsInRange_result()
7882
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
7883
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
7884
    result.write(oprot)
7885
    oprot.writeMessageEnd()
7886
    oprot.trans.flush()
7887
 
7888
  def process_getSearchResultCount(self, seqid, iprot, oprot):
7889
    args = getSearchResultCount_args()
7890
    args.read(iprot)
7891
    iprot.readMessageEnd()
7892
    result = getSearchResultCount_result()
7893
    result.success = self._handler.getSearchResultCount(args.searchTerms)
7894
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
7895
    result.write(oprot)
7896
    oprot.writeMessageEnd()
7897
    oprot.trans.flush()
7898
 
7899
  def process_getProductNotifications(self, seqid, iprot, oprot):
7900
    args = getProductNotifications_args()
7901
    args.read(iprot)
7902
    iprot.readMessageEnd()
7903
    result = getProductNotifications_result()
7904
    result.success = self._handler.getProductNotifications(args.startDateTime)
7905
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
7906
    result.write(oprot)
7907
    oprot.writeMessageEnd()
7908
    oprot.trans.flush()
7909
 
7910
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
7911
    args = getProductNotificationRequestCount_args()
7912
    args.read(iprot)
7913
    iprot.readMessageEnd()
7914
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 7915
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 7916
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
7917
    result.write(oprot)
7918
    oprot.writeMessageEnd()
7919
    oprot.trans.flush()
7920
 
7921
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
7922
    args = addAuthorizationLog_args()
7923
    args.read(iprot)
7924
    iprot.readMessageEnd()
7925
    result = addAuthorizationLog_result()
7926
    try:
7927
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
7928
    except CatalogServiceException, cex:
7929
      result.cex = cex
7930
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
7931
    result.write(oprot)
7932
    oprot.writeMessageEnd()
7933
    oprot.trans.flush()
7934
 
7935
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
7936
    args = addupdateVoucherForItem_args()
7937
    args.read(iprot)
7938
    iprot.readMessageEnd()
7939
    result = addupdateVoucherForItem_result()
7940
    try:
7941
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
7942
    except CatalogServiceException, cex:
7943
      result.cex = cex
7944
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
7945
    result.write(oprot)
7946
    oprot.writeMessageEnd()
7947
    oprot.trans.flush()
7948
 
7949
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
7950
    args = deleteVoucherForItem_args()
7951
    args.read(iprot)
7952
    iprot.readMessageEnd()
7953
    result = deleteVoucherForItem_result()
7954
    try:
7955
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
7956
    except CatalogServiceException, cex:
7957
      result.cex = cex
7958
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
7959
    result.write(oprot)
7960
    oprot.writeMessageEnd()
7961
    oprot.trans.flush()
7962
 
7963
  def process_getVoucherAmount(self, seqid, iprot, oprot):
7964
    args = getVoucherAmount_args()
7965
    args.read(iprot)
7966
    iprot.readMessageEnd()
7967
    result = getVoucherAmount_result()
7968
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
7969
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
7970
    result.write(oprot)
7971
    oprot.writeMessageEnd()
7972
    oprot.trans.flush()
7973
 
7974
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
7975
    args = getAllItemVouchers_args()
7976
    args.read(iprot)
7977
    iprot.readMessageEnd()
7978
    result = getAllItemVouchers_result()
7979
    result.success = self._handler.getAllItemVouchers(args.itemId)
7980
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
7981
    result.write(oprot)
7982
    oprot.writeMessageEnd()
7983
    oprot.trans.flush()
7984
 
7985
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
7986
    args = isValidCatalogItemId_args()
7987
    args.read(iprot)
7988
    iprot.readMessageEnd()
7989
    result = isValidCatalogItemId_result()
7990
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
7991
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
7992
    result.write(oprot)
7993
    oprot.writeMessageEnd()
7994
    oprot.trans.flush()
7995
 
6039 amit.gupta 7996
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
7997
    args = getVatPercentageForItem_args()
7998
    args.read(iprot)
7999
    iprot.readMessageEnd()
8000
    result = getVatPercentageForItem_result()
7340 amit.gupta 8001
    try:
8002
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
8003
    except CatalogServiceException, cex:
8004
      result.cex = cex
6039 amit.gupta 8005
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
8006
    result.write(oprot)
8007
    oprot.writeMessageEnd()
8008
    oprot.trans.flush()
5944 mandeep.dh 8009
 
6039 amit.gupta 8010
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
8011
    args = getVatAmountForItem_args()
8012
    args.read(iprot)
8013
    iprot.readMessageEnd()
8014
    result = getVatAmountForItem_result()
8015
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
8016
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
8017
    result.write(oprot)
8018
    oprot.writeMessageEnd()
8019
    oprot.trans.flush()
8020
 
6531 vikram.rag 8021
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
8022
    args = getAllIgnoredInventoryUpdateItemsList_args()
8023
    args.read(iprot)
8024
    iprot.readMessageEnd()
8025
    result = getAllIgnoredInventoryUpdateItemsList_result()
8026
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
8027
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
8028
    result.write(oprot)
8029
    oprot.writeMessageEnd()
8030
    oprot.trans.flush()
6039 amit.gupta 8031
 
6821 amar.kumar 8032
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8033
    args = getAllAliveItems_args()
8034
    args.read(iprot)
8035
    iprot.readMessageEnd()
8036
    result = getAllAliveItems_result()
8037
    result.success = self._handler.getAllAliveItems()
8038
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8039
    result.write(oprot)
8040
    oprot.writeMessageEnd()
8041
    oprot.trans.flush()
8042
 
6805 anupam.sin 8043
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8044
    args = getInsuranceAmount_args()
8045
    args.read(iprot)
8046
    iprot.readMessageEnd()
8047
    result = getInsuranceAmount_result()
6921 anupam.sin 8048
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8049
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8050
    result.write(oprot)
8051
    oprot.writeMessageEnd()
8052
    oprot.trans.flush()
6531 vikram.rag 8053
 
6805 anupam.sin 8054
  def process_getInsurer(self, seqid, iprot, oprot):
8055
    args = getInsurer_args()
8056
    args.read(iprot)
8057
    iprot.readMessageEnd()
8058
    result = getInsurer_result()
8059
    result.success = self._handler.getInsurer(args.insurerId)
8060
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8061
    result.write(oprot)
8062
    oprot.writeMessageEnd()
8063
    oprot.trans.flush()
8064
 
6838 vikram.rag 8065
  def process_getAllInsurers(self, seqid, iprot, oprot):
8066
    args = getAllInsurers_args()
8067
    args.read(iprot)
8068
    iprot.readMessageEnd()
8069
    result = getAllInsurers_result()
8070
    result.success = self._handler.getAllInsurers()
8071
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8072
    result.write(oprot)
8073
    oprot.writeMessageEnd()
8074
    oprot.trans.flush()
6805 anupam.sin 8075
 
6962 rajveer 8076
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8077
    args = updateInsuranceDeclaredAmount_args()
8078
    args.read(iprot)
8079
    iprot.readMessageEnd()
8080
    result = updateInsuranceDeclaredAmount_result()
8081
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8082
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8083
    result.write(oprot)
8084
    oprot.writeMessageEnd()
8085
    oprot.trans.flush()
6838 vikram.rag 8086
 
7190 amar.kumar 8087
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8088
    args = getFreebieForItem_args()
8089
    args.read(iprot)
8090
    iprot.readMessageEnd()
8091
    result = getFreebieForItem_result()
8092
    result.success = self._handler.getFreebieForItem(args.itemId)
8093
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8094
    result.write(oprot)
8095
    oprot.writeMessageEnd()
8096
    oprot.trans.flush()
6962 rajveer 8097
 
7190 amar.kumar 8098
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8099
    args = addOrUpdateFreebieForItem_args()
8100
    args.read(iprot)
8101
    iprot.readMessageEnd()
8102
    result = addOrUpdateFreebieForItem_result()
8103
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8104
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8105
    result.write(oprot)
8106
    oprot.writeMessageEnd()
8107
    oprot.trans.flush()
8108
 
7272 amit.gupta 8109
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8110
    args = addOrUpdateBrandInfo_args()
8111
    args.read(iprot)
8112
    iprot.readMessageEnd()
8113
    result = addOrUpdateBrandInfo_result()
8114
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8115
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8116
    result.write(oprot)
8117
    oprot.writeMessageEnd()
8118
    oprot.trans.flush()
8119
 
8120
  def process_getBrandInfo(self, seqid, iprot, oprot):
8121
    args = getBrandInfo_args()
8122
    args.read(iprot)
8123
    iprot.readMessageEnd()
8124
    result = getBrandInfo_result()
8125
    result.success = self._handler.getBrandInfo()
8126
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8127
    result.write(oprot)
8128
    oprot.writeMessageEnd()
8129
    oprot.trans.flush()
8130
 
7256 rajveer 8131
  def process_getStorePricing(self, seqid, iprot, oprot):
8132
    args = getStorePricing_args()
8133
    args.read(iprot)
8134
    iprot.readMessageEnd()
8135
    result = getStorePricing_result()
8136
    result.success = self._handler.getStorePricing(args.itemId)
8137
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8138
    result.write(oprot)
8139
    oprot.writeMessageEnd()
8140
    oprot.trans.flush()
7190 amar.kumar 8141
 
7306 rajveer 8142
  def process_getStorePricings(self, seqid, iprot, oprot):
8143
    args = getStorePricings_args()
8144
    args.read(iprot)
8145
    iprot.readMessageEnd()
8146
    result = getStorePricings_result()
8147
    result.success = self._handler.getStorePricings(args.itemIds)
8148
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8149
    result.write(oprot)
8150
    oprot.writeMessageEnd()
8151
    oprot.trans.flush()
8152
 
7265 rajveer 8153
  def process_updateStorePricing(self, seqid, iprot, oprot):
8154
    args = updateStorePricing_args()
8155
    args.read(iprot)
8156
    iprot.readMessageEnd()
8157
    result = updateStorePricing_result()
7382 rajveer 8158
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8159
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8160
    result.write(oprot)
8161
    oprot.writeMessageEnd()
8162
    oprot.trans.flush()
7256 rajveer 8163
 
7281 kshitij.so 8164
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8165
    args = getAllAmazonListedItems_args()
8166
    args.read(iprot)
8167
    iprot.readMessageEnd()
8168
    result = getAllAmazonListedItems_result()
8169
    result.success = self._handler.getAllAmazonListedItems()
8170
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8171
    result.write(oprot)
8172
    oprot.writeMessageEnd()
8173
    oprot.trans.flush()
7265 rajveer 8174
 
8619 kshitij.so 8175
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8176
    args = searchAmazonItems_args()
8177
    args.read(iprot)
8178
    iprot.readMessageEnd()
8179
    result = searchAmazonItems_result()
8180
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8181
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8182
    result.write(oprot)
8183
    oprot.writeMessageEnd()
8184
    oprot.trans.flush()
8185
 
8186
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8187
    args = getAmazonSearchResultCount_args()
8188
    args.read(iprot)
8189
    iprot.readMessageEnd()
8190
    result = getAmazonSearchResultCount_result()
8191
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8192
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8193
    result.write(oprot)
8194
    oprot.writeMessageEnd()
8195
    oprot.trans.flush()
8196
 
8197
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8198
    args = getCountForAmazonlistedItems_args()
8199
    args.read(iprot)
8200
    iprot.readMessageEnd()
8201
    result = getCountForAmazonlistedItems_result()
8202
    result.success = self._handler.getCountForAmazonlistedItems()
8203
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8204
    result.write(oprot)
8205
    oprot.writeMessageEnd()
8206
    oprot.trans.flush()
8207
 
7281 kshitij.so 8208
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8209
    args = getAmazonItemDetails_args()
8210
    args.read(iprot)
8211
    iprot.readMessageEnd()
8212
    result = getAmazonItemDetails_result()
8213
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8214
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8215
    result.write(oprot)
8216
    oprot.writeMessageEnd()
8217
    oprot.trans.flush()
8218
 
8219
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8220
    args = updateAmazonItemDetails_args()
8221
    args.read(iprot)
8222
    iprot.readMessageEnd()
8223
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8224
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8225
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8226
    result.write(oprot)
8227
    oprot.writeMessageEnd()
8228
    oprot.trans.flush()
8229
 
8230
  def process_addAmazonItem(self, seqid, iprot, oprot):
8231
    args = addAmazonItem_args()
8232
    args.read(iprot)
8233
    iprot.readMessageEnd()
8234
    result = addAmazonItem_result()
8235
    self._handler.addAmazonItem(args.amazonlisted)
8236
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8237
    result.write(oprot)
8238
    oprot.writeMessageEnd()
8239
    oprot.trans.flush()
8240
 
7291 vikram.rag 8241
  def process_getAsinItems(self, seqid, iprot, oprot):
8242
    args = getAsinItems_args()
8243
    args.read(iprot)
8244
    iprot.readMessageEnd()
8245
    result = getAsinItems_result()
8246
    result.success = self._handler.getAsinItems()
8247
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8248
    result.write(oprot)
8249
    oprot.writeMessageEnd()
8250
    oprot.trans.flush()
7281 kshitij.so 8251
 
7291 vikram.rag 8252
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8253
    args = getAllFbaListedItems_args()
8254
    args.read(iprot)
8255
    iprot.readMessageEnd()
8256
    result = getAllFbaListedItems_result()
8257
    result.success = self._handler.getAllFbaListedItems()
8258
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8259
    result.write(oprot)
8260
    oprot.writeMessageEnd()
8261
    oprot.trans.flush()
8262
 
8263
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8264
    args = getAllNonFbaListedItems_args()
8265
    args.read(iprot)
8266
    iprot.readMessageEnd()
8267
    result = getAllNonFbaListedItems_result()
8268
    result.success = self._handler.getAllNonFbaListedItems()
8269
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8270
    result.write(oprot)
8271
    oprot.writeMessageEnd()
8272
    oprot.trans.flush()
8273
 
7460 kshitij.so 8274
  def process_updateItemInventory(self, seqid, iprot, oprot):
8275
    args = updateItemInventory_args()
8276
    args.read(iprot)
8277
    iprot.readMessageEnd()
8278
    result = updateItemInventory_result()
8279
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8280
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8281
    result.write(oprot)
8282
    oprot.writeMessageEnd()
8283
    oprot.trans.flush()
7291 vikram.rag 8284
 
7770 kshitij.so 8285
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8286
    args = updateTimestampForAmazonFeeds_args()
8287
    args.read(iprot)
8288
    iprot.readMessageEnd()
8289
    result = updateTimestampForAmazonFeeds_result()
8290
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8291
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8292
    result.write(oprot)
8293
    oprot.writeMessageEnd()
8294
    oprot.trans.flush()
7460 kshitij.so 8295
 
7897 amar.kumar 8296
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8297
    args = getAllParentCategories_args()
8298
    args.read(iprot)
8299
    iprot.readMessageEnd()
8300
    result = getAllParentCategories_result()
8301
    result.success = self._handler.getAllParentCategories()
8302
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8303
    result.write(oprot)
8304
    oprot.writeMessageEnd()
8305
    oprot.trans.flush()
7770 kshitij.so 8306
 
7977 kshitij.so 8307
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8308
    args = addPageViewEvent_args()
8309
    args.read(iprot)
8310
    iprot.readMessageEnd()
8311
    result = addPageViewEvent_result()
8312
    self._handler.addPageViewEvent(args.pageViewEvents)
8313
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8314
    result.write(oprot)
8315
    oprot.writeMessageEnd()
8316
    oprot.trans.flush()
7897 amar.kumar 8317
 
7977 kshitij.so 8318
  def process_addCartEvent(self, seqid, iprot, oprot):
8319
    args = addCartEvent_args()
8320
    args.read(iprot)
8321
    iprot.readMessageEnd()
8322
    result = addCartEvent_result()
8323
    self._handler.addCartEvent(args.cartEvents)
8324
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8325
    result.write(oprot)
8326
    oprot.writeMessageEnd()
8327
    oprot.trans.flush()
8328
 
8182 amar.kumar 8329
  def process_addEbayItem(self, seqid, iprot, oprot):
8330
    args = addEbayItem_args()
8331
    args.read(iprot)
8332
    iprot.readMessageEnd()
8333
    result = addEbayItem_result()
8334
    self._handler.addEbayItem(args.ebayItem)
8335
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8336
    result.write(oprot)
8337
    oprot.writeMessageEnd()
8338
    oprot.trans.flush()
8339
 
8340
  def process_getEbayItem(self, seqid, iprot, oprot):
8341
    args = getEbayItem_args()
8342
    args.read(iprot)
8343
    iprot.readMessageEnd()
8344
    result = getEbayItem_result()
8345
    result.success = self._handler.getEbayItem(args.listingId)
8346
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8347
    result.write(oprot)
8348
    oprot.writeMessageEnd()
8349
    oprot.trans.flush()
8350
 
8351
  def process_updateEbayItem(self, seqid, iprot, oprot):
8352
    args = updateEbayItem_args()
8353
    args.read(iprot)
8354
    iprot.readMessageEnd()
8355
    result = updateEbayItem_result()
8356
    self._handler.updateEbayItem(args.ebayItem)
8357
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8358
    result.write(oprot)
8359
    oprot.writeMessageEnd()
8360
    oprot.trans.flush()
8361
 
8139 kshitij.so 8362
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8363
    args = getAmazonListedItems_args()
8364
    args.read(iprot)
8365
    iprot.readMessageEnd()
8366
    result = getAmazonListedItems_result()
8367
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8368
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8369
    result.write(oprot)
8370
    oprot.writeMessageEnd()
8371
    oprot.trans.flush()
7977 kshitij.so 8372
 
8168 kshitij.so 8373
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8374
    args = updateAmazonAttributesInBulk_args()
8375
    args.read(iprot)
8376
    iprot.readMessageEnd()
8377
    result = updateAmazonAttributesInBulk_result()
8378
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8379
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8380
    result.write(oprot)
8381
    oprot.writeMessageEnd()
8382
    oprot.trans.flush()
8139 kshitij.so 8383
 
8379 vikram.rag 8384
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8385
    args = getAllItemstoListOnFba_args()
8386
    args.read(iprot)
8387
    iprot.readMessageEnd()
8388
    result = getAllItemstoListOnFba_result()
8389
    result.success = self._handler.getAllItemstoListOnFba()
8390
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8391
    result.write(oprot)
8392
    oprot.writeMessageEnd()
8393
    oprot.trans.flush()
8168 kshitij.so 8394
 
8379 vikram.rag 8395
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8396
    args = getAllItemstoListOnNonFba_args()
8397
    args.read(iprot)
8398
    iprot.readMessageEnd()
8399
    result = getAllItemstoListOnNonFba_result()
8400
    result.success = self._handler.getAllItemstoListOnNonFba()
8401
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8402
    result.write(oprot)
8403
    oprot.writeMessageEnd()
8404
    oprot.trans.flush()
8405
 
8619 kshitij.so 8406
  def process_updateAsin(self, seqid, iprot, oprot):
8407
    args = updateAsin_args()
8408
    args.read(iprot)
8409
    iprot.readMessageEnd()
8410
    result = updateAsin_result()
8411
    self._handler.updateAsin(args.item)
8412
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8413
    result.write(oprot)
8414
    oprot.writeMessageEnd()
8415
    oprot.trans.flush()
8616 vikram.rag 8416
 
8739 vikram.rag 8417
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8418
    args = addOrUpdateSnapdealItem_args()
8419
    args.read(iprot)
8420
    iprot.readMessageEnd()
8421
    result = addOrUpdateSnapdealItem_result()
8422
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8423
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8424
    result.write(oprot)
8425
    oprot.writeMessageEnd()
8426
    oprot.trans.flush()
8619 kshitij.so 8427
 
8739 vikram.rag 8428
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8429
    args = getSnapdealItem_args()
8430
    args.read(iprot)
8431
    iprot.readMessageEnd()
8432
    result = getSnapdealItem_result()
8433
    result.success = self._handler.getSnapdealItem(args.item_id)
8434
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8435
    result.write(oprot)
8436
    oprot.writeMessageEnd()
8437
    oprot.trans.flush()
8438
 
9242 kshitij.so 8439
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8440
    args = getSnapdealItemDetails_args()
8441
    args.read(iprot)
8442
    iprot.readMessageEnd()
8443
    result = getSnapdealItemDetails_result()
8444
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8445
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8446
    result.write(oprot)
8447
    oprot.writeMessageEnd()
8448
    oprot.trans.flush()
8449
 
8739 vikram.rag 8450
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8451
    args = getAllSnapdealItems_args()
8452
    args.read(iprot)
8453
    iprot.readMessageEnd()
8454
    result = getAllSnapdealItems_result()
8455
    result.success = self._handler.getAllSnapdealItems()
8456
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8457
    result.write(oprot)
8458
    oprot.writeMessageEnd()
8459
    oprot.trans.flush()
8460
 
9242 kshitij.so 8461
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8462
    args = getSnapdealItems_args()
8463
    args.read(iprot)
8464
    iprot.readMessageEnd()
8465
    result = getSnapdealItems_result()
8466
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8467
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8468
    result.write(oprot)
8469
    oprot.writeMessageEnd()
8470
    oprot.trans.flush()
8739 vikram.rag 8471
 
9242 kshitij.so 8472
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8473
    args = searchSnapdealItems_args()
8474
    args.read(iprot)
8475
    iprot.readMessageEnd()
8476
    result = searchSnapdealItems_result()
8477
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8478
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8479
    result.write(oprot)
8480
    oprot.writeMessageEnd()
8481
    oprot.trans.flush()
8482
 
8483
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8484
    args = getCountForSnapdealItems_args()
8485
    args.read(iprot)
8486
    iprot.readMessageEnd()
8487
    result = getCountForSnapdealItems_result()
8488
    result.success = self._handler.getCountForSnapdealItems()
8489
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8490
    result.write(oprot)
8491
    oprot.writeMessageEnd()
8492
    oprot.trans.flush()
8493
 
8494
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8495
    args = getSnapdealSearchResultCount_args()
8496
    args.read(iprot)
8497
    iprot.readMessageEnd()
8498
    result = getSnapdealSearchResultCount_result()
8499
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8500
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8501
    result.write(oprot)
8502
    oprot.writeMessageEnd()
8503
    oprot.trans.flush()
8504
 
9299 kshitij.so 8505
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8506
    args = getPrefferedInsurerForItem_args()
8507
    args.read(iprot)
8508
    iprot.readMessageEnd()
8509
    result = getPrefferedInsurerForItem_result()
8510
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8511
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8512
    result.write(oprot)
8513
    oprot.writeMessageEnd()
8514
    oprot.trans.flush()
9242 kshitij.so 8515
 
9456 vikram.rag 8516
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8517
    args = getSnapdealItembySkuAtSnapdeal_args()
8518
    args.read(iprot)
8519
    iprot.readMessageEnd()
8520
    result = getSnapdealItembySkuAtSnapdeal_result()
8521
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8522
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8523
    result.write(oprot)
8524
    oprot.writeMessageEnd()
8525
    oprot.trans.flush()
9299 kshitij.so 8526
 
9621 manish.sha 8527
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8528
    args = getProductFeedSubmit_args()
8529
    args.read(iprot)
8530
    iprot.readMessageEnd()
8531
    result = getProductFeedSubmit_result()
8532
    try:
8533
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8534
    except CatalogServiceException, cex:
8535
      result.cex = cex
8536
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8537
    result.write(oprot)
8538
    oprot.writeMessageEnd()
8539
    oprot.trans.flush()
9456 vikram.rag 8540
 
9621 manish.sha 8541
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8542
    args = addProductFeedSubmit_args()
8543
    args.read(iprot)
8544
    iprot.readMessageEnd()
8545
    result = addProductFeedSubmit_result()
8546
    try:
8547
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8548
    except CatalogServiceException, cex:
8549
      result.cex = cex
8550
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8551
    result.write(oprot)
8552
    oprot.writeMessageEnd()
8553
    oprot.trans.flush()
8554
 
8555
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8556
    args = updateProductFeedSubmit_args()
8557
    args.read(iprot)
8558
    iprot.readMessageEnd()
8559
    result = updateProductFeedSubmit_result()
8560
    try:
8561
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8562
    except CatalogServiceException, cex:
8563
      result.cex = cex
8564
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8565
    result.write(oprot)
8566
    oprot.writeMessageEnd()
8567
    oprot.trans.flush()
8568
 
8569
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8570
    args = deleteProductFeedSubmit_args()
8571
    args.read(iprot)
8572
    iprot.readMessageEnd()
8573
    result = deleteProductFeedSubmit_result()
8574
    try:
8575
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8576
    except CatalogServiceException, cex:
8577
      result.cex = cex
8578
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8579
    result.write(oprot)
8580
    oprot.writeMessageEnd()
8581
    oprot.trans.flush()
8582
 
8583
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8584
    args = getAllProductFeedSubmit_args()
8585
    args.read(iprot)
8586
    iprot.readMessageEnd()
8587
    result = getAllProductFeedSubmit_result()
8588
    try:
8589
      result.success = self._handler.getAllProductFeedSubmit()
8590
    except CatalogServiceException, cex:
8591
      result.cex = cex
8592
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8593
    result.write(oprot)
8594
    oprot.writeMessageEnd()
8595
    oprot.trans.flush()
8596
 
9724 kshitij.so 8597
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8598
    args = getMarketplacedetailsForItem_args()
8599
    args.read(iprot)
8600
    iprot.readMessageEnd()
8601
    result = getMarketplacedetailsForItem_result()
8602
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8603
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8604
    result.write(oprot)
8605
    oprot.writeMessageEnd()
8606
    oprot.trans.flush()
9621 manish.sha 8607
 
9724 kshitij.so 8608
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8609
    args = updateMarketplaceAttributesForItem_args()
8610
    args.read(iprot)
8611
    iprot.readMessageEnd()
8612
    result = updateMarketplaceAttributesForItem_result()
8613
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8614
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8615
    result.write(oprot)
8616
    oprot.writeMessageEnd()
8617
    oprot.trans.flush()
8618
 
9779 kshitij.so 8619
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8620
    args = getCostingForMarketplace_args()
8621
    args.read(iprot)
8622
    iprot.readMessageEnd()
8623
    result = getCostingForMarketplace_result()
8624
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8625
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8626
    result.write(oprot)
8627
    oprot.writeMessageEnd()
8628
    oprot.trans.flush()
8629
 
9776 vikram.rag 8630
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8631
    args = getMarketPlaceItemsForPriceUpdate_args()
8632
    args.read(iprot)
8633
    iprot.readMessageEnd()
8634
    result = getMarketPlaceItemsForPriceUpdate_result()
8635
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8636
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8637
    result.write(oprot)
8638
    oprot.writeMessageEnd()
8639
    oprot.trans.flush()
9724 kshitij.so 8640
 
9776 vikram.rag 8641
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8642
    args = updateMarketPlacePriceUpdateStatus_args()
8643
    args.read(iprot)
8644
    iprot.readMessageEnd()
8645
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8646
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8647
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8648
    result.write(oprot)
8649
    oprot.writeMessageEnd()
8650
    oprot.trans.flush()
8651
 
9861 rajveer 8652
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8653
    args = updateItemHoldInventory_args()
8654
    args.read(iprot)
8655
    iprot.readMessageEnd()
8656
    result = updateItemHoldInventory_result()
8657
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8658
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8659
    result.write(oprot)
8660
    oprot.writeMessageEnd()
8661
    oprot.trans.flush()
9776 vikram.rag 8662
 
9895 vikram.rag 8663
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8664
    args = updateNlcAtMarketplaces_args()
8665
    args.read(iprot)
8666
    iprot.readMessageEnd()
8667
    result = updateNlcAtMarketplaces_result()
8668
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8669
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8670
    result.write(oprot)
8671
    oprot.writeMessageEnd()
8672
    oprot.trans.flush()
9861 rajveer 8673
 
9945 vikram.rag 8674
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8675
    args = getAllFlipkartItems_args()
8676
    args.read(iprot)
8677
    iprot.readMessageEnd()
8678
    result = getAllFlipkartItems_result()
8679
    result.success = self._handler.getAllFlipkartItems()
8680
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8681
    result.write(oprot)
8682
    oprot.writeMessageEnd()
8683
    oprot.trans.flush()
9895 vikram.rag 8684
 
10097 kshitij.so 8685
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8686
    args = addOrUpdateFlipkartItem_args()
8687
    args.read(iprot)
8688
    iprot.readMessageEnd()
8689
    result = addOrUpdateFlipkartItem_result()
8690
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8691
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8692
    result.write(oprot)
8693
    oprot.writeMessageEnd()
8694
    oprot.trans.flush()
9945 vikram.rag 8695
 
10097 kshitij.so 8696
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8697
    args = getFlipkartItem_args()
8698
    args.read(iprot)
8699
    iprot.readMessageEnd()
8700
    result = getFlipkartItem_result()
8701
    result.success = self._handler.getFlipkartItem(args.item_id)
8702
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8703
    result.write(oprot)
8704
    oprot.writeMessageEnd()
8705
    oprot.trans.flush()
8706
 
8707
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8708
    args = getFlipkartItemDetails_args()
8709
    args.read(iprot)
8710
    iprot.readMessageEnd()
8711
    result = getFlipkartItemDetails_result()
8712
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8713
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8714
    result.write(oprot)
8715
    oprot.writeMessageEnd()
8716
    oprot.trans.flush()
8717
 
8718
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8719
    args = getFlipkartItems_args()
8720
    args.read(iprot)
8721
    iprot.readMessageEnd()
8722
    result = getFlipkartItems_result()
8723
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8724
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8725
    result.write(oprot)
8726
    oprot.writeMessageEnd()
8727
    oprot.trans.flush()
8728
 
8729
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8730
    args = searchFlipkartItems_args()
8731
    args.read(iprot)
8732
    iprot.readMessageEnd()
8733
    result = searchFlipkartItems_result()
8734
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8735
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8736
    result.write(oprot)
8737
    oprot.writeMessageEnd()
8738
    oprot.trans.flush()
8739
 
8740
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8741
    args = getCountForFlipkartItems_args()
8742
    args.read(iprot)
8743
    iprot.readMessageEnd()
8744
    result = getCountForFlipkartItems_result()
8745
    result.success = self._handler.getCountForFlipkartItems()
8746
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8747
    result.write(oprot)
8748
    oprot.writeMessageEnd()
8749
    oprot.trans.flush()
8750
 
8751
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8752
    args = getFlipkartSearchResultCount_args()
8753
    args.read(iprot)
8754
    iprot.readMessageEnd()
8755
    result = getFlipkartSearchResultCount_result()
8756
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8757
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8758
    result.write(oprot)
8759
    oprot.writeMessageEnd()
8760
    oprot.trans.flush()
8761
 
8762
  def process_getAllFkItems(self, seqid, iprot, oprot):
8763
    args = getAllFkItems_args()
8764
    args.read(iprot)
8765
    iprot.readMessageEnd()
8766
    result = getAllFkItems_result()
8767
    result.success = self._handler.getAllFkItems()
8768
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8769
    result.write(oprot)
8770
    oprot.writeMessageEnd()
8771
    oprot.trans.flush()
8772
 
10140 vikram.rag 8773
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8774
    args = getFlipkartItemBySkyAtFlipkart_args()
8775
    args.read(iprot)
8776
    iprot.readMessageEnd()
8777
    result = getFlipkartItemBySkyAtFlipkart_result()
8778
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8779
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8780
    result.write(oprot)
8781
    oprot.writeMessageEnd()
8782
    oprot.trans.flush()
10097 kshitij.so 8783
 
11015 kshitij.so 8784
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8785
    args = getMarketplaceHistory_args()
8786
    args.read(iprot)
8787
    iprot.readMessageEnd()
8788
    result = getMarketplaceHistory_result()
8789
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8790
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8791
    result.write(oprot)
8792
    oprot.writeMessageEnd()
8793
    oprot.trans.flush()
8794
 
10909 vikram.rag 8795
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8796
    args = getAllFbbListedItems_args()
8797
    args.read(iprot)
8798
    iprot.readMessageEnd()
8799
    result = getAllFbbListedItems_result()
8800
    result.success = self._handler.getAllFbbListedItems()
8801
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8802
    result.write(oprot)
8803
    oprot.writeMessageEnd()
8804
    oprot.trans.flush()
10140 vikram.rag 8805
 
10924 vikram.rag 8806
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8807
    args = getAllFbbPricingItems_args()
8808
    args.read(iprot)
8809
    iprot.readMessageEnd()
8810
    result = getAllFbbPricingItems_result()
8811
    result.success = self._handler.getAllFbbPricingItems()
8812
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8813
    result.write(oprot)
8814
    oprot.writeMessageEnd()
8815
    oprot.trans.flush()
10909 vikram.rag 8816
 
11015 kshitij.so 8817
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8818
    args = getCountForMarketplaceHistory_args()
8819
    args.read(iprot)
8820
    iprot.readMessageEnd()
8821
    result = getCountForMarketplaceHistory_result()
8822
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8823
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8824
    result.write(oprot)
8825
    oprot.writeMessageEnd()
8826
    oprot.trans.flush()
10924 vikram.rag 8827
 
11015 kshitij.so 8828
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8829
    args = getMarketplaceHistoryByDate_args()
8830
    args.read(iprot)
8831
    iprot.readMessageEnd()
8832
    result = getMarketplaceHistoryByDate_result()
8833
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8834
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8835
    result.write(oprot)
8836
    oprot.writeMessageEnd()
8837
    oprot.trans.flush()
8838
 
11531 vikram.rag 8839
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8840
    args = getPrivateDealDetails_args()
8841
    args.read(iprot)
8842
    iprot.readMessageEnd()
8843
    result = getPrivateDealDetails_result()
8844
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8845
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
8846
    result.write(oprot)
8847
    oprot.writeMessageEnd()
8848
    oprot.trans.flush()
11015 kshitij.so 8849
 
11531 vikram.rag 8850
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
8851
    args = getPrivateDealItems_args()
8852
    args.read(iprot)
8853
    iprot.readMessageEnd()
8854
    result = getPrivateDealItems_result()
8855
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
8856
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
8857
    result.write(oprot)
8858
    oprot.writeMessageEnd()
8859
    oprot.trans.flush()
8860
 
11592 amit.gupta 8861
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
8862
    args = getAllActivePrivateDeals_args()
8863
    args.read(iprot)
8864
    iprot.readMessageEnd()
8865
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 8866
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 8867
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
8868
    result.write(oprot)
8869
    oprot.writeMessageEnd()
8870
    oprot.trans.flush()
8871
 
11531 vikram.rag 8872
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
8873
    args = addOrUpdatePrivateDeal_args()
8874
    args.read(iprot)
8875
    iprot.readMessageEnd()
8876
    result = addOrUpdatePrivateDeal_result()
8877
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
8878
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
8879
    result.write(oprot)
8880
    oprot.writeMessageEnd()
8881
    oprot.trans.flush()
8882
 
11635 vikram.rag 8883
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
8884
    args = getPrivateDealsCatalogIds_args()
8885
    args.read(iprot)
8886
    iprot.readMessageEnd()
8887
    result = getPrivateDealsCatalogIds_result()
8888
    try:
8889
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
8890
    except CatalogServiceException, cex:
8891
      result.cex = cex
8892
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
8893
    result.write(oprot)
8894
    oprot.writeMessageEnd()
8895
    oprot.trans.flush()
11531 vikram.rag 8896
 
11645 amit.gupta 8897
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
8898
    args = getPrivateDealsCount_args()
8899
    args.read(iprot)
8900
    iprot.readMessageEnd()
8901
    result = getPrivateDealsCount_result()
8902
    result.success = self._handler.getPrivateDealsCount()
8903
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
8904
    result.write(oprot)
8905
    oprot.writeMessageEnd()
8906
    oprot.trans.flush()
11635 vikram.rag 8907
 
11905 kshitij.so 8908
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
8909
    args = getAmazonOutSyncItems_args()
8910
    args.read(iprot)
8911
    iprot.readMessageEnd()
8912
    result = getAmazonOutSyncItems_result()
8913
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
8914
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
8915
    result.write(oprot)
8916
    oprot.writeMessageEnd()
8917
    oprot.trans.flush()
11645 amit.gupta 8918
 
11905 kshitij.so 8919
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
8920
    args = getAllPrivateDealsComparison_args()
8921
    args.read(iprot)
8922
    iprot.readMessageEnd()
8923
    result = getAllPrivateDealsComparison_result()
8924
    result.success = self._handler.getAllPrivateDealsComparison()
8925
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
8926
    result.write(oprot)
8927
    oprot.writeMessageEnd()
8928
    oprot.trans.flush()
8929
 
12133 kshitij.so 8930
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
8931
    args = getAllSnapdealMarketplaceItem_args()
8932
    args.read(iprot)
8933
    iprot.readMessageEnd()
8934
    result = getAllSnapdealMarketplaceItem_result()
8935
    result.success = self._handler.getAllSnapdealMarketplaceItem()
8936
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
8937
    result.write(oprot)
8938
    oprot.writeMessageEnd()
8939
    oprot.trans.flush()
11905 kshitij.so 8940
 
12133 kshitij.so 8941
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
8942
    args = getAllFlipkartMarketplaceItem_args()
8943
    args.read(iprot)
8944
    iprot.readMessageEnd()
8945
    result = getAllFlipkartMarketplaceItem_result()
8946
    result.success = self._handler.getAllFlipkartMarketplaceItem()
8947
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
8948
    result.write(oprot)
8949
    oprot.writeMessageEnd()
8950
    oprot.trans.flush()
8951
 
12243 kshitij.so 8952
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
8953
    args = addCompetitorScraping_args()
8954
    args.read(iprot)
8955
    iprot.readMessageEnd()
8956
    result = addCompetitorScraping_result()
8957
    self._handler.addCompetitorScraping(args.competitorPricingMap)
8958
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
8959
    result.write(oprot)
8960
    oprot.writeMessageEnd()
8961
    oprot.trans.flush()
12133 kshitij.so 8962
 
12243 kshitij.so 8963
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
8964
    args = getPreviousCompetitorScraping_args()
8965
    args.read(iprot)
8966
    iprot.readMessageEnd()
8967
    result = getPreviousCompetitorScraping_result()
8968
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
8969
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
8970
    result.write(oprot)
8971
    oprot.writeMessageEnd()
8972
    oprot.trans.flush()
8973
 
12256 kshitij.so 8974
  def process_getUploadResultById(self, seqid, iprot, oprot):
8975
    args = getUploadResultById_args()
8976
    args.read(iprot)
8977
    iprot.readMessageEnd()
8978
    result = getUploadResultById_result()
8979
    result.success = self._handler.getUploadResultById(args.uploadId)
8980
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
8981
    result.write(oprot)
8982
    oprot.writeMessageEnd()
8983
    oprot.trans.flush()
12243 kshitij.so 8984
 
12363 kshitij.so 8985
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
8986
    args = addAmazonPromotion_args()
8987
    args.read(iprot)
8988
    iprot.readMessageEnd()
8989
    result = addAmazonPromotion_result()
8990
    result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
8991
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
8992
    result.write(oprot)
8993
    oprot.writeMessageEnd()
8994
    oprot.trans.flush()
12256 kshitij.so 8995
 
12363 kshitij.so 8996
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
8997
    args = getAmazonPromotion_args()
8998
    args.read(iprot)
8999
    iprot.readMessageEnd()
9000
    result = getAmazonPromotion_result()
9001
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
9002
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
9003
    result.write(oprot)
9004
    oprot.writeMessageEnd()
9005
    oprot.trans.flush()
9006
 
9007
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
9008
    args = updateAmazonPromotion_args()
9009
    args.read(iprot)
9010
    iprot.readMessageEnd()
9011
    result = updateAmazonPromotion_result()
9012
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
9013
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
9014
    result.write(oprot)
9015
    oprot.writeMessageEnd()
9016
    oprot.trans.flush()
9017
 
12567 amit.gupta 9018
  def process_markPartiallyActive(self, seqid, iprot, oprot):
9019
    args = markPartiallyActive_args()
9020
    args.read(iprot)
9021
    iprot.readMessageEnd()
9022
    result = markPartiallyActive_result()
9023
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
9024
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
9025
    result.write(oprot)
9026
    oprot.writeMessageEnd()
9027
    oprot.trans.flush()
12363 kshitij.so 9028
 
12567 amit.gupta 9029
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9030
    args = updateItemStateVat_args()
9031
    args.read(iprot)
9032
    iprot.readMessageEnd()
9033
    result = updateItemStateVat_result()
9034
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9035
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9036
    result.write(oprot)
9037
    oprot.writeMessageEnd()
9038
    oprot.trans.flush()
9039
 
12620 amit.gupta 9040
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
9041
    args = getExAffiliateItemInfo_args()
9042
    args.read(iprot)
9043
    iprot.readMessageEnd()
9044
    result = getExAffiliateItemInfo_result()
9045
    result.success = self._handler.getExAffiliateItemInfo()
9046
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9047
    result.write(oprot)
9048
    oprot.writeMessageEnd()
9049
    oprot.trans.flush()
12567 amit.gupta 9050
 
12620 amit.gupta 9051
 
5944 mandeep.dh 9052
# HELPER FUNCTIONS AND STRUCTURES
9053
 
9054
class addItem_args:
9055
  """
9056
  Attributes:
9057
   - item
9058
  """
9059
 
9060
  thrift_spec = (
9061
    None, # 0
9062
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9063
  )
9064
 
9065
  def __init__(self, item=None,):
9066
    self.item = item
9067
 
9068
  def read(self, iprot):
9069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9071
      return
9072
    iprot.readStructBegin()
9073
    while True:
9074
      (fname, ftype, fid) = iprot.readFieldBegin()
9075
      if ftype == TType.STOP:
9076
        break
9077
      if fid == 1:
9078
        if ftype == TType.STRUCT:
9079
          self.item = Item()
9080
          self.item.read(iprot)
9081
        else:
9082
          iprot.skip(ftype)
9083
      else:
9084
        iprot.skip(ftype)
9085
      iprot.readFieldEnd()
9086
    iprot.readStructEnd()
9087
 
9088
  def write(self, oprot):
9089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9091
      return
9092
    oprot.writeStructBegin('addItem_args')
9093
    if self.item is not None:
9094
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9095
      self.item.write(oprot)
9096
      oprot.writeFieldEnd()
9097
    oprot.writeFieldStop()
9098
    oprot.writeStructEnd()
9099
 
9100
  def validate(self):
9101
    return
9102
 
9103
 
9104
  def __repr__(self):
9105
    L = ['%s=%r' % (key, value)
9106
      for key, value in self.__dict__.iteritems()]
9107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9108
 
9109
  def __eq__(self, other):
9110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9111
 
9112
  def __ne__(self, other):
9113
    return not (self == other)
9114
 
9115
class addItem_result:
9116
  """
9117
  Attributes:
9118
   - success
9119
   - cex
9120
  """
9121
 
9122
  thrift_spec = (
9123
    (0, TType.I64, 'success', None, None, ), # 0
9124
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9125
  )
9126
 
9127
  def __init__(self, success=None, cex=None,):
9128
    self.success = success
9129
    self.cex = cex
9130
 
9131
  def read(self, iprot):
9132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9134
      return
9135
    iprot.readStructBegin()
9136
    while True:
9137
      (fname, ftype, fid) = iprot.readFieldBegin()
9138
      if ftype == TType.STOP:
9139
        break
9140
      if fid == 0:
9141
        if ftype == TType.I64:
9142
          self.success = iprot.readI64();
9143
        else:
9144
          iprot.skip(ftype)
9145
      elif fid == 1:
9146
        if ftype == TType.STRUCT:
9147
          self.cex = CatalogServiceException()
9148
          self.cex.read(iprot)
9149
        else:
9150
          iprot.skip(ftype)
9151
      else:
9152
        iprot.skip(ftype)
9153
      iprot.readFieldEnd()
9154
    iprot.readStructEnd()
9155
 
9156
  def write(self, oprot):
9157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9159
      return
9160
    oprot.writeStructBegin('addItem_result')
9161
    if self.success is not None:
9162
      oprot.writeFieldBegin('success', TType.I64, 0)
9163
      oprot.writeI64(self.success)
9164
      oprot.writeFieldEnd()
9165
    if self.cex is not None:
9166
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9167
      self.cex.write(oprot)
9168
      oprot.writeFieldEnd()
9169
    oprot.writeFieldStop()
9170
    oprot.writeStructEnd()
9171
 
9172
  def validate(self):
9173
    return
9174
 
9175
 
9176
  def __repr__(self):
9177
    L = ['%s=%r' % (key, value)
9178
      for key, value in self.__dict__.iteritems()]
9179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9180
 
9181
  def __eq__(self, other):
9182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9183
 
9184
  def __ne__(self, other):
9185
    return not (self == other)
9186
 
9187
class updateItem_args:
9188
  """
9189
  Attributes:
9190
   - item
9191
  """
9192
 
9193
  thrift_spec = (
9194
    None, # 0
9195
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9196
  )
9197
 
9198
  def __init__(self, item=None,):
9199
    self.item = item
9200
 
9201
  def read(self, iprot):
9202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9204
      return
9205
    iprot.readStructBegin()
9206
    while True:
9207
      (fname, ftype, fid) = iprot.readFieldBegin()
9208
      if ftype == TType.STOP:
9209
        break
9210
      if fid == 1:
9211
        if ftype == TType.STRUCT:
9212
          self.item = Item()
9213
          self.item.read(iprot)
9214
        else:
9215
          iprot.skip(ftype)
9216
      else:
9217
        iprot.skip(ftype)
9218
      iprot.readFieldEnd()
9219
    iprot.readStructEnd()
9220
 
9221
  def write(self, oprot):
9222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9224
      return
9225
    oprot.writeStructBegin('updateItem_args')
9226
    if self.item is not None:
9227
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9228
      self.item.write(oprot)
9229
      oprot.writeFieldEnd()
9230
    oprot.writeFieldStop()
9231
    oprot.writeStructEnd()
9232
 
9233
  def validate(self):
9234
    return
9235
 
9236
 
9237
  def __repr__(self):
9238
    L = ['%s=%r' % (key, value)
9239
      for key, value in self.__dict__.iteritems()]
9240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9241
 
9242
  def __eq__(self, other):
9243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9244
 
9245
  def __ne__(self, other):
9246
    return not (self == other)
9247
 
9248
class updateItem_result:
9249
  """
9250
  Attributes:
9251
   - success
9252
   - cex
9253
  """
9254
 
9255
  thrift_spec = (
9256
    (0, TType.I64, 'success', None, None, ), # 0
9257
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9258
  )
9259
 
9260
  def __init__(self, success=None, cex=None,):
9261
    self.success = success
9262
    self.cex = cex
9263
 
9264
  def read(self, iprot):
9265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9267
      return
9268
    iprot.readStructBegin()
9269
    while True:
9270
      (fname, ftype, fid) = iprot.readFieldBegin()
9271
      if ftype == TType.STOP:
9272
        break
9273
      if fid == 0:
9274
        if ftype == TType.I64:
9275
          self.success = iprot.readI64();
9276
        else:
9277
          iprot.skip(ftype)
9278
      elif fid == 1:
9279
        if ftype == TType.STRUCT:
9280
          self.cex = CatalogServiceException()
9281
          self.cex.read(iprot)
9282
        else:
9283
          iprot.skip(ftype)
9284
      else:
9285
        iprot.skip(ftype)
9286
      iprot.readFieldEnd()
9287
    iprot.readStructEnd()
9288
 
9289
  def write(self, oprot):
9290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9292
      return
9293
    oprot.writeStructBegin('updateItem_result')
9294
    if self.success is not None:
9295
      oprot.writeFieldBegin('success', TType.I64, 0)
9296
      oprot.writeI64(self.success)
9297
      oprot.writeFieldEnd()
9298
    if self.cex is not None:
9299
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9300
      self.cex.write(oprot)
9301
      oprot.writeFieldEnd()
9302
    oprot.writeFieldStop()
9303
    oprot.writeStructEnd()
9304
 
9305
  def validate(self):
9306
    return
9307
 
9308
 
9309
  def __repr__(self):
9310
    L = ['%s=%r' % (key, value)
9311
      for key, value in self.__dict__.iteritems()]
9312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9313
 
9314
  def __eq__(self, other):
9315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9316
 
9317
  def __ne__(self, other):
9318
    return not (self == other)
9319
 
9320
class isActive_args:
9321
  """
9322
  Attributes:
9323
   - itemId
9324
  """
9325
 
9326
  thrift_spec = (
9327
    None, # 0
9328
    (1, TType.I64, 'itemId', None, None, ), # 1
9329
  )
9330
 
9331
  def __init__(self, itemId=None,):
9332
    self.itemId = itemId
9333
 
9334
  def read(self, iprot):
9335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9337
      return
9338
    iprot.readStructBegin()
9339
    while True:
9340
      (fname, ftype, fid) = iprot.readFieldBegin()
9341
      if ftype == TType.STOP:
9342
        break
9343
      if fid == 1:
9344
        if ftype == TType.I64:
9345
          self.itemId = iprot.readI64();
9346
        else:
9347
          iprot.skip(ftype)
9348
      else:
9349
        iprot.skip(ftype)
9350
      iprot.readFieldEnd()
9351
    iprot.readStructEnd()
9352
 
9353
  def write(self, oprot):
9354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9356
      return
9357
    oprot.writeStructBegin('isActive_args')
9358
    if self.itemId is not None:
9359
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9360
      oprot.writeI64(self.itemId)
9361
      oprot.writeFieldEnd()
9362
    oprot.writeFieldStop()
9363
    oprot.writeStructEnd()
9364
 
9365
  def validate(self):
9366
    return
9367
 
9368
 
9369
  def __repr__(self):
9370
    L = ['%s=%r' % (key, value)
9371
      for key, value in self.__dict__.iteritems()]
9372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9373
 
9374
  def __eq__(self, other):
9375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9376
 
9377
  def __ne__(self, other):
9378
    return not (self == other)
9379
 
9380
class isActive_result:
9381
  """
9382
  Attributes:
9383
   - success
9384
   - isex
9385
  """
9386
 
9387
  thrift_spec = (
9388
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9389
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9390
  )
9391
 
9392
  def __init__(self, success=None, isex=None,):
9393
    self.success = success
9394
    self.isex = isex
9395
 
9396
  def read(self, iprot):
9397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9399
      return
9400
    iprot.readStructBegin()
9401
    while True:
9402
      (fname, ftype, fid) = iprot.readFieldBegin()
9403
      if ftype == TType.STOP:
9404
        break
9405
      if fid == 0:
9406
        if ftype == TType.STRUCT:
9407
          self.success = ItemShippingInfo()
9408
          self.success.read(iprot)
9409
        else:
9410
          iprot.skip(ftype)
9411
      elif fid == 1:
9412
        if ftype == TType.STRUCT:
9413
          self.isex = CatalogServiceException()
9414
          self.isex.read(iprot)
9415
        else:
9416
          iprot.skip(ftype)
9417
      else:
9418
        iprot.skip(ftype)
9419
      iprot.readFieldEnd()
9420
    iprot.readStructEnd()
9421
 
9422
  def write(self, oprot):
9423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9425
      return
9426
    oprot.writeStructBegin('isActive_result')
9427
    if self.success is not None:
9428
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9429
      self.success.write(oprot)
9430
      oprot.writeFieldEnd()
9431
    if self.isex is not None:
9432
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9433
      self.isex.write(oprot)
9434
      oprot.writeFieldEnd()
9435
    oprot.writeFieldStop()
9436
    oprot.writeStructEnd()
9437
 
9438
  def validate(self):
9439
    return
9440
 
9441
 
9442
  def __repr__(self):
9443
    L = ['%s=%r' % (key, value)
9444
      for key, value in self.__dict__.iteritems()]
9445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9446
 
9447
  def __eq__(self, other):
9448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9449
 
9450
  def __ne__(self, other):
9451
    return not (self == other)
9452
 
7438 amit.gupta 9453
class getItemsStatus_args:
9454
  """
9455
  Attributes:
9456
   - itemIds
9457
  """
9458
 
9459
  thrift_spec = (
9460
    None, # 0
9461
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9462
  )
9463
 
9464
  def __init__(self, itemIds=None,):
9465
    self.itemIds = itemIds
9466
 
9467
  def read(self, iprot):
9468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9470
      return
9471
    iprot.readStructBegin()
9472
    while True:
9473
      (fname, ftype, fid) = iprot.readFieldBegin()
9474
      if ftype == TType.STOP:
9475
        break
9476
      if fid == 1:
9477
        if ftype == TType.LIST:
9478
          self.itemIds = []
8590 kshitij.so 9479
          (_etype33, _size30) = iprot.readListBegin()
9480
          for _i34 in xrange(_size30):
9481
            _elem35 = iprot.readI64();
9482
            self.itemIds.append(_elem35)
7438 amit.gupta 9483
          iprot.readListEnd()
9484
        else:
9485
          iprot.skip(ftype)
9486
      else:
9487
        iprot.skip(ftype)
9488
      iprot.readFieldEnd()
9489
    iprot.readStructEnd()
9490
 
9491
  def write(self, oprot):
9492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9494
      return
9495
    oprot.writeStructBegin('getItemsStatus_args')
9496
    if self.itemIds is not None:
9497
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9498
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9499
      for iter36 in self.itemIds:
9500
        oprot.writeI64(iter36)
7438 amit.gupta 9501
      oprot.writeListEnd()
9502
      oprot.writeFieldEnd()
9503
    oprot.writeFieldStop()
9504
    oprot.writeStructEnd()
9505
 
9506
  def validate(self):
9507
    return
9508
 
9509
 
9510
  def __repr__(self):
9511
    L = ['%s=%r' % (key, value)
9512
      for key, value in self.__dict__.iteritems()]
9513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9514
 
9515
  def __eq__(self, other):
9516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9517
 
9518
  def __ne__(self, other):
9519
    return not (self == other)
9520
 
9521
class getItemsStatus_result:
9522
  """
9523
  Attributes:
9524
   - success
9525
   - isex
9526
  """
9527
 
9528
  thrift_spec = (
9529
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9530
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9531
  )
9532
 
9533
  def __init__(self, success=None, isex=None,):
9534
    self.success = success
9535
    self.isex = isex
9536
 
9537
  def read(self, iprot):
9538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9540
      return
9541
    iprot.readStructBegin()
9542
    while True:
9543
      (fname, ftype, fid) = iprot.readFieldBegin()
9544
      if ftype == TType.STOP:
9545
        break
9546
      if fid == 0:
9547
        if ftype == TType.MAP:
9548
          self.success = {}
8590 kshitij.so 9549
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9550
          for _i41 in xrange(_size37):
9551
            _key42 = iprot.readI64();
9552
            _val43 = iprot.readBool();
9553
            self.success[_key42] = _val43
7438 amit.gupta 9554
          iprot.readMapEnd()
9555
        else:
9556
          iprot.skip(ftype)
9557
      elif fid == 1:
9558
        if ftype == TType.STRUCT:
9559
          self.isex = CatalogServiceException()
9560
          self.isex.read(iprot)
9561
        else:
9562
          iprot.skip(ftype)
9563
      else:
9564
        iprot.skip(ftype)
9565
      iprot.readFieldEnd()
9566
    iprot.readStructEnd()
9567
 
9568
  def write(self, oprot):
9569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9571
      return
9572
    oprot.writeStructBegin('getItemsStatus_result')
9573
    if self.success is not None:
9574
      oprot.writeFieldBegin('success', TType.MAP, 0)
9575
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9576
      for kiter44,viter45 in self.success.items():
9577
        oprot.writeI64(kiter44)
9578
        oprot.writeBool(viter45)
7438 amit.gupta 9579
      oprot.writeMapEnd()
9580
      oprot.writeFieldEnd()
9581
    if self.isex is not None:
9582
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9583
      self.isex.write(oprot)
9584
      oprot.writeFieldEnd()
9585
    oprot.writeFieldStop()
9586
    oprot.writeStructEnd()
9587
 
9588
  def validate(self):
9589
    return
9590
 
9591
 
9592
  def __repr__(self):
9593
    L = ['%s=%r' % (key, value)
9594
      for key, value in self.__dict__.iteritems()]
9595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9596
 
9597
  def __eq__(self, other):
9598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9599
 
9600
  def __ne__(self, other):
9601
    return not (self == other)
9602
 
5944 mandeep.dh 9603
class getItemStatusDescription_args:
9604
  """
9605
  Attributes:
9606
   - itemId
9607
  """
9608
 
9609
  thrift_spec = (
9610
    None, # 0
9611
    (1, TType.I64, 'itemId', None, None, ), # 1
9612
  )
9613
 
9614
  def __init__(self, itemId=None,):
9615
    self.itemId = itemId
9616
 
9617
  def read(self, iprot):
9618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9620
      return
9621
    iprot.readStructBegin()
9622
    while True:
9623
      (fname, ftype, fid) = iprot.readFieldBegin()
9624
      if ftype == TType.STOP:
9625
        break
9626
      if fid == 1:
9627
        if ftype == TType.I64:
9628
          self.itemId = iprot.readI64();
9629
        else:
9630
          iprot.skip(ftype)
9631
      else:
9632
        iprot.skip(ftype)
9633
      iprot.readFieldEnd()
9634
    iprot.readStructEnd()
9635
 
9636
  def write(self, oprot):
9637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9639
      return
9640
    oprot.writeStructBegin('getItemStatusDescription_args')
9641
    if self.itemId is not None:
9642
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9643
      oprot.writeI64(self.itemId)
9644
      oprot.writeFieldEnd()
9645
    oprot.writeFieldStop()
9646
    oprot.writeStructEnd()
9647
 
9648
  def validate(self):
9649
    return
9650
 
9651
 
9652
  def __repr__(self):
9653
    L = ['%s=%r' % (key, value)
9654
      for key, value in self.__dict__.iteritems()]
9655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9656
 
9657
  def __eq__(self, other):
9658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9659
 
9660
  def __ne__(self, other):
9661
    return not (self == other)
9662
 
9663
class getItemStatusDescription_result:
9664
  """
9665
  Attributes:
9666
   - success
9667
   - isex
9668
  """
9669
 
9670
  thrift_spec = (
9671
    (0, TType.STRING, 'success', None, None, ), # 0
9672
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9673
  )
9674
 
9675
  def __init__(self, success=None, isex=None,):
9676
    self.success = success
9677
    self.isex = isex
9678
 
9679
  def read(self, iprot):
9680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9682
      return
9683
    iprot.readStructBegin()
9684
    while True:
9685
      (fname, ftype, fid) = iprot.readFieldBegin()
9686
      if ftype == TType.STOP:
9687
        break
9688
      if fid == 0:
9689
        if ftype == TType.STRING:
9690
          self.success = iprot.readString();
9691
        else:
9692
          iprot.skip(ftype)
9693
      elif fid == 1:
9694
        if ftype == TType.STRUCT:
9695
          self.isex = CatalogServiceException()
9696
          self.isex.read(iprot)
9697
        else:
9698
          iprot.skip(ftype)
9699
      else:
9700
        iprot.skip(ftype)
9701
      iprot.readFieldEnd()
9702
    iprot.readStructEnd()
9703
 
9704
  def write(self, oprot):
9705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9707
      return
9708
    oprot.writeStructBegin('getItemStatusDescription_result')
9709
    if self.success is not None:
9710
      oprot.writeFieldBegin('success', TType.STRING, 0)
9711
      oprot.writeString(self.success)
9712
      oprot.writeFieldEnd()
9713
    if self.isex is not None:
9714
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9715
      self.isex.write(oprot)
9716
      oprot.writeFieldEnd()
9717
    oprot.writeFieldStop()
9718
    oprot.writeStructEnd()
9719
 
9720
  def validate(self):
9721
    return
9722
 
9723
 
9724
  def __repr__(self):
9725
    L = ['%s=%r' % (key, value)
9726
      for key, value in self.__dict__.iteritems()]
9727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9728
 
9729
  def __eq__(self, other):
9730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9731
 
9732
  def __ne__(self, other):
9733
    return not (self == other)
9734
 
9735
class startItemOn_args:
9736
  """
9737
  Attributes:
9738
   - item_id
9739
   - timestamp
9740
  """
9741
 
9742
  thrift_spec = (
9743
    None, # 0
9744
    (1, TType.I64, 'item_id', None, None, ), # 1
9745
    (2, TType.I64, 'timestamp', None, None, ), # 2
9746
  )
9747
 
9748
  def __init__(self, item_id=None, timestamp=None,):
9749
    self.item_id = item_id
9750
    self.timestamp = timestamp
9751
 
9752
  def read(self, iprot):
9753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9755
      return
9756
    iprot.readStructBegin()
9757
    while True:
9758
      (fname, ftype, fid) = iprot.readFieldBegin()
9759
      if ftype == TType.STOP:
9760
        break
9761
      if fid == 1:
9762
        if ftype == TType.I64:
9763
          self.item_id = iprot.readI64();
9764
        else:
9765
          iprot.skip(ftype)
9766
      elif fid == 2:
9767
        if ftype == TType.I64:
9768
          self.timestamp = iprot.readI64();
9769
        else:
9770
          iprot.skip(ftype)
9771
      else:
9772
        iprot.skip(ftype)
9773
      iprot.readFieldEnd()
9774
    iprot.readStructEnd()
9775
 
9776
  def write(self, oprot):
9777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9779
      return
9780
    oprot.writeStructBegin('startItemOn_args')
9781
    if self.item_id is not None:
9782
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9783
      oprot.writeI64(self.item_id)
9784
      oprot.writeFieldEnd()
9785
    if self.timestamp is not None:
9786
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9787
      oprot.writeI64(self.timestamp)
9788
      oprot.writeFieldEnd()
9789
    oprot.writeFieldStop()
9790
    oprot.writeStructEnd()
9791
 
9792
  def validate(self):
9793
    return
9794
 
9795
 
9796
  def __repr__(self):
9797
    L = ['%s=%r' % (key, value)
9798
      for key, value in self.__dict__.iteritems()]
9799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9800
 
9801
  def __eq__(self, other):
9802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9803
 
9804
  def __ne__(self, other):
9805
    return not (self == other)
9806
 
9807
class startItemOn_result:
9808
  """
9809
  Attributes:
9810
   - cex
9811
  """
9812
 
9813
  thrift_spec = (
9814
    None, # 0
9815
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9816
  )
9817
 
9818
  def __init__(self, cex=None,):
9819
    self.cex = cex
9820
 
9821
  def read(self, iprot):
9822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9824
      return
9825
    iprot.readStructBegin()
9826
    while True:
9827
      (fname, ftype, fid) = iprot.readFieldBegin()
9828
      if ftype == TType.STOP:
9829
        break
9830
      if fid == 1:
9831
        if ftype == TType.STRUCT:
9832
          self.cex = CatalogServiceException()
9833
          self.cex.read(iprot)
9834
        else:
9835
          iprot.skip(ftype)
9836
      else:
9837
        iprot.skip(ftype)
9838
      iprot.readFieldEnd()
9839
    iprot.readStructEnd()
9840
 
9841
  def write(self, oprot):
9842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9844
      return
9845
    oprot.writeStructBegin('startItemOn_result')
9846
    if self.cex is not None:
9847
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9848
      self.cex.write(oprot)
9849
      oprot.writeFieldEnd()
9850
    oprot.writeFieldStop()
9851
    oprot.writeStructEnd()
9852
 
9853
  def validate(self):
9854
    return
9855
 
9856
 
9857
  def __repr__(self):
9858
    L = ['%s=%r' % (key, value)
9859
      for key, value in self.__dict__.iteritems()]
9860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9861
 
9862
  def __eq__(self, other):
9863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9864
 
9865
  def __ne__(self, other):
9866
    return not (self == other)
9867
 
9868
class retireItemOn_args:
9869
  """
9870
  Attributes:
9871
   - item_id
9872
   - timestamp
9873
  """
9874
 
9875
  thrift_spec = (
9876
    None, # 0
9877
    (1, TType.I64, 'item_id', None, None, ), # 1
9878
    (2, TType.I64, 'timestamp', None, None, ), # 2
9879
  )
9880
 
9881
  def __init__(self, item_id=None, timestamp=None,):
9882
    self.item_id = item_id
9883
    self.timestamp = timestamp
9884
 
9885
  def read(self, iprot):
9886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9888
      return
9889
    iprot.readStructBegin()
9890
    while True:
9891
      (fname, ftype, fid) = iprot.readFieldBegin()
9892
      if ftype == TType.STOP:
9893
        break
9894
      if fid == 1:
9895
        if ftype == TType.I64:
9896
          self.item_id = iprot.readI64();
9897
        else:
9898
          iprot.skip(ftype)
9899
      elif fid == 2:
9900
        if ftype == TType.I64:
9901
          self.timestamp = iprot.readI64();
9902
        else:
9903
          iprot.skip(ftype)
9904
      else:
9905
        iprot.skip(ftype)
9906
      iprot.readFieldEnd()
9907
    iprot.readStructEnd()
9908
 
9909
  def write(self, oprot):
9910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9912
      return
9913
    oprot.writeStructBegin('retireItemOn_args')
9914
    if self.item_id is not None:
9915
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9916
      oprot.writeI64(self.item_id)
9917
      oprot.writeFieldEnd()
9918
    if self.timestamp is not None:
9919
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9920
      oprot.writeI64(self.timestamp)
9921
      oprot.writeFieldEnd()
9922
    oprot.writeFieldStop()
9923
    oprot.writeStructEnd()
9924
 
9925
  def validate(self):
9926
    return
9927
 
9928
 
9929
  def __repr__(self):
9930
    L = ['%s=%r' % (key, value)
9931
      for key, value in self.__dict__.iteritems()]
9932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9933
 
9934
  def __eq__(self, other):
9935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9936
 
9937
  def __ne__(self, other):
9938
    return not (self == other)
9939
 
9940
class retireItemOn_result:
9941
  """
9942
  Attributes:
9943
   - cex
9944
  """
9945
 
9946
  thrift_spec = (
9947
    None, # 0
9948
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9949
  )
9950
 
9951
  def __init__(self, cex=None,):
9952
    self.cex = cex
9953
 
9954
  def read(self, iprot):
9955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9957
      return
9958
    iprot.readStructBegin()
9959
    while True:
9960
      (fname, ftype, fid) = iprot.readFieldBegin()
9961
      if ftype == TType.STOP:
9962
        break
9963
      if fid == 1:
9964
        if ftype == TType.STRUCT:
9965
          self.cex = CatalogServiceException()
9966
          self.cex.read(iprot)
9967
        else:
9968
          iprot.skip(ftype)
9969
      else:
9970
        iprot.skip(ftype)
9971
      iprot.readFieldEnd()
9972
    iprot.readStructEnd()
9973
 
9974
  def write(self, oprot):
9975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9977
      return
9978
    oprot.writeStructBegin('retireItemOn_result')
9979
    if self.cex is not None:
9980
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9981
      self.cex.write(oprot)
9982
      oprot.writeFieldEnd()
9983
    oprot.writeFieldStop()
9984
    oprot.writeStructEnd()
9985
 
9986
  def validate(self):
9987
    return
9988
 
9989
 
9990
  def __repr__(self):
9991
    L = ['%s=%r' % (key, value)
9992
      for key, value in self.__dict__.iteritems()]
9993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9994
 
9995
  def __eq__(self, other):
9996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9997
 
9998
  def __ne__(self, other):
9999
    return not (self == other)
10000
 
10001
class changeItemStatus_args:
10002
  """
10003
  Attributes:
10004
   - item_id
10005
   - timestamp
10006
   - newstatus
10007
  """
10008
 
10009
  thrift_spec = (
10010
    None, # 0
10011
    (1, TType.I64, 'item_id', None, None, ), # 1
10012
    (2, TType.I64, 'timestamp', None, None, ), # 2
10013
    (3, TType.I32, 'newstatus', None, None, ), # 3
10014
  )
10015
 
10016
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
10017
    self.item_id = item_id
10018
    self.timestamp = timestamp
10019
    self.newstatus = newstatus
10020
 
10021
  def read(self, iprot):
10022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10024
      return
10025
    iprot.readStructBegin()
10026
    while True:
10027
      (fname, ftype, fid) = iprot.readFieldBegin()
10028
      if ftype == TType.STOP:
10029
        break
10030
      if fid == 1:
10031
        if ftype == TType.I64:
10032
          self.item_id = iprot.readI64();
10033
        else:
10034
          iprot.skip(ftype)
10035
      elif fid == 2:
10036
        if ftype == TType.I64:
10037
          self.timestamp = iprot.readI64();
10038
        else:
10039
          iprot.skip(ftype)
10040
      elif fid == 3:
10041
        if ftype == TType.I32:
10042
          self.newstatus = iprot.readI32();
10043
        else:
10044
          iprot.skip(ftype)
10045
      else:
10046
        iprot.skip(ftype)
10047
      iprot.readFieldEnd()
10048
    iprot.readStructEnd()
10049
 
10050
  def write(self, oprot):
10051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10053
      return
10054
    oprot.writeStructBegin('changeItemStatus_args')
10055
    if self.item_id is not None:
10056
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10057
      oprot.writeI64(self.item_id)
10058
      oprot.writeFieldEnd()
10059
    if self.timestamp is not None:
10060
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10061
      oprot.writeI64(self.timestamp)
10062
      oprot.writeFieldEnd()
10063
    if self.newstatus is not None:
10064
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10065
      oprot.writeI32(self.newstatus)
10066
      oprot.writeFieldEnd()
10067
    oprot.writeFieldStop()
10068
    oprot.writeStructEnd()
10069
 
10070
  def validate(self):
10071
    return
10072
 
10073
 
10074
  def __repr__(self):
10075
    L = ['%s=%r' % (key, value)
10076
      for key, value in self.__dict__.iteritems()]
10077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10078
 
10079
  def __eq__(self, other):
10080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10081
 
10082
  def __ne__(self, other):
10083
    return not (self == other)
10084
 
10085
class changeItemStatus_result:
10086
  """
10087
  Attributes:
10088
   - cex
10089
  """
10090
 
10091
  thrift_spec = (
10092
    None, # 0
10093
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10094
  )
10095
 
10096
  def __init__(self, cex=None,):
10097
    self.cex = cex
10098
 
10099
  def read(self, iprot):
10100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10102
      return
10103
    iprot.readStructBegin()
10104
    while True:
10105
      (fname, ftype, fid) = iprot.readFieldBegin()
10106
      if ftype == TType.STOP:
10107
        break
10108
      if fid == 1:
10109
        if ftype == TType.STRUCT:
10110
          self.cex = CatalogServiceException()
10111
          self.cex.read(iprot)
10112
        else:
10113
          iprot.skip(ftype)
10114
      else:
10115
        iprot.skip(ftype)
10116
      iprot.readFieldEnd()
10117
    iprot.readStructEnd()
10118
 
10119
  def write(self, oprot):
10120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10122
      return
10123
    oprot.writeStructBegin('changeItemStatus_result')
10124
    if self.cex is not None:
10125
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10126
      self.cex.write(oprot)
10127
      oprot.writeFieldEnd()
10128
    oprot.writeFieldStop()
10129
    oprot.writeStructEnd()
10130
 
10131
  def validate(self):
10132
    return
10133
 
10134
 
10135
  def __repr__(self):
10136
    L = ['%s=%r' % (key, value)
10137
      for key, value in self.__dict__.iteritems()]
10138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10139
 
10140
  def __eq__(self, other):
10141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10142
 
10143
  def __ne__(self, other):
10144
    return not (self == other)
10145
 
10146
class getItem_args:
10147
  """
10148
  Attributes:
10149
   - item_id
10150
  """
10151
 
10152
  thrift_spec = (
10153
    None, # 0
10154
    (1, TType.I64, 'item_id', None, None, ), # 1
10155
  )
10156
 
10157
  def __init__(self, item_id=None,):
10158
    self.item_id = item_id
10159
 
10160
  def read(self, iprot):
10161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10163
      return
10164
    iprot.readStructBegin()
10165
    while True:
10166
      (fname, ftype, fid) = iprot.readFieldBegin()
10167
      if ftype == TType.STOP:
10168
        break
10169
      if fid == 1:
10170
        if ftype == TType.I64:
10171
          self.item_id = iprot.readI64();
10172
        else:
10173
          iprot.skip(ftype)
10174
      else:
10175
        iprot.skip(ftype)
10176
      iprot.readFieldEnd()
10177
    iprot.readStructEnd()
10178
 
10179
  def write(self, oprot):
10180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10182
      return
10183
    oprot.writeStructBegin('getItem_args')
10184
    if self.item_id is not None:
10185
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10186
      oprot.writeI64(self.item_id)
10187
      oprot.writeFieldEnd()
10188
    oprot.writeFieldStop()
10189
    oprot.writeStructEnd()
10190
 
10191
  def validate(self):
10192
    return
10193
 
10194
 
10195
  def __repr__(self):
10196
    L = ['%s=%r' % (key, value)
10197
      for key, value in self.__dict__.iteritems()]
10198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10199
 
10200
  def __eq__(self, other):
10201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10202
 
10203
  def __ne__(self, other):
10204
    return not (self == other)
10205
 
10206
class getItem_result:
10207
  """
10208
  Attributes:
10209
   - success
10210
   - cex
10211
  """
10212
 
10213
  thrift_spec = (
10214
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10215
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10216
  )
10217
 
10218
  def __init__(self, success=None, cex=None,):
10219
    self.success = success
10220
    self.cex = cex
10221
 
10222
  def read(self, iprot):
10223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10225
      return
10226
    iprot.readStructBegin()
10227
    while True:
10228
      (fname, ftype, fid) = iprot.readFieldBegin()
10229
      if ftype == TType.STOP:
10230
        break
10231
      if fid == 0:
10232
        if ftype == TType.STRUCT:
10233
          self.success = Item()
10234
          self.success.read(iprot)
10235
        else:
10236
          iprot.skip(ftype)
10237
      elif fid == 1:
10238
        if ftype == TType.STRUCT:
10239
          self.cex = CatalogServiceException()
10240
          self.cex.read(iprot)
10241
        else:
10242
          iprot.skip(ftype)
10243
      else:
10244
        iprot.skip(ftype)
10245
      iprot.readFieldEnd()
10246
    iprot.readStructEnd()
10247
 
10248
  def write(self, oprot):
10249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10251
      return
10252
    oprot.writeStructBegin('getItem_result')
10253
    if self.success is not None:
10254
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10255
      self.success.write(oprot)
10256
      oprot.writeFieldEnd()
10257
    if self.cex is not None:
10258
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10259
      self.cex.write(oprot)
10260
      oprot.writeFieldEnd()
10261
    oprot.writeFieldStop()
10262
    oprot.writeStructEnd()
10263
 
10264
  def validate(self):
10265
    return
10266
 
10267
 
10268
  def __repr__(self):
10269
    L = ['%s=%r' % (key, value)
10270
      for key, value in self.__dict__.iteritems()]
10271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10272
 
10273
  def __eq__(self, other):
10274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10275
 
10276
  def __ne__(self, other):
10277
    return not (self == other)
10278
 
10279
class getItemsByCatalogId_args:
10280
  """
10281
  Attributes:
10282
   - catalog_item_id
10283
  """
10284
 
10285
  thrift_spec = (
10286
    None, # 0
10287
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10288
  )
10289
 
10290
  def __init__(self, catalog_item_id=None,):
10291
    self.catalog_item_id = catalog_item_id
10292
 
10293
  def read(self, iprot):
10294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10296
      return
10297
    iprot.readStructBegin()
10298
    while True:
10299
      (fname, ftype, fid) = iprot.readFieldBegin()
10300
      if ftype == TType.STOP:
10301
        break
10302
      if fid == 1:
10303
        if ftype == TType.I64:
10304
          self.catalog_item_id = iprot.readI64();
10305
        else:
10306
          iprot.skip(ftype)
10307
      else:
10308
        iprot.skip(ftype)
10309
      iprot.readFieldEnd()
10310
    iprot.readStructEnd()
10311
 
10312
  def write(self, oprot):
10313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10315
      return
10316
    oprot.writeStructBegin('getItemsByCatalogId_args')
10317
    if self.catalog_item_id is not None:
10318
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10319
      oprot.writeI64(self.catalog_item_id)
10320
      oprot.writeFieldEnd()
10321
    oprot.writeFieldStop()
10322
    oprot.writeStructEnd()
10323
 
10324
  def validate(self):
10325
    return
10326
 
10327
 
10328
  def __repr__(self):
10329
    L = ['%s=%r' % (key, value)
10330
      for key, value in self.__dict__.iteritems()]
10331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10332
 
10333
  def __eq__(self, other):
10334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10335
 
10336
  def __ne__(self, other):
10337
    return not (self == other)
10338
 
10339
class getItemsByCatalogId_result:
10340
  """
10341
  Attributes:
10342
   - success
10343
   - cex
10344
  """
10345
 
10346
  thrift_spec = (
10347
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10348
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10349
  )
10350
 
10351
  def __init__(self, success=None, cex=None,):
10352
    self.success = success
10353
    self.cex = cex
10354
 
10355
  def read(self, iprot):
10356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10358
      return
10359
    iprot.readStructBegin()
10360
    while True:
10361
      (fname, ftype, fid) = iprot.readFieldBegin()
10362
      if ftype == TType.STOP:
10363
        break
10364
      if fid == 0:
10365
        if ftype == TType.LIST:
10366
          self.success = []
8590 kshitij.so 10367
          (_etype49, _size46) = iprot.readListBegin()
10368
          for _i50 in xrange(_size46):
10369
            _elem51 = Item()
10370
            _elem51.read(iprot)
10371
            self.success.append(_elem51)
5944 mandeep.dh 10372
          iprot.readListEnd()
10373
        else:
10374
          iprot.skip(ftype)
10375
      elif fid == 1:
10376
        if ftype == TType.STRUCT:
10377
          self.cex = CatalogServiceException()
10378
          self.cex.read(iprot)
10379
        else:
10380
          iprot.skip(ftype)
10381
      else:
10382
        iprot.skip(ftype)
10383
      iprot.readFieldEnd()
10384
    iprot.readStructEnd()
10385
 
10386
  def write(self, oprot):
10387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10389
      return
10390
    oprot.writeStructBegin('getItemsByCatalogId_result')
10391
    if self.success is not None:
10392
      oprot.writeFieldBegin('success', TType.LIST, 0)
10393
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10394
      for iter52 in self.success:
10395
        iter52.write(oprot)
5944 mandeep.dh 10396
      oprot.writeListEnd()
10397
      oprot.writeFieldEnd()
10398
    if self.cex is not None:
10399
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10400
      self.cex.write(oprot)
10401
      oprot.writeFieldEnd()
10402
    oprot.writeFieldStop()
10403
    oprot.writeStructEnd()
10404
 
10405
  def validate(self):
10406
    return
10407
 
10408
 
10409
  def __repr__(self):
10410
    L = ['%s=%r' % (key, value)
10411
      for key, value in self.__dict__.iteritems()]
10412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10413
 
10414
  def __eq__(self, other):
10415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10416
 
10417
  def __ne__(self, other):
10418
    return not (self == other)
10419
 
10420
class getValidItemsByCatalogId_args:
10421
  """
10422
  Attributes:
10423
   - catalog_item_id
10424
  """
10425
 
10426
  thrift_spec = (
10427
    None, # 0
10428
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10429
  )
10430
 
10431
  def __init__(self, catalog_item_id=None,):
10432
    self.catalog_item_id = catalog_item_id
10433
 
10434
  def read(self, iprot):
10435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10437
      return
10438
    iprot.readStructBegin()
10439
    while True:
10440
      (fname, ftype, fid) = iprot.readFieldBegin()
10441
      if ftype == TType.STOP:
10442
        break
10443
      if fid == 1:
10444
        if ftype == TType.I64:
10445
          self.catalog_item_id = iprot.readI64();
10446
        else:
10447
          iprot.skip(ftype)
10448
      else:
10449
        iprot.skip(ftype)
10450
      iprot.readFieldEnd()
10451
    iprot.readStructEnd()
10452
 
10453
  def write(self, oprot):
10454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10456
      return
10457
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10458
    if self.catalog_item_id is not None:
10459
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10460
      oprot.writeI64(self.catalog_item_id)
10461
      oprot.writeFieldEnd()
10462
    oprot.writeFieldStop()
10463
    oprot.writeStructEnd()
10464
 
10465
  def validate(self):
10466
    return
10467
 
10468
 
10469
  def __repr__(self):
10470
    L = ['%s=%r' % (key, value)
10471
      for key, value in self.__dict__.iteritems()]
10472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10473
 
10474
  def __eq__(self, other):
10475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10476
 
10477
  def __ne__(self, other):
10478
    return not (self == other)
10479
 
10480
class getValidItemsByCatalogId_result:
10481
  """
10482
  Attributes:
10483
   - success
10484
   - cex
10485
  """
10486
 
10487
  thrift_spec = (
10488
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10489
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10490
  )
10491
 
10492
  def __init__(self, success=None, cex=None,):
10493
    self.success = success
10494
    self.cex = cex
10495
 
10496
  def read(self, iprot):
10497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10499
      return
10500
    iprot.readStructBegin()
10501
    while True:
10502
      (fname, ftype, fid) = iprot.readFieldBegin()
10503
      if ftype == TType.STOP:
10504
        break
10505
      if fid == 0:
10506
        if ftype == TType.LIST:
10507
          self.success = []
8590 kshitij.so 10508
          (_etype56, _size53) = iprot.readListBegin()
10509
          for _i57 in xrange(_size53):
10510
            _elem58 = Item()
10511
            _elem58.read(iprot)
10512
            self.success.append(_elem58)
5944 mandeep.dh 10513
          iprot.readListEnd()
10514
        else:
10515
          iprot.skip(ftype)
10516
      elif fid == 1:
10517
        if ftype == TType.STRUCT:
10518
          self.cex = CatalogServiceException()
10519
          self.cex.read(iprot)
10520
        else:
10521
          iprot.skip(ftype)
10522
      else:
10523
        iprot.skip(ftype)
10524
      iprot.readFieldEnd()
10525
    iprot.readStructEnd()
10526
 
10527
  def write(self, oprot):
10528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10530
      return
10531
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10532
    if self.success is not None:
10533
      oprot.writeFieldBegin('success', TType.LIST, 0)
10534
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10535
      for iter59 in self.success:
10536
        iter59.write(oprot)
5944 mandeep.dh 10537
      oprot.writeListEnd()
10538
      oprot.writeFieldEnd()
10539
    if self.cex is not None:
10540
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10541
      self.cex.write(oprot)
10542
      oprot.writeFieldEnd()
10543
    oprot.writeFieldStop()
10544
    oprot.writeStructEnd()
10545
 
10546
  def validate(self):
10547
    return
10548
 
10549
 
10550
  def __repr__(self):
10551
    L = ['%s=%r' % (key, value)
10552
      for key, value in self.__dict__.iteritems()]
10553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10554
 
10555
  def __eq__(self, other):
10556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10557
 
10558
  def __ne__(self, other):
10559
    return not (self == other)
10560
 
10561
class getAllItems_args:
10562
  """
10563
  Attributes:
10564
   - isActive
10565
  """
10566
 
10567
  thrift_spec = (
10568
    None, # 0
10569
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10570
  )
10571
 
10572
  def __init__(self, isActive=None,):
10573
    self.isActive = isActive
10574
 
10575
  def read(self, iprot):
10576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10578
      return
10579
    iprot.readStructBegin()
10580
    while True:
10581
      (fname, ftype, fid) = iprot.readFieldBegin()
10582
      if ftype == TType.STOP:
10583
        break
10584
      if fid == 1:
10585
        if ftype == TType.BOOL:
10586
          self.isActive = iprot.readBool();
10587
        else:
10588
          iprot.skip(ftype)
10589
      else:
10590
        iprot.skip(ftype)
10591
      iprot.readFieldEnd()
10592
    iprot.readStructEnd()
10593
 
10594
  def write(self, oprot):
10595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10597
      return
10598
    oprot.writeStructBegin('getAllItems_args')
10599
    if self.isActive is not None:
10600
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10601
      oprot.writeBool(self.isActive)
10602
      oprot.writeFieldEnd()
10603
    oprot.writeFieldStop()
10604
    oprot.writeStructEnd()
10605
 
10606
  def validate(self):
10607
    return
10608
 
10609
 
10610
  def __repr__(self):
10611
    L = ['%s=%r' % (key, value)
10612
      for key, value in self.__dict__.iteritems()]
10613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10614
 
10615
  def __eq__(self, other):
10616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10617
 
10618
  def __ne__(self, other):
10619
    return not (self == other)
10620
 
10621
class getAllItems_result:
10622
  """
10623
  Attributes:
10624
   - success
10625
   - cex
10626
  """
10627
 
10628
  thrift_spec = (
10629
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10630
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10631
  )
10632
 
10633
  def __init__(self, success=None, cex=None,):
10634
    self.success = success
10635
    self.cex = cex
10636
 
10637
  def read(self, iprot):
10638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10640
      return
10641
    iprot.readStructBegin()
10642
    while True:
10643
      (fname, ftype, fid) = iprot.readFieldBegin()
10644
      if ftype == TType.STOP:
10645
        break
10646
      if fid == 0:
10647
        if ftype == TType.LIST:
10648
          self.success = []
8590 kshitij.so 10649
          (_etype63, _size60) = iprot.readListBegin()
10650
          for _i64 in xrange(_size60):
10651
            _elem65 = Item()
10652
            _elem65.read(iprot)
10653
            self.success.append(_elem65)
5944 mandeep.dh 10654
          iprot.readListEnd()
10655
        else:
10656
          iprot.skip(ftype)
10657
      elif fid == 1:
10658
        if ftype == TType.STRUCT:
10659
          self.cex = CatalogServiceException()
10660
          self.cex.read(iprot)
10661
        else:
10662
          iprot.skip(ftype)
10663
      else:
10664
        iprot.skip(ftype)
10665
      iprot.readFieldEnd()
10666
    iprot.readStructEnd()
10667
 
10668
  def write(self, oprot):
10669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10671
      return
10672
    oprot.writeStructBegin('getAllItems_result')
10673
    if self.success is not None:
10674
      oprot.writeFieldBegin('success', TType.LIST, 0)
10675
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10676
      for iter66 in self.success:
10677
        iter66.write(oprot)
5944 mandeep.dh 10678
      oprot.writeListEnd()
10679
      oprot.writeFieldEnd()
10680
    if self.cex is not None:
10681
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10682
      self.cex.write(oprot)
10683
      oprot.writeFieldEnd()
10684
    oprot.writeFieldStop()
10685
    oprot.writeStructEnd()
10686
 
10687
  def validate(self):
10688
    return
10689
 
10690
 
10691
  def __repr__(self):
10692
    L = ['%s=%r' % (key, value)
10693
      for key, value in self.__dict__.iteritems()]
10694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10695
 
10696
  def __eq__(self, other):
10697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10698
 
10699
  def __ne__(self, other):
10700
    return not (self == other)
10701
 
10702
class getAllItemsByStatus_args:
10703
  """
10704
  Attributes:
10705
   - itemStatus
10706
  """
10707
 
10708
  thrift_spec = (
10709
    None, # 0
10710
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10711
  )
10712
 
10713
  def __init__(self, itemStatus=None,):
10714
    self.itemStatus = itemStatus
10715
 
10716
  def read(self, iprot):
10717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10719
      return
10720
    iprot.readStructBegin()
10721
    while True:
10722
      (fname, ftype, fid) = iprot.readFieldBegin()
10723
      if ftype == TType.STOP:
10724
        break
10725
      if fid == 1:
10726
        if ftype == TType.I32:
10727
          self.itemStatus = iprot.readI32();
10728
        else:
10729
          iprot.skip(ftype)
10730
      else:
10731
        iprot.skip(ftype)
10732
      iprot.readFieldEnd()
10733
    iprot.readStructEnd()
10734
 
10735
  def write(self, oprot):
10736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10738
      return
10739
    oprot.writeStructBegin('getAllItemsByStatus_args')
10740
    if self.itemStatus is not None:
10741
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10742
      oprot.writeI32(self.itemStatus)
10743
      oprot.writeFieldEnd()
10744
    oprot.writeFieldStop()
10745
    oprot.writeStructEnd()
10746
 
10747
  def validate(self):
10748
    return
10749
 
10750
 
10751
  def __repr__(self):
10752
    L = ['%s=%r' % (key, value)
10753
      for key, value in self.__dict__.iteritems()]
10754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10755
 
10756
  def __eq__(self, other):
10757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10758
 
10759
  def __ne__(self, other):
10760
    return not (self == other)
10761
 
10762
class getAllItemsByStatus_result:
10763
  """
10764
  Attributes:
10765
   - success
10766
   - cex
10767
  """
10768
 
10769
  thrift_spec = (
10770
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10771
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10772
  )
10773
 
10774
  def __init__(self, success=None, cex=None,):
10775
    self.success = success
10776
    self.cex = cex
10777
 
10778
  def read(self, iprot):
10779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10781
      return
10782
    iprot.readStructBegin()
10783
    while True:
10784
      (fname, ftype, fid) = iprot.readFieldBegin()
10785
      if ftype == TType.STOP:
10786
        break
10787
      if fid == 0:
10788
        if ftype == TType.LIST:
10789
          self.success = []
8590 kshitij.so 10790
          (_etype70, _size67) = iprot.readListBegin()
10791
          for _i71 in xrange(_size67):
10792
            _elem72 = Item()
10793
            _elem72.read(iprot)
10794
            self.success.append(_elem72)
5944 mandeep.dh 10795
          iprot.readListEnd()
10796
        else:
10797
          iprot.skip(ftype)
10798
      elif fid == 1:
10799
        if ftype == TType.STRUCT:
10800
          self.cex = CatalogServiceException()
10801
          self.cex.read(iprot)
10802
        else:
10803
          iprot.skip(ftype)
10804
      else:
10805
        iprot.skip(ftype)
10806
      iprot.readFieldEnd()
10807
    iprot.readStructEnd()
10808
 
10809
  def write(self, oprot):
10810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10812
      return
10813
    oprot.writeStructBegin('getAllItemsByStatus_result')
10814
    if self.success is not None:
10815
      oprot.writeFieldBegin('success', TType.LIST, 0)
10816
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10817
      for iter73 in self.success:
10818
        iter73.write(oprot)
5944 mandeep.dh 10819
      oprot.writeListEnd()
10820
      oprot.writeFieldEnd()
10821
    if self.cex is not None:
10822
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10823
      self.cex.write(oprot)
10824
      oprot.writeFieldEnd()
10825
    oprot.writeFieldStop()
10826
    oprot.writeStructEnd()
10827
 
10828
  def validate(self):
10829
    return
10830
 
10831
 
10832
  def __repr__(self):
10833
    L = ['%s=%r' % (key, value)
10834
      for key, value in self.__dict__.iteritems()]
10835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10836
 
10837
  def __eq__(self, other):
10838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10839
 
10840
  def __ne__(self, other):
10841
    return not (self == other)
10842
 
10843
class markItemAsContentComplete_args:
10844
  """
10845
  Attributes:
10846
   - entityId
10847
   - category
10848
   - brand
10849
   - modelName
10850
   - modelNumber
9253 rajveer 10851
   - isAndroid
5944 mandeep.dh 10852
  """
10853
 
10854
  thrift_spec = (
10855
    None, # 0
10856
    (1, TType.I64, 'entityId', None, None, ), # 1
10857
    (2, TType.I64, 'category', None, None, ), # 2
10858
    (3, TType.STRING, 'brand', None, None, ), # 3
10859
    (4, TType.STRING, 'modelName', None, None, ), # 4
10860
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 10861
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 10862
  )
10863
 
9253 rajveer 10864
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 10865
    self.entityId = entityId
10866
    self.category = category
10867
    self.brand = brand
10868
    self.modelName = modelName
10869
    self.modelNumber = modelNumber
9253 rajveer 10870
    self.isAndroid = isAndroid
5944 mandeep.dh 10871
 
10872
  def read(self, iprot):
10873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10875
      return
10876
    iprot.readStructBegin()
10877
    while True:
10878
      (fname, ftype, fid) = iprot.readFieldBegin()
10879
      if ftype == TType.STOP:
10880
        break
10881
      if fid == 1:
10882
        if ftype == TType.I64:
10883
          self.entityId = iprot.readI64();
10884
        else:
10885
          iprot.skip(ftype)
10886
      elif fid == 2:
10887
        if ftype == TType.I64:
10888
          self.category = iprot.readI64();
10889
        else:
10890
          iprot.skip(ftype)
10891
      elif fid == 3:
10892
        if ftype == TType.STRING:
10893
          self.brand = iprot.readString();
10894
        else:
10895
          iprot.skip(ftype)
10896
      elif fid == 4:
10897
        if ftype == TType.STRING:
10898
          self.modelName = iprot.readString();
10899
        else:
10900
          iprot.skip(ftype)
10901
      elif fid == 5:
10902
        if ftype == TType.STRING:
10903
          self.modelNumber = iprot.readString();
10904
        else:
10905
          iprot.skip(ftype)
9253 rajveer 10906
      elif fid == 6:
10907
        if ftype == TType.BOOL:
10908
          self.isAndroid = iprot.readBool();
10909
        else:
10910
          iprot.skip(ftype)
5944 mandeep.dh 10911
      else:
10912
        iprot.skip(ftype)
10913
      iprot.readFieldEnd()
10914
    iprot.readStructEnd()
10915
 
10916
  def write(self, oprot):
10917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10919
      return
10920
    oprot.writeStructBegin('markItemAsContentComplete_args')
10921
    if self.entityId is not None:
10922
      oprot.writeFieldBegin('entityId', TType.I64, 1)
10923
      oprot.writeI64(self.entityId)
10924
      oprot.writeFieldEnd()
10925
    if self.category is not None:
10926
      oprot.writeFieldBegin('category', TType.I64, 2)
10927
      oprot.writeI64(self.category)
10928
      oprot.writeFieldEnd()
10929
    if self.brand is not None:
10930
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10931
      oprot.writeString(self.brand)
10932
      oprot.writeFieldEnd()
10933
    if self.modelName is not None:
10934
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
10935
      oprot.writeString(self.modelName)
10936
      oprot.writeFieldEnd()
10937
    if self.modelNumber is not None:
10938
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
10939
      oprot.writeString(self.modelNumber)
10940
      oprot.writeFieldEnd()
9253 rajveer 10941
    if self.isAndroid is not None:
10942
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
10943
      oprot.writeBool(self.isAndroid)
10944
      oprot.writeFieldEnd()
5944 mandeep.dh 10945
    oprot.writeFieldStop()
10946
    oprot.writeStructEnd()
10947
 
10948
  def validate(self):
10949
    return
10950
 
10951
 
10952
  def __repr__(self):
10953
    L = ['%s=%r' % (key, value)
10954
      for key, value in self.__dict__.iteritems()]
10955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10956
 
10957
  def __eq__(self, other):
10958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10959
 
10960
  def __ne__(self, other):
10961
    return not (self == other)
10962
 
10963
class markItemAsContentComplete_result:
10964
  """
10965
  Attributes:
10966
   - success
10967
   - cex
10968
  """
10969
 
10970
  thrift_spec = (
10971
    (0, TType.BOOL, 'success', None, None, ), # 0
10972
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10973
  )
10974
 
10975
  def __init__(self, success=None, cex=None,):
10976
    self.success = success
10977
    self.cex = cex
10978
 
10979
  def read(self, iprot):
10980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10982
      return
10983
    iprot.readStructBegin()
10984
    while True:
10985
      (fname, ftype, fid) = iprot.readFieldBegin()
10986
      if ftype == TType.STOP:
10987
        break
10988
      if fid == 0:
10989
        if ftype == TType.BOOL:
10990
          self.success = iprot.readBool();
10991
        else:
10992
          iprot.skip(ftype)
10993
      elif fid == 1:
10994
        if ftype == TType.STRUCT:
10995
          self.cex = CatalogServiceException()
10996
          self.cex.read(iprot)
10997
        else:
10998
          iprot.skip(ftype)
10999
      else:
11000
        iprot.skip(ftype)
11001
      iprot.readFieldEnd()
11002
    iprot.readStructEnd()
11003
 
11004
  def write(self, oprot):
11005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11007
      return
11008
    oprot.writeStructBegin('markItemAsContentComplete_result')
11009
    if self.success is not None:
11010
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11011
      oprot.writeBool(self.success)
11012
      oprot.writeFieldEnd()
11013
    if self.cex is not None:
11014
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11015
      self.cex.write(oprot)
11016
      oprot.writeFieldEnd()
11017
    oprot.writeFieldStop()
11018
    oprot.writeStructEnd()
11019
 
11020
  def validate(self):
11021
    return
11022
 
11023
 
11024
  def __repr__(self):
11025
    L = ['%s=%r' % (key, value)
11026
      for key, value in self.__dict__.iteritems()]
11027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11028
 
11029
  def __eq__(self, other):
11030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11031
 
11032
  def __ne__(self, other):
11033
    return not (self == other)
11034
 
12567 amit.gupta 11035
class getVatRates_args:
11036
  """
11037
  Attributes:
11038
   - itemId
11039
   - categoryId
11040
  """
11041
 
11042
  thrift_spec = (
11043
    None, # 0
11044
    (1, TType.I64, 'itemId', None, None, ), # 1
11045
    (2, TType.I64, 'categoryId', None, None, ), # 2
11046
  )
11047
 
11048
  def __init__(self, itemId=None, categoryId=None,):
11049
    self.itemId = itemId
11050
    self.categoryId = categoryId
11051
 
11052
  def read(self, iprot):
11053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11055
      return
11056
    iprot.readStructBegin()
11057
    while True:
11058
      (fname, ftype, fid) = iprot.readFieldBegin()
11059
      if ftype == TType.STOP:
11060
        break
11061
      if fid == 1:
11062
        if ftype == TType.I64:
11063
          self.itemId = iprot.readI64();
11064
        else:
11065
          iprot.skip(ftype)
11066
      elif fid == 2:
11067
        if ftype == TType.I64:
11068
          self.categoryId = iprot.readI64();
11069
        else:
11070
          iprot.skip(ftype)
11071
      else:
11072
        iprot.skip(ftype)
11073
      iprot.readFieldEnd()
11074
    iprot.readStructEnd()
11075
 
11076
  def write(self, oprot):
11077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11079
      return
11080
    oprot.writeStructBegin('getVatRates_args')
11081
    if self.itemId is not None:
11082
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11083
      oprot.writeI64(self.itemId)
11084
      oprot.writeFieldEnd()
11085
    if self.categoryId is not None:
11086
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11087
      oprot.writeI64(self.categoryId)
11088
      oprot.writeFieldEnd()
11089
    oprot.writeFieldStop()
11090
    oprot.writeStructEnd()
11091
 
11092
  def validate(self):
11093
    return
11094
 
11095
 
11096
  def __repr__(self):
11097
    L = ['%s=%r' % (key, value)
11098
      for key, value in self.__dict__.iteritems()]
11099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11100
 
11101
  def __eq__(self, other):
11102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11103
 
11104
  def __ne__(self, other):
11105
    return not (self == other)
11106
 
11107
class getVatRates_result:
11108
  """
11109
  Attributes:
11110
   - success
11111
   - cex
11112
  """
11113
 
11114
  thrift_spec = (
11115
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11116
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11117
  )
11118
 
11119
  def __init__(self, success=None, cex=None,):
11120
    self.success = success
11121
    self.cex = cex
11122
 
11123
  def read(self, iprot):
11124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11126
      return
11127
    iprot.readStructBegin()
11128
    while True:
11129
      (fname, ftype, fid) = iprot.readFieldBegin()
11130
      if ftype == TType.STOP:
11131
        break
11132
      if fid == 0:
11133
        if ftype == TType.MAP:
11134
          self.success = {}
11135
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
11136
          for _i78 in xrange(_size74):
11137
            _key79 = iprot.readI64();
11138
            _val80 = iprot.readDouble();
11139
            self.success[_key79] = _val80
11140
          iprot.readMapEnd()
11141
        else:
11142
          iprot.skip(ftype)
11143
      elif fid == 1:
11144
        if ftype == TType.STRUCT:
11145
          self.cex = CatalogServiceException()
11146
          self.cex.read(iprot)
11147
        else:
11148
          iprot.skip(ftype)
11149
      else:
11150
        iprot.skip(ftype)
11151
      iprot.readFieldEnd()
11152
    iprot.readStructEnd()
11153
 
11154
  def write(self, oprot):
11155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11157
      return
11158
    oprot.writeStructBegin('getVatRates_result')
11159
    if self.success is not None:
11160
      oprot.writeFieldBegin('success', TType.MAP, 0)
11161
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
11162
      for kiter81,viter82 in self.success.items():
11163
        oprot.writeI64(kiter81)
11164
        oprot.writeDouble(viter82)
11165
      oprot.writeMapEnd()
11166
      oprot.writeFieldEnd()
11167
    if self.cex is not None:
11168
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11169
      self.cex.write(oprot)
11170
      oprot.writeFieldEnd()
11171
    oprot.writeFieldStop()
11172
    oprot.writeStructEnd()
11173
 
11174
  def validate(self):
11175
    return
11176
 
11177
 
11178
  def __repr__(self):
11179
    L = ['%s=%r' % (key, value)
11180
      for key, value in self.__dict__.iteritems()]
11181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11182
 
11183
  def __eq__(self, other):
11184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11185
 
11186
  def __ne__(self, other):
11187
    return not (self == other)
11188
 
5944 mandeep.dh 11189
class getAllItemsInRange_args:
11190
  """
11191
  Attributes:
11192
   - offset
11193
   - limit
11194
  """
11195
 
11196
  thrift_spec = (
11197
    None, # 0
11198
    (1, TType.I64, 'offset', None, None, ), # 1
11199
    (2, TType.I64, 'limit', None, None, ), # 2
11200
  )
11201
 
11202
  def __init__(self, offset=None, limit=None,):
11203
    self.offset = offset
11204
    self.limit = limit
11205
 
11206
  def read(self, iprot):
11207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11209
      return
11210
    iprot.readStructBegin()
11211
    while True:
11212
      (fname, ftype, fid) = iprot.readFieldBegin()
11213
      if ftype == TType.STOP:
11214
        break
11215
      if fid == 1:
11216
        if ftype == TType.I64:
11217
          self.offset = iprot.readI64();
11218
        else:
11219
          iprot.skip(ftype)
11220
      elif fid == 2:
11221
        if ftype == TType.I64:
11222
          self.limit = iprot.readI64();
11223
        else:
11224
          iprot.skip(ftype)
11225
      else:
11226
        iprot.skip(ftype)
11227
      iprot.readFieldEnd()
11228
    iprot.readStructEnd()
11229
 
11230
  def write(self, oprot):
11231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11233
      return
11234
    oprot.writeStructBegin('getAllItemsInRange_args')
11235
    if self.offset is not None:
11236
      oprot.writeFieldBegin('offset', TType.I64, 1)
11237
      oprot.writeI64(self.offset)
11238
      oprot.writeFieldEnd()
11239
    if self.limit is not None:
11240
      oprot.writeFieldBegin('limit', TType.I64, 2)
11241
      oprot.writeI64(self.limit)
11242
      oprot.writeFieldEnd()
11243
    oprot.writeFieldStop()
11244
    oprot.writeStructEnd()
11245
 
11246
  def validate(self):
11247
    return
11248
 
11249
 
11250
  def __repr__(self):
11251
    L = ['%s=%r' % (key, value)
11252
      for key, value in self.__dict__.iteritems()]
11253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11254
 
11255
  def __eq__(self, other):
11256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11257
 
11258
  def __ne__(self, other):
11259
    return not (self == other)
11260
 
11261
class getAllItemsInRange_result:
11262
  """
11263
  Attributes:
11264
   - success
11265
   - cex
11266
  """
11267
 
11268
  thrift_spec = (
11269
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11270
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11271
  )
11272
 
11273
  def __init__(self, success=None, cex=None,):
11274
    self.success = success
11275
    self.cex = cex
11276
 
11277
  def read(self, iprot):
11278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11280
      return
11281
    iprot.readStructBegin()
11282
    while True:
11283
      (fname, ftype, fid) = iprot.readFieldBegin()
11284
      if ftype == TType.STOP:
11285
        break
11286
      if fid == 0:
11287
        if ftype == TType.LIST:
11288
          self.success = []
12567 amit.gupta 11289
          (_etype86, _size83) = iprot.readListBegin()
11290
          for _i87 in xrange(_size83):
11291
            _elem88 = Item()
11292
            _elem88.read(iprot)
11293
            self.success.append(_elem88)
5944 mandeep.dh 11294
          iprot.readListEnd()
11295
        else:
11296
          iprot.skip(ftype)
11297
      elif fid == 1:
11298
        if ftype == TType.STRUCT:
11299
          self.cex = CatalogServiceException()
11300
          self.cex.read(iprot)
11301
        else:
11302
          iprot.skip(ftype)
11303
      else:
11304
        iprot.skip(ftype)
11305
      iprot.readFieldEnd()
11306
    iprot.readStructEnd()
11307
 
11308
  def write(self, oprot):
11309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11311
      return
11312
    oprot.writeStructBegin('getAllItemsInRange_result')
11313
    if self.success is not None:
11314
      oprot.writeFieldBegin('success', TType.LIST, 0)
11315
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11316
      for iter89 in self.success:
11317
        iter89.write(oprot)
5944 mandeep.dh 11318
      oprot.writeListEnd()
11319
      oprot.writeFieldEnd()
11320
    if self.cex is not None:
11321
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11322
      self.cex.write(oprot)
11323
      oprot.writeFieldEnd()
11324
    oprot.writeFieldStop()
11325
    oprot.writeStructEnd()
11326
 
11327
  def validate(self):
11328
    return
11329
 
11330
 
11331
  def __repr__(self):
11332
    L = ['%s=%r' % (key, value)
11333
      for key, value in self.__dict__.iteritems()]
11334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11335
 
11336
  def __eq__(self, other):
11337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11338
 
11339
  def __ne__(self, other):
11340
    return not (self == other)
11341
 
11342
class getAllItemsByStatusInRange_args:
11343
  """
11344
  Attributes:
11345
   - itemStatus
11346
   - offset
11347
   - limit
11348
  """
11349
 
11350
  thrift_spec = (
11351
    None, # 0
11352
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11353
    (2, TType.I64, 'offset', None, None, ), # 2
11354
    (3, TType.I64, 'limit', None, None, ), # 3
11355
  )
11356
 
11357
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11358
    self.itemStatus = itemStatus
11359
    self.offset = offset
11360
    self.limit = limit
11361
 
11362
  def read(self, iprot):
11363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11365
      return
11366
    iprot.readStructBegin()
11367
    while True:
11368
      (fname, ftype, fid) = iprot.readFieldBegin()
11369
      if ftype == TType.STOP:
11370
        break
11371
      if fid == 1:
11372
        if ftype == TType.I32:
11373
          self.itemStatus = iprot.readI32();
11374
        else:
11375
          iprot.skip(ftype)
11376
      elif fid == 2:
11377
        if ftype == TType.I64:
11378
          self.offset = iprot.readI64();
11379
        else:
11380
          iprot.skip(ftype)
11381
      elif fid == 3:
11382
        if ftype == TType.I64:
11383
          self.limit = iprot.readI64();
11384
        else:
11385
          iprot.skip(ftype)
11386
      else:
11387
        iprot.skip(ftype)
11388
      iprot.readFieldEnd()
11389
    iprot.readStructEnd()
11390
 
11391
  def write(self, oprot):
11392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11394
      return
11395
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11396
    if self.itemStatus is not None:
11397
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11398
      oprot.writeI32(self.itemStatus)
11399
      oprot.writeFieldEnd()
11400
    if self.offset is not None:
11401
      oprot.writeFieldBegin('offset', TType.I64, 2)
11402
      oprot.writeI64(self.offset)
11403
      oprot.writeFieldEnd()
11404
    if self.limit is not None:
11405
      oprot.writeFieldBegin('limit', TType.I64, 3)
11406
      oprot.writeI64(self.limit)
11407
      oprot.writeFieldEnd()
11408
    oprot.writeFieldStop()
11409
    oprot.writeStructEnd()
11410
 
11411
  def validate(self):
11412
    return
11413
 
11414
 
11415
  def __repr__(self):
11416
    L = ['%s=%r' % (key, value)
11417
      for key, value in self.__dict__.iteritems()]
11418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11419
 
11420
  def __eq__(self, other):
11421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11422
 
11423
  def __ne__(self, other):
11424
    return not (self == other)
11425
 
11426
class getAllItemsByStatusInRange_result:
11427
  """
11428
  Attributes:
11429
   - success
11430
   - cex
11431
  """
11432
 
11433
  thrift_spec = (
11434
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11435
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11436
  )
11437
 
11438
  def __init__(self, success=None, cex=None,):
11439
    self.success = success
11440
    self.cex = cex
11441
 
11442
  def read(self, iprot):
11443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11445
      return
11446
    iprot.readStructBegin()
11447
    while True:
11448
      (fname, ftype, fid) = iprot.readFieldBegin()
11449
      if ftype == TType.STOP:
11450
        break
11451
      if fid == 0:
11452
        if ftype == TType.LIST:
11453
          self.success = []
12567 amit.gupta 11454
          (_etype93, _size90) = iprot.readListBegin()
11455
          for _i94 in xrange(_size90):
11456
            _elem95 = Item()
11457
            _elem95.read(iprot)
11458
            self.success.append(_elem95)
5944 mandeep.dh 11459
          iprot.readListEnd()
11460
        else:
11461
          iprot.skip(ftype)
11462
      elif fid == 1:
11463
        if ftype == TType.STRUCT:
11464
          self.cex = CatalogServiceException()
11465
          self.cex.read(iprot)
11466
        else:
11467
          iprot.skip(ftype)
11468
      else:
11469
        iprot.skip(ftype)
11470
      iprot.readFieldEnd()
11471
    iprot.readStructEnd()
11472
 
11473
  def write(self, oprot):
11474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11476
      return
11477
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11478
    if self.success is not None:
11479
      oprot.writeFieldBegin('success', TType.LIST, 0)
11480
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11481
      for iter96 in self.success:
11482
        iter96.write(oprot)
5944 mandeep.dh 11483
      oprot.writeListEnd()
11484
      oprot.writeFieldEnd()
11485
    if self.cex is not None:
11486
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11487
      self.cex.write(oprot)
11488
      oprot.writeFieldEnd()
11489
    oprot.writeFieldStop()
11490
    oprot.writeStructEnd()
11491
 
11492
  def validate(self):
11493
    return
11494
 
11495
 
11496
  def __repr__(self):
11497
    L = ['%s=%r' % (key, value)
11498
      for key, value in self.__dict__.iteritems()]
11499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11500
 
11501
  def __eq__(self, other):
11502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11503
 
11504
  def __ne__(self, other):
11505
    return not (self == other)
11506
 
11507
class getItemCountByStatus_args:
11508
  """
11509
  Attributes:
11510
   - useStatus
11511
   - itemStatus
11512
  """
11513
 
11514
  thrift_spec = (
11515
    None, # 0
11516
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11517
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11518
  )
11519
 
11520
  def __init__(self, useStatus=None, itemStatus=None,):
11521
    self.useStatus = useStatus
11522
    self.itemStatus = itemStatus
11523
 
11524
  def read(self, iprot):
11525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11527
      return
11528
    iprot.readStructBegin()
11529
    while True:
11530
      (fname, ftype, fid) = iprot.readFieldBegin()
11531
      if ftype == TType.STOP:
11532
        break
11533
      if fid == 1:
11534
        if ftype == TType.BOOL:
11535
          self.useStatus = iprot.readBool();
11536
        else:
11537
          iprot.skip(ftype)
11538
      elif fid == 2:
11539
        if ftype == TType.I32:
11540
          self.itemStatus = iprot.readI32();
11541
        else:
11542
          iprot.skip(ftype)
11543
      else:
11544
        iprot.skip(ftype)
11545
      iprot.readFieldEnd()
11546
    iprot.readStructEnd()
11547
 
11548
  def write(self, oprot):
11549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11551
      return
11552
    oprot.writeStructBegin('getItemCountByStatus_args')
11553
    if self.useStatus is not None:
11554
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11555
      oprot.writeBool(self.useStatus)
11556
      oprot.writeFieldEnd()
11557
    if self.itemStatus is not None:
11558
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11559
      oprot.writeI32(self.itemStatus)
11560
      oprot.writeFieldEnd()
11561
    oprot.writeFieldStop()
11562
    oprot.writeStructEnd()
11563
 
11564
  def validate(self):
11565
    return
11566
 
11567
 
11568
  def __repr__(self):
11569
    L = ['%s=%r' % (key, value)
11570
      for key, value in self.__dict__.iteritems()]
11571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11572
 
11573
  def __eq__(self, other):
11574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11575
 
11576
  def __ne__(self, other):
11577
    return not (self == other)
11578
 
11579
class getItemCountByStatus_result:
11580
  """
11581
  Attributes:
11582
   - success
11583
  """
11584
 
11585
  thrift_spec = (
11586
    (0, TType.I32, 'success', None, None, ), # 0
11587
  )
11588
 
11589
  def __init__(self, success=None,):
11590
    self.success = success
11591
 
11592
  def read(self, iprot):
11593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11595
      return
11596
    iprot.readStructBegin()
11597
    while True:
11598
      (fname, ftype, fid) = iprot.readFieldBegin()
11599
      if ftype == TType.STOP:
11600
        break
11601
      if fid == 0:
11602
        if ftype == TType.I32:
11603
          self.success = iprot.readI32();
11604
        else:
11605
          iprot.skip(ftype)
11606
      else:
11607
        iprot.skip(ftype)
11608
      iprot.readFieldEnd()
11609
    iprot.readStructEnd()
11610
 
11611
  def write(self, oprot):
11612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11614
      return
11615
    oprot.writeStructBegin('getItemCountByStatus_result')
11616
    if self.success is not None:
11617
      oprot.writeFieldBegin('success', TType.I32, 0)
11618
      oprot.writeI32(self.success)
11619
      oprot.writeFieldEnd()
11620
    oprot.writeFieldStop()
11621
    oprot.writeStructEnd()
11622
 
11623
  def validate(self):
11624
    return
11625
 
11626
 
11627
  def __repr__(self):
11628
    L = ['%s=%r' % (key, value)
11629
      for key, value in self.__dict__.iteritems()]
11630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11631
 
11632
  def __eq__(self, other):
11633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11634
 
11635
  def __ne__(self, other):
11636
    return not (self == other)
11637
 
11638
class getBestSellers_args:
11639
 
11640
  thrift_spec = (
11641
  )
11642
 
11643
  def read(self, iprot):
11644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11646
      return
11647
    iprot.readStructBegin()
11648
    while True:
11649
      (fname, ftype, fid) = iprot.readFieldBegin()
11650
      if ftype == TType.STOP:
11651
        break
11652
      else:
11653
        iprot.skip(ftype)
11654
      iprot.readFieldEnd()
11655
    iprot.readStructEnd()
11656
 
11657
  def write(self, oprot):
11658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11660
      return
11661
    oprot.writeStructBegin('getBestSellers_args')
11662
    oprot.writeFieldStop()
11663
    oprot.writeStructEnd()
11664
 
11665
  def validate(self):
11666
    return
11667
 
11668
 
11669
  def __repr__(self):
11670
    L = ['%s=%r' % (key, value)
11671
      for key, value in self.__dict__.iteritems()]
11672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11673
 
11674
  def __eq__(self, other):
11675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11676
 
11677
  def __ne__(self, other):
11678
    return not (self == other)
11679
 
11680
class getBestSellers_result:
11681
  """
11682
  Attributes:
11683
   - success
11684
   - isex
11685
  """
11686
 
11687
  thrift_spec = (
11688
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11689
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11690
  )
11691
 
11692
  def __init__(self, success=None, isex=None,):
11693
    self.success = success
11694
    self.isex = isex
11695
 
11696
  def read(self, iprot):
11697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11699
      return
11700
    iprot.readStructBegin()
11701
    while True:
11702
      (fname, ftype, fid) = iprot.readFieldBegin()
11703
      if ftype == TType.STOP:
11704
        break
11705
      if fid == 0:
11706
        if ftype == TType.LIST:
11707
          self.success = []
12567 amit.gupta 11708
          (_etype100, _size97) = iprot.readListBegin()
11709
          for _i101 in xrange(_size97):
11710
            _elem102 = Item()
11711
            _elem102.read(iprot)
11712
            self.success.append(_elem102)
5944 mandeep.dh 11713
          iprot.readListEnd()
11714
        else:
11715
          iprot.skip(ftype)
11716
      elif fid == 1:
11717
        if ftype == TType.STRUCT:
11718
          self.isex = CatalogServiceException()
11719
          self.isex.read(iprot)
11720
        else:
11721
          iprot.skip(ftype)
11722
      else:
11723
        iprot.skip(ftype)
11724
      iprot.readFieldEnd()
11725
    iprot.readStructEnd()
11726
 
11727
  def write(self, oprot):
11728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11730
      return
11731
    oprot.writeStructBegin('getBestSellers_result')
11732
    if self.success is not None:
11733
      oprot.writeFieldBegin('success', TType.LIST, 0)
11734
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11735
      for iter103 in self.success:
11736
        iter103.write(oprot)
5944 mandeep.dh 11737
      oprot.writeListEnd()
11738
      oprot.writeFieldEnd()
11739
    if self.isex is not None:
11740
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11741
      self.isex.write(oprot)
11742
      oprot.writeFieldEnd()
11743
    oprot.writeFieldStop()
11744
    oprot.writeStructEnd()
11745
 
11746
  def validate(self):
11747
    return
11748
 
11749
 
11750
  def __repr__(self):
11751
    L = ['%s=%r' % (key, value)
11752
      for key, value in self.__dict__.iteritems()]
11753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11754
 
11755
  def __eq__(self, other):
11756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11757
 
11758
  def __ne__(self, other):
11759
    return not (self == other)
11760
 
11761
class getBestSellersCatalogIds_args:
11762
  """
11763
  Attributes:
11764
   - beginIndex
11765
   - totalItems
11766
   - brand
11767
   - category
11768
  """
11769
 
11770
  thrift_spec = (
11771
    None, # 0
11772
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11773
    (2, TType.I64, 'totalItems', None, None, ), # 2
11774
    (3, TType.STRING, 'brand', None, None, ), # 3
11775
    (4, TType.I64, 'category', None, None, ), # 4
11776
  )
11777
 
11778
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11779
    self.beginIndex = beginIndex
11780
    self.totalItems = totalItems
11781
    self.brand = brand
11782
    self.category = category
11783
 
11784
  def read(self, iprot):
11785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11787
      return
11788
    iprot.readStructBegin()
11789
    while True:
11790
      (fname, ftype, fid) = iprot.readFieldBegin()
11791
      if ftype == TType.STOP:
11792
        break
11793
      if fid == 1:
11794
        if ftype == TType.I64:
11795
          self.beginIndex = iprot.readI64();
11796
        else:
11797
          iprot.skip(ftype)
11798
      elif fid == 2:
11799
        if ftype == TType.I64:
11800
          self.totalItems = iprot.readI64();
11801
        else:
11802
          iprot.skip(ftype)
11803
      elif fid == 3:
11804
        if ftype == TType.STRING:
11805
          self.brand = iprot.readString();
11806
        else:
11807
          iprot.skip(ftype)
11808
      elif fid == 4:
11809
        if ftype == TType.I64:
11810
          self.category = iprot.readI64();
11811
        else:
11812
          iprot.skip(ftype)
11813
      else:
11814
        iprot.skip(ftype)
11815
      iprot.readFieldEnd()
11816
    iprot.readStructEnd()
11817
 
11818
  def write(self, oprot):
11819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11821
      return
11822
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
11823
    if self.beginIndex is not None:
11824
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11825
      oprot.writeI64(self.beginIndex)
11826
      oprot.writeFieldEnd()
11827
    if self.totalItems is not None:
11828
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11829
      oprot.writeI64(self.totalItems)
11830
      oprot.writeFieldEnd()
11831
    if self.brand is not None:
11832
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11833
      oprot.writeString(self.brand)
11834
      oprot.writeFieldEnd()
11835
    if self.category is not None:
11836
      oprot.writeFieldBegin('category', TType.I64, 4)
11837
      oprot.writeI64(self.category)
11838
      oprot.writeFieldEnd()
11839
    oprot.writeFieldStop()
11840
    oprot.writeStructEnd()
11841
 
11842
  def validate(self):
11843
    return
11844
 
11845
 
11846
  def __repr__(self):
11847
    L = ['%s=%r' % (key, value)
11848
      for key, value in self.__dict__.iteritems()]
11849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11850
 
11851
  def __eq__(self, other):
11852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11853
 
11854
  def __ne__(self, other):
11855
    return not (self == other)
11856
 
11857
class getBestSellersCatalogIds_result:
11858
  """
11859
  Attributes:
11860
   - success
11861
   - cex
11862
  """
11863
 
11864
  thrift_spec = (
11865
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11866
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11867
  )
11868
 
11869
  def __init__(self, success=None, cex=None,):
11870
    self.success = success
11871
    self.cex = cex
11872
 
11873
  def read(self, iprot):
11874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11876
      return
11877
    iprot.readStructBegin()
11878
    while True:
11879
      (fname, ftype, fid) = iprot.readFieldBegin()
11880
      if ftype == TType.STOP:
11881
        break
11882
      if fid == 0:
11883
        if ftype == TType.LIST:
11884
          self.success = []
12567 amit.gupta 11885
          (_etype107, _size104) = iprot.readListBegin()
11886
          for _i108 in xrange(_size104):
11887
            _elem109 = iprot.readI64();
11888
            self.success.append(_elem109)
5944 mandeep.dh 11889
          iprot.readListEnd()
11890
        else:
11891
          iprot.skip(ftype)
11892
      elif fid == 1:
11893
        if ftype == TType.STRUCT:
11894
          self.cex = CatalogServiceException()
11895
          self.cex.read(iprot)
11896
        else:
11897
          iprot.skip(ftype)
11898
      else:
11899
        iprot.skip(ftype)
11900
      iprot.readFieldEnd()
11901
    iprot.readStructEnd()
11902
 
11903
  def write(self, oprot):
11904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11906
      return
11907
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
11908
    if self.success is not None:
11909
      oprot.writeFieldBegin('success', TType.LIST, 0)
11910
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 11911
      for iter110 in self.success:
11912
        oprot.writeI64(iter110)
5944 mandeep.dh 11913
      oprot.writeListEnd()
11914
      oprot.writeFieldEnd()
11915
    if self.cex is not None:
11916
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11917
      self.cex.write(oprot)
11918
      oprot.writeFieldEnd()
11919
    oprot.writeFieldStop()
11920
    oprot.writeStructEnd()
11921
 
11922
  def validate(self):
11923
    return
11924
 
11925
 
11926
  def __repr__(self):
11927
    L = ['%s=%r' % (key, value)
11928
      for key, value in self.__dict__.iteritems()]
11929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11930
 
11931
  def __eq__(self, other):
11932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11933
 
11934
  def __ne__(self, other):
11935
    return not (self == other)
11936
 
11937
class getBestSellersCount_args:
11938
 
11939
  thrift_spec = (
11940
  )
11941
 
11942
  def read(self, iprot):
11943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11945
      return
11946
    iprot.readStructBegin()
11947
    while True:
11948
      (fname, ftype, fid) = iprot.readFieldBegin()
11949
      if ftype == TType.STOP:
11950
        break
11951
      else:
11952
        iprot.skip(ftype)
11953
      iprot.readFieldEnd()
11954
    iprot.readStructEnd()
11955
 
11956
  def write(self, oprot):
11957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11959
      return
11960
    oprot.writeStructBegin('getBestSellersCount_args')
11961
    oprot.writeFieldStop()
11962
    oprot.writeStructEnd()
11963
 
11964
  def validate(self):
11965
    return
11966
 
11967
 
11968
  def __repr__(self):
11969
    L = ['%s=%r' % (key, value)
11970
      for key, value in self.__dict__.iteritems()]
11971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11972
 
11973
  def __eq__(self, other):
11974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11975
 
11976
  def __ne__(self, other):
11977
    return not (self == other)
11978
 
11979
class getBestSellersCount_result:
11980
  """
11981
  Attributes:
11982
   - success
11983
   - cex
11984
  """
11985
 
11986
  thrift_spec = (
11987
    (0, TType.I64, 'success', None, None, ), # 0
11988
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11989
  )
11990
 
11991
  def __init__(self, success=None, cex=None,):
11992
    self.success = success
11993
    self.cex = cex
11994
 
11995
  def read(self, iprot):
11996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11998
      return
11999
    iprot.readStructBegin()
12000
    while True:
12001
      (fname, ftype, fid) = iprot.readFieldBegin()
12002
      if ftype == TType.STOP:
12003
        break
12004
      if fid == 0:
12005
        if ftype == TType.I64:
12006
          self.success = iprot.readI64();
12007
        else:
12008
          iprot.skip(ftype)
12009
      elif fid == 1:
12010
        if ftype == TType.STRUCT:
12011
          self.cex = CatalogServiceException()
12012
          self.cex.read(iprot)
12013
        else:
12014
          iprot.skip(ftype)
12015
      else:
12016
        iprot.skip(ftype)
12017
      iprot.readFieldEnd()
12018
    iprot.readStructEnd()
12019
 
12020
  def write(self, oprot):
12021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12023
      return
12024
    oprot.writeStructBegin('getBestSellersCount_result')
12025
    if self.success is not None:
12026
      oprot.writeFieldBegin('success', TType.I64, 0)
12027
      oprot.writeI64(self.success)
12028
      oprot.writeFieldEnd()
12029
    if self.cex is not None:
12030
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12031
      self.cex.write(oprot)
12032
      oprot.writeFieldEnd()
12033
    oprot.writeFieldStop()
12034
    oprot.writeStructEnd()
12035
 
12036
  def validate(self):
12037
    return
12038
 
12039
 
12040
  def __repr__(self):
12041
    L = ['%s=%r' % (key, value)
12042
      for key, value in self.__dict__.iteritems()]
12043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12044
 
12045
  def __eq__(self, other):
12046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12047
 
12048
  def __ne__(self, other):
12049
    return not (self == other)
12050
 
12051
class getBestDeals_args:
12052
 
12053
  thrift_spec = (
12054
  )
12055
 
12056
  def read(self, iprot):
12057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12059
      return
12060
    iprot.readStructBegin()
12061
    while True:
12062
      (fname, ftype, fid) = iprot.readFieldBegin()
12063
      if ftype == TType.STOP:
12064
        break
12065
      else:
12066
        iprot.skip(ftype)
12067
      iprot.readFieldEnd()
12068
    iprot.readStructEnd()
12069
 
12070
  def write(self, oprot):
12071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12073
      return
12074
    oprot.writeStructBegin('getBestDeals_args')
12075
    oprot.writeFieldStop()
12076
    oprot.writeStructEnd()
12077
 
12078
  def validate(self):
12079
    return
12080
 
12081
 
12082
  def __repr__(self):
12083
    L = ['%s=%r' % (key, value)
12084
      for key, value in self.__dict__.iteritems()]
12085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12086
 
12087
  def __eq__(self, other):
12088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12089
 
12090
  def __ne__(self, other):
12091
    return not (self == other)
12092
 
12093
class getBestDeals_result:
12094
  """
12095
  Attributes:
12096
   - success
12097
   - isex
12098
  """
12099
 
12100
  thrift_spec = (
12101
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12102
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12103
  )
12104
 
12105
  def __init__(self, success=None, isex=None,):
12106
    self.success = success
12107
    self.isex = isex
12108
 
12109
  def read(self, iprot):
12110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12112
      return
12113
    iprot.readStructBegin()
12114
    while True:
12115
      (fname, ftype, fid) = iprot.readFieldBegin()
12116
      if ftype == TType.STOP:
12117
        break
12118
      if fid == 0:
12119
        if ftype == TType.LIST:
12120
          self.success = []
12567 amit.gupta 12121
          (_etype114, _size111) = iprot.readListBegin()
12122
          for _i115 in xrange(_size111):
12123
            _elem116 = Item()
12124
            _elem116.read(iprot)
12125
            self.success.append(_elem116)
5944 mandeep.dh 12126
          iprot.readListEnd()
12127
        else:
12128
          iprot.skip(ftype)
12129
      elif fid == 1:
12130
        if ftype == TType.STRUCT:
12131
          self.isex = CatalogServiceException()
12132
          self.isex.read(iprot)
12133
        else:
12134
          iprot.skip(ftype)
12135
      else:
12136
        iprot.skip(ftype)
12137
      iprot.readFieldEnd()
12138
    iprot.readStructEnd()
12139
 
12140
  def write(self, oprot):
12141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12143
      return
12144
    oprot.writeStructBegin('getBestDeals_result')
12145
    if self.success is not None:
12146
      oprot.writeFieldBegin('success', TType.LIST, 0)
12147
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12148
      for iter117 in self.success:
12149
        iter117.write(oprot)
5944 mandeep.dh 12150
      oprot.writeListEnd()
12151
      oprot.writeFieldEnd()
12152
    if self.isex is not None:
12153
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12154
      self.isex.write(oprot)
12155
      oprot.writeFieldEnd()
12156
    oprot.writeFieldStop()
12157
    oprot.writeStructEnd()
12158
 
12159
  def validate(self):
12160
    return
12161
 
12162
 
12163
  def __repr__(self):
12164
    L = ['%s=%r' % (key, value)
12165
      for key, value in self.__dict__.iteritems()]
12166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12167
 
12168
  def __eq__(self, other):
12169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12170
 
12171
  def __ne__(self, other):
12172
    return not (self == other)
12173
 
12174
class getBestDealsCatalogIds_args:
12175
  """
12176
  Attributes:
12177
   - beginIndex
12178
   - totalItems
12179
   - brand
12180
   - category
12181
  """
12182
 
12183
  thrift_spec = (
12184
    None, # 0
12185
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12186
    (2, TType.I64, 'totalItems', None, None, ), # 2
12187
    (3, TType.STRING, 'brand', None, None, ), # 3
12188
    (4, TType.I64, 'category', None, None, ), # 4
12189
  )
12190
 
12191
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12192
    self.beginIndex = beginIndex
12193
    self.totalItems = totalItems
12194
    self.brand = brand
12195
    self.category = category
12196
 
12197
  def read(self, iprot):
12198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12200
      return
12201
    iprot.readStructBegin()
12202
    while True:
12203
      (fname, ftype, fid) = iprot.readFieldBegin()
12204
      if ftype == TType.STOP:
12205
        break
12206
      if fid == 1:
12207
        if ftype == TType.I64:
12208
          self.beginIndex = iprot.readI64();
12209
        else:
12210
          iprot.skip(ftype)
12211
      elif fid == 2:
12212
        if ftype == TType.I64:
12213
          self.totalItems = iprot.readI64();
12214
        else:
12215
          iprot.skip(ftype)
12216
      elif fid == 3:
12217
        if ftype == TType.STRING:
12218
          self.brand = iprot.readString();
12219
        else:
12220
          iprot.skip(ftype)
12221
      elif fid == 4:
12222
        if ftype == TType.I64:
12223
          self.category = iprot.readI64();
12224
        else:
12225
          iprot.skip(ftype)
12226
      else:
12227
        iprot.skip(ftype)
12228
      iprot.readFieldEnd()
12229
    iprot.readStructEnd()
12230
 
12231
  def write(self, oprot):
12232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12234
      return
12235
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
12236
    if self.beginIndex is not None:
12237
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12238
      oprot.writeI64(self.beginIndex)
12239
      oprot.writeFieldEnd()
12240
    if self.totalItems is not None:
12241
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12242
      oprot.writeI64(self.totalItems)
12243
      oprot.writeFieldEnd()
12244
    if self.brand is not None:
12245
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12246
      oprot.writeString(self.brand)
12247
      oprot.writeFieldEnd()
12248
    if self.category is not None:
12249
      oprot.writeFieldBegin('category', TType.I64, 4)
12250
      oprot.writeI64(self.category)
12251
      oprot.writeFieldEnd()
12252
    oprot.writeFieldStop()
12253
    oprot.writeStructEnd()
12254
 
12255
  def validate(self):
12256
    return
12257
 
12258
 
12259
  def __repr__(self):
12260
    L = ['%s=%r' % (key, value)
12261
      for key, value in self.__dict__.iteritems()]
12262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12263
 
12264
  def __eq__(self, other):
12265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12266
 
12267
  def __ne__(self, other):
12268
    return not (self == other)
12269
 
12270
class getBestDealsCatalogIds_result:
12271
  """
12272
  Attributes:
12273
   - success
12274
   - cex
12275
  """
12276
 
12277
  thrift_spec = (
12278
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12279
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12280
  )
12281
 
12282
  def __init__(self, success=None, cex=None,):
12283
    self.success = success
12284
    self.cex = cex
12285
 
12286
  def read(self, iprot):
12287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12289
      return
12290
    iprot.readStructBegin()
12291
    while True:
12292
      (fname, ftype, fid) = iprot.readFieldBegin()
12293
      if ftype == TType.STOP:
12294
        break
12295
      if fid == 0:
12296
        if ftype == TType.LIST:
12297
          self.success = []
12567 amit.gupta 12298
          (_etype121, _size118) = iprot.readListBegin()
12299
          for _i122 in xrange(_size118):
12300
            _elem123 = iprot.readI64();
12301
            self.success.append(_elem123)
5944 mandeep.dh 12302
          iprot.readListEnd()
12303
        else:
12304
          iprot.skip(ftype)
12305
      elif fid == 1:
12306
        if ftype == TType.STRUCT:
12307
          self.cex = CatalogServiceException()
12308
          self.cex.read(iprot)
12309
        else:
12310
          iprot.skip(ftype)
12311
      else:
12312
        iprot.skip(ftype)
12313
      iprot.readFieldEnd()
12314
    iprot.readStructEnd()
12315
 
12316
  def write(self, oprot):
12317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12319
      return
12320
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12321
    if self.success is not None:
12322
      oprot.writeFieldBegin('success', TType.LIST, 0)
12323
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12324
      for iter124 in self.success:
12325
        oprot.writeI64(iter124)
5944 mandeep.dh 12326
      oprot.writeListEnd()
12327
      oprot.writeFieldEnd()
12328
    if self.cex is not None:
12329
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12330
      self.cex.write(oprot)
12331
      oprot.writeFieldEnd()
12332
    oprot.writeFieldStop()
12333
    oprot.writeStructEnd()
12334
 
12335
  def validate(self):
12336
    return
12337
 
12338
 
12339
  def __repr__(self):
12340
    L = ['%s=%r' % (key, value)
12341
      for key, value in self.__dict__.iteritems()]
12342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12343
 
12344
  def __eq__(self, other):
12345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12346
 
12347
  def __ne__(self, other):
12348
    return not (self == other)
12349
 
12350
class getBestDealsCount_args:
12351
 
12352
  thrift_spec = (
12353
  )
12354
 
12355
  def read(self, iprot):
12356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12358
      return
12359
    iprot.readStructBegin()
12360
    while True:
12361
      (fname, ftype, fid) = iprot.readFieldBegin()
12362
      if ftype == TType.STOP:
12363
        break
12364
      else:
12365
        iprot.skip(ftype)
12366
      iprot.readFieldEnd()
12367
    iprot.readStructEnd()
12368
 
12369
  def write(self, oprot):
12370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12372
      return
12373
    oprot.writeStructBegin('getBestDealsCount_args')
12374
    oprot.writeFieldStop()
12375
    oprot.writeStructEnd()
12376
 
12377
  def validate(self):
12378
    return
12379
 
12380
 
12381
  def __repr__(self):
12382
    L = ['%s=%r' % (key, value)
12383
      for key, value in self.__dict__.iteritems()]
12384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12385
 
12386
  def __eq__(self, other):
12387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12388
 
12389
  def __ne__(self, other):
12390
    return not (self == other)
12391
 
12392
class getBestDealsCount_result:
12393
  """
12394
  Attributes:
12395
   - success
12396
   - cex
12397
  """
12398
 
12399
  thrift_spec = (
12400
    (0, TType.I64, 'success', None, None, ), # 0
12401
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12402
  )
12403
 
12404
  def __init__(self, success=None, cex=None,):
12405
    self.success = success
12406
    self.cex = cex
12407
 
12408
  def read(self, iprot):
12409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12411
      return
12412
    iprot.readStructBegin()
12413
    while True:
12414
      (fname, ftype, fid) = iprot.readFieldBegin()
12415
      if ftype == TType.STOP:
12416
        break
12417
      if fid == 0:
12418
        if ftype == TType.I64:
12419
          self.success = iprot.readI64();
12420
        else:
12421
          iprot.skip(ftype)
12422
      elif fid == 1:
12423
        if ftype == TType.STRUCT:
12424
          self.cex = CatalogServiceException()
12425
          self.cex.read(iprot)
12426
        else:
12427
          iprot.skip(ftype)
12428
      else:
12429
        iprot.skip(ftype)
12430
      iprot.readFieldEnd()
12431
    iprot.readStructEnd()
12432
 
12433
  def write(self, oprot):
12434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12436
      return
12437
    oprot.writeStructBegin('getBestDealsCount_result')
12438
    if self.success is not None:
12439
      oprot.writeFieldBegin('success', TType.I64, 0)
12440
      oprot.writeI64(self.success)
12441
      oprot.writeFieldEnd()
12442
    if self.cex is not None:
12443
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12444
      self.cex.write(oprot)
12445
      oprot.writeFieldEnd()
12446
    oprot.writeFieldStop()
12447
    oprot.writeStructEnd()
12448
 
12449
  def validate(self):
12450
    return
12451
 
12452
 
12453
  def __repr__(self):
12454
    L = ['%s=%r' % (key, value)
12455
      for key, value in self.__dict__.iteritems()]
12456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12457
 
12458
  def __eq__(self, other):
12459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12460
 
12461
  def __ne__(self, other):
12462
    return not (self == other)
12463
 
12464
class getComingSoon_args:
12465
 
12466
  thrift_spec = (
12467
  )
12468
 
12469
  def read(self, iprot):
12470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12472
      return
12473
    iprot.readStructBegin()
12474
    while True:
12475
      (fname, ftype, fid) = iprot.readFieldBegin()
12476
      if ftype == TType.STOP:
12477
        break
12478
      else:
12479
        iprot.skip(ftype)
12480
      iprot.readFieldEnd()
12481
    iprot.readStructEnd()
12482
 
12483
  def write(self, oprot):
12484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12486
      return
12487
    oprot.writeStructBegin('getComingSoon_args')
12488
    oprot.writeFieldStop()
12489
    oprot.writeStructEnd()
12490
 
12491
  def validate(self):
12492
    return
12493
 
12494
 
12495
  def __repr__(self):
12496
    L = ['%s=%r' % (key, value)
12497
      for key, value in self.__dict__.iteritems()]
12498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12499
 
12500
  def __eq__(self, other):
12501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12502
 
12503
  def __ne__(self, other):
12504
    return not (self == other)
12505
 
12506
class getComingSoon_result:
12507
  """
12508
  Attributes:
12509
   - success
12510
   - isex
12511
  """
12512
 
12513
  thrift_spec = (
12514
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12515
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12516
  )
12517
 
12518
  def __init__(self, success=None, isex=None,):
12519
    self.success = success
12520
    self.isex = isex
12521
 
12522
  def read(self, iprot):
12523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12525
      return
12526
    iprot.readStructBegin()
12527
    while True:
12528
      (fname, ftype, fid) = iprot.readFieldBegin()
12529
      if ftype == TType.STOP:
12530
        break
12531
      if fid == 0:
12532
        if ftype == TType.LIST:
12533
          self.success = []
12567 amit.gupta 12534
          (_etype128, _size125) = iprot.readListBegin()
12535
          for _i129 in xrange(_size125):
12536
            _elem130 = Item()
12537
            _elem130.read(iprot)
12538
            self.success.append(_elem130)
5944 mandeep.dh 12539
          iprot.readListEnd()
12540
        else:
12541
          iprot.skip(ftype)
12542
      elif fid == 1:
12543
        if ftype == TType.STRUCT:
12544
          self.isex = CatalogServiceException()
12545
          self.isex.read(iprot)
12546
        else:
12547
          iprot.skip(ftype)
12548
      else:
12549
        iprot.skip(ftype)
12550
      iprot.readFieldEnd()
12551
    iprot.readStructEnd()
12552
 
12553
  def write(self, oprot):
12554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12556
      return
12557
    oprot.writeStructBegin('getComingSoon_result')
12558
    if self.success is not None:
12559
      oprot.writeFieldBegin('success', TType.LIST, 0)
12560
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12561
      for iter131 in self.success:
12562
        iter131.write(oprot)
5944 mandeep.dh 12563
      oprot.writeListEnd()
12564
      oprot.writeFieldEnd()
12565
    if self.isex is not None:
12566
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12567
      self.isex.write(oprot)
12568
      oprot.writeFieldEnd()
12569
    oprot.writeFieldStop()
12570
    oprot.writeStructEnd()
12571
 
12572
  def validate(self):
12573
    return
12574
 
12575
 
12576
  def __repr__(self):
12577
    L = ['%s=%r' % (key, value)
12578
      for key, value in self.__dict__.iteritems()]
12579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12580
 
12581
  def __eq__(self, other):
12582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12583
 
12584
  def __ne__(self, other):
12585
    return not (self == other)
12586
 
12587
class getComingSoonCatalogIds_args:
12588
  """
12589
  Attributes:
12590
   - beginIndex
12591
   - totalItems
12592
   - brand
12593
   - category
12594
  """
12595
 
12596
  thrift_spec = (
12597
    None, # 0
12598
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12599
    (2, TType.I64, 'totalItems', None, None, ), # 2
12600
    (3, TType.STRING, 'brand', None, None, ), # 3
12601
    (4, TType.I64, 'category', None, None, ), # 4
12602
  )
12603
 
12604
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12605
    self.beginIndex = beginIndex
12606
    self.totalItems = totalItems
12607
    self.brand = brand
12608
    self.category = category
12609
 
12610
  def read(self, iprot):
12611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12613
      return
12614
    iprot.readStructBegin()
12615
    while True:
12616
      (fname, ftype, fid) = iprot.readFieldBegin()
12617
      if ftype == TType.STOP:
12618
        break
12619
      if fid == 1:
12620
        if ftype == TType.I64:
12621
          self.beginIndex = iprot.readI64();
12622
        else:
12623
          iprot.skip(ftype)
12624
      elif fid == 2:
12625
        if ftype == TType.I64:
12626
          self.totalItems = iprot.readI64();
12627
        else:
12628
          iprot.skip(ftype)
12629
      elif fid == 3:
12630
        if ftype == TType.STRING:
12631
          self.brand = iprot.readString();
12632
        else:
12633
          iprot.skip(ftype)
12634
      elif fid == 4:
12635
        if ftype == TType.I64:
12636
          self.category = iprot.readI64();
12637
        else:
12638
          iprot.skip(ftype)
12639
      else:
12640
        iprot.skip(ftype)
12641
      iprot.readFieldEnd()
12642
    iprot.readStructEnd()
12643
 
12644
  def write(self, oprot):
12645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12647
      return
12648
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
12649
    if self.beginIndex is not None:
12650
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12651
      oprot.writeI64(self.beginIndex)
12652
      oprot.writeFieldEnd()
12653
    if self.totalItems is not None:
12654
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12655
      oprot.writeI64(self.totalItems)
12656
      oprot.writeFieldEnd()
12657
    if self.brand is not None:
12658
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12659
      oprot.writeString(self.brand)
12660
      oprot.writeFieldEnd()
12661
    if self.category is not None:
12662
      oprot.writeFieldBegin('category', TType.I64, 4)
12663
      oprot.writeI64(self.category)
12664
      oprot.writeFieldEnd()
12665
    oprot.writeFieldStop()
12666
    oprot.writeStructEnd()
12667
 
12668
  def validate(self):
12669
    return
12670
 
12671
 
12672
  def __repr__(self):
12673
    L = ['%s=%r' % (key, value)
12674
      for key, value in self.__dict__.iteritems()]
12675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12676
 
12677
  def __eq__(self, other):
12678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12679
 
12680
  def __ne__(self, other):
12681
    return not (self == other)
12682
 
12683
class getComingSoonCatalogIds_result:
12684
  """
12685
  Attributes:
12686
   - success
12687
   - cex
12688
  """
12689
 
12690
  thrift_spec = (
12691
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12692
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12693
  )
12694
 
12695
  def __init__(self, success=None, cex=None,):
12696
    self.success = success
12697
    self.cex = cex
12698
 
12699
  def read(self, iprot):
12700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12702
      return
12703
    iprot.readStructBegin()
12704
    while True:
12705
      (fname, ftype, fid) = iprot.readFieldBegin()
12706
      if ftype == TType.STOP:
12707
        break
12708
      if fid == 0:
12709
        if ftype == TType.LIST:
12710
          self.success = []
12567 amit.gupta 12711
          (_etype135, _size132) = iprot.readListBegin()
12712
          for _i136 in xrange(_size132):
12713
            _elem137 = iprot.readI64();
12714
            self.success.append(_elem137)
5944 mandeep.dh 12715
          iprot.readListEnd()
12716
        else:
12717
          iprot.skip(ftype)
12718
      elif fid == 1:
12719
        if ftype == TType.STRUCT:
12720
          self.cex = CatalogServiceException()
12721
          self.cex.read(iprot)
12722
        else:
12723
          iprot.skip(ftype)
12724
      else:
12725
        iprot.skip(ftype)
12726
      iprot.readFieldEnd()
12727
    iprot.readStructEnd()
12728
 
12729
  def write(self, oprot):
12730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12732
      return
12733
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
12734
    if self.success is not None:
12735
      oprot.writeFieldBegin('success', TType.LIST, 0)
12736
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12737
      for iter138 in self.success:
12738
        oprot.writeI64(iter138)
5944 mandeep.dh 12739
      oprot.writeListEnd()
12740
      oprot.writeFieldEnd()
12741
    if self.cex is not None:
12742
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12743
      self.cex.write(oprot)
12744
      oprot.writeFieldEnd()
12745
    oprot.writeFieldStop()
12746
    oprot.writeStructEnd()
12747
 
12748
  def validate(self):
12749
    return
12750
 
12751
 
12752
  def __repr__(self):
12753
    L = ['%s=%r' % (key, value)
12754
      for key, value in self.__dict__.iteritems()]
12755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12756
 
12757
  def __eq__(self, other):
12758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12759
 
12760
  def __ne__(self, other):
12761
    return not (self == other)
12762
 
12763
class getComingSoonCount_args:
12764
 
12765
  thrift_spec = (
12766
  )
12767
 
12768
  def read(self, iprot):
12769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12771
      return
12772
    iprot.readStructBegin()
12773
    while True:
12774
      (fname, ftype, fid) = iprot.readFieldBegin()
12775
      if ftype == TType.STOP:
12776
        break
12777
      else:
12778
        iprot.skip(ftype)
12779
      iprot.readFieldEnd()
12780
    iprot.readStructEnd()
12781
 
12782
  def write(self, oprot):
12783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12785
      return
12786
    oprot.writeStructBegin('getComingSoonCount_args')
12787
    oprot.writeFieldStop()
12788
    oprot.writeStructEnd()
12789
 
12790
  def validate(self):
12791
    return
12792
 
12793
 
12794
  def __repr__(self):
12795
    L = ['%s=%r' % (key, value)
12796
      for key, value in self.__dict__.iteritems()]
12797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12798
 
12799
  def __eq__(self, other):
12800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12801
 
12802
  def __ne__(self, other):
12803
    return not (self == other)
12804
 
12805
class getComingSoonCount_result:
12806
  """
12807
  Attributes:
12808
   - success
12809
   - cex
12810
  """
12811
 
12812
  thrift_spec = (
12813
    (0, TType.I64, 'success', None, None, ), # 0
12814
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12815
  )
12816
 
12817
  def __init__(self, success=None, cex=None,):
12818
    self.success = success
12819
    self.cex = cex
12820
 
12821
  def read(self, iprot):
12822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12824
      return
12825
    iprot.readStructBegin()
12826
    while True:
12827
      (fname, ftype, fid) = iprot.readFieldBegin()
12828
      if ftype == TType.STOP:
12829
        break
12830
      if fid == 0:
12831
        if ftype == TType.I64:
12832
          self.success = iprot.readI64();
12833
        else:
12834
          iprot.skip(ftype)
12835
      elif fid == 1:
12836
        if ftype == TType.STRUCT:
12837
          self.cex = CatalogServiceException()
12838
          self.cex.read(iprot)
12839
        else:
12840
          iprot.skip(ftype)
12841
      else:
12842
        iprot.skip(ftype)
12843
      iprot.readFieldEnd()
12844
    iprot.readStructEnd()
12845
 
12846
  def write(self, oprot):
12847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12849
      return
12850
    oprot.writeStructBegin('getComingSoonCount_result')
12851
    if self.success is not None:
12852
      oprot.writeFieldBegin('success', TType.I64, 0)
12853
      oprot.writeI64(self.success)
12854
      oprot.writeFieldEnd()
12855
    if self.cex is not None:
12856
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12857
      self.cex.write(oprot)
12858
      oprot.writeFieldEnd()
12859
    oprot.writeFieldStop()
12860
    oprot.writeStructEnd()
12861
 
12862
  def validate(self):
12863
    return
12864
 
12865
 
12866
  def __repr__(self):
12867
    L = ['%s=%r' % (key, value)
12868
      for key, value in self.__dict__.iteritems()]
12869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12870
 
12871
  def __eq__(self, other):
12872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12873
 
12874
  def __ne__(self, other):
12875
    return not (self == other)
12876
 
12877
class getLatestArrivals_args:
12878
 
12879
  thrift_spec = (
12880
  )
12881
 
12882
  def read(self, iprot):
12883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12885
      return
12886
    iprot.readStructBegin()
12887
    while True:
12888
      (fname, ftype, fid) = iprot.readFieldBegin()
12889
      if ftype == TType.STOP:
12890
        break
12891
      else:
12892
        iprot.skip(ftype)
12893
      iprot.readFieldEnd()
12894
    iprot.readStructEnd()
12895
 
12896
  def write(self, oprot):
12897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12899
      return
12900
    oprot.writeStructBegin('getLatestArrivals_args')
12901
    oprot.writeFieldStop()
12902
    oprot.writeStructEnd()
12903
 
12904
  def validate(self):
12905
    return
12906
 
12907
 
12908
  def __repr__(self):
12909
    L = ['%s=%r' % (key, value)
12910
      for key, value in self.__dict__.iteritems()]
12911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12912
 
12913
  def __eq__(self, other):
12914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12915
 
12916
  def __ne__(self, other):
12917
    return not (self == other)
12918
 
12919
class getLatestArrivals_result:
12920
  """
12921
  Attributes:
12922
   - success
12923
   - isex
12924
  """
12925
 
12926
  thrift_spec = (
12927
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12928
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12929
  )
12930
 
12931
  def __init__(self, success=None, isex=None,):
12932
    self.success = success
12933
    self.isex = isex
12934
 
12935
  def read(self, iprot):
12936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12938
      return
12939
    iprot.readStructBegin()
12940
    while True:
12941
      (fname, ftype, fid) = iprot.readFieldBegin()
12942
      if ftype == TType.STOP:
12943
        break
12944
      if fid == 0:
12945
        if ftype == TType.LIST:
12946
          self.success = []
12567 amit.gupta 12947
          (_etype142, _size139) = iprot.readListBegin()
12948
          for _i143 in xrange(_size139):
12949
            _elem144 = Item()
12950
            _elem144.read(iprot)
12951
            self.success.append(_elem144)
5944 mandeep.dh 12952
          iprot.readListEnd()
12953
        else:
12954
          iprot.skip(ftype)
12955
      elif fid == 1:
12956
        if ftype == TType.STRUCT:
12957
          self.isex = CatalogServiceException()
12958
          self.isex.read(iprot)
12959
        else:
12960
          iprot.skip(ftype)
12961
      else:
12962
        iprot.skip(ftype)
12963
      iprot.readFieldEnd()
12964
    iprot.readStructEnd()
12965
 
12966
  def write(self, oprot):
12967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12969
      return
12970
    oprot.writeStructBegin('getLatestArrivals_result')
12971
    if self.success is not None:
12972
      oprot.writeFieldBegin('success', TType.LIST, 0)
12973
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12974
      for iter145 in self.success:
12975
        iter145.write(oprot)
5944 mandeep.dh 12976
      oprot.writeListEnd()
12977
      oprot.writeFieldEnd()
12978
    if self.isex is not None:
12979
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12980
      self.isex.write(oprot)
12981
      oprot.writeFieldEnd()
12982
    oprot.writeFieldStop()
12983
    oprot.writeStructEnd()
12984
 
12985
  def validate(self):
12986
    return
12987
 
12988
 
12989
  def __repr__(self):
12990
    L = ['%s=%r' % (key, value)
12991
      for key, value in self.__dict__.iteritems()]
12992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12993
 
12994
  def __eq__(self, other):
12995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12996
 
12997
  def __ne__(self, other):
12998
    return not (self == other)
12999
 
13000
class getLatestArrivalsCatalogIds_args:
13001
  """
13002
  Attributes:
13003
   - beginIndex
13004
   - totalItems
13005
   - brand
13006
   - categories
13007
  """
13008
 
13009
  thrift_spec = (
13010
    None, # 0
13011
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13012
    (2, TType.I64, 'totalItems', None, None, ), # 2
13013
    (3, TType.STRING, 'brand', None, None, ), # 3
13014
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
13015
  )
13016
 
13017
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
13018
    self.beginIndex = beginIndex
13019
    self.totalItems = totalItems
13020
    self.brand = brand
13021
    self.categories = categories
13022
 
13023
  def read(self, iprot):
13024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13026
      return
13027
    iprot.readStructBegin()
13028
    while True:
13029
      (fname, ftype, fid) = iprot.readFieldBegin()
13030
      if ftype == TType.STOP:
13031
        break
13032
      if fid == 1:
13033
        if ftype == TType.I64:
13034
          self.beginIndex = iprot.readI64();
13035
        else:
13036
          iprot.skip(ftype)
13037
      elif fid == 2:
13038
        if ftype == TType.I64:
13039
          self.totalItems = iprot.readI64();
13040
        else:
13041
          iprot.skip(ftype)
13042
      elif fid == 3:
13043
        if ftype == TType.STRING:
13044
          self.brand = iprot.readString();
13045
        else:
13046
          iprot.skip(ftype)
13047
      elif fid == 4:
13048
        if ftype == TType.LIST:
13049
          self.categories = []
12567 amit.gupta 13050
          (_etype149, _size146) = iprot.readListBegin()
13051
          for _i150 in xrange(_size146):
13052
            _elem151 = iprot.readI64();
13053
            self.categories.append(_elem151)
5944 mandeep.dh 13054
          iprot.readListEnd()
13055
        else:
13056
          iprot.skip(ftype)
13057
      else:
13058
        iprot.skip(ftype)
13059
      iprot.readFieldEnd()
13060
    iprot.readStructEnd()
13061
 
13062
  def write(self, oprot):
13063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13065
      return
13066
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13067
    if self.beginIndex is not None:
13068
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13069
      oprot.writeI64(self.beginIndex)
13070
      oprot.writeFieldEnd()
13071
    if self.totalItems is not None:
13072
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13073
      oprot.writeI64(self.totalItems)
13074
      oprot.writeFieldEnd()
13075
    if self.brand is not None:
13076
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13077
      oprot.writeString(self.brand)
13078
      oprot.writeFieldEnd()
13079
    if self.categories is not None:
13080
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13081
      oprot.writeListBegin(TType.I64, len(self.categories))
12567 amit.gupta 13082
      for iter152 in self.categories:
13083
        oprot.writeI64(iter152)
5944 mandeep.dh 13084
      oprot.writeListEnd()
13085
      oprot.writeFieldEnd()
13086
    oprot.writeFieldStop()
13087
    oprot.writeStructEnd()
13088
 
13089
  def validate(self):
13090
    return
13091
 
13092
 
13093
  def __repr__(self):
13094
    L = ['%s=%r' % (key, value)
13095
      for key, value in self.__dict__.iteritems()]
13096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13097
 
13098
  def __eq__(self, other):
13099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13100
 
13101
  def __ne__(self, other):
13102
    return not (self == other)
13103
 
13104
class getLatestArrivalsCatalogIds_result:
13105
  """
13106
  Attributes:
13107
   - success
13108
   - cex
13109
  """
13110
 
13111
  thrift_spec = (
13112
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13113
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13114
  )
13115
 
13116
  def __init__(self, success=None, cex=None,):
13117
    self.success = success
13118
    self.cex = cex
13119
 
13120
  def read(self, iprot):
13121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13123
      return
13124
    iprot.readStructBegin()
13125
    while True:
13126
      (fname, ftype, fid) = iprot.readFieldBegin()
13127
      if ftype == TType.STOP:
13128
        break
13129
      if fid == 0:
13130
        if ftype == TType.LIST:
13131
          self.success = []
12567 amit.gupta 13132
          (_etype156, _size153) = iprot.readListBegin()
13133
          for _i157 in xrange(_size153):
13134
            _elem158 = iprot.readI64();
13135
            self.success.append(_elem158)
5944 mandeep.dh 13136
          iprot.readListEnd()
13137
        else:
13138
          iprot.skip(ftype)
13139
      elif fid == 1:
13140
        if ftype == TType.STRUCT:
13141
          self.cex = CatalogServiceException()
13142
          self.cex.read(iprot)
13143
        else:
13144
          iprot.skip(ftype)
13145
      else:
13146
        iprot.skip(ftype)
13147
      iprot.readFieldEnd()
13148
    iprot.readStructEnd()
13149
 
13150
  def write(self, oprot):
13151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13153
      return
13154
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13155
    if self.success is not None:
13156
      oprot.writeFieldBegin('success', TType.LIST, 0)
13157
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 13158
      for iter159 in self.success:
13159
        oprot.writeI64(iter159)
5944 mandeep.dh 13160
      oprot.writeListEnd()
13161
      oprot.writeFieldEnd()
13162
    if self.cex is not None:
13163
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13164
      self.cex.write(oprot)
13165
      oprot.writeFieldEnd()
13166
    oprot.writeFieldStop()
13167
    oprot.writeStructEnd()
13168
 
13169
  def validate(self):
13170
    return
13171
 
13172
 
13173
  def __repr__(self):
13174
    L = ['%s=%r' % (key, value)
13175
      for key, value in self.__dict__.iteritems()]
13176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13177
 
13178
  def __eq__(self, other):
13179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13180
 
13181
  def __ne__(self, other):
13182
    return not (self == other)
13183
 
13184
class getLatestArrivalsCount_args:
13185
 
13186
  thrift_spec = (
13187
  )
13188
 
13189
  def read(self, iprot):
13190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13192
      return
13193
    iprot.readStructBegin()
13194
    while True:
13195
      (fname, ftype, fid) = iprot.readFieldBegin()
13196
      if ftype == TType.STOP:
13197
        break
13198
      else:
13199
        iprot.skip(ftype)
13200
      iprot.readFieldEnd()
13201
    iprot.readStructEnd()
13202
 
13203
  def write(self, oprot):
13204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13206
      return
13207
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13208
    oprot.writeFieldStop()
13209
    oprot.writeStructEnd()
13210
 
13211
  def validate(self):
13212
    return
13213
 
13214
 
13215
  def __repr__(self):
13216
    L = ['%s=%r' % (key, value)
13217
      for key, value in self.__dict__.iteritems()]
13218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13219
 
13220
  def __eq__(self, other):
13221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13222
 
13223
  def __ne__(self, other):
13224
    return not (self == other)
13225
 
13226
class getLatestArrivalsCount_result:
13227
  """
13228
  Attributes:
13229
   - success
13230
   - cex
13231
  """
13232
 
13233
  thrift_spec = (
13234
    (0, TType.I64, 'success', None, None, ), # 0
13235
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13236
  )
13237
 
13238
  def __init__(self, success=None, cex=None,):
13239
    self.success = success
13240
    self.cex = cex
13241
 
13242
  def read(self, iprot):
13243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13245
      return
13246
    iprot.readStructBegin()
13247
    while True:
13248
      (fname, ftype, fid) = iprot.readFieldBegin()
13249
      if ftype == TType.STOP:
13250
        break
13251
      if fid == 0:
13252
        if ftype == TType.I64:
13253
          self.success = iprot.readI64();
13254
        else:
13255
          iprot.skip(ftype)
13256
      elif fid == 1:
13257
        if ftype == TType.STRUCT:
13258
          self.cex = CatalogServiceException()
13259
          self.cex.read(iprot)
13260
        else:
13261
          iprot.skip(ftype)
13262
      else:
13263
        iprot.skip(ftype)
13264
      iprot.readFieldEnd()
13265
    iprot.readStructEnd()
13266
 
13267
  def write(self, oprot):
13268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13270
      return
13271
    oprot.writeStructBegin('getLatestArrivalsCount_result')
13272
    if self.success is not None:
13273
      oprot.writeFieldBegin('success', TType.I64, 0)
13274
      oprot.writeI64(self.success)
13275
      oprot.writeFieldEnd()
13276
    if self.cex is not None:
13277
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13278
      self.cex.write(oprot)
13279
      oprot.writeFieldEnd()
13280
    oprot.writeFieldStop()
13281
    oprot.writeStructEnd()
13282
 
13283
  def validate(self):
13284
    return
13285
 
13286
 
13287
  def __repr__(self):
13288
    L = ['%s=%r' % (key, value)
13289
      for key, value in self.__dict__.iteritems()]
13290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13291
 
13292
  def __eq__(self, other):
13293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13294
 
13295
  def __ne__(self, other):
13296
    return not (self == other)
13297
 
13298
class generateNewEntityID_args:
13299
 
13300
  thrift_spec = (
13301
  )
13302
 
13303
  def read(self, iprot):
13304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13306
      return
13307
    iprot.readStructBegin()
13308
    while True:
13309
      (fname, ftype, fid) = iprot.readFieldBegin()
13310
      if ftype == TType.STOP:
13311
        break
13312
      else:
13313
        iprot.skip(ftype)
13314
      iprot.readFieldEnd()
13315
    iprot.readStructEnd()
13316
 
13317
  def write(self, oprot):
13318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13320
      return
13321
    oprot.writeStructBegin('generateNewEntityID_args')
13322
    oprot.writeFieldStop()
13323
    oprot.writeStructEnd()
13324
 
13325
  def validate(self):
13326
    return
13327
 
13328
 
13329
  def __repr__(self):
13330
    L = ['%s=%r' % (key, value)
13331
      for key, value in self.__dict__.iteritems()]
13332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13333
 
13334
  def __eq__(self, other):
13335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13336
 
13337
  def __ne__(self, other):
13338
    return not (self == other)
13339
 
13340
class generateNewEntityID_result:
13341
  """
13342
  Attributes:
13343
   - success
13344
  """
13345
 
13346
  thrift_spec = (
13347
    (0, TType.I64, 'success', None, None, ), # 0
13348
  )
13349
 
13350
  def __init__(self, success=None,):
13351
    self.success = success
13352
 
13353
  def read(self, iprot):
13354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13356
      return
13357
    iprot.readStructBegin()
13358
    while True:
13359
      (fname, ftype, fid) = iprot.readFieldBegin()
13360
      if ftype == TType.STOP:
13361
        break
13362
      if fid == 0:
13363
        if ftype == TType.I64:
13364
          self.success = iprot.readI64();
13365
        else:
13366
          iprot.skip(ftype)
13367
      else:
13368
        iprot.skip(ftype)
13369
      iprot.readFieldEnd()
13370
    iprot.readStructEnd()
13371
 
13372
  def write(self, oprot):
13373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13375
      return
13376
    oprot.writeStructBegin('generateNewEntityID_result')
13377
    if self.success is not None:
13378
      oprot.writeFieldBegin('success', TType.I64, 0)
13379
      oprot.writeI64(self.success)
13380
      oprot.writeFieldEnd()
13381
    oprot.writeFieldStop()
13382
    oprot.writeStructEnd()
13383
 
13384
  def validate(self):
13385
    return
13386
 
13387
 
13388
  def __repr__(self):
13389
    L = ['%s=%r' % (key, value)
13390
      for key, value in self.__dict__.iteritems()]
13391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13392
 
13393
  def __eq__(self, other):
13394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13395
 
13396
  def __ne__(self, other):
13397
    return not (self == other)
13398
 
13399
class addCategory_args:
13400
  """
13401
  Attributes:
13402
   - category
13403
  """
13404
 
13405
  thrift_spec = (
13406
    None, # 0
13407
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13408
  )
13409
 
13410
  def __init__(self, category=None,):
13411
    self.category = category
13412
 
13413
  def read(self, iprot):
13414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13416
      return
13417
    iprot.readStructBegin()
13418
    while True:
13419
      (fname, ftype, fid) = iprot.readFieldBegin()
13420
      if ftype == TType.STOP:
13421
        break
13422
      if fid == 1:
13423
        if ftype == TType.STRUCT:
13424
          self.category = Category()
13425
          self.category.read(iprot)
13426
        else:
13427
          iprot.skip(ftype)
13428
      else:
13429
        iprot.skip(ftype)
13430
      iprot.readFieldEnd()
13431
    iprot.readStructEnd()
13432
 
13433
  def write(self, oprot):
13434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13436
      return
13437
    oprot.writeStructBegin('addCategory_args')
13438
    if self.category is not None:
13439
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13440
      self.category.write(oprot)
13441
      oprot.writeFieldEnd()
13442
    oprot.writeFieldStop()
13443
    oprot.writeStructEnd()
13444
 
13445
  def validate(self):
13446
    return
13447
 
13448
 
13449
  def __repr__(self):
13450
    L = ['%s=%r' % (key, value)
13451
      for key, value in self.__dict__.iteritems()]
13452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13453
 
13454
  def __eq__(self, other):
13455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13456
 
13457
  def __ne__(self, other):
13458
    return not (self == other)
13459
 
13460
class addCategory_result:
13461
  """
13462
  Attributes:
13463
   - success
13464
  """
13465
 
13466
  thrift_spec = (
13467
    (0, TType.BOOL, 'success', None, None, ), # 0
13468
  )
13469
 
13470
  def __init__(self, success=None,):
13471
    self.success = success
13472
 
13473
  def read(self, iprot):
13474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13476
      return
13477
    iprot.readStructBegin()
13478
    while True:
13479
      (fname, ftype, fid) = iprot.readFieldBegin()
13480
      if ftype == TType.STOP:
13481
        break
13482
      if fid == 0:
13483
        if ftype == TType.BOOL:
13484
          self.success = iprot.readBool();
13485
        else:
13486
          iprot.skip(ftype)
13487
      else:
13488
        iprot.skip(ftype)
13489
      iprot.readFieldEnd()
13490
    iprot.readStructEnd()
13491
 
13492
  def write(self, oprot):
13493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13495
      return
13496
    oprot.writeStructBegin('addCategory_result')
13497
    if self.success is not None:
13498
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13499
      oprot.writeBool(self.success)
13500
      oprot.writeFieldEnd()
13501
    oprot.writeFieldStop()
13502
    oprot.writeStructEnd()
13503
 
13504
  def validate(self):
13505
    return
13506
 
13507
 
13508
  def __repr__(self):
13509
    L = ['%s=%r' % (key, value)
13510
      for key, value in self.__dict__.iteritems()]
13511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13512
 
13513
  def __eq__(self, other):
13514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13515
 
13516
  def __ne__(self, other):
13517
    return not (self == other)
13518
 
13519
class getCategory_args:
13520
  """
13521
  Attributes:
13522
   - id
13523
  """
13524
 
13525
  thrift_spec = (
13526
    None, # 0
13527
    (1, TType.I64, 'id', None, None, ), # 1
13528
  )
13529
 
13530
  def __init__(self, id=None,):
13531
    self.id = id
13532
 
13533
  def read(self, iprot):
13534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13536
      return
13537
    iprot.readStructBegin()
13538
    while True:
13539
      (fname, ftype, fid) = iprot.readFieldBegin()
13540
      if ftype == TType.STOP:
13541
        break
13542
      if fid == 1:
13543
        if ftype == TType.I64:
13544
          self.id = iprot.readI64();
13545
        else:
13546
          iprot.skip(ftype)
13547
      else:
13548
        iprot.skip(ftype)
13549
      iprot.readFieldEnd()
13550
    iprot.readStructEnd()
13551
 
13552
  def write(self, oprot):
13553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13555
      return
13556
    oprot.writeStructBegin('getCategory_args')
13557
    if self.id is not None:
13558
      oprot.writeFieldBegin('id', TType.I64, 1)
13559
      oprot.writeI64(self.id)
13560
      oprot.writeFieldEnd()
13561
    oprot.writeFieldStop()
13562
    oprot.writeStructEnd()
13563
 
13564
  def validate(self):
13565
    return
13566
 
13567
 
13568
  def __repr__(self):
13569
    L = ['%s=%r' % (key, value)
13570
      for key, value in self.__dict__.iteritems()]
13571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13572
 
13573
  def __eq__(self, other):
13574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13575
 
13576
  def __ne__(self, other):
13577
    return not (self == other)
13578
 
13579
class getCategory_result:
13580
  """
13581
  Attributes:
13582
   - success
13583
  """
13584
 
13585
  thrift_spec = (
13586
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13587
  )
13588
 
13589
  def __init__(self, success=None,):
13590
    self.success = success
13591
 
13592
  def read(self, iprot):
13593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13595
      return
13596
    iprot.readStructBegin()
13597
    while True:
13598
      (fname, ftype, fid) = iprot.readFieldBegin()
13599
      if ftype == TType.STOP:
13600
        break
13601
      if fid == 0:
13602
        if ftype == TType.STRUCT:
13603
          self.success = Category()
13604
          self.success.read(iprot)
13605
        else:
13606
          iprot.skip(ftype)
13607
      else:
13608
        iprot.skip(ftype)
13609
      iprot.readFieldEnd()
13610
    iprot.readStructEnd()
13611
 
13612
  def write(self, oprot):
13613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13615
      return
13616
    oprot.writeStructBegin('getCategory_result')
13617
    if self.success is not None:
13618
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13619
      self.success.write(oprot)
13620
      oprot.writeFieldEnd()
13621
    oprot.writeFieldStop()
13622
    oprot.writeStructEnd()
13623
 
13624
  def validate(self):
13625
    return
13626
 
13627
 
13628
  def __repr__(self):
13629
    L = ['%s=%r' % (key, value)
13630
      for key, value in self.__dict__.iteritems()]
13631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13632
 
13633
  def __eq__(self, other):
13634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13635
 
13636
  def __ne__(self, other):
13637
    return not (self == other)
13638
 
13639
class getAllCategories_args:
13640
 
13641
  thrift_spec = (
13642
  )
13643
 
13644
  def read(self, iprot):
13645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13647
      return
13648
    iprot.readStructBegin()
13649
    while True:
13650
      (fname, ftype, fid) = iprot.readFieldBegin()
13651
      if ftype == TType.STOP:
13652
        break
13653
      else:
13654
        iprot.skip(ftype)
13655
      iprot.readFieldEnd()
13656
    iprot.readStructEnd()
13657
 
13658
  def write(self, oprot):
13659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13661
      return
13662
    oprot.writeStructBegin('getAllCategories_args')
13663
    oprot.writeFieldStop()
13664
    oprot.writeStructEnd()
13665
 
13666
  def validate(self):
13667
    return
13668
 
13669
 
13670
  def __repr__(self):
13671
    L = ['%s=%r' % (key, value)
13672
      for key, value in self.__dict__.iteritems()]
13673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13674
 
13675
  def __eq__(self, other):
13676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13677
 
13678
  def __ne__(self, other):
13679
    return not (self == other)
13680
 
13681
class getAllCategories_result:
13682
  """
13683
  Attributes:
13684
   - success
13685
  """
13686
 
13687
  thrift_spec = (
13688
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
13689
  )
13690
 
13691
  def __init__(self, success=None,):
13692
    self.success = success
13693
 
13694
  def read(self, iprot):
13695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13697
      return
13698
    iprot.readStructBegin()
13699
    while True:
13700
      (fname, ftype, fid) = iprot.readFieldBegin()
13701
      if ftype == TType.STOP:
13702
        break
13703
      if fid == 0:
13704
        if ftype == TType.LIST:
13705
          self.success = []
12567 amit.gupta 13706
          (_etype163, _size160) = iprot.readListBegin()
13707
          for _i164 in xrange(_size160):
13708
            _elem165 = Category()
13709
            _elem165.read(iprot)
13710
            self.success.append(_elem165)
5944 mandeep.dh 13711
          iprot.readListEnd()
13712
        else:
13713
          iprot.skip(ftype)
13714
      else:
13715
        iprot.skip(ftype)
13716
      iprot.readFieldEnd()
13717
    iprot.readStructEnd()
13718
 
13719
  def write(self, oprot):
13720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13722
      return
13723
    oprot.writeStructBegin('getAllCategories_result')
13724
    if self.success is not None:
13725
      oprot.writeFieldBegin('success', TType.LIST, 0)
13726
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13727
      for iter166 in self.success:
13728
        iter166.write(oprot)
5944 mandeep.dh 13729
      oprot.writeListEnd()
13730
      oprot.writeFieldEnd()
13731
    oprot.writeFieldStop()
13732
    oprot.writeStructEnd()
13733
 
13734
  def validate(self):
13735
    return
13736
 
13737
 
13738
  def __repr__(self):
13739
    L = ['%s=%r' % (key, value)
13740
      for key, value in self.__dict__.iteritems()]
13741
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13742
 
13743
  def __eq__(self, other):
13744
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13745
 
13746
  def __ne__(self, other):
13747
    return not (self == other)
13748
 
13749
class getAllSimilarItems_args:
13750
  """
13751
  Attributes:
13752
   - itemId
13753
  """
13754
 
13755
  thrift_spec = (
13756
    None, # 0
13757
    (1, TType.I64, 'itemId', None, None, ), # 1
13758
  )
13759
 
13760
  def __init__(self, itemId=None,):
13761
    self.itemId = itemId
13762
 
13763
  def read(self, iprot):
13764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13766
      return
13767
    iprot.readStructBegin()
13768
    while True:
13769
      (fname, ftype, fid) = iprot.readFieldBegin()
13770
      if ftype == TType.STOP:
13771
        break
13772
      if fid == 1:
13773
        if ftype == TType.I64:
13774
          self.itemId = iprot.readI64();
13775
        else:
13776
          iprot.skip(ftype)
13777
      else:
13778
        iprot.skip(ftype)
13779
      iprot.readFieldEnd()
13780
    iprot.readStructEnd()
13781
 
13782
  def write(self, oprot):
13783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13785
      return
13786
    oprot.writeStructBegin('getAllSimilarItems_args')
13787
    if self.itemId is not None:
13788
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13789
      oprot.writeI64(self.itemId)
13790
      oprot.writeFieldEnd()
13791
    oprot.writeFieldStop()
13792
    oprot.writeStructEnd()
13793
 
13794
  def validate(self):
13795
    return
13796
 
13797
 
13798
  def __repr__(self):
13799
    L = ['%s=%r' % (key, value)
13800
      for key, value in self.__dict__.iteritems()]
13801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13802
 
13803
  def __eq__(self, other):
13804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13805
 
13806
  def __ne__(self, other):
13807
    return not (self == other)
13808
 
13809
class getAllSimilarItems_result:
13810
  """
13811
  Attributes:
13812
   - success
13813
  """
13814
 
13815
  thrift_spec = (
13816
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13817
  )
13818
 
13819
  def __init__(self, success=None,):
13820
    self.success = success
13821
 
13822
  def read(self, iprot):
13823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13825
      return
13826
    iprot.readStructBegin()
13827
    while True:
13828
      (fname, ftype, fid) = iprot.readFieldBegin()
13829
      if ftype == TType.STOP:
13830
        break
13831
      if fid == 0:
13832
        if ftype == TType.LIST:
13833
          self.success = []
12567 amit.gupta 13834
          (_etype170, _size167) = iprot.readListBegin()
13835
          for _i171 in xrange(_size167):
13836
            _elem172 = Item()
13837
            _elem172.read(iprot)
13838
            self.success.append(_elem172)
5944 mandeep.dh 13839
          iprot.readListEnd()
13840
        else:
13841
          iprot.skip(ftype)
13842
      else:
13843
        iprot.skip(ftype)
13844
      iprot.readFieldEnd()
13845
    iprot.readStructEnd()
13846
 
13847
  def write(self, oprot):
13848
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13849
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13850
      return
13851
    oprot.writeStructBegin('getAllSimilarItems_result')
13852
    if self.success is not None:
13853
      oprot.writeFieldBegin('success', TType.LIST, 0)
13854
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13855
      for iter173 in self.success:
13856
        iter173.write(oprot)
5944 mandeep.dh 13857
      oprot.writeListEnd()
13858
      oprot.writeFieldEnd()
13859
    oprot.writeFieldStop()
13860
    oprot.writeStructEnd()
13861
 
13862
  def validate(self):
13863
    return
13864
 
13865
 
13866
  def __repr__(self):
13867
    L = ['%s=%r' % (key, value)
13868
      for key, value in self.__dict__.iteritems()]
13869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13870
 
13871
  def __eq__(self, other):
13872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13873
 
13874
  def __ne__(self, other):
13875
    return not (self == other)
13876
 
13877
class addSimilarItem_args:
13878
  """
13879
  Attributes:
13880
   - itemId
13881
   - catalogItemId
13882
  """
13883
 
13884
  thrift_spec = (
13885
    None, # 0
13886
    (1, TType.I64, 'itemId', None, None, ), # 1
13887
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
13888
  )
13889
 
13890
  def __init__(self, itemId=None, catalogItemId=None,):
13891
    self.itemId = itemId
13892
    self.catalogItemId = catalogItemId
13893
 
13894
  def read(self, iprot):
13895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13897
      return
13898
    iprot.readStructBegin()
13899
    while True:
13900
      (fname, ftype, fid) = iprot.readFieldBegin()
13901
      if ftype == TType.STOP:
13902
        break
13903
      if fid == 1:
13904
        if ftype == TType.I64:
13905
          self.itemId = iprot.readI64();
13906
        else:
13907
          iprot.skip(ftype)
13908
      elif fid == 2:
13909
        if ftype == TType.I64:
13910
          self.catalogItemId = iprot.readI64();
13911
        else:
13912
          iprot.skip(ftype)
13913
      else:
13914
        iprot.skip(ftype)
13915
      iprot.readFieldEnd()
13916
    iprot.readStructEnd()
13917
 
13918
  def write(self, oprot):
13919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13921
      return
13922
    oprot.writeStructBegin('addSimilarItem_args')
13923
    if self.itemId is not None:
13924
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13925
      oprot.writeI64(self.itemId)
13926
      oprot.writeFieldEnd()
13927
    if self.catalogItemId is not None:
13928
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
13929
      oprot.writeI64(self.catalogItemId)
13930
      oprot.writeFieldEnd()
13931
    oprot.writeFieldStop()
13932
    oprot.writeStructEnd()
13933
 
13934
  def validate(self):
13935
    return
13936
 
13937
 
13938
  def __repr__(self):
13939
    L = ['%s=%r' % (key, value)
13940
      for key, value in self.__dict__.iteritems()]
13941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13942
 
13943
  def __eq__(self, other):
13944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13945
 
13946
  def __ne__(self, other):
13947
    return not (self == other)
13948
 
13949
class addSimilarItem_result:
13950
  """
13951
  Attributes:
13952
   - success
13953
   - cex
13954
  """
13955
 
13956
  thrift_spec = (
13957
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
13958
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13959
  )
13960
 
13961
  def __init__(self, success=None, cex=None,):
13962
    self.success = success
13963
    self.cex = cex
13964
 
13965
  def read(self, iprot):
13966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13968
      return
13969
    iprot.readStructBegin()
13970
    while True:
13971
      (fname, ftype, fid) = iprot.readFieldBegin()
13972
      if ftype == TType.STOP:
13973
        break
13974
      if fid == 0:
13975
        if ftype == TType.STRUCT:
13976
          self.success = Item()
13977
          self.success.read(iprot)
13978
        else:
13979
          iprot.skip(ftype)
13980
      elif fid == 1:
13981
        if ftype == TType.STRUCT:
13982
          self.cex = CatalogServiceException()
13983
          self.cex.read(iprot)
13984
        else:
13985
          iprot.skip(ftype)
13986
      else:
13987
        iprot.skip(ftype)
13988
      iprot.readFieldEnd()
13989
    iprot.readStructEnd()
13990
 
13991
  def write(self, oprot):
13992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13994
      return
13995
    oprot.writeStructBegin('addSimilarItem_result')
13996
    if self.success is not None:
13997
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13998
      self.success.write(oprot)
13999
      oprot.writeFieldEnd()
14000
    if self.cex is not None:
14001
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14002
      self.cex.write(oprot)
14003
      oprot.writeFieldEnd()
14004
    oprot.writeFieldStop()
14005
    oprot.writeStructEnd()
14006
 
14007
  def validate(self):
14008
    return
14009
 
14010
 
14011
  def __repr__(self):
14012
    L = ['%s=%r' % (key, value)
14013
      for key, value in self.__dict__.iteritems()]
14014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14015
 
14016
  def __eq__(self, other):
14017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14018
 
14019
  def __ne__(self, other):
14020
    return not (self == other)
14021
 
6512 kshitij.so 14022
class addTag_args:
14023
  """
14024
  Attributes:
14025
   - displayName
14026
   - itemId
14027
  """
14028
 
14029
  thrift_spec = (
14030
    None, # 0
14031
    (1, TType.STRING, 'displayName', None, None, ), # 1
14032
    (2, TType.I64, 'itemId', None, None, ), # 2
14033
  )
14034
 
14035
  def __init__(self, displayName=None, itemId=None,):
14036
    self.displayName = displayName
14037
    self.itemId = itemId
14038
 
14039
  def read(self, iprot):
14040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14042
      return
14043
    iprot.readStructBegin()
14044
    while True:
14045
      (fname, ftype, fid) = iprot.readFieldBegin()
14046
      if ftype == TType.STOP:
14047
        break
14048
      if fid == 1:
14049
        if ftype == TType.STRING:
14050
          self.displayName = iprot.readString();
14051
        else:
14052
          iprot.skip(ftype)
14053
      elif fid == 2:
14054
        if ftype == TType.I64:
14055
          self.itemId = iprot.readI64();
14056
        else:
14057
          iprot.skip(ftype)
14058
      else:
14059
        iprot.skip(ftype)
14060
      iprot.readFieldEnd()
14061
    iprot.readStructEnd()
14062
 
14063
  def write(self, oprot):
14064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14066
      return
14067
    oprot.writeStructBegin('addTag_args')
14068
    if self.displayName is not None:
14069
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14070
      oprot.writeString(self.displayName)
14071
      oprot.writeFieldEnd()
14072
    if self.itemId is not None:
14073
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14074
      oprot.writeI64(self.itemId)
14075
      oprot.writeFieldEnd()
14076
    oprot.writeFieldStop()
14077
    oprot.writeStructEnd()
14078
 
14079
  def validate(self):
14080
    return
14081
 
14082
 
14083
  def __repr__(self):
14084
    L = ['%s=%r' % (key, value)
14085
      for key, value in self.__dict__.iteritems()]
14086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14087
 
14088
  def __eq__(self, other):
14089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14090
 
14091
  def __ne__(self, other):
14092
    return not (self == other)
14093
 
14094
class addTag_result:
14095
  """
14096
  Attributes:
14097
   - success
14098
  """
14099
 
14100
  thrift_spec = (
14101
    (0, TType.BOOL, 'success', None, None, ), # 0
14102
  )
14103
 
14104
  def __init__(self, success=None,):
14105
    self.success = success
14106
 
14107
  def read(self, iprot):
14108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14110
      return
14111
    iprot.readStructBegin()
14112
    while True:
14113
      (fname, ftype, fid) = iprot.readFieldBegin()
14114
      if ftype == TType.STOP:
14115
        break
14116
      if fid == 0:
14117
        if ftype == TType.BOOL:
14118
          self.success = iprot.readBool();
14119
        else:
14120
          iprot.skip(ftype)
14121
      else:
14122
        iprot.skip(ftype)
14123
      iprot.readFieldEnd()
14124
    iprot.readStructEnd()
14125
 
14126
  def write(self, oprot):
14127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14129
      return
14130
    oprot.writeStructBegin('addTag_result')
14131
    if self.success is not None:
14132
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14133
      oprot.writeBool(self.success)
14134
      oprot.writeFieldEnd()
14135
    oprot.writeFieldStop()
14136
    oprot.writeStructEnd()
14137
 
14138
  def validate(self):
14139
    return
14140
 
14141
 
14142
  def __repr__(self):
14143
    L = ['%s=%r' % (key, value)
14144
      for key, value in self.__dict__.iteritems()]
14145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14146
 
14147
  def __eq__(self, other):
14148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14149
 
14150
  def __ne__(self, other):
14151
    return not (self == other)
14152
 
14153
class deleteEntityTag_args:
14154
  """
14155
  Attributes:
14156
   - displayName
14157
   - itemId
14158
  """
14159
 
14160
  thrift_spec = (
14161
    None, # 0
14162
    (1, TType.STRING, 'displayName', None, None, ), # 1
14163
    (2, TType.I64, 'itemId', None, None, ), # 2
14164
  )
14165
 
14166
  def __init__(self, displayName=None, itemId=None,):
14167
    self.displayName = displayName
14168
    self.itemId = itemId
14169
 
14170
  def read(self, iprot):
14171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14173
      return
14174
    iprot.readStructBegin()
14175
    while True:
14176
      (fname, ftype, fid) = iprot.readFieldBegin()
14177
      if ftype == TType.STOP:
14178
        break
14179
      if fid == 1:
14180
        if ftype == TType.STRING:
14181
          self.displayName = iprot.readString();
14182
        else:
14183
          iprot.skip(ftype)
14184
      elif fid == 2:
14185
        if ftype == TType.I64:
14186
          self.itemId = iprot.readI64();
14187
        else:
14188
          iprot.skip(ftype)
14189
      else:
14190
        iprot.skip(ftype)
14191
      iprot.readFieldEnd()
14192
    iprot.readStructEnd()
14193
 
14194
  def write(self, oprot):
14195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14197
      return
14198
    oprot.writeStructBegin('deleteEntityTag_args')
14199
    if self.displayName is not None:
14200
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14201
      oprot.writeString(self.displayName)
14202
      oprot.writeFieldEnd()
14203
    if self.itemId is not None:
14204
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14205
      oprot.writeI64(self.itemId)
14206
      oprot.writeFieldEnd()
14207
    oprot.writeFieldStop()
14208
    oprot.writeStructEnd()
14209
 
14210
  def validate(self):
14211
    return
14212
 
14213
 
14214
  def __repr__(self):
14215
    L = ['%s=%r' % (key, value)
14216
      for key, value in self.__dict__.iteritems()]
14217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14218
 
14219
  def __eq__(self, other):
14220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14221
 
14222
  def __ne__(self, other):
14223
    return not (self == other)
14224
 
14225
class deleteEntityTag_result:
14226
  """
14227
  Attributes:
14228
   - success
14229
  """
14230
 
14231
  thrift_spec = (
14232
    (0, TType.BOOL, 'success', None, None, ), # 0
14233
  )
14234
 
14235
  def __init__(self, success=None,):
14236
    self.success = success
14237
 
14238
  def read(self, iprot):
14239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14241
      return
14242
    iprot.readStructBegin()
14243
    while True:
14244
      (fname, ftype, fid) = iprot.readFieldBegin()
14245
      if ftype == TType.STOP:
14246
        break
14247
      if fid == 0:
14248
        if ftype == TType.BOOL:
14249
          self.success = iprot.readBool();
14250
        else:
14251
          iprot.skip(ftype)
14252
      else:
14253
        iprot.skip(ftype)
14254
      iprot.readFieldEnd()
14255
    iprot.readStructEnd()
14256
 
14257
  def write(self, oprot):
14258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14260
      return
14261
    oprot.writeStructBegin('deleteEntityTag_result')
14262
    if self.success is not None:
14263
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14264
      oprot.writeBool(self.success)
14265
      oprot.writeFieldEnd()
14266
    oprot.writeFieldStop()
14267
    oprot.writeStructEnd()
14268
 
14269
  def validate(self):
14270
    return
14271
 
14272
 
14273
  def __repr__(self):
14274
    L = ['%s=%r' % (key, value)
14275
      for key, value in self.__dict__.iteritems()]
14276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14277
 
14278
  def __eq__(self, other):
14279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14280
 
14281
  def __ne__(self, other):
14282
    return not (self == other)
14283
 
14284
class deleteTag_args:
14285
  """
14286
  Attributes:
14287
   - displayName
14288
  """
14289
 
14290
  thrift_spec = (
14291
    None, # 0
14292
    (1, TType.STRING, 'displayName', None, None, ), # 1
14293
  )
14294
 
14295
  def __init__(self, displayName=None,):
14296
    self.displayName = displayName
14297
 
14298
  def read(self, iprot):
14299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14301
      return
14302
    iprot.readStructBegin()
14303
    while True:
14304
      (fname, ftype, fid) = iprot.readFieldBegin()
14305
      if ftype == TType.STOP:
14306
        break
14307
      if fid == 1:
14308
        if ftype == TType.STRING:
14309
          self.displayName = iprot.readString();
14310
        else:
14311
          iprot.skip(ftype)
14312
      else:
14313
        iprot.skip(ftype)
14314
      iprot.readFieldEnd()
14315
    iprot.readStructEnd()
14316
 
14317
  def write(self, oprot):
14318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14320
      return
14321
    oprot.writeStructBegin('deleteTag_args')
14322
    if self.displayName is not None:
14323
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14324
      oprot.writeString(self.displayName)
14325
      oprot.writeFieldEnd()
14326
    oprot.writeFieldStop()
14327
    oprot.writeStructEnd()
14328
 
14329
  def validate(self):
14330
    return
14331
 
14332
 
14333
  def __repr__(self):
14334
    L = ['%s=%r' % (key, value)
14335
      for key, value in self.__dict__.iteritems()]
14336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14337
 
14338
  def __eq__(self, other):
14339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14340
 
14341
  def __ne__(self, other):
14342
    return not (self == other)
14343
 
14344
class deleteTag_result:
14345
  """
14346
  Attributes:
14347
   - success
14348
  """
14349
 
14350
  thrift_spec = (
14351
    (0, TType.BOOL, 'success', None, None, ), # 0
14352
  )
14353
 
14354
  def __init__(self, success=None,):
14355
    self.success = success
14356
 
14357
  def read(self, iprot):
14358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14360
      return
14361
    iprot.readStructBegin()
14362
    while True:
14363
      (fname, ftype, fid) = iprot.readFieldBegin()
14364
      if ftype == TType.STOP:
14365
        break
14366
      if fid == 0:
14367
        if ftype == TType.BOOL:
14368
          self.success = iprot.readBool();
14369
        else:
14370
          iprot.skip(ftype)
14371
      else:
14372
        iprot.skip(ftype)
14373
      iprot.readFieldEnd()
14374
    iprot.readStructEnd()
14375
 
14376
  def write(self, oprot):
14377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14379
      return
14380
    oprot.writeStructBegin('deleteTag_result')
14381
    if self.success is not None:
14382
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14383
      oprot.writeBool(self.success)
14384
      oprot.writeFieldEnd()
14385
    oprot.writeFieldStop()
14386
    oprot.writeStructEnd()
14387
 
14388
  def validate(self):
14389
    return
14390
 
14391
 
14392
  def __repr__(self):
14393
    L = ['%s=%r' % (key, value)
14394
      for key, value in self.__dict__.iteritems()]
14395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14396
 
14397
  def __eq__(self, other):
14398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14399
 
14400
  def __ne__(self, other):
14401
    return not (self == other)
14402
 
14403
class getAllTags_args:
14404
 
14405
  thrift_spec = (
14406
  )
14407
 
14408
  def read(self, iprot):
14409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14411
      return
14412
    iprot.readStructBegin()
14413
    while True:
14414
      (fname, ftype, fid) = iprot.readFieldBegin()
14415
      if ftype == TType.STOP:
14416
        break
14417
      else:
14418
        iprot.skip(ftype)
14419
      iprot.readFieldEnd()
14420
    iprot.readStructEnd()
14421
 
14422
  def write(self, oprot):
14423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14425
      return
14426
    oprot.writeStructBegin('getAllTags_args')
14427
    oprot.writeFieldStop()
14428
    oprot.writeStructEnd()
14429
 
14430
  def validate(self):
14431
    return
14432
 
14433
 
14434
  def __repr__(self):
14435
    L = ['%s=%r' % (key, value)
14436
      for key, value in self.__dict__.iteritems()]
14437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14438
 
14439
  def __eq__(self, other):
14440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14441
 
14442
  def __ne__(self, other):
14443
    return not (self == other)
14444
 
14445
class getAllTags_result:
14446
  """
14447
  Attributes:
14448
   - success
14449
  """
14450
 
14451
  thrift_spec = (
14452
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14453
  )
14454
 
14455
  def __init__(self, success=None,):
14456
    self.success = success
14457
 
14458
  def read(self, iprot):
14459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14461
      return
14462
    iprot.readStructBegin()
14463
    while True:
14464
      (fname, ftype, fid) = iprot.readFieldBegin()
14465
      if ftype == TType.STOP:
14466
        break
14467
      if fid == 0:
14468
        if ftype == TType.LIST:
14469
          self.success = []
12567 amit.gupta 14470
          (_etype177, _size174) = iprot.readListBegin()
14471
          for _i178 in xrange(_size174):
14472
            _elem179 = iprot.readString();
14473
            self.success.append(_elem179)
6512 kshitij.so 14474
          iprot.readListEnd()
14475
        else:
14476
          iprot.skip(ftype)
14477
      else:
14478
        iprot.skip(ftype)
14479
      iprot.readFieldEnd()
14480
    iprot.readStructEnd()
14481
 
14482
  def write(self, oprot):
14483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14485
      return
14486
    oprot.writeStructBegin('getAllTags_result')
14487
    if self.success is not None:
14488
      oprot.writeFieldBegin('success', TType.LIST, 0)
14489
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 14490
      for iter180 in self.success:
14491
        oprot.writeString(iter180)
6512 kshitij.so 14492
      oprot.writeListEnd()
14493
      oprot.writeFieldEnd()
14494
    oprot.writeFieldStop()
14495
    oprot.writeStructEnd()
14496
 
14497
  def validate(self):
14498
    return
14499
 
14500
 
14501
  def __repr__(self):
14502
    L = ['%s=%r' % (key, value)
14503
      for key, value in self.__dict__.iteritems()]
14504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14505
 
14506
  def __eq__(self, other):
14507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14508
 
14509
  def __ne__(self, other):
14510
    return not (self == other)
14511
 
14512
class getAllEntitiesByTagName_args:
14513
  """
14514
  Attributes:
14515
   - displayName
14516
  """
14517
 
14518
  thrift_spec = (
14519
    None, # 0
14520
    (1, TType.STRING, 'displayName', None, None, ), # 1
14521
  )
14522
 
14523
  def __init__(self, displayName=None,):
14524
    self.displayName = displayName
14525
 
14526
  def read(self, iprot):
14527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14529
      return
14530
    iprot.readStructBegin()
14531
    while True:
14532
      (fname, ftype, fid) = iprot.readFieldBegin()
14533
      if ftype == TType.STOP:
14534
        break
14535
      if fid == 1:
14536
        if ftype == TType.STRING:
14537
          self.displayName = iprot.readString();
14538
        else:
14539
          iprot.skip(ftype)
14540
      else:
14541
        iprot.skip(ftype)
14542
      iprot.readFieldEnd()
14543
    iprot.readStructEnd()
14544
 
14545
  def write(self, oprot):
14546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14548
      return
14549
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14550
    if self.displayName is not None:
14551
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14552
      oprot.writeString(self.displayName)
14553
      oprot.writeFieldEnd()
14554
    oprot.writeFieldStop()
14555
    oprot.writeStructEnd()
14556
 
14557
  def validate(self):
14558
    return
14559
 
14560
 
14561
  def __repr__(self):
14562
    L = ['%s=%r' % (key, value)
14563
      for key, value in self.__dict__.iteritems()]
14564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14565
 
14566
  def __eq__(self, other):
14567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14568
 
14569
  def __ne__(self, other):
14570
    return not (self == other)
14571
 
14572
class getAllEntitiesByTagName_result:
14573
  """
14574
  Attributes:
14575
   - success
14576
  """
14577
 
14578
  thrift_spec = (
14579
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14580
  )
14581
 
14582
  def __init__(self, success=None,):
14583
    self.success = success
14584
 
14585
  def read(self, iprot):
14586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14588
      return
14589
    iprot.readStructBegin()
14590
    while True:
14591
      (fname, ftype, fid) = iprot.readFieldBegin()
14592
      if ftype == TType.STOP:
14593
        break
14594
      if fid == 0:
14595
        if ftype == TType.LIST:
14596
          self.success = []
12567 amit.gupta 14597
          (_etype184, _size181) = iprot.readListBegin()
14598
          for _i185 in xrange(_size181):
14599
            _elem186 = iprot.readI64();
14600
            self.success.append(_elem186)
6512 kshitij.so 14601
          iprot.readListEnd()
14602
        else:
14603
          iprot.skip(ftype)
14604
      else:
14605
        iprot.skip(ftype)
14606
      iprot.readFieldEnd()
14607
    iprot.readStructEnd()
14608
 
14609
  def write(self, oprot):
14610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14612
      return
14613
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14614
    if self.success is not None:
14615
      oprot.writeFieldBegin('success', TType.LIST, 0)
14616
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 14617
      for iter187 in self.success:
14618
        oprot.writeI64(iter187)
6512 kshitij.so 14619
      oprot.writeListEnd()
14620
      oprot.writeFieldEnd()
14621
    oprot.writeFieldStop()
14622
    oprot.writeStructEnd()
14623
 
14624
  def validate(self):
14625
    return
14626
 
14627
 
14628
  def __repr__(self):
14629
    L = ['%s=%r' % (key, value)
14630
      for key, value in self.__dict__.iteritems()]
14631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14632
 
14633
  def __eq__(self, other):
14634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14635
 
14636
  def __ne__(self, other):
14637
    return not (self == other)
14638
 
6845 amit.gupta 14639
class getAllEntityTags_args:
14640
 
14641
  thrift_spec = (
14642
  )
14643
 
14644
  def read(self, iprot):
14645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14647
      return
14648
    iprot.readStructBegin()
14649
    while True:
14650
      (fname, ftype, fid) = iprot.readFieldBegin()
14651
      if ftype == TType.STOP:
14652
        break
14653
      else:
14654
        iprot.skip(ftype)
14655
      iprot.readFieldEnd()
14656
    iprot.readStructEnd()
14657
 
14658
  def write(self, oprot):
14659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14661
      return
14662
    oprot.writeStructBegin('getAllEntityTags_args')
14663
    oprot.writeFieldStop()
14664
    oprot.writeStructEnd()
14665
 
14666
  def validate(self):
14667
    return
14668
 
14669
 
14670
  def __repr__(self):
14671
    L = ['%s=%r' % (key, value)
14672
      for key, value in self.__dict__.iteritems()]
14673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14674
 
14675
  def __eq__(self, other):
14676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14677
 
14678
  def __ne__(self, other):
14679
    return not (self == other)
14680
 
14681
class getAllEntityTags_result:
14682
  """
14683
  Attributes:
14684
   - success
14685
  """
14686
 
14687
  thrift_spec = (
14688
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
14689
  )
14690
 
14691
  def __init__(self, success=None,):
14692
    self.success = success
14693
 
14694
  def read(self, iprot):
14695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14697
      return
14698
    iprot.readStructBegin()
14699
    while True:
14700
      (fname, ftype, fid) = iprot.readFieldBegin()
14701
      if ftype == TType.STOP:
14702
        break
14703
      if fid == 0:
14704
        if ftype == TType.MAP:
14705
          self.success = {}
12567 amit.gupta 14706
          (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin() 
14707
          for _i192 in xrange(_size188):
14708
            _key193 = iprot.readI64();
14709
            _val194 = []
14710
            (_etype198, _size195) = iprot.readListBegin()
14711
            for _i199 in xrange(_size195):
14712
              _elem200 = iprot.readString();
14713
              _val194.append(_elem200)
6845 amit.gupta 14714
            iprot.readListEnd()
12567 amit.gupta 14715
            self.success[_key193] = _val194
6845 amit.gupta 14716
          iprot.readMapEnd()
14717
        else:
14718
          iprot.skip(ftype)
14719
      else:
14720
        iprot.skip(ftype)
14721
      iprot.readFieldEnd()
14722
    iprot.readStructEnd()
14723
 
14724
  def write(self, oprot):
14725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14727
      return
14728
    oprot.writeStructBegin('getAllEntityTags_result')
14729
    if self.success is not None:
14730
      oprot.writeFieldBegin('success', TType.MAP, 0)
14731
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
12567 amit.gupta 14732
      for kiter201,viter202 in self.success.items():
14733
        oprot.writeI64(kiter201)
14734
        oprot.writeListBegin(TType.STRING, len(viter202))
14735
        for iter203 in viter202:
14736
          oprot.writeString(iter203)
6845 amit.gupta 14737
        oprot.writeListEnd()
14738
      oprot.writeMapEnd()
14739
      oprot.writeFieldEnd()
14740
    oprot.writeFieldStop()
14741
    oprot.writeStructEnd()
14742
 
14743
  def validate(self):
14744
    return
14745
 
14746
 
14747
  def __repr__(self):
14748
    L = ['%s=%r' % (key, value)
14749
      for key, value in self.__dict__.iteritems()]
14750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14751
 
14752
  def __eq__(self, other):
14753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14754
 
14755
  def __ne__(self, other):
14756
    return not (self == other)
14757
 
6850 kshitij.so 14758
class addBanner_args:
14759
  """
14760
  Attributes:
8590 kshitij.so 14761
   - bannerCongregate
6850 kshitij.so 14762
  """
14763
 
14764
  thrift_spec = (
14765
    None, # 0
8590 kshitij.so 14766
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 14767
  )
14768
 
8590 kshitij.so 14769
  def __init__(self, bannerCongregate=None,):
14770
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 14771
 
14772
  def read(self, iprot):
14773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14775
      return
14776
    iprot.readStructBegin()
14777
    while True:
14778
      (fname, ftype, fid) = iprot.readFieldBegin()
14779
      if ftype == TType.STOP:
14780
        break
14781
      if fid == 1:
8579 kshitij.so 14782
        if ftype == TType.STRUCT:
8590 kshitij.so 14783
          self.bannerCongregate = BannerCongregate()
14784
          self.bannerCongregate.read(iprot)
6850 kshitij.so 14785
        else:
14786
          iprot.skip(ftype)
8579 kshitij.so 14787
      else:
14788
        iprot.skip(ftype)
14789
      iprot.readFieldEnd()
14790
    iprot.readStructEnd()
14791
 
14792
  def write(self, oprot):
14793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14795
      return
14796
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 14797
    if self.bannerCongregate is not None:
14798
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
14799
      self.bannerCongregate.write(oprot)
8579 kshitij.so 14800
      oprot.writeFieldEnd()
14801
    oprot.writeFieldStop()
14802
    oprot.writeStructEnd()
14803
 
14804
  def validate(self):
14805
    return
14806
 
14807
 
14808
  def __repr__(self):
14809
    L = ['%s=%r' % (key, value)
14810
      for key, value in self.__dict__.iteritems()]
14811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14812
 
14813
  def __eq__(self, other):
14814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14815
 
14816
  def __ne__(self, other):
14817
    return not (self == other)
14818
 
14819
class addBanner_result:
10097 kshitij.so 14820
  """
14821
  Attributes:
14822
   - success
14823
  """
8579 kshitij.so 14824
 
14825
  thrift_spec = (
10097 kshitij.so 14826
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 14827
  )
14828
 
10097 kshitij.so 14829
  def __init__(self, success=None,):
14830
    self.success = success
14831
 
8579 kshitij.so 14832
  def read(self, iprot):
14833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14835
      return
14836
    iprot.readStructBegin()
14837
    while True:
14838
      (fname, ftype, fid) = iprot.readFieldBegin()
14839
      if ftype == TType.STOP:
14840
        break
10097 kshitij.so 14841
      if fid == 0:
14842
        if ftype == TType.BOOL:
14843
          self.success = iprot.readBool();
14844
        else:
14845
          iprot.skip(ftype)
8579 kshitij.so 14846
      else:
14847
        iprot.skip(ftype)
14848
      iprot.readFieldEnd()
14849
    iprot.readStructEnd()
14850
 
14851
  def write(self, oprot):
14852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14854
      return
14855
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 14856
    if self.success is not None:
14857
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14858
      oprot.writeBool(self.success)
14859
      oprot.writeFieldEnd()
8579 kshitij.so 14860
    oprot.writeFieldStop()
14861
    oprot.writeStructEnd()
14862
 
14863
  def validate(self):
14864
    return
14865
 
14866
 
14867
  def __repr__(self):
14868
    L = ['%s=%r' % (key, value)
14869
      for key, value in self.__dict__.iteritems()]
14870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14871
 
14872
  def __eq__(self, other):
14873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14874
 
14875
  def __ne__(self, other):
14876
    return not (self == other)
14877
 
14878
class updateBanner_args:
14879
  """
14880
  Attributes:
14881
   - banner
14882
  """
14883
 
14884
  thrift_spec = (
14885
    None, # 0
14886
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
14887
  )
14888
 
14889
  def __init__(self, banner=None,):
14890
    self.banner = banner
14891
 
14892
  def read(self, iprot):
14893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14895
      return
14896
    iprot.readStructBegin()
14897
    while True:
14898
      (fname, ftype, fid) = iprot.readFieldBegin()
14899
      if ftype == TType.STOP:
14900
        break
14901
      if fid == 1:
14902
        if ftype == TType.STRUCT:
14903
          self.banner = Banner()
14904
          self.banner.read(iprot)
6850 kshitij.so 14905
        else:
14906
          iprot.skip(ftype)
14907
      else:
14908
        iprot.skip(ftype)
14909
      iprot.readFieldEnd()
14910
    iprot.readStructEnd()
14911
 
14912
  def write(self, oprot):
14913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14915
      return
8579 kshitij.so 14916
    oprot.writeStructBegin('updateBanner_args')
14917
    if self.banner is not None:
14918
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
14919
      self.banner.write(oprot)
6850 kshitij.so 14920
      oprot.writeFieldEnd()
14921
    oprot.writeFieldStop()
14922
    oprot.writeStructEnd()
14923
 
14924
  def validate(self):
14925
    return
14926
 
14927
 
14928
  def __repr__(self):
14929
    L = ['%s=%r' % (key, value)
14930
      for key, value in self.__dict__.iteritems()]
14931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14932
 
14933
  def __eq__(self, other):
14934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14935
 
14936
  def __ne__(self, other):
14937
    return not (self == other)
14938
 
8579 kshitij.so 14939
class updateBanner_result:
6850 kshitij.so 14940
  """
14941
  Attributes:
14942
   - success
14943
  """
14944
 
14945
  thrift_spec = (
14946
    (0, TType.BOOL, 'success', None, None, ), # 0
14947
  )
14948
 
14949
  def __init__(self, success=None,):
14950
    self.success = success
14951
 
14952
  def read(self, iprot):
14953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14955
      return
14956
    iprot.readStructBegin()
14957
    while True:
14958
      (fname, ftype, fid) = iprot.readFieldBegin()
14959
      if ftype == TType.STOP:
14960
        break
14961
      if fid == 0:
14962
        if ftype == TType.BOOL:
14963
          self.success = iprot.readBool();
14964
        else:
14965
          iprot.skip(ftype)
14966
      else:
14967
        iprot.skip(ftype)
14968
      iprot.readFieldEnd()
14969
    iprot.readStructEnd()
14970
 
14971
  def write(self, oprot):
14972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14974
      return
8579 kshitij.so 14975
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 14976
    if self.success is not None:
14977
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14978
      oprot.writeBool(self.success)
14979
      oprot.writeFieldEnd()
14980
    oprot.writeFieldStop()
14981
    oprot.writeStructEnd()
14982
 
14983
  def validate(self):
14984
    return
14985
 
14986
 
14987
  def __repr__(self):
14988
    L = ['%s=%r' % (key, value)
14989
      for key, value in self.__dict__.iteritems()]
14990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14991
 
14992
  def __eq__(self, other):
14993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14994
 
14995
  def __ne__(self, other):
14996
    return not (self == other)
14997
 
14998
class getAllBanners_args:
14999
 
15000
  thrift_spec = (
15001
  )
15002
 
15003
  def read(self, iprot):
15004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15006
      return
15007
    iprot.readStructBegin()
15008
    while True:
15009
      (fname, ftype, fid) = iprot.readFieldBegin()
15010
      if ftype == TType.STOP:
15011
        break
15012
      else:
15013
        iprot.skip(ftype)
15014
      iprot.readFieldEnd()
15015
    iprot.readStructEnd()
15016
 
15017
  def write(self, oprot):
15018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15020
      return
15021
    oprot.writeStructBegin('getAllBanners_args')
15022
    oprot.writeFieldStop()
15023
    oprot.writeStructEnd()
15024
 
15025
  def validate(self):
15026
    return
15027
 
15028
 
15029
  def __repr__(self):
15030
    L = ['%s=%r' % (key, value)
15031
      for key, value in self.__dict__.iteritems()]
15032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15033
 
15034
  def __eq__(self, other):
15035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15036
 
15037
  def __ne__(self, other):
15038
    return not (self == other)
15039
 
15040
class getAllBanners_result:
15041
  """
15042
  Attributes:
15043
   - success
15044
  """
15045
 
15046
  thrift_spec = (
8579 kshitij.so 15047
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15048
  )
15049
 
15050
  def __init__(self, success=None,):
15051
    self.success = success
15052
 
15053
  def read(self, iprot):
15054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15056
      return
15057
    iprot.readStructBegin()
15058
    while True:
15059
      (fname, ftype, fid) = iprot.readFieldBegin()
15060
      if ftype == TType.STOP:
15061
        break
15062
      if fid == 0:
15063
        if ftype == TType.LIST:
15064
          self.success = []
12567 amit.gupta 15065
          (_etype207, _size204) = iprot.readListBegin()
15066
          for _i208 in xrange(_size204):
15067
            _elem209 = Banner()
15068
            _elem209.read(iprot)
15069
            self.success.append(_elem209)
6850 kshitij.so 15070
          iprot.readListEnd()
15071
        else:
15072
          iprot.skip(ftype)
15073
      else:
15074
        iprot.skip(ftype)
15075
      iprot.readFieldEnd()
15076
    iprot.readStructEnd()
15077
 
15078
  def write(self, oprot):
15079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15081
      return
15082
    oprot.writeStructBegin('getAllBanners_result')
15083
    if self.success is not None:
15084
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15085
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15086
      for iter210 in self.success:
15087
        iter210.write(oprot)
6850 kshitij.so 15088
      oprot.writeListEnd()
15089
      oprot.writeFieldEnd()
15090
    oprot.writeFieldStop()
15091
    oprot.writeStructEnd()
15092
 
15093
  def validate(self):
15094
    return
15095
 
15096
 
15097
  def __repr__(self):
15098
    L = ['%s=%r' % (key, value)
15099
      for key, value in self.__dict__.iteritems()]
15100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15101
 
15102
  def __eq__(self, other):
15103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15104
 
15105
  def __ne__(self, other):
15106
    return not (self == other)
15107
 
15108
class deleteBanner_args:
15109
  """
15110
  Attributes:
15111
   - bannerName
9155 kshitij.so 15112
   - bannerType
6850 kshitij.so 15113
  """
15114
 
15115
  thrift_spec = (
15116
    None, # 0
15117
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15118
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15119
  )
15120
 
9155 kshitij.so 15121
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15122
    self.bannerName = bannerName
9155 kshitij.so 15123
    self.bannerType = bannerType
6850 kshitij.so 15124
 
15125
  def read(self, iprot):
15126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15128
      return
15129
    iprot.readStructBegin()
15130
    while True:
15131
      (fname, ftype, fid) = iprot.readFieldBegin()
15132
      if ftype == TType.STOP:
15133
        break
15134
      if fid == 1:
15135
        if ftype == TType.STRING:
15136
          self.bannerName = iprot.readString();
15137
        else:
15138
          iprot.skip(ftype)
9155 kshitij.so 15139
      elif fid == 2:
15140
        if ftype == TType.I32:
15141
          self.bannerType = iprot.readI32();
15142
        else:
15143
          iprot.skip(ftype)
6850 kshitij.so 15144
      else:
15145
        iprot.skip(ftype)
15146
      iprot.readFieldEnd()
15147
    iprot.readStructEnd()
15148
 
15149
  def write(self, oprot):
15150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15152
      return
15153
    oprot.writeStructBegin('deleteBanner_args')
15154
    if self.bannerName is not None:
15155
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15156
      oprot.writeString(self.bannerName)
15157
      oprot.writeFieldEnd()
9155 kshitij.so 15158
    if self.bannerType is not None:
15159
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15160
      oprot.writeI32(self.bannerType)
15161
      oprot.writeFieldEnd()
6850 kshitij.so 15162
    oprot.writeFieldStop()
15163
    oprot.writeStructEnd()
15164
 
15165
  def validate(self):
15166
    return
15167
 
15168
 
15169
  def __repr__(self):
15170
    L = ['%s=%r' % (key, value)
15171
      for key, value in self.__dict__.iteritems()]
15172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15173
 
15174
  def __eq__(self, other):
15175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15176
 
15177
  def __ne__(self, other):
15178
    return not (self == other)
15179
 
15180
class deleteBanner_result:
15181
  """
15182
  Attributes:
15183
   - success
15184
  """
15185
 
15186
  thrift_spec = (
15187
    (0, TType.BOOL, 'success', None, None, ), # 0
15188
  )
15189
 
15190
  def __init__(self, success=None,):
15191
    self.success = success
15192
 
15193
  def read(self, iprot):
15194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15196
      return
15197
    iprot.readStructBegin()
15198
    while True:
15199
      (fname, ftype, fid) = iprot.readFieldBegin()
15200
      if ftype == TType.STOP:
15201
        break
15202
      if fid == 0:
15203
        if ftype == TType.BOOL:
15204
          self.success = iprot.readBool();
15205
        else:
15206
          iprot.skip(ftype)
15207
      else:
15208
        iprot.skip(ftype)
15209
      iprot.readFieldEnd()
15210
    iprot.readStructEnd()
15211
 
15212
  def write(self, oprot):
15213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15215
      return
15216
    oprot.writeStructBegin('deleteBanner_result')
15217
    if self.success is not None:
15218
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15219
      oprot.writeBool(self.success)
15220
      oprot.writeFieldEnd()
15221
    oprot.writeFieldStop()
15222
    oprot.writeStructEnd()
15223
 
15224
  def validate(self):
15225
    return
15226
 
15227
 
15228
  def __repr__(self):
15229
    L = ['%s=%r' % (key, value)
15230
      for key, value in self.__dict__.iteritems()]
15231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15232
 
15233
  def __eq__(self, other):
15234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15235
 
15236
  def __ne__(self, other):
15237
    return not (self == other)
15238
 
15239
class getBannerDetails_args:
15240
  """
15241
  Attributes:
15242
   - bannerName
9155 kshitij.so 15243
   - bannerType
6850 kshitij.so 15244
  """
15245
 
15246
  thrift_spec = (
15247
    None, # 0
15248
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15249
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15250
  )
15251
 
9155 kshitij.so 15252
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15253
    self.bannerName = bannerName
9155 kshitij.so 15254
    self.bannerType = bannerType
6850 kshitij.so 15255
 
15256
  def read(self, iprot):
15257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15259
      return
15260
    iprot.readStructBegin()
15261
    while True:
15262
      (fname, ftype, fid) = iprot.readFieldBegin()
15263
      if ftype == TType.STOP:
15264
        break
15265
      if fid == 1:
15266
        if ftype == TType.STRING:
15267
          self.bannerName = iprot.readString();
15268
        else:
15269
          iprot.skip(ftype)
9155 kshitij.so 15270
      elif fid == 2:
15271
        if ftype == TType.I32:
15272
          self.bannerType = iprot.readI32();
15273
        else:
15274
          iprot.skip(ftype)
6850 kshitij.so 15275
      else:
15276
        iprot.skip(ftype)
15277
      iprot.readFieldEnd()
15278
    iprot.readStructEnd()
15279
 
15280
  def write(self, oprot):
15281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15283
      return
15284
    oprot.writeStructBegin('getBannerDetails_args')
15285
    if self.bannerName is not None:
15286
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15287
      oprot.writeString(self.bannerName)
15288
      oprot.writeFieldEnd()
9155 kshitij.so 15289
    if self.bannerType is not None:
15290
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15291
      oprot.writeI32(self.bannerType)
15292
      oprot.writeFieldEnd()
6850 kshitij.so 15293
    oprot.writeFieldStop()
15294
    oprot.writeStructEnd()
15295
 
15296
  def validate(self):
15297
    return
15298
 
15299
 
15300
  def __repr__(self):
15301
    L = ['%s=%r' % (key, value)
15302
      for key, value in self.__dict__.iteritems()]
15303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15304
 
15305
  def __eq__(self, other):
15306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15307
 
15308
  def __ne__(self, other):
15309
    return not (self == other)
15310
 
15311
class getBannerDetails_result:
15312
  """
15313
  Attributes:
15314
   - success
15315
  """
15316
 
15317
  thrift_spec = (
15318
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15319
  )
15320
 
15321
  def __init__(self, success=None,):
15322
    self.success = success
15323
 
15324
  def read(self, iprot):
15325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15327
      return
15328
    iprot.readStructBegin()
15329
    while True:
15330
      (fname, ftype, fid) = iprot.readFieldBegin()
15331
      if ftype == TType.STOP:
15332
        break
15333
      if fid == 0:
15334
        if ftype == TType.STRUCT:
15335
          self.success = Banner()
15336
          self.success.read(iprot)
15337
        else:
15338
          iprot.skip(ftype)
15339
      else:
15340
        iprot.skip(ftype)
15341
      iprot.readFieldEnd()
15342
    iprot.readStructEnd()
15343
 
15344
  def write(self, oprot):
15345
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15346
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15347
      return
15348
    oprot.writeStructBegin('getBannerDetails_result')
15349
    if self.success is not None:
15350
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15351
      self.success.write(oprot)
15352
      oprot.writeFieldEnd()
15353
    oprot.writeFieldStop()
15354
    oprot.writeStructEnd()
15355
 
15356
  def validate(self):
15357
    return
15358
 
15359
 
15360
  def __repr__(self):
15361
    L = ['%s=%r' % (key, value)
15362
      for key, value in self.__dict__.iteritems()]
15363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15364
 
15365
  def __eq__(self, other):
15366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15367
 
15368
  def __ne__(self, other):
15369
    return not (self == other)
15370
 
15371
class getActiveBanners_args:
15372
 
15373
  thrift_spec = (
15374
  )
15375
 
15376
  def read(self, iprot):
15377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15379
      return
15380
    iprot.readStructBegin()
15381
    while True:
15382
      (fname, ftype, fid) = iprot.readFieldBegin()
15383
      if ftype == TType.STOP:
15384
        break
15385
      else:
15386
        iprot.skip(ftype)
15387
      iprot.readFieldEnd()
15388
    iprot.readStructEnd()
15389
 
15390
  def write(self, oprot):
15391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15393
      return
15394
    oprot.writeStructBegin('getActiveBanners_args')
15395
    oprot.writeFieldStop()
15396
    oprot.writeStructEnd()
15397
 
15398
  def validate(self):
15399
    return
15400
 
15401
 
15402
  def __repr__(self):
15403
    L = ['%s=%r' % (key, value)
15404
      for key, value in self.__dict__.iteritems()]
15405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15406
 
15407
  def __eq__(self, other):
15408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15409
 
15410
  def __ne__(self, other):
15411
    return not (self == other)
15412
 
15413
class getActiveBanners_result:
15414
  """
15415
  Attributes:
15416
   - success
15417
  """
15418
 
15419
  thrift_spec = (
8579 kshitij.so 15420
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15421
  )
15422
 
15423
  def __init__(self, success=None,):
15424
    self.success = success
15425
 
15426
  def read(self, iprot):
15427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15429
      return
15430
    iprot.readStructBegin()
15431
    while True:
15432
      (fname, ftype, fid) = iprot.readFieldBegin()
15433
      if ftype == TType.STOP:
15434
        break
15435
      if fid == 0:
8579 kshitij.so 15436
        if ftype == TType.MAP:
15437
          self.success = {}
12567 amit.gupta 15438
          (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() 
15439
          for _i215 in xrange(_size211):
15440
            _key216 = iprot.readString();
15441
            _val217 = []
15442
            (_etype221, _size218) = iprot.readListBegin()
15443
            for _i222 in xrange(_size218):
15444
              _elem223 = Banner()
15445
              _elem223.read(iprot)
15446
              _val217.append(_elem223)
8579 kshitij.so 15447
            iprot.readListEnd()
12567 amit.gupta 15448
            self.success[_key216] = _val217
8579 kshitij.so 15449
          iprot.readMapEnd()
6850 kshitij.so 15450
        else:
15451
          iprot.skip(ftype)
15452
      else:
15453
        iprot.skip(ftype)
15454
      iprot.readFieldEnd()
15455
    iprot.readStructEnd()
15456
 
15457
  def write(self, oprot):
15458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15460
      return
15461
    oprot.writeStructBegin('getActiveBanners_result')
15462
    if self.success is not None:
8579 kshitij.so 15463
      oprot.writeFieldBegin('success', TType.MAP, 0)
15464
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 15465
      for kiter224,viter225 in self.success.items():
15466
        oprot.writeString(kiter224)
15467
        oprot.writeListBegin(TType.STRUCT, len(viter225))
15468
        for iter226 in viter225:
15469
          iter226.write(oprot)
8579 kshitij.so 15470
        oprot.writeListEnd()
15471
      oprot.writeMapEnd()
6850 kshitij.so 15472
      oprot.writeFieldEnd()
15473
    oprot.writeFieldStop()
15474
    oprot.writeStructEnd()
15475
 
15476
  def validate(self):
15477
    return
15478
 
15479
 
15480
  def __repr__(self):
15481
    L = ['%s=%r' % (key, value)
15482
      for key, value in self.__dict__.iteritems()]
15483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15484
 
15485
  def __eq__(self, other):
15486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15487
 
15488
  def __ne__(self, other):
15489
    return not (self == other)
15490
 
6849 kshitij.so 15491
class addBannerMap_args:
15492
  """
15493
  Attributes:
8579 kshitij.so 15494
   - bannerMaps
6849 kshitij.so 15495
  """
15496
 
15497
  thrift_spec = (
15498
    None, # 0
8579 kshitij.so 15499
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15500
  )
15501
 
8579 kshitij.so 15502
  def __init__(self, bannerMaps=None,):
15503
    self.bannerMaps = bannerMaps
6849 kshitij.so 15504
 
15505
  def read(self, iprot):
15506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15508
      return
15509
    iprot.readStructBegin()
15510
    while True:
15511
      (fname, ftype, fid) = iprot.readFieldBegin()
15512
      if ftype == TType.STOP:
15513
        break
15514
      if fid == 1:
8579 kshitij.so 15515
        if ftype == TType.LIST:
15516
          self.bannerMaps = []
12567 amit.gupta 15517
          (_etype230, _size227) = iprot.readListBegin()
15518
          for _i231 in xrange(_size227):
15519
            _elem232 = BannerMap()
15520
            _elem232.read(iprot)
15521
            self.bannerMaps.append(_elem232)
8579 kshitij.so 15522
          iprot.readListEnd()
6849 kshitij.so 15523
        else:
15524
          iprot.skip(ftype)
8579 kshitij.so 15525
      else:
15526
        iprot.skip(ftype)
15527
      iprot.readFieldEnd()
15528
    iprot.readStructEnd()
15529
 
15530
  def write(self, oprot):
15531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15533
      return
15534
    oprot.writeStructBegin('addBannerMap_args')
15535
    if self.bannerMaps is not None:
15536
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15537
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
12567 amit.gupta 15538
      for iter233 in self.bannerMaps:
15539
        iter233.write(oprot)
8579 kshitij.so 15540
      oprot.writeListEnd()
15541
      oprot.writeFieldEnd()
15542
    oprot.writeFieldStop()
15543
    oprot.writeStructEnd()
15544
 
15545
  def validate(self):
15546
    return
15547
 
15548
 
15549
  def __repr__(self):
15550
    L = ['%s=%r' % (key, value)
15551
      for key, value in self.__dict__.iteritems()]
15552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15553
 
15554
  def __eq__(self, other):
15555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15556
 
15557
  def __ne__(self, other):
15558
    return not (self == other)
15559
 
15560
class addBannerMap_result:
15561
  """
15562
  Attributes:
15563
   - success
15564
  """
15565
 
15566
  thrift_spec = (
15567
    (0, TType.BOOL, 'success', None, None, ), # 0
15568
  )
15569
 
15570
  def __init__(self, success=None,):
15571
    self.success = success
15572
 
15573
  def read(self, iprot):
15574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15576
      return
15577
    iprot.readStructBegin()
15578
    while True:
15579
      (fname, ftype, fid) = iprot.readFieldBegin()
15580
      if ftype == TType.STOP:
15581
        break
15582
      if fid == 0:
15583
        if ftype == TType.BOOL:
15584
          self.success = iprot.readBool();
6849 kshitij.so 15585
        else:
15586
          iprot.skip(ftype)
8579 kshitij.so 15587
      else:
15588
        iprot.skip(ftype)
15589
      iprot.readFieldEnd()
15590
    iprot.readStructEnd()
15591
 
15592
  def write(self, oprot):
15593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15595
      return
15596
    oprot.writeStructBegin('addBannerMap_result')
15597
    if self.success is not None:
15598
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15599
      oprot.writeBool(self.success)
15600
      oprot.writeFieldEnd()
15601
    oprot.writeFieldStop()
15602
    oprot.writeStructEnd()
15603
 
15604
  def validate(self):
15605
    return
15606
 
15607
 
15608
  def __repr__(self):
15609
    L = ['%s=%r' % (key, value)
15610
      for key, value in self.__dict__.iteritems()]
15611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15612
 
15613
  def __eq__(self, other):
15614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15615
 
15616
  def __ne__(self, other):
15617
    return not (self == other)
15618
 
15619
class updateBannerMap_args:
15620
  """
15621
  Attributes:
15622
   - bannerMap
15623
  """
15624
 
15625
  thrift_spec = (
15626
    None, # 0
15627
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15628
  )
15629
 
15630
  def __init__(self, bannerMap=None,):
15631
    self.bannerMap = bannerMap
15632
 
15633
  def read(self, iprot):
15634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15636
      return
15637
    iprot.readStructBegin()
15638
    while True:
15639
      (fname, ftype, fid) = iprot.readFieldBegin()
15640
      if ftype == TType.STOP:
15641
        break
15642
      if fid == 1:
15643
        if ftype == TType.STRUCT:
15644
          self.bannerMap = BannerMap()
15645
          self.bannerMap.read(iprot)
6849 kshitij.so 15646
        else:
15647
          iprot.skip(ftype)
15648
      else:
15649
        iprot.skip(ftype)
15650
      iprot.readFieldEnd()
15651
    iprot.readStructEnd()
15652
 
15653
  def write(self, oprot):
15654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15656
      return
8579 kshitij.so 15657
    oprot.writeStructBegin('updateBannerMap_args')
15658
    if self.bannerMap is not None:
15659
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
15660
      self.bannerMap.write(oprot)
6849 kshitij.so 15661
      oprot.writeFieldEnd()
15662
    oprot.writeFieldStop()
15663
    oprot.writeStructEnd()
15664
 
15665
  def validate(self):
15666
    return
15667
 
15668
 
15669
  def __repr__(self):
15670
    L = ['%s=%r' % (key, value)
15671
      for key, value in self.__dict__.iteritems()]
15672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15673
 
15674
  def __eq__(self, other):
15675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15676
 
15677
  def __ne__(self, other):
15678
    return not (self == other)
15679
 
8579 kshitij.so 15680
class updateBannerMap_result:
6849 kshitij.so 15681
  """
15682
  Attributes:
15683
   - success
15684
  """
15685
 
15686
  thrift_spec = (
15687
    (0, TType.BOOL, 'success', None, None, ), # 0
15688
  )
15689
 
15690
  def __init__(self, success=None,):
15691
    self.success = success
15692
 
15693
  def read(self, iprot):
15694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15696
      return
15697
    iprot.readStructBegin()
15698
    while True:
15699
      (fname, ftype, fid) = iprot.readFieldBegin()
15700
      if ftype == TType.STOP:
15701
        break
15702
      if fid == 0:
15703
        if ftype == TType.BOOL:
15704
          self.success = iprot.readBool();
15705
        else:
15706
          iprot.skip(ftype)
15707
      else:
15708
        iprot.skip(ftype)
15709
      iprot.readFieldEnd()
15710
    iprot.readStructEnd()
15711
 
15712
  def write(self, oprot):
15713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15715
      return
8579 kshitij.so 15716
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 15717
    if self.success is not None:
15718
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15719
      oprot.writeBool(self.success)
15720
      oprot.writeFieldEnd()
15721
    oprot.writeFieldStop()
15722
    oprot.writeStructEnd()
15723
 
15724
  def validate(self):
15725
    return
15726
 
15727
 
15728
  def __repr__(self):
15729
    L = ['%s=%r' % (key, value)
15730
      for key, value in self.__dict__.iteritems()]
15731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15732
 
15733
  def __eq__(self, other):
15734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15735
 
15736
  def __ne__(self, other):
15737
    return not (self == other)
15738
 
15739
class deleteBannerMap_args:
15740
  """
15741
  Attributes:
15742
   - bannerName
15743
  """
15744
 
15745
  thrift_spec = (
15746
    None, # 0
15747
    (1, TType.STRING, 'bannerName', None, None, ), # 1
15748
  )
15749
 
15750
  def __init__(self, bannerName=None,):
15751
    self.bannerName = bannerName
15752
 
15753
  def read(self, iprot):
15754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15756
      return
15757
    iprot.readStructBegin()
15758
    while True:
15759
      (fname, ftype, fid) = iprot.readFieldBegin()
15760
      if ftype == TType.STOP:
15761
        break
15762
      if fid == 1:
15763
        if ftype == TType.STRING:
15764
          self.bannerName = iprot.readString();
15765
        else:
15766
          iprot.skip(ftype)
15767
      else:
15768
        iprot.skip(ftype)
15769
      iprot.readFieldEnd()
15770
    iprot.readStructEnd()
15771
 
15772
  def write(self, oprot):
15773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15775
      return
15776
    oprot.writeStructBegin('deleteBannerMap_args')
15777
    if self.bannerName is not None:
15778
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15779
      oprot.writeString(self.bannerName)
15780
      oprot.writeFieldEnd()
15781
    oprot.writeFieldStop()
15782
    oprot.writeStructEnd()
15783
 
15784
  def validate(self):
15785
    return
15786
 
15787
 
15788
  def __repr__(self):
15789
    L = ['%s=%r' % (key, value)
15790
      for key, value in self.__dict__.iteritems()]
15791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15792
 
15793
  def __eq__(self, other):
15794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15795
 
15796
  def __ne__(self, other):
15797
    return not (self == other)
15798
 
15799
class deleteBannerMap_result:
15800
  """
15801
  Attributes:
15802
   - success
15803
  """
15804
 
15805
  thrift_spec = (
15806
    (0, TType.BOOL, 'success', None, None, ), # 0
15807
  )
15808
 
15809
  def __init__(self, success=None,):
15810
    self.success = success
15811
 
15812
  def read(self, iprot):
15813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15815
      return
15816
    iprot.readStructBegin()
15817
    while True:
15818
      (fname, ftype, fid) = iprot.readFieldBegin()
15819
      if ftype == TType.STOP:
15820
        break
15821
      if fid == 0:
15822
        if ftype == TType.BOOL:
15823
          self.success = iprot.readBool();
15824
        else:
15825
          iprot.skip(ftype)
15826
      else:
15827
        iprot.skip(ftype)
15828
      iprot.readFieldEnd()
15829
    iprot.readStructEnd()
15830
 
15831
  def write(self, oprot):
15832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15834
      return
15835
    oprot.writeStructBegin('deleteBannerMap_result')
15836
    if self.success is not None:
15837
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15838
      oprot.writeBool(self.success)
15839
      oprot.writeFieldEnd()
15840
    oprot.writeFieldStop()
15841
    oprot.writeStructEnd()
15842
 
15843
  def validate(self):
15844
    return
15845
 
15846
 
15847
  def __repr__(self):
15848
    L = ['%s=%r' % (key, value)
15849
      for key, value in self.__dict__.iteritems()]
15850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15851
 
15852
  def __eq__(self, other):
15853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15854
 
15855
  def __ne__(self, other):
15856
    return not (self == other)
15857
 
15858
class getBannerMapDetails_args:
15859
  """
15860
  Attributes:
15861
   - bannerName
9155 kshitij.so 15862
   - bannerType
6849 kshitij.so 15863
  """
15864
 
15865
  thrift_spec = (
15866
    None, # 0
15867
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15868
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 15869
  )
15870
 
9155 kshitij.so 15871
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 15872
    self.bannerName = bannerName
9155 kshitij.so 15873
    self.bannerType = bannerType
6849 kshitij.so 15874
 
15875
  def read(self, iprot):
15876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15878
      return
15879
    iprot.readStructBegin()
15880
    while True:
15881
      (fname, ftype, fid) = iprot.readFieldBegin()
15882
      if ftype == TType.STOP:
15883
        break
15884
      if fid == 1:
15885
        if ftype == TType.STRING:
15886
          self.bannerName = iprot.readString();
15887
        else:
15888
          iprot.skip(ftype)
9155 kshitij.so 15889
      elif fid == 2:
15890
        if ftype == TType.I32:
15891
          self.bannerType = iprot.readI32();
15892
        else:
15893
          iprot.skip(ftype)
6849 kshitij.so 15894
      else:
15895
        iprot.skip(ftype)
15896
      iprot.readFieldEnd()
15897
    iprot.readStructEnd()
15898
 
15899
  def write(self, oprot):
15900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15902
      return
15903
    oprot.writeStructBegin('getBannerMapDetails_args')
15904
    if self.bannerName is not None:
15905
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15906
      oprot.writeString(self.bannerName)
15907
      oprot.writeFieldEnd()
9155 kshitij.so 15908
    if self.bannerType is not None:
15909
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15910
      oprot.writeI32(self.bannerType)
15911
      oprot.writeFieldEnd()
6849 kshitij.so 15912
    oprot.writeFieldStop()
15913
    oprot.writeStructEnd()
15914
 
15915
  def validate(self):
15916
    return
15917
 
15918
 
15919
  def __repr__(self):
15920
    L = ['%s=%r' % (key, value)
15921
      for key, value in self.__dict__.iteritems()]
15922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15923
 
15924
  def __eq__(self, other):
15925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15926
 
15927
  def __ne__(self, other):
15928
    return not (self == other)
15929
 
15930
class getBannerMapDetails_result:
15931
  """
15932
  Attributes:
15933
   - success
15934
  """
15935
 
15936
  thrift_spec = (
15937
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
15938
  )
15939
 
15940
  def __init__(self, success=None,):
15941
    self.success = success
15942
 
15943
  def read(self, iprot):
15944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15946
      return
15947
    iprot.readStructBegin()
15948
    while True:
15949
      (fname, ftype, fid) = iprot.readFieldBegin()
15950
      if ftype == TType.STOP:
15951
        break
15952
      if fid == 0:
15953
        if ftype == TType.LIST:
15954
          self.success = []
12567 amit.gupta 15955
          (_etype237, _size234) = iprot.readListBegin()
15956
          for _i238 in xrange(_size234):
15957
            _elem239 = BannerMap()
15958
            _elem239.read(iprot)
15959
            self.success.append(_elem239)
6849 kshitij.so 15960
          iprot.readListEnd()
15961
        else:
15962
          iprot.skip(ftype)
15963
      else:
15964
        iprot.skip(ftype)
15965
      iprot.readFieldEnd()
15966
    iprot.readStructEnd()
15967
 
15968
  def write(self, oprot):
15969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15971
      return
15972
    oprot.writeStructBegin('getBannerMapDetails_result')
15973
    if self.success is not None:
15974
      oprot.writeFieldBegin('success', TType.LIST, 0)
15975
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15976
      for iter240 in self.success:
15977
        iter240.write(oprot)
6849 kshitij.so 15978
      oprot.writeListEnd()
15979
      oprot.writeFieldEnd()
15980
    oprot.writeFieldStop()
15981
    oprot.writeStructEnd()
15982
 
15983
  def validate(self):
15984
    return
15985
 
15986
 
15987
  def __repr__(self):
15988
    L = ['%s=%r' % (key, value)
15989
      for key, value in self.__dict__.iteritems()]
15990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15991
 
15992
  def __eq__(self, other):
15993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15994
 
15995
  def __ne__(self, other):
15996
    return not (self == other)
15997
 
8579 kshitij.so 15998
class addBannerUri_args:
15999
  """
16000
  Attributes:
16001
   - bannerUriMappings
16002
  """
16003
 
16004
  thrift_spec = (
16005
    None, # 0
16006
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
16007
  )
16008
 
16009
  def __init__(self, bannerUriMappings=None,):
16010
    self.bannerUriMappings = bannerUriMappings
16011
 
16012
  def read(self, iprot):
16013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16015
      return
16016
    iprot.readStructBegin()
16017
    while True:
16018
      (fname, ftype, fid) = iprot.readFieldBegin()
16019
      if ftype == TType.STOP:
16020
        break
16021
      if fid == 1:
16022
        if ftype == TType.LIST:
16023
          self.bannerUriMappings = []
12567 amit.gupta 16024
          (_etype244, _size241) = iprot.readListBegin()
16025
          for _i245 in xrange(_size241):
16026
            _elem246 = BannerUriMapping()
16027
            _elem246.read(iprot)
16028
            self.bannerUriMappings.append(_elem246)
8579 kshitij.so 16029
          iprot.readListEnd()
16030
        else:
16031
          iprot.skip(ftype)
16032
      else:
16033
        iprot.skip(ftype)
16034
      iprot.readFieldEnd()
16035
    iprot.readStructEnd()
16036
 
16037
  def write(self, oprot):
16038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16040
      return
16041
    oprot.writeStructBegin('addBannerUri_args')
16042
    if self.bannerUriMappings is not None:
16043
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16044
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
12567 amit.gupta 16045
      for iter247 in self.bannerUriMappings:
16046
        iter247.write(oprot)
8579 kshitij.so 16047
      oprot.writeListEnd()
16048
      oprot.writeFieldEnd()
16049
    oprot.writeFieldStop()
16050
    oprot.writeStructEnd()
16051
 
16052
  def validate(self):
16053
    return
16054
 
16055
 
16056
  def __repr__(self):
16057
    L = ['%s=%r' % (key, value)
16058
      for key, value in self.__dict__.iteritems()]
16059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16060
 
16061
  def __eq__(self, other):
16062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16063
 
16064
  def __ne__(self, other):
16065
    return not (self == other)
16066
 
16067
class addBannerUri_result:
16068
 
16069
  thrift_spec = (
16070
  )
16071
 
16072
  def read(self, iprot):
16073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16075
      return
16076
    iprot.readStructBegin()
16077
    while True:
16078
      (fname, ftype, fid) = iprot.readFieldBegin()
16079
      if ftype == TType.STOP:
16080
        break
16081
      else:
16082
        iprot.skip(ftype)
16083
      iprot.readFieldEnd()
16084
    iprot.readStructEnd()
16085
 
16086
  def write(self, oprot):
16087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16089
      return
16090
    oprot.writeStructBegin('addBannerUri_result')
16091
    oprot.writeFieldStop()
16092
    oprot.writeStructEnd()
16093
 
16094
  def validate(self):
16095
    return
16096
 
16097
 
16098
  def __repr__(self):
16099
    L = ['%s=%r' % (key, value)
16100
      for key, value in self.__dict__.iteritems()]
16101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16102
 
16103
  def __eq__(self, other):
16104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16105
 
16106
  def __ne__(self, other):
16107
    return not (self == other)
16108
 
16109
class getUriMapping_args:
16110
  """
16111
  Attributes:
16112
   - bannerName
9155 kshitij.so 16113
   - bannerType
8579 kshitij.so 16114
  """
16115
 
16116
  thrift_spec = (
16117
    None, # 0
16118
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16119
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16120
  )
16121
 
9155 kshitij.so 16122
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16123
    self.bannerName = bannerName
9155 kshitij.so 16124
    self.bannerType = bannerType
8579 kshitij.so 16125
 
16126
  def read(self, iprot):
16127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16129
      return
16130
    iprot.readStructBegin()
16131
    while True:
16132
      (fname, ftype, fid) = iprot.readFieldBegin()
16133
      if ftype == TType.STOP:
16134
        break
16135
      if fid == 1:
16136
        if ftype == TType.STRING:
16137
          self.bannerName = iprot.readString();
16138
        else:
16139
          iprot.skip(ftype)
9155 kshitij.so 16140
      elif fid == 2:
16141
        if ftype == TType.I32:
16142
          self.bannerType = iprot.readI32();
16143
        else:
16144
          iprot.skip(ftype)
8579 kshitij.so 16145
      else:
16146
        iprot.skip(ftype)
16147
      iprot.readFieldEnd()
16148
    iprot.readStructEnd()
16149
 
16150
  def write(self, oprot):
16151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16153
      return
16154
    oprot.writeStructBegin('getUriMapping_args')
16155
    if self.bannerName is not None:
16156
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16157
      oprot.writeString(self.bannerName)
16158
      oprot.writeFieldEnd()
9155 kshitij.so 16159
    if self.bannerType is not None:
16160
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16161
      oprot.writeI32(self.bannerType)
16162
      oprot.writeFieldEnd()
8579 kshitij.so 16163
    oprot.writeFieldStop()
16164
    oprot.writeStructEnd()
16165
 
16166
  def validate(self):
16167
    return
16168
 
16169
 
16170
  def __repr__(self):
16171
    L = ['%s=%r' % (key, value)
16172
      for key, value in self.__dict__.iteritems()]
16173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16174
 
16175
  def __eq__(self, other):
16176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16177
 
16178
  def __ne__(self, other):
16179
    return not (self == other)
16180
 
16181
class getUriMapping_result:
16182
  """
16183
  Attributes:
16184
   - success
16185
  """
16186
 
16187
  thrift_spec = (
16188
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16189
  )
16190
 
16191
  def __init__(self, success=None,):
16192
    self.success = success
16193
 
16194
  def read(self, iprot):
16195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16197
      return
16198
    iprot.readStructBegin()
16199
    while True:
16200
      (fname, ftype, fid) = iprot.readFieldBegin()
16201
      if ftype == TType.STOP:
16202
        break
16203
      if fid == 0:
16204
        if ftype == TType.LIST:
16205
          self.success = []
12567 amit.gupta 16206
          (_etype251, _size248) = iprot.readListBegin()
16207
          for _i252 in xrange(_size248):
16208
            _elem253 = BannerUriMapping()
16209
            _elem253.read(iprot)
16210
            self.success.append(_elem253)
8579 kshitij.so 16211
          iprot.readListEnd()
16212
        else:
16213
          iprot.skip(ftype)
16214
      else:
16215
        iprot.skip(ftype)
16216
      iprot.readFieldEnd()
16217
    iprot.readStructEnd()
16218
 
16219
  def write(self, oprot):
16220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16222
      return
16223
    oprot.writeStructBegin('getUriMapping_result')
16224
    if self.success is not None:
16225
      oprot.writeFieldBegin('success', TType.LIST, 0)
16226
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16227
      for iter254 in self.success:
16228
        iter254.write(oprot)
8579 kshitij.so 16229
      oprot.writeListEnd()
16230
      oprot.writeFieldEnd()
16231
    oprot.writeFieldStop()
16232
    oprot.writeStructEnd()
16233
 
16234
  def validate(self):
16235
    return
16236
 
16237
 
16238
  def __repr__(self):
16239
    L = ['%s=%r' % (key, value)
16240
      for key, value in self.__dict__.iteritems()]
16241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16242
 
16243
  def __eq__(self, other):
16244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16245
 
16246
  def __ne__(self, other):
16247
    return not (self == other)
16248
 
16249
class addCampaign_args:
16250
  """
16251
  Attributes:
16252
   - campaign
16253
  """
16254
 
16255
  thrift_spec = (
16256
    None, # 0
16257
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16258
  )
16259
 
16260
  def __init__(self, campaign=None,):
16261
    self.campaign = campaign
16262
 
16263
  def read(self, iprot):
16264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16266
      return
16267
    iprot.readStructBegin()
16268
    while True:
16269
      (fname, ftype, fid) = iprot.readFieldBegin()
16270
      if ftype == TType.STOP:
16271
        break
16272
      if fid == 1:
16273
        if ftype == TType.STRUCT:
16274
          self.campaign = Campaign()
16275
          self.campaign.read(iprot)
16276
        else:
16277
          iprot.skip(ftype)
16278
      else:
16279
        iprot.skip(ftype)
16280
      iprot.readFieldEnd()
16281
    iprot.readStructEnd()
16282
 
16283
  def write(self, oprot):
16284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16286
      return
16287
    oprot.writeStructBegin('addCampaign_args')
16288
    if self.campaign is not None:
16289
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16290
      self.campaign.write(oprot)
16291
      oprot.writeFieldEnd()
16292
    oprot.writeFieldStop()
16293
    oprot.writeStructEnd()
16294
 
16295
  def validate(self):
16296
    return
16297
 
16298
 
16299
  def __repr__(self):
16300
    L = ['%s=%r' % (key, value)
16301
      for key, value in self.__dict__.iteritems()]
16302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16303
 
16304
  def __eq__(self, other):
16305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16306
 
16307
  def __ne__(self, other):
16308
    return not (self == other)
16309
 
16310
class addCampaign_result:
16311
 
16312
  thrift_spec = (
16313
  )
16314
 
16315
  def read(self, iprot):
16316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16318
      return
16319
    iprot.readStructBegin()
16320
    while True:
16321
      (fname, ftype, fid) = iprot.readFieldBegin()
16322
      if ftype == TType.STOP:
16323
        break
16324
      else:
16325
        iprot.skip(ftype)
16326
      iprot.readFieldEnd()
16327
    iprot.readStructEnd()
16328
 
16329
  def write(self, oprot):
16330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16332
      return
16333
    oprot.writeStructBegin('addCampaign_result')
16334
    oprot.writeFieldStop()
16335
    oprot.writeStructEnd()
16336
 
16337
  def validate(self):
16338
    return
16339
 
16340
 
16341
  def __repr__(self):
16342
    L = ['%s=%r' % (key, value)
16343
      for key, value in self.__dict__.iteritems()]
16344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16345
 
16346
  def __eq__(self, other):
16347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16348
 
16349
  def __ne__(self, other):
16350
    return not (self == other)
16351
 
16352
class getCampaigns_args:
16353
  """
16354
  Attributes:
16355
   - campaignName
16356
  """
16357
 
16358
  thrift_spec = (
16359
    None, # 0
16360
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16361
  )
16362
 
16363
  def __init__(self, campaignName=None,):
16364
    self.campaignName = campaignName
16365
 
16366
  def read(self, iprot):
16367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16369
      return
16370
    iprot.readStructBegin()
16371
    while True:
16372
      (fname, ftype, fid) = iprot.readFieldBegin()
16373
      if ftype == TType.STOP:
16374
        break
16375
      if fid == 1:
16376
        if ftype == TType.STRING:
16377
          self.campaignName = iprot.readString();
16378
        else:
16379
          iprot.skip(ftype)
16380
      else:
16381
        iprot.skip(ftype)
16382
      iprot.readFieldEnd()
16383
    iprot.readStructEnd()
16384
 
16385
  def write(self, oprot):
16386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16388
      return
16389
    oprot.writeStructBegin('getCampaigns_args')
16390
    if self.campaignName is not None:
16391
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16392
      oprot.writeString(self.campaignName)
16393
      oprot.writeFieldEnd()
16394
    oprot.writeFieldStop()
16395
    oprot.writeStructEnd()
16396
 
16397
  def validate(self):
16398
    return
16399
 
16400
 
16401
  def __repr__(self):
16402
    L = ['%s=%r' % (key, value)
16403
      for key, value in self.__dict__.iteritems()]
16404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16405
 
16406
  def __eq__(self, other):
16407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16408
 
16409
  def __ne__(self, other):
16410
    return not (self == other)
16411
 
16412
class getCampaigns_result:
16413
  """
16414
  Attributes:
16415
   - success
16416
  """
16417
 
16418
  thrift_spec = (
16419
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16420
  )
16421
 
16422
  def __init__(self, success=None,):
16423
    self.success = success
16424
 
16425
  def read(self, iprot):
16426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16428
      return
16429
    iprot.readStructBegin()
16430
    while True:
16431
      (fname, ftype, fid) = iprot.readFieldBegin()
16432
      if ftype == TType.STOP:
16433
        break
16434
      if fid == 0:
16435
        if ftype == TType.LIST:
16436
          self.success = []
12567 amit.gupta 16437
          (_etype258, _size255) = iprot.readListBegin()
16438
          for _i259 in xrange(_size255):
16439
            _elem260 = Campaign()
16440
            _elem260.read(iprot)
16441
            self.success.append(_elem260)
8579 kshitij.so 16442
          iprot.readListEnd()
16443
        else:
16444
          iprot.skip(ftype)
16445
      else:
16446
        iprot.skip(ftype)
16447
      iprot.readFieldEnd()
16448
    iprot.readStructEnd()
16449
 
16450
  def write(self, oprot):
16451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16453
      return
16454
    oprot.writeStructBegin('getCampaigns_result')
16455
    if self.success is not None:
16456
      oprot.writeFieldBegin('success', TType.LIST, 0)
16457
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16458
      for iter261 in self.success:
16459
        iter261.write(oprot)
8579 kshitij.so 16460
      oprot.writeListEnd()
16461
      oprot.writeFieldEnd()
16462
    oprot.writeFieldStop()
16463
    oprot.writeStructEnd()
16464
 
16465
  def validate(self):
16466
    return
16467
 
16468
 
16469
  def __repr__(self):
16470
    L = ['%s=%r' % (key, value)
16471
      for key, value in self.__dict__.iteritems()]
16472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16473
 
16474
  def __eq__(self, other):
16475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16476
 
16477
  def __ne__(self, other):
16478
    return not (self == other)
16479
 
16480
class deleteCampaign_args:
16481
  """
16482
  Attributes:
16483
   - campaignId
16484
  """
16485
 
16486
  thrift_spec = (
16487
    None, # 0
16488
    (1, TType.I64, 'campaignId', None, None, ), # 1
16489
  )
16490
 
16491
  def __init__(self, campaignId=None,):
16492
    self.campaignId = campaignId
16493
 
16494
  def read(self, iprot):
16495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16497
      return
16498
    iprot.readStructBegin()
16499
    while True:
16500
      (fname, ftype, fid) = iprot.readFieldBegin()
16501
      if ftype == TType.STOP:
16502
        break
16503
      if fid == 1:
16504
        if ftype == TType.I64:
16505
          self.campaignId = iprot.readI64();
16506
        else:
16507
          iprot.skip(ftype)
16508
      else:
16509
        iprot.skip(ftype)
16510
      iprot.readFieldEnd()
16511
    iprot.readStructEnd()
16512
 
16513
  def write(self, oprot):
16514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16516
      return
16517
    oprot.writeStructBegin('deleteCampaign_args')
16518
    if self.campaignId is not None:
16519
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16520
      oprot.writeI64(self.campaignId)
16521
      oprot.writeFieldEnd()
16522
    oprot.writeFieldStop()
16523
    oprot.writeStructEnd()
16524
 
16525
  def validate(self):
16526
    return
16527
 
16528
 
16529
  def __repr__(self):
16530
    L = ['%s=%r' % (key, value)
16531
      for key, value in self.__dict__.iteritems()]
16532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16533
 
16534
  def __eq__(self, other):
16535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16536
 
16537
  def __ne__(self, other):
16538
    return not (self == other)
16539
 
16540
class deleteCampaign_result:
16541
 
16542
  thrift_spec = (
16543
  )
16544
 
16545
  def read(self, iprot):
16546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16548
      return
16549
    iprot.readStructBegin()
16550
    while True:
16551
      (fname, ftype, fid) = iprot.readFieldBegin()
16552
      if ftype == TType.STOP:
16553
        break
16554
      else:
16555
        iprot.skip(ftype)
16556
      iprot.readFieldEnd()
16557
    iprot.readStructEnd()
16558
 
16559
  def write(self, oprot):
16560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16562
      return
16563
    oprot.writeStructBegin('deleteCampaign_result')
16564
    oprot.writeFieldStop()
16565
    oprot.writeStructEnd()
16566
 
16567
  def validate(self):
16568
    return
16569
 
16570
 
16571
  def __repr__(self):
16572
    L = ['%s=%r' % (key, value)
16573
      for key, value in self.__dict__.iteritems()]
16574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16575
 
16576
  def __eq__(self, other):
16577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16578
 
16579
  def __ne__(self, other):
16580
    return not (self == other)
16581
 
16582
class getAllCampaigns_args:
16583
 
16584
  thrift_spec = (
16585
  )
16586
 
16587
  def read(self, iprot):
16588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16590
      return
16591
    iprot.readStructBegin()
16592
    while True:
16593
      (fname, ftype, fid) = iprot.readFieldBegin()
16594
      if ftype == TType.STOP:
16595
        break
16596
      else:
16597
        iprot.skip(ftype)
16598
      iprot.readFieldEnd()
16599
    iprot.readStructEnd()
16600
 
16601
  def write(self, oprot):
16602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16604
      return
16605
    oprot.writeStructBegin('getAllCampaigns_args')
16606
    oprot.writeFieldStop()
16607
    oprot.writeStructEnd()
16608
 
16609
  def validate(self):
16610
    return
16611
 
16612
 
16613
  def __repr__(self):
16614
    L = ['%s=%r' % (key, value)
16615
      for key, value in self.__dict__.iteritems()]
16616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16617
 
16618
  def __eq__(self, other):
16619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16620
 
16621
  def __ne__(self, other):
16622
    return not (self == other)
16623
 
16624
class getAllCampaigns_result:
16625
  """
16626
  Attributes:
16627
   - success
16628
  """
16629
 
16630
  thrift_spec = (
16631
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16632
  )
16633
 
16634
  def __init__(self, success=None,):
16635
    self.success = success
16636
 
16637
  def read(self, iprot):
16638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16640
      return
16641
    iprot.readStructBegin()
16642
    while True:
16643
      (fname, ftype, fid) = iprot.readFieldBegin()
16644
      if ftype == TType.STOP:
16645
        break
16646
      if fid == 0:
16647
        if ftype == TType.LIST:
16648
          self.success = []
12567 amit.gupta 16649
          (_etype265, _size262) = iprot.readListBegin()
16650
          for _i266 in xrange(_size262):
16651
            _elem267 = iprot.readString();
16652
            self.success.append(_elem267)
8579 kshitij.so 16653
          iprot.readListEnd()
16654
        else:
16655
          iprot.skip(ftype)
16656
      else:
16657
        iprot.skip(ftype)
16658
      iprot.readFieldEnd()
16659
    iprot.readStructEnd()
16660
 
16661
  def write(self, oprot):
16662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16664
      return
16665
    oprot.writeStructBegin('getAllCampaigns_result')
16666
    if self.success is not None:
16667
      oprot.writeFieldBegin('success', TType.LIST, 0)
16668
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 16669
      for iter268 in self.success:
16670
        oprot.writeString(iter268)
8579 kshitij.so 16671
      oprot.writeListEnd()
16672
      oprot.writeFieldEnd()
16673
    oprot.writeFieldStop()
16674
    oprot.writeStructEnd()
16675
 
16676
  def validate(self):
16677
    return
16678
 
16679
 
16680
  def __repr__(self):
16681
    L = ['%s=%r' % (key, value)
16682
      for key, value in self.__dict__.iteritems()]
16683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16684
 
16685
  def __eq__(self, other):
16686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16687
 
16688
  def __ne__(self, other):
16689
    return not (self == other)
16690
 
9155 kshitij.so 16691
class getActiveBannersForMobileSite_args:
16692
 
16693
  thrift_spec = (
16694
  )
16695
 
16696
  def read(self, iprot):
16697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16699
      return
16700
    iprot.readStructBegin()
16701
    while True:
16702
      (fname, ftype, fid) = iprot.readFieldBegin()
16703
      if ftype == TType.STOP:
16704
        break
16705
      else:
16706
        iprot.skip(ftype)
16707
      iprot.readFieldEnd()
16708
    iprot.readStructEnd()
16709
 
16710
  def write(self, oprot):
16711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16713
      return
16714
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
16715
    oprot.writeFieldStop()
16716
    oprot.writeStructEnd()
16717
 
16718
  def validate(self):
16719
    return
16720
 
16721
 
16722
  def __repr__(self):
16723
    L = ['%s=%r' % (key, value)
16724
      for key, value in self.__dict__.iteritems()]
16725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16726
 
16727
  def __eq__(self, other):
16728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16729
 
16730
  def __ne__(self, other):
16731
    return not (self == other)
16732
 
16733
class getActiveBannersForMobileSite_result:
16734
  """
16735
  Attributes:
16736
   - success
16737
  """
16738
 
16739
  thrift_spec = (
16740
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
16741
  )
16742
 
16743
  def __init__(self, success=None,):
16744
    self.success = success
16745
 
16746
  def read(self, iprot):
16747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16749
      return
16750
    iprot.readStructBegin()
16751
    while True:
16752
      (fname, ftype, fid) = iprot.readFieldBegin()
16753
      if ftype == TType.STOP:
16754
        break
16755
      if fid == 0:
16756
        if ftype == TType.MAP:
16757
          self.success = {}
12567 amit.gupta 16758
          (_ktype270, _vtype271, _size269 ) = iprot.readMapBegin() 
16759
          for _i273 in xrange(_size269):
16760
            _key274 = iprot.readString();
16761
            _val275 = []
16762
            (_etype279, _size276) = iprot.readListBegin()
16763
            for _i280 in xrange(_size276):
16764
              _elem281 = Banner()
16765
              _elem281.read(iprot)
16766
              _val275.append(_elem281)
9155 kshitij.so 16767
            iprot.readListEnd()
12567 amit.gupta 16768
            self.success[_key274] = _val275
9155 kshitij.so 16769
          iprot.readMapEnd()
16770
        else:
16771
          iprot.skip(ftype)
16772
      else:
16773
        iprot.skip(ftype)
16774
      iprot.readFieldEnd()
16775
    iprot.readStructEnd()
16776
 
16777
  def write(self, oprot):
16778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16780
      return
16781
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
16782
    if self.success is not None:
16783
      oprot.writeFieldBegin('success', TType.MAP, 0)
16784
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 16785
      for kiter282,viter283 in self.success.items():
16786
        oprot.writeString(kiter282)
16787
        oprot.writeListBegin(TType.STRUCT, len(viter283))
16788
        for iter284 in viter283:
16789
          iter284.write(oprot)
9155 kshitij.so 16790
        oprot.writeListEnd()
16791
      oprot.writeMapEnd()
16792
      oprot.writeFieldEnd()
16793
    oprot.writeFieldStop()
16794
    oprot.writeStructEnd()
16795
 
16796
  def validate(self):
16797
    return
16798
 
16799
 
16800
  def __repr__(self):
16801
    L = ['%s=%r' % (key, value)
16802
      for key, value in self.__dict__.iteritems()]
16803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16804
 
16805
  def __eq__(self, other):
16806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16807
 
16808
  def __ne__(self, other):
16809
    return not (self == other)
16810
 
5944 mandeep.dh 16811
class deleteSimilarItem_args:
16812
  """
16813
  Attributes:
16814
   - itemId
16815
   - catalogItemId
16816
  """
16817
 
16818
  thrift_spec = (
16819
    None, # 0
16820
    (1, TType.I64, 'itemId', None, None, ), # 1
16821
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
16822
  )
16823
 
16824
  def __init__(self, itemId=None, catalogItemId=None,):
16825
    self.itemId = itemId
16826
    self.catalogItemId = catalogItemId
16827
 
16828
  def read(self, iprot):
16829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16831
      return
16832
    iprot.readStructBegin()
16833
    while True:
16834
      (fname, ftype, fid) = iprot.readFieldBegin()
16835
      if ftype == TType.STOP:
16836
        break
16837
      if fid == 1:
16838
        if ftype == TType.I64:
16839
          self.itemId = iprot.readI64();
16840
        else:
16841
          iprot.skip(ftype)
16842
      elif fid == 2:
16843
        if ftype == TType.I64:
16844
          self.catalogItemId = iprot.readI64();
16845
        else:
16846
          iprot.skip(ftype)
16847
      else:
16848
        iprot.skip(ftype)
16849
      iprot.readFieldEnd()
16850
    iprot.readStructEnd()
16851
 
16852
  def write(self, oprot):
16853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16855
      return
16856
    oprot.writeStructBegin('deleteSimilarItem_args')
16857
    if self.itemId is not None:
16858
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16859
      oprot.writeI64(self.itemId)
16860
      oprot.writeFieldEnd()
16861
    if self.catalogItemId is not None:
16862
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
16863
      oprot.writeI64(self.catalogItemId)
16864
      oprot.writeFieldEnd()
16865
    oprot.writeFieldStop()
16866
    oprot.writeStructEnd()
16867
 
16868
  def validate(self):
16869
    return
16870
 
16871
 
16872
  def __repr__(self):
16873
    L = ['%s=%r' % (key, value)
16874
      for key, value in self.__dict__.iteritems()]
16875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16876
 
16877
  def __eq__(self, other):
16878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16879
 
16880
  def __ne__(self, other):
16881
    return not (self == other)
16882
 
16883
class deleteSimilarItem_result:
16884
  """
16885
  Attributes:
16886
   - success
16887
   - cex
16888
  """
16889
 
16890
  thrift_spec = (
16891
    (0, TType.BOOL, 'success', None, None, ), # 0
16892
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16893
  )
16894
 
16895
  def __init__(self, success=None, cex=None,):
16896
    self.success = success
16897
    self.cex = cex
16898
 
16899
  def read(self, iprot):
16900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16902
      return
16903
    iprot.readStructBegin()
16904
    while True:
16905
      (fname, ftype, fid) = iprot.readFieldBegin()
16906
      if ftype == TType.STOP:
16907
        break
16908
      if fid == 0:
16909
        if ftype == TType.BOOL:
16910
          self.success = iprot.readBool();
16911
        else:
16912
          iprot.skip(ftype)
16913
      elif fid == 1:
16914
        if ftype == TType.STRUCT:
16915
          self.cex = CatalogServiceException()
16916
          self.cex.read(iprot)
16917
        else:
16918
          iprot.skip(ftype)
16919
      else:
16920
        iprot.skip(ftype)
16921
      iprot.readFieldEnd()
16922
    iprot.readStructEnd()
16923
 
16924
  def write(self, oprot):
16925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16927
      return
16928
    oprot.writeStructBegin('deleteSimilarItem_result')
16929
    if self.success is not None:
16930
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16931
      oprot.writeBool(self.success)
16932
      oprot.writeFieldEnd()
16933
    if self.cex is not None:
16934
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16935
      self.cex.write(oprot)
16936
      oprot.writeFieldEnd()
16937
    oprot.writeFieldStop()
16938
    oprot.writeStructEnd()
16939
 
16940
  def validate(self):
16941
    return
16942
 
16943
 
16944
  def __repr__(self):
16945
    L = ['%s=%r' % (key, value)
16946
      for key, value in self.__dict__.iteritems()]
16947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16948
 
16949
  def __eq__(self, other):
16950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16951
 
16952
  def __ne__(self, other):
16953
    return not (self == other)
16954
 
16955
class checkSimilarItem_args:
16956
  """
16957
  Attributes:
16958
   - brand
16959
   - modelNumber
16960
   - modelName
16961
   - color
16962
  """
16963
 
16964
  thrift_spec = (
16965
    None, # 0
16966
    (1, TType.STRING, 'brand', None, None, ), # 1
16967
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
16968
    (3, TType.STRING, 'modelName', None, None, ), # 3
16969
    (4, TType.STRING, 'color', None, None, ), # 4
16970
  )
16971
 
16972
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
16973
    self.brand = brand
16974
    self.modelNumber = modelNumber
16975
    self.modelName = modelName
16976
    self.color = color
16977
 
16978
  def read(self, iprot):
16979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16981
      return
16982
    iprot.readStructBegin()
16983
    while True:
16984
      (fname, ftype, fid) = iprot.readFieldBegin()
16985
      if ftype == TType.STOP:
16986
        break
16987
      if fid == 1:
16988
        if ftype == TType.STRING:
16989
          self.brand = iprot.readString();
16990
        else:
16991
          iprot.skip(ftype)
16992
      elif fid == 2:
16993
        if ftype == TType.STRING:
16994
          self.modelNumber = iprot.readString();
16995
        else:
16996
          iprot.skip(ftype)
16997
      elif fid == 3:
16998
        if ftype == TType.STRING:
16999
          self.modelName = iprot.readString();
17000
        else:
17001
          iprot.skip(ftype)
17002
      elif fid == 4:
17003
        if ftype == TType.STRING:
17004
          self.color = iprot.readString();
17005
        else:
17006
          iprot.skip(ftype)
17007
      else:
17008
        iprot.skip(ftype)
17009
      iprot.readFieldEnd()
17010
    iprot.readStructEnd()
17011
 
17012
  def write(self, oprot):
17013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17015
      return
17016
    oprot.writeStructBegin('checkSimilarItem_args')
17017
    if self.brand is not None:
17018
      oprot.writeFieldBegin('brand', TType.STRING, 1)
17019
      oprot.writeString(self.brand)
17020
      oprot.writeFieldEnd()
17021
    if self.modelNumber is not None:
17022
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
17023
      oprot.writeString(self.modelNumber)
17024
      oprot.writeFieldEnd()
17025
    if self.modelName is not None:
17026
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
17027
      oprot.writeString(self.modelName)
17028
      oprot.writeFieldEnd()
17029
    if self.color is not None:
17030
      oprot.writeFieldBegin('color', TType.STRING, 4)
17031
      oprot.writeString(self.color)
17032
      oprot.writeFieldEnd()
17033
    oprot.writeFieldStop()
17034
    oprot.writeStructEnd()
17035
 
17036
  def validate(self):
17037
    return
17038
 
17039
 
17040
  def __repr__(self):
17041
    L = ['%s=%r' % (key, value)
17042
      for key, value in self.__dict__.iteritems()]
17043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17044
 
17045
  def __eq__(self, other):
17046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17047
 
17048
  def __ne__(self, other):
17049
    return not (self == other)
17050
 
17051
class checkSimilarItem_result:
17052
  """
17053
  Attributes:
17054
   - success
17055
  """
17056
 
17057
  thrift_spec = (
17058
    (0, TType.I64, 'success', None, None, ), # 0
17059
  )
17060
 
17061
  def __init__(self, success=None,):
17062
    self.success = success
17063
 
17064
  def read(self, iprot):
17065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17067
      return
17068
    iprot.readStructBegin()
17069
    while True:
17070
      (fname, ftype, fid) = iprot.readFieldBegin()
17071
      if ftype == TType.STOP:
17072
        break
17073
      if fid == 0:
17074
        if ftype == TType.I64:
17075
          self.success = iprot.readI64();
17076
        else:
17077
          iprot.skip(ftype)
17078
      else:
17079
        iprot.skip(ftype)
17080
      iprot.readFieldEnd()
17081
    iprot.readStructEnd()
17082
 
17083
  def write(self, oprot):
17084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17086
      return
17087
    oprot.writeStructBegin('checkSimilarItem_result')
17088
    if self.success is not None:
17089
      oprot.writeFieldBegin('success', TType.I64, 0)
17090
      oprot.writeI64(self.success)
17091
      oprot.writeFieldEnd()
17092
    oprot.writeFieldStop()
17093
    oprot.writeStructEnd()
17094
 
17095
  def validate(self):
17096
    return
17097
 
17098
 
17099
  def __repr__(self):
17100
    L = ['%s=%r' % (key, value)
17101
      for key, value in self.__dict__.iteritems()]
17102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17103
 
17104
  def __eq__(self, other):
17105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17106
 
17107
  def __ne__(self, other):
17108
    return not (self == other)
17109
 
17110
class validateRiskyStatus_args:
17111
  """
17112
  Attributes:
17113
   - itemId
17114
  """
17115
 
17116
  thrift_spec = (
17117
    None, # 0
17118
    (1, TType.I64, 'itemId', None, None, ), # 1
17119
  )
17120
 
17121
  def __init__(self, itemId=None,):
17122
    self.itemId = itemId
17123
 
17124
  def read(self, iprot):
17125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17127
      return
17128
    iprot.readStructBegin()
17129
    while True:
17130
      (fname, ftype, fid) = iprot.readFieldBegin()
17131
      if ftype == TType.STOP:
17132
        break
17133
      if fid == 1:
17134
        if ftype == TType.I64:
17135
          self.itemId = iprot.readI64();
17136
        else:
17137
          iprot.skip(ftype)
17138
      else:
17139
        iprot.skip(ftype)
17140
      iprot.readFieldEnd()
17141
    iprot.readStructEnd()
17142
 
17143
  def write(self, oprot):
17144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17146
      return
17147
    oprot.writeStructBegin('validateRiskyStatus_args')
17148
    if self.itemId is not None:
17149
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17150
      oprot.writeI64(self.itemId)
17151
      oprot.writeFieldEnd()
17152
    oprot.writeFieldStop()
17153
    oprot.writeStructEnd()
17154
 
17155
  def validate(self):
17156
    return
17157
 
17158
 
17159
  def __repr__(self):
17160
    L = ['%s=%r' % (key, value)
17161
      for key, value in self.__dict__.iteritems()]
17162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17163
 
17164
  def __eq__(self, other):
17165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17166
 
17167
  def __ne__(self, other):
17168
    return not (self == other)
17169
 
17170
class validateRiskyStatus_result:
17171
 
17172
  thrift_spec = (
17173
  )
17174
 
17175
  def read(self, iprot):
17176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17178
      return
17179
    iprot.readStructBegin()
17180
    while True:
17181
      (fname, ftype, fid) = iprot.readFieldBegin()
17182
      if ftype == TType.STOP:
17183
        break
17184
      else:
17185
        iprot.skip(ftype)
17186
      iprot.readFieldEnd()
17187
    iprot.readStructEnd()
17188
 
17189
  def write(self, oprot):
17190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17192
      return
17193
    oprot.writeStructBegin('validateRiskyStatus_result')
17194
    oprot.writeFieldStop()
17195
    oprot.writeStructEnd()
17196
 
17197
  def validate(self):
17198
    return
17199
 
17200
 
17201
  def __repr__(self):
17202
    L = ['%s=%r' % (key, value)
17203
      for key, value in self.__dict__.iteritems()]
17204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17205
 
17206
  def __eq__(self, other):
17207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17208
 
17209
  def __ne__(self, other):
17210
    return not (self == other)
17211
 
17212
class changeItemRiskyFlag_args:
17213
  """
17214
  Attributes:
17215
   - itemId
17216
   - risky
17217
  """
17218
 
17219
  thrift_spec = (
17220
    None, # 0
17221
    (1, TType.I64, 'itemId', None, None, ), # 1
17222
    (2, TType.BOOL, 'risky', None, None, ), # 2
17223
  )
17224
 
17225
  def __init__(self, itemId=None, risky=None,):
17226
    self.itemId = itemId
17227
    self.risky = risky
17228
 
17229
  def read(self, iprot):
17230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17232
      return
17233
    iprot.readStructBegin()
17234
    while True:
17235
      (fname, ftype, fid) = iprot.readFieldBegin()
17236
      if ftype == TType.STOP:
17237
        break
17238
      if fid == 1:
17239
        if ftype == TType.I64:
17240
          self.itemId = iprot.readI64();
17241
        else:
17242
          iprot.skip(ftype)
17243
      elif fid == 2:
17244
        if ftype == TType.BOOL:
17245
          self.risky = iprot.readBool();
17246
        else:
17247
          iprot.skip(ftype)
17248
      else:
17249
        iprot.skip(ftype)
17250
      iprot.readFieldEnd()
17251
    iprot.readStructEnd()
17252
 
17253
  def write(self, oprot):
17254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17256
      return
17257
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17258
    if self.itemId is not None:
17259
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17260
      oprot.writeI64(self.itemId)
17261
      oprot.writeFieldEnd()
17262
    if self.risky is not None:
17263
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17264
      oprot.writeBool(self.risky)
17265
      oprot.writeFieldEnd()
17266
    oprot.writeFieldStop()
17267
    oprot.writeStructEnd()
17268
 
17269
  def validate(self):
17270
    return
17271
 
17272
 
17273
  def __repr__(self):
17274
    L = ['%s=%r' % (key, value)
17275
      for key, value in self.__dict__.iteritems()]
17276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17277
 
17278
  def __eq__(self, other):
17279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17280
 
17281
  def __ne__(self, other):
17282
    return not (self == other)
17283
 
17284
class changeItemRiskyFlag_result:
17285
 
17286
  thrift_spec = (
17287
  )
17288
 
17289
  def read(self, iprot):
17290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17292
      return
17293
    iprot.readStructBegin()
17294
    while True:
17295
      (fname, ftype, fid) = iprot.readFieldBegin()
17296
      if ftype == TType.STOP:
17297
        break
17298
      else:
17299
        iprot.skip(ftype)
17300
      iprot.readFieldEnd()
17301
    iprot.readStructEnd()
17302
 
17303
  def write(self, oprot):
17304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17306
      return
17307
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17308
    oprot.writeFieldStop()
17309
    oprot.writeStructEnd()
17310
 
17311
  def validate(self):
17312
    return
17313
 
17314
 
17315
  def __repr__(self):
17316
    L = ['%s=%r' % (key, value)
17317
      for key, value in self.__dict__.iteritems()]
17318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17319
 
17320
  def __eq__(self, other):
17321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17322
 
17323
  def __ne__(self, other):
17324
    return not (self == other)
17325
 
17326
class getItemsByRiskyFlag_args:
17327
 
17328
  thrift_spec = (
17329
  )
17330
 
17331
  def read(self, iprot):
17332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17334
      return
17335
    iprot.readStructBegin()
17336
    while True:
17337
      (fname, ftype, fid) = iprot.readFieldBegin()
17338
      if ftype == TType.STOP:
17339
        break
17340
      else:
17341
        iprot.skip(ftype)
17342
      iprot.readFieldEnd()
17343
    iprot.readStructEnd()
17344
 
17345
  def write(self, oprot):
17346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17348
      return
17349
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17350
    oprot.writeFieldStop()
17351
    oprot.writeStructEnd()
17352
 
17353
  def validate(self):
17354
    return
17355
 
17356
 
17357
  def __repr__(self):
17358
    L = ['%s=%r' % (key, value)
17359
      for key, value in self.__dict__.iteritems()]
17360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17361
 
17362
  def __eq__(self, other):
17363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17364
 
17365
  def __ne__(self, other):
17366
    return not (self == other)
17367
 
17368
class getItemsByRiskyFlag_result:
17369
  """
17370
  Attributes:
17371
   - success
17372
  """
17373
 
17374
  thrift_spec = (
17375
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17376
  )
17377
 
17378
  def __init__(self, success=None,):
17379
    self.success = success
17380
 
17381
  def read(self, iprot):
17382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17384
      return
17385
    iprot.readStructBegin()
17386
    while True:
17387
      (fname, ftype, fid) = iprot.readFieldBegin()
17388
      if ftype == TType.STOP:
17389
        break
17390
      if fid == 0:
17391
        if ftype == TType.LIST:
17392
          self.success = []
12567 amit.gupta 17393
          (_etype288, _size285) = iprot.readListBegin()
17394
          for _i289 in xrange(_size285):
17395
            _elem290 = Item()
17396
            _elem290.read(iprot)
17397
            self.success.append(_elem290)
5944 mandeep.dh 17398
          iprot.readListEnd()
17399
        else:
17400
          iprot.skip(ftype)
17401
      else:
17402
        iprot.skip(ftype)
17403
      iprot.readFieldEnd()
17404
    iprot.readStructEnd()
17405
 
17406
  def write(self, oprot):
17407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17409
      return
17410
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17411
    if self.success is not None:
17412
      oprot.writeFieldBegin('success', TType.LIST, 0)
17413
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17414
      for iter291 in self.success:
17415
        iter291.write(oprot)
5944 mandeep.dh 17416
      oprot.writeListEnd()
17417
      oprot.writeFieldEnd()
17418
    oprot.writeFieldStop()
17419
    oprot.writeStructEnd()
17420
 
17421
  def validate(self):
17422
    return
17423
 
17424
 
17425
  def __repr__(self):
17426
    L = ['%s=%r' % (key, value)
17427
      for key, value in self.__dict__.iteritems()]
17428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17429
 
17430
  def __eq__(self, other):
17431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17432
 
17433
  def __ne__(self, other):
17434
    return not (self == other)
17435
 
17436
class getItemsForMasterSheet_args:
17437
  """
17438
  Attributes:
17439
   - category
17440
   - brand
17441
  """
17442
 
17443
  thrift_spec = (
17444
    None, # 0
17445
    (1, TType.STRING, 'category', None, None, ), # 1
17446
    (2, TType.STRING, 'brand', None, None, ), # 2
17447
  )
17448
 
17449
  def __init__(self, category=None, brand=None,):
17450
    self.category = category
17451
    self.brand = brand
17452
 
17453
  def read(self, iprot):
17454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17456
      return
17457
    iprot.readStructBegin()
17458
    while True:
17459
      (fname, ftype, fid) = iprot.readFieldBegin()
17460
      if ftype == TType.STOP:
17461
        break
17462
      if fid == 1:
17463
        if ftype == TType.STRING:
17464
          self.category = iprot.readString();
17465
        else:
17466
          iprot.skip(ftype)
17467
      elif fid == 2:
17468
        if ftype == TType.STRING:
17469
          self.brand = iprot.readString();
17470
        else:
17471
          iprot.skip(ftype)
17472
      else:
17473
        iprot.skip(ftype)
17474
      iprot.readFieldEnd()
17475
    iprot.readStructEnd()
17476
 
17477
  def write(self, oprot):
17478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17480
      return
17481
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17482
    if self.category is not None:
17483
      oprot.writeFieldBegin('category', TType.STRING, 1)
17484
      oprot.writeString(self.category)
17485
      oprot.writeFieldEnd()
17486
    if self.brand is not None:
17487
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17488
      oprot.writeString(self.brand)
17489
      oprot.writeFieldEnd()
17490
    oprot.writeFieldStop()
17491
    oprot.writeStructEnd()
17492
 
17493
  def validate(self):
17494
    return
17495
 
17496
 
17497
  def __repr__(self):
17498
    L = ['%s=%r' % (key, value)
17499
      for key, value in self.__dict__.iteritems()]
17500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17501
 
17502
  def __eq__(self, other):
17503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17504
 
17505
  def __ne__(self, other):
17506
    return not (self == other)
17507
 
17508
class getItemsForMasterSheet_result:
17509
  """
17510
  Attributes:
17511
   - success
17512
  """
17513
 
17514
  thrift_spec = (
17515
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17516
  )
17517
 
17518
  def __init__(self, success=None,):
17519
    self.success = success
17520
 
17521
  def read(self, iprot):
17522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17524
      return
17525
    iprot.readStructBegin()
17526
    while True:
17527
      (fname, ftype, fid) = iprot.readFieldBegin()
17528
      if ftype == TType.STOP:
17529
        break
17530
      if fid == 0:
17531
        if ftype == TType.LIST:
17532
          self.success = []
12567 amit.gupta 17533
          (_etype295, _size292) = iprot.readListBegin()
17534
          for _i296 in xrange(_size292):
17535
            _elem297 = Item()
17536
            _elem297.read(iprot)
17537
            self.success.append(_elem297)
5944 mandeep.dh 17538
          iprot.readListEnd()
17539
        else:
17540
          iprot.skip(ftype)
17541
      else:
17542
        iprot.skip(ftype)
17543
      iprot.readFieldEnd()
17544
    iprot.readStructEnd()
17545
 
17546
  def write(self, oprot):
17547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17549
      return
17550
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17551
    if self.success is not None:
17552
      oprot.writeFieldBegin('success', TType.LIST, 0)
17553
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17554
      for iter298 in self.success:
17555
        iter298.write(oprot)
5944 mandeep.dh 17556
      oprot.writeListEnd()
17557
      oprot.writeFieldEnd()
17558
    oprot.writeFieldStop()
17559
    oprot.writeStructEnd()
17560
 
17561
  def validate(self):
17562
    return
17563
 
17564
 
17565
  def __repr__(self):
17566
    L = ['%s=%r' % (key, value)
17567
      for key, value in self.__dict__.iteritems()]
17568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17569
 
17570
  def __eq__(self, other):
17571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17572
 
17573
  def __ne__(self, other):
17574
    return not (self == other)
17575
 
17576
class getSimilarItemsCatalogIds_args:
17577
  """
17578
  Attributes:
17579
   - beginIndex
17580
   - totalItems
17581
   - itemId
17582
  """
17583
 
17584
  thrift_spec = (
17585
    None, # 0
17586
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17587
    (2, TType.I64, 'totalItems', None, None, ), # 2
17588
    (3, TType.I64, 'itemId', None, None, ), # 3
17589
  )
17590
 
17591
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17592
    self.beginIndex = beginIndex
17593
    self.totalItems = totalItems
17594
    self.itemId = itemId
17595
 
17596
  def read(self, iprot):
17597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17599
      return
17600
    iprot.readStructBegin()
17601
    while True:
17602
      (fname, ftype, fid) = iprot.readFieldBegin()
17603
      if ftype == TType.STOP:
17604
        break
17605
      if fid == 1:
17606
        if ftype == TType.I64:
17607
          self.beginIndex = iprot.readI64();
17608
        else:
17609
          iprot.skip(ftype)
17610
      elif fid == 2:
17611
        if ftype == TType.I64:
17612
          self.totalItems = iprot.readI64();
17613
        else:
17614
          iprot.skip(ftype)
17615
      elif fid == 3:
17616
        if ftype == TType.I64:
17617
          self.itemId = iprot.readI64();
17618
        else:
17619
          iprot.skip(ftype)
17620
      else:
17621
        iprot.skip(ftype)
17622
      iprot.readFieldEnd()
17623
    iprot.readStructEnd()
17624
 
17625
  def write(self, oprot):
17626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17628
      return
17629
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17630
    if self.beginIndex is not None:
17631
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17632
      oprot.writeI64(self.beginIndex)
17633
      oprot.writeFieldEnd()
17634
    if self.totalItems is not None:
17635
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17636
      oprot.writeI64(self.totalItems)
17637
      oprot.writeFieldEnd()
17638
    if self.itemId is not None:
17639
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17640
      oprot.writeI64(self.itemId)
17641
      oprot.writeFieldEnd()
17642
    oprot.writeFieldStop()
17643
    oprot.writeStructEnd()
17644
 
17645
  def validate(self):
17646
    return
17647
 
17648
 
17649
  def __repr__(self):
17650
    L = ['%s=%r' % (key, value)
17651
      for key, value in self.__dict__.iteritems()]
17652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17653
 
17654
  def __eq__(self, other):
17655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17656
 
17657
  def __ne__(self, other):
17658
    return not (self == other)
17659
 
17660
class getSimilarItemsCatalogIds_result:
17661
  """
17662
  Attributes:
17663
   - success
17664
  """
17665
 
17666
  thrift_spec = (
17667
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17668
  )
17669
 
17670
  def __init__(self, success=None,):
17671
    self.success = success
17672
 
17673
  def read(self, iprot):
17674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17676
      return
17677
    iprot.readStructBegin()
17678
    while True:
17679
      (fname, ftype, fid) = iprot.readFieldBegin()
17680
      if ftype == TType.STOP:
17681
        break
17682
      if fid == 0:
17683
        if ftype == TType.LIST:
17684
          self.success = []
12567 amit.gupta 17685
          (_etype302, _size299) = iprot.readListBegin()
17686
          for _i303 in xrange(_size299):
17687
            _elem304 = iprot.readI64();
17688
            self.success.append(_elem304)
5944 mandeep.dh 17689
          iprot.readListEnd()
17690
        else:
17691
          iprot.skip(ftype)
17692
      else:
17693
        iprot.skip(ftype)
17694
      iprot.readFieldEnd()
17695
    iprot.readStructEnd()
17696
 
17697
  def write(self, oprot):
17698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17700
      return
17701
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
17702
    if self.success is not None:
17703
      oprot.writeFieldBegin('success', TType.LIST, 0)
17704
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 17705
      for iter305 in self.success:
17706
        oprot.writeI64(iter305)
5944 mandeep.dh 17707
      oprot.writeListEnd()
17708
      oprot.writeFieldEnd()
17709
    oprot.writeFieldStop()
17710
    oprot.writeStructEnd()
17711
 
17712
  def validate(self):
17713
    return
17714
 
17715
 
17716
  def __repr__(self):
17717
    L = ['%s=%r' % (key, value)
17718
      for key, value in self.__dict__.iteritems()]
17719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17720
 
17721
  def __eq__(self, other):
17722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17723
 
17724
  def __ne__(self, other):
17725
    return not (self == other)
17726
 
17727
class addProductNotification_args:
17728
  """
17729
  Attributes:
17730
   - itemId
17731
   - email
17732
  """
17733
 
17734
  thrift_spec = None
17735
  def __init__(self, itemId=None, email=None,):
17736
    self.itemId = itemId
17737
    self.email = email
17738
 
17739
  def read(self, iprot):
17740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17742
      return
17743
    iprot.readStructBegin()
17744
    while True:
17745
      (fname, ftype, fid) = iprot.readFieldBegin()
17746
      if ftype == TType.STOP:
17747
        break
17748
      if fid == -1:
17749
        if ftype == TType.I64:
17750
          self.itemId = iprot.readI64();
17751
        else:
17752
          iprot.skip(ftype)
17753
      elif fid == -2:
17754
        if ftype == TType.STRING:
17755
          self.email = iprot.readString();
17756
        else:
17757
          iprot.skip(ftype)
17758
      else:
17759
        iprot.skip(ftype)
17760
      iprot.readFieldEnd()
17761
    iprot.readStructEnd()
17762
 
17763
  def write(self, oprot):
17764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17766
      return
17767
    oprot.writeStructBegin('addProductNotification_args')
17768
    if self.email is not None:
17769
      oprot.writeFieldBegin('email', TType.STRING, -2)
17770
      oprot.writeString(self.email)
17771
      oprot.writeFieldEnd()
17772
    if self.itemId is not None:
17773
      oprot.writeFieldBegin('itemId', TType.I64, -1)
17774
      oprot.writeI64(self.itemId)
17775
      oprot.writeFieldEnd()
17776
    oprot.writeFieldStop()
17777
    oprot.writeStructEnd()
17778
 
17779
  def validate(self):
17780
    return
17781
 
17782
 
17783
  def __repr__(self):
17784
    L = ['%s=%r' % (key, value)
17785
      for key, value in self.__dict__.iteritems()]
17786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17787
 
17788
  def __eq__(self, other):
17789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17790
 
17791
  def __ne__(self, other):
17792
    return not (self == other)
17793
 
17794
class addProductNotification_result:
17795
  """
17796
  Attributes:
17797
   - success
17798
  """
17799
 
17800
  thrift_spec = (
17801
    (0, TType.BOOL, 'success', None, None, ), # 0
17802
  )
17803
 
17804
  def __init__(self, success=None,):
17805
    self.success = success
17806
 
17807
  def read(self, iprot):
17808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17810
      return
17811
    iprot.readStructBegin()
17812
    while True:
17813
      (fname, ftype, fid) = iprot.readFieldBegin()
17814
      if ftype == TType.STOP:
17815
        break
17816
      if fid == 0:
17817
        if ftype == TType.BOOL:
17818
          self.success = iprot.readBool();
17819
        else:
17820
          iprot.skip(ftype)
17821
      else:
17822
        iprot.skip(ftype)
17823
      iprot.readFieldEnd()
17824
    iprot.readStructEnd()
17825
 
17826
  def write(self, oprot):
17827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17829
      return
17830
    oprot.writeStructBegin('addProductNotification_result')
17831
    if self.success is not None:
17832
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17833
      oprot.writeBool(self.success)
17834
      oprot.writeFieldEnd()
17835
    oprot.writeFieldStop()
17836
    oprot.writeStructEnd()
17837
 
17838
  def validate(self):
17839
    return
17840
 
17841
 
17842
  def __repr__(self):
17843
    L = ['%s=%r' % (key, value)
17844
      for key, value in self.__dict__.iteritems()]
17845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17846
 
17847
  def __eq__(self, other):
17848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17849
 
17850
  def __ne__(self, other):
17851
    return not (self == other)
17852
 
17853
class sendProductNotifications_args:
17854
 
17855
  thrift_spec = (
17856
  )
17857
 
17858
  def read(self, iprot):
17859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17861
      return
17862
    iprot.readStructBegin()
17863
    while True:
17864
      (fname, ftype, fid) = iprot.readFieldBegin()
17865
      if ftype == TType.STOP:
17866
        break
17867
      else:
17868
        iprot.skip(ftype)
17869
      iprot.readFieldEnd()
17870
    iprot.readStructEnd()
17871
 
17872
  def write(self, oprot):
17873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17875
      return
17876
    oprot.writeStructBegin('sendProductNotifications_args')
17877
    oprot.writeFieldStop()
17878
    oprot.writeStructEnd()
17879
 
17880
  def validate(self):
17881
    return
17882
 
17883
 
17884
  def __repr__(self):
17885
    L = ['%s=%r' % (key, value)
17886
      for key, value in self.__dict__.iteritems()]
17887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17888
 
17889
  def __eq__(self, other):
17890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17891
 
17892
  def __ne__(self, other):
17893
    return not (self == other)
17894
 
17895
class sendProductNotifications_result:
17896
  """
17897
  Attributes:
17898
   - success
17899
  """
17900
 
17901
  thrift_spec = (
17902
    (0, TType.BOOL, 'success', None, None, ), # 0
17903
  )
17904
 
17905
  def __init__(self, success=None,):
17906
    self.success = success
17907
 
17908
  def read(self, iprot):
17909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17911
      return
17912
    iprot.readStructBegin()
17913
    while True:
17914
      (fname, ftype, fid) = iprot.readFieldBegin()
17915
      if ftype == TType.STOP:
17916
        break
17917
      if fid == 0:
17918
        if ftype == TType.BOOL:
17919
          self.success = iprot.readBool();
17920
        else:
17921
          iprot.skip(ftype)
17922
      else:
17923
        iprot.skip(ftype)
17924
      iprot.readFieldEnd()
17925
    iprot.readStructEnd()
17926
 
17927
  def write(self, oprot):
17928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17930
      return
17931
    oprot.writeStructBegin('sendProductNotifications_result')
17932
    if self.success is not None:
17933
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17934
      oprot.writeBool(self.success)
17935
      oprot.writeFieldEnd()
17936
    oprot.writeFieldStop()
17937
    oprot.writeStructEnd()
17938
 
17939
  def validate(self):
17940
    return
17941
 
17942
 
17943
  def __repr__(self):
17944
    L = ['%s=%r' % (key, value)
17945
      for key, value in self.__dict__.iteritems()]
17946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17947
 
17948
  def __eq__(self, other):
17949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17950
 
17951
  def __ne__(self, other):
17952
    return not (self == other)
17953
 
17954
class getAllBrandsByCategory_args:
17955
  """
17956
  Attributes:
17957
   - categoryId
17958
  """
17959
 
17960
  thrift_spec = (
17961
    None, # 0
17962
    (1, TType.I64, 'categoryId', None, None, ), # 1
17963
  )
17964
 
17965
  def __init__(self, categoryId=None,):
17966
    self.categoryId = categoryId
17967
 
17968
  def read(self, iprot):
17969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17971
      return
17972
    iprot.readStructBegin()
17973
    while True:
17974
      (fname, ftype, fid) = iprot.readFieldBegin()
17975
      if ftype == TType.STOP:
17976
        break
17977
      if fid == 1:
17978
        if ftype == TType.I64:
17979
          self.categoryId = iprot.readI64();
17980
        else:
17981
          iprot.skip(ftype)
17982
      else:
17983
        iprot.skip(ftype)
17984
      iprot.readFieldEnd()
17985
    iprot.readStructEnd()
17986
 
17987
  def write(self, oprot):
17988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17990
      return
17991
    oprot.writeStructBegin('getAllBrandsByCategory_args')
17992
    if self.categoryId is not None:
17993
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
17994
      oprot.writeI64(self.categoryId)
17995
      oprot.writeFieldEnd()
17996
    oprot.writeFieldStop()
17997
    oprot.writeStructEnd()
17998
 
17999
  def validate(self):
18000
    return
18001
 
18002
 
18003
  def __repr__(self):
18004
    L = ['%s=%r' % (key, value)
18005
      for key, value in self.__dict__.iteritems()]
18006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18007
 
18008
  def __eq__(self, other):
18009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18010
 
18011
  def __ne__(self, other):
18012
    return not (self == other)
18013
 
18014
class getAllBrandsByCategory_result:
18015
  """
18016
  Attributes:
18017
   - success
18018
  """
18019
 
18020
  thrift_spec = (
18021
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18022
  )
18023
 
18024
  def __init__(self, success=None,):
18025
    self.success = success
18026
 
18027
  def read(self, iprot):
18028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18030
      return
18031
    iprot.readStructBegin()
18032
    while True:
18033
      (fname, ftype, fid) = iprot.readFieldBegin()
18034
      if ftype == TType.STOP:
18035
        break
18036
      if fid == 0:
18037
        if ftype == TType.LIST:
18038
          self.success = []
12567 amit.gupta 18039
          (_etype309, _size306) = iprot.readListBegin()
18040
          for _i310 in xrange(_size306):
18041
            _elem311 = iprot.readString();
18042
            self.success.append(_elem311)
5944 mandeep.dh 18043
          iprot.readListEnd()
18044
        else:
18045
          iprot.skip(ftype)
18046
      else:
18047
        iprot.skip(ftype)
18048
      iprot.readFieldEnd()
18049
    iprot.readStructEnd()
18050
 
18051
  def write(self, oprot):
18052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18054
      return
18055
    oprot.writeStructBegin('getAllBrandsByCategory_result')
18056
    if self.success is not None:
18057
      oprot.writeFieldBegin('success', TType.LIST, 0)
18058
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18059
      for iter312 in self.success:
18060
        oprot.writeString(iter312)
5944 mandeep.dh 18061
      oprot.writeListEnd()
18062
      oprot.writeFieldEnd()
18063
    oprot.writeFieldStop()
18064
    oprot.writeStructEnd()
18065
 
18066
  def validate(self):
18067
    return
18068
 
18069
 
18070
  def __repr__(self):
18071
    L = ['%s=%r' % (key, value)
18072
      for key, value in self.__dict__.iteritems()]
18073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18074
 
18075
  def __eq__(self, other):
18076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18077
 
18078
  def __ne__(self, other):
18079
    return not (self == other)
18080
 
18081
class getAllBrands_args:
18082
 
18083
  thrift_spec = (
18084
  )
18085
 
18086
  def read(self, iprot):
18087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18089
      return
18090
    iprot.readStructBegin()
18091
    while True:
18092
      (fname, ftype, fid) = iprot.readFieldBegin()
18093
      if ftype == TType.STOP:
18094
        break
18095
      else:
18096
        iprot.skip(ftype)
18097
      iprot.readFieldEnd()
18098
    iprot.readStructEnd()
18099
 
18100
  def write(self, oprot):
18101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18103
      return
18104
    oprot.writeStructBegin('getAllBrands_args')
18105
    oprot.writeFieldStop()
18106
    oprot.writeStructEnd()
18107
 
18108
  def validate(self):
18109
    return
18110
 
18111
 
18112
  def __repr__(self):
18113
    L = ['%s=%r' % (key, value)
18114
      for key, value in self.__dict__.iteritems()]
18115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18116
 
18117
  def __eq__(self, other):
18118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18119
 
18120
  def __ne__(self, other):
18121
    return not (self == other)
18122
 
18123
class getAllBrands_result:
18124
  """
18125
  Attributes:
18126
   - success
18127
  """
18128
 
18129
  thrift_spec = (
18130
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18131
  )
18132
 
18133
  def __init__(self, success=None,):
18134
    self.success = success
18135
 
18136
  def read(self, iprot):
18137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18139
      return
18140
    iprot.readStructBegin()
18141
    while True:
18142
      (fname, ftype, fid) = iprot.readFieldBegin()
18143
      if ftype == TType.STOP:
18144
        break
18145
      if fid == 0:
18146
        if ftype == TType.LIST:
18147
          self.success = []
12567 amit.gupta 18148
          (_etype316, _size313) = iprot.readListBegin()
18149
          for _i317 in xrange(_size313):
18150
            _elem318 = iprot.readString();
18151
            self.success.append(_elem318)
5944 mandeep.dh 18152
          iprot.readListEnd()
18153
        else:
18154
          iprot.skip(ftype)
18155
      else:
18156
        iprot.skip(ftype)
18157
      iprot.readFieldEnd()
18158
    iprot.readStructEnd()
18159
 
18160
  def write(self, oprot):
18161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18163
      return
18164
    oprot.writeStructBegin('getAllBrands_result')
18165
    if self.success is not None:
18166
      oprot.writeFieldBegin('success', TType.LIST, 0)
18167
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18168
      for iter319 in self.success:
18169
        oprot.writeString(iter319)
5944 mandeep.dh 18170
      oprot.writeListEnd()
18171
      oprot.writeFieldEnd()
18172
    oprot.writeFieldStop()
18173
    oprot.writeStructEnd()
18174
 
18175
  def validate(self):
18176
    return
18177
 
18178
 
18179
  def __repr__(self):
18180
    L = ['%s=%r' % (key, value)
18181
      for key, value in self.__dict__.iteritems()]
18182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18183
 
18184
  def __eq__(self, other):
18185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18186
 
18187
  def __ne__(self, other):
18188
    return not (self == other)
18189
 
18190
class getAllSources_args:
18191
 
18192
  thrift_spec = (
18193
  )
18194
 
18195
  def read(self, iprot):
18196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18198
      return
18199
    iprot.readStructBegin()
18200
    while True:
18201
      (fname, ftype, fid) = iprot.readFieldBegin()
18202
      if ftype == TType.STOP:
18203
        break
18204
      else:
18205
        iprot.skip(ftype)
18206
      iprot.readFieldEnd()
18207
    iprot.readStructEnd()
18208
 
18209
  def write(self, oprot):
18210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18212
      return
18213
    oprot.writeStructBegin('getAllSources_args')
18214
    oprot.writeFieldStop()
18215
    oprot.writeStructEnd()
18216
 
18217
  def validate(self):
18218
    return
18219
 
18220
 
18221
  def __repr__(self):
18222
    L = ['%s=%r' % (key, value)
18223
      for key, value in self.__dict__.iteritems()]
18224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18225
 
18226
  def __eq__(self, other):
18227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18228
 
18229
  def __ne__(self, other):
18230
    return not (self == other)
18231
 
18232
class getAllSources_result:
18233
  """
18234
  Attributes:
18235
   - success
18236
  """
18237
 
18238
  thrift_spec = (
18239
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18240
  )
18241
 
18242
  def __init__(self, success=None,):
18243
    self.success = success
18244
 
18245
  def read(self, iprot):
18246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18248
      return
18249
    iprot.readStructBegin()
18250
    while True:
18251
      (fname, ftype, fid) = iprot.readFieldBegin()
18252
      if ftype == TType.STOP:
18253
        break
18254
      if fid == 0:
18255
        if ftype == TType.LIST:
18256
          self.success = []
12567 amit.gupta 18257
          (_etype323, _size320) = iprot.readListBegin()
18258
          for _i324 in xrange(_size320):
18259
            _elem325 = Source()
18260
            _elem325.read(iprot)
18261
            self.success.append(_elem325)
5944 mandeep.dh 18262
          iprot.readListEnd()
18263
        else:
18264
          iprot.skip(ftype)
18265
      else:
18266
        iprot.skip(ftype)
18267
      iprot.readFieldEnd()
18268
    iprot.readStructEnd()
18269
 
18270
  def write(self, oprot):
18271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18273
      return
18274
    oprot.writeStructBegin('getAllSources_result')
18275
    if self.success is not None:
18276
      oprot.writeFieldBegin('success', TType.LIST, 0)
18277
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18278
      for iter326 in self.success:
18279
        iter326.write(oprot)
5944 mandeep.dh 18280
      oprot.writeListEnd()
18281
      oprot.writeFieldEnd()
18282
    oprot.writeFieldStop()
18283
    oprot.writeStructEnd()
18284
 
18285
  def validate(self):
18286
    return
18287
 
18288
 
18289
  def __repr__(self):
18290
    L = ['%s=%r' % (key, value)
18291
      for key, value in self.__dict__.iteritems()]
18292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18293
 
18294
  def __eq__(self, other):
18295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18296
 
18297
  def __ne__(self, other):
18298
    return not (self == other)
18299
 
18300
class getItemPricingBySource_args:
18301
  """
18302
  Attributes:
18303
   - itemId
18304
   - sourceId
18305
  """
18306
 
18307
  thrift_spec = (
18308
    None, # 0
18309
    (1, TType.I64, 'itemId', None, None, ), # 1
18310
    (2, TType.I64, 'sourceId', None, None, ), # 2
18311
  )
18312
 
18313
  def __init__(self, itemId=None, sourceId=None,):
18314
    self.itemId = itemId
18315
    self.sourceId = sourceId
18316
 
18317
  def read(self, iprot):
18318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18320
      return
18321
    iprot.readStructBegin()
18322
    while True:
18323
      (fname, ftype, fid) = iprot.readFieldBegin()
18324
      if ftype == TType.STOP:
18325
        break
18326
      if fid == 1:
18327
        if ftype == TType.I64:
18328
          self.itemId = iprot.readI64();
18329
        else:
18330
          iprot.skip(ftype)
18331
      elif fid == 2:
18332
        if ftype == TType.I64:
18333
          self.sourceId = iprot.readI64();
18334
        else:
18335
          iprot.skip(ftype)
18336
      else:
18337
        iprot.skip(ftype)
18338
      iprot.readFieldEnd()
18339
    iprot.readStructEnd()
18340
 
18341
  def write(self, oprot):
18342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18344
      return
18345
    oprot.writeStructBegin('getItemPricingBySource_args')
18346
    if self.itemId is not None:
18347
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18348
      oprot.writeI64(self.itemId)
18349
      oprot.writeFieldEnd()
18350
    if self.sourceId is not None:
18351
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18352
      oprot.writeI64(self.sourceId)
18353
      oprot.writeFieldEnd()
18354
    oprot.writeFieldStop()
18355
    oprot.writeStructEnd()
18356
 
18357
  def validate(self):
18358
    return
18359
 
18360
 
18361
  def __repr__(self):
18362
    L = ['%s=%r' % (key, value)
18363
      for key, value in self.__dict__.iteritems()]
18364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18365
 
18366
  def __eq__(self, other):
18367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18368
 
18369
  def __ne__(self, other):
18370
    return not (self == other)
18371
 
18372
class getItemPricingBySource_result:
18373
  """
18374
  Attributes:
18375
   - success
18376
   - cex
18377
  """
18378
 
18379
  thrift_spec = (
18380
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18381
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18382
  )
18383
 
18384
  def __init__(self, success=None, cex=None,):
18385
    self.success = success
18386
    self.cex = cex
18387
 
18388
  def read(self, iprot):
18389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18391
      return
18392
    iprot.readStructBegin()
18393
    while True:
18394
      (fname, ftype, fid) = iprot.readFieldBegin()
18395
      if ftype == TType.STOP:
18396
        break
18397
      if fid == 0:
18398
        if ftype == TType.STRUCT:
18399
          self.success = SourceItemPricing()
18400
          self.success.read(iprot)
18401
        else:
18402
          iprot.skip(ftype)
18403
      elif fid == 1:
18404
        if ftype == TType.STRUCT:
18405
          self.cex = CatalogServiceException()
18406
          self.cex.read(iprot)
18407
        else:
18408
          iprot.skip(ftype)
18409
      else:
18410
        iprot.skip(ftype)
18411
      iprot.readFieldEnd()
18412
    iprot.readStructEnd()
18413
 
18414
  def write(self, oprot):
18415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18417
      return
18418
    oprot.writeStructBegin('getItemPricingBySource_result')
18419
    if self.success is not None:
18420
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18421
      self.success.write(oprot)
18422
      oprot.writeFieldEnd()
18423
    if self.cex is not None:
18424
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18425
      self.cex.write(oprot)
18426
      oprot.writeFieldEnd()
18427
    oprot.writeFieldStop()
18428
    oprot.writeStructEnd()
18429
 
18430
  def validate(self):
18431
    return
18432
 
18433
 
18434
  def __repr__(self):
18435
    L = ['%s=%r' % (key, value)
18436
      for key, value in self.__dict__.iteritems()]
18437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18438
 
18439
  def __eq__(self, other):
18440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18441
 
18442
  def __ne__(self, other):
18443
    return not (self == other)
18444
 
18445
class addSourceItemPricing_args:
18446
  """
18447
  Attributes:
18448
   - sourceItemPricing
18449
  """
18450
 
18451
  thrift_spec = (
18452
    None, # 0
18453
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18454
  )
18455
 
18456
  def __init__(self, sourceItemPricing=None,):
18457
    self.sourceItemPricing = sourceItemPricing
18458
 
18459
  def read(self, iprot):
18460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18462
      return
18463
    iprot.readStructBegin()
18464
    while True:
18465
      (fname, ftype, fid) = iprot.readFieldBegin()
18466
      if ftype == TType.STOP:
18467
        break
18468
      if fid == 1:
18469
        if ftype == TType.STRUCT:
18470
          self.sourceItemPricing = SourceItemPricing()
18471
          self.sourceItemPricing.read(iprot)
18472
        else:
18473
          iprot.skip(ftype)
18474
      else:
18475
        iprot.skip(ftype)
18476
      iprot.readFieldEnd()
18477
    iprot.readStructEnd()
18478
 
18479
  def write(self, oprot):
18480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18482
      return
18483
    oprot.writeStructBegin('addSourceItemPricing_args')
18484
    if self.sourceItemPricing is not None:
18485
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18486
      self.sourceItemPricing.write(oprot)
18487
      oprot.writeFieldEnd()
18488
    oprot.writeFieldStop()
18489
    oprot.writeStructEnd()
18490
 
18491
  def validate(self):
18492
    return
18493
 
18494
 
18495
  def __repr__(self):
18496
    L = ['%s=%r' % (key, value)
18497
      for key, value in self.__dict__.iteritems()]
18498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18499
 
18500
  def __eq__(self, other):
18501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18502
 
18503
  def __ne__(self, other):
18504
    return not (self == other)
18505
 
18506
class addSourceItemPricing_result:
18507
  """
18508
  Attributes:
18509
   - cex
18510
  """
18511
 
18512
  thrift_spec = (
18513
    None, # 0
18514
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18515
  )
18516
 
18517
  def __init__(self, cex=None,):
18518
    self.cex = cex
18519
 
18520
  def read(self, iprot):
18521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18523
      return
18524
    iprot.readStructBegin()
18525
    while True:
18526
      (fname, ftype, fid) = iprot.readFieldBegin()
18527
      if ftype == TType.STOP:
18528
        break
18529
      if fid == 1:
18530
        if ftype == TType.STRUCT:
18531
          self.cex = CatalogServiceException()
18532
          self.cex.read(iprot)
18533
        else:
18534
          iprot.skip(ftype)
18535
      else:
18536
        iprot.skip(ftype)
18537
      iprot.readFieldEnd()
18538
    iprot.readStructEnd()
18539
 
18540
  def write(self, oprot):
18541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18543
      return
18544
    oprot.writeStructBegin('addSourceItemPricing_result')
18545
    if self.cex is not None:
18546
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18547
      self.cex.write(oprot)
18548
      oprot.writeFieldEnd()
18549
    oprot.writeFieldStop()
18550
    oprot.writeStructEnd()
18551
 
18552
  def validate(self):
18553
    return
18554
 
18555
 
18556
  def __repr__(self):
18557
    L = ['%s=%r' % (key, value)
18558
      for key, value in self.__dict__.iteritems()]
18559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18560
 
18561
  def __eq__(self, other):
18562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18563
 
18564
  def __ne__(self, other):
18565
    return not (self == other)
18566
 
18567
class getAllSourcePricing_args:
18568
  """
18569
  Attributes:
18570
   - itemId
18571
  """
18572
 
18573
  thrift_spec = (
18574
    None, # 0
18575
    (1, TType.I64, 'itemId', None, None, ), # 1
18576
  )
18577
 
18578
  def __init__(self, itemId=None,):
18579
    self.itemId = itemId
18580
 
18581
  def read(self, iprot):
18582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18584
      return
18585
    iprot.readStructBegin()
18586
    while True:
18587
      (fname, ftype, fid) = iprot.readFieldBegin()
18588
      if ftype == TType.STOP:
18589
        break
18590
      if fid == 1:
18591
        if ftype == TType.I64:
18592
          self.itemId = iprot.readI64();
18593
        else:
18594
          iprot.skip(ftype)
18595
      else:
18596
        iprot.skip(ftype)
18597
      iprot.readFieldEnd()
18598
    iprot.readStructEnd()
18599
 
18600
  def write(self, oprot):
18601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18603
      return
18604
    oprot.writeStructBegin('getAllSourcePricing_args')
18605
    if self.itemId is not None:
18606
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18607
      oprot.writeI64(self.itemId)
18608
      oprot.writeFieldEnd()
18609
    oprot.writeFieldStop()
18610
    oprot.writeStructEnd()
18611
 
18612
  def validate(self):
18613
    return
18614
 
18615
 
18616
  def __repr__(self):
18617
    L = ['%s=%r' % (key, value)
18618
      for key, value in self.__dict__.iteritems()]
18619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18620
 
18621
  def __eq__(self, other):
18622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18623
 
18624
  def __ne__(self, other):
18625
    return not (self == other)
18626
 
18627
class getAllSourcePricing_result:
18628
  """
18629
  Attributes:
18630
   - success
18631
   - cex
18632
  """
18633
 
18634
  thrift_spec = (
18635
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18636
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18637
  )
18638
 
18639
  def __init__(self, success=None, cex=None,):
18640
    self.success = success
18641
    self.cex = cex
18642
 
18643
  def read(self, iprot):
18644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18646
      return
18647
    iprot.readStructBegin()
18648
    while True:
18649
      (fname, ftype, fid) = iprot.readFieldBegin()
18650
      if ftype == TType.STOP:
18651
        break
18652
      if fid == 0:
18653
        if ftype == TType.LIST:
18654
          self.success = []
12567 amit.gupta 18655
          (_etype330, _size327) = iprot.readListBegin()
18656
          for _i331 in xrange(_size327):
18657
            _elem332 = SourceItemPricing()
18658
            _elem332.read(iprot)
18659
            self.success.append(_elem332)
5944 mandeep.dh 18660
          iprot.readListEnd()
18661
        else:
18662
          iprot.skip(ftype)
18663
      elif fid == 1:
18664
        if ftype == TType.STRUCT:
18665
          self.cex = CatalogServiceException()
18666
          self.cex.read(iprot)
18667
        else:
18668
          iprot.skip(ftype)
18669
      else:
18670
        iprot.skip(ftype)
18671
      iprot.readFieldEnd()
18672
    iprot.readStructEnd()
18673
 
18674
  def write(self, oprot):
18675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18677
      return
18678
    oprot.writeStructBegin('getAllSourcePricing_result')
18679
    if self.success is not None:
18680
      oprot.writeFieldBegin('success', TType.LIST, 0)
18681
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18682
      for iter333 in self.success:
18683
        iter333.write(oprot)
5944 mandeep.dh 18684
      oprot.writeListEnd()
18685
      oprot.writeFieldEnd()
18686
    if self.cex is not None:
18687
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18688
      self.cex.write(oprot)
18689
      oprot.writeFieldEnd()
18690
    oprot.writeFieldStop()
18691
    oprot.writeStructEnd()
18692
 
18693
  def validate(self):
18694
    return
18695
 
18696
 
18697
  def __repr__(self):
18698
    L = ['%s=%r' % (key, value)
18699
      for key, value in self.__dict__.iteritems()]
18700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18701
 
18702
  def __eq__(self, other):
18703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18704
 
18705
  def __ne__(self, other):
18706
    return not (self == other)
18707
 
18708
class getItemForSource_args:
18709
  """
18710
  Attributes:
18711
   - item_id
18712
   - sourceId
18713
  """
18714
 
18715
  thrift_spec = (
18716
    None, # 0
18717
    (1, TType.I64, 'item_id', None, None, ), # 1
18718
    (2, TType.I64, 'sourceId', None, None, ), # 2
18719
  )
18720
 
18721
  def __init__(self, item_id=None, sourceId=None,):
18722
    self.item_id = item_id
18723
    self.sourceId = sourceId
18724
 
18725
  def read(self, iprot):
18726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18728
      return
18729
    iprot.readStructBegin()
18730
    while True:
18731
      (fname, ftype, fid) = iprot.readFieldBegin()
18732
      if ftype == TType.STOP:
18733
        break
18734
      if fid == 1:
18735
        if ftype == TType.I64:
18736
          self.item_id = iprot.readI64();
18737
        else:
18738
          iprot.skip(ftype)
18739
      elif fid == 2:
18740
        if ftype == TType.I64:
18741
          self.sourceId = iprot.readI64();
18742
        else:
18743
          iprot.skip(ftype)
18744
      else:
18745
        iprot.skip(ftype)
18746
      iprot.readFieldEnd()
18747
    iprot.readStructEnd()
18748
 
18749
  def write(self, oprot):
18750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18752
      return
18753
    oprot.writeStructBegin('getItemForSource_args')
18754
    if self.item_id is not None:
18755
      oprot.writeFieldBegin('item_id', TType.I64, 1)
18756
      oprot.writeI64(self.item_id)
18757
      oprot.writeFieldEnd()
18758
    if self.sourceId is not None:
18759
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18760
      oprot.writeI64(self.sourceId)
18761
      oprot.writeFieldEnd()
18762
    oprot.writeFieldStop()
18763
    oprot.writeStructEnd()
18764
 
18765
  def validate(self):
18766
    return
18767
 
18768
 
18769
  def __repr__(self):
18770
    L = ['%s=%r' % (key, value)
18771
      for key, value in self.__dict__.iteritems()]
18772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18773
 
18774
  def __eq__(self, other):
18775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18776
 
18777
  def __ne__(self, other):
18778
    return not (self == other)
18779
 
18780
class getItemForSource_result:
18781
  """
18782
  Attributes:
18783
   - success
18784
   - cex
18785
  """
18786
 
18787
  thrift_spec = (
18788
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
18789
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18790
  )
18791
 
18792
  def __init__(self, success=None, cex=None,):
18793
    self.success = success
18794
    self.cex = cex
18795
 
18796
  def read(self, iprot):
18797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18799
      return
18800
    iprot.readStructBegin()
18801
    while True:
18802
      (fname, ftype, fid) = iprot.readFieldBegin()
18803
      if ftype == TType.STOP:
18804
        break
18805
      if fid == 0:
18806
        if ftype == TType.STRUCT:
18807
          self.success = Item()
18808
          self.success.read(iprot)
18809
        else:
18810
          iprot.skip(ftype)
18811
      elif fid == 1:
18812
        if ftype == TType.STRUCT:
18813
          self.cex = CatalogServiceException()
18814
          self.cex.read(iprot)
18815
        else:
18816
          iprot.skip(ftype)
18817
      else:
18818
        iprot.skip(ftype)
18819
      iprot.readFieldEnd()
18820
    iprot.readStructEnd()
18821
 
18822
  def write(self, oprot):
18823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18825
      return
18826
    oprot.writeStructBegin('getItemForSource_result')
18827
    if self.success is not None:
18828
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18829
      self.success.write(oprot)
18830
      oprot.writeFieldEnd()
18831
    if self.cex is not None:
18832
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18833
      self.cex.write(oprot)
18834
      oprot.writeFieldEnd()
18835
    oprot.writeFieldStop()
18836
    oprot.writeStructEnd()
18837
 
18838
  def validate(self):
18839
    return
18840
 
18841
 
18842
  def __repr__(self):
18843
    L = ['%s=%r' % (key, value)
18844
      for key, value in self.__dict__.iteritems()]
18845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18846
 
18847
  def __eq__(self, other):
18848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18849
 
18850
  def __ne__(self, other):
18851
    return not (self == other)
18852
 
18853
class searchItemsInRange_args:
18854
  """
18855
  Attributes:
18856
   - searchTerms
18857
   - offset
18858
   - limit
18859
  """
18860
 
18861
  thrift_spec = (
18862
    None, # 0
18863
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18864
    (2, TType.I64, 'offset', None, None, ), # 2
18865
    (3, TType.I64, 'limit', None, None, ), # 3
18866
  )
18867
 
18868
  def __init__(self, searchTerms=None, offset=None, limit=None,):
18869
    self.searchTerms = searchTerms
18870
    self.offset = offset
18871
    self.limit = limit
18872
 
18873
  def read(self, iprot):
18874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18876
      return
18877
    iprot.readStructBegin()
18878
    while True:
18879
      (fname, ftype, fid) = iprot.readFieldBegin()
18880
      if ftype == TType.STOP:
18881
        break
18882
      if fid == 1:
18883
        if ftype == TType.LIST:
18884
          self.searchTerms = []
12567 amit.gupta 18885
          (_etype337, _size334) = iprot.readListBegin()
18886
          for _i338 in xrange(_size334):
18887
            _elem339 = iprot.readString();
18888
            self.searchTerms.append(_elem339)
5944 mandeep.dh 18889
          iprot.readListEnd()
18890
        else:
18891
          iprot.skip(ftype)
18892
      elif fid == 2:
18893
        if ftype == TType.I64:
18894
          self.offset = iprot.readI64();
18895
        else:
18896
          iprot.skip(ftype)
18897
      elif fid == 3:
18898
        if ftype == TType.I64:
18899
          self.limit = iprot.readI64();
18900
        else:
18901
          iprot.skip(ftype)
18902
      else:
18903
        iprot.skip(ftype)
18904
      iprot.readFieldEnd()
18905
    iprot.readStructEnd()
18906
 
18907
  def write(self, oprot):
18908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18910
      return
18911
    oprot.writeStructBegin('searchItemsInRange_args')
18912
    if self.searchTerms is not None:
18913
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
18914
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 18915
      for iter340 in self.searchTerms:
18916
        oprot.writeString(iter340)
5944 mandeep.dh 18917
      oprot.writeListEnd()
18918
      oprot.writeFieldEnd()
18919
    if self.offset is not None:
18920
      oprot.writeFieldBegin('offset', TType.I64, 2)
18921
      oprot.writeI64(self.offset)
18922
      oprot.writeFieldEnd()
18923
    if self.limit is not None:
18924
      oprot.writeFieldBegin('limit', TType.I64, 3)
18925
      oprot.writeI64(self.limit)
18926
      oprot.writeFieldEnd()
18927
    oprot.writeFieldStop()
18928
    oprot.writeStructEnd()
18929
 
18930
  def validate(self):
18931
    return
18932
 
18933
 
18934
  def __repr__(self):
18935
    L = ['%s=%r' % (key, value)
18936
      for key, value in self.__dict__.iteritems()]
18937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18938
 
18939
  def __eq__(self, other):
18940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18941
 
18942
  def __ne__(self, other):
18943
    return not (self == other)
18944
 
18945
class searchItemsInRange_result:
18946
  """
18947
  Attributes:
18948
   - success
18949
  """
18950
 
18951
  thrift_spec = (
18952
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18953
  )
18954
 
18955
  def __init__(self, success=None,):
18956
    self.success = success
18957
 
18958
  def read(self, iprot):
18959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18961
      return
18962
    iprot.readStructBegin()
18963
    while True:
18964
      (fname, ftype, fid) = iprot.readFieldBegin()
18965
      if ftype == TType.STOP:
18966
        break
18967
      if fid == 0:
18968
        if ftype == TType.LIST:
18969
          self.success = []
12567 amit.gupta 18970
          (_etype344, _size341) = iprot.readListBegin()
18971
          for _i345 in xrange(_size341):
18972
            _elem346 = Item()
18973
            _elem346.read(iprot)
18974
            self.success.append(_elem346)
5944 mandeep.dh 18975
          iprot.readListEnd()
18976
        else:
18977
          iprot.skip(ftype)
18978
      else:
18979
        iprot.skip(ftype)
18980
      iprot.readFieldEnd()
18981
    iprot.readStructEnd()
18982
 
18983
  def write(self, oprot):
18984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18986
      return
18987
    oprot.writeStructBegin('searchItemsInRange_result')
18988
    if self.success is not None:
18989
      oprot.writeFieldBegin('success', TType.LIST, 0)
18990
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18991
      for iter347 in self.success:
18992
        iter347.write(oprot)
5944 mandeep.dh 18993
      oprot.writeListEnd()
18994
      oprot.writeFieldEnd()
18995
    oprot.writeFieldStop()
18996
    oprot.writeStructEnd()
18997
 
18998
  def validate(self):
18999
    return
19000
 
19001
 
19002
  def __repr__(self):
19003
    L = ['%s=%r' % (key, value)
19004
      for key, value in self.__dict__.iteritems()]
19005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19006
 
19007
  def __eq__(self, other):
19008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19009
 
19010
  def __ne__(self, other):
19011
    return not (self == other)
19012
 
19013
class getSearchResultCount_args:
19014
  """
19015
  Attributes:
19016
   - searchTerms
19017
  """
19018
 
19019
  thrift_spec = (
19020
    None, # 0
19021
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19022
  )
19023
 
19024
  def __init__(self, searchTerms=None,):
19025
    self.searchTerms = searchTerms
19026
 
19027
  def read(self, iprot):
19028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19030
      return
19031
    iprot.readStructBegin()
19032
    while True:
19033
      (fname, ftype, fid) = iprot.readFieldBegin()
19034
      if ftype == TType.STOP:
19035
        break
19036
      if fid == 1:
19037
        if ftype == TType.LIST:
19038
          self.searchTerms = []
12567 amit.gupta 19039
          (_etype351, _size348) = iprot.readListBegin()
19040
          for _i352 in xrange(_size348):
19041
            _elem353 = iprot.readString();
19042
            self.searchTerms.append(_elem353)
5944 mandeep.dh 19043
          iprot.readListEnd()
19044
        else:
19045
          iprot.skip(ftype)
19046
      else:
19047
        iprot.skip(ftype)
19048
      iprot.readFieldEnd()
19049
    iprot.readStructEnd()
19050
 
19051
  def write(self, oprot):
19052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19054
      return
19055
    oprot.writeStructBegin('getSearchResultCount_args')
19056
    if self.searchTerms is not None:
19057
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19058
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19059
      for iter354 in self.searchTerms:
19060
        oprot.writeString(iter354)
5944 mandeep.dh 19061
      oprot.writeListEnd()
19062
      oprot.writeFieldEnd()
19063
    oprot.writeFieldStop()
19064
    oprot.writeStructEnd()
19065
 
19066
  def validate(self):
19067
    return
19068
 
19069
 
19070
  def __repr__(self):
19071
    L = ['%s=%r' % (key, value)
19072
      for key, value in self.__dict__.iteritems()]
19073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19074
 
19075
  def __eq__(self, other):
19076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19077
 
19078
  def __ne__(self, other):
19079
    return not (self == other)
19080
 
19081
class getSearchResultCount_result:
19082
  """
19083
  Attributes:
19084
   - success
19085
  """
19086
 
19087
  thrift_spec = (
19088
    (0, TType.I32, 'success', None, None, ), # 0
19089
  )
19090
 
19091
  def __init__(self, success=None,):
19092
    self.success = success
19093
 
19094
  def read(self, iprot):
19095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19097
      return
19098
    iprot.readStructBegin()
19099
    while True:
19100
      (fname, ftype, fid) = iprot.readFieldBegin()
19101
      if ftype == TType.STOP:
19102
        break
19103
      if fid == 0:
19104
        if ftype == TType.I32:
19105
          self.success = iprot.readI32();
19106
        else:
19107
          iprot.skip(ftype)
19108
      else:
19109
        iprot.skip(ftype)
19110
      iprot.readFieldEnd()
19111
    iprot.readStructEnd()
19112
 
19113
  def write(self, oprot):
19114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19116
      return
19117
    oprot.writeStructBegin('getSearchResultCount_result')
19118
    if self.success is not None:
19119
      oprot.writeFieldBegin('success', TType.I32, 0)
19120
      oprot.writeI32(self.success)
19121
      oprot.writeFieldEnd()
19122
    oprot.writeFieldStop()
19123
    oprot.writeStructEnd()
19124
 
19125
  def validate(self):
19126
    return
19127
 
19128
 
19129
  def __repr__(self):
19130
    L = ['%s=%r' % (key, value)
19131
      for key, value in self.__dict__.iteritems()]
19132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19133
 
19134
  def __eq__(self, other):
19135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19136
 
19137
  def __ne__(self, other):
19138
    return not (self == other)
19139
 
19140
class getProductNotifications_args:
19141
  """
19142
  Attributes:
19143
   - startDateTime
19144
  """
19145
 
19146
  thrift_spec = (
19147
    None, # 0
19148
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19149
  )
19150
 
19151
  def __init__(self, startDateTime=None,):
19152
    self.startDateTime = startDateTime
19153
 
19154
  def read(self, iprot):
19155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19157
      return
19158
    iprot.readStructBegin()
19159
    while True:
19160
      (fname, ftype, fid) = iprot.readFieldBegin()
19161
      if ftype == TType.STOP:
19162
        break
19163
      if fid == 1:
19164
        if ftype == TType.I64:
19165
          self.startDateTime = iprot.readI64();
19166
        else:
19167
          iprot.skip(ftype)
19168
      else:
19169
        iprot.skip(ftype)
19170
      iprot.readFieldEnd()
19171
    iprot.readStructEnd()
19172
 
19173
  def write(self, oprot):
19174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19176
      return
19177
    oprot.writeStructBegin('getProductNotifications_args')
19178
    if self.startDateTime is not None:
19179
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19180
      oprot.writeI64(self.startDateTime)
19181
      oprot.writeFieldEnd()
19182
    oprot.writeFieldStop()
19183
    oprot.writeStructEnd()
19184
 
19185
  def validate(self):
19186
    return
19187
 
19188
 
19189
  def __repr__(self):
19190
    L = ['%s=%r' % (key, value)
19191
      for key, value in self.__dict__.iteritems()]
19192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19193
 
19194
  def __eq__(self, other):
19195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19196
 
19197
  def __ne__(self, other):
19198
    return not (self == other)
19199
 
19200
class getProductNotifications_result:
19201
  """
19202
  Attributes:
19203
   - success
19204
  """
19205
 
19206
  thrift_spec = (
19207
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19208
  )
19209
 
19210
  def __init__(self, success=None,):
19211
    self.success = success
19212
 
19213
  def read(self, iprot):
19214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19216
      return
19217
    iprot.readStructBegin()
19218
    while True:
19219
      (fname, ftype, fid) = iprot.readFieldBegin()
19220
      if ftype == TType.STOP:
19221
        break
19222
      if fid == 0:
19223
        if ftype == TType.LIST:
19224
          self.success = []
12567 amit.gupta 19225
          (_etype358, _size355) = iprot.readListBegin()
19226
          for _i359 in xrange(_size355):
19227
            _elem360 = ProductNotificationRequest()
19228
            _elem360.read(iprot)
19229
            self.success.append(_elem360)
5944 mandeep.dh 19230
          iprot.readListEnd()
19231
        else:
19232
          iprot.skip(ftype)
19233
      else:
19234
        iprot.skip(ftype)
19235
      iprot.readFieldEnd()
19236
    iprot.readStructEnd()
19237
 
19238
  def write(self, oprot):
19239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19241
      return
19242
    oprot.writeStructBegin('getProductNotifications_result')
19243
    if self.success is not None:
19244
      oprot.writeFieldBegin('success', TType.LIST, 0)
19245
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19246
      for iter361 in self.success:
19247
        iter361.write(oprot)
5944 mandeep.dh 19248
      oprot.writeListEnd()
19249
      oprot.writeFieldEnd()
19250
    oprot.writeFieldStop()
19251
    oprot.writeStructEnd()
19252
 
19253
  def validate(self):
19254
    return
19255
 
19256
 
19257
  def __repr__(self):
19258
    L = ['%s=%r' % (key, value)
19259
      for key, value in self.__dict__.iteritems()]
19260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19261
 
19262
  def __eq__(self, other):
19263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19264
 
19265
  def __ne__(self, other):
19266
    return not (self == other)
19267
 
19268
class getProductNotificationRequestCount_args:
19269
  """
19270
  Attributes:
19271
   - startDateTime
7897 amar.kumar 19272
   - categoryId
5944 mandeep.dh 19273
  """
19274
 
19275
  thrift_spec = (
19276
    None, # 0
19277
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19278
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19279
  )
19280
 
7897 amar.kumar 19281
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19282
    self.startDateTime = startDateTime
7897 amar.kumar 19283
    self.categoryId = categoryId
5944 mandeep.dh 19284
 
19285
  def read(self, iprot):
19286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19288
      return
19289
    iprot.readStructBegin()
19290
    while True:
19291
      (fname, ftype, fid) = iprot.readFieldBegin()
19292
      if ftype == TType.STOP:
19293
        break
19294
      if fid == 1:
19295
        if ftype == TType.I64:
19296
          self.startDateTime = iprot.readI64();
19297
        else:
19298
          iprot.skip(ftype)
7897 amar.kumar 19299
      elif fid == 2:
19300
        if ftype == TType.I64:
19301
          self.categoryId = iprot.readI64();
19302
        else:
19303
          iprot.skip(ftype)
5944 mandeep.dh 19304
      else:
19305
        iprot.skip(ftype)
19306
      iprot.readFieldEnd()
19307
    iprot.readStructEnd()
19308
 
19309
  def write(self, oprot):
19310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19312
      return
19313
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19314
    if self.startDateTime is not None:
19315
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19316
      oprot.writeI64(self.startDateTime)
19317
      oprot.writeFieldEnd()
7897 amar.kumar 19318
    if self.categoryId is not None:
19319
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19320
      oprot.writeI64(self.categoryId)
19321
      oprot.writeFieldEnd()
5944 mandeep.dh 19322
    oprot.writeFieldStop()
19323
    oprot.writeStructEnd()
19324
 
19325
  def validate(self):
19326
    return
19327
 
19328
 
19329
  def __repr__(self):
19330
    L = ['%s=%r' % (key, value)
19331
      for key, value in self.__dict__.iteritems()]
19332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19333
 
19334
  def __eq__(self, other):
19335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19336
 
19337
  def __ne__(self, other):
19338
    return not (self == other)
19339
 
19340
class getProductNotificationRequestCount_result:
19341
  """
19342
  Attributes:
19343
   - success
19344
  """
19345
 
19346
  thrift_spec = (
19347
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19348
  )
19349
 
19350
  def __init__(self, success=None,):
19351
    self.success = success
19352
 
19353
  def read(self, iprot):
19354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19356
      return
19357
    iprot.readStructBegin()
19358
    while True:
19359
      (fname, ftype, fid) = iprot.readFieldBegin()
19360
      if ftype == TType.STOP:
19361
        break
19362
      if fid == 0:
19363
        if ftype == TType.LIST:
19364
          self.success = []
12567 amit.gupta 19365
          (_etype365, _size362) = iprot.readListBegin()
19366
          for _i366 in xrange(_size362):
19367
            _elem367 = ProductNotificationRequestCount()
19368
            _elem367.read(iprot)
19369
            self.success.append(_elem367)
5944 mandeep.dh 19370
          iprot.readListEnd()
19371
        else:
19372
          iprot.skip(ftype)
19373
      else:
19374
        iprot.skip(ftype)
19375
      iprot.readFieldEnd()
19376
    iprot.readStructEnd()
19377
 
19378
  def write(self, oprot):
19379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19381
      return
19382
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19383
    if self.success is not None:
19384
      oprot.writeFieldBegin('success', TType.LIST, 0)
19385
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19386
      for iter368 in self.success:
19387
        iter368.write(oprot)
5944 mandeep.dh 19388
      oprot.writeListEnd()
19389
      oprot.writeFieldEnd()
19390
    oprot.writeFieldStop()
19391
    oprot.writeStructEnd()
19392
 
19393
  def validate(self):
19394
    return
19395
 
19396
 
19397
  def __repr__(self):
19398
    L = ['%s=%r' % (key, value)
19399
      for key, value in self.__dict__.iteritems()]
19400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19401
 
19402
  def __eq__(self, other):
19403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19404
 
19405
  def __ne__(self, other):
19406
    return not (self == other)
19407
 
19408
class addAuthorizationLog_args:
19409
  """
19410
  Attributes:
19411
   - itemId
19412
   - username
19413
   - reason
19414
  """
19415
 
19416
  thrift_spec = (
19417
    None, # 0
19418
    (1, TType.I64, 'itemId', None, None, ), # 1
19419
    (2, TType.STRING, 'username', None, None, ), # 2
19420
    (3, TType.STRING, 'reason', None, None, ), # 3
19421
  )
19422
 
19423
  def __init__(self, itemId=None, username=None, reason=None,):
19424
    self.itemId = itemId
19425
    self.username = username
19426
    self.reason = reason
19427
 
19428
  def read(self, iprot):
19429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19431
      return
19432
    iprot.readStructBegin()
19433
    while True:
19434
      (fname, ftype, fid) = iprot.readFieldBegin()
19435
      if ftype == TType.STOP:
19436
        break
19437
      if fid == 1:
19438
        if ftype == TType.I64:
19439
          self.itemId = iprot.readI64();
19440
        else:
19441
          iprot.skip(ftype)
19442
      elif fid == 2:
19443
        if ftype == TType.STRING:
19444
          self.username = iprot.readString();
19445
        else:
19446
          iprot.skip(ftype)
19447
      elif fid == 3:
19448
        if ftype == TType.STRING:
19449
          self.reason = iprot.readString();
19450
        else:
19451
          iprot.skip(ftype)
19452
      else:
19453
        iprot.skip(ftype)
19454
      iprot.readFieldEnd()
19455
    iprot.readStructEnd()
19456
 
19457
  def write(self, oprot):
19458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19460
      return
19461
    oprot.writeStructBegin('addAuthorizationLog_args')
19462
    if self.itemId is not None:
19463
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19464
      oprot.writeI64(self.itemId)
19465
      oprot.writeFieldEnd()
19466
    if self.username is not None:
19467
      oprot.writeFieldBegin('username', TType.STRING, 2)
19468
      oprot.writeString(self.username)
19469
      oprot.writeFieldEnd()
19470
    if self.reason is not None:
19471
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19472
      oprot.writeString(self.reason)
19473
      oprot.writeFieldEnd()
19474
    oprot.writeFieldStop()
19475
    oprot.writeStructEnd()
19476
 
19477
  def validate(self):
19478
    return
19479
 
19480
 
19481
  def __repr__(self):
19482
    L = ['%s=%r' % (key, value)
19483
      for key, value in self.__dict__.iteritems()]
19484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19485
 
19486
  def __eq__(self, other):
19487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19488
 
19489
  def __ne__(self, other):
19490
    return not (self == other)
19491
 
19492
class addAuthorizationLog_result:
19493
  """
19494
  Attributes:
19495
   - success
19496
   - cex
19497
  """
19498
 
19499
  thrift_spec = (
19500
    (0, TType.BOOL, 'success', None, None, ), # 0
19501
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19502
  )
19503
 
19504
  def __init__(self, success=None, cex=None,):
19505
    self.success = success
19506
    self.cex = cex
19507
 
19508
  def read(self, iprot):
19509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19511
      return
19512
    iprot.readStructBegin()
19513
    while True:
19514
      (fname, ftype, fid) = iprot.readFieldBegin()
19515
      if ftype == TType.STOP:
19516
        break
19517
      if fid == 0:
19518
        if ftype == TType.BOOL:
19519
          self.success = iprot.readBool();
19520
        else:
19521
          iprot.skip(ftype)
19522
      elif fid == 1:
19523
        if ftype == TType.STRUCT:
19524
          self.cex = CatalogServiceException()
19525
          self.cex.read(iprot)
19526
        else:
19527
          iprot.skip(ftype)
19528
      else:
19529
        iprot.skip(ftype)
19530
      iprot.readFieldEnd()
19531
    iprot.readStructEnd()
19532
 
19533
  def write(self, oprot):
19534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19536
      return
19537
    oprot.writeStructBegin('addAuthorizationLog_result')
19538
    if self.success is not None:
19539
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19540
      oprot.writeBool(self.success)
19541
      oprot.writeFieldEnd()
19542
    if self.cex is not None:
19543
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19544
      self.cex.write(oprot)
19545
      oprot.writeFieldEnd()
19546
    oprot.writeFieldStop()
19547
    oprot.writeStructEnd()
19548
 
19549
  def validate(self):
19550
    return
19551
 
19552
 
19553
  def __repr__(self):
19554
    L = ['%s=%r' % (key, value)
19555
      for key, value in self.__dict__.iteritems()]
19556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19557
 
19558
  def __eq__(self, other):
19559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19560
 
19561
  def __ne__(self, other):
19562
    return not (self == other)
19563
 
19564
class addupdateVoucherForItem_args:
19565
  """
19566
  Attributes:
19567
   - catalog_item_id
19568
   - voucherType
19569
   - voucherAmount
19570
  """
19571
 
19572
  thrift_spec = (
19573
    None, # 0
19574
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19575
    (2, TType.I64, 'voucherType', None, None, ), # 2
19576
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19577
  )
19578
 
19579
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19580
    self.catalog_item_id = catalog_item_id
19581
    self.voucherType = voucherType
19582
    self.voucherAmount = voucherAmount
19583
 
19584
  def read(self, iprot):
19585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19587
      return
19588
    iprot.readStructBegin()
19589
    while True:
19590
      (fname, ftype, fid) = iprot.readFieldBegin()
19591
      if ftype == TType.STOP:
19592
        break
19593
      if fid == 1:
19594
        if ftype == TType.I64:
19595
          self.catalog_item_id = iprot.readI64();
19596
        else:
19597
          iprot.skip(ftype)
19598
      elif fid == 2:
19599
        if ftype == TType.I64:
19600
          self.voucherType = iprot.readI64();
19601
        else:
19602
          iprot.skip(ftype)
19603
      elif fid == 3:
19604
        if ftype == TType.I64:
19605
          self.voucherAmount = iprot.readI64();
19606
        else:
19607
          iprot.skip(ftype)
19608
      else:
19609
        iprot.skip(ftype)
19610
      iprot.readFieldEnd()
19611
    iprot.readStructEnd()
19612
 
19613
  def write(self, oprot):
19614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19616
      return
19617
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19618
    if self.catalog_item_id is not None:
19619
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19620
      oprot.writeI64(self.catalog_item_id)
19621
      oprot.writeFieldEnd()
19622
    if self.voucherType is not None:
19623
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19624
      oprot.writeI64(self.voucherType)
19625
      oprot.writeFieldEnd()
19626
    if self.voucherAmount is not None:
19627
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19628
      oprot.writeI64(self.voucherAmount)
19629
      oprot.writeFieldEnd()
19630
    oprot.writeFieldStop()
19631
    oprot.writeStructEnd()
19632
 
19633
  def validate(self):
19634
    return
19635
 
19636
 
19637
  def __repr__(self):
19638
    L = ['%s=%r' % (key, value)
19639
      for key, value in self.__dict__.iteritems()]
19640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19641
 
19642
  def __eq__(self, other):
19643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19644
 
19645
  def __ne__(self, other):
19646
    return not (self == other)
19647
 
19648
class addupdateVoucherForItem_result:
19649
  """
19650
  Attributes:
19651
   - success
19652
   - cex
19653
  """
19654
 
19655
  thrift_spec = (
19656
    (0, TType.BOOL, 'success', None, None, ), # 0
19657
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19658
  )
19659
 
19660
  def __init__(self, success=None, cex=None,):
19661
    self.success = success
19662
    self.cex = cex
19663
 
19664
  def read(self, iprot):
19665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19667
      return
19668
    iprot.readStructBegin()
19669
    while True:
19670
      (fname, ftype, fid) = iprot.readFieldBegin()
19671
      if ftype == TType.STOP:
19672
        break
19673
      if fid == 0:
19674
        if ftype == TType.BOOL:
19675
          self.success = iprot.readBool();
19676
        else:
19677
          iprot.skip(ftype)
19678
      elif fid == 1:
19679
        if ftype == TType.STRUCT:
19680
          self.cex = CatalogServiceException()
19681
          self.cex.read(iprot)
19682
        else:
19683
          iprot.skip(ftype)
19684
      else:
19685
        iprot.skip(ftype)
19686
      iprot.readFieldEnd()
19687
    iprot.readStructEnd()
19688
 
19689
  def write(self, oprot):
19690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19692
      return
19693
    oprot.writeStructBegin('addupdateVoucherForItem_result')
19694
    if self.success is not None:
19695
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19696
      oprot.writeBool(self.success)
19697
      oprot.writeFieldEnd()
19698
    if self.cex is not None:
19699
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19700
      self.cex.write(oprot)
19701
      oprot.writeFieldEnd()
19702
    oprot.writeFieldStop()
19703
    oprot.writeStructEnd()
19704
 
19705
  def validate(self):
19706
    return
19707
 
19708
 
19709
  def __repr__(self):
19710
    L = ['%s=%r' % (key, value)
19711
      for key, value in self.__dict__.iteritems()]
19712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19713
 
19714
  def __eq__(self, other):
19715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19716
 
19717
  def __ne__(self, other):
19718
    return not (self == other)
19719
 
19720
class deleteVoucherForItem_args:
19721
  """
19722
  Attributes:
19723
   - catalog_item_id
19724
   - voucherType
19725
  """
19726
 
19727
  thrift_spec = (
19728
    None, # 0
19729
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19730
    (2, TType.I64, 'voucherType', None, None, ), # 2
19731
  )
19732
 
19733
  def __init__(self, catalog_item_id=None, voucherType=None,):
19734
    self.catalog_item_id = catalog_item_id
19735
    self.voucherType = voucherType
19736
 
19737
  def read(self, iprot):
19738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19740
      return
19741
    iprot.readStructBegin()
19742
    while True:
19743
      (fname, ftype, fid) = iprot.readFieldBegin()
19744
      if ftype == TType.STOP:
19745
        break
19746
      if fid == 1:
19747
        if ftype == TType.I64:
19748
          self.catalog_item_id = iprot.readI64();
19749
        else:
19750
          iprot.skip(ftype)
19751
      elif fid == 2:
19752
        if ftype == TType.I64:
19753
          self.voucherType = iprot.readI64();
19754
        else:
19755
          iprot.skip(ftype)
19756
      else:
19757
        iprot.skip(ftype)
19758
      iprot.readFieldEnd()
19759
    iprot.readStructEnd()
19760
 
19761
  def write(self, oprot):
19762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19764
      return
19765
    oprot.writeStructBegin('deleteVoucherForItem_args')
19766
    if self.catalog_item_id is not None:
19767
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19768
      oprot.writeI64(self.catalog_item_id)
19769
      oprot.writeFieldEnd()
19770
    if self.voucherType is not None:
19771
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19772
      oprot.writeI64(self.voucherType)
19773
      oprot.writeFieldEnd()
19774
    oprot.writeFieldStop()
19775
    oprot.writeStructEnd()
19776
 
19777
  def validate(self):
19778
    return
19779
 
19780
 
19781
  def __repr__(self):
19782
    L = ['%s=%r' % (key, value)
19783
      for key, value in self.__dict__.iteritems()]
19784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19785
 
19786
  def __eq__(self, other):
19787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19788
 
19789
  def __ne__(self, other):
19790
    return not (self == other)
19791
 
19792
class deleteVoucherForItem_result:
19793
  """
19794
  Attributes:
19795
   - success
19796
   - cex
19797
  """
19798
 
19799
  thrift_spec = (
19800
    (0, TType.BOOL, 'success', None, None, ), # 0
19801
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19802
  )
19803
 
19804
  def __init__(self, success=None, cex=None,):
19805
    self.success = success
19806
    self.cex = cex
19807
 
19808
  def read(self, iprot):
19809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19811
      return
19812
    iprot.readStructBegin()
19813
    while True:
19814
      (fname, ftype, fid) = iprot.readFieldBegin()
19815
      if ftype == TType.STOP:
19816
        break
19817
      if fid == 0:
19818
        if ftype == TType.BOOL:
19819
          self.success = iprot.readBool();
19820
        else:
19821
          iprot.skip(ftype)
19822
      elif fid == 1:
19823
        if ftype == TType.STRUCT:
19824
          self.cex = CatalogServiceException()
19825
          self.cex.read(iprot)
19826
        else:
19827
          iprot.skip(ftype)
19828
      else:
19829
        iprot.skip(ftype)
19830
      iprot.readFieldEnd()
19831
    iprot.readStructEnd()
19832
 
19833
  def write(self, oprot):
19834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19836
      return
19837
    oprot.writeStructBegin('deleteVoucherForItem_result')
19838
    if self.success is not None:
19839
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19840
      oprot.writeBool(self.success)
19841
      oprot.writeFieldEnd()
19842
    if self.cex is not None:
19843
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19844
      self.cex.write(oprot)
19845
      oprot.writeFieldEnd()
19846
    oprot.writeFieldStop()
19847
    oprot.writeStructEnd()
19848
 
19849
  def validate(self):
19850
    return
19851
 
19852
 
19853
  def __repr__(self):
19854
    L = ['%s=%r' % (key, value)
19855
      for key, value in self.__dict__.iteritems()]
19856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19857
 
19858
  def __eq__(self, other):
19859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19860
 
19861
  def __ne__(self, other):
19862
    return not (self == other)
19863
 
19864
class getVoucherAmount_args:
19865
  """
19866
  Attributes:
19867
   - itemId
19868
   - voucherType
19869
  """
19870
 
19871
  thrift_spec = (
19872
    None, # 0
19873
    (1, TType.I64, 'itemId', None, None, ), # 1
19874
    (2, TType.I64, 'voucherType', None, None, ), # 2
19875
  )
19876
 
19877
  def __init__(self, itemId=None, voucherType=None,):
19878
    self.itemId = itemId
19879
    self.voucherType = voucherType
19880
 
19881
  def read(self, iprot):
19882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19884
      return
19885
    iprot.readStructBegin()
19886
    while True:
19887
      (fname, ftype, fid) = iprot.readFieldBegin()
19888
      if ftype == TType.STOP:
19889
        break
19890
      if fid == 1:
19891
        if ftype == TType.I64:
19892
          self.itemId = iprot.readI64();
19893
        else:
19894
          iprot.skip(ftype)
19895
      elif fid == 2:
19896
        if ftype == TType.I64:
19897
          self.voucherType = iprot.readI64();
19898
        else:
19899
          iprot.skip(ftype)
19900
      else:
19901
        iprot.skip(ftype)
19902
      iprot.readFieldEnd()
19903
    iprot.readStructEnd()
19904
 
19905
  def write(self, oprot):
19906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19908
      return
19909
    oprot.writeStructBegin('getVoucherAmount_args')
19910
    if self.itemId is not None:
19911
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19912
      oprot.writeI64(self.itemId)
19913
      oprot.writeFieldEnd()
19914
    if self.voucherType is not None:
19915
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19916
      oprot.writeI64(self.voucherType)
19917
      oprot.writeFieldEnd()
19918
    oprot.writeFieldStop()
19919
    oprot.writeStructEnd()
19920
 
19921
  def validate(self):
19922
    return
19923
 
19924
 
19925
  def __repr__(self):
19926
    L = ['%s=%r' % (key, value)
19927
      for key, value in self.__dict__.iteritems()]
19928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19929
 
19930
  def __eq__(self, other):
19931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19932
 
19933
  def __ne__(self, other):
19934
    return not (self == other)
19935
 
19936
class getVoucherAmount_result:
19937
  """
19938
  Attributes:
19939
   - success
19940
  """
19941
 
19942
  thrift_spec = (
19943
    (0, TType.I64, 'success', None, None, ), # 0
19944
  )
19945
 
19946
  def __init__(self, success=None,):
19947
    self.success = success
19948
 
19949
  def read(self, iprot):
19950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19952
      return
19953
    iprot.readStructBegin()
19954
    while True:
19955
      (fname, ftype, fid) = iprot.readFieldBegin()
19956
      if ftype == TType.STOP:
19957
        break
19958
      if fid == 0:
19959
        if ftype == TType.I64:
19960
          self.success = iprot.readI64();
19961
        else:
19962
          iprot.skip(ftype)
19963
      else:
19964
        iprot.skip(ftype)
19965
      iprot.readFieldEnd()
19966
    iprot.readStructEnd()
19967
 
19968
  def write(self, oprot):
19969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19971
      return
19972
    oprot.writeStructBegin('getVoucherAmount_result')
19973
    if self.success is not None:
19974
      oprot.writeFieldBegin('success', TType.I64, 0)
19975
      oprot.writeI64(self.success)
19976
      oprot.writeFieldEnd()
19977
    oprot.writeFieldStop()
19978
    oprot.writeStructEnd()
19979
 
19980
  def validate(self):
19981
    return
19982
 
19983
 
19984
  def __repr__(self):
19985
    L = ['%s=%r' % (key, value)
19986
      for key, value in self.__dict__.iteritems()]
19987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19988
 
19989
  def __eq__(self, other):
19990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19991
 
19992
  def __ne__(self, other):
19993
    return not (self == other)
19994
 
19995
class getAllItemVouchers_args:
19996
  """
19997
  Attributes:
19998
   - itemId
19999
  """
20000
 
20001
  thrift_spec = (
20002
    None, # 0
20003
    (1, TType.I64, 'itemId', None, None, ), # 1
20004
  )
20005
 
20006
  def __init__(self, itemId=None,):
20007
    self.itemId = itemId
20008
 
20009
  def read(self, iprot):
20010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20012
      return
20013
    iprot.readStructBegin()
20014
    while True:
20015
      (fname, ftype, fid) = iprot.readFieldBegin()
20016
      if ftype == TType.STOP:
20017
        break
20018
      if fid == 1:
20019
        if ftype == TType.I64:
20020
          self.itemId = iprot.readI64();
20021
        else:
20022
          iprot.skip(ftype)
20023
      else:
20024
        iprot.skip(ftype)
20025
      iprot.readFieldEnd()
20026
    iprot.readStructEnd()
20027
 
20028
  def write(self, oprot):
20029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20031
      return
20032
    oprot.writeStructBegin('getAllItemVouchers_args')
20033
    if self.itemId is not None:
20034
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20035
      oprot.writeI64(self.itemId)
20036
      oprot.writeFieldEnd()
20037
    oprot.writeFieldStop()
20038
    oprot.writeStructEnd()
20039
 
20040
  def validate(self):
20041
    return
20042
 
20043
 
20044
  def __repr__(self):
20045
    L = ['%s=%r' % (key, value)
20046
      for key, value in self.__dict__.iteritems()]
20047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20048
 
20049
  def __eq__(self, other):
20050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20051
 
20052
  def __ne__(self, other):
20053
    return not (self == other)
20054
 
20055
class getAllItemVouchers_result:
20056
  """
20057
  Attributes:
20058
   - success
20059
  """
20060
 
20061
  thrift_spec = (
20062
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20063
  )
20064
 
20065
  def __init__(self, success=None,):
20066
    self.success = success
20067
 
20068
  def read(self, iprot):
20069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20071
      return
20072
    iprot.readStructBegin()
20073
    while True:
20074
      (fname, ftype, fid) = iprot.readFieldBegin()
20075
      if ftype == TType.STOP:
20076
        break
20077
      if fid == 0:
20078
        if ftype == TType.LIST:
20079
          self.success = []
12567 amit.gupta 20080
          (_etype372, _size369) = iprot.readListBegin()
20081
          for _i373 in xrange(_size369):
20082
            _elem374 = VoucherItemMapping()
20083
            _elem374.read(iprot)
20084
            self.success.append(_elem374)
5944 mandeep.dh 20085
          iprot.readListEnd()
20086
        else:
20087
          iprot.skip(ftype)
20088
      else:
20089
        iprot.skip(ftype)
20090
      iprot.readFieldEnd()
20091
    iprot.readStructEnd()
20092
 
20093
  def write(self, oprot):
20094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20096
      return
20097
    oprot.writeStructBegin('getAllItemVouchers_result')
20098
    if self.success is not None:
20099
      oprot.writeFieldBegin('success', TType.LIST, 0)
20100
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20101
      for iter375 in self.success:
20102
        iter375.write(oprot)
5944 mandeep.dh 20103
      oprot.writeListEnd()
20104
      oprot.writeFieldEnd()
20105
    oprot.writeFieldStop()
20106
    oprot.writeStructEnd()
20107
 
20108
  def validate(self):
20109
    return
20110
 
20111
 
20112
  def __repr__(self):
20113
    L = ['%s=%r' % (key, value)
20114
      for key, value in self.__dict__.iteritems()]
20115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20116
 
20117
  def __eq__(self, other):
20118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20119
 
20120
  def __ne__(self, other):
20121
    return not (self == other)
20122
 
20123
class isValidCatalogItemId_args:
20124
  """
20125
  Attributes:
20126
   - catalog_item_id
20127
  """
20128
 
20129
  thrift_spec = (
20130
    None, # 0
20131
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20132
  )
20133
 
20134
  def __init__(self, catalog_item_id=None,):
20135
    self.catalog_item_id = catalog_item_id
20136
 
20137
  def read(self, iprot):
20138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20140
      return
20141
    iprot.readStructBegin()
20142
    while True:
20143
      (fname, ftype, fid) = iprot.readFieldBegin()
20144
      if ftype == TType.STOP:
20145
        break
20146
      if fid == 1:
20147
        if ftype == TType.I64:
20148
          self.catalog_item_id = iprot.readI64();
20149
        else:
20150
          iprot.skip(ftype)
20151
      else:
20152
        iprot.skip(ftype)
20153
      iprot.readFieldEnd()
20154
    iprot.readStructEnd()
20155
 
20156
  def write(self, oprot):
20157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20159
      return
20160
    oprot.writeStructBegin('isValidCatalogItemId_args')
20161
    if self.catalog_item_id is not None:
20162
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20163
      oprot.writeI64(self.catalog_item_id)
20164
      oprot.writeFieldEnd()
20165
    oprot.writeFieldStop()
20166
    oprot.writeStructEnd()
20167
 
20168
  def validate(self):
20169
    return
20170
 
20171
 
20172
  def __repr__(self):
20173
    L = ['%s=%r' % (key, value)
20174
      for key, value in self.__dict__.iteritems()]
20175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20176
 
20177
  def __eq__(self, other):
20178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20179
 
20180
  def __ne__(self, other):
20181
    return not (self == other)
20182
 
20183
class isValidCatalogItemId_result:
20184
  """
20185
  Attributes:
20186
   - success
20187
  """
20188
 
20189
  thrift_spec = (
20190
    (0, TType.BOOL, 'success', None, None, ), # 0
20191
  )
20192
 
20193
  def __init__(self, success=None,):
20194
    self.success = success
20195
 
20196
  def read(self, iprot):
20197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20199
      return
20200
    iprot.readStructBegin()
20201
    while True:
20202
      (fname, ftype, fid) = iprot.readFieldBegin()
20203
      if ftype == TType.STOP:
20204
        break
20205
      if fid == 0:
20206
        if ftype == TType.BOOL:
20207
          self.success = iprot.readBool();
20208
        else:
20209
          iprot.skip(ftype)
20210
      else:
20211
        iprot.skip(ftype)
20212
      iprot.readFieldEnd()
20213
    iprot.readStructEnd()
20214
 
20215
  def write(self, oprot):
20216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20218
      return
20219
    oprot.writeStructBegin('isValidCatalogItemId_result')
20220
    if self.success is not None:
20221
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20222
      oprot.writeBool(self.success)
20223
      oprot.writeFieldEnd()
20224
    oprot.writeFieldStop()
20225
    oprot.writeStructEnd()
20226
 
20227
  def validate(self):
20228
    return
20229
 
20230
 
20231
  def __repr__(self):
20232
    L = ['%s=%r' % (key, value)
20233
      for key, value in self.__dict__.iteritems()]
20234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20235
 
20236
  def __eq__(self, other):
20237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20238
 
20239
  def __ne__(self, other):
20240
    return not (self == other)
6039 amit.gupta 20241
 
20242
class getVatPercentageForItem_args:
20243
  """
20244
  Attributes:
20245
   - itemId
7330 amit.gupta 20246
   - stateId
6039 amit.gupta 20247
   - price
20248
  """
20249
 
20250
  thrift_spec = (
20251
    None, # 0
20252
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20253
    (2, TType.I64, 'stateId', None, None, ), # 2
20254
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20255
  )
20256
 
7330 amit.gupta 20257
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20258
    self.itemId = itemId
7330 amit.gupta 20259
    self.stateId = stateId
6039 amit.gupta 20260
    self.price = price
20261
 
20262
  def read(self, iprot):
20263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20265
      return
20266
    iprot.readStructBegin()
20267
    while True:
20268
      (fname, ftype, fid) = iprot.readFieldBegin()
20269
      if ftype == TType.STOP:
20270
        break
20271
      if fid == 1:
20272
        if ftype == TType.I64:
20273
          self.itemId = iprot.readI64();
20274
        else:
20275
          iprot.skip(ftype)
20276
      elif fid == 2:
7330 amit.gupta 20277
        if ftype == TType.I64:
20278
          self.stateId = iprot.readI64();
20279
        else:
20280
          iprot.skip(ftype)
20281
      elif fid == 3:
6039 amit.gupta 20282
        if ftype == TType.DOUBLE:
20283
          self.price = iprot.readDouble();
20284
        else:
20285
          iprot.skip(ftype)
20286
      else:
20287
        iprot.skip(ftype)
20288
      iprot.readFieldEnd()
20289
    iprot.readStructEnd()
20290
 
20291
  def write(self, oprot):
20292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20294
      return
20295
    oprot.writeStructBegin('getVatPercentageForItem_args')
20296
    if self.itemId is not None:
20297
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20298
      oprot.writeI64(self.itemId)
20299
      oprot.writeFieldEnd()
7330 amit.gupta 20300
    if self.stateId is not None:
20301
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20302
      oprot.writeI64(self.stateId)
20303
      oprot.writeFieldEnd()
6039 amit.gupta 20304
    if self.price is not None:
7330 amit.gupta 20305
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20306
      oprot.writeDouble(self.price)
20307
      oprot.writeFieldEnd()
20308
    oprot.writeFieldStop()
20309
    oprot.writeStructEnd()
20310
 
20311
  def validate(self):
20312
    return
20313
 
20314
 
20315
  def __repr__(self):
20316
    L = ['%s=%r' % (key, value)
20317
      for key, value in self.__dict__.iteritems()]
20318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20319
 
20320
  def __eq__(self, other):
20321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20322
 
20323
  def __ne__(self, other):
20324
    return not (self == other)
20325
 
20326
class getVatPercentageForItem_result:
20327
  """
20328
  Attributes:
20329
   - success
7340 amit.gupta 20330
   - cex
6039 amit.gupta 20331
  """
20332
 
20333
  thrift_spec = (
20334
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20335
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20336
  )
20337
 
7340 amit.gupta 20338
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20339
    self.success = success
7340 amit.gupta 20340
    self.cex = cex
6039 amit.gupta 20341
 
20342
  def read(self, iprot):
20343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20345
      return
20346
    iprot.readStructBegin()
20347
    while True:
20348
      (fname, ftype, fid) = iprot.readFieldBegin()
20349
      if ftype == TType.STOP:
20350
        break
20351
      if fid == 0:
20352
        if ftype == TType.DOUBLE:
20353
          self.success = iprot.readDouble();
20354
        else:
20355
          iprot.skip(ftype)
7340 amit.gupta 20356
      elif fid == 1:
20357
        if ftype == TType.STRUCT:
20358
          self.cex = CatalogServiceException()
20359
          self.cex.read(iprot)
20360
        else:
20361
          iprot.skip(ftype)
6039 amit.gupta 20362
      else:
20363
        iprot.skip(ftype)
20364
      iprot.readFieldEnd()
20365
    iprot.readStructEnd()
20366
 
20367
  def write(self, oprot):
20368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20370
      return
20371
    oprot.writeStructBegin('getVatPercentageForItem_result')
20372
    if self.success is not None:
20373
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20374
      oprot.writeDouble(self.success)
20375
      oprot.writeFieldEnd()
7340 amit.gupta 20376
    if self.cex is not None:
20377
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20378
      self.cex.write(oprot)
20379
      oprot.writeFieldEnd()
6039 amit.gupta 20380
    oprot.writeFieldStop()
20381
    oprot.writeStructEnd()
20382
 
20383
  def validate(self):
20384
    return
20385
 
20386
 
20387
  def __repr__(self):
20388
    L = ['%s=%r' % (key, value)
20389
      for key, value in self.__dict__.iteritems()]
20390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20391
 
20392
  def __eq__(self, other):
20393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20394
 
20395
  def __ne__(self, other):
20396
    return not (self == other)
20397
 
20398
class getVatAmountForItem_args:
20399
  """
20400
  Attributes:
20401
   - itemId
20402
   - price
20403
  """
20404
 
20405
  thrift_spec = (
20406
    None, # 0
20407
    (1, TType.I64, 'itemId', None, None, ), # 1
20408
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20409
  )
20410
 
20411
  def __init__(self, itemId=None, price=None,):
20412
    self.itemId = itemId
20413
    self.price = price
20414
 
20415
  def read(self, iprot):
20416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20418
      return
20419
    iprot.readStructBegin()
20420
    while True:
20421
      (fname, ftype, fid) = iprot.readFieldBegin()
20422
      if ftype == TType.STOP:
20423
        break
20424
      if fid == 1:
20425
        if ftype == TType.I64:
20426
          self.itemId = iprot.readI64();
20427
        else:
20428
          iprot.skip(ftype)
20429
      elif fid == 2:
20430
        if ftype == TType.DOUBLE:
20431
          self.price = iprot.readDouble();
20432
        else:
20433
          iprot.skip(ftype)
20434
      else:
20435
        iprot.skip(ftype)
20436
      iprot.readFieldEnd()
20437
    iprot.readStructEnd()
20438
 
20439
  def write(self, oprot):
20440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20442
      return
20443
    oprot.writeStructBegin('getVatAmountForItem_args')
20444
    if self.itemId is not None:
20445
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20446
      oprot.writeI64(self.itemId)
20447
      oprot.writeFieldEnd()
20448
    if self.price is not None:
20449
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20450
      oprot.writeDouble(self.price)
20451
      oprot.writeFieldEnd()
20452
    oprot.writeFieldStop()
20453
    oprot.writeStructEnd()
20454
 
20455
  def validate(self):
20456
    return
20457
 
20458
 
20459
  def __repr__(self):
20460
    L = ['%s=%r' % (key, value)
20461
      for key, value in self.__dict__.iteritems()]
20462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20463
 
20464
  def __eq__(self, other):
20465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20466
 
20467
  def __ne__(self, other):
20468
    return not (self == other)
20469
 
20470
class getVatAmountForItem_result:
20471
  """
20472
  Attributes:
20473
   - success
20474
  """
20475
 
20476
  thrift_spec = (
20477
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20478
  )
20479
 
20480
  def __init__(self, success=None,):
20481
    self.success = success
20482
 
20483
  def read(self, iprot):
20484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20486
      return
20487
    iprot.readStructBegin()
20488
    while True:
20489
      (fname, ftype, fid) = iprot.readFieldBegin()
20490
      if ftype == TType.STOP:
20491
        break
20492
      if fid == 0:
20493
        if ftype == TType.DOUBLE:
20494
          self.success = iprot.readDouble();
20495
        else:
20496
          iprot.skip(ftype)
20497
      else:
20498
        iprot.skip(ftype)
20499
      iprot.readFieldEnd()
20500
    iprot.readStructEnd()
20501
 
20502
  def write(self, oprot):
20503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20505
      return
20506
    oprot.writeStructBegin('getVatAmountForItem_result')
20507
    if self.success is not None:
20508
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20509
      oprot.writeDouble(self.success)
20510
      oprot.writeFieldEnd()
20511
    oprot.writeFieldStop()
20512
    oprot.writeStructEnd()
20513
 
20514
  def validate(self):
20515
    return
20516
 
20517
 
20518
  def __repr__(self):
20519
    L = ['%s=%r' % (key, value)
20520
      for key, value in self.__dict__.iteritems()]
20521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20522
 
20523
  def __eq__(self, other):
20524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20525
 
20526
  def __ne__(self, other):
20527
    return not (self == other)
6531 vikram.rag 20528
 
20529
class getAllIgnoredInventoryUpdateItemsList_args:
20530
  """
20531
  Attributes:
20532
   - offset
20533
   - limit
20534
  """
20535
 
20536
  thrift_spec = (
20537
    None, # 0
20538
    (1, TType.I32, 'offset', None, None, ), # 1
20539
    (2, TType.I32, 'limit', None, None, ), # 2
20540
  )
20541
 
20542
  def __init__(self, offset=None, limit=None,):
20543
    self.offset = offset
20544
    self.limit = limit
20545
 
20546
  def read(self, iprot):
20547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20549
      return
20550
    iprot.readStructBegin()
20551
    while True:
20552
      (fname, ftype, fid) = iprot.readFieldBegin()
20553
      if ftype == TType.STOP:
20554
        break
20555
      if fid == 1:
20556
        if ftype == TType.I32:
20557
          self.offset = iprot.readI32();
20558
        else:
20559
          iprot.skip(ftype)
20560
      elif fid == 2:
20561
        if ftype == TType.I32:
20562
          self.limit = iprot.readI32();
20563
        else:
20564
          iprot.skip(ftype)
20565
      else:
20566
        iprot.skip(ftype)
20567
      iprot.readFieldEnd()
20568
    iprot.readStructEnd()
20569
 
20570
  def write(self, oprot):
20571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20573
      return
20574
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20575
    if self.offset is not None:
20576
      oprot.writeFieldBegin('offset', TType.I32, 1)
20577
      oprot.writeI32(self.offset)
20578
      oprot.writeFieldEnd()
20579
    if self.limit is not None:
20580
      oprot.writeFieldBegin('limit', TType.I32, 2)
20581
      oprot.writeI32(self.limit)
20582
      oprot.writeFieldEnd()
20583
    oprot.writeFieldStop()
20584
    oprot.writeStructEnd()
20585
 
20586
  def validate(self):
20587
    return
20588
 
20589
 
20590
  def __repr__(self):
20591
    L = ['%s=%r' % (key, value)
20592
      for key, value in self.__dict__.iteritems()]
20593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20594
 
20595
  def __eq__(self, other):
20596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20597
 
20598
  def __ne__(self, other):
20599
    return not (self == other)
20600
 
20601
class getAllIgnoredInventoryUpdateItemsList_result:
20602
  """
20603
  Attributes:
20604
   - success
20605
  """
20606
 
20607
  thrift_spec = (
20608
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20609
  )
20610
 
20611
  def __init__(self, success=None,):
20612
    self.success = success
20613
 
20614
  def read(self, iprot):
20615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20617
      return
20618
    iprot.readStructBegin()
20619
    while True:
20620
      (fname, ftype, fid) = iprot.readFieldBegin()
20621
      if ftype == TType.STOP:
20622
        break
20623
      if fid == 0:
20624
        if ftype == TType.LIST:
20625
          self.success = []
12567 amit.gupta 20626
          (_etype379, _size376) = iprot.readListBegin()
20627
          for _i380 in xrange(_size376):
20628
            _elem381 = Item()
20629
            _elem381.read(iprot)
20630
            self.success.append(_elem381)
6531 vikram.rag 20631
          iprot.readListEnd()
20632
        else:
20633
          iprot.skip(ftype)
20634
      else:
20635
        iprot.skip(ftype)
20636
      iprot.readFieldEnd()
20637
    iprot.readStructEnd()
20638
 
20639
  def write(self, oprot):
20640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20642
      return
20643
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20644
    if self.success is not None:
20645
      oprot.writeFieldBegin('success', TType.LIST, 0)
20646
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20647
      for iter382 in self.success:
20648
        iter382.write(oprot)
6531 vikram.rag 20649
      oprot.writeListEnd()
20650
      oprot.writeFieldEnd()
20651
    oprot.writeFieldStop()
20652
    oprot.writeStructEnd()
20653
 
20654
  def validate(self):
20655
    return
20656
 
20657
 
20658
  def __repr__(self):
20659
    L = ['%s=%r' % (key, value)
20660
      for key, value in self.__dict__.iteritems()]
20661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20662
 
20663
  def __eq__(self, other):
20664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20665
 
20666
  def __ne__(self, other):
20667
    return not (self == other)
6805 anupam.sin 20668
 
6821 amar.kumar 20669
class getAllAliveItems_args:
20670
 
20671
  thrift_spec = (
20672
  )
20673
 
20674
  def read(self, iprot):
20675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20677
      return
20678
    iprot.readStructBegin()
20679
    while True:
20680
      (fname, ftype, fid) = iprot.readFieldBegin()
20681
      if ftype == TType.STOP:
20682
        break
20683
      else:
20684
        iprot.skip(ftype)
20685
      iprot.readFieldEnd()
20686
    iprot.readStructEnd()
20687
 
20688
  def write(self, oprot):
20689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20691
      return
20692
    oprot.writeStructBegin('getAllAliveItems_args')
20693
    oprot.writeFieldStop()
20694
    oprot.writeStructEnd()
20695
 
20696
  def validate(self):
20697
    return
20698
 
20699
 
20700
  def __repr__(self):
20701
    L = ['%s=%r' % (key, value)
20702
      for key, value in self.__dict__.iteritems()]
20703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20704
 
20705
  def __eq__(self, other):
20706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20707
 
20708
  def __ne__(self, other):
20709
    return not (self == other)
20710
 
20711
class getAllAliveItems_result:
20712
  """
20713
  Attributes:
20714
   - success
20715
  """
20716
 
20717
  thrift_spec = (
20718
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20719
  )
20720
 
20721
  def __init__(self, success=None,):
20722
    self.success = success
20723
 
20724
  def read(self, iprot):
20725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20727
      return
20728
    iprot.readStructBegin()
20729
    while True:
20730
      (fname, ftype, fid) = iprot.readFieldBegin()
20731
      if ftype == TType.STOP:
20732
        break
20733
      if fid == 0:
20734
        if ftype == TType.LIST:
20735
          self.success = []
12567 amit.gupta 20736
          (_etype386, _size383) = iprot.readListBegin()
20737
          for _i387 in xrange(_size383):
20738
            _elem388 = Item()
20739
            _elem388.read(iprot)
20740
            self.success.append(_elem388)
6821 amar.kumar 20741
          iprot.readListEnd()
20742
        else:
20743
          iprot.skip(ftype)
20744
      else:
20745
        iprot.skip(ftype)
20746
      iprot.readFieldEnd()
20747
    iprot.readStructEnd()
20748
 
20749
  def write(self, oprot):
20750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20752
      return
20753
    oprot.writeStructBegin('getAllAliveItems_result')
20754
    if self.success is not None:
20755
      oprot.writeFieldBegin('success', TType.LIST, 0)
20756
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20757
      for iter389 in self.success:
20758
        iter389.write(oprot)
6821 amar.kumar 20759
      oprot.writeListEnd()
20760
      oprot.writeFieldEnd()
20761
    oprot.writeFieldStop()
20762
    oprot.writeStructEnd()
20763
 
20764
  def validate(self):
20765
    return
20766
 
20767
 
20768
  def __repr__(self):
20769
    L = ['%s=%r' % (key, value)
20770
      for key, value in self.__dict__.iteritems()]
20771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20772
 
20773
  def __eq__(self, other):
20774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20775
 
20776
  def __ne__(self, other):
20777
    return not (self == other)
20778
 
6805 anupam.sin 20779
class getInsuranceAmount_args:
20780
  """
20781
  Attributes:
20782
   - itemId
6921 anupam.sin 20783
   - price
6805 anupam.sin 20784
   - insurerId
20785
   - quantity
20786
  """
20787
 
20788
  thrift_spec = (
20789
    None, # 0
20790
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 20791
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20792
    (3, TType.I64, 'insurerId', None, None, ), # 3
20793
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 20794
  )
20795
 
6921 anupam.sin 20796
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 20797
    self.itemId = itemId
6921 anupam.sin 20798
    self.price = price
6805 anupam.sin 20799
    self.insurerId = insurerId
20800
    self.quantity = quantity
20801
 
20802
  def read(self, iprot):
20803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20805
      return
20806
    iprot.readStructBegin()
20807
    while True:
20808
      (fname, ftype, fid) = iprot.readFieldBegin()
20809
      if ftype == TType.STOP:
20810
        break
20811
      if fid == 1:
20812
        if ftype == TType.I64:
20813
          self.itemId = iprot.readI64();
20814
        else:
20815
          iprot.skip(ftype)
20816
      elif fid == 2:
6921 anupam.sin 20817
        if ftype == TType.DOUBLE:
20818
          self.price = iprot.readDouble();
20819
        else:
20820
          iprot.skip(ftype)
20821
      elif fid == 3:
6805 anupam.sin 20822
        if ftype == TType.I64:
20823
          self.insurerId = iprot.readI64();
20824
        else:
20825
          iprot.skip(ftype)
6921 anupam.sin 20826
      elif fid == 4:
6805 anupam.sin 20827
        if ftype == TType.I64:
20828
          self.quantity = iprot.readI64();
20829
        else:
20830
          iprot.skip(ftype)
20831
      else:
20832
        iprot.skip(ftype)
20833
      iprot.readFieldEnd()
20834
    iprot.readStructEnd()
20835
 
20836
  def write(self, oprot):
20837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20839
      return
20840
    oprot.writeStructBegin('getInsuranceAmount_args')
20841
    if self.itemId is not None:
20842
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20843
      oprot.writeI64(self.itemId)
20844
      oprot.writeFieldEnd()
6921 anupam.sin 20845
    if self.price is not None:
20846
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20847
      oprot.writeDouble(self.price)
20848
      oprot.writeFieldEnd()
6805 anupam.sin 20849
    if self.insurerId is not None:
6921 anupam.sin 20850
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 20851
      oprot.writeI64(self.insurerId)
20852
      oprot.writeFieldEnd()
20853
    if self.quantity is not None:
6921 anupam.sin 20854
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 20855
      oprot.writeI64(self.quantity)
20856
      oprot.writeFieldEnd()
20857
    oprot.writeFieldStop()
20858
    oprot.writeStructEnd()
20859
 
20860
  def validate(self):
20861
    return
20862
 
20863
 
20864
  def __repr__(self):
20865
    L = ['%s=%r' % (key, value)
20866
      for key, value in self.__dict__.iteritems()]
20867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20868
 
20869
  def __eq__(self, other):
20870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20871
 
20872
  def __ne__(self, other):
20873
    return not (self == other)
20874
 
20875
class getInsuranceAmount_result:
20876
  """
20877
  Attributes:
20878
   - success
20879
  """
20880
 
20881
  thrift_spec = (
20882
    (0, TType.I64, 'success', None, None, ), # 0
20883
  )
20884
 
20885
  def __init__(self, success=None,):
20886
    self.success = success
20887
 
20888
  def read(self, iprot):
20889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20891
      return
20892
    iprot.readStructBegin()
20893
    while True:
20894
      (fname, ftype, fid) = iprot.readFieldBegin()
20895
      if ftype == TType.STOP:
20896
        break
20897
      if fid == 0:
20898
        if ftype == TType.I64:
20899
          self.success = iprot.readI64();
20900
        else:
20901
          iprot.skip(ftype)
20902
      else:
20903
        iprot.skip(ftype)
20904
      iprot.readFieldEnd()
20905
    iprot.readStructEnd()
20906
 
20907
  def write(self, oprot):
20908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20910
      return
20911
    oprot.writeStructBegin('getInsuranceAmount_result')
20912
    if self.success is not None:
20913
      oprot.writeFieldBegin('success', TType.I64, 0)
20914
      oprot.writeI64(self.success)
20915
      oprot.writeFieldEnd()
20916
    oprot.writeFieldStop()
20917
    oprot.writeStructEnd()
20918
 
20919
  def validate(self):
20920
    return
20921
 
20922
 
20923
  def __repr__(self):
20924
    L = ['%s=%r' % (key, value)
20925
      for key, value in self.__dict__.iteritems()]
20926
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20927
 
20928
  def __eq__(self, other):
20929
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20930
 
20931
  def __ne__(self, other):
20932
    return not (self == other)
20933
 
20934
class getInsurer_args:
20935
  """
20936
  Attributes:
20937
   - insurerId
20938
  """
20939
 
20940
  thrift_spec = (
20941
    None, # 0
20942
    (1, TType.I64, 'insurerId', None, None, ), # 1
20943
  )
20944
 
20945
  def __init__(self, insurerId=None,):
20946
    self.insurerId = insurerId
20947
 
20948
  def read(self, iprot):
20949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20951
      return
20952
    iprot.readStructBegin()
20953
    while True:
20954
      (fname, ftype, fid) = iprot.readFieldBegin()
20955
      if ftype == TType.STOP:
20956
        break
20957
      if fid == 1:
20958
        if ftype == TType.I64:
20959
          self.insurerId = iprot.readI64();
20960
        else:
20961
          iprot.skip(ftype)
20962
      else:
20963
        iprot.skip(ftype)
20964
      iprot.readFieldEnd()
20965
    iprot.readStructEnd()
20966
 
20967
  def write(self, oprot):
20968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20970
      return
20971
    oprot.writeStructBegin('getInsurer_args')
20972
    if self.insurerId is not None:
20973
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
20974
      oprot.writeI64(self.insurerId)
20975
      oprot.writeFieldEnd()
20976
    oprot.writeFieldStop()
20977
    oprot.writeStructEnd()
20978
 
20979
  def validate(self):
20980
    return
20981
 
20982
 
20983
  def __repr__(self):
20984
    L = ['%s=%r' % (key, value)
20985
      for key, value in self.__dict__.iteritems()]
20986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20987
 
20988
  def __eq__(self, other):
20989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20990
 
20991
  def __ne__(self, other):
20992
    return not (self == other)
20993
 
20994
class getInsurer_result:
20995
  """
20996
  Attributes:
20997
   - success
20998
  """
20999
 
21000
  thrift_spec = (
21001
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
21002
  )
21003
 
21004
  def __init__(self, success=None,):
21005
    self.success = success
21006
 
21007
  def read(self, iprot):
21008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21010
      return
21011
    iprot.readStructBegin()
21012
    while True:
21013
      (fname, ftype, fid) = iprot.readFieldBegin()
21014
      if ftype == TType.STOP:
21015
        break
21016
      if fid == 0:
21017
        if ftype == TType.STRUCT:
21018
          self.success = Insurer()
21019
          self.success.read(iprot)
21020
        else:
21021
          iprot.skip(ftype)
21022
      else:
21023
        iprot.skip(ftype)
21024
      iprot.readFieldEnd()
21025
    iprot.readStructEnd()
21026
 
21027
  def write(self, oprot):
21028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21030
      return
21031
    oprot.writeStructBegin('getInsurer_result')
21032
    if self.success is not None:
21033
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21034
      self.success.write(oprot)
21035
      oprot.writeFieldEnd()
21036
    oprot.writeFieldStop()
21037
    oprot.writeStructEnd()
21038
 
21039
  def validate(self):
21040
    return
21041
 
21042
 
21043
  def __repr__(self):
21044
    L = ['%s=%r' % (key, value)
21045
      for key, value in self.__dict__.iteritems()]
21046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21047
 
21048
  def __eq__(self, other):
21049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21050
 
21051
  def __ne__(self, other):
21052
    return not (self == other)
6838 vikram.rag 21053
 
21054
class getAllInsurers_args:
21055
 
21056
  thrift_spec = (
21057
  )
21058
 
21059
  def read(self, iprot):
21060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21062
      return
21063
    iprot.readStructBegin()
21064
    while True:
21065
      (fname, ftype, fid) = iprot.readFieldBegin()
21066
      if ftype == TType.STOP:
21067
        break
21068
      else:
21069
        iprot.skip(ftype)
21070
      iprot.readFieldEnd()
21071
    iprot.readStructEnd()
21072
 
21073
  def write(self, oprot):
21074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21076
      return
21077
    oprot.writeStructBegin('getAllInsurers_args')
21078
    oprot.writeFieldStop()
21079
    oprot.writeStructEnd()
21080
 
21081
  def validate(self):
21082
    return
21083
 
21084
 
21085
  def __repr__(self):
21086
    L = ['%s=%r' % (key, value)
21087
      for key, value in self.__dict__.iteritems()]
21088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21089
 
21090
  def __eq__(self, other):
21091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21092
 
21093
  def __ne__(self, other):
21094
    return not (self == other)
21095
 
21096
class getAllInsurers_result:
21097
  """
21098
  Attributes:
21099
   - success
21100
  """
21101
 
21102
  thrift_spec = (
21103
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21104
  )
21105
 
21106
  def __init__(self, success=None,):
21107
    self.success = success
21108
 
21109
  def read(self, iprot):
21110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21112
      return
21113
    iprot.readStructBegin()
21114
    while True:
21115
      (fname, ftype, fid) = iprot.readFieldBegin()
21116
      if ftype == TType.STOP:
21117
        break
21118
      if fid == 0:
21119
        if ftype == TType.LIST:
21120
          self.success = []
12567 amit.gupta 21121
          (_etype393, _size390) = iprot.readListBegin()
21122
          for _i394 in xrange(_size390):
21123
            _elem395 = Insurer()
21124
            _elem395.read(iprot)
21125
            self.success.append(_elem395)
6838 vikram.rag 21126
          iprot.readListEnd()
21127
        else:
21128
          iprot.skip(ftype)
21129
      else:
21130
        iprot.skip(ftype)
21131
      iprot.readFieldEnd()
21132
    iprot.readStructEnd()
21133
 
21134
  def write(self, oprot):
21135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21137
      return
21138
    oprot.writeStructBegin('getAllInsurers_result')
21139
    if self.success is not None:
21140
      oprot.writeFieldBegin('success', TType.LIST, 0)
21141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21142
      for iter396 in self.success:
21143
        iter396.write(oprot)
6838 vikram.rag 21144
      oprot.writeListEnd()
21145
      oprot.writeFieldEnd()
21146
    oprot.writeFieldStop()
21147
    oprot.writeStructEnd()
21148
 
21149
  def validate(self):
21150
    return
21151
 
21152
 
21153
  def __repr__(self):
21154
    L = ['%s=%r' % (key, value)
21155
      for key, value in self.__dict__.iteritems()]
21156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21157
 
21158
  def __eq__(self, other):
21159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21160
 
21161
  def __ne__(self, other):
21162
    return not (self == other)
6962 rajveer 21163
 
21164
class updateInsuranceDeclaredAmount_args:
21165
  """
21166
  Attributes:
21167
   - insurerId
21168
   - amount
21169
  """
21170
 
21171
  thrift_spec = (
21172
    None, # 0
21173
    (1, TType.I64, 'insurerId', None, None, ), # 1
21174
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21175
  )
21176
 
21177
  def __init__(self, insurerId=None, amount=None,):
21178
    self.insurerId = insurerId
21179
    self.amount = amount
21180
 
21181
  def read(self, iprot):
21182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21184
      return
21185
    iprot.readStructBegin()
21186
    while True:
21187
      (fname, ftype, fid) = iprot.readFieldBegin()
21188
      if ftype == TType.STOP:
21189
        break
21190
      if fid == 1:
21191
        if ftype == TType.I64:
21192
          self.insurerId = iprot.readI64();
21193
        else:
21194
          iprot.skip(ftype)
21195
      elif fid == 2:
21196
        if ftype == TType.DOUBLE:
21197
          self.amount = iprot.readDouble();
21198
        else:
21199
          iprot.skip(ftype)
21200
      else:
21201
        iprot.skip(ftype)
21202
      iprot.readFieldEnd()
21203
    iprot.readStructEnd()
21204
 
21205
  def write(self, oprot):
21206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21208
      return
21209
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21210
    if self.insurerId is not None:
21211
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21212
      oprot.writeI64(self.insurerId)
21213
      oprot.writeFieldEnd()
21214
    if self.amount is not None:
21215
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21216
      oprot.writeDouble(self.amount)
21217
      oprot.writeFieldEnd()
21218
    oprot.writeFieldStop()
21219
    oprot.writeStructEnd()
21220
 
21221
  def validate(self):
21222
    return
21223
 
21224
 
21225
  def __repr__(self):
21226
    L = ['%s=%r' % (key, value)
21227
      for key, value in self.__dict__.iteritems()]
21228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21229
 
21230
  def __eq__(self, other):
21231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21232
 
21233
  def __ne__(self, other):
21234
    return not (self == other)
21235
 
21236
class updateInsuranceDeclaredAmount_result:
21237
 
21238
  thrift_spec = (
21239
  )
21240
 
21241
  def read(self, iprot):
21242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21244
      return
21245
    iprot.readStructBegin()
21246
    while True:
21247
      (fname, ftype, fid) = iprot.readFieldBegin()
21248
      if ftype == TType.STOP:
21249
        break
21250
      else:
21251
        iprot.skip(ftype)
21252
      iprot.readFieldEnd()
21253
    iprot.readStructEnd()
21254
 
21255
  def write(self, oprot):
21256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21258
      return
21259
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21260
    oprot.writeFieldStop()
21261
    oprot.writeStructEnd()
21262
 
21263
  def validate(self):
21264
    return
21265
 
21266
 
21267
  def __repr__(self):
21268
    L = ['%s=%r' % (key, value)
21269
      for key, value in self.__dict__.iteritems()]
21270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21271
 
21272
  def __eq__(self, other):
21273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21274
 
21275
  def __ne__(self, other):
21276
    return not (self == other)
7190 amar.kumar 21277
 
21278
class getFreebieForItem_args:
21279
  """
21280
  Attributes:
21281
   - itemId
21282
  """
21283
 
21284
  thrift_spec = (
21285
    None, # 0
21286
    (1, TType.I64, 'itemId', None, None, ), # 1
21287
  )
21288
 
21289
  def __init__(self, itemId=None,):
21290
    self.itemId = itemId
21291
 
21292
  def read(self, iprot):
21293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21295
      return
21296
    iprot.readStructBegin()
21297
    while True:
21298
      (fname, ftype, fid) = iprot.readFieldBegin()
21299
      if ftype == TType.STOP:
21300
        break
21301
      if fid == 1:
21302
        if ftype == TType.I64:
21303
          self.itemId = iprot.readI64();
21304
        else:
21305
          iprot.skip(ftype)
21306
      else:
21307
        iprot.skip(ftype)
21308
      iprot.readFieldEnd()
21309
    iprot.readStructEnd()
21310
 
21311
  def write(self, oprot):
21312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21314
      return
21315
    oprot.writeStructBegin('getFreebieForItem_args')
21316
    if self.itemId is not None:
21317
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21318
      oprot.writeI64(self.itemId)
21319
      oprot.writeFieldEnd()
21320
    oprot.writeFieldStop()
21321
    oprot.writeStructEnd()
21322
 
21323
  def validate(self):
21324
    return
21325
 
21326
 
21327
  def __repr__(self):
21328
    L = ['%s=%r' % (key, value)
21329
      for key, value in self.__dict__.iteritems()]
21330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21331
 
21332
  def __eq__(self, other):
21333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21334
 
21335
  def __ne__(self, other):
21336
    return not (self == other)
21337
 
21338
class getFreebieForItem_result:
21339
  """
21340
  Attributes:
21341
   - success
21342
  """
21343
 
21344
  thrift_spec = (
21345
    (0, TType.I64, 'success', None, None, ), # 0
21346
  )
21347
 
21348
  def __init__(self, success=None,):
21349
    self.success = success
21350
 
21351
  def read(self, iprot):
21352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21354
      return
21355
    iprot.readStructBegin()
21356
    while True:
21357
      (fname, ftype, fid) = iprot.readFieldBegin()
21358
      if ftype == TType.STOP:
21359
        break
21360
      if fid == 0:
21361
        if ftype == TType.I64:
21362
          self.success = iprot.readI64();
21363
        else:
21364
          iprot.skip(ftype)
21365
      else:
21366
        iprot.skip(ftype)
21367
      iprot.readFieldEnd()
21368
    iprot.readStructEnd()
21369
 
21370
  def write(self, oprot):
21371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21373
      return
21374
    oprot.writeStructBegin('getFreebieForItem_result')
21375
    if self.success is not None:
21376
      oprot.writeFieldBegin('success', TType.I64, 0)
21377
      oprot.writeI64(self.success)
21378
      oprot.writeFieldEnd()
21379
    oprot.writeFieldStop()
21380
    oprot.writeStructEnd()
21381
 
21382
  def validate(self):
21383
    return
21384
 
21385
 
21386
  def __repr__(self):
21387
    L = ['%s=%r' % (key, value)
21388
      for key, value in self.__dict__.iteritems()]
21389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21390
 
21391
  def __eq__(self, other):
21392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21393
 
21394
  def __ne__(self, other):
21395
    return not (self == other)
21396
 
21397
class addOrUpdateFreebieForItem_args:
21398
  """
21399
  Attributes:
21400
   - freebieItem
21401
  """
21402
 
21403
  thrift_spec = (
21404
    None, # 0
21405
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21406
  )
21407
 
21408
  def __init__(self, freebieItem=None,):
21409
    self.freebieItem = freebieItem
21410
 
21411
  def read(self, iprot):
21412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21414
      return
21415
    iprot.readStructBegin()
21416
    while True:
21417
      (fname, ftype, fid) = iprot.readFieldBegin()
21418
      if ftype == TType.STOP:
21419
        break
21420
      if fid == 1:
21421
        if ftype == TType.STRUCT:
21422
          self.freebieItem = FreebieItem()
21423
          self.freebieItem.read(iprot)
21424
        else:
21425
          iprot.skip(ftype)
21426
      else:
21427
        iprot.skip(ftype)
21428
      iprot.readFieldEnd()
21429
    iprot.readStructEnd()
21430
 
21431
  def write(self, oprot):
21432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21434
      return
21435
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21436
    if self.freebieItem is not None:
21437
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21438
      self.freebieItem.write(oprot)
21439
      oprot.writeFieldEnd()
21440
    oprot.writeFieldStop()
21441
    oprot.writeStructEnd()
21442
 
21443
  def validate(self):
21444
    return
21445
 
21446
 
21447
  def __repr__(self):
21448
    L = ['%s=%r' % (key, value)
21449
      for key, value in self.__dict__.iteritems()]
21450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21451
 
21452
  def __eq__(self, other):
21453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21454
 
21455
  def __ne__(self, other):
21456
    return not (self == other)
21457
 
21458
class addOrUpdateFreebieForItem_result:
21459
 
21460
  thrift_spec = (
21461
  )
21462
 
21463
  def read(self, iprot):
21464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21466
      return
21467
    iprot.readStructBegin()
21468
    while True:
21469
      (fname, ftype, fid) = iprot.readFieldBegin()
21470
      if ftype == TType.STOP:
21471
        break
21472
      else:
21473
        iprot.skip(ftype)
21474
      iprot.readFieldEnd()
21475
    iprot.readStructEnd()
21476
 
21477
  def write(self, oprot):
21478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21480
      return
21481
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21482
    oprot.writeFieldStop()
21483
    oprot.writeStructEnd()
21484
 
21485
  def validate(self):
21486
    return
21487
 
21488
 
21489
  def __repr__(self):
21490
    L = ['%s=%r' % (key, value)
21491
      for key, value in self.__dict__.iteritems()]
21492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21493
 
21494
  def __eq__(self, other):
21495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21496
 
21497
  def __ne__(self, other):
21498
    return not (self == other)
7256 rajveer 21499
 
7272 amit.gupta 21500
class addOrUpdateBrandInfo_args:
21501
  """
21502
  Attributes:
21503
   - brandInfo
21504
  """
21505
 
21506
  thrift_spec = (
21507
    None, # 0
21508
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21509
  )
21510
 
21511
  def __init__(self, brandInfo=None,):
21512
    self.brandInfo = brandInfo
21513
 
21514
  def read(self, iprot):
21515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21517
      return
21518
    iprot.readStructBegin()
21519
    while True:
21520
      (fname, ftype, fid) = iprot.readFieldBegin()
21521
      if ftype == TType.STOP:
21522
        break
21523
      if fid == 1:
21524
        if ftype == TType.STRUCT:
21525
          self.brandInfo = BrandInfo()
21526
          self.brandInfo.read(iprot)
21527
        else:
21528
          iprot.skip(ftype)
21529
      else:
21530
        iprot.skip(ftype)
21531
      iprot.readFieldEnd()
21532
    iprot.readStructEnd()
21533
 
21534
  def write(self, oprot):
21535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21537
      return
21538
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21539
    if self.brandInfo is not None:
21540
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21541
      self.brandInfo.write(oprot)
21542
      oprot.writeFieldEnd()
21543
    oprot.writeFieldStop()
21544
    oprot.writeStructEnd()
21545
 
21546
  def validate(self):
21547
    return
21548
 
21549
 
21550
  def __repr__(self):
21551
    L = ['%s=%r' % (key, value)
21552
      for key, value in self.__dict__.iteritems()]
21553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21554
 
21555
  def __eq__(self, other):
21556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21557
 
21558
  def __ne__(self, other):
21559
    return not (self == other)
21560
 
21561
class addOrUpdateBrandInfo_result:
21562
 
21563
  thrift_spec = (
21564
  )
21565
 
21566
  def read(self, iprot):
21567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21569
      return
21570
    iprot.readStructBegin()
21571
    while True:
21572
      (fname, ftype, fid) = iprot.readFieldBegin()
21573
      if ftype == TType.STOP:
21574
        break
21575
      else:
21576
        iprot.skip(ftype)
21577
      iprot.readFieldEnd()
21578
    iprot.readStructEnd()
21579
 
21580
  def write(self, oprot):
21581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21583
      return
21584
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21585
    oprot.writeFieldStop()
21586
    oprot.writeStructEnd()
21587
 
21588
  def validate(self):
21589
    return
21590
 
21591
 
21592
  def __repr__(self):
21593
    L = ['%s=%r' % (key, value)
21594
      for key, value in self.__dict__.iteritems()]
21595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21596
 
21597
  def __eq__(self, other):
21598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21599
 
21600
  def __ne__(self, other):
21601
    return not (self == other)
21602
 
21603
class getBrandInfo_args:
21604
 
21605
  thrift_spec = (
21606
  )
21607
 
21608
  def read(self, iprot):
21609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21611
      return
21612
    iprot.readStructBegin()
21613
    while True:
21614
      (fname, ftype, fid) = iprot.readFieldBegin()
21615
      if ftype == TType.STOP:
21616
        break
21617
      else:
21618
        iprot.skip(ftype)
21619
      iprot.readFieldEnd()
21620
    iprot.readStructEnd()
21621
 
21622
  def write(self, oprot):
21623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21625
      return
21626
    oprot.writeStructBegin('getBrandInfo_args')
21627
    oprot.writeFieldStop()
21628
    oprot.writeStructEnd()
21629
 
21630
  def validate(self):
21631
    return
21632
 
21633
 
21634
  def __repr__(self):
21635
    L = ['%s=%r' % (key, value)
21636
      for key, value in self.__dict__.iteritems()]
21637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21638
 
21639
  def __eq__(self, other):
21640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21641
 
21642
  def __ne__(self, other):
21643
    return not (self == other)
21644
 
21645
class getBrandInfo_result:
21646
  """
21647
  Attributes:
21648
   - success
21649
  """
21650
 
21651
  thrift_spec = (
21652
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21653
  )
21654
 
21655
  def __init__(self, success=None,):
21656
    self.success = success
21657
 
21658
  def read(self, iprot):
21659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21661
      return
21662
    iprot.readStructBegin()
21663
    while True:
21664
      (fname, ftype, fid) = iprot.readFieldBegin()
21665
      if ftype == TType.STOP:
21666
        break
21667
      if fid == 0:
21668
        if ftype == TType.MAP:
21669
          self.success = {}
12567 amit.gupta 21670
          (_ktype398, _vtype399, _size397 ) = iprot.readMapBegin() 
21671
          for _i401 in xrange(_size397):
21672
            _key402 = iprot.readString();
21673
            _val403 = BrandInfo()
21674
            _val403.read(iprot)
21675
            self.success[_key402] = _val403
7272 amit.gupta 21676
          iprot.readMapEnd()
21677
        else:
21678
          iprot.skip(ftype)
21679
      else:
21680
        iprot.skip(ftype)
21681
      iprot.readFieldEnd()
21682
    iprot.readStructEnd()
21683
 
21684
  def write(self, oprot):
21685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21687
      return
21688
    oprot.writeStructBegin('getBrandInfo_result')
21689
    if self.success is not None:
21690
      oprot.writeFieldBegin('success', TType.MAP, 0)
21691
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
12567 amit.gupta 21692
      for kiter404,viter405 in self.success.items():
21693
        oprot.writeString(kiter404)
21694
        viter405.write(oprot)
7272 amit.gupta 21695
      oprot.writeMapEnd()
21696
      oprot.writeFieldEnd()
21697
    oprot.writeFieldStop()
21698
    oprot.writeStructEnd()
21699
 
21700
  def validate(self):
21701
    return
21702
 
21703
 
21704
  def __repr__(self):
21705
    L = ['%s=%r' % (key, value)
21706
      for key, value in self.__dict__.iteritems()]
21707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21708
 
21709
  def __eq__(self, other):
21710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21711
 
21712
  def __ne__(self, other):
21713
    return not (self == other)
21714
 
7256 rajveer 21715
class getStorePricing_args:
21716
  """
21717
  Attributes:
21718
   - itemId
21719
  """
21720
 
21721
  thrift_spec = (
21722
    None, # 0
21723
    (1, TType.I64, 'itemId', None, None, ), # 1
21724
  )
21725
 
21726
  def __init__(self, itemId=None,):
21727
    self.itemId = itemId
21728
 
21729
  def read(self, iprot):
21730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21732
      return
21733
    iprot.readStructBegin()
21734
    while True:
21735
      (fname, ftype, fid) = iprot.readFieldBegin()
21736
      if ftype == TType.STOP:
21737
        break
21738
      if fid == 1:
21739
        if ftype == TType.I64:
21740
          self.itemId = iprot.readI64();
21741
        else:
21742
          iprot.skip(ftype)
21743
      else:
21744
        iprot.skip(ftype)
21745
      iprot.readFieldEnd()
21746
    iprot.readStructEnd()
21747
 
21748
  def write(self, oprot):
21749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21751
      return
21752
    oprot.writeStructBegin('getStorePricing_args')
21753
    if self.itemId is not None:
21754
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21755
      oprot.writeI64(self.itemId)
21756
      oprot.writeFieldEnd()
21757
    oprot.writeFieldStop()
21758
    oprot.writeStructEnd()
21759
 
21760
  def validate(self):
21761
    return
21762
 
21763
 
21764
  def __repr__(self):
21765
    L = ['%s=%r' % (key, value)
21766
      for key, value in self.__dict__.iteritems()]
21767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21768
 
21769
  def __eq__(self, other):
21770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21771
 
21772
  def __ne__(self, other):
21773
    return not (self == other)
21774
 
21775
class getStorePricing_result:
21776
  """
21777
  Attributes:
21778
   - success
21779
  """
21780
 
21781
  thrift_spec = (
21782
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
21783
  )
21784
 
21785
  def __init__(self, success=None,):
21786
    self.success = success
21787
 
21788
  def read(self, iprot):
21789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21791
      return
21792
    iprot.readStructBegin()
21793
    while True:
21794
      (fname, ftype, fid) = iprot.readFieldBegin()
21795
      if ftype == TType.STOP:
21796
        break
21797
      if fid == 0:
21798
        if ftype == TType.STRUCT:
21799
          self.success = StorePricing()
21800
          self.success.read(iprot)
21801
        else:
21802
          iprot.skip(ftype)
21803
      else:
21804
        iprot.skip(ftype)
21805
      iprot.readFieldEnd()
21806
    iprot.readStructEnd()
21807
 
21808
  def write(self, oprot):
21809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21811
      return
21812
    oprot.writeStructBegin('getStorePricing_result')
21813
    if self.success is not None:
21814
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21815
      self.success.write(oprot)
21816
      oprot.writeFieldEnd()
21817
    oprot.writeFieldStop()
21818
    oprot.writeStructEnd()
21819
 
21820
  def validate(self):
21821
    return
21822
 
21823
 
21824
  def __repr__(self):
21825
    L = ['%s=%r' % (key, value)
21826
      for key, value in self.__dict__.iteritems()]
21827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21828
 
21829
  def __eq__(self, other):
21830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21831
 
21832
  def __ne__(self, other):
21833
    return not (self == other)
7265 rajveer 21834
 
7306 rajveer 21835
class getStorePricings_args:
21836
  """
21837
  Attributes:
21838
   - itemIds
21839
  """
21840
 
21841
  thrift_spec = (
21842
    None, # 0
21843
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
21844
  )
21845
 
21846
  def __init__(self, itemIds=None,):
21847
    self.itemIds = itemIds
21848
 
21849
  def read(self, iprot):
21850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21852
      return
21853
    iprot.readStructBegin()
21854
    while True:
21855
      (fname, ftype, fid) = iprot.readFieldBegin()
21856
      if ftype == TType.STOP:
21857
        break
21858
      if fid == 1:
21859
        if ftype == TType.LIST:
21860
          self.itemIds = []
12567 amit.gupta 21861
          (_etype409, _size406) = iprot.readListBegin()
21862
          for _i410 in xrange(_size406):
21863
            _elem411 = iprot.readI64();
21864
            self.itemIds.append(_elem411)
7306 rajveer 21865
          iprot.readListEnd()
21866
        else:
21867
          iprot.skip(ftype)
21868
      else:
21869
        iprot.skip(ftype)
21870
      iprot.readFieldEnd()
21871
    iprot.readStructEnd()
21872
 
21873
  def write(self, oprot):
21874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21876
      return
21877
    oprot.writeStructBegin('getStorePricings_args')
21878
    if self.itemIds is not None:
21879
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
21880
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 21881
      for iter412 in self.itemIds:
21882
        oprot.writeI64(iter412)
7306 rajveer 21883
      oprot.writeListEnd()
21884
      oprot.writeFieldEnd()
21885
    oprot.writeFieldStop()
21886
    oprot.writeStructEnd()
21887
 
21888
  def validate(self):
21889
    return
21890
 
21891
 
21892
  def __repr__(self):
21893
    L = ['%s=%r' % (key, value)
21894
      for key, value in self.__dict__.iteritems()]
21895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21896
 
21897
  def __eq__(self, other):
21898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21899
 
21900
  def __ne__(self, other):
21901
    return not (self == other)
21902
 
21903
class getStorePricings_result:
21904
  """
21905
  Attributes:
21906
   - success
21907
  """
21908
 
21909
  thrift_spec = (
21910
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
21911
  )
21912
 
21913
  def __init__(self, success=None,):
21914
    self.success = success
21915
 
21916
  def read(self, iprot):
21917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21919
      return
21920
    iprot.readStructBegin()
21921
    while True:
21922
      (fname, ftype, fid) = iprot.readFieldBegin()
21923
      if ftype == TType.STOP:
21924
        break
21925
      if fid == 0:
21926
        if ftype == TType.LIST:
21927
          self.success = []
12567 amit.gupta 21928
          (_etype416, _size413) = iprot.readListBegin()
21929
          for _i417 in xrange(_size413):
21930
            _elem418 = StorePricing()
21931
            _elem418.read(iprot)
21932
            self.success.append(_elem418)
7306 rajveer 21933
          iprot.readListEnd()
21934
        else:
21935
          iprot.skip(ftype)
21936
      else:
21937
        iprot.skip(ftype)
21938
      iprot.readFieldEnd()
21939
    iprot.readStructEnd()
21940
 
21941
  def write(self, oprot):
21942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21944
      return
21945
    oprot.writeStructBegin('getStorePricings_result')
21946
    if self.success is not None:
21947
      oprot.writeFieldBegin('success', TType.LIST, 0)
21948
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21949
      for iter419 in self.success:
21950
        iter419.write(oprot)
7306 rajveer 21951
      oprot.writeListEnd()
21952
      oprot.writeFieldEnd()
21953
    oprot.writeFieldStop()
21954
    oprot.writeStructEnd()
21955
 
21956
  def validate(self):
21957
    return
21958
 
21959
 
21960
  def __repr__(self):
21961
    L = ['%s=%r' % (key, value)
21962
      for key, value in self.__dict__.iteritems()]
21963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21964
 
21965
  def __eq__(self, other):
21966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21967
 
21968
  def __ne__(self, other):
21969
    return not (self == other)
21970
 
7265 rajveer 21971
class updateStorePricing_args:
21972
  """
21973
  Attributes:
21974
   - sp
7382 rajveer 21975
   - allColors
7265 rajveer 21976
  """
21977
 
21978
  thrift_spec = (
21979
    None, # 0
21980
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 21981
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 21982
  )
21983
 
7382 rajveer 21984
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 21985
    self.sp = sp
7382 rajveer 21986
    self.allColors = allColors
7265 rajveer 21987
 
21988
  def read(self, iprot):
21989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21991
      return
21992
    iprot.readStructBegin()
21993
    while True:
21994
      (fname, ftype, fid) = iprot.readFieldBegin()
21995
      if ftype == TType.STOP:
21996
        break
21997
      if fid == 1:
21998
        if ftype == TType.STRUCT:
21999
          self.sp = StorePricing()
22000
          self.sp.read(iprot)
22001
        else:
22002
          iprot.skip(ftype)
7382 rajveer 22003
      elif fid == 2:
22004
        if ftype == TType.BOOL:
22005
          self.allColors = iprot.readBool();
22006
        else:
22007
          iprot.skip(ftype)
7265 rajveer 22008
      else:
22009
        iprot.skip(ftype)
22010
      iprot.readFieldEnd()
22011
    iprot.readStructEnd()
22012
 
22013
  def write(self, oprot):
22014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22016
      return
22017
    oprot.writeStructBegin('updateStorePricing_args')
22018
    if self.sp is not None:
22019
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
22020
      self.sp.write(oprot)
22021
      oprot.writeFieldEnd()
7382 rajveer 22022
    if self.allColors is not None:
22023
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
22024
      oprot.writeBool(self.allColors)
22025
      oprot.writeFieldEnd()
7265 rajveer 22026
    oprot.writeFieldStop()
22027
    oprot.writeStructEnd()
22028
 
22029
  def validate(self):
22030
    return
22031
 
22032
 
22033
  def __repr__(self):
22034
    L = ['%s=%r' % (key, value)
22035
      for key, value in self.__dict__.iteritems()]
22036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22037
 
22038
  def __eq__(self, other):
22039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22040
 
22041
  def __ne__(self, other):
22042
    return not (self == other)
22043
 
22044
class updateStorePricing_result:
22045
 
22046
  thrift_spec = (
22047
  )
22048
 
22049
  def read(self, iprot):
22050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22052
      return
22053
    iprot.readStructBegin()
22054
    while True:
22055
      (fname, ftype, fid) = iprot.readFieldBegin()
22056
      if ftype == TType.STOP:
22057
        break
22058
      else:
22059
        iprot.skip(ftype)
22060
      iprot.readFieldEnd()
22061
    iprot.readStructEnd()
22062
 
22063
  def write(self, oprot):
22064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22066
      return
22067
    oprot.writeStructBegin('updateStorePricing_result')
22068
    oprot.writeFieldStop()
22069
    oprot.writeStructEnd()
22070
 
22071
  def validate(self):
22072
    return
22073
 
22074
 
22075
  def __repr__(self):
22076
    L = ['%s=%r' % (key, value)
22077
      for key, value in self.__dict__.iteritems()]
22078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22079
 
22080
  def __eq__(self, other):
22081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22082
 
22083
  def __ne__(self, other):
22084
    return not (self == other)
7281 kshitij.so 22085
 
22086
class getAllAmazonListedItems_args:
22087
 
22088
  thrift_spec = (
22089
  )
22090
 
22091
  def read(self, iprot):
22092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22094
      return
22095
    iprot.readStructBegin()
22096
    while True:
22097
      (fname, ftype, fid) = iprot.readFieldBegin()
22098
      if ftype == TType.STOP:
22099
        break
22100
      else:
22101
        iprot.skip(ftype)
22102
      iprot.readFieldEnd()
22103
    iprot.readStructEnd()
22104
 
22105
  def write(self, oprot):
22106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22108
      return
22109
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22110
    oprot.writeFieldStop()
22111
    oprot.writeStructEnd()
22112
 
22113
  def validate(self):
22114
    return
22115
 
22116
 
22117
  def __repr__(self):
22118
    L = ['%s=%r' % (key, value)
22119
      for key, value in self.__dict__.iteritems()]
22120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22121
 
22122
  def __eq__(self, other):
22123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22124
 
22125
  def __ne__(self, other):
22126
    return not (self == other)
22127
 
22128
class getAllAmazonListedItems_result:
22129
  """
22130
  Attributes:
22131
   - success
22132
  """
22133
 
22134
  thrift_spec = (
22135
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22136
  )
22137
 
22138
  def __init__(self, success=None,):
22139
    self.success = success
22140
 
22141
  def read(self, iprot):
22142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22144
      return
22145
    iprot.readStructBegin()
22146
    while True:
22147
      (fname, ftype, fid) = iprot.readFieldBegin()
22148
      if ftype == TType.STOP:
22149
        break
22150
      if fid == 0:
22151
        if ftype == TType.LIST:
22152
          self.success = []
12567 amit.gupta 22153
          (_etype423, _size420) = iprot.readListBegin()
22154
          for _i424 in xrange(_size420):
22155
            _elem425 = Amazonlisted()
22156
            _elem425.read(iprot)
22157
            self.success.append(_elem425)
7281 kshitij.so 22158
          iprot.readListEnd()
22159
        else:
22160
          iprot.skip(ftype)
22161
      else:
22162
        iprot.skip(ftype)
22163
      iprot.readFieldEnd()
22164
    iprot.readStructEnd()
22165
 
22166
  def write(self, oprot):
22167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22169
      return
22170
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22171
    if self.success is not None:
22172
      oprot.writeFieldBegin('success', TType.LIST, 0)
22173
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22174
      for iter426 in self.success:
22175
        iter426.write(oprot)
7281 kshitij.so 22176
      oprot.writeListEnd()
22177
      oprot.writeFieldEnd()
22178
    oprot.writeFieldStop()
22179
    oprot.writeStructEnd()
22180
 
22181
  def validate(self):
22182
    return
22183
 
22184
 
22185
  def __repr__(self):
22186
    L = ['%s=%r' % (key, value)
22187
      for key, value in self.__dict__.iteritems()]
22188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22189
 
22190
  def __eq__(self, other):
22191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22192
 
22193
  def __ne__(self, other):
22194
    return not (self == other)
22195
 
8619 kshitij.so 22196
class searchAmazonItems_args:
22197
  """
22198
  Attributes:
22199
   - searchTerm
22200
   - offset
22201
   - limit
22202
  """
22203
 
22204
  thrift_spec = (
22205
    None, # 0
22206
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22207
    (2, TType.I64, 'offset', None, None, ), # 2
22208
    (3, TType.I64, 'limit', None, None, ), # 3
22209
  )
22210
 
22211
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22212
    self.searchTerm = searchTerm
22213
    self.offset = offset
22214
    self.limit = limit
22215
 
22216
  def read(self, iprot):
22217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22219
      return
22220
    iprot.readStructBegin()
22221
    while True:
22222
      (fname, ftype, fid) = iprot.readFieldBegin()
22223
      if ftype == TType.STOP:
22224
        break
22225
      if fid == 1:
22226
        if ftype == TType.LIST:
22227
          self.searchTerm = []
12567 amit.gupta 22228
          (_etype430, _size427) = iprot.readListBegin()
22229
          for _i431 in xrange(_size427):
22230
            _elem432 = iprot.readString();
22231
            self.searchTerm.append(_elem432)
8619 kshitij.so 22232
          iprot.readListEnd()
22233
        else:
22234
          iprot.skip(ftype)
22235
      elif fid == 2:
22236
        if ftype == TType.I64:
22237
          self.offset = iprot.readI64();
22238
        else:
22239
          iprot.skip(ftype)
22240
      elif fid == 3:
22241
        if ftype == TType.I64:
22242
          self.limit = iprot.readI64();
22243
        else:
22244
          iprot.skip(ftype)
22245
      else:
22246
        iprot.skip(ftype)
22247
      iprot.readFieldEnd()
22248
    iprot.readStructEnd()
22249
 
22250
  def write(self, oprot):
22251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22253
      return
22254
    oprot.writeStructBegin('searchAmazonItems_args')
22255
    if self.searchTerm is not None:
22256
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22257
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22258
      for iter433 in self.searchTerm:
22259
        oprot.writeString(iter433)
8619 kshitij.so 22260
      oprot.writeListEnd()
22261
      oprot.writeFieldEnd()
22262
    if self.offset is not None:
22263
      oprot.writeFieldBegin('offset', TType.I64, 2)
22264
      oprot.writeI64(self.offset)
22265
      oprot.writeFieldEnd()
22266
    if self.limit is not None:
22267
      oprot.writeFieldBegin('limit', TType.I64, 3)
22268
      oprot.writeI64(self.limit)
22269
      oprot.writeFieldEnd()
22270
    oprot.writeFieldStop()
22271
    oprot.writeStructEnd()
22272
 
22273
  def validate(self):
22274
    return
22275
 
22276
 
22277
  def __repr__(self):
22278
    L = ['%s=%r' % (key, value)
22279
      for key, value in self.__dict__.iteritems()]
22280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22281
 
22282
  def __eq__(self, other):
22283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22284
 
22285
  def __ne__(self, other):
22286
    return not (self == other)
22287
 
22288
class searchAmazonItems_result:
22289
  """
22290
  Attributes:
22291
   - success
22292
  """
22293
 
22294
  thrift_spec = (
22295
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22296
  )
22297
 
22298
  def __init__(self, success=None,):
22299
    self.success = success
22300
 
22301
  def read(self, iprot):
22302
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22303
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22304
      return
22305
    iprot.readStructBegin()
22306
    while True:
22307
      (fname, ftype, fid) = iprot.readFieldBegin()
22308
      if ftype == TType.STOP:
22309
        break
22310
      if fid == 0:
22311
        if ftype == TType.LIST:
22312
          self.success = []
12567 amit.gupta 22313
          (_etype437, _size434) = iprot.readListBegin()
22314
          for _i438 in xrange(_size434):
22315
            _elem439 = Amazonlisted()
22316
            _elem439.read(iprot)
22317
            self.success.append(_elem439)
8619 kshitij.so 22318
          iprot.readListEnd()
22319
        else:
22320
          iprot.skip(ftype)
22321
      else:
22322
        iprot.skip(ftype)
22323
      iprot.readFieldEnd()
22324
    iprot.readStructEnd()
22325
 
22326
  def write(self, oprot):
22327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22329
      return
22330
    oprot.writeStructBegin('searchAmazonItems_result')
22331
    if self.success is not None:
22332
      oprot.writeFieldBegin('success', TType.LIST, 0)
22333
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22334
      for iter440 in self.success:
22335
        iter440.write(oprot)
8619 kshitij.so 22336
      oprot.writeListEnd()
22337
      oprot.writeFieldEnd()
22338
    oprot.writeFieldStop()
22339
    oprot.writeStructEnd()
22340
 
22341
  def validate(self):
22342
    return
22343
 
22344
 
22345
  def __repr__(self):
22346
    L = ['%s=%r' % (key, value)
22347
      for key, value in self.__dict__.iteritems()]
22348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22349
 
22350
  def __eq__(self, other):
22351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22352
 
22353
  def __ne__(self, other):
22354
    return not (self == other)
22355
 
22356
class getAmazonSearchResultCount_args:
22357
  """
22358
  Attributes:
22359
   - searchTerm
22360
  """
22361
 
22362
  thrift_spec = (
22363
    None, # 0
22364
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22365
  )
22366
 
22367
  def __init__(self, searchTerm=None,):
22368
    self.searchTerm = searchTerm
22369
 
22370
  def read(self, iprot):
22371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22373
      return
22374
    iprot.readStructBegin()
22375
    while True:
22376
      (fname, ftype, fid) = iprot.readFieldBegin()
22377
      if ftype == TType.STOP:
22378
        break
22379
      if fid == 1:
22380
        if ftype == TType.LIST:
22381
          self.searchTerm = []
12567 amit.gupta 22382
          (_etype444, _size441) = iprot.readListBegin()
22383
          for _i445 in xrange(_size441):
22384
            _elem446 = iprot.readString();
22385
            self.searchTerm.append(_elem446)
8619 kshitij.so 22386
          iprot.readListEnd()
22387
        else:
22388
          iprot.skip(ftype)
22389
      else:
22390
        iprot.skip(ftype)
22391
      iprot.readFieldEnd()
22392
    iprot.readStructEnd()
22393
 
22394
  def write(self, oprot):
22395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22397
      return
22398
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22399
    if self.searchTerm is not None:
22400
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22401
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22402
      for iter447 in self.searchTerm:
22403
        oprot.writeString(iter447)
8619 kshitij.so 22404
      oprot.writeListEnd()
22405
      oprot.writeFieldEnd()
22406
    oprot.writeFieldStop()
22407
    oprot.writeStructEnd()
22408
 
22409
  def validate(self):
22410
    return
22411
 
22412
 
22413
  def __repr__(self):
22414
    L = ['%s=%r' % (key, value)
22415
      for key, value in self.__dict__.iteritems()]
22416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22417
 
22418
  def __eq__(self, other):
22419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22420
 
22421
  def __ne__(self, other):
22422
    return not (self == other)
22423
 
22424
class getAmazonSearchResultCount_result:
22425
  """
22426
  Attributes:
22427
   - success
22428
  """
22429
 
22430
  thrift_spec = (
22431
    (0, TType.I64, 'success', None, None, ), # 0
22432
  )
22433
 
22434
  def __init__(self, success=None,):
22435
    self.success = success
22436
 
22437
  def read(self, iprot):
22438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22440
      return
22441
    iprot.readStructBegin()
22442
    while True:
22443
      (fname, ftype, fid) = iprot.readFieldBegin()
22444
      if ftype == TType.STOP:
22445
        break
22446
      if fid == 0:
22447
        if ftype == TType.I64:
22448
          self.success = iprot.readI64();
22449
        else:
22450
          iprot.skip(ftype)
22451
      else:
22452
        iprot.skip(ftype)
22453
      iprot.readFieldEnd()
22454
    iprot.readStructEnd()
22455
 
22456
  def write(self, oprot):
22457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22459
      return
22460
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22461
    if self.success is not None:
22462
      oprot.writeFieldBegin('success', TType.I64, 0)
22463
      oprot.writeI64(self.success)
22464
      oprot.writeFieldEnd()
22465
    oprot.writeFieldStop()
22466
    oprot.writeStructEnd()
22467
 
22468
  def validate(self):
22469
    return
22470
 
22471
 
22472
  def __repr__(self):
22473
    L = ['%s=%r' % (key, value)
22474
      for key, value in self.__dict__.iteritems()]
22475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22476
 
22477
  def __eq__(self, other):
22478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22479
 
22480
  def __ne__(self, other):
22481
    return not (self == other)
22482
 
22483
class getCountForAmazonlistedItems_args:
22484
 
22485
  thrift_spec = (
22486
  )
22487
 
22488
  def read(self, iprot):
22489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22491
      return
22492
    iprot.readStructBegin()
22493
    while True:
22494
      (fname, ftype, fid) = iprot.readFieldBegin()
22495
      if ftype == TType.STOP:
22496
        break
22497
      else:
22498
        iprot.skip(ftype)
22499
      iprot.readFieldEnd()
22500
    iprot.readStructEnd()
22501
 
22502
  def write(self, oprot):
22503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22505
      return
22506
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22507
    oprot.writeFieldStop()
22508
    oprot.writeStructEnd()
22509
 
22510
  def validate(self):
22511
    return
22512
 
22513
 
22514
  def __repr__(self):
22515
    L = ['%s=%r' % (key, value)
22516
      for key, value in self.__dict__.iteritems()]
22517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22518
 
22519
  def __eq__(self, other):
22520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22521
 
22522
  def __ne__(self, other):
22523
    return not (self == other)
22524
 
22525
class getCountForAmazonlistedItems_result:
22526
  """
22527
  Attributes:
22528
   - success
22529
  """
22530
 
22531
  thrift_spec = (
22532
    (0, TType.I64, 'success', None, None, ), # 0
22533
  )
22534
 
22535
  def __init__(self, success=None,):
22536
    self.success = success
22537
 
22538
  def read(self, iprot):
22539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22541
      return
22542
    iprot.readStructBegin()
22543
    while True:
22544
      (fname, ftype, fid) = iprot.readFieldBegin()
22545
      if ftype == TType.STOP:
22546
        break
22547
      if fid == 0:
22548
        if ftype == TType.I64:
22549
          self.success = iprot.readI64();
22550
        else:
22551
          iprot.skip(ftype)
22552
      else:
22553
        iprot.skip(ftype)
22554
      iprot.readFieldEnd()
22555
    iprot.readStructEnd()
22556
 
22557
  def write(self, oprot):
22558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22560
      return
22561
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22562
    if self.success is not None:
22563
      oprot.writeFieldBegin('success', TType.I64, 0)
22564
      oprot.writeI64(self.success)
22565
      oprot.writeFieldEnd()
22566
    oprot.writeFieldStop()
22567
    oprot.writeStructEnd()
22568
 
22569
  def validate(self):
22570
    return
22571
 
22572
 
22573
  def __repr__(self):
22574
    L = ['%s=%r' % (key, value)
22575
      for key, value in self.__dict__.iteritems()]
22576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22577
 
22578
  def __eq__(self, other):
22579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22580
 
22581
  def __ne__(self, other):
22582
    return not (self == other)
22583
 
7281 kshitij.so 22584
class getAmazonItemDetails_args:
22585
  """
22586
  Attributes:
22587
   - itemId
22588
  """
22589
 
22590
  thrift_spec = (
22591
    None, # 0
22592
    (1, TType.I64, 'itemId', None, None, ), # 1
22593
  )
22594
 
22595
  def __init__(self, itemId=None,):
22596
    self.itemId = itemId
22597
 
22598
  def read(self, iprot):
22599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22601
      return
22602
    iprot.readStructBegin()
22603
    while True:
22604
      (fname, ftype, fid) = iprot.readFieldBegin()
22605
      if ftype == TType.STOP:
22606
        break
22607
      if fid == 1:
22608
        if ftype == TType.I64:
22609
          self.itemId = iprot.readI64();
22610
        else:
22611
          iprot.skip(ftype)
22612
      else:
22613
        iprot.skip(ftype)
22614
      iprot.readFieldEnd()
22615
    iprot.readStructEnd()
22616
 
22617
  def write(self, oprot):
22618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22620
      return
22621
    oprot.writeStructBegin('getAmazonItemDetails_args')
22622
    if self.itemId is not None:
22623
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22624
      oprot.writeI64(self.itemId)
22625
      oprot.writeFieldEnd()
22626
    oprot.writeFieldStop()
22627
    oprot.writeStructEnd()
22628
 
22629
  def validate(self):
22630
    return
22631
 
22632
 
22633
  def __repr__(self):
22634
    L = ['%s=%r' % (key, value)
22635
      for key, value in self.__dict__.iteritems()]
22636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22637
 
22638
  def __eq__(self, other):
22639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22640
 
22641
  def __ne__(self, other):
22642
    return not (self == other)
22643
 
22644
class getAmazonItemDetails_result:
22645
  """
22646
  Attributes:
22647
   - success
22648
  """
22649
 
22650
  thrift_spec = (
22651
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22652
  )
22653
 
22654
  def __init__(self, success=None,):
22655
    self.success = success
22656
 
22657
  def read(self, iprot):
22658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22660
      return
22661
    iprot.readStructBegin()
22662
    while True:
22663
      (fname, ftype, fid) = iprot.readFieldBegin()
22664
      if ftype == TType.STOP:
22665
        break
22666
      if fid == 0:
22667
        if ftype == TType.STRUCT:
22668
          self.success = Amazonlisted()
22669
          self.success.read(iprot)
22670
        else:
22671
          iprot.skip(ftype)
22672
      else:
22673
        iprot.skip(ftype)
22674
      iprot.readFieldEnd()
22675
    iprot.readStructEnd()
22676
 
22677
  def write(self, oprot):
22678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22680
      return
22681
    oprot.writeStructBegin('getAmazonItemDetails_result')
22682
    if self.success is not None:
22683
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22684
      self.success.write(oprot)
22685
      oprot.writeFieldEnd()
22686
    oprot.writeFieldStop()
22687
    oprot.writeStructEnd()
22688
 
22689
  def validate(self):
22690
    return
22691
 
22692
 
22693
  def __repr__(self):
22694
    L = ['%s=%r' % (key, value)
22695
      for key, value in self.__dict__.iteritems()]
22696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22697
 
22698
  def __eq__(self, other):
22699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22700
 
22701
  def __ne__(self, other):
22702
    return not (self == other)
22703
 
22704
class updateAmazonItemDetails_args:
22705
  """
22706
  Attributes:
8168 kshitij.so 22707
   - amazonlisted
7281 kshitij.so 22708
  """
22709
 
22710
  thrift_spec = (
22711
    None, # 0
8168 kshitij.so 22712
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 22713
  )
22714
 
8168 kshitij.so 22715
  def __init__(self, amazonlisted=None,):
22716
    self.amazonlisted = amazonlisted
7281 kshitij.so 22717
 
22718
  def read(self, iprot):
22719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22721
      return
22722
    iprot.readStructBegin()
22723
    while True:
22724
      (fname, ftype, fid) = iprot.readFieldBegin()
22725
      if ftype == TType.STOP:
22726
        break
22727
      if fid == 1:
8168 kshitij.so 22728
        if ftype == TType.STRUCT:
22729
          self.amazonlisted = Amazonlisted()
22730
          self.amazonlisted.read(iprot)
7281 kshitij.so 22731
        else:
22732
          iprot.skip(ftype)
22733
      else:
22734
        iprot.skip(ftype)
22735
      iprot.readFieldEnd()
22736
    iprot.readStructEnd()
22737
 
22738
  def write(self, oprot):
22739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22741
      return
22742
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 22743
    if self.amazonlisted is not None:
22744
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22745
      self.amazonlisted.write(oprot)
7281 kshitij.so 22746
      oprot.writeFieldEnd()
22747
    oprot.writeFieldStop()
22748
    oprot.writeStructEnd()
22749
 
22750
  def validate(self):
22751
    return
22752
 
22753
 
22754
  def __repr__(self):
22755
    L = ['%s=%r' % (key, value)
22756
      for key, value in self.__dict__.iteritems()]
22757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22758
 
22759
  def __eq__(self, other):
22760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22761
 
22762
  def __ne__(self, other):
22763
    return not (self == other)
22764
 
22765
class updateAmazonItemDetails_result:
22766
 
22767
  thrift_spec = (
22768
  )
22769
 
22770
  def read(self, iprot):
22771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22773
      return
22774
    iprot.readStructBegin()
22775
    while True:
22776
      (fname, ftype, fid) = iprot.readFieldBegin()
22777
      if ftype == TType.STOP:
22778
        break
22779
      else:
22780
        iprot.skip(ftype)
22781
      iprot.readFieldEnd()
22782
    iprot.readStructEnd()
22783
 
22784
  def write(self, oprot):
22785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22787
      return
22788
    oprot.writeStructBegin('updateAmazonItemDetails_result')
22789
    oprot.writeFieldStop()
22790
    oprot.writeStructEnd()
22791
 
22792
  def validate(self):
22793
    return
22794
 
22795
 
22796
  def __repr__(self):
22797
    L = ['%s=%r' % (key, value)
22798
      for key, value in self.__dict__.iteritems()]
22799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22800
 
22801
  def __eq__(self, other):
22802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22803
 
22804
  def __ne__(self, other):
22805
    return not (self == other)
22806
 
22807
class addAmazonItem_args:
22808
  """
22809
  Attributes:
22810
   - amazonlisted
22811
  """
22812
 
22813
  thrift_spec = (
22814
    None, # 0
22815
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
22816
  )
22817
 
22818
  def __init__(self, amazonlisted=None,):
22819
    self.amazonlisted = amazonlisted
22820
 
22821
  def read(self, iprot):
22822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22824
      return
22825
    iprot.readStructBegin()
22826
    while True:
22827
      (fname, ftype, fid) = iprot.readFieldBegin()
22828
      if ftype == TType.STOP:
22829
        break
22830
      if fid == 1:
22831
        if ftype == TType.STRUCT:
22832
          self.amazonlisted = Amazonlisted()
22833
          self.amazonlisted.read(iprot)
22834
        else:
22835
          iprot.skip(ftype)
22836
      else:
22837
        iprot.skip(ftype)
22838
      iprot.readFieldEnd()
22839
    iprot.readStructEnd()
22840
 
22841
  def write(self, oprot):
22842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22844
      return
22845
    oprot.writeStructBegin('addAmazonItem_args')
22846
    if self.amazonlisted is not None:
22847
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22848
      self.amazonlisted.write(oprot)
22849
      oprot.writeFieldEnd()
22850
    oprot.writeFieldStop()
22851
    oprot.writeStructEnd()
22852
 
22853
  def validate(self):
22854
    return
22855
 
22856
 
22857
  def __repr__(self):
22858
    L = ['%s=%r' % (key, value)
22859
      for key, value in self.__dict__.iteritems()]
22860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22861
 
22862
  def __eq__(self, other):
22863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22864
 
22865
  def __ne__(self, other):
22866
    return not (self == other)
22867
 
22868
class addAmazonItem_result:
22869
 
22870
  thrift_spec = (
22871
  )
22872
 
22873
  def read(self, iprot):
22874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22876
      return
22877
    iprot.readStructBegin()
22878
    while True:
22879
      (fname, ftype, fid) = iprot.readFieldBegin()
22880
      if ftype == TType.STOP:
22881
        break
22882
      else:
22883
        iprot.skip(ftype)
22884
      iprot.readFieldEnd()
22885
    iprot.readStructEnd()
22886
 
22887
  def write(self, oprot):
22888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22890
      return
22891
    oprot.writeStructBegin('addAmazonItem_result')
22892
    oprot.writeFieldStop()
22893
    oprot.writeStructEnd()
22894
 
22895
  def validate(self):
22896
    return
22897
 
22898
 
22899
  def __repr__(self):
22900
    L = ['%s=%r' % (key, value)
22901
      for key, value in self.__dict__.iteritems()]
22902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22903
 
22904
  def __eq__(self, other):
22905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22906
 
22907
  def __ne__(self, other):
22908
    return not (self == other)
7291 vikram.rag 22909
 
22910
class getAsinItems_args:
22911
 
22912
  thrift_spec = (
22913
  )
22914
 
22915
  def read(self, iprot):
22916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22918
      return
22919
    iprot.readStructBegin()
22920
    while True:
22921
      (fname, ftype, fid) = iprot.readFieldBegin()
22922
      if ftype == TType.STOP:
22923
        break
22924
      else:
22925
        iprot.skip(ftype)
22926
      iprot.readFieldEnd()
22927
    iprot.readStructEnd()
22928
 
22929
  def write(self, oprot):
22930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22932
      return
22933
    oprot.writeStructBegin('getAsinItems_args')
22934
    oprot.writeFieldStop()
22935
    oprot.writeStructEnd()
22936
 
22937
  def validate(self):
22938
    return
22939
 
22940
 
22941
  def __repr__(self):
22942
    L = ['%s=%r' % (key, value)
22943
      for key, value in self.__dict__.iteritems()]
22944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22945
 
22946
  def __eq__(self, other):
22947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22948
 
22949
  def __ne__(self, other):
22950
    return not (self == other)
22951
 
22952
class getAsinItems_result:
22953
  """
22954
  Attributes:
22955
   - success
22956
  """
22957
 
22958
  thrift_spec = (
22959
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
22960
  )
22961
 
22962
  def __init__(self, success=None,):
22963
    self.success = success
22964
 
22965
  def read(self, iprot):
22966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22968
      return
22969
    iprot.readStructBegin()
22970
    while True:
22971
      (fname, ftype, fid) = iprot.readFieldBegin()
22972
      if ftype == TType.STOP:
22973
        break
22974
      if fid == 0:
22975
        if ftype == TType.LIST:
22976
          self.success = []
12567 amit.gupta 22977
          (_etype451, _size448) = iprot.readListBegin()
22978
          for _i452 in xrange(_size448):
22979
            _elem453 = Item()
22980
            _elem453.read(iprot)
22981
            self.success.append(_elem453)
7291 vikram.rag 22982
          iprot.readListEnd()
22983
        else:
22984
          iprot.skip(ftype)
22985
      else:
22986
        iprot.skip(ftype)
22987
      iprot.readFieldEnd()
22988
    iprot.readStructEnd()
22989
 
22990
  def write(self, oprot):
22991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22993
      return
22994
    oprot.writeStructBegin('getAsinItems_result')
22995
    if self.success is not None:
22996
      oprot.writeFieldBegin('success', TType.LIST, 0)
22997
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22998
      for iter454 in self.success:
22999
        iter454.write(oprot)
7291 vikram.rag 23000
      oprot.writeListEnd()
23001
      oprot.writeFieldEnd()
23002
    oprot.writeFieldStop()
23003
    oprot.writeStructEnd()
23004
 
23005
  def validate(self):
23006
    return
23007
 
23008
 
23009
  def __repr__(self):
23010
    L = ['%s=%r' % (key, value)
23011
      for key, value in self.__dict__.iteritems()]
23012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23013
 
23014
  def __eq__(self, other):
23015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23016
 
23017
  def __ne__(self, other):
23018
    return not (self == other)
23019
 
23020
class getAllFbaListedItems_args:
23021
 
23022
  thrift_spec = (
23023
  )
23024
 
23025
  def read(self, iprot):
23026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23028
      return
23029
    iprot.readStructBegin()
23030
    while True:
23031
      (fname, ftype, fid) = iprot.readFieldBegin()
23032
      if ftype == TType.STOP:
23033
        break
23034
      else:
23035
        iprot.skip(ftype)
23036
      iprot.readFieldEnd()
23037
    iprot.readStructEnd()
23038
 
23039
  def write(self, oprot):
23040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23042
      return
23043
    oprot.writeStructBegin('getAllFbaListedItems_args')
23044
    oprot.writeFieldStop()
23045
    oprot.writeStructEnd()
23046
 
23047
  def validate(self):
23048
    return
23049
 
23050
 
23051
  def __repr__(self):
23052
    L = ['%s=%r' % (key, value)
23053
      for key, value in self.__dict__.iteritems()]
23054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23055
 
23056
  def __eq__(self, other):
23057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23058
 
23059
  def __ne__(self, other):
23060
    return not (self == other)
23061
 
23062
class getAllFbaListedItems_result:
23063
  """
23064
  Attributes:
23065
   - success
23066
  """
23067
 
23068
  thrift_spec = (
23069
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23070
  )
23071
 
23072
  def __init__(self, success=None,):
23073
    self.success = success
23074
 
23075
  def read(self, iprot):
23076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23078
      return
23079
    iprot.readStructBegin()
23080
    while True:
23081
      (fname, ftype, fid) = iprot.readFieldBegin()
23082
      if ftype == TType.STOP:
23083
        break
23084
      if fid == 0:
23085
        if ftype == TType.LIST:
23086
          self.success = []
12567 amit.gupta 23087
          (_etype458, _size455) = iprot.readListBegin()
23088
          for _i459 in xrange(_size455):
23089
            _elem460 = Amazonlisted()
23090
            _elem460.read(iprot)
23091
            self.success.append(_elem460)
7291 vikram.rag 23092
          iprot.readListEnd()
23093
        else:
23094
          iprot.skip(ftype)
23095
      else:
23096
        iprot.skip(ftype)
23097
      iprot.readFieldEnd()
23098
    iprot.readStructEnd()
23099
 
23100
  def write(self, oprot):
23101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23103
      return
23104
    oprot.writeStructBegin('getAllFbaListedItems_result')
23105
    if self.success is not None:
23106
      oprot.writeFieldBegin('success', TType.LIST, 0)
23107
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23108
      for iter461 in self.success:
23109
        iter461.write(oprot)
7291 vikram.rag 23110
      oprot.writeListEnd()
23111
      oprot.writeFieldEnd()
23112
    oprot.writeFieldStop()
23113
    oprot.writeStructEnd()
23114
 
23115
  def validate(self):
23116
    return
23117
 
23118
 
23119
  def __repr__(self):
23120
    L = ['%s=%r' % (key, value)
23121
      for key, value in self.__dict__.iteritems()]
23122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23123
 
23124
  def __eq__(self, other):
23125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23126
 
23127
  def __ne__(self, other):
23128
    return not (self == other)
23129
 
23130
class getAllNonFbaListedItems_args:
23131
 
23132
  thrift_spec = (
23133
  )
23134
 
23135
  def read(self, iprot):
23136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23138
      return
23139
    iprot.readStructBegin()
23140
    while True:
23141
      (fname, ftype, fid) = iprot.readFieldBegin()
23142
      if ftype == TType.STOP:
23143
        break
23144
      else:
23145
        iprot.skip(ftype)
23146
      iprot.readFieldEnd()
23147
    iprot.readStructEnd()
23148
 
23149
  def write(self, oprot):
23150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23152
      return
23153
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23154
    oprot.writeFieldStop()
23155
    oprot.writeStructEnd()
23156
 
23157
  def validate(self):
23158
    return
23159
 
23160
 
23161
  def __repr__(self):
23162
    L = ['%s=%r' % (key, value)
23163
      for key, value in self.__dict__.iteritems()]
23164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23165
 
23166
  def __eq__(self, other):
23167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23168
 
23169
  def __ne__(self, other):
23170
    return not (self == other)
23171
 
23172
class getAllNonFbaListedItems_result:
23173
  """
23174
  Attributes:
23175
   - success
23176
  """
23177
 
23178
  thrift_spec = (
23179
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23180
  )
23181
 
23182
  def __init__(self, success=None,):
23183
    self.success = success
23184
 
23185
  def read(self, iprot):
23186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23188
      return
23189
    iprot.readStructBegin()
23190
    while True:
23191
      (fname, ftype, fid) = iprot.readFieldBegin()
23192
      if ftype == TType.STOP:
23193
        break
23194
      if fid == 0:
23195
        if ftype == TType.LIST:
23196
          self.success = []
12567 amit.gupta 23197
          (_etype465, _size462) = iprot.readListBegin()
23198
          for _i466 in xrange(_size462):
23199
            _elem467 = Amazonlisted()
23200
            _elem467.read(iprot)
23201
            self.success.append(_elem467)
7291 vikram.rag 23202
          iprot.readListEnd()
23203
        else:
23204
          iprot.skip(ftype)
23205
      else:
23206
        iprot.skip(ftype)
23207
      iprot.readFieldEnd()
23208
    iprot.readStructEnd()
23209
 
23210
  def write(self, oprot):
23211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23213
      return
23214
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23215
    if self.success is not None:
23216
      oprot.writeFieldBegin('success', TType.LIST, 0)
23217
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23218
      for iter468 in self.success:
23219
        iter468.write(oprot)
7291 vikram.rag 23220
      oprot.writeListEnd()
23221
      oprot.writeFieldEnd()
23222
    oprot.writeFieldStop()
23223
    oprot.writeStructEnd()
23224
 
23225
  def validate(self):
23226
    return
23227
 
23228
 
23229
  def __repr__(self):
23230
    L = ['%s=%r' % (key, value)
23231
      for key, value in self.__dict__.iteritems()]
23232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23233
 
23234
  def __eq__(self, other):
23235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23236
 
23237
  def __ne__(self, other):
23238
    return not (self == other)
7460 kshitij.so 23239
 
23240
class updateItemInventory_args:
23241
  """
23242
  Attributes:
23243
   - itemId
23244
   - holdInventory
23245
   - defaultInventory
23246
  """
23247
 
23248
  thrift_spec = (
23249
    None, # 0
23250
    (1, TType.I64, 'itemId', None, None, ), # 1
23251
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23252
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23253
  )
23254
 
23255
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23256
    self.itemId = itemId
23257
    self.holdInventory = holdInventory
23258
    self.defaultInventory = defaultInventory
23259
 
23260
  def read(self, iprot):
23261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23263
      return
23264
    iprot.readStructBegin()
23265
    while True:
23266
      (fname, ftype, fid) = iprot.readFieldBegin()
23267
      if ftype == TType.STOP:
23268
        break
23269
      if fid == 1:
23270
        if ftype == TType.I64:
23271
          self.itemId = iprot.readI64();
23272
        else:
23273
          iprot.skip(ftype)
23274
      elif fid == 2:
23275
        if ftype == TType.I64:
23276
          self.holdInventory = iprot.readI64();
23277
        else:
23278
          iprot.skip(ftype)
23279
      elif fid == 3:
23280
        if ftype == TType.I64:
23281
          self.defaultInventory = iprot.readI64();
23282
        else:
23283
          iprot.skip(ftype)
23284
      else:
23285
        iprot.skip(ftype)
23286
      iprot.readFieldEnd()
23287
    iprot.readStructEnd()
23288
 
23289
  def write(self, oprot):
23290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23292
      return
23293
    oprot.writeStructBegin('updateItemInventory_args')
23294
    if self.itemId is not None:
23295
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23296
      oprot.writeI64(self.itemId)
23297
      oprot.writeFieldEnd()
23298
    if self.holdInventory is not None:
23299
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23300
      oprot.writeI64(self.holdInventory)
23301
      oprot.writeFieldEnd()
23302
    if self.defaultInventory is not None:
23303
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23304
      oprot.writeI64(self.defaultInventory)
23305
      oprot.writeFieldEnd()
23306
    oprot.writeFieldStop()
23307
    oprot.writeStructEnd()
23308
 
23309
  def validate(self):
23310
    return
23311
 
23312
 
23313
  def __repr__(self):
23314
    L = ['%s=%r' % (key, value)
23315
      for key, value in self.__dict__.iteritems()]
23316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23317
 
23318
  def __eq__(self, other):
23319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23320
 
23321
  def __ne__(self, other):
23322
    return not (self == other)
23323
 
23324
class updateItemInventory_result:
23325
  """
23326
  Attributes:
23327
   - success
23328
  """
23329
 
23330
  thrift_spec = (
23331
    (0, TType.BOOL, 'success', None, None, ), # 0
23332
  )
23333
 
23334
  def __init__(self, success=None,):
23335
    self.success = success
23336
 
23337
  def read(self, iprot):
23338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23340
      return
23341
    iprot.readStructBegin()
23342
    while True:
23343
      (fname, ftype, fid) = iprot.readFieldBegin()
23344
      if ftype == TType.STOP:
23345
        break
23346
      if fid == 0:
23347
        if ftype == TType.BOOL:
23348
          self.success = iprot.readBool();
23349
        else:
23350
          iprot.skip(ftype)
23351
      else:
23352
        iprot.skip(ftype)
23353
      iprot.readFieldEnd()
23354
    iprot.readStructEnd()
23355
 
23356
  def write(self, oprot):
23357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23359
      return
23360
    oprot.writeStructBegin('updateItemInventory_result')
23361
    if self.success is not None:
23362
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23363
      oprot.writeBool(self.success)
23364
      oprot.writeFieldEnd()
23365
    oprot.writeFieldStop()
23366
    oprot.writeStructEnd()
23367
 
23368
  def validate(self):
23369
    return
23370
 
23371
 
23372
  def __repr__(self):
23373
    L = ['%s=%r' % (key, value)
23374
      for key, value in self.__dict__.iteritems()]
23375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23376
 
23377
  def __eq__(self, other):
23378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23379
 
23380
  def __ne__(self, other):
23381
    return not (self == other)
7770 kshitij.so 23382
 
23383
class updateTimestampForAmazonFeeds_args:
23384
  """
23385
  Attributes:
23386
   - type
23387
   - sku
23388
   - timestamp
23389
  """
23390
 
23391
  thrift_spec = (
23392
    None, # 0
23393
    (1, TType.STRING, 'type', None, None, ), # 1
23394
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23395
    (3, TType.I64, 'timestamp', None, None, ), # 3
23396
  )
23397
 
23398
  def __init__(self, type=None, sku=None, timestamp=None,):
23399
    self.type = type
23400
    self.sku = sku
23401
    self.timestamp = timestamp
23402
 
23403
  def read(self, iprot):
23404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23406
      return
23407
    iprot.readStructBegin()
23408
    while True:
23409
      (fname, ftype, fid) = iprot.readFieldBegin()
23410
      if ftype == TType.STOP:
23411
        break
23412
      if fid == 1:
23413
        if ftype == TType.STRING:
23414
          self.type = iprot.readString();
23415
        else:
23416
          iprot.skip(ftype)
23417
      elif fid == 2:
23418
        if ftype == TType.LIST:
23419
          self.sku = []
12567 amit.gupta 23420
          (_etype472, _size469) = iprot.readListBegin()
23421
          for _i473 in xrange(_size469):
23422
            _elem474 = iprot.readI64();
23423
            self.sku.append(_elem474)
7770 kshitij.so 23424
          iprot.readListEnd()
23425
        else:
23426
          iprot.skip(ftype)
23427
      elif fid == 3:
23428
        if ftype == TType.I64:
23429
          self.timestamp = iprot.readI64();
23430
        else:
23431
          iprot.skip(ftype)
23432
      else:
23433
        iprot.skip(ftype)
23434
      iprot.readFieldEnd()
23435
    iprot.readStructEnd()
23436
 
23437
  def write(self, oprot):
23438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23440
      return
23441
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23442
    if self.type is not None:
23443
      oprot.writeFieldBegin('type', TType.STRING, 1)
23444
      oprot.writeString(self.type)
23445
      oprot.writeFieldEnd()
23446
    if self.sku is not None:
23447
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23448
      oprot.writeListBegin(TType.I64, len(self.sku))
12567 amit.gupta 23449
      for iter475 in self.sku:
23450
        oprot.writeI64(iter475)
7770 kshitij.so 23451
      oprot.writeListEnd()
23452
      oprot.writeFieldEnd()
23453
    if self.timestamp is not None:
23454
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23455
      oprot.writeI64(self.timestamp)
23456
      oprot.writeFieldEnd()
23457
    oprot.writeFieldStop()
23458
    oprot.writeStructEnd()
23459
 
23460
  def validate(self):
23461
    return
23462
 
23463
 
23464
  def __repr__(self):
23465
    L = ['%s=%r' % (key, value)
23466
      for key, value in self.__dict__.iteritems()]
23467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23468
 
23469
  def __eq__(self, other):
23470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23471
 
23472
  def __ne__(self, other):
23473
    return not (self == other)
23474
 
23475
class updateTimestampForAmazonFeeds_result:
23476
  """
23477
  Attributes:
23478
   - success
23479
  """
23480
 
23481
  thrift_spec = (
23482
    (0, TType.BOOL, 'success', None, None, ), # 0
23483
  )
23484
 
23485
  def __init__(self, success=None,):
23486
    self.success = success
23487
 
23488
  def read(self, iprot):
23489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23491
      return
23492
    iprot.readStructBegin()
23493
    while True:
23494
      (fname, ftype, fid) = iprot.readFieldBegin()
23495
      if ftype == TType.STOP:
23496
        break
23497
      if fid == 0:
23498
        if ftype == TType.BOOL:
23499
          self.success = iprot.readBool();
23500
        else:
23501
          iprot.skip(ftype)
23502
      else:
23503
        iprot.skip(ftype)
23504
      iprot.readFieldEnd()
23505
    iprot.readStructEnd()
23506
 
23507
  def write(self, oprot):
23508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23510
      return
23511
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23512
    if self.success is not None:
23513
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23514
      oprot.writeBool(self.success)
23515
      oprot.writeFieldEnd()
23516
    oprot.writeFieldStop()
23517
    oprot.writeStructEnd()
23518
 
23519
  def validate(self):
23520
    return
23521
 
23522
 
23523
  def __repr__(self):
23524
    L = ['%s=%r' % (key, value)
23525
      for key, value in self.__dict__.iteritems()]
23526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23527
 
23528
  def __eq__(self, other):
23529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23530
 
23531
  def __ne__(self, other):
23532
    return not (self == other)
7897 amar.kumar 23533
 
23534
class getAllParentCategories_args:
23535
 
23536
  thrift_spec = (
23537
  )
23538
 
23539
  def read(self, iprot):
23540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23542
      return
23543
    iprot.readStructBegin()
23544
    while True:
23545
      (fname, ftype, fid) = iprot.readFieldBegin()
23546
      if ftype == TType.STOP:
23547
        break
23548
      else:
23549
        iprot.skip(ftype)
23550
      iprot.readFieldEnd()
23551
    iprot.readStructEnd()
23552
 
23553
  def write(self, oprot):
23554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23556
      return
23557
    oprot.writeStructBegin('getAllParentCategories_args')
23558
    oprot.writeFieldStop()
23559
    oprot.writeStructEnd()
23560
 
23561
  def validate(self):
23562
    return
23563
 
23564
 
23565
  def __repr__(self):
23566
    L = ['%s=%r' % (key, value)
23567
      for key, value in self.__dict__.iteritems()]
23568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23569
 
23570
  def __eq__(self, other):
23571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23572
 
23573
  def __ne__(self, other):
23574
    return not (self == other)
23575
 
23576
class getAllParentCategories_result:
23577
  """
23578
  Attributes:
23579
   - success
23580
  """
23581
 
23582
  thrift_spec = (
23583
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23584
  )
23585
 
23586
  def __init__(self, success=None,):
23587
    self.success = success
23588
 
23589
  def read(self, iprot):
23590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23592
      return
23593
    iprot.readStructBegin()
23594
    while True:
23595
      (fname, ftype, fid) = iprot.readFieldBegin()
23596
      if ftype == TType.STOP:
23597
        break
23598
      if fid == 0:
23599
        if ftype == TType.LIST:
23600
          self.success = []
12567 amit.gupta 23601
          (_etype479, _size476) = iprot.readListBegin()
23602
          for _i480 in xrange(_size476):
23603
            _elem481 = Category()
23604
            _elem481.read(iprot)
23605
            self.success.append(_elem481)
7897 amar.kumar 23606
          iprot.readListEnd()
23607
        else:
23608
          iprot.skip(ftype)
23609
      else:
23610
        iprot.skip(ftype)
23611
      iprot.readFieldEnd()
23612
    iprot.readStructEnd()
23613
 
23614
  def write(self, oprot):
23615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23617
      return
23618
    oprot.writeStructBegin('getAllParentCategories_result')
23619
    if self.success is not None:
23620
      oprot.writeFieldBegin('success', TType.LIST, 0)
23621
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23622
      for iter482 in self.success:
23623
        iter482.write(oprot)
7897 amar.kumar 23624
      oprot.writeListEnd()
23625
      oprot.writeFieldEnd()
23626
    oprot.writeFieldStop()
23627
    oprot.writeStructEnd()
23628
 
23629
  def validate(self):
23630
    return
23631
 
23632
 
23633
  def __repr__(self):
23634
    L = ['%s=%r' % (key, value)
23635
      for key, value in self.__dict__.iteritems()]
23636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23637
 
23638
  def __eq__(self, other):
23639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23640
 
23641
  def __ne__(self, other):
23642
    return not (self == other)
7977 kshitij.so 23643
 
23644
class addPageViewEvent_args:
23645
  """
23646
  Attributes:
23647
   - pageViewEvents
23648
  """
23649
 
23650
  thrift_spec = (
23651
    None, # 0
23652
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23653
  )
23654
 
23655
  def __init__(self, pageViewEvents=None,):
23656
    self.pageViewEvents = pageViewEvents
23657
 
23658
  def read(self, iprot):
23659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23661
      return
23662
    iprot.readStructBegin()
23663
    while True:
23664
      (fname, ftype, fid) = iprot.readFieldBegin()
23665
      if ftype == TType.STOP:
23666
        break
23667
      if fid == 1:
23668
        if ftype == TType.STRUCT:
23669
          self.pageViewEvents = PageViewEvents()
23670
          self.pageViewEvents.read(iprot)
23671
        else:
23672
          iprot.skip(ftype)
23673
      else:
23674
        iprot.skip(ftype)
23675
      iprot.readFieldEnd()
23676
    iprot.readStructEnd()
23677
 
23678
  def write(self, oprot):
23679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23681
      return
23682
    oprot.writeStructBegin('addPageViewEvent_args')
23683
    if self.pageViewEvents is not None:
23684
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
23685
      self.pageViewEvents.write(oprot)
23686
      oprot.writeFieldEnd()
23687
    oprot.writeFieldStop()
23688
    oprot.writeStructEnd()
23689
 
23690
  def validate(self):
23691
    return
23692
 
23693
 
23694
  def __repr__(self):
23695
    L = ['%s=%r' % (key, value)
23696
      for key, value in self.__dict__.iteritems()]
23697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23698
 
23699
  def __eq__(self, other):
23700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23701
 
23702
  def __ne__(self, other):
23703
    return not (self == other)
23704
 
23705
class addPageViewEvent_result:
23706
 
23707
  thrift_spec = (
23708
  )
23709
 
23710
  def read(self, iprot):
23711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23713
      return
23714
    iprot.readStructBegin()
23715
    while True:
23716
      (fname, ftype, fid) = iprot.readFieldBegin()
23717
      if ftype == TType.STOP:
23718
        break
23719
      else:
23720
        iprot.skip(ftype)
23721
      iprot.readFieldEnd()
23722
    iprot.readStructEnd()
23723
 
23724
  def write(self, oprot):
23725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23727
      return
23728
    oprot.writeStructBegin('addPageViewEvent_result')
23729
    oprot.writeFieldStop()
23730
    oprot.writeStructEnd()
23731
 
23732
  def validate(self):
23733
    return
23734
 
23735
 
23736
  def __repr__(self):
23737
    L = ['%s=%r' % (key, value)
23738
      for key, value in self.__dict__.iteritems()]
23739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23740
 
23741
  def __eq__(self, other):
23742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23743
 
23744
  def __ne__(self, other):
23745
    return not (self == other)
23746
 
23747
class addCartEvent_args:
23748
  """
23749
  Attributes:
23750
   - cartEvents
23751
  """
23752
 
23753
  thrift_spec = (
23754
    None, # 0
23755
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
23756
  )
23757
 
23758
  def __init__(self, cartEvents=None,):
23759
    self.cartEvents = cartEvents
23760
 
23761
  def read(self, iprot):
23762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23764
      return
23765
    iprot.readStructBegin()
23766
    while True:
23767
      (fname, ftype, fid) = iprot.readFieldBegin()
23768
      if ftype == TType.STOP:
23769
        break
23770
      if fid == 1:
23771
        if ftype == TType.STRUCT:
23772
          self.cartEvents = CartEvents()
23773
          self.cartEvents.read(iprot)
23774
        else:
23775
          iprot.skip(ftype)
23776
      else:
23777
        iprot.skip(ftype)
23778
      iprot.readFieldEnd()
23779
    iprot.readStructEnd()
23780
 
23781
  def write(self, oprot):
23782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23784
      return
23785
    oprot.writeStructBegin('addCartEvent_args')
23786
    if self.cartEvents is not None:
23787
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
23788
      self.cartEvents.write(oprot)
23789
      oprot.writeFieldEnd()
23790
    oprot.writeFieldStop()
23791
    oprot.writeStructEnd()
23792
 
23793
  def validate(self):
23794
    return
23795
 
23796
 
23797
  def __repr__(self):
23798
    L = ['%s=%r' % (key, value)
23799
      for key, value in self.__dict__.iteritems()]
23800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23801
 
23802
  def __eq__(self, other):
23803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23804
 
23805
  def __ne__(self, other):
23806
    return not (self == other)
23807
 
23808
class addCartEvent_result:
23809
 
23810
  thrift_spec = (
23811
  )
23812
 
23813
  def read(self, iprot):
23814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23816
      return
23817
    iprot.readStructBegin()
23818
    while True:
23819
      (fname, ftype, fid) = iprot.readFieldBegin()
23820
      if ftype == TType.STOP:
23821
        break
23822
      else:
23823
        iprot.skip(ftype)
23824
      iprot.readFieldEnd()
23825
    iprot.readStructEnd()
23826
 
23827
  def write(self, oprot):
23828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23830
      return
23831
    oprot.writeStructBegin('addCartEvent_result')
23832
    oprot.writeFieldStop()
23833
    oprot.writeStructEnd()
23834
 
23835
  def validate(self):
23836
    return
23837
 
23838
 
23839
  def __repr__(self):
23840
    L = ['%s=%r' % (key, value)
23841
      for key, value in self.__dict__.iteritems()]
23842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23843
 
23844
  def __eq__(self, other):
23845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23846
 
23847
  def __ne__(self, other):
23848
    return not (self == other)
8139 kshitij.so 23849
 
8182 amar.kumar 23850
class addEbayItem_args:
23851
  """
23852
  Attributes:
23853
   - ebayItem
23854
  """
23855
 
23856
  thrift_spec = (
23857
    None, # 0
23858
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23859
  )
23860
 
23861
  def __init__(self, ebayItem=None,):
23862
    self.ebayItem = ebayItem
23863
 
23864
  def read(self, iprot):
23865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23867
      return
23868
    iprot.readStructBegin()
23869
    while True:
23870
      (fname, ftype, fid) = iprot.readFieldBegin()
23871
      if ftype == TType.STOP:
23872
        break
23873
      if fid == 1:
23874
        if ftype == TType.STRUCT:
23875
          self.ebayItem = EbayItem()
23876
          self.ebayItem.read(iprot)
23877
        else:
23878
          iprot.skip(ftype)
23879
      else:
23880
        iprot.skip(ftype)
23881
      iprot.readFieldEnd()
23882
    iprot.readStructEnd()
23883
 
23884
  def write(self, oprot):
23885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23887
      return
23888
    oprot.writeStructBegin('addEbayItem_args')
23889
    if self.ebayItem is not None:
23890
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
23891
      self.ebayItem.write(oprot)
23892
      oprot.writeFieldEnd()
23893
    oprot.writeFieldStop()
23894
    oprot.writeStructEnd()
23895
 
23896
  def validate(self):
23897
    return
23898
 
23899
 
23900
  def __repr__(self):
23901
    L = ['%s=%r' % (key, value)
23902
      for key, value in self.__dict__.iteritems()]
23903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23904
 
23905
  def __eq__(self, other):
23906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23907
 
23908
  def __ne__(self, other):
23909
    return not (self == other)
23910
 
23911
class addEbayItem_result:
23912
 
23913
  thrift_spec = (
23914
  )
23915
 
23916
  def read(self, iprot):
23917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23919
      return
23920
    iprot.readStructBegin()
23921
    while True:
23922
      (fname, ftype, fid) = iprot.readFieldBegin()
23923
      if ftype == TType.STOP:
23924
        break
23925
      else:
23926
        iprot.skip(ftype)
23927
      iprot.readFieldEnd()
23928
    iprot.readStructEnd()
23929
 
23930
  def write(self, oprot):
23931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23933
      return
23934
    oprot.writeStructBegin('addEbayItem_result')
23935
    oprot.writeFieldStop()
23936
    oprot.writeStructEnd()
23937
 
23938
  def validate(self):
23939
    return
23940
 
23941
 
23942
  def __repr__(self):
23943
    L = ['%s=%r' % (key, value)
23944
      for key, value in self.__dict__.iteritems()]
23945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23946
 
23947
  def __eq__(self, other):
23948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23949
 
23950
  def __ne__(self, other):
23951
    return not (self == other)
23952
 
23953
class getEbayItem_args:
23954
  """
23955
  Attributes:
23956
   - listingId
23957
  """
23958
 
23959
  thrift_spec = (
23960
    None, # 0
23961
    (1, TType.STRING, 'listingId', None, None, ), # 1
23962
  )
23963
 
23964
  def __init__(self, listingId=None,):
23965
    self.listingId = listingId
23966
 
23967
  def read(self, iprot):
23968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23970
      return
23971
    iprot.readStructBegin()
23972
    while True:
23973
      (fname, ftype, fid) = iprot.readFieldBegin()
23974
      if ftype == TType.STOP:
23975
        break
23976
      if fid == 1:
23977
        if ftype == TType.STRING:
23978
          self.listingId = iprot.readString();
23979
        else:
23980
          iprot.skip(ftype)
23981
      else:
23982
        iprot.skip(ftype)
23983
      iprot.readFieldEnd()
23984
    iprot.readStructEnd()
23985
 
23986
  def write(self, oprot):
23987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23989
      return
23990
    oprot.writeStructBegin('getEbayItem_args')
23991
    if self.listingId is not None:
23992
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
23993
      oprot.writeString(self.listingId)
23994
      oprot.writeFieldEnd()
23995
    oprot.writeFieldStop()
23996
    oprot.writeStructEnd()
23997
 
23998
  def validate(self):
23999
    return
24000
 
24001
 
24002
  def __repr__(self):
24003
    L = ['%s=%r' % (key, value)
24004
      for key, value in self.__dict__.iteritems()]
24005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24006
 
24007
  def __eq__(self, other):
24008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24009
 
24010
  def __ne__(self, other):
24011
    return not (self == other)
24012
 
24013
class getEbayItem_result:
24014
  """
24015
  Attributes:
24016
   - success
24017
  """
24018
 
24019
  thrift_spec = (
24020
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
24021
  )
24022
 
24023
  def __init__(self, success=None,):
24024
    self.success = success
24025
 
24026
  def read(self, iprot):
24027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24029
      return
24030
    iprot.readStructBegin()
24031
    while True:
24032
      (fname, ftype, fid) = iprot.readFieldBegin()
24033
      if ftype == TType.STOP:
24034
        break
24035
      if fid == 0:
24036
        if ftype == TType.STRUCT:
24037
          self.success = EbayItem()
24038
          self.success.read(iprot)
24039
        else:
24040
          iprot.skip(ftype)
24041
      else:
24042
        iprot.skip(ftype)
24043
      iprot.readFieldEnd()
24044
    iprot.readStructEnd()
24045
 
24046
  def write(self, oprot):
24047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24049
      return
24050
    oprot.writeStructBegin('getEbayItem_result')
24051
    if self.success is not None:
24052
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24053
      self.success.write(oprot)
24054
      oprot.writeFieldEnd()
24055
    oprot.writeFieldStop()
24056
    oprot.writeStructEnd()
24057
 
24058
  def validate(self):
24059
    return
24060
 
24061
 
24062
  def __repr__(self):
24063
    L = ['%s=%r' % (key, value)
24064
      for key, value in self.__dict__.iteritems()]
24065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24066
 
24067
  def __eq__(self, other):
24068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24069
 
24070
  def __ne__(self, other):
24071
    return not (self == other)
24072
 
24073
class updateEbayItem_args:
24074
  """
24075
  Attributes:
24076
   - ebayItem
24077
  """
24078
 
24079
  thrift_spec = (
24080
    None, # 0
24081
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24082
  )
24083
 
24084
  def __init__(self, ebayItem=None,):
24085
    self.ebayItem = ebayItem
24086
 
24087
  def read(self, iprot):
24088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24090
      return
24091
    iprot.readStructBegin()
24092
    while True:
24093
      (fname, ftype, fid) = iprot.readFieldBegin()
24094
      if ftype == TType.STOP:
24095
        break
24096
      if fid == 1:
24097
        if ftype == TType.STRUCT:
24098
          self.ebayItem = EbayItem()
24099
          self.ebayItem.read(iprot)
24100
        else:
24101
          iprot.skip(ftype)
24102
      else:
24103
        iprot.skip(ftype)
24104
      iprot.readFieldEnd()
24105
    iprot.readStructEnd()
24106
 
24107
  def write(self, oprot):
24108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24110
      return
24111
    oprot.writeStructBegin('updateEbayItem_args')
24112
    if self.ebayItem is not None:
24113
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24114
      self.ebayItem.write(oprot)
24115
      oprot.writeFieldEnd()
24116
    oprot.writeFieldStop()
24117
    oprot.writeStructEnd()
24118
 
24119
  def validate(self):
24120
    return
24121
 
24122
 
24123
  def __repr__(self):
24124
    L = ['%s=%r' % (key, value)
24125
      for key, value in self.__dict__.iteritems()]
24126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24127
 
24128
  def __eq__(self, other):
24129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24130
 
24131
  def __ne__(self, other):
24132
    return not (self == other)
24133
 
24134
class updateEbayItem_result:
24135
 
24136
  thrift_spec = (
24137
  )
24138
 
24139
  def read(self, iprot):
24140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24142
      return
24143
    iprot.readStructBegin()
24144
    while True:
24145
      (fname, ftype, fid) = iprot.readFieldBegin()
24146
      if ftype == TType.STOP:
24147
        break
24148
      else:
24149
        iprot.skip(ftype)
24150
      iprot.readFieldEnd()
24151
    iprot.readStructEnd()
24152
 
24153
  def write(self, oprot):
24154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24156
      return
24157
    oprot.writeStructBegin('updateEbayItem_result')
24158
    oprot.writeFieldStop()
24159
    oprot.writeStructEnd()
24160
 
24161
  def validate(self):
24162
    return
24163
 
24164
 
24165
  def __repr__(self):
24166
    L = ['%s=%r' % (key, value)
24167
      for key, value in self.__dict__.iteritems()]
24168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24169
 
24170
  def __eq__(self, other):
24171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24172
 
24173
  def __ne__(self, other):
24174
    return not (self == other)
24175
 
8139 kshitij.so 24176
class getAmazonListedItems_args:
24177
  """
24178
  Attributes:
24179
   - offset
24180
   - limit
24181
  """
24182
 
24183
  thrift_spec = (
24184
    None, # 0
24185
    (1, TType.I64, 'offset', None, None, ), # 1
24186
    (2, TType.I64, 'limit', None, None, ), # 2
24187
  )
24188
 
24189
  def __init__(self, offset=None, limit=None,):
24190
    self.offset = offset
24191
    self.limit = limit
24192
 
24193
  def read(self, iprot):
24194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24196
      return
24197
    iprot.readStructBegin()
24198
    while True:
24199
      (fname, ftype, fid) = iprot.readFieldBegin()
24200
      if ftype == TType.STOP:
24201
        break
24202
      if fid == 1:
24203
        if ftype == TType.I64:
24204
          self.offset = iprot.readI64();
24205
        else:
24206
          iprot.skip(ftype)
24207
      elif fid == 2:
24208
        if ftype == TType.I64:
24209
          self.limit = iprot.readI64();
24210
        else:
24211
          iprot.skip(ftype)
24212
      else:
24213
        iprot.skip(ftype)
24214
      iprot.readFieldEnd()
24215
    iprot.readStructEnd()
24216
 
24217
  def write(self, oprot):
24218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24220
      return
24221
    oprot.writeStructBegin('getAmazonListedItems_args')
24222
    if self.offset is not None:
24223
      oprot.writeFieldBegin('offset', TType.I64, 1)
24224
      oprot.writeI64(self.offset)
24225
      oprot.writeFieldEnd()
24226
    if self.limit is not None:
24227
      oprot.writeFieldBegin('limit', TType.I64, 2)
24228
      oprot.writeI64(self.limit)
24229
      oprot.writeFieldEnd()
24230
    oprot.writeFieldStop()
24231
    oprot.writeStructEnd()
24232
 
24233
  def validate(self):
24234
    return
24235
 
24236
 
24237
  def __repr__(self):
24238
    L = ['%s=%r' % (key, value)
24239
      for key, value in self.__dict__.iteritems()]
24240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24241
 
24242
  def __eq__(self, other):
24243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24244
 
24245
  def __ne__(self, other):
24246
    return not (self == other)
24247
 
24248
class getAmazonListedItems_result:
24249
  """
24250
  Attributes:
24251
   - success
24252
  """
24253
 
24254
  thrift_spec = (
24255
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24256
  )
24257
 
24258
  def __init__(self, success=None,):
24259
    self.success = success
24260
 
24261
  def read(self, iprot):
24262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24264
      return
24265
    iprot.readStructBegin()
24266
    while True:
24267
      (fname, ftype, fid) = iprot.readFieldBegin()
24268
      if ftype == TType.STOP:
24269
        break
24270
      if fid == 0:
24271
        if ftype == TType.LIST:
24272
          self.success = []
12567 amit.gupta 24273
          (_etype486, _size483) = iprot.readListBegin()
24274
          for _i487 in xrange(_size483):
24275
            _elem488 = Amazonlisted()
24276
            _elem488.read(iprot)
24277
            self.success.append(_elem488)
8139 kshitij.so 24278
          iprot.readListEnd()
24279
        else:
24280
          iprot.skip(ftype)
24281
      else:
24282
        iprot.skip(ftype)
24283
      iprot.readFieldEnd()
24284
    iprot.readStructEnd()
24285
 
24286
  def write(self, oprot):
24287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24289
      return
24290
    oprot.writeStructBegin('getAmazonListedItems_result')
24291
    if self.success is not None:
24292
      oprot.writeFieldBegin('success', TType.LIST, 0)
24293
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24294
      for iter489 in self.success:
24295
        iter489.write(oprot)
8139 kshitij.so 24296
      oprot.writeListEnd()
24297
      oprot.writeFieldEnd()
24298
    oprot.writeFieldStop()
24299
    oprot.writeStructEnd()
24300
 
24301
  def validate(self):
24302
    return
24303
 
24304
 
24305
  def __repr__(self):
24306
    L = ['%s=%r' % (key, value)
24307
      for key, value in self.__dict__.iteritems()]
24308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24309
 
24310
  def __eq__(self, other):
24311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24312
 
24313
  def __ne__(self, other):
24314
    return not (self == other)
8168 kshitij.so 24315
 
24316
class updateAmazonAttributesInBulk_args:
24317
  """
24318
  Attributes:
24319
   - amazonlisted
24320
  """
24321
 
24322
  thrift_spec = (
24323
    None, # 0
24324
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24325
  )
24326
 
24327
  def __init__(self, amazonlisted=None,):
24328
    self.amazonlisted = amazonlisted
24329
 
24330
  def read(self, iprot):
24331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24333
      return
24334
    iprot.readStructBegin()
24335
    while True:
24336
      (fname, ftype, fid) = iprot.readFieldBegin()
24337
      if ftype == TType.STOP:
24338
        break
24339
      if fid == 1:
24340
        if ftype == TType.MAP:
24341
          self.amazonlisted = {}
12567 amit.gupta 24342
          (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() 
24343
          for _i494 in xrange(_size490):
24344
            _key495 = iprot.readI64();
24345
            _val496 = Amazonlisted()
24346
            _val496.read(iprot)
24347
            self.amazonlisted[_key495] = _val496
8168 kshitij.so 24348
          iprot.readMapEnd()
24349
        else:
24350
          iprot.skip(ftype)
24351
      else:
24352
        iprot.skip(ftype)
24353
      iprot.readFieldEnd()
24354
    iprot.readStructEnd()
24355
 
24356
  def write(self, oprot):
24357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24359
      return
24360
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24361
    if self.amazonlisted is not None:
24362
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24363
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
12567 amit.gupta 24364
      for kiter497,viter498 in self.amazonlisted.items():
24365
        oprot.writeI64(kiter497)
24366
        viter498.write(oprot)
8168 kshitij.so 24367
      oprot.writeMapEnd()
24368
      oprot.writeFieldEnd()
24369
    oprot.writeFieldStop()
24370
    oprot.writeStructEnd()
24371
 
24372
  def validate(self):
24373
    return
24374
 
24375
 
24376
  def __repr__(self):
24377
    L = ['%s=%r' % (key, value)
24378
      for key, value in self.__dict__.iteritems()]
24379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24380
 
24381
  def __eq__(self, other):
24382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24383
 
24384
  def __ne__(self, other):
24385
    return not (self == other)
24386
 
24387
class updateAmazonAttributesInBulk_result:
24388
  """
24389
  Attributes:
24390
   - success
24391
  """
24392
 
24393
  thrift_spec = (
24394
    (0, TType.BOOL, 'success', None, None, ), # 0
24395
  )
24396
 
24397
  def __init__(self, success=None,):
24398
    self.success = success
24399
 
24400
  def read(self, iprot):
24401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24403
      return
24404
    iprot.readStructBegin()
24405
    while True:
24406
      (fname, ftype, fid) = iprot.readFieldBegin()
24407
      if ftype == TType.STOP:
24408
        break
24409
      if fid == 0:
24410
        if ftype == TType.BOOL:
24411
          self.success = iprot.readBool();
24412
        else:
24413
          iprot.skip(ftype)
24414
      else:
24415
        iprot.skip(ftype)
24416
      iprot.readFieldEnd()
24417
    iprot.readStructEnd()
24418
 
24419
  def write(self, oprot):
24420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24422
      return
24423
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24424
    if self.success is not None:
24425
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24426
      oprot.writeBool(self.success)
24427
      oprot.writeFieldEnd()
24428
    oprot.writeFieldStop()
24429
    oprot.writeStructEnd()
24430
 
24431
  def validate(self):
24432
    return
24433
 
24434
 
24435
  def __repr__(self):
24436
    L = ['%s=%r' % (key, value)
24437
      for key, value in self.__dict__.iteritems()]
24438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24439
 
24440
  def __eq__(self, other):
24441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24442
 
24443
  def __ne__(self, other):
24444
    return not (self == other)
8379 vikram.rag 24445
 
24446
class getAllItemstoListOnFba_args:
24447
 
24448
  thrift_spec = (
24449
  )
24450
 
24451
  def read(self, iprot):
24452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24454
      return
24455
    iprot.readStructBegin()
24456
    while True:
24457
      (fname, ftype, fid) = iprot.readFieldBegin()
24458
      if ftype == TType.STOP:
24459
        break
24460
      else:
24461
        iprot.skip(ftype)
24462
      iprot.readFieldEnd()
24463
    iprot.readStructEnd()
24464
 
24465
  def write(self, oprot):
24466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24468
      return
24469
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24470
    oprot.writeFieldStop()
24471
    oprot.writeStructEnd()
24472
 
24473
  def validate(self):
24474
    return
24475
 
24476
 
24477
  def __repr__(self):
24478
    L = ['%s=%r' % (key, value)
24479
      for key, value in self.__dict__.iteritems()]
24480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24481
 
24482
  def __eq__(self, other):
24483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24484
 
24485
  def __ne__(self, other):
24486
    return not (self == other)
24487
 
24488
class getAllItemstoListOnFba_result:
24489
  """
24490
  Attributes:
24491
   - success
24492
  """
24493
 
24494
  thrift_spec = (
24495
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24496
  )
24497
 
24498
  def __init__(self, success=None,):
24499
    self.success = success
24500
 
24501
  def read(self, iprot):
24502
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24503
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24504
      return
24505
    iprot.readStructBegin()
24506
    while True:
24507
      (fname, ftype, fid) = iprot.readFieldBegin()
24508
      if ftype == TType.STOP:
24509
        break
24510
      if fid == 0:
24511
        if ftype == TType.LIST:
24512
          self.success = []
12567 amit.gupta 24513
          (_etype502, _size499) = iprot.readListBegin()
24514
          for _i503 in xrange(_size499):
24515
            _elem504 = Amazonlisted()
24516
            _elem504.read(iprot)
24517
            self.success.append(_elem504)
8379 vikram.rag 24518
          iprot.readListEnd()
24519
        else:
24520
          iprot.skip(ftype)
24521
      else:
24522
        iprot.skip(ftype)
24523
      iprot.readFieldEnd()
24524
    iprot.readStructEnd()
24525
 
24526
  def write(self, oprot):
24527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24529
      return
24530
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24531
    if self.success is not None:
24532
      oprot.writeFieldBegin('success', TType.LIST, 0)
24533
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24534
      for iter505 in self.success:
24535
        iter505.write(oprot)
8379 vikram.rag 24536
      oprot.writeListEnd()
24537
      oprot.writeFieldEnd()
24538
    oprot.writeFieldStop()
24539
    oprot.writeStructEnd()
24540
 
24541
  def validate(self):
24542
    return
24543
 
24544
 
24545
  def __repr__(self):
24546
    L = ['%s=%r' % (key, value)
24547
      for key, value in self.__dict__.iteritems()]
24548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24549
 
24550
  def __eq__(self, other):
24551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24552
 
24553
  def __ne__(self, other):
24554
    return not (self == other)
24555
 
24556
class getAllItemstoListOnNonFba_args:
24557
 
24558
  thrift_spec = (
24559
  )
24560
 
24561
  def read(self, iprot):
24562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24564
      return
24565
    iprot.readStructBegin()
24566
    while True:
24567
      (fname, ftype, fid) = iprot.readFieldBegin()
24568
      if ftype == TType.STOP:
24569
        break
24570
      else:
24571
        iprot.skip(ftype)
24572
      iprot.readFieldEnd()
24573
    iprot.readStructEnd()
24574
 
24575
  def write(self, oprot):
24576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24578
      return
24579
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24580
    oprot.writeFieldStop()
24581
    oprot.writeStructEnd()
24582
 
24583
  def validate(self):
24584
    return
24585
 
24586
 
24587
  def __repr__(self):
24588
    L = ['%s=%r' % (key, value)
24589
      for key, value in self.__dict__.iteritems()]
24590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24591
 
24592
  def __eq__(self, other):
24593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24594
 
24595
  def __ne__(self, other):
24596
    return not (self == other)
24597
 
24598
class getAllItemstoListOnNonFba_result:
24599
  """
24600
  Attributes:
24601
   - success
24602
  """
24603
 
24604
  thrift_spec = (
24605
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24606
  )
24607
 
24608
  def __init__(self, success=None,):
24609
    self.success = success
24610
 
24611
  def read(self, iprot):
24612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24614
      return
24615
    iprot.readStructBegin()
24616
    while True:
24617
      (fname, ftype, fid) = iprot.readFieldBegin()
24618
      if ftype == TType.STOP:
24619
        break
24620
      if fid == 0:
24621
        if ftype == TType.LIST:
24622
          self.success = []
12567 amit.gupta 24623
          (_etype509, _size506) = iprot.readListBegin()
24624
          for _i510 in xrange(_size506):
24625
            _elem511 = Amazonlisted()
24626
            _elem511.read(iprot)
24627
            self.success.append(_elem511)
8379 vikram.rag 24628
          iprot.readListEnd()
24629
        else:
24630
          iprot.skip(ftype)
24631
      else:
24632
        iprot.skip(ftype)
24633
      iprot.readFieldEnd()
24634
    iprot.readStructEnd()
24635
 
24636
  def write(self, oprot):
24637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24639
      return
24640
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24641
    if self.success is not None:
24642
      oprot.writeFieldBegin('success', TType.LIST, 0)
24643
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24644
      for iter512 in self.success:
24645
        iter512.write(oprot)
8379 vikram.rag 24646
      oprot.writeListEnd()
24647
      oprot.writeFieldEnd()
24648
    oprot.writeFieldStop()
24649
    oprot.writeStructEnd()
24650
 
24651
  def validate(self):
24652
    return
24653
 
24654
 
24655
  def __repr__(self):
24656
    L = ['%s=%r' % (key, value)
24657
      for key, value in self.__dict__.iteritems()]
24658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24659
 
24660
  def __eq__(self, other):
24661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24662
 
24663
  def __ne__(self, other):
24664
    return not (self == other)
8616 vikram.rag 24665
 
9242 kshitij.so 24666
class updateAsin_args:
24667
  """
24668
  Attributes:
24669
   - item
24670
  """
8616 vikram.rag 24671
 
24672
  thrift_spec = (
9242 kshitij.so 24673
    None, # 0
24674
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 24675
  )
24676
 
9242 kshitij.so 24677
  def __init__(self, item=None,):
24678
    self.item = item
24679
 
8616 vikram.rag 24680
  def read(self, iprot):
24681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24683
      return
24684
    iprot.readStructBegin()
24685
    while True:
24686
      (fname, ftype, fid) = iprot.readFieldBegin()
24687
      if ftype == TType.STOP:
24688
        break
9242 kshitij.so 24689
      if fid == 1:
24690
        if ftype == TType.MAP:
24691
          self.item = {}
12567 amit.gupta 24692
          (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() 
24693
          for _i517 in xrange(_size513):
24694
            _key518 = iprot.readI64();
24695
            _val519 = Item()
24696
            _val519.read(iprot)
24697
            self.item[_key518] = _val519
9242 kshitij.so 24698
          iprot.readMapEnd()
24699
        else:
24700
          iprot.skip(ftype)
8616 vikram.rag 24701
      else:
24702
        iprot.skip(ftype)
24703
      iprot.readFieldEnd()
24704
    iprot.readStructEnd()
24705
 
24706
  def write(self, oprot):
24707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24709
      return
9242 kshitij.so 24710
    oprot.writeStructBegin('updateAsin_args')
24711
    if self.item is not None:
24712
      oprot.writeFieldBegin('item', TType.MAP, 1)
24713
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
12567 amit.gupta 24714
      for kiter520,viter521 in self.item.items():
24715
        oprot.writeI64(kiter520)
24716
        viter521.write(oprot)
9242 kshitij.so 24717
      oprot.writeMapEnd()
24718
      oprot.writeFieldEnd()
8616 vikram.rag 24719
    oprot.writeFieldStop()
24720
    oprot.writeStructEnd()
24721
 
24722
  def validate(self):
24723
    return
24724
 
24725
 
24726
  def __repr__(self):
24727
    L = ['%s=%r' % (key, value)
24728
      for key, value in self.__dict__.iteritems()]
24729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24730
 
24731
  def __eq__(self, other):
24732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24733
 
24734
  def __ne__(self, other):
24735
    return not (self == other)
24736
 
9242 kshitij.so 24737
class updateAsin_result:
8616 vikram.rag 24738
 
24739
  thrift_spec = (
24740
  )
24741
 
24742
  def read(self, iprot):
24743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24745
      return
24746
    iprot.readStructBegin()
24747
    while True:
24748
      (fname, ftype, fid) = iprot.readFieldBegin()
24749
      if ftype == TType.STOP:
24750
        break
24751
      else:
24752
        iprot.skip(ftype)
24753
      iprot.readFieldEnd()
24754
    iprot.readStructEnd()
24755
 
24756
  def write(self, oprot):
24757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24759
      return
9242 kshitij.so 24760
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 24761
    oprot.writeFieldStop()
24762
    oprot.writeStructEnd()
24763
 
24764
  def validate(self):
24765
    return
24766
 
24767
 
24768
  def __repr__(self):
24769
    L = ['%s=%r' % (key, value)
24770
      for key, value in self.__dict__.iteritems()]
24771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24772
 
24773
  def __eq__(self, other):
24774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24775
 
24776
  def __ne__(self, other):
24777
    return not (self == other)
8619 kshitij.so 24778
 
9242 kshitij.so 24779
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 24780
  """
24781
  Attributes:
9242 kshitij.so 24782
   - snapdealitem
8619 kshitij.so 24783
  """
24784
 
9242 kshitij.so 24785
  thrift_spec = None
24786
  def __init__(self, snapdealitem=None,):
24787
    self.snapdealitem = snapdealitem
8619 kshitij.so 24788
 
24789
  def read(self, iprot):
24790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24792
      return
24793
    iprot.readStructBegin()
24794
    while True:
24795
      (fname, ftype, fid) = iprot.readFieldBegin()
24796
      if ftype == TType.STOP:
24797
        break
9242 kshitij.so 24798
      if fid == -1:
24799
        if ftype == TType.STRUCT:
24800
          self.snapdealitem = SnapdealItem()
24801
          self.snapdealitem.read(iprot)
8619 kshitij.so 24802
        else:
24803
          iprot.skip(ftype)
24804
      else:
24805
        iprot.skip(ftype)
24806
      iprot.readFieldEnd()
24807
    iprot.readStructEnd()
24808
 
24809
  def write(self, oprot):
24810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24812
      return
9242 kshitij.so 24813
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
24814
    if self.snapdealitem is not None:
24815
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
24816
      self.snapdealitem.write(oprot)
8619 kshitij.so 24817
      oprot.writeFieldEnd()
24818
    oprot.writeFieldStop()
24819
    oprot.writeStructEnd()
24820
 
24821
  def validate(self):
24822
    return
24823
 
24824
 
24825
  def __repr__(self):
24826
    L = ['%s=%r' % (key, value)
24827
      for key, value in self.__dict__.iteritems()]
24828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24829
 
24830
  def __eq__(self, other):
24831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24832
 
24833
  def __ne__(self, other):
24834
    return not (self == other)
24835
 
9242 kshitij.so 24836
class addOrUpdateSnapdealItem_result:
24837
  """
24838
  Attributes:
24839
   - success
24840
  """
8619 kshitij.so 24841
 
24842
  thrift_spec = (
9242 kshitij.so 24843
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 24844
  )
24845
 
9242 kshitij.so 24846
  def __init__(self, success=None,):
24847
    self.success = success
24848
 
8619 kshitij.so 24849
  def read(self, iprot):
24850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24852
      return
24853
    iprot.readStructBegin()
24854
    while True:
24855
      (fname, ftype, fid) = iprot.readFieldBegin()
24856
      if ftype == TType.STOP:
24857
        break
9242 kshitij.so 24858
      if fid == 0:
24859
        if ftype == TType.BOOL:
24860
          self.success = iprot.readBool();
24861
        else:
24862
          iprot.skip(ftype)
8619 kshitij.so 24863
      else:
24864
        iprot.skip(ftype)
24865
      iprot.readFieldEnd()
24866
    iprot.readStructEnd()
24867
 
24868
  def write(self, oprot):
24869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24871
      return
9242 kshitij.so 24872
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
24873
    if self.success is not None:
24874
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24875
      oprot.writeBool(self.success)
24876
      oprot.writeFieldEnd()
8619 kshitij.so 24877
    oprot.writeFieldStop()
24878
    oprot.writeStructEnd()
24879
 
24880
  def validate(self):
24881
    return
24882
 
24883
 
24884
  def __repr__(self):
24885
    L = ['%s=%r' % (key, value)
24886
      for key, value in self.__dict__.iteritems()]
24887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24888
 
24889
  def __eq__(self, other):
24890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24891
 
24892
  def __ne__(self, other):
24893
    return not (self == other)
8739 vikram.rag 24894
 
9242 kshitij.so 24895
class getSnapdealItem_args:
8739 vikram.rag 24896
  """
24897
  Attributes:
9242 kshitij.so 24898
   - item_id
8739 vikram.rag 24899
  """
24900
 
9242 kshitij.so 24901
  thrift_spec = (
24902
    None, # 0
24903
    (1, TType.I64, 'item_id', None, None, ), # 1
24904
  )
8739 vikram.rag 24905
 
9242 kshitij.so 24906
  def __init__(self, item_id=None,):
24907
    self.item_id = item_id
24908
 
8739 vikram.rag 24909
  def read(self, iprot):
24910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24912
      return
24913
    iprot.readStructBegin()
24914
    while True:
24915
      (fname, ftype, fid) = iprot.readFieldBegin()
24916
      if ftype == TType.STOP:
24917
        break
9242 kshitij.so 24918
      if fid == 1:
24919
        if ftype == TType.I64:
24920
          self.item_id = iprot.readI64();
8739 vikram.rag 24921
        else:
24922
          iprot.skip(ftype)
24923
      else:
24924
        iprot.skip(ftype)
24925
      iprot.readFieldEnd()
24926
    iprot.readStructEnd()
24927
 
24928
  def write(self, oprot):
24929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24931
      return
9242 kshitij.so 24932
    oprot.writeStructBegin('getSnapdealItem_args')
24933
    if self.item_id is not None:
24934
      oprot.writeFieldBegin('item_id', TType.I64, 1)
24935
      oprot.writeI64(self.item_id)
8739 vikram.rag 24936
      oprot.writeFieldEnd()
24937
    oprot.writeFieldStop()
24938
    oprot.writeStructEnd()
24939
 
24940
  def validate(self):
24941
    return
24942
 
24943
 
24944
  def __repr__(self):
24945
    L = ['%s=%r' % (key, value)
24946
      for key, value in self.__dict__.iteritems()]
24947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24948
 
24949
  def __eq__(self, other):
24950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24951
 
24952
  def __ne__(self, other):
24953
    return not (self == other)
24954
 
9242 kshitij.so 24955
class getSnapdealItem_result:
8739 vikram.rag 24956
  """
24957
  Attributes:
24958
   - success
24959
  """
24960
 
24961
  thrift_spec = (
9242 kshitij.so 24962
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 24963
  )
24964
 
24965
  def __init__(self, success=None,):
24966
    self.success = success
24967
 
24968
  def read(self, iprot):
24969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24971
      return
24972
    iprot.readStructBegin()
24973
    while True:
24974
      (fname, ftype, fid) = iprot.readFieldBegin()
24975
      if ftype == TType.STOP:
24976
        break
24977
      if fid == 0:
9242 kshitij.so 24978
        if ftype == TType.STRUCT:
24979
          self.success = SnapdealItem()
24980
          self.success.read(iprot)
8739 vikram.rag 24981
        else:
24982
          iprot.skip(ftype)
24983
      else:
24984
        iprot.skip(ftype)
24985
      iprot.readFieldEnd()
24986
    iprot.readStructEnd()
24987
 
24988
  def write(self, oprot):
24989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24991
      return
9242 kshitij.so 24992
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 24993
    if self.success is not None:
9242 kshitij.so 24994
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24995
      self.success.write(oprot)
8739 vikram.rag 24996
      oprot.writeFieldEnd()
24997
    oprot.writeFieldStop()
24998
    oprot.writeStructEnd()
24999
 
25000
  def validate(self):
25001
    return
25002
 
25003
 
25004
  def __repr__(self):
25005
    L = ['%s=%r' % (key, value)
25006
      for key, value in self.__dict__.iteritems()]
25007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25008
 
25009
  def __eq__(self, other):
25010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25011
 
25012
  def __ne__(self, other):
25013
    return not (self == other)
25014
 
9242 kshitij.so 25015
class getSnapdealItemDetails_args:
8739 vikram.rag 25016
  """
25017
  Attributes:
25018
   - item_id
25019
  """
25020
 
25021
  thrift_spec = (
25022
    None, # 0
25023
    (1, TType.I64, 'item_id', None, None, ), # 1
25024
  )
25025
 
25026
  def __init__(self, item_id=None,):
25027
    self.item_id = item_id
25028
 
25029
  def read(self, iprot):
25030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25032
      return
25033
    iprot.readStructBegin()
25034
    while True:
25035
      (fname, ftype, fid) = iprot.readFieldBegin()
25036
      if ftype == TType.STOP:
25037
        break
25038
      if fid == 1:
25039
        if ftype == TType.I64:
25040
          self.item_id = iprot.readI64();
25041
        else:
25042
          iprot.skip(ftype)
25043
      else:
25044
        iprot.skip(ftype)
25045
      iprot.readFieldEnd()
25046
    iprot.readStructEnd()
25047
 
25048
  def write(self, oprot):
25049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25051
      return
9242 kshitij.so 25052
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25053
    if self.item_id is not None:
25054
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25055
      oprot.writeI64(self.item_id)
25056
      oprot.writeFieldEnd()
25057
    oprot.writeFieldStop()
25058
    oprot.writeStructEnd()
25059
 
25060
  def validate(self):
25061
    return
25062
 
25063
 
25064
  def __repr__(self):
25065
    L = ['%s=%r' % (key, value)
25066
      for key, value in self.__dict__.iteritems()]
25067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25068
 
25069
  def __eq__(self, other):
25070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25071
 
25072
  def __ne__(self, other):
25073
    return not (self == other)
25074
 
9242 kshitij.so 25075
class getSnapdealItemDetails_result:
8739 vikram.rag 25076
  """
25077
  Attributes:
25078
   - success
25079
  """
25080
 
25081
  thrift_spec = (
9242 kshitij.so 25082
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25083
  )
25084
 
25085
  def __init__(self, success=None,):
25086
    self.success = success
25087
 
25088
  def read(self, iprot):
25089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25091
      return
25092
    iprot.readStructBegin()
25093
    while True:
25094
      (fname, ftype, fid) = iprot.readFieldBegin()
25095
      if ftype == TType.STOP:
25096
        break
25097
      if fid == 0:
25098
        if ftype == TType.STRUCT:
9242 kshitij.so 25099
          self.success = SnapdealItemDetails()
8739 vikram.rag 25100
          self.success.read(iprot)
25101
        else:
25102
          iprot.skip(ftype)
25103
      else:
25104
        iprot.skip(ftype)
25105
      iprot.readFieldEnd()
25106
    iprot.readStructEnd()
25107
 
25108
  def write(self, oprot):
25109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25111
      return
9242 kshitij.so 25112
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25113
    if self.success is not None:
25114
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25115
      self.success.write(oprot)
25116
      oprot.writeFieldEnd()
25117
    oprot.writeFieldStop()
25118
    oprot.writeStructEnd()
25119
 
25120
  def validate(self):
25121
    return
25122
 
25123
 
25124
  def __repr__(self):
25125
    L = ['%s=%r' % (key, value)
25126
      for key, value in self.__dict__.iteritems()]
25127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25128
 
25129
  def __eq__(self, other):
25130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25131
 
25132
  def __ne__(self, other):
25133
    return not (self == other)
25134
 
25135
class getAllSnapdealItems_args:
25136
 
25137
  thrift_spec = (
25138
  )
25139
 
25140
  def read(self, iprot):
25141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25143
      return
25144
    iprot.readStructBegin()
25145
    while True:
25146
      (fname, ftype, fid) = iprot.readFieldBegin()
25147
      if ftype == TType.STOP:
25148
        break
25149
      else:
25150
        iprot.skip(ftype)
25151
      iprot.readFieldEnd()
25152
    iprot.readStructEnd()
25153
 
25154
  def write(self, oprot):
25155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25157
      return
25158
    oprot.writeStructBegin('getAllSnapdealItems_args')
25159
    oprot.writeFieldStop()
25160
    oprot.writeStructEnd()
25161
 
25162
  def validate(self):
25163
    return
25164
 
25165
 
25166
  def __repr__(self):
25167
    L = ['%s=%r' % (key, value)
25168
      for key, value in self.__dict__.iteritems()]
25169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25170
 
25171
  def __eq__(self, other):
25172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25173
 
25174
  def __ne__(self, other):
25175
    return not (self == other)
25176
 
25177
class getAllSnapdealItems_result:
25178
  """
25179
  Attributes:
25180
   - success
25181
  """
25182
 
25183
  thrift_spec = (
9242 kshitij.so 25184
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25185
  )
25186
 
25187
  def __init__(self, success=None,):
25188
    self.success = success
25189
 
25190
  def read(self, iprot):
25191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25193
      return
25194
    iprot.readStructBegin()
25195
    while True:
25196
      (fname, ftype, fid) = iprot.readFieldBegin()
25197
      if ftype == TType.STOP:
25198
        break
25199
      if fid == 0:
25200
        if ftype == TType.LIST:
25201
          self.success = []
12567 amit.gupta 25202
          (_etype525, _size522) = iprot.readListBegin()
25203
          for _i526 in xrange(_size522):
25204
            _elem527 = SnapdealItemDetails()
25205
            _elem527.read(iprot)
25206
            self.success.append(_elem527)
9242 kshitij.so 25207
          iprot.readListEnd()
25208
        else:
25209
          iprot.skip(ftype)
25210
      else:
25211
        iprot.skip(ftype)
25212
      iprot.readFieldEnd()
25213
    iprot.readStructEnd()
25214
 
25215
  def write(self, oprot):
25216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25218
      return
25219
    oprot.writeStructBegin('getAllSnapdealItems_result')
25220
    if self.success is not None:
25221
      oprot.writeFieldBegin('success', TType.LIST, 0)
25222
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25223
      for iter528 in self.success:
25224
        iter528.write(oprot)
9242 kshitij.so 25225
      oprot.writeListEnd()
25226
      oprot.writeFieldEnd()
25227
    oprot.writeFieldStop()
25228
    oprot.writeStructEnd()
25229
 
25230
  def validate(self):
25231
    return
25232
 
25233
 
25234
  def __repr__(self):
25235
    L = ['%s=%r' % (key, value)
25236
      for key, value in self.__dict__.iteritems()]
25237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25238
 
25239
  def __eq__(self, other):
25240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25241
 
25242
  def __ne__(self, other):
25243
    return not (self == other)
25244
 
25245
class getSnapdealItems_args:
25246
  """
25247
  Attributes:
25248
   - offset
25249
   - limit
25250
  """
25251
 
25252
  thrift_spec = (
25253
    None, # 0
25254
    (1, TType.I64, 'offset', None, None, ), # 1
25255
    (2, TType.I64, 'limit', None, None, ), # 2
25256
  )
25257
 
25258
  def __init__(self, offset=None, limit=None,):
25259
    self.offset = offset
25260
    self.limit = limit
25261
 
25262
  def read(self, iprot):
25263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25265
      return
25266
    iprot.readStructBegin()
25267
    while True:
25268
      (fname, ftype, fid) = iprot.readFieldBegin()
25269
      if ftype == TType.STOP:
25270
        break
25271
      if fid == 1:
25272
        if ftype == TType.I64:
25273
          self.offset = iprot.readI64();
25274
        else:
25275
          iprot.skip(ftype)
25276
      elif fid == 2:
25277
        if ftype == TType.I64:
25278
          self.limit = iprot.readI64();
25279
        else:
25280
          iprot.skip(ftype)
25281
      else:
25282
        iprot.skip(ftype)
25283
      iprot.readFieldEnd()
25284
    iprot.readStructEnd()
25285
 
25286
  def write(self, oprot):
25287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25289
      return
25290
    oprot.writeStructBegin('getSnapdealItems_args')
25291
    if self.offset is not None:
25292
      oprot.writeFieldBegin('offset', TType.I64, 1)
25293
      oprot.writeI64(self.offset)
25294
      oprot.writeFieldEnd()
25295
    if self.limit is not None:
25296
      oprot.writeFieldBegin('limit', TType.I64, 2)
25297
      oprot.writeI64(self.limit)
25298
      oprot.writeFieldEnd()
25299
    oprot.writeFieldStop()
25300
    oprot.writeStructEnd()
25301
 
25302
  def validate(self):
25303
    return
25304
 
25305
 
25306
  def __repr__(self):
25307
    L = ['%s=%r' % (key, value)
25308
      for key, value in self.__dict__.iteritems()]
25309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25310
 
25311
  def __eq__(self, other):
25312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25313
 
25314
  def __ne__(self, other):
25315
    return not (self == other)
25316
 
25317
class getSnapdealItems_result:
25318
  """
25319
  Attributes:
25320
   - success
25321
  """
25322
 
25323
  thrift_spec = (
25324
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25325
  )
25326
 
25327
  def __init__(self, success=None,):
25328
    self.success = success
25329
 
25330
  def read(self, iprot):
25331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25333
      return
25334
    iprot.readStructBegin()
25335
    while True:
25336
      (fname, ftype, fid) = iprot.readFieldBegin()
25337
      if ftype == TType.STOP:
25338
        break
25339
      if fid == 0:
25340
        if ftype == TType.LIST:
25341
          self.success = []
12567 amit.gupta 25342
          (_etype532, _size529) = iprot.readListBegin()
25343
          for _i533 in xrange(_size529):
25344
            _elem534 = SnapdealItemDetails()
25345
            _elem534.read(iprot)
25346
            self.success.append(_elem534)
8739 vikram.rag 25347
          iprot.readListEnd()
25348
        else:
25349
          iprot.skip(ftype)
25350
      else:
25351
        iprot.skip(ftype)
25352
      iprot.readFieldEnd()
25353
    iprot.readStructEnd()
25354
 
25355
  def write(self, oprot):
25356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25358
      return
9242 kshitij.so 25359
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25360
    if self.success is not None:
25361
      oprot.writeFieldBegin('success', TType.LIST, 0)
25362
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25363
      for iter535 in self.success:
25364
        iter535.write(oprot)
8739 vikram.rag 25365
      oprot.writeListEnd()
25366
      oprot.writeFieldEnd()
25367
    oprot.writeFieldStop()
25368
    oprot.writeStructEnd()
25369
 
25370
  def validate(self):
25371
    return
25372
 
25373
 
25374
  def __repr__(self):
25375
    L = ['%s=%r' % (key, value)
25376
      for key, value in self.__dict__.iteritems()]
25377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25378
 
25379
  def __eq__(self, other):
25380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25381
 
25382
  def __ne__(self, other):
25383
    return not (self == other)
9242 kshitij.so 25384
 
25385
class searchSnapdealItems_args:
25386
  """
25387
  Attributes:
25388
   - searchTerm
25389
   - offset
25390
   - limit
25391
  """
25392
 
25393
  thrift_spec = (
25394
    None, # 0
25395
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25396
    (2, TType.I64, 'offset', None, None, ), # 2
25397
    (3, TType.I64, 'limit', None, None, ), # 3
25398
  )
25399
 
25400
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25401
    self.searchTerm = searchTerm
25402
    self.offset = offset
25403
    self.limit = limit
25404
 
25405
  def read(self, iprot):
25406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25408
      return
25409
    iprot.readStructBegin()
25410
    while True:
25411
      (fname, ftype, fid) = iprot.readFieldBegin()
25412
      if ftype == TType.STOP:
25413
        break
25414
      if fid == 1:
25415
        if ftype == TType.LIST:
25416
          self.searchTerm = []
12567 amit.gupta 25417
          (_etype539, _size536) = iprot.readListBegin()
25418
          for _i540 in xrange(_size536):
25419
            _elem541 = iprot.readString();
25420
            self.searchTerm.append(_elem541)
9242 kshitij.so 25421
          iprot.readListEnd()
25422
        else:
25423
          iprot.skip(ftype)
25424
      elif fid == 2:
25425
        if ftype == TType.I64:
25426
          self.offset = iprot.readI64();
25427
        else:
25428
          iprot.skip(ftype)
25429
      elif fid == 3:
25430
        if ftype == TType.I64:
25431
          self.limit = iprot.readI64();
25432
        else:
25433
          iprot.skip(ftype)
25434
      else:
25435
        iprot.skip(ftype)
25436
      iprot.readFieldEnd()
25437
    iprot.readStructEnd()
25438
 
25439
  def write(self, oprot):
25440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25442
      return
25443
    oprot.writeStructBegin('searchSnapdealItems_args')
25444
    if self.searchTerm is not None:
25445
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25446
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25447
      for iter542 in self.searchTerm:
25448
        oprot.writeString(iter542)
9242 kshitij.so 25449
      oprot.writeListEnd()
25450
      oprot.writeFieldEnd()
25451
    if self.offset is not None:
25452
      oprot.writeFieldBegin('offset', TType.I64, 2)
25453
      oprot.writeI64(self.offset)
25454
      oprot.writeFieldEnd()
25455
    if self.limit is not None:
25456
      oprot.writeFieldBegin('limit', TType.I64, 3)
25457
      oprot.writeI64(self.limit)
25458
      oprot.writeFieldEnd()
25459
    oprot.writeFieldStop()
25460
    oprot.writeStructEnd()
25461
 
25462
  def validate(self):
25463
    return
25464
 
25465
 
25466
  def __repr__(self):
25467
    L = ['%s=%r' % (key, value)
25468
      for key, value in self.__dict__.iteritems()]
25469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25470
 
25471
  def __eq__(self, other):
25472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25473
 
25474
  def __ne__(self, other):
25475
    return not (self == other)
25476
 
25477
class searchSnapdealItems_result:
25478
  """
25479
  Attributes:
25480
   - success
25481
  """
25482
 
25483
  thrift_spec = (
25484
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25485
  )
25486
 
25487
  def __init__(self, success=None,):
25488
    self.success = success
25489
 
25490
  def read(self, iprot):
25491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25493
      return
25494
    iprot.readStructBegin()
25495
    while True:
25496
      (fname, ftype, fid) = iprot.readFieldBegin()
25497
      if ftype == TType.STOP:
25498
        break
25499
      if fid == 0:
25500
        if ftype == TType.LIST:
25501
          self.success = []
12567 amit.gupta 25502
          (_etype546, _size543) = iprot.readListBegin()
25503
          for _i547 in xrange(_size543):
25504
            _elem548 = SnapdealItemDetails()
25505
            _elem548.read(iprot)
25506
            self.success.append(_elem548)
9242 kshitij.so 25507
          iprot.readListEnd()
25508
        else:
25509
          iprot.skip(ftype)
25510
      else:
25511
        iprot.skip(ftype)
25512
      iprot.readFieldEnd()
25513
    iprot.readStructEnd()
25514
 
25515
  def write(self, oprot):
25516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25518
      return
25519
    oprot.writeStructBegin('searchSnapdealItems_result')
25520
    if self.success is not None:
25521
      oprot.writeFieldBegin('success', TType.LIST, 0)
25522
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25523
      for iter549 in self.success:
25524
        iter549.write(oprot)
9242 kshitij.so 25525
      oprot.writeListEnd()
25526
      oprot.writeFieldEnd()
25527
    oprot.writeFieldStop()
25528
    oprot.writeStructEnd()
25529
 
25530
  def validate(self):
25531
    return
25532
 
25533
 
25534
  def __repr__(self):
25535
    L = ['%s=%r' % (key, value)
25536
      for key, value in self.__dict__.iteritems()]
25537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25538
 
25539
  def __eq__(self, other):
25540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25541
 
25542
  def __ne__(self, other):
25543
    return not (self == other)
25544
 
25545
class getCountForSnapdealItems_args:
25546
 
25547
  thrift_spec = (
25548
  )
25549
 
25550
  def read(self, iprot):
25551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25553
      return
25554
    iprot.readStructBegin()
25555
    while True:
25556
      (fname, ftype, fid) = iprot.readFieldBegin()
25557
      if ftype == TType.STOP:
25558
        break
25559
      else:
25560
        iprot.skip(ftype)
25561
      iprot.readFieldEnd()
25562
    iprot.readStructEnd()
25563
 
25564
  def write(self, oprot):
25565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25567
      return
25568
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25569
    oprot.writeFieldStop()
25570
    oprot.writeStructEnd()
25571
 
25572
  def validate(self):
25573
    return
25574
 
25575
 
25576
  def __repr__(self):
25577
    L = ['%s=%r' % (key, value)
25578
      for key, value in self.__dict__.iteritems()]
25579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25580
 
25581
  def __eq__(self, other):
25582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25583
 
25584
  def __ne__(self, other):
25585
    return not (self == other)
25586
 
25587
class getCountForSnapdealItems_result:
25588
  """
25589
  Attributes:
25590
   - success
25591
  """
25592
 
25593
  thrift_spec = (
25594
    (0, TType.I64, 'success', None, None, ), # 0
25595
  )
25596
 
25597
  def __init__(self, success=None,):
25598
    self.success = success
25599
 
25600
  def read(self, iprot):
25601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25603
      return
25604
    iprot.readStructBegin()
25605
    while True:
25606
      (fname, ftype, fid) = iprot.readFieldBegin()
25607
      if ftype == TType.STOP:
25608
        break
25609
      if fid == 0:
25610
        if ftype == TType.I64:
25611
          self.success = iprot.readI64();
25612
        else:
25613
          iprot.skip(ftype)
25614
      else:
25615
        iprot.skip(ftype)
25616
      iprot.readFieldEnd()
25617
    iprot.readStructEnd()
25618
 
25619
  def write(self, oprot):
25620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25622
      return
25623
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25624
    if self.success is not None:
25625
      oprot.writeFieldBegin('success', TType.I64, 0)
25626
      oprot.writeI64(self.success)
25627
      oprot.writeFieldEnd()
25628
    oprot.writeFieldStop()
25629
    oprot.writeStructEnd()
25630
 
25631
  def validate(self):
25632
    return
25633
 
25634
 
25635
  def __repr__(self):
25636
    L = ['%s=%r' % (key, value)
25637
      for key, value in self.__dict__.iteritems()]
25638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25639
 
25640
  def __eq__(self, other):
25641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25642
 
25643
  def __ne__(self, other):
25644
    return not (self == other)
25645
 
25646
class getSnapdealSearchResultCount_args:
25647
  """
25648
  Attributes:
25649
   - searchTerm
25650
  """
25651
 
25652
  thrift_spec = (
25653
    None, # 0
25654
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25655
  )
25656
 
25657
  def __init__(self, searchTerm=None,):
25658
    self.searchTerm = searchTerm
25659
 
25660
  def read(self, iprot):
25661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25663
      return
25664
    iprot.readStructBegin()
25665
    while True:
25666
      (fname, ftype, fid) = iprot.readFieldBegin()
25667
      if ftype == TType.STOP:
25668
        break
25669
      if fid == 1:
25670
        if ftype == TType.LIST:
25671
          self.searchTerm = []
12567 amit.gupta 25672
          (_etype553, _size550) = iprot.readListBegin()
25673
          for _i554 in xrange(_size550):
25674
            _elem555 = iprot.readString();
25675
            self.searchTerm.append(_elem555)
9242 kshitij.so 25676
          iprot.readListEnd()
25677
        else:
25678
          iprot.skip(ftype)
25679
      else:
25680
        iprot.skip(ftype)
25681
      iprot.readFieldEnd()
25682
    iprot.readStructEnd()
25683
 
25684
  def write(self, oprot):
25685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25687
      return
25688
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
25689
    if self.searchTerm is not None:
25690
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25691
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25692
      for iter556 in self.searchTerm:
25693
        oprot.writeString(iter556)
9242 kshitij.so 25694
      oprot.writeListEnd()
25695
      oprot.writeFieldEnd()
25696
    oprot.writeFieldStop()
25697
    oprot.writeStructEnd()
25698
 
25699
  def validate(self):
25700
    return
25701
 
25702
 
25703
  def __repr__(self):
25704
    L = ['%s=%r' % (key, value)
25705
      for key, value in self.__dict__.iteritems()]
25706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25707
 
25708
  def __eq__(self, other):
25709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25710
 
25711
  def __ne__(self, other):
25712
    return not (self == other)
25713
 
25714
class getSnapdealSearchResultCount_result:
25715
  """
25716
  Attributes:
25717
   - success
25718
  """
25719
 
25720
  thrift_spec = (
25721
    (0, TType.I64, 'success', None, None, ), # 0
25722
  )
25723
 
25724
  def __init__(self, success=None,):
25725
    self.success = success
25726
 
25727
  def read(self, iprot):
25728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25730
      return
25731
    iprot.readStructBegin()
25732
    while True:
25733
      (fname, ftype, fid) = iprot.readFieldBegin()
25734
      if ftype == TType.STOP:
25735
        break
25736
      if fid == 0:
25737
        if ftype == TType.I64:
25738
          self.success = iprot.readI64();
25739
        else:
25740
          iprot.skip(ftype)
25741
      else:
25742
        iprot.skip(ftype)
25743
      iprot.readFieldEnd()
25744
    iprot.readStructEnd()
25745
 
25746
  def write(self, oprot):
25747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25749
      return
25750
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
25751
    if self.success is not None:
25752
      oprot.writeFieldBegin('success', TType.I64, 0)
25753
      oprot.writeI64(self.success)
25754
      oprot.writeFieldEnd()
25755
    oprot.writeFieldStop()
25756
    oprot.writeStructEnd()
25757
 
25758
  def validate(self):
25759
    return
25760
 
25761
 
25762
  def __repr__(self):
25763
    L = ['%s=%r' % (key, value)
25764
      for key, value in self.__dict__.iteritems()]
25765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25766
 
25767
  def __eq__(self, other):
25768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25769
 
25770
  def __ne__(self, other):
25771
    return not (self == other)
9299 kshitij.so 25772
 
25773
class getPrefferedInsurerForItem_args:
25774
  """
25775
  Attributes:
25776
   - itemId
25777
   - insurerType
25778
  """
25779
 
25780
  thrift_spec = (
25781
    None, # 0
25782
    (1, TType.I64, 'itemId', None, None, ), # 1
25783
    (2, TType.I32, 'insurerType', None, None, ), # 2
25784
  )
25785
 
25786
  def __init__(self, itemId=None, insurerType=None,):
25787
    self.itemId = itemId
25788
    self.insurerType = insurerType
25789
 
25790
  def read(self, iprot):
25791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25793
      return
25794
    iprot.readStructBegin()
25795
    while True:
25796
      (fname, ftype, fid) = iprot.readFieldBegin()
25797
      if ftype == TType.STOP:
25798
        break
25799
      if fid == 1:
25800
        if ftype == TType.I64:
25801
          self.itemId = iprot.readI64();
25802
        else:
25803
          iprot.skip(ftype)
25804
      elif fid == 2:
25805
        if ftype == TType.I32:
25806
          self.insurerType = iprot.readI32();
25807
        else:
25808
          iprot.skip(ftype)
25809
      else:
25810
        iprot.skip(ftype)
25811
      iprot.readFieldEnd()
25812
    iprot.readStructEnd()
25813
 
25814
  def write(self, oprot):
25815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25817
      return
25818
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
25819
    if self.itemId is not None:
25820
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25821
      oprot.writeI64(self.itemId)
25822
      oprot.writeFieldEnd()
25823
    if self.insurerType is not None:
25824
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
25825
      oprot.writeI32(self.insurerType)
25826
      oprot.writeFieldEnd()
25827
    oprot.writeFieldStop()
25828
    oprot.writeStructEnd()
25829
 
25830
  def validate(self):
25831
    return
25832
 
25833
 
25834
  def __repr__(self):
25835
    L = ['%s=%r' % (key, value)
25836
      for key, value in self.__dict__.iteritems()]
25837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25838
 
25839
  def __eq__(self, other):
25840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25841
 
25842
  def __ne__(self, other):
25843
    return not (self == other)
25844
 
25845
class getPrefferedInsurerForItem_result:
25846
  """
25847
  Attributes:
25848
   - success
25849
  """
25850
 
25851
  thrift_spec = (
25852
    (0, TType.I64, 'success', None, None, ), # 0
25853
  )
25854
 
25855
  def __init__(self, success=None,):
25856
    self.success = success
25857
 
25858
  def read(self, iprot):
25859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25861
      return
25862
    iprot.readStructBegin()
25863
    while True:
25864
      (fname, ftype, fid) = iprot.readFieldBegin()
25865
      if ftype == TType.STOP:
25866
        break
25867
      if fid == 0:
25868
        if ftype == TType.I64:
25869
          self.success = iprot.readI64();
25870
        else:
25871
          iprot.skip(ftype)
25872
      else:
25873
        iprot.skip(ftype)
25874
      iprot.readFieldEnd()
25875
    iprot.readStructEnd()
25876
 
25877
  def write(self, oprot):
25878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25880
      return
25881
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
25882
    if self.success is not None:
25883
      oprot.writeFieldBegin('success', TType.I64, 0)
25884
      oprot.writeI64(self.success)
25885
      oprot.writeFieldEnd()
25886
    oprot.writeFieldStop()
25887
    oprot.writeStructEnd()
25888
 
25889
  def validate(self):
25890
    return
25891
 
25892
 
25893
  def __repr__(self):
25894
    L = ['%s=%r' % (key, value)
25895
      for key, value in self.__dict__.iteritems()]
25896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25897
 
25898
  def __eq__(self, other):
25899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25900
 
25901
  def __ne__(self, other):
25902
    return not (self == other)
9456 vikram.rag 25903
 
25904
class getSnapdealItembySkuAtSnapdeal_args:
25905
  """
25906
  Attributes:
25907
   - skuAtSnapdeal
25908
  """
25909
 
25910
  thrift_spec = None
25911
  def __init__(self, skuAtSnapdeal=None,):
25912
    self.skuAtSnapdeal = skuAtSnapdeal
25913
 
25914
  def read(self, iprot):
25915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25917
      return
25918
    iprot.readStructBegin()
25919
    while True:
25920
      (fname, ftype, fid) = iprot.readFieldBegin()
25921
      if ftype == TType.STOP:
25922
        break
25923
      if fid == -1:
25924
        if ftype == TType.STRING:
25925
          self.skuAtSnapdeal = iprot.readString();
25926
        else:
25927
          iprot.skip(ftype)
25928
      else:
25929
        iprot.skip(ftype)
25930
      iprot.readFieldEnd()
25931
    iprot.readStructEnd()
25932
 
25933
  def write(self, oprot):
25934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25936
      return
25937
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
25938
    if self.skuAtSnapdeal is not None:
25939
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
25940
      oprot.writeString(self.skuAtSnapdeal)
25941
      oprot.writeFieldEnd()
25942
    oprot.writeFieldStop()
25943
    oprot.writeStructEnd()
25944
 
25945
  def validate(self):
25946
    return
25947
 
25948
 
25949
  def __repr__(self):
25950
    L = ['%s=%r' % (key, value)
25951
      for key, value in self.__dict__.iteritems()]
25952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25953
 
25954
  def __eq__(self, other):
25955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25956
 
25957
  def __ne__(self, other):
25958
    return not (self == other)
25959
 
25960
class getSnapdealItembySkuAtSnapdeal_result:
25961
  """
25962
  Attributes:
25963
   - success
25964
  """
25965
 
25966
  thrift_spec = (
25967
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
25968
  )
25969
 
25970
  def __init__(self, success=None,):
25971
    self.success = success
25972
 
25973
  def read(self, iprot):
25974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25976
      return
25977
    iprot.readStructBegin()
25978
    while True:
25979
      (fname, ftype, fid) = iprot.readFieldBegin()
25980
      if ftype == TType.STOP:
25981
        break
25982
      if fid == 0:
25983
        if ftype == TType.STRUCT:
25984
          self.success = SnapdealItem()
25985
          self.success.read(iprot)
25986
        else:
25987
          iprot.skip(ftype)
25988
      else:
25989
        iprot.skip(ftype)
25990
      iprot.readFieldEnd()
25991
    iprot.readStructEnd()
25992
 
25993
  def write(self, oprot):
25994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25996
      return
25997
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
25998
    if self.success is not None:
25999
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26000
      self.success.write(oprot)
26001
      oprot.writeFieldEnd()
26002
    oprot.writeFieldStop()
26003
    oprot.writeStructEnd()
26004
 
26005
  def validate(self):
26006
    return
26007
 
26008
 
26009
  def __repr__(self):
26010
    L = ['%s=%r' % (key, value)
26011
      for key, value in self.__dict__.iteritems()]
26012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26013
 
26014
  def __eq__(self, other):
26015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26016
 
26017
  def __ne__(self, other):
26018
    return not (self == other)
9621 manish.sha 26019
 
26020
class getProductFeedSubmit_args:
26021
  """
26022
  Attributes:
26023
   - catalogItemId
26024
  """
26025
 
26026
  thrift_spec = (
26027
    None, # 0
26028
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26029
  )
26030
 
26031
  def __init__(self, catalogItemId=None,):
26032
    self.catalogItemId = catalogItemId
26033
 
26034
  def read(self, iprot):
26035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26037
      return
26038
    iprot.readStructBegin()
26039
    while True:
26040
      (fname, ftype, fid) = iprot.readFieldBegin()
26041
      if ftype == TType.STOP:
26042
        break
26043
      if fid == 1:
26044
        if ftype == TType.I64:
26045
          self.catalogItemId = iprot.readI64();
26046
        else:
26047
          iprot.skip(ftype)
26048
      else:
26049
        iprot.skip(ftype)
26050
      iprot.readFieldEnd()
26051
    iprot.readStructEnd()
26052
 
26053
  def write(self, oprot):
26054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26056
      return
26057
    oprot.writeStructBegin('getProductFeedSubmit_args')
26058
    if self.catalogItemId is not None:
26059
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26060
      oprot.writeI64(self.catalogItemId)
26061
      oprot.writeFieldEnd()
26062
    oprot.writeFieldStop()
26063
    oprot.writeStructEnd()
26064
 
26065
  def validate(self):
26066
    return
26067
 
26068
 
26069
  def __repr__(self):
26070
    L = ['%s=%r' % (key, value)
26071
      for key, value in self.__dict__.iteritems()]
26072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26073
 
26074
  def __eq__(self, other):
26075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26076
 
26077
  def __ne__(self, other):
26078
    return not (self == other)
26079
 
26080
class getProductFeedSubmit_result:
26081
  """
26082
  Attributes:
26083
   - success
26084
   - cex
26085
  """
26086
 
26087
  thrift_spec = (
26088
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26089
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26090
  )
26091
 
26092
  def __init__(self, success=None, cex=None,):
26093
    self.success = success
26094
    self.cex = cex
26095
 
26096
  def read(self, iprot):
26097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26099
      return
26100
    iprot.readStructBegin()
26101
    while True:
26102
      (fname, ftype, fid) = iprot.readFieldBegin()
26103
      if ftype == TType.STOP:
26104
        break
26105
      if fid == 0:
26106
        if ftype == TType.STRUCT:
26107
          self.success = ProductFeedSubmit()
26108
          self.success.read(iprot)
26109
        else:
26110
          iprot.skip(ftype)
26111
      elif fid == 1:
26112
        if ftype == TType.STRUCT:
26113
          self.cex = CatalogServiceException()
26114
          self.cex.read(iprot)
26115
        else:
26116
          iprot.skip(ftype)
26117
      else:
26118
        iprot.skip(ftype)
26119
      iprot.readFieldEnd()
26120
    iprot.readStructEnd()
26121
 
26122
  def write(self, oprot):
26123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26125
      return
26126
    oprot.writeStructBegin('getProductFeedSubmit_result')
26127
    if self.success is not None:
26128
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26129
      self.success.write(oprot)
26130
      oprot.writeFieldEnd()
26131
    if self.cex is not None:
26132
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26133
      self.cex.write(oprot)
26134
      oprot.writeFieldEnd()
26135
    oprot.writeFieldStop()
26136
    oprot.writeStructEnd()
26137
 
26138
  def validate(self):
26139
    return
26140
 
26141
 
26142
  def __repr__(self):
26143
    L = ['%s=%r' % (key, value)
26144
      for key, value in self.__dict__.iteritems()]
26145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26146
 
26147
  def __eq__(self, other):
26148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26149
 
26150
  def __ne__(self, other):
26151
    return not (self == other)
26152
 
26153
class addProductFeedSubmit_args:
26154
  """
26155
  Attributes:
26156
   - productFeedSubmit
26157
  """
26158
 
26159
  thrift_spec = (
26160
    None, # 0
26161
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26162
  )
26163
 
26164
  def __init__(self, productFeedSubmit=None,):
26165
    self.productFeedSubmit = productFeedSubmit
26166
 
26167
  def read(self, iprot):
26168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26170
      return
26171
    iprot.readStructBegin()
26172
    while True:
26173
      (fname, ftype, fid) = iprot.readFieldBegin()
26174
      if ftype == TType.STOP:
26175
        break
26176
      if fid == 1:
26177
        if ftype == TType.STRUCT:
26178
          self.productFeedSubmit = ProductFeedSubmit()
26179
          self.productFeedSubmit.read(iprot)
26180
        else:
26181
          iprot.skip(ftype)
26182
      else:
26183
        iprot.skip(ftype)
26184
      iprot.readFieldEnd()
26185
    iprot.readStructEnd()
26186
 
26187
  def write(self, oprot):
26188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26190
      return
26191
    oprot.writeStructBegin('addProductFeedSubmit_args')
26192
    if self.productFeedSubmit is not None:
26193
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26194
      self.productFeedSubmit.write(oprot)
26195
      oprot.writeFieldEnd()
26196
    oprot.writeFieldStop()
26197
    oprot.writeStructEnd()
26198
 
26199
  def validate(self):
26200
    return
26201
 
26202
 
26203
  def __repr__(self):
26204
    L = ['%s=%r' % (key, value)
26205
      for key, value in self.__dict__.iteritems()]
26206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26207
 
26208
  def __eq__(self, other):
26209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26210
 
26211
  def __ne__(self, other):
26212
    return not (self == other)
26213
 
26214
class addProductFeedSubmit_result:
26215
  """
26216
  Attributes:
26217
   - success
26218
   - cex
26219
  """
26220
 
26221
  thrift_spec = (
26222
    (0, TType.BOOL, 'success', None, None, ), # 0
26223
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26224
  )
26225
 
26226
  def __init__(self, success=None, cex=None,):
26227
    self.success = success
26228
    self.cex = cex
26229
 
26230
  def read(self, iprot):
26231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26233
      return
26234
    iprot.readStructBegin()
26235
    while True:
26236
      (fname, ftype, fid) = iprot.readFieldBegin()
26237
      if ftype == TType.STOP:
26238
        break
26239
      if fid == 0:
26240
        if ftype == TType.BOOL:
26241
          self.success = iprot.readBool();
26242
        else:
26243
          iprot.skip(ftype)
26244
      elif fid == 1:
26245
        if ftype == TType.STRUCT:
26246
          self.cex = CatalogServiceException()
26247
          self.cex.read(iprot)
26248
        else:
26249
          iprot.skip(ftype)
26250
      else:
26251
        iprot.skip(ftype)
26252
      iprot.readFieldEnd()
26253
    iprot.readStructEnd()
26254
 
26255
  def write(self, oprot):
26256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26258
      return
26259
    oprot.writeStructBegin('addProductFeedSubmit_result')
26260
    if self.success is not None:
26261
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26262
      oprot.writeBool(self.success)
26263
      oprot.writeFieldEnd()
26264
    if self.cex is not None:
26265
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26266
      self.cex.write(oprot)
26267
      oprot.writeFieldEnd()
26268
    oprot.writeFieldStop()
26269
    oprot.writeStructEnd()
26270
 
26271
  def validate(self):
26272
    return
26273
 
26274
 
26275
  def __repr__(self):
26276
    L = ['%s=%r' % (key, value)
26277
      for key, value in self.__dict__.iteritems()]
26278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26279
 
26280
  def __eq__(self, other):
26281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26282
 
26283
  def __ne__(self, other):
26284
    return not (self == other)
26285
 
26286
class updateProductFeedSubmit_args:
26287
  """
26288
  Attributes:
26289
   - productFeedSubmit
26290
  """
26291
 
26292
  thrift_spec = (
26293
    None, # 0
26294
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26295
  )
26296
 
26297
  def __init__(self, productFeedSubmit=None,):
26298
    self.productFeedSubmit = productFeedSubmit
26299
 
26300
  def read(self, iprot):
26301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26303
      return
26304
    iprot.readStructBegin()
26305
    while True:
26306
      (fname, ftype, fid) = iprot.readFieldBegin()
26307
      if ftype == TType.STOP:
26308
        break
26309
      if fid == 1:
26310
        if ftype == TType.STRUCT:
26311
          self.productFeedSubmit = ProductFeedSubmit()
26312
          self.productFeedSubmit.read(iprot)
26313
        else:
26314
          iprot.skip(ftype)
26315
      else:
26316
        iprot.skip(ftype)
26317
      iprot.readFieldEnd()
26318
    iprot.readStructEnd()
26319
 
26320
  def write(self, oprot):
26321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26323
      return
26324
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26325
    if self.productFeedSubmit is not None:
26326
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26327
      self.productFeedSubmit.write(oprot)
26328
      oprot.writeFieldEnd()
26329
    oprot.writeFieldStop()
26330
    oprot.writeStructEnd()
26331
 
26332
  def validate(self):
26333
    return
26334
 
26335
 
26336
  def __repr__(self):
26337
    L = ['%s=%r' % (key, value)
26338
      for key, value in self.__dict__.iteritems()]
26339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26340
 
26341
  def __eq__(self, other):
26342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26343
 
26344
  def __ne__(self, other):
26345
    return not (self == other)
26346
 
26347
class updateProductFeedSubmit_result:
26348
  """
26349
  Attributes:
26350
   - success
26351
   - cex
26352
  """
26353
 
26354
  thrift_spec = (
26355
    (0, TType.BOOL, 'success', None, None, ), # 0
26356
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26357
  )
26358
 
26359
  def __init__(self, success=None, cex=None,):
26360
    self.success = success
26361
    self.cex = cex
26362
 
26363
  def read(self, iprot):
26364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26366
      return
26367
    iprot.readStructBegin()
26368
    while True:
26369
      (fname, ftype, fid) = iprot.readFieldBegin()
26370
      if ftype == TType.STOP:
26371
        break
26372
      if fid == 0:
26373
        if ftype == TType.BOOL:
26374
          self.success = iprot.readBool();
26375
        else:
26376
          iprot.skip(ftype)
26377
      elif fid == 1:
26378
        if ftype == TType.STRUCT:
26379
          self.cex = CatalogServiceException()
26380
          self.cex.read(iprot)
26381
        else:
26382
          iprot.skip(ftype)
26383
      else:
26384
        iprot.skip(ftype)
26385
      iprot.readFieldEnd()
26386
    iprot.readStructEnd()
26387
 
26388
  def write(self, oprot):
26389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26391
      return
26392
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26393
    if self.success is not None:
26394
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26395
      oprot.writeBool(self.success)
26396
      oprot.writeFieldEnd()
26397
    if self.cex is not None:
26398
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26399
      self.cex.write(oprot)
26400
      oprot.writeFieldEnd()
26401
    oprot.writeFieldStop()
26402
    oprot.writeStructEnd()
26403
 
26404
  def validate(self):
26405
    return
26406
 
26407
 
26408
  def __repr__(self):
26409
    L = ['%s=%r' % (key, value)
26410
      for key, value in self.__dict__.iteritems()]
26411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26412
 
26413
  def __eq__(self, other):
26414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26415
 
26416
  def __ne__(self, other):
26417
    return not (self == other)
26418
 
26419
class deleteProductFeedSubmit_args:
26420
  """
26421
  Attributes:
26422
   - catalogItemId
26423
  """
26424
 
26425
  thrift_spec = (
26426
    None, # 0
26427
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26428
  )
26429
 
26430
  def __init__(self, catalogItemId=None,):
26431
    self.catalogItemId = catalogItemId
26432
 
26433
  def read(self, iprot):
26434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26436
      return
26437
    iprot.readStructBegin()
26438
    while True:
26439
      (fname, ftype, fid) = iprot.readFieldBegin()
26440
      if ftype == TType.STOP:
26441
        break
26442
      if fid == 1:
26443
        if ftype == TType.I64:
26444
          self.catalogItemId = iprot.readI64();
26445
        else:
26446
          iprot.skip(ftype)
26447
      else:
26448
        iprot.skip(ftype)
26449
      iprot.readFieldEnd()
26450
    iprot.readStructEnd()
26451
 
26452
  def write(self, oprot):
26453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26455
      return
26456
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26457
    if self.catalogItemId is not None:
26458
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26459
      oprot.writeI64(self.catalogItemId)
26460
      oprot.writeFieldEnd()
26461
    oprot.writeFieldStop()
26462
    oprot.writeStructEnd()
26463
 
26464
  def validate(self):
26465
    return
26466
 
26467
 
26468
  def __repr__(self):
26469
    L = ['%s=%r' % (key, value)
26470
      for key, value in self.__dict__.iteritems()]
26471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26472
 
26473
  def __eq__(self, other):
26474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26475
 
26476
  def __ne__(self, other):
26477
    return not (self == other)
26478
 
26479
class deleteProductFeedSubmit_result:
26480
  """
26481
  Attributes:
26482
   - success
26483
   - cex
26484
  """
26485
 
26486
  thrift_spec = (
26487
    (0, TType.BOOL, 'success', None, None, ), # 0
26488
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26489
  )
26490
 
26491
  def __init__(self, success=None, cex=None,):
26492
    self.success = success
26493
    self.cex = cex
26494
 
26495
  def read(self, iprot):
26496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26498
      return
26499
    iprot.readStructBegin()
26500
    while True:
26501
      (fname, ftype, fid) = iprot.readFieldBegin()
26502
      if ftype == TType.STOP:
26503
        break
26504
      if fid == 0:
26505
        if ftype == TType.BOOL:
26506
          self.success = iprot.readBool();
26507
        else:
26508
          iprot.skip(ftype)
26509
      elif fid == 1:
26510
        if ftype == TType.STRUCT:
26511
          self.cex = CatalogServiceException()
26512
          self.cex.read(iprot)
26513
        else:
26514
          iprot.skip(ftype)
26515
      else:
26516
        iprot.skip(ftype)
26517
      iprot.readFieldEnd()
26518
    iprot.readStructEnd()
26519
 
26520
  def write(self, oprot):
26521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26523
      return
26524
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26525
    if self.success is not None:
26526
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26527
      oprot.writeBool(self.success)
26528
      oprot.writeFieldEnd()
26529
    if self.cex is not None:
26530
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26531
      self.cex.write(oprot)
26532
      oprot.writeFieldEnd()
26533
    oprot.writeFieldStop()
26534
    oprot.writeStructEnd()
26535
 
26536
  def validate(self):
26537
    return
26538
 
26539
 
26540
  def __repr__(self):
26541
    L = ['%s=%r' % (key, value)
26542
      for key, value in self.__dict__.iteritems()]
26543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26544
 
26545
  def __eq__(self, other):
26546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26547
 
26548
  def __ne__(self, other):
26549
    return not (self == other)
26550
 
26551
class getAllProductFeedSubmit_args:
26552
 
26553
  thrift_spec = (
26554
  )
26555
 
26556
  def read(self, iprot):
26557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26559
      return
26560
    iprot.readStructBegin()
26561
    while True:
26562
      (fname, ftype, fid) = iprot.readFieldBegin()
26563
      if ftype == TType.STOP:
26564
        break
26565
      else:
26566
        iprot.skip(ftype)
26567
      iprot.readFieldEnd()
26568
    iprot.readStructEnd()
26569
 
26570
  def write(self, oprot):
26571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26573
      return
26574
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26575
    oprot.writeFieldStop()
26576
    oprot.writeStructEnd()
26577
 
26578
  def validate(self):
26579
    return
26580
 
26581
 
26582
  def __repr__(self):
26583
    L = ['%s=%r' % (key, value)
26584
      for key, value in self.__dict__.iteritems()]
26585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26586
 
26587
  def __eq__(self, other):
26588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26589
 
26590
  def __ne__(self, other):
26591
    return not (self == other)
26592
 
26593
class getAllProductFeedSubmit_result:
26594
  """
26595
  Attributes:
26596
   - success
26597
   - cex
26598
  """
26599
 
26600
  thrift_spec = (
26601
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26602
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26603
  )
26604
 
26605
  def __init__(self, success=None, cex=None,):
26606
    self.success = success
26607
    self.cex = cex
26608
 
26609
  def read(self, iprot):
26610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26612
      return
26613
    iprot.readStructBegin()
26614
    while True:
26615
      (fname, ftype, fid) = iprot.readFieldBegin()
26616
      if ftype == TType.STOP:
26617
        break
26618
      if fid == 0:
26619
        if ftype == TType.LIST:
26620
          self.success = []
12567 amit.gupta 26621
          (_etype560, _size557) = iprot.readListBegin()
26622
          for _i561 in xrange(_size557):
26623
            _elem562 = ProductFeedSubmit()
26624
            _elem562.read(iprot)
26625
            self.success.append(_elem562)
9621 manish.sha 26626
          iprot.readListEnd()
26627
        else:
26628
          iprot.skip(ftype)
26629
      elif fid == 1:
26630
        if ftype == TType.STRUCT:
26631
          self.cex = CatalogServiceException()
26632
          self.cex.read(iprot)
26633
        else:
26634
          iprot.skip(ftype)
26635
      else:
26636
        iprot.skip(ftype)
26637
      iprot.readFieldEnd()
26638
    iprot.readStructEnd()
26639
 
26640
  def write(self, oprot):
26641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26643
      return
26644
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26645
    if self.success is not None:
26646
      oprot.writeFieldBegin('success', TType.LIST, 0)
26647
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 26648
      for iter563 in self.success:
26649
        iter563.write(oprot)
9621 manish.sha 26650
      oprot.writeListEnd()
26651
      oprot.writeFieldEnd()
26652
    if self.cex is not None:
26653
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26654
      self.cex.write(oprot)
26655
      oprot.writeFieldEnd()
26656
    oprot.writeFieldStop()
26657
    oprot.writeStructEnd()
26658
 
26659
  def validate(self):
26660
    return
26661
 
26662
 
26663
  def __repr__(self):
26664
    L = ['%s=%r' % (key, value)
26665
      for key, value in self.__dict__.iteritems()]
26666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26667
 
26668
  def __eq__(self, other):
26669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26670
 
26671
  def __ne__(self, other):
26672
    return not (self == other)
9724 kshitij.so 26673
 
26674
class getMarketplacedetailsForItem_args:
26675
  """
26676
  Attributes:
26677
   - itemId
26678
   - sourceId
26679
  """
26680
 
26681
  thrift_spec = (
26682
    None, # 0
26683
    (1, TType.I64, 'itemId', None, None, ), # 1
26684
    (2, TType.I64, 'sourceId', None, None, ), # 2
26685
  )
26686
 
26687
  def __init__(self, itemId=None, sourceId=None,):
26688
    self.itemId = itemId
26689
    self.sourceId = sourceId
26690
 
26691
  def read(self, iprot):
26692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26694
      return
26695
    iprot.readStructBegin()
26696
    while True:
26697
      (fname, ftype, fid) = iprot.readFieldBegin()
26698
      if ftype == TType.STOP:
26699
        break
26700
      if fid == 1:
26701
        if ftype == TType.I64:
26702
          self.itemId = iprot.readI64();
26703
        else:
26704
          iprot.skip(ftype)
26705
      elif fid == 2:
26706
        if ftype == TType.I64:
26707
          self.sourceId = iprot.readI64();
26708
        else:
26709
          iprot.skip(ftype)
26710
      else:
26711
        iprot.skip(ftype)
26712
      iprot.readFieldEnd()
26713
    iprot.readStructEnd()
26714
 
26715
  def write(self, oprot):
26716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26718
      return
26719
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
26720
    if self.itemId is not None:
26721
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26722
      oprot.writeI64(self.itemId)
26723
      oprot.writeFieldEnd()
26724
    if self.sourceId is not None:
26725
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
26726
      oprot.writeI64(self.sourceId)
26727
      oprot.writeFieldEnd()
26728
    oprot.writeFieldStop()
26729
    oprot.writeStructEnd()
26730
 
26731
  def validate(self):
26732
    return
26733
 
26734
 
26735
  def __repr__(self):
26736
    L = ['%s=%r' % (key, value)
26737
      for key, value in self.__dict__.iteritems()]
26738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26739
 
26740
  def __eq__(self, other):
26741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26742
 
26743
  def __ne__(self, other):
26744
    return not (self == other)
26745
 
26746
class getMarketplacedetailsForItem_result:
26747
  """
26748
  Attributes:
26749
   - success
26750
  """
26751
 
26752
  thrift_spec = (
26753
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
26754
  )
26755
 
26756
  def __init__(self, success=None,):
26757
    self.success = success
26758
 
26759
  def read(self, iprot):
26760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26762
      return
26763
    iprot.readStructBegin()
26764
    while True:
26765
      (fname, ftype, fid) = iprot.readFieldBegin()
26766
      if ftype == TType.STOP:
26767
        break
26768
      if fid == 0:
26769
        if ftype == TType.STRUCT:
26770
          self.success = MarketplaceItems()
26771
          self.success.read(iprot)
26772
        else:
26773
          iprot.skip(ftype)
26774
      else:
26775
        iprot.skip(ftype)
26776
      iprot.readFieldEnd()
26777
    iprot.readStructEnd()
26778
 
26779
  def write(self, oprot):
26780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26782
      return
26783
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
26784
    if self.success is not None:
26785
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26786
      self.success.write(oprot)
26787
      oprot.writeFieldEnd()
26788
    oprot.writeFieldStop()
26789
    oprot.writeStructEnd()
26790
 
26791
  def validate(self):
26792
    return
26793
 
26794
 
26795
  def __repr__(self):
26796
    L = ['%s=%r' % (key, value)
26797
      for key, value in self.__dict__.iteritems()]
26798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26799
 
26800
  def __eq__(self, other):
26801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26802
 
26803
  def __ne__(self, other):
26804
    return not (self == other)
26805
 
26806
class updateMarketplaceAttributesForItem_args:
26807
  """
26808
  Attributes:
26809
   - marketPlaceItem
26810
  """
26811
 
26812
  thrift_spec = (
26813
    None, # 0
26814
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
26815
  )
26816
 
26817
  def __init__(self, marketPlaceItem=None,):
26818
    self.marketPlaceItem = marketPlaceItem
26819
 
26820
  def read(self, iprot):
26821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26823
      return
26824
    iprot.readStructBegin()
26825
    while True:
26826
      (fname, ftype, fid) = iprot.readFieldBegin()
26827
      if ftype == TType.STOP:
26828
        break
26829
      if fid == 1:
26830
        if ftype == TType.STRUCT:
26831
          self.marketPlaceItem = MarketplaceItems()
26832
          self.marketPlaceItem.read(iprot)
26833
        else:
26834
          iprot.skip(ftype)
26835
      else:
26836
        iprot.skip(ftype)
26837
      iprot.readFieldEnd()
26838
    iprot.readStructEnd()
26839
 
26840
  def write(self, oprot):
26841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26843
      return
26844
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
26845
    if self.marketPlaceItem is not None:
26846
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
26847
      self.marketPlaceItem.write(oprot)
26848
      oprot.writeFieldEnd()
26849
    oprot.writeFieldStop()
26850
    oprot.writeStructEnd()
26851
 
26852
  def validate(self):
26853
    return
26854
 
26855
 
26856
  def __repr__(self):
26857
    L = ['%s=%r' % (key, value)
26858
      for key, value in self.__dict__.iteritems()]
26859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26860
 
26861
  def __eq__(self, other):
26862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26863
 
26864
  def __ne__(self, other):
26865
    return not (self == other)
26866
 
26867
class updateMarketplaceAttributesForItem_result:
26868
  """
26869
  Attributes:
26870
   - success
26871
  """
26872
 
26873
  thrift_spec = (
26874
    (0, TType.BOOL, 'success', None, None, ), # 0
26875
  )
26876
 
26877
  def __init__(self, success=None,):
26878
    self.success = success
26879
 
26880
  def read(self, iprot):
26881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26883
      return
26884
    iprot.readStructBegin()
26885
    while True:
26886
      (fname, ftype, fid) = iprot.readFieldBegin()
26887
      if ftype == TType.STOP:
26888
        break
26889
      if fid == 0:
26890
        if ftype == TType.BOOL:
26891
          self.success = iprot.readBool();
26892
        else:
26893
          iprot.skip(ftype)
26894
      else:
26895
        iprot.skip(ftype)
26896
      iprot.readFieldEnd()
26897
    iprot.readStructEnd()
26898
 
26899
  def write(self, oprot):
26900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26902
      return
26903
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
26904
    if self.success is not None:
26905
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26906
      oprot.writeBool(self.success)
26907
      oprot.writeFieldEnd()
26908
    oprot.writeFieldStop()
26909
    oprot.writeStructEnd()
26910
 
26911
  def validate(self):
26912
    return
26913
 
26914
 
26915
  def __repr__(self):
26916
    L = ['%s=%r' % (key, value)
26917
      for key, value in self.__dict__.iteritems()]
26918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26919
 
26920
  def __eq__(self, other):
26921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26922
 
26923
  def __ne__(self, other):
26924
    return not (self == other)
9776 vikram.rag 26925
 
9779 kshitij.so 26926
class getCostingForMarketplace_args:
26927
  """
26928
  Attributes:
26929
   - source
26930
   - item_id
26931
  """
26932
 
26933
  thrift_spec = (
26934
    None, # 0
26935
    (1, TType.I64, 'source', None, None, ), # 1
26936
    (2, TType.I64, 'item_id', None, None, ), # 2
26937
  )
26938
 
26939
  def __init__(self, source=None, item_id=None,):
26940
    self.source = source
26941
    self.item_id = item_id
26942
 
26943
  def read(self, iprot):
26944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26946
      return
26947
    iprot.readStructBegin()
26948
    while True:
26949
      (fname, ftype, fid) = iprot.readFieldBegin()
26950
      if ftype == TType.STOP:
26951
        break
26952
      if fid == 1:
26953
        if ftype == TType.I64:
26954
          self.source = iprot.readI64();
26955
        else:
26956
          iprot.skip(ftype)
26957
      elif fid == 2:
26958
        if ftype == TType.I64:
26959
          self.item_id = iprot.readI64();
26960
        else:
26961
          iprot.skip(ftype)
26962
      else:
26963
        iprot.skip(ftype)
26964
      iprot.readFieldEnd()
26965
    iprot.readStructEnd()
26966
 
26967
  def write(self, oprot):
26968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26970
      return
26971
    oprot.writeStructBegin('getCostingForMarketplace_args')
26972
    if self.source is not None:
26973
      oprot.writeFieldBegin('source', TType.I64, 1)
26974
      oprot.writeI64(self.source)
26975
      oprot.writeFieldEnd()
26976
    if self.item_id is not None:
26977
      oprot.writeFieldBegin('item_id', TType.I64, 2)
26978
      oprot.writeI64(self.item_id)
26979
      oprot.writeFieldEnd()
26980
    oprot.writeFieldStop()
26981
    oprot.writeStructEnd()
26982
 
26983
  def validate(self):
26984
    return
26985
 
26986
 
26987
  def __repr__(self):
26988
    L = ['%s=%r' % (key, value)
26989
      for key, value in self.__dict__.iteritems()]
26990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26991
 
26992
  def __eq__(self, other):
26993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26994
 
26995
  def __ne__(self, other):
26996
    return not (self == other)
26997
 
26998
class getCostingForMarketplace_result:
26999
  """
27000
  Attributes:
27001
   - success
27002
  """
27003
 
27004
  thrift_spec = (
27005
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
27006
  )
27007
 
27008
  def __init__(self, success=None,):
27009
    self.success = success
27010
 
27011
  def read(self, iprot):
27012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27014
      return
27015
    iprot.readStructBegin()
27016
    while True:
27017
      (fname, ftype, fid) = iprot.readFieldBegin()
27018
      if ftype == TType.STOP:
27019
        break
27020
      if fid == 0:
27021
        if ftype == TType.STRUCT:
27022
          self.success = MarketplacePercentage()
27023
          self.success.read(iprot)
27024
        else:
27025
          iprot.skip(ftype)
27026
      else:
27027
        iprot.skip(ftype)
27028
      iprot.readFieldEnd()
27029
    iprot.readStructEnd()
27030
 
27031
  def write(self, oprot):
27032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27034
      return
27035
    oprot.writeStructBegin('getCostingForMarketplace_result')
27036
    if self.success is not None:
27037
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27038
      self.success.write(oprot)
27039
      oprot.writeFieldEnd()
27040
    oprot.writeFieldStop()
27041
    oprot.writeStructEnd()
27042
 
27043
  def validate(self):
27044
    return
27045
 
27046
 
27047
  def __repr__(self):
27048
    L = ['%s=%r' % (key, value)
27049
      for key, value in self.__dict__.iteritems()]
27050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27051
 
27052
  def __eq__(self, other):
27053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27054
 
27055
  def __ne__(self, other):
27056
    return not (self == other)
27057
 
9776 vikram.rag 27058
class getMarketPlaceItemsForPriceUpdate_args:
27059
  """
27060
  Attributes:
27061
   - source
27062
  """
27063
 
27064
  thrift_spec = (
27065
    None, # 0
27066
    (1, TType.I64, 'source', None, None, ), # 1
27067
  )
27068
 
27069
  def __init__(self, source=None,):
27070
    self.source = source
27071
 
27072
  def read(self, iprot):
27073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27075
      return
27076
    iprot.readStructBegin()
27077
    while True:
27078
      (fname, ftype, fid) = iprot.readFieldBegin()
27079
      if ftype == TType.STOP:
27080
        break
27081
      if fid == 1:
27082
        if ftype == TType.I64:
27083
          self.source = iprot.readI64();
27084
        else:
27085
          iprot.skip(ftype)
27086
      else:
27087
        iprot.skip(ftype)
27088
      iprot.readFieldEnd()
27089
    iprot.readStructEnd()
27090
 
27091
  def write(self, oprot):
27092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27094
      return
27095
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27096
    if self.source is not None:
27097
      oprot.writeFieldBegin('source', TType.I64, 1)
27098
      oprot.writeI64(self.source)
27099
      oprot.writeFieldEnd()
27100
    oprot.writeFieldStop()
27101
    oprot.writeStructEnd()
27102
 
27103
  def validate(self):
27104
    return
27105
 
27106
 
27107
  def __repr__(self):
27108
    L = ['%s=%r' % (key, value)
27109
      for key, value in self.__dict__.iteritems()]
27110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27111
 
27112
  def __eq__(self, other):
27113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27114
 
27115
  def __ne__(self, other):
27116
    return not (self == other)
27117
 
27118
class getMarketPlaceItemsForPriceUpdate_result:
27119
  """
27120
  Attributes:
27121
   - success
27122
  """
27123
 
27124
  thrift_spec = (
27125
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27126
  )
27127
 
27128
  def __init__(self, success=None,):
27129
    self.success = success
27130
 
27131
  def read(self, iprot):
27132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27134
      return
27135
    iprot.readStructBegin()
27136
    while True:
27137
      (fname, ftype, fid) = iprot.readFieldBegin()
27138
      if ftype == TType.STOP:
27139
        break
27140
      if fid == 0:
27141
        if ftype == TType.LIST:
27142
          self.success = []
12567 amit.gupta 27143
          (_etype567, _size564) = iprot.readListBegin()
27144
          for _i568 in xrange(_size564):
27145
            _elem569 = MarketPlaceItemPrice()
27146
            _elem569.read(iprot)
27147
            self.success.append(_elem569)
9776 vikram.rag 27148
          iprot.readListEnd()
27149
        else:
27150
          iprot.skip(ftype)
27151
      else:
27152
        iprot.skip(ftype)
27153
      iprot.readFieldEnd()
27154
    iprot.readStructEnd()
27155
 
27156
  def write(self, oprot):
27157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27159
      return
27160
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27161
    if self.success is not None:
27162
      oprot.writeFieldBegin('success', TType.LIST, 0)
27163
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27164
      for iter570 in self.success:
27165
        iter570.write(oprot)
9776 vikram.rag 27166
      oprot.writeListEnd()
27167
      oprot.writeFieldEnd()
27168
    oprot.writeFieldStop()
27169
    oprot.writeStructEnd()
27170
 
27171
  def validate(self):
27172
    return
27173
 
27174
 
27175
  def __repr__(self):
27176
    L = ['%s=%r' % (key, value)
27177
      for key, value in self.__dict__.iteritems()]
27178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27179
 
27180
  def __eq__(self, other):
27181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27182
 
27183
  def __ne__(self, other):
27184
    return not (self == other)
27185
 
27186
class updateMarketPlacePriceUpdateStatus_args:
27187
  """
27188
  Attributes:
27189
   - skulist
27190
   - timestamp
9816 kshitij.so 27191
   - source
9776 vikram.rag 27192
  """
27193
 
27194
  thrift_spec = (
27195
    None, # 0
27196
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27197
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27198
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27199
  )
27200
 
9816 kshitij.so 27201
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27202
    self.skulist = skulist
27203
    self.timestamp = timestamp
9816 kshitij.so 27204
    self.source = source
9776 vikram.rag 27205
 
27206
  def read(self, iprot):
27207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27209
      return
27210
    iprot.readStructBegin()
27211
    while True:
27212
      (fname, ftype, fid) = iprot.readFieldBegin()
27213
      if ftype == TType.STOP:
27214
        break
27215
      if fid == 1:
27216
        if ftype == TType.LIST:
27217
          self.skulist = []
12567 amit.gupta 27218
          (_etype574, _size571) = iprot.readListBegin()
27219
          for _i575 in xrange(_size571):
27220
            _elem576 = iprot.readI64();
27221
            self.skulist.append(_elem576)
9776 vikram.rag 27222
          iprot.readListEnd()
27223
        else:
27224
          iprot.skip(ftype)
27225
      elif fid == 2:
27226
        if ftype == TType.I64:
27227
          self.timestamp = iprot.readI64();
27228
        else:
27229
          iprot.skip(ftype)
9816 kshitij.so 27230
      elif fid == 3:
27231
        if ftype == TType.I64:
27232
          self.source = iprot.readI64();
27233
        else:
27234
          iprot.skip(ftype)
9776 vikram.rag 27235
      else:
27236
        iprot.skip(ftype)
27237
      iprot.readFieldEnd()
27238
    iprot.readStructEnd()
27239
 
27240
  def write(self, oprot):
27241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27243
      return
27244
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27245
    if self.skulist is not None:
27246
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27247
      oprot.writeListBegin(TType.I64, len(self.skulist))
12567 amit.gupta 27248
      for iter577 in self.skulist:
27249
        oprot.writeI64(iter577)
9776 vikram.rag 27250
      oprot.writeListEnd()
27251
      oprot.writeFieldEnd()
27252
    if self.timestamp is not None:
27253
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27254
      oprot.writeI64(self.timestamp)
27255
      oprot.writeFieldEnd()
9816 kshitij.so 27256
    if self.source is not None:
27257
      oprot.writeFieldBegin('source', TType.I64, 3)
27258
      oprot.writeI64(self.source)
27259
      oprot.writeFieldEnd()
9776 vikram.rag 27260
    oprot.writeFieldStop()
27261
    oprot.writeStructEnd()
27262
 
27263
  def validate(self):
27264
    return
27265
 
27266
 
27267
  def __repr__(self):
27268
    L = ['%s=%r' % (key, value)
27269
      for key, value in self.__dict__.iteritems()]
27270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27271
 
27272
  def __eq__(self, other):
27273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27274
 
27275
  def __ne__(self, other):
27276
    return not (self == other)
27277
 
27278
class updateMarketPlacePriceUpdateStatus_result:
27279
 
27280
  thrift_spec = (
27281
  )
27282
 
27283
  def read(self, iprot):
27284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27286
      return
27287
    iprot.readStructBegin()
27288
    while True:
27289
      (fname, ftype, fid) = iprot.readFieldBegin()
27290
      if ftype == TType.STOP:
27291
        break
27292
      else:
27293
        iprot.skip(ftype)
27294
      iprot.readFieldEnd()
27295
    iprot.readStructEnd()
27296
 
27297
  def write(self, oprot):
27298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27300
      return
27301
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27302
    oprot.writeFieldStop()
27303
    oprot.writeStructEnd()
27304
 
27305
  def validate(self):
27306
    return
27307
 
27308
 
27309
  def __repr__(self):
27310
    L = ['%s=%r' % (key, value)
27311
      for key, value in self.__dict__.iteritems()]
27312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27313
 
27314
  def __eq__(self, other):
27315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27316
 
27317
  def __ne__(self, other):
27318
    return not (self == other)
9861 rajveer 27319
 
27320
class updateItemHoldInventory_args:
27321
  """
27322
  Attributes:
27323
   - itemHoldMap
27324
  """
27325
 
27326
  thrift_spec = (
27327
    None, # 0
27328
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27329
  )
27330
 
27331
  def __init__(self, itemHoldMap=None,):
27332
    self.itemHoldMap = itemHoldMap
27333
 
27334
  def read(self, iprot):
27335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27337
      return
27338
    iprot.readStructBegin()
27339
    while True:
27340
      (fname, ftype, fid) = iprot.readFieldBegin()
27341
      if ftype == TType.STOP:
27342
        break
27343
      if fid == 1:
27344
        if ftype == TType.MAP:
27345
          self.itemHoldMap = {}
12567 amit.gupta 27346
          (_ktype579, _vtype580, _size578 ) = iprot.readMapBegin() 
27347
          for _i582 in xrange(_size578):
27348
            _key583 = iprot.readI64();
27349
            _val584 = iprot.readI64();
27350
            self.itemHoldMap[_key583] = _val584
9861 rajveer 27351
          iprot.readMapEnd()
27352
        else:
27353
          iprot.skip(ftype)
27354
      else:
27355
        iprot.skip(ftype)
27356
      iprot.readFieldEnd()
27357
    iprot.readStructEnd()
27358
 
27359
  def write(self, oprot):
27360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27362
      return
27363
    oprot.writeStructBegin('updateItemHoldInventory_args')
27364
    if self.itemHoldMap is not None:
27365
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27366
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
12567 amit.gupta 27367
      for kiter585,viter586 in self.itemHoldMap.items():
27368
        oprot.writeI64(kiter585)
27369
        oprot.writeI64(viter586)
9861 rajveer 27370
      oprot.writeMapEnd()
27371
      oprot.writeFieldEnd()
27372
    oprot.writeFieldStop()
27373
    oprot.writeStructEnd()
27374
 
27375
  def validate(self):
27376
    return
27377
 
27378
 
27379
  def __repr__(self):
27380
    L = ['%s=%r' % (key, value)
27381
      for key, value in self.__dict__.iteritems()]
27382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27383
 
27384
  def __eq__(self, other):
27385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27386
 
27387
  def __ne__(self, other):
27388
    return not (self == other)
27389
 
27390
class updateItemHoldInventory_result:
27391
 
27392
  thrift_spec = (
27393
  )
27394
 
27395
  def read(self, iprot):
27396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27398
      return
27399
    iprot.readStructBegin()
27400
    while True:
27401
      (fname, ftype, fid) = iprot.readFieldBegin()
27402
      if ftype == TType.STOP:
27403
        break
27404
      else:
27405
        iprot.skip(ftype)
27406
      iprot.readFieldEnd()
27407
    iprot.readStructEnd()
27408
 
27409
  def write(self, oprot):
27410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27412
      return
27413
    oprot.writeStructBegin('updateItemHoldInventory_result')
27414
    oprot.writeFieldStop()
27415
    oprot.writeStructEnd()
27416
 
27417
  def validate(self):
27418
    return
27419
 
27420
 
27421
  def __repr__(self):
27422
    L = ['%s=%r' % (key, value)
27423
      for key, value in self.__dict__.iteritems()]
27424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27425
 
27426
  def __eq__(self, other):
27427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27428
 
27429
  def __ne__(self, other):
27430
    return not (self == other)
9895 vikram.rag 27431
 
27432
class updateNlcAtMarketplaces_args:
27433
  """
27434
  Attributes:
27435
   - item_id
27436
   - vendor_id
27437
   - nlc
27438
  """
27439
 
27440
  thrift_spec = None
27441
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27442
    self.item_id = item_id
27443
    self.vendor_id = vendor_id
27444
    self.nlc = nlc
27445
 
27446
  def read(self, iprot):
27447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27449
      return
27450
    iprot.readStructBegin()
27451
    while True:
27452
      (fname, ftype, fid) = iprot.readFieldBegin()
27453
      if ftype == TType.STOP:
27454
        break
27455
      if fid == 1:
27456
        if ftype == TType.I64:
27457
          self.item_id = iprot.readI64();
27458
        else:
27459
          iprot.skip(ftype)
27460
      elif fid == 2:
27461
        if ftype == TType.I64:
27462
          self.vendor_id = iprot.readI64();
27463
        else:
27464
          iprot.skip(ftype)
27465
      elif fid == -1:
27466
        if ftype == TType.DOUBLE:
27467
          self.nlc = iprot.readDouble();
27468
        else:
27469
          iprot.skip(ftype)
27470
      else:
27471
        iprot.skip(ftype)
27472
      iprot.readFieldEnd()
27473
    iprot.readStructEnd()
27474
 
27475
  def write(self, oprot):
27476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27478
      return
27479
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27480
    if self.nlc is not None:
27481
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27482
      oprot.writeDouble(self.nlc)
27483
      oprot.writeFieldEnd()
27484
    if self.item_id is not None:
27485
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27486
      oprot.writeI64(self.item_id)
27487
      oprot.writeFieldEnd()
27488
    if self.vendor_id is not None:
27489
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27490
      oprot.writeI64(self.vendor_id)
27491
      oprot.writeFieldEnd()
27492
    oprot.writeFieldStop()
27493
    oprot.writeStructEnd()
27494
 
27495
  def validate(self):
27496
    return
27497
 
27498
 
27499
  def __repr__(self):
27500
    L = ['%s=%r' % (key, value)
27501
      for key, value in self.__dict__.iteritems()]
27502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27503
 
27504
  def __eq__(self, other):
27505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27506
 
27507
  def __ne__(self, other):
27508
    return not (self == other)
27509
 
27510
class updateNlcAtMarketplaces_result:
27511
 
27512
  thrift_spec = (
27513
  )
27514
 
27515
  def read(self, iprot):
27516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27518
      return
27519
    iprot.readStructBegin()
27520
    while True:
27521
      (fname, ftype, fid) = iprot.readFieldBegin()
27522
      if ftype == TType.STOP:
27523
        break
27524
      else:
27525
        iprot.skip(ftype)
27526
      iprot.readFieldEnd()
27527
    iprot.readStructEnd()
27528
 
27529
  def write(self, oprot):
27530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27532
      return
27533
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27534
    oprot.writeFieldStop()
27535
    oprot.writeStructEnd()
27536
 
27537
  def validate(self):
27538
    return
27539
 
27540
 
27541
  def __repr__(self):
27542
    L = ['%s=%r' % (key, value)
27543
      for key, value in self.__dict__.iteritems()]
27544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27545
 
27546
  def __eq__(self, other):
27547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27548
 
27549
  def __ne__(self, other):
27550
    return not (self == other)
9945 vikram.rag 27551
 
27552
class getAllFlipkartItems_args:
27553
 
27554
  thrift_spec = (
27555
  )
27556
 
27557
  def read(self, iprot):
27558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27560
      return
27561
    iprot.readStructBegin()
27562
    while True:
27563
      (fname, ftype, fid) = iprot.readFieldBegin()
27564
      if ftype == TType.STOP:
27565
        break
27566
      else:
27567
        iprot.skip(ftype)
27568
      iprot.readFieldEnd()
27569
    iprot.readStructEnd()
27570
 
27571
  def write(self, oprot):
27572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27574
      return
27575
    oprot.writeStructBegin('getAllFlipkartItems_args')
27576
    oprot.writeFieldStop()
27577
    oprot.writeStructEnd()
27578
 
27579
  def validate(self):
27580
    return
27581
 
27582
 
27583
  def __repr__(self):
27584
    L = ['%s=%r' % (key, value)
27585
      for key, value in self.__dict__.iteritems()]
27586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27587
 
27588
  def __eq__(self, other):
27589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27590
 
27591
  def __ne__(self, other):
27592
    return not (self == other)
27593
 
27594
class getAllFlipkartItems_result:
27595
  """
27596
  Attributes:
27597
   - success
27598
  """
27599
 
27600
  thrift_spec = (
27601
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27602
  )
27603
 
27604
  def __init__(self, success=None,):
27605
    self.success = success
27606
 
27607
  def read(self, iprot):
27608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27610
      return
27611
    iprot.readStructBegin()
27612
    while True:
27613
      (fname, ftype, fid) = iprot.readFieldBegin()
27614
      if ftype == TType.STOP:
27615
        break
27616
      if fid == 0:
27617
        if ftype == TType.LIST:
27618
          self.success = []
12567 amit.gupta 27619
          (_etype590, _size587) = iprot.readListBegin()
27620
          for _i591 in xrange(_size587):
27621
            _elem592 = FlipkartItem()
27622
            _elem592.read(iprot)
27623
            self.success.append(_elem592)
9945 vikram.rag 27624
          iprot.readListEnd()
27625
        else:
27626
          iprot.skip(ftype)
27627
      else:
27628
        iprot.skip(ftype)
27629
      iprot.readFieldEnd()
27630
    iprot.readStructEnd()
27631
 
27632
  def write(self, oprot):
27633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27635
      return
27636
    oprot.writeStructBegin('getAllFlipkartItems_result')
27637
    if self.success is not None:
27638
      oprot.writeFieldBegin('success', TType.LIST, 0)
27639
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27640
      for iter593 in self.success:
27641
        iter593.write(oprot)
9945 vikram.rag 27642
      oprot.writeListEnd()
27643
      oprot.writeFieldEnd()
27644
    oprot.writeFieldStop()
27645
    oprot.writeStructEnd()
27646
 
27647
  def validate(self):
27648
    return
27649
 
27650
 
27651
  def __repr__(self):
27652
    L = ['%s=%r' % (key, value)
27653
      for key, value in self.__dict__.iteritems()]
27654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27655
 
27656
  def __eq__(self, other):
27657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27658
 
27659
  def __ne__(self, other):
27660
    return not (self == other)
10097 kshitij.so 27661
 
27662
class addOrUpdateFlipkartItem_args:
27663
  """
27664
  Attributes:
27665
   - flipkartitem
27666
  """
27667
 
27668
  thrift_spec = None
27669
  def __init__(self, flipkartitem=None,):
27670
    self.flipkartitem = flipkartitem
27671
 
27672
  def read(self, iprot):
27673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27675
      return
27676
    iprot.readStructBegin()
27677
    while True:
27678
      (fname, ftype, fid) = iprot.readFieldBegin()
27679
      if ftype == TType.STOP:
27680
        break
27681
      if fid == -1:
27682
        if ftype == TType.STRUCT:
27683
          self.flipkartitem = FlipkartItem()
27684
          self.flipkartitem.read(iprot)
27685
        else:
27686
          iprot.skip(ftype)
27687
      else:
27688
        iprot.skip(ftype)
27689
      iprot.readFieldEnd()
27690
    iprot.readStructEnd()
27691
 
27692
  def write(self, oprot):
27693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27695
      return
27696
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
27697
    if self.flipkartitem is not None:
27698
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
27699
      self.flipkartitem.write(oprot)
27700
      oprot.writeFieldEnd()
27701
    oprot.writeFieldStop()
27702
    oprot.writeStructEnd()
27703
 
27704
  def validate(self):
27705
    return
27706
 
27707
 
27708
  def __repr__(self):
27709
    L = ['%s=%r' % (key, value)
27710
      for key, value in self.__dict__.iteritems()]
27711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27712
 
27713
  def __eq__(self, other):
27714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27715
 
27716
  def __ne__(self, other):
27717
    return not (self == other)
27718
 
27719
class addOrUpdateFlipkartItem_result:
27720
  """
27721
  Attributes:
27722
   - success
27723
  """
27724
 
27725
  thrift_spec = (
27726
    (0, TType.BOOL, 'success', None, None, ), # 0
27727
  )
27728
 
27729
  def __init__(self, success=None,):
27730
    self.success = success
27731
 
27732
  def read(self, iprot):
27733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27735
      return
27736
    iprot.readStructBegin()
27737
    while True:
27738
      (fname, ftype, fid) = iprot.readFieldBegin()
27739
      if ftype == TType.STOP:
27740
        break
27741
      if fid == 0:
27742
        if ftype == TType.BOOL:
27743
          self.success = iprot.readBool();
27744
        else:
27745
          iprot.skip(ftype)
27746
      else:
27747
        iprot.skip(ftype)
27748
      iprot.readFieldEnd()
27749
    iprot.readStructEnd()
27750
 
27751
  def write(self, oprot):
27752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27754
      return
27755
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
27756
    if self.success is not None:
27757
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27758
      oprot.writeBool(self.success)
27759
      oprot.writeFieldEnd()
27760
    oprot.writeFieldStop()
27761
    oprot.writeStructEnd()
27762
 
27763
  def validate(self):
27764
    return
27765
 
27766
 
27767
  def __repr__(self):
27768
    L = ['%s=%r' % (key, value)
27769
      for key, value in self.__dict__.iteritems()]
27770
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27771
 
27772
  def __eq__(self, other):
27773
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27774
 
27775
  def __ne__(self, other):
27776
    return not (self == other)
27777
 
27778
class getFlipkartItem_args:
27779
  """
27780
  Attributes:
27781
   - item_id
27782
  """
27783
 
27784
  thrift_spec = (
27785
    None, # 0
27786
    (1, TType.I64, 'item_id', None, None, ), # 1
27787
  )
27788
 
27789
  def __init__(self, item_id=None,):
27790
    self.item_id = item_id
27791
 
27792
  def read(self, iprot):
27793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27795
      return
27796
    iprot.readStructBegin()
27797
    while True:
27798
      (fname, ftype, fid) = iprot.readFieldBegin()
27799
      if ftype == TType.STOP:
27800
        break
27801
      if fid == 1:
27802
        if ftype == TType.I64:
27803
          self.item_id = iprot.readI64();
27804
        else:
27805
          iprot.skip(ftype)
27806
      else:
27807
        iprot.skip(ftype)
27808
      iprot.readFieldEnd()
27809
    iprot.readStructEnd()
27810
 
27811
  def write(self, oprot):
27812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27814
      return
27815
    oprot.writeStructBegin('getFlipkartItem_args')
27816
    if self.item_id is not None:
27817
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27818
      oprot.writeI64(self.item_id)
27819
      oprot.writeFieldEnd()
27820
    oprot.writeFieldStop()
27821
    oprot.writeStructEnd()
27822
 
27823
  def validate(self):
27824
    return
27825
 
27826
 
27827
  def __repr__(self):
27828
    L = ['%s=%r' % (key, value)
27829
      for key, value in self.__dict__.iteritems()]
27830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27831
 
27832
  def __eq__(self, other):
27833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27834
 
27835
  def __ne__(self, other):
27836
    return not (self == other)
27837
 
27838
class getFlipkartItem_result:
27839
  """
27840
  Attributes:
27841
   - success
27842
  """
27843
 
27844
  thrift_spec = (
27845
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27846
  )
27847
 
27848
  def __init__(self, success=None,):
27849
    self.success = success
27850
 
27851
  def read(self, iprot):
27852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27854
      return
27855
    iprot.readStructBegin()
27856
    while True:
27857
      (fname, ftype, fid) = iprot.readFieldBegin()
27858
      if ftype == TType.STOP:
27859
        break
27860
      if fid == 0:
27861
        if ftype == TType.STRUCT:
27862
          self.success = FlipkartItem()
27863
          self.success.read(iprot)
27864
        else:
27865
          iprot.skip(ftype)
27866
      else:
27867
        iprot.skip(ftype)
27868
      iprot.readFieldEnd()
27869
    iprot.readStructEnd()
27870
 
27871
  def write(self, oprot):
27872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27874
      return
27875
    oprot.writeStructBegin('getFlipkartItem_result')
27876
    if self.success is not None:
27877
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27878
      self.success.write(oprot)
27879
      oprot.writeFieldEnd()
27880
    oprot.writeFieldStop()
27881
    oprot.writeStructEnd()
27882
 
27883
  def validate(self):
27884
    return
27885
 
27886
 
27887
  def __repr__(self):
27888
    L = ['%s=%r' % (key, value)
27889
      for key, value in self.__dict__.iteritems()]
27890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27891
 
27892
  def __eq__(self, other):
27893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27894
 
27895
  def __ne__(self, other):
27896
    return not (self == other)
27897
 
27898
class getFlipkartItemDetails_args:
27899
  """
27900
  Attributes:
27901
   - item_id
27902
  """
27903
 
27904
  thrift_spec = (
27905
    None, # 0
27906
    (1, TType.I64, 'item_id', None, None, ), # 1
27907
  )
27908
 
27909
  def __init__(self, item_id=None,):
27910
    self.item_id = item_id
27911
 
27912
  def read(self, iprot):
27913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27915
      return
27916
    iprot.readStructBegin()
27917
    while True:
27918
      (fname, ftype, fid) = iprot.readFieldBegin()
27919
      if ftype == TType.STOP:
27920
        break
27921
      if fid == 1:
27922
        if ftype == TType.I64:
27923
          self.item_id = iprot.readI64();
27924
        else:
27925
          iprot.skip(ftype)
27926
      else:
27927
        iprot.skip(ftype)
27928
      iprot.readFieldEnd()
27929
    iprot.readStructEnd()
27930
 
27931
  def write(self, oprot):
27932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27934
      return
27935
    oprot.writeStructBegin('getFlipkartItemDetails_args')
27936
    if self.item_id is not None:
27937
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27938
      oprot.writeI64(self.item_id)
27939
      oprot.writeFieldEnd()
27940
    oprot.writeFieldStop()
27941
    oprot.writeStructEnd()
27942
 
27943
  def validate(self):
27944
    return
27945
 
27946
 
27947
  def __repr__(self):
27948
    L = ['%s=%r' % (key, value)
27949
      for key, value in self.__dict__.iteritems()]
27950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27951
 
27952
  def __eq__(self, other):
27953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27954
 
27955
  def __ne__(self, other):
27956
    return not (self == other)
27957
 
27958
class getFlipkartItemDetails_result:
27959
  """
27960
  Attributes:
27961
   - success
27962
  """
27963
 
27964
  thrift_spec = (
27965
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
27966
  )
27967
 
27968
  def __init__(self, success=None,):
27969
    self.success = success
27970
 
27971
  def read(self, iprot):
27972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27974
      return
27975
    iprot.readStructBegin()
27976
    while True:
27977
      (fname, ftype, fid) = iprot.readFieldBegin()
27978
      if ftype == TType.STOP:
27979
        break
27980
      if fid == 0:
27981
        if ftype == TType.STRUCT:
27982
          self.success = FlipkartItemDetails()
27983
          self.success.read(iprot)
27984
        else:
27985
          iprot.skip(ftype)
27986
      else:
27987
        iprot.skip(ftype)
27988
      iprot.readFieldEnd()
27989
    iprot.readStructEnd()
27990
 
27991
  def write(self, oprot):
27992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27994
      return
27995
    oprot.writeStructBegin('getFlipkartItemDetails_result')
27996
    if self.success is not None:
27997
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27998
      self.success.write(oprot)
27999
      oprot.writeFieldEnd()
28000
    oprot.writeFieldStop()
28001
    oprot.writeStructEnd()
28002
 
28003
  def validate(self):
28004
    return
28005
 
28006
 
28007
  def __repr__(self):
28008
    L = ['%s=%r' % (key, value)
28009
      for key, value in self.__dict__.iteritems()]
28010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28011
 
28012
  def __eq__(self, other):
28013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28014
 
28015
  def __ne__(self, other):
28016
    return not (self == other)
28017
 
28018
class getFlipkartItems_args:
28019
  """
28020
  Attributes:
28021
   - offset
28022
   - limit
28023
  """
28024
 
28025
  thrift_spec = (
28026
    None, # 0
28027
    (1, TType.I64, 'offset', None, None, ), # 1
28028
    (2, TType.I64, 'limit', None, None, ), # 2
28029
  )
28030
 
28031
  def __init__(self, offset=None, limit=None,):
28032
    self.offset = offset
28033
    self.limit = limit
28034
 
28035
  def read(self, iprot):
28036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28038
      return
28039
    iprot.readStructBegin()
28040
    while True:
28041
      (fname, ftype, fid) = iprot.readFieldBegin()
28042
      if ftype == TType.STOP:
28043
        break
28044
      if fid == 1:
28045
        if ftype == TType.I64:
28046
          self.offset = iprot.readI64();
28047
        else:
28048
          iprot.skip(ftype)
28049
      elif fid == 2:
28050
        if ftype == TType.I64:
28051
          self.limit = iprot.readI64();
28052
        else:
28053
          iprot.skip(ftype)
28054
      else:
28055
        iprot.skip(ftype)
28056
      iprot.readFieldEnd()
28057
    iprot.readStructEnd()
28058
 
28059
  def write(self, oprot):
28060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28062
      return
28063
    oprot.writeStructBegin('getFlipkartItems_args')
28064
    if self.offset is not None:
28065
      oprot.writeFieldBegin('offset', TType.I64, 1)
28066
      oprot.writeI64(self.offset)
28067
      oprot.writeFieldEnd()
28068
    if self.limit is not None:
28069
      oprot.writeFieldBegin('limit', TType.I64, 2)
28070
      oprot.writeI64(self.limit)
28071
      oprot.writeFieldEnd()
28072
    oprot.writeFieldStop()
28073
    oprot.writeStructEnd()
28074
 
28075
  def validate(self):
28076
    return
28077
 
28078
 
28079
  def __repr__(self):
28080
    L = ['%s=%r' % (key, value)
28081
      for key, value in self.__dict__.iteritems()]
28082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28083
 
28084
  def __eq__(self, other):
28085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28086
 
28087
  def __ne__(self, other):
28088
    return not (self == other)
28089
 
28090
class getFlipkartItems_result:
28091
  """
28092
  Attributes:
28093
   - success
28094
  """
28095
 
28096
  thrift_spec = (
28097
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28098
  )
28099
 
28100
  def __init__(self, success=None,):
28101
    self.success = success
28102
 
28103
  def read(self, iprot):
28104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28106
      return
28107
    iprot.readStructBegin()
28108
    while True:
28109
      (fname, ftype, fid) = iprot.readFieldBegin()
28110
      if ftype == TType.STOP:
28111
        break
28112
      if fid == 0:
28113
        if ftype == TType.LIST:
28114
          self.success = []
12567 amit.gupta 28115
          (_etype597, _size594) = iprot.readListBegin()
28116
          for _i598 in xrange(_size594):
28117
            _elem599 = FlipkartItemDetails()
28118
            _elem599.read(iprot)
28119
            self.success.append(_elem599)
10097 kshitij.so 28120
          iprot.readListEnd()
28121
        else:
28122
          iprot.skip(ftype)
28123
      else:
28124
        iprot.skip(ftype)
28125
      iprot.readFieldEnd()
28126
    iprot.readStructEnd()
28127
 
28128
  def write(self, oprot):
28129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28131
      return
28132
    oprot.writeStructBegin('getFlipkartItems_result')
28133
    if self.success is not None:
28134
      oprot.writeFieldBegin('success', TType.LIST, 0)
28135
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28136
      for iter600 in self.success:
28137
        iter600.write(oprot)
10097 kshitij.so 28138
      oprot.writeListEnd()
28139
      oprot.writeFieldEnd()
28140
    oprot.writeFieldStop()
28141
    oprot.writeStructEnd()
28142
 
28143
  def validate(self):
28144
    return
28145
 
28146
 
28147
  def __repr__(self):
28148
    L = ['%s=%r' % (key, value)
28149
      for key, value in self.__dict__.iteritems()]
28150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28151
 
28152
  def __eq__(self, other):
28153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28154
 
28155
  def __ne__(self, other):
28156
    return not (self == other)
28157
 
28158
class searchFlipkartItems_args:
28159
  """
28160
  Attributes:
28161
   - searchTerm
28162
   - offset
28163
   - limit
28164
  """
28165
 
28166
  thrift_spec = (
28167
    None, # 0
28168
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28169
    (2, TType.I64, 'offset', None, None, ), # 2
28170
    (3, TType.I64, 'limit', None, None, ), # 3
28171
  )
28172
 
28173
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28174
    self.searchTerm = searchTerm
28175
    self.offset = offset
28176
    self.limit = limit
28177
 
28178
  def read(self, iprot):
28179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28181
      return
28182
    iprot.readStructBegin()
28183
    while True:
28184
      (fname, ftype, fid) = iprot.readFieldBegin()
28185
      if ftype == TType.STOP:
28186
        break
28187
      if fid == 1:
28188
        if ftype == TType.LIST:
28189
          self.searchTerm = []
12567 amit.gupta 28190
          (_etype604, _size601) = iprot.readListBegin()
28191
          for _i605 in xrange(_size601):
28192
            _elem606 = iprot.readString();
28193
            self.searchTerm.append(_elem606)
10097 kshitij.so 28194
          iprot.readListEnd()
28195
        else:
28196
          iprot.skip(ftype)
28197
      elif fid == 2:
28198
        if ftype == TType.I64:
28199
          self.offset = iprot.readI64();
28200
        else:
28201
          iprot.skip(ftype)
28202
      elif fid == 3:
28203
        if ftype == TType.I64:
28204
          self.limit = iprot.readI64();
28205
        else:
28206
          iprot.skip(ftype)
28207
      else:
28208
        iprot.skip(ftype)
28209
      iprot.readFieldEnd()
28210
    iprot.readStructEnd()
28211
 
28212
  def write(self, oprot):
28213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28215
      return
28216
    oprot.writeStructBegin('searchFlipkartItems_args')
28217
    if self.searchTerm is not None:
28218
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28219
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28220
      for iter607 in self.searchTerm:
28221
        oprot.writeString(iter607)
10097 kshitij.so 28222
      oprot.writeListEnd()
28223
      oprot.writeFieldEnd()
28224
    if self.offset is not None:
28225
      oprot.writeFieldBegin('offset', TType.I64, 2)
28226
      oprot.writeI64(self.offset)
28227
      oprot.writeFieldEnd()
28228
    if self.limit is not None:
28229
      oprot.writeFieldBegin('limit', TType.I64, 3)
28230
      oprot.writeI64(self.limit)
28231
      oprot.writeFieldEnd()
28232
    oprot.writeFieldStop()
28233
    oprot.writeStructEnd()
28234
 
28235
  def validate(self):
28236
    return
28237
 
28238
 
28239
  def __repr__(self):
28240
    L = ['%s=%r' % (key, value)
28241
      for key, value in self.__dict__.iteritems()]
28242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28243
 
28244
  def __eq__(self, other):
28245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28246
 
28247
  def __ne__(self, other):
28248
    return not (self == other)
28249
 
28250
class searchFlipkartItems_result:
28251
  """
28252
  Attributes:
28253
   - success
28254
  """
28255
 
28256
  thrift_spec = (
28257
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28258
  )
28259
 
28260
  def __init__(self, success=None,):
28261
    self.success = success
28262
 
28263
  def read(self, iprot):
28264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28266
      return
28267
    iprot.readStructBegin()
28268
    while True:
28269
      (fname, ftype, fid) = iprot.readFieldBegin()
28270
      if ftype == TType.STOP:
28271
        break
28272
      if fid == 0:
28273
        if ftype == TType.LIST:
28274
          self.success = []
12567 amit.gupta 28275
          (_etype611, _size608) = iprot.readListBegin()
28276
          for _i612 in xrange(_size608):
28277
            _elem613 = FlipkartItemDetails()
28278
            _elem613.read(iprot)
28279
            self.success.append(_elem613)
10097 kshitij.so 28280
          iprot.readListEnd()
28281
        else:
28282
          iprot.skip(ftype)
28283
      else:
28284
        iprot.skip(ftype)
28285
      iprot.readFieldEnd()
28286
    iprot.readStructEnd()
28287
 
28288
  def write(self, oprot):
28289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28291
      return
28292
    oprot.writeStructBegin('searchFlipkartItems_result')
28293
    if self.success is not None:
28294
      oprot.writeFieldBegin('success', TType.LIST, 0)
28295
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28296
      for iter614 in self.success:
28297
        iter614.write(oprot)
10097 kshitij.so 28298
      oprot.writeListEnd()
28299
      oprot.writeFieldEnd()
28300
    oprot.writeFieldStop()
28301
    oprot.writeStructEnd()
28302
 
28303
  def validate(self):
28304
    return
28305
 
28306
 
28307
  def __repr__(self):
28308
    L = ['%s=%r' % (key, value)
28309
      for key, value in self.__dict__.iteritems()]
28310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28311
 
28312
  def __eq__(self, other):
28313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28314
 
28315
  def __ne__(self, other):
28316
    return not (self == other)
28317
 
28318
class getCountForFlipkartItems_args:
28319
 
28320
  thrift_spec = (
28321
  )
28322
 
28323
  def read(self, iprot):
28324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28326
      return
28327
    iprot.readStructBegin()
28328
    while True:
28329
      (fname, ftype, fid) = iprot.readFieldBegin()
28330
      if ftype == TType.STOP:
28331
        break
28332
      else:
28333
        iprot.skip(ftype)
28334
      iprot.readFieldEnd()
28335
    iprot.readStructEnd()
28336
 
28337
  def write(self, oprot):
28338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28340
      return
28341
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28342
    oprot.writeFieldStop()
28343
    oprot.writeStructEnd()
28344
 
28345
  def validate(self):
28346
    return
28347
 
28348
 
28349
  def __repr__(self):
28350
    L = ['%s=%r' % (key, value)
28351
      for key, value in self.__dict__.iteritems()]
28352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28353
 
28354
  def __eq__(self, other):
28355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28356
 
28357
  def __ne__(self, other):
28358
    return not (self == other)
28359
 
28360
class getCountForFlipkartItems_result:
28361
  """
28362
  Attributes:
28363
   - success
28364
  """
28365
 
28366
  thrift_spec = (
28367
    (0, TType.I64, 'success', None, None, ), # 0
28368
  )
28369
 
28370
  def __init__(self, success=None,):
28371
    self.success = success
28372
 
28373
  def read(self, iprot):
28374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28376
      return
28377
    iprot.readStructBegin()
28378
    while True:
28379
      (fname, ftype, fid) = iprot.readFieldBegin()
28380
      if ftype == TType.STOP:
28381
        break
28382
      if fid == 0:
28383
        if ftype == TType.I64:
28384
          self.success = iprot.readI64();
28385
        else:
28386
          iprot.skip(ftype)
28387
      else:
28388
        iprot.skip(ftype)
28389
      iprot.readFieldEnd()
28390
    iprot.readStructEnd()
28391
 
28392
  def write(self, oprot):
28393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28395
      return
28396
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28397
    if self.success is not None:
28398
      oprot.writeFieldBegin('success', TType.I64, 0)
28399
      oprot.writeI64(self.success)
28400
      oprot.writeFieldEnd()
28401
    oprot.writeFieldStop()
28402
    oprot.writeStructEnd()
28403
 
28404
  def validate(self):
28405
    return
28406
 
28407
 
28408
  def __repr__(self):
28409
    L = ['%s=%r' % (key, value)
28410
      for key, value in self.__dict__.iteritems()]
28411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28412
 
28413
  def __eq__(self, other):
28414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28415
 
28416
  def __ne__(self, other):
28417
    return not (self == other)
28418
 
28419
class getFlipkartSearchResultCount_args:
28420
  """
28421
  Attributes:
28422
   - searchTerm
28423
  """
28424
 
28425
  thrift_spec = (
28426
    None, # 0
28427
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28428
  )
28429
 
28430
  def __init__(self, searchTerm=None,):
28431
    self.searchTerm = searchTerm
28432
 
28433
  def read(self, iprot):
28434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28436
      return
28437
    iprot.readStructBegin()
28438
    while True:
28439
      (fname, ftype, fid) = iprot.readFieldBegin()
28440
      if ftype == TType.STOP:
28441
        break
28442
      if fid == 1:
28443
        if ftype == TType.LIST:
28444
          self.searchTerm = []
12567 amit.gupta 28445
          (_etype618, _size615) = iprot.readListBegin()
28446
          for _i619 in xrange(_size615):
28447
            _elem620 = iprot.readString();
28448
            self.searchTerm.append(_elem620)
10097 kshitij.so 28449
          iprot.readListEnd()
28450
        else:
28451
          iprot.skip(ftype)
28452
      else:
28453
        iprot.skip(ftype)
28454
      iprot.readFieldEnd()
28455
    iprot.readStructEnd()
28456
 
28457
  def write(self, oprot):
28458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28460
      return
28461
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28462
    if self.searchTerm is not None:
28463
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28464
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28465
      for iter621 in self.searchTerm:
28466
        oprot.writeString(iter621)
10097 kshitij.so 28467
      oprot.writeListEnd()
28468
      oprot.writeFieldEnd()
28469
    oprot.writeFieldStop()
28470
    oprot.writeStructEnd()
28471
 
28472
  def validate(self):
28473
    return
28474
 
28475
 
28476
  def __repr__(self):
28477
    L = ['%s=%r' % (key, value)
28478
      for key, value in self.__dict__.iteritems()]
28479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28480
 
28481
  def __eq__(self, other):
28482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28483
 
28484
  def __ne__(self, other):
28485
    return not (self == other)
28486
 
28487
class getFlipkartSearchResultCount_result:
28488
  """
28489
  Attributes:
28490
   - success
28491
  """
28492
 
28493
  thrift_spec = (
28494
    (0, TType.I64, 'success', None, None, ), # 0
28495
  )
28496
 
28497
  def __init__(self, success=None,):
28498
    self.success = success
28499
 
28500
  def read(self, iprot):
28501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28503
      return
28504
    iprot.readStructBegin()
28505
    while True:
28506
      (fname, ftype, fid) = iprot.readFieldBegin()
28507
      if ftype == TType.STOP:
28508
        break
28509
      if fid == 0:
28510
        if ftype == TType.I64:
28511
          self.success = iprot.readI64();
28512
        else:
28513
          iprot.skip(ftype)
28514
      else:
28515
        iprot.skip(ftype)
28516
      iprot.readFieldEnd()
28517
    iprot.readStructEnd()
28518
 
28519
  def write(self, oprot):
28520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28522
      return
28523
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28524
    if self.success is not None:
28525
      oprot.writeFieldBegin('success', TType.I64, 0)
28526
      oprot.writeI64(self.success)
28527
      oprot.writeFieldEnd()
28528
    oprot.writeFieldStop()
28529
    oprot.writeStructEnd()
28530
 
28531
  def validate(self):
28532
    return
28533
 
28534
 
28535
  def __repr__(self):
28536
    L = ['%s=%r' % (key, value)
28537
      for key, value in self.__dict__.iteritems()]
28538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28539
 
28540
  def __eq__(self, other):
28541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28542
 
28543
  def __ne__(self, other):
28544
    return not (self == other)
28545
 
28546
class getAllFkItems_args:
28547
 
28548
  thrift_spec = (
28549
  )
28550
 
28551
  def read(self, iprot):
28552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28554
      return
28555
    iprot.readStructBegin()
28556
    while True:
28557
      (fname, ftype, fid) = iprot.readFieldBegin()
28558
      if ftype == TType.STOP:
28559
        break
28560
      else:
28561
        iprot.skip(ftype)
28562
      iprot.readFieldEnd()
28563
    iprot.readStructEnd()
28564
 
28565
  def write(self, oprot):
28566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28568
      return
28569
    oprot.writeStructBegin('getAllFkItems_args')
28570
    oprot.writeFieldStop()
28571
    oprot.writeStructEnd()
28572
 
28573
  def validate(self):
28574
    return
28575
 
28576
 
28577
  def __repr__(self):
28578
    L = ['%s=%r' % (key, value)
28579
      for key, value in self.__dict__.iteritems()]
28580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28581
 
28582
  def __eq__(self, other):
28583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28584
 
28585
  def __ne__(self, other):
28586
    return not (self == other)
28587
 
28588
class getAllFkItems_result:
28589
  """
28590
  Attributes:
28591
   - success
28592
  """
28593
 
28594
  thrift_spec = (
28595
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28596
  )
28597
 
28598
  def __init__(self, success=None,):
28599
    self.success = success
28600
 
28601
  def read(self, iprot):
28602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28604
      return
28605
    iprot.readStructBegin()
28606
    while True:
28607
      (fname, ftype, fid) = iprot.readFieldBegin()
28608
      if ftype == TType.STOP:
28609
        break
28610
      if fid == 0:
28611
        if ftype == TType.LIST:
28612
          self.success = []
12567 amit.gupta 28613
          (_etype625, _size622) = iprot.readListBegin()
28614
          for _i626 in xrange(_size622):
28615
            _elem627 = FlipkartItemDetails()
28616
            _elem627.read(iprot)
28617
            self.success.append(_elem627)
10097 kshitij.so 28618
          iprot.readListEnd()
28619
        else:
28620
          iprot.skip(ftype)
28621
      else:
28622
        iprot.skip(ftype)
28623
      iprot.readFieldEnd()
28624
    iprot.readStructEnd()
28625
 
28626
  def write(self, oprot):
28627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28629
      return
28630
    oprot.writeStructBegin('getAllFkItems_result')
28631
    if self.success is not None:
28632
      oprot.writeFieldBegin('success', TType.LIST, 0)
28633
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28634
      for iter628 in self.success:
28635
        iter628.write(oprot)
10097 kshitij.so 28636
      oprot.writeListEnd()
28637
      oprot.writeFieldEnd()
28638
    oprot.writeFieldStop()
28639
    oprot.writeStructEnd()
28640
 
28641
  def validate(self):
28642
    return
28643
 
28644
 
28645
  def __repr__(self):
28646
    L = ['%s=%r' % (key, value)
28647
      for key, value in self.__dict__.iteritems()]
28648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28649
 
28650
  def __eq__(self, other):
28651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28652
 
28653
  def __ne__(self, other):
28654
    return not (self == other)
10140 vikram.rag 28655
 
28656
class getFlipkartItemBySkyAtFlipkart_args:
28657
  """
28658
  Attributes:
28659
   - sku
28660
  """
28661
 
11531 vikram.rag 28662
  thrift_spec = None
10140 vikram.rag 28663
  def __init__(self, sku=None,):
28664
    self.sku = sku
28665
 
28666
  def read(self, iprot):
28667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28669
      return
28670
    iprot.readStructBegin()
28671
    while True:
28672
      (fname, ftype, fid) = iprot.readFieldBegin()
28673
      if ftype == TType.STOP:
28674
        break
11531 vikram.rag 28675
      if fid == -1:
10140 vikram.rag 28676
        if ftype == TType.STRING:
28677
          self.sku = iprot.readString();
28678
        else:
28679
          iprot.skip(ftype)
28680
      else:
28681
        iprot.skip(ftype)
28682
      iprot.readFieldEnd()
28683
    iprot.readStructEnd()
28684
 
28685
  def write(self, oprot):
28686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28688
      return
28689
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
28690
    if self.sku is not None:
11531 vikram.rag 28691
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 28692
      oprot.writeString(self.sku)
28693
      oprot.writeFieldEnd()
28694
    oprot.writeFieldStop()
28695
    oprot.writeStructEnd()
28696
 
28697
  def validate(self):
28698
    return
28699
 
28700
 
28701
  def __repr__(self):
28702
    L = ['%s=%r' % (key, value)
28703
      for key, value in self.__dict__.iteritems()]
28704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28705
 
28706
  def __eq__(self, other):
28707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28708
 
28709
  def __ne__(self, other):
28710
    return not (self == other)
28711
 
28712
class getFlipkartItemBySkyAtFlipkart_result:
28713
  """
28714
  Attributes:
28715
   - success
28716
  """
28717
 
28718
  thrift_spec = (
28719
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28720
  )
28721
 
28722
  def __init__(self, success=None,):
28723
    self.success = success
28724
 
28725
  def read(self, iprot):
28726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28728
      return
28729
    iprot.readStructBegin()
28730
    while True:
28731
      (fname, ftype, fid) = iprot.readFieldBegin()
28732
      if ftype == TType.STOP:
28733
        break
28734
      if fid == 0:
28735
        if ftype == TType.STRUCT:
28736
          self.success = FlipkartItem()
28737
          self.success.read(iprot)
28738
        else:
28739
          iprot.skip(ftype)
28740
      else:
28741
        iprot.skip(ftype)
28742
      iprot.readFieldEnd()
28743
    iprot.readStructEnd()
28744
 
28745
  def write(self, oprot):
28746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28748
      return
28749
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
28750
    if self.success is not None:
28751
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28752
      self.success.write(oprot)
28753
      oprot.writeFieldEnd()
28754
    oprot.writeFieldStop()
28755
    oprot.writeStructEnd()
28756
 
28757
  def validate(self):
28758
    return
28759
 
28760
 
28761
  def __repr__(self):
28762
    L = ['%s=%r' % (key, value)
28763
      for key, value in self.__dict__.iteritems()]
28764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28765
 
28766
  def __eq__(self, other):
28767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28768
 
28769
  def __ne__(self, other):
28770
    return not (self == other)
10909 vikram.rag 28771
 
11015 kshitij.so 28772
class getMarketplaceHistory_args:
28773
  """
28774
  Attributes:
28775
   - source
28776
   - offset
28777
   - itemId
28778
  """
10909 vikram.rag 28779
 
28780
  thrift_spec = (
11015 kshitij.so 28781
    None, # 0
28782
    (1, TType.I64, 'source', None, None, ), # 1
28783
    (2, TType.I64, 'offset', None, None, ), # 2
28784
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 28785
  )
28786
 
11015 kshitij.so 28787
  def __init__(self, source=None, offset=None, itemId=None,):
28788
    self.source = source
28789
    self.offset = offset
28790
    self.itemId = itemId
28791
 
10909 vikram.rag 28792
  def read(self, iprot):
28793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28795
      return
28796
    iprot.readStructBegin()
28797
    while True:
28798
      (fname, ftype, fid) = iprot.readFieldBegin()
28799
      if ftype == TType.STOP:
28800
        break
11015 kshitij.so 28801
      if fid == 1:
28802
        if ftype == TType.I64:
28803
          self.source = iprot.readI64();
28804
        else:
28805
          iprot.skip(ftype)
28806
      elif fid == 2:
28807
        if ftype == TType.I64:
28808
          self.offset = iprot.readI64();
28809
        else:
28810
          iprot.skip(ftype)
28811
      elif fid == 3:
28812
        if ftype == TType.I64:
28813
          self.itemId = iprot.readI64();
28814
        else:
28815
          iprot.skip(ftype)
10909 vikram.rag 28816
      else:
28817
        iprot.skip(ftype)
28818
      iprot.readFieldEnd()
28819
    iprot.readStructEnd()
28820
 
28821
  def write(self, oprot):
28822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28824
      return
11015 kshitij.so 28825
    oprot.writeStructBegin('getMarketplaceHistory_args')
28826
    if self.source is not None:
28827
      oprot.writeFieldBegin('source', TType.I64, 1)
28828
      oprot.writeI64(self.source)
28829
      oprot.writeFieldEnd()
28830
    if self.offset is not None:
28831
      oprot.writeFieldBegin('offset', TType.I64, 2)
28832
      oprot.writeI64(self.offset)
28833
      oprot.writeFieldEnd()
28834
    if self.itemId is not None:
28835
      oprot.writeFieldBegin('itemId', TType.I64, 3)
28836
      oprot.writeI64(self.itemId)
28837
      oprot.writeFieldEnd()
10909 vikram.rag 28838
    oprot.writeFieldStop()
28839
    oprot.writeStructEnd()
28840
 
28841
  def validate(self):
28842
    return
28843
 
28844
 
28845
  def __repr__(self):
28846
    L = ['%s=%r' % (key, value)
28847
      for key, value in self.__dict__.iteritems()]
28848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28849
 
28850
  def __eq__(self, other):
28851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28852
 
28853
  def __ne__(self, other):
28854
    return not (self == other)
28855
 
11015 kshitij.so 28856
class getMarketplaceHistory_result:
10909 vikram.rag 28857
  """
28858
  Attributes:
28859
   - success
28860
  """
28861
 
28862
  thrift_spec = (
11015 kshitij.so 28863
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 28864
  )
28865
 
28866
  def __init__(self, success=None,):
28867
    self.success = success
28868
 
28869
  def read(self, iprot):
28870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28872
      return
28873
    iprot.readStructBegin()
28874
    while True:
28875
      (fname, ftype, fid) = iprot.readFieldBegin()
28876
      if ftype == TType.STOP:
28877
        break
28878
      if fid == 0:
28879
        if ftype == TType.LIST:
28880
          self.success = []
12567 amit.gupta 28881
          (_etype632, _size629) = iprot.readListBegin()
28882
          for _i633 in xrange(_size629):
28883
            _elem634 = MarketplaceHistory()
28884
            _elem634.read(iprot)
28885
            self.success.append(_elem634)
10909 vikram.rag 28886
          iprot.readListEnd()
28887
        else:
28888
          iprot.skip(ftype)
28889
      else:
28890
        iprot.skip(ftype)
28891
      iprot.readFieldEnd()
28892
    iprot.readStructEnd()
28893
 
28894
  def write(self, oprot):
28895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28897
      return
11015 kshitij.so 28898
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 28899
    if self.success is not None:
28900
      oprot.writeFieldBegin('success', TType.LIST, 0)
28901
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28902
      for iter635 in self.success:
28903
        iter635.write(oprot)
10909 vikram.rag 28904
      oprot.writeListEnd()
28905
      oprot.writeFieldEnd()
28906
    oprot.writeFieldStop()
28907
    oprot.writeStructEnd()
28908
 
28909
  def validate(self):
28910
    return
28911
 
28912
 
28913
  def __repr__(self):
28914
    L = ['%s=%r' % (key, value)
28915
      for key, value in self.__dict__.iteritems()]
28916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28917
 
28918
  def __eq__(self, other):
28919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28920
 
28921
  def __ne__(self, other):
28922
    return not (self == other)
10924 vikram.rag 28923
 
11015 kshitij.so 28924
class getAllFbbListedItems_args:
10924 vikram.rag 28925
 
28926
  thrift_spec = (
28927
  )
28928
 
28929
  def read(self, iprot):
28930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28932
      return
28933
    iprot.readStructBegin()
28934
    while True:
28935
      (fname, ftype, fid) = iprot.readFieldBegin()
28936
      if ftype == TType.STOP:
28937
        break
28938
      else:
28939
        iprot.skip(ftype)
28940
      iprot.readFieldEnd()
28941
    iprot.readStructEnd()
28942
 
28943
  def write(self, oprot):
28944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28946
      return
11015 kshitij.so 28947
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 28948
    oprot.writeFieldStop()
28949
    oprot.writeStructEnd()
28950
 
28951
  def validate(self):
28952
    return
28953
 
28954
 
28955
  def __repr__(self):
28956
    L = ['%s=%r' % (key, value)
28957
      for key, value in self.__dict__.iteritems()]
28958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28959
 
28960
  def __eq__(self, other):
28961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28962
 
28963
  def __ne__(self, other):
28964
    return not (self == other)
28965
 
11015 kshitij.so 28966
class getAllFbbListedItems_result:
10924 vikram.rag 28967
  """
28968
  Attributes:
28969
   - success
28970
  """
28971
 
28972
  thrift_spec = (
28973
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
28974
  )
28975
 
28976
  def __init__(self, success=None,):
28977
    self.success = success
28978
 
28979
  def read(self, iprot):
28980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28982
      return
28983
    iprot.readStructBegin()
28984
    while True:
28985
      (fname, ftype, fid) = iprot.readFieldBegin()
28986
      if ftype == TType.STOP:
28987
        break
28988
      if fid == 0:
28989
        if ftype == TType.LIST:
28990
          self.success = []
12567 amit.gupta 28991
          (_etype639, _size636) = iprot.readListBegin()
28992
          for _i640 in xrange(_size636):
28993
            _elem641 = Amazonlisted()
28994
            _elem641.read(iprot)
28995
            self.success.append(_elem641)
10924 vikram.rag 28996
          iprot.readListEnd()
28997
        else:
28998
          iprot.skip(ftype)
28999
      else:
29000
        iprot.skip(ftype)
29001
      iprot.readFieldEnd()
29002
    iprot.readStructEnd()
29003
 
29004
  def write(self, oprot):
29005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29007
      return
11015 kshitij.so 29008
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 29009
    if self.success is not None:
29010
      oprot.writeFieldBegin('success', TType.LIST, 0)
29011
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29012
      for iter642 in self.success:
29013
        iter642.write(oprot)
10924 vikram.rag 29014
      oprot.writeListEnd()
29015
      oprot.writeFieldEnd()
29016
    oprot.writeFieldStop()
29017
    oprot.writeStructEnd()
29018
 
29019
  def validate(self):
29020
    return
29021
 
29022
 
29023
  def __repr__(self):
29024
    L = ['%s=%r' % (key, value)
29025
      for key, value in self.__dict__.iteritems()]
29026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29027
 
29028
  def __eq__(self, other):
29029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29030
 
29031
  def __ne__(self, other):
29032
    return not (self == other)
11015 kshitij.so 29033
 
29034
class getAllFbbPricingItems_args:
29035
 
29036
  thrift_spec = (
29037
  )
29038
 
29039
  def read(self, iprot):
29040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29042
      return
29043
    iprot.readStructBegin()
29044
    while True:
29045
      (fname, ftype, fid) = iprot.readFieldBegin()
29046
      if ftype == TType.STOP:
29047
        break
29048
      else:
29049
        iprot.skip(ftype)
29050
      iprot.readFieldEnd()
29051
    iprot.readStructEnd()
29052
 
29053
  def write(self, oprot):
29054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29056
      return
29057
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29058
    oprot.writeFieldStop()
29059
    oprot.writeStructEnd()
29060
 
29061
  def validate(self):
29062
    return
29063
 
29064
 
29065
  def __repr__(self):
29066
    L = ['%s=%r' % (key, value)
29067
      for key, value in self.__dict__.iteritems()]
29068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29069
 
29070
  def __eq__(self, other):
29071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29072
 
29073
  def __ne__(self, other):
29074
    return not (self == other)
29075
 
29076
class getAllFbbPricingItems_result:
29077
  """
29078
  Attributes:
29079
   - success
29080
  """
29081
 
29082
  thrift_spec = (
29083
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29084
  )
29085
 
29086
  def __init__(self, success=None,):
29087
    self.success = success
29088
 
29089
  def read(self, iprot):
29090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29092
      return
29093
    iprot.readStructBegin()
29094
    while True:
29095
      (fname, ftype, fid) = iprot.readFieldBegin()
29096
      if ftype == TType.STOP:
29097
        break
29098
      if fid == 0:
29099
        if ftype == TType.LIST:
29100
          self.success = []
12567 amit.gupta 29101
          (_etype646, _size643) = iprot.readListBegin()
29102
          for _i647 in xrange(_size643):
29103
            _elem648 = Amazonlisted()
29104
            _elem648.read(iprot)
29105
            self.success.append(_elem648)
11015 kshitij.so 29106
          iprot.readListEnd()
29107
        else:
29108
          iprot.skip(ftype)
29109
      else:
29110
        iprot.skip(ftype)
29111
      iprot.readFieldEnd()
29112
    iprot.readStructEnd()
29113
 
29114
  def write(self, oprot):
29115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29117
      return
29118
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29119
    if self.success is not None:
29120
      oprot.writeFieldBegin('success', TType.LIST, 0)
29121
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29122
      for iter649 in self.success:
29123
        iter649.write(oprot)
11015 kshitij.so 29124
      oprot.writeListEnd()
29125
      oprot.writeFieldEnd()
29126
    oprot.writeFieldStop()
29127
    oprot.writeStructEnd()
29128
 
29129
  def validate(self):
29130
    return
29131
 
29132
 
29133
  def __repr__(self):
29134
    L = ['%s=%r' % (key, value)
29135
      for key, value in self.__dict__.iteritems()]
29136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29137
 
29138
  def __eq__(self, other):
29139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29140
 
29141
  def __ne__(self, other):
29142
    return not (self == other)
29143
 
29144
class getCountForMarketplaceHistory_args:
29145
  """
29146
  Attributes:
29147
   - source
29148
   - itemId
29149
  """
29150
 
29151
  thrift_spec = (
29152
    None, # 0
29153
    (1, TType.I64, 'source', None, None, ), # 1
29154
    (2, TType.I64, 'itemId', None, None, ), # 2
29155
  )
29156
 
29157
  def __init__(self, source=None, itemId=None,):
29158
    self.source = source
29159
    self.itemId = itemId
29160
 
29161
  def read(self, iprot):
29162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29164
      return
29165
    iprot.readStructBegin()
29166
    while True:
29167
      (fname, ftype, fid) = iprot.readFieldBegin()
29168
      if ftype == TType.STOP:
29169
        break
29170
      if fid == 1:
29171
        if ftype == TType.I64:
29172
          self.source = iprot.readI64();
29173
        else:
29174
          iprot.skip(ftype)
29175
      elif fid == 2:
29176
        if ftype == TType.I64:
29177
          self.itemId = iprot.readI64();
29178
        else:
29179
          iprot.skip(ftype)
29180
      else:
29181
        iprot.skip(ftype)
29182
      iprot.readFieldEnd()
29183
    iprot.readStructEnd()
29184
 
29185
  def write(self, oprot):
29186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29188
      return
29189
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29190
    if self.source is not None:
29191
      oprot.writeFieldBegin('source', TType.I64, 1)
29192
      oprot.writeI64(self.source)
29193
      oprot.writeFieldEnd()
29194
    if self.itemId is not None:
29195
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29196
      oprot.writeI64(self.itemId)
29197
      oprot.writeFieldEnd()
29198
    oprot.writeFieldStop()
29199
    oprot.writeStructEnd()
29200
 
29201
  def validate(self):
29202
    return
29203
 
29204
 
29205
  def __repr__(self):
29206
    L = ['%s=%r' % (key, value)
29207
      for key, value in self.__dict__.iteritems()]
29208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29209
 
29210
  def __eq__(self, other):
29211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29212
 
29213
  def __ne__(self, other):
29214
    return not (self == other)
29215
 
29216
class getCountForMarketplaceHistory_result:
29217
  """
29218
  Attributes:
29219
   - success
29220
  """
29221
 
29222
  thrift_spec = (
29223
    (0, TType.I64, 'success', None, None, ), # 0
29224
  )
29225
 
29226
  def __init__(self, success=None,):
29227
    self.success = success
29228
 
29229
  def read(self, iprot):
29230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29232
      return
29233
    iprot.readStructBegin()
29234
    while True:
29235
      (fname, ftype, fid) = iprot.readFieldBegin()
29236
      if ftype == TType.STOP:
29237
        break
29238
      if fid == 0:
29239
        if ftype == TType.I64:
29240
          self.success = iprot.readI64();
29241
        else:
29242
          iprot.skip(ftype)
29243
      else:
29244
        iprot.skip(ftype)
29245
      iprot.readFieldEnd()
29246
    iprot.readStructEnd()
29247
 
29248
  def write(self, oprot):
29249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29251
      return
29252
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29253
    if self.success is not None:
29254
      oprot.writeFieldBegin('success', TType.I64, 0)
29255
      oprot.writeI64(self.success)
29256
      oprot.writeFieldEnd()
29257
    oprot.writeFieldStop()
29258
    oprot.writeStructEnd()
29259
 
29260
  def validate(self):
29261
    return
29262
 
29263
 
29264
  def __repr__(self):
29265
    L = ['%s=%r' % (key, value)
29266
      for key, value in self.__dict__.iteritems()]
29267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29268
 
29269
  def __eq__(self, other):
29270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29271
 
29272
  def __ne__(self, other):
29273
    return not (self == other)
29274
 
29275
class getMarketplaceHistoryByDate_args:
29276
  """
29277
  Attributes:
29278
   - source
29279
   - startDate
29280
   - endDate
29281
   - offset
29282
   - limit
29283
   - itemId
29284
  """
29285
 
29286
  thrift_spec = (
29287
    None, # 0
29288
    (1, TType.I64, 'source', None, None, ), # 1
29289
    (2, TType.I64, 'startDate', None, None, ), # 2
29290
    (3, TType.I64, 'endDate', None, None, ), # 3
29291
    (4, TType.I64, 'offset', None, None, ), # 4
29292
    (5, TType.I64, 'limit', None, None, ), # 5
29293
    (6, TType.I64, 'itemId', None, None, ), # 6
29294
  )
29295
 
29296
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29297
    self.source = source
29298
    self.startDate = startDate
29299
    self.endDate = endDate
29300
    self.offset = offset
29301
    self.limit = limit
29302
    self.itemId = itemId
29303
 
29304
  def read(self, iprot):
29305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29307
      return
29308
    iprot.readStructBegin()
29309
    while True:
29310
      (fname, ftype, fid) = iprot.readFieldBegin()
29311
      if ftype == TType.STOP:
29312
        break
29313
      if fid == 1:
29314
        if ftype == TType.I64:
29315
          self.source = iprot.readI64();
29316
        else:
29317
          iprot.skip(ftype)
29318
      elif fid == 2:
29319
        if ftype == TType.I64:
29320
          self.startDate = iprot.readI64();
29321
        else:
29322
          iprot.skip(ftype)
29323
      elif fid == 3:
29324
        if ftype == TType.I64:
29325
          self.endDate = iprot.readI64();
29326
        else:
29327
          iprot.skip(ftype)
29328
      elif fid == 4:
29329
        if ftype == TType.I64:
29330
          self.offset = iprot.readI64();
29331
        else:
29332
          iprot.skip(ftype)
29333
      elif fid == 5:
29334
        if ftype == TType.I64:
29335
          self.limit = iprot.readI64();
29336
        else:
29337
          iprot.skip(ftype)
29338
      elif fid == 6:
29339
        if ftype == TType.I64:
29340
          self.itemId = iprot.readI64();
29341
        else:
29342
          iprot.skip(ftype)
29343
      else:
29344
        iprot.skip(ftype)
29345
      iprot.readFieldEnd()
29346
    iprot.readStructEnd()
29347
 
29348
  def write(self, oprot):
29349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29351
      return
29352
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
29353
    if self.source is not None:
29354
      oprot.writeFieldBegin('source', TType.I64, 1)
29355
      oprot.writeI64(self.source)
29356
      oprot.writeFieldEnd()
29357
    if self.startDate is not None:
29358
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29359
      oprot.writeI64(self.startDate)
29360
      oprot.writeFieldEnd()
29361
    if self.endDate is not None:
29362
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29363
      oprot.writeI64(self.endDate)
29364
      oprot.writeFieldEnd()
29365
    if self.offset is not None:
29366
      oprot.writeFieldBegin('offset', TType.I64, 4)
29367
      oprot.writeI64(self.offset)
29368
      oprot.writeFieldEnd()
29369
    if self.limit is not None:
29370
      oprot.writeFieldBegin('limit', TType.I64, 5)
29371
      oprot.writeI64(self.limit)
29372
      oprot.writeFieldEnd()
29373
    if self.itemId is not None:
29374
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29375
      oprot.writeI64(self.itemId)
29376
      oprot.writeFieldEnd()
29377
    oprot.writeFieldStop()
29378
    oprot.writeStructEnd()
29379
 
29380
  def validate(self):
29381
    return
29382
 
29383
 
29384
  def __repr__(self):
29385
    L = ['%s=%r' % (key, value)
29386
      for key, value in self.__dict__.iteritems()]
29387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29388
 
29389
  def __eq__(self, other):
29390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29391
 
29392
  def __ne__(self, other):
29393
    return not (self == other)
29394
 
29395
class getMarketplaceHistoryByDate_result:
29396
  """
29397
  Attributes:
29398
   - success
29399
  """
29400
 
29401
  thrift_spec = (
29402
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29403
  )
29404
 
29405
  def __init__(self, success=None,):
29406
    self.success = success
29407
 
29408
  def read(self, iprot):
29409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29411
      return
29412
    iprot.readStructBegin()
29413
    while True:
29414
      (fname, ftype, fid) = iprot.readFieldBegin()
29415
      if ftype == TType.STOP:
29416
        break
29417
      if fid == 0:
29418
        if ftype == TType.LIST:
29419
          self.success = []
12567 amit.gupta 29420
          (_etype653, _size650) = iprot.readListBegin()
29421
          for _i654 in xrange(_size650):
29422
            _elem655 = MarketplaceHistory()
29423
            _elem655.read(iprot)
29424
            self.success.append(_elem655)
11015 kshitij.so 29425
          iprot.readListEnd()
29426
        else:
29427
          iprot.skip(ftype)
29428
      else:
29429
        iprot.skip(ftype)
29430
      iprot.readFieldEnd()
29431
    iprot.readStructEnd()
29432
 
29433
  def write(self, oprot):
29434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29436
      return
29437
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29438
    if self.success is not None:
29439
      oprot.writeFieldBegin('success', TType.LIST, 0)
29440
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29441
      for iter656 in self.success:
29442
        iter656.write(oprot)
11015 kshitij.so 29443
      oprot.writeListEnd()
29444
      oprot.writeFieldEnd()
29445
    oprot.writeFieldStop()
29446
    oprot.writeStructEnd()
29447
 
29448
  def validate(self):
29449
    return
29450
 
29451
 
29452
  def __repr__(self):
29453
    L = ['%s=%r' % (key, value)
29454
      for key, value in self.__dict__.iteritems()]
29455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29456
 
29457
  def __eq__(self, other):
29458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29459
 
29460
  def __ne__(self, other):
29461
    return not (self == other)
11531 vikram.rag 29462
 
29463
class getPrivateDealDetails_args:
29464
  """
29465
  Attributes:
29466
   - item_id
29467
  """
29468
 
29469
  thrift_spec = (
29470
    None, # 0
29471
    (1, TType.I64, 'item_id', None, None, ), # 1
29472
  )
29473
 
29474
  def __init__(self, item_id=None,):
29475
    self.item_id = item_id
29476
 
29477
  def read(self, iprot):
29478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29480
      return
29481
    iprot.readStructBegin()
29482
    while True:
29483
      (fname, ftype, fid) = iprot.readFieldBegin()
29484
      if ftype == TType.STOP:
29485
        break
29486
      if fid == 1:
29487
        if ftype == TType.I64:
29488
          self.item_id = iprot.readI64();
29489
        else:
29490
          iprot.skip(ftype)
29491
      else:
29492
        iprot.skip(ftype)
29493
      iprot.readFieldEnd()
29494
    iprot.readStructEnd()
29495
 
29496
  def write(self, oprot):
29497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29499
      return
29500
    oprot.writeStructBegin('getPrivateDealDetails_args')
29501
    if self.item_id is not None:
29502
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29503
      oprot.writeI64(self.item_id)
29504
      oprot.writeFieldEnd()
29505
    oprot.writeFieldStop()
29506
    oprot.writeStructEnd()
29507
 
29508
  def validate(self):
29509
    return
29510
 
29511
 
29512
  def __repr__(self):
29513
    L = ['%s=%r' % (key, value)
29514
      for key, value in self.__dict__.iteritems()]
29515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29516
 
29517
  def __eq__(self, other):
29518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29519
 
29520
  def __ne__(self, other):
29521
    return not (self == other)
29522
 
29523
class getPrivateDealDetails_result:
29524
  """
29525
  Attributes:
29526
   - success
29527
  """
29528
 
29529
  thrift_spec = (
29530
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29531
  )
29532
 
29533
  def __init__(self, success=None,):
29534
    self.success = success
29535
 
29536
  def read(self, iprot):
29537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29539
      return
29540
    iprot.readStructBegin()
29541
    while True:
29542
      (fname, ftype, fid) = iprot.readFieldBegin()
29543
      if ftype == TType.STOP:
29544
        break
29545
      if fid == 0:
29546
        if ftype == TType.STRUCT:
29547
          self.success = PrivateDeal()
29548
          self.success.read(iprot)
29549
        else:
29550
          iprot.skip(ftype)
29551
      else:
29552
        iprot.skip(ftype)
29553
      iprot.readFieldEnd()
29554
    iprot.readStructEnd()
29555
 
29556
  def write(self, oprot):
29557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29559
      return
29560
    oprot.writeStructBegin('getPrivateDealDetails_result')
29561
    if self.success is not None:
29562
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29563
      self.success.write(oprot)
29564
      oprot.writeFieldEnd()
29565
    oprot.writeFieldStop()
29566
    oprot.writeStructEnd()
29567
 
29568
  def validate(self):
29569
    return
29570
 
29571
 
29572
  def __repr__(self):
29573
    L = ['%s=%r' % (key, value)
29574
      for key, value in self.__dict__.iteritems()]
29575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29576
 
29577
  def __eq__(self, other):
29578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29579
 
29580
  def __ne__(self, other):
29581
    return not (self == other)
29582
 
29583
class getPrivateDealItems_args:
29584
  """
29585
  Attributes:
29586
   - offset
29587
   - limit
29588
  """
29589
 
29590
  thrift_spec = (
29591
    None, # 0
29592
    (1, TType.I64, 'offset', None, None, ), # 1
29593
    (2, TType.I64, 'limit', None, None, ), # 2
29594
  )
29595
 
29596
  def __init__(self, offset=None, limit=None,):
29597
    self.offset = offset
29598
    self.limit = limit
29599
 
29600
  def read(self, iprot):
29601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29603
      return
29604
    iprot.readStructBegin()
29605
    while True:
29606
      (fname, ftype, fid) = iprot.readFieldBegin()
29607
      if ftype == TType.STOP:
29608
        break
29609
      if fid == 1:
29610
        if ftype == TType.I64:
29611
          self.offset = iprot.readI64();
29612
        else:
29613
          iprot.skip(ftype)
29614
      elif fid == 2:
29615
        if ftype == TType.I64:
29616
          self.limit = iprot.readI64();
29617
        else:
29618
          iprot.skip(ftype)
29619
      else:
29620
        iprot.skip(ftype)
29621
      iprot.readFieldEnd()
29622
    iprot.readStructEnd()
29623
 
29624
  def write(self, oprot):
29625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29627
      return
29628
    oprot.writeStructBegin('getPrivateDealItems_args')
29629
    if self.offset is not None:
29630
      oprot.writeFieldBegin('offset', TType.I64, 1)
29631
      oprot.writeI64(self.offset)
29632
      oprot.writeFieldEnd()
29633
    if self.limit is not None:
29634
      oprot.writeFieldBegin('limit', TType.I64, 2)
29635
      oprot.writeI64(self.limit)
29636
      oprot.writeFieldEnd()
29637
    oprot.writeFieldStop()
29638
    oprot.writeStructEnd()
29639
 
29640
  def validate(self):
29641
    return
29642
 
29643
 
29644
  def __repr__(self):
29645
    L = ['%s=%r' % (key, value)
29646
      for key, value in self.__dict__.iteritems()]
29647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29648
 
29649
  def __eq__(self, other):
29650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29651
 
29652
  def __ne__(self, other):
29653
    return not (self == other)
29654
 
29655
class getPrivateDealItems_result:
29656
  """
29657
  Attributes:
29658
   - success
29659
  """
29660
 
29661
  thrift_spec = (
29662
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
29663
  )
29664
 
29665
  def __init__(self, success=None,):
29666
    self.success = success
29667
 
29668
  def read(self, iprot):
29669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29671
      return
29672
    iprot.readStructBegin()
29673
    while True:
29674
      (fname, ftype, fid) = iprot.readFieldBegin()
29675
      if ftype == TType.STOP:
29676
        break
29677
      if fid == 0:
29678
        if ftype == TType.LIST:
29679
          self.success = []
12567 amit.gupta 29680
          (_etype660, _size657) = iprot.readListBegin()
29681
          for _i661 in xrange(_size657):
29682
            _elem662 = Item()
29683
            _elem662.read(iprot)
29684
            self.success.append(_elem662)
11531 vikram.rag 29685
          iprot.readListEnd()
29686
        else:
29687
          iprot.skip(ftype)
29688
      else:
29689
        iprot.skip(ftype)
29690
      iprot.readFieldEnd()
29691
    iprot.readStructEnd()
29692
 
29693
  def write(self, oprot):
29694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29696
      return
29697
    oprot.writeStructBegin('getPrivateDealItems_result')
29698
    if self.success is not None:
29699
      oprot.writeFieldBegin('success', TType.LIST, 0)
29700
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29701
      for iter663 in self.success:
29702
        iter663.write(oprot)
11531 vikram.rag 29703
      oprot.writeListEnd()
29704
      oprot.writeFieldEnd()
29705
    oprot.writeFieldStop()
29706
    oprot.writeStructEnd()
29707
 
29708
  def validate(self):
29709
    return
29710
 
29711
 
29712
  def __repr__(self):
29713
    L = ['%s=%r' % (key, value)
29714
      for key, value in self.__dict__.iteritems()]
29715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29716
 
29717
  def __eq__(self, other):
29718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29719
 
29720
  def __ne__(self, other):
29721
    return not (self == other)
29722
 
11592 amit.gupta 29723
class getAllActivePrivateDeals_args:
11653 amit.gupta 29724
  """
29725
  Attributes:
29726
   - itemIds
29727
   - daysDelta
29728
  """
11592 amit.gupta 29729
 
29730
  thrift_spec = (
11653 amit.gupta 29731
    None, # 0
29732
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
29733
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 29734
  )
29735
 
11653 amit.gupta 29736
  def __init__(self, itemIds=None, daysDelta=None,):
29737
    self.itemIds = itemIds
29738
    self.daysDelta = daysDelta
29739
 
11592 amit.gupta 29740
  def read(self, iprot):
29741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29743
      return
29744
    iprot.readStructBegin()
29745
    while True:
29746
      (fname, ftype, fid) = iprot.readFieldBegin()
29747
      if ftype == TType.STOP:
29748
        break
11653 amit.gupta 29749
      if fid == 1:
29750
        if ftype == TType.LIST:
29751
          self.itemIds = []
12567 amit.gupta 29752
          (_etype667, _size664) = iprot.readListBegin()
29753
          for _i668 in xrange(_size664):
29754
            _elem669 = iprot.readI64();
29755
            self.itemIds.append(_elem669)
11653 amit.gupta 29756
          iprot.readListEnd()
29757
        else:
29758
          iprot.skip(ftype)
29759
      elif fid == 2:
29760
        if ftype == TType.I64:
29761
          self.daysDelta = iprot.readI64();
29762
        else:
29763
          iprot.skip(ftype)
11592 amit.gupta 29764
      else:
29765
        iprot.skip(ftype)
29766
      iprot.readFieldEnd()
29767
    iprot.readStructEnd()
29768
 
29769
  def write(self, oprot):
29770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29772
      return
29773
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 29774
    if self.itemIds is not None:
29775
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
29776
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 29777
      for iter670 in self.itemIds:
29778
        oprot.writeI64(iter670)
11653 amit.gupta 29779
      oprot.writeListEnd()
29780
      oprot.writeFieldEnd()
29781
    if self.daysDelta is not None:
29782
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
29783
      oprot.writeI64(self.daysDelta)
29784
      oprot.writeFieldEnd()
11592 amit.gupta 29785
    oprot.writeFieldStop()
29786
    oprot.writeStructEnd()
29787
 
29788
  def validate(self):
29789
    return
29790
 
29791
 
29792
  def __repr__(self):
29793
    L = ['%s=%r' % (key, value)
29794
      for key, value in self.__dict__.iteritems()]
29795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29796
 
29797
  def __eq__(self, other):
29798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29799
 
29800
  def __ne__(self, other):
29801
    return not (self == other)
29802
 
29803
class getAllActivePrivateDeals_result:
29804
  """
29805
  Attributes:
29806
   - success
29807
  """
29808
 
29809
  thrift_spec = (
29810
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
29811
  )
29812
 
29813
  def __init__(self, success=None,):
29814
    self.success = success
29815
 
29816
  def read(self, iprot):
29817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29819
      return
29820
    iprot.readStructBegin()
29821
    while True:
29822
      (fname, ftype, fid) = iprot.readFieldBegin()
29823
      if ftype == TType.STOP:
29824
        break
29825
      if fid == 0:
29826
        if ftype == TType.MAP:
29827
          self.success = {}
12567 amit.gupta 29828
          (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() 
29829
          for _i675 in xrange(_size671):
29830
            _key676 = iprot.readI64();
29831
            _val677 = PrivateDeal()
29832
            _val677.read(iprot)
29833
            self.success[_key676] = _val677
11592 amit.gupta 29834
          iprot.readMapEnd()
29835
        else:
29836
          iprot.skip(ftype)
29837
      else:
29838
        iprot.skip(ftype)
29839
      iprot.readFieldEnd()
29840
    iprot.readStructEnd()
29841
 
29842
  def write(self, oprot):
29843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29845
      return
29846
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
29847
    if self.success is not None:
29848
      oprot.writeFieldBegin('success', TType.MAP, 0)
29849
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12567 amit.gupta 29850
      for kiter678,viter679 in self.success.items():
29851
        oprot.writeI64(kiter678)
29852
        viter679.write(oprot)
11592 amit.gupta 29853
      oprot.writeMapEnd()
29854
      oprot.writeFieldEnd()
29855
    oprot.writeFieldStop()
29856
    oprot.writeStructEnd()
29857
 
29858
  def validate(self):
29859
    return
29860
 
29861
 
29862
  def __repr__(self):
29863
    L = ['%s=%r' % (key, value)
29864
      for key, value in self.__dict__.iteritems()]
29865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29866
 
29867
  def __eq__(self, other):
29868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29869
 
29870
  def __ne__(self, other):
29871
    return not (self == other)
29872
 
11531 vikram.rag 29873
class addOrUpdatePrivateDeal_args:
29874
  """
29875
  Attributes:
29876
   - privateDeal
29877
  """
29878
 
29879
  thrift_spec = (
29880
    None, # 0
29881
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
29882
  )
29883
 
29884
  def __init__(self, privateDeal=None,):
29885
    self.privateDeal = privateDeal
29886
 
29887
  def read(self, iprot):
29888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29890
      return
29891
    iprot.readStructBegin()
29892
    while True:
29893
      (fname, ftype, fid) = iprot.readFieldBegin()
29894
      if ftype == TType.STOP:
29895
        break
29896
      if fid == 1:
29897
        if ftype == TType.STRUCT:
29898
          self.privateDeal = PrivateDeal()
29899
          self.privateDeal.read(iprot)
29900
        else:
29901
          iprot.skip(ftype)
29902
      else:
29903
        iprot.skip(ftype)
29904
      iprot.readFieldEnd()
29905
    iprot.readStructEnd()
29906
 
29907
  def write(self, oprot):
29908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29910
      return
29911
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
29912
    if self.privateDeal is not None:
29913
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
29914
      self.privateDeal.write(oprot)
29915
      oprot.writeFieldEnd()
29916
    oprot.writeFieldStop()
29917
    oprot.writeStructEnd()
29918
 
29919
  def validate(self):
29920
    return
29921
 
29922
 
29923
  def __repr__(self):
29924
    L = ['%s=%r' % (key, value)
29925
      for key, value in self.__dict__.iteritems()]
29926
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29927
 
29928
  def __eq__(self, other):
29929
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29930
 
29931
  def __ne__(self, other):
29932
    return not (self == other)
29933
 
29934
class addOrUpdatePrivateDeal_result:
29935
  """
29936
  Attributes:
29937
   - success
29938
  """
29939
 
29940
  thrift_spec = (
29941
    (0, TType.BOOL, 'success', None, None, ), # 0
29942
  )
29943
 
29944
  def __init__(self, success=None,):
29945
    self.success = success
29946
 
29947
  def read(self, iprot):
29948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29950
      return
29951
    iprot.readStructBegin()
29952
    while True:
29953
      (fname, ftype, fid) = iprot.readFieldBegin()
29954
      if ftype == TType.STOP:
29955
        break
29956
      if fid == 0:
29957
        if ftype == TType.BOOL:
29958
          self.success = iprot.readBool();
29959
        else:
29960
          iprot.skip(ftype)
29961
      else:
29962
        iprot.skip(ftype)
29963
      iprot.readFieldEnd()
29964
    iprot.readStructEnd()
29965
 
29966
  def write(self, oprot):
29967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29969
      return
29970
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
29971
    if self.success is not None:
29972
      oprot.writeFieldBegin('success', TType.BOOL, 0)
29973
      oprot.writeBool(self.success)
29974
      oprot.writeFieldEnd()
29975
    oprot.writeFieldStop()
29976
    oprot.writeStructEnd()
29977
 
29978
  def validate(self):
29979
    return
29980
 
29981
 
29982
  def __repr__(self):
29983
    L = ['%s=%r' % (key, value)
29984
      for key, value in self.__dict__.iteritems()]
29985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29986
 
29987
  def __eq__(self, other):
29988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29989
 
29990
  def __ne__(self, other):
29991
    return not (self == other)
11635 vikram.rag 29992
 
29993
class getPrivateDealsCatalogIds_args:
29994
  """
29995
  Attributes:
29996
   - beginIndex
29997
   - totalItems
29998
  """
29999
 
30000
  thrift_spec = (
30001
    None, # 0
30002
    (1, TType.I64, 'beginIndex', None, None, ), # 1
30003
    (2, TType.I64, 'totalItems', None, None, ), # 2
30004
  )
30005
 
30006
  def __init__(self, beginIndex=None, totalItems=None,):
30007
    self.beginIndex = beginIndex
30008
    self.totalItems = totalItems
30009
 
30010
  def read(self, iprot):
30011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30013
      return
30014
    iprot.readStructBegin()
30015
    while True:
30016
      (fname, ftype, fid) = iprot.readFieldBegin()
30017
      if ftype == TType.STOP:
30018
        break
30019
      if fid == 1:
30020
        if ftype == TType.I64:
30021
          self.beginIndex = iprot.readI64();
30022
        else:
30023
          iprot.skip(ftype)
30024
      elif fid == 2:
30025
        if ftype == TType.I64:
30026
          self.totalItems = iprot.readI64();
30027
        else:
30028
          iprot.skip(ftype)
30029
      else:
30030
        iprot.skip(ftype)
30031
      iprot.readFieldEnd()
30032
    iprot.readStructEnd()
30033
 
30034
  def write(self, oprot):
30035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30037
      return
30038
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
30039
    if self.beginIndex is not None:
30040
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30041
      oprot.writeI64(self.beginIndex)
30042
      oprot.writeFieldEnd()
30043
    if self.totalItems is not None:
30044
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30045
      oprot.writeI64(self.totalItems)
30046
      oprot.writeFieldEnd()
30047
    oprot.writeFieldStop()
30048
    oprot.writeStructEnd()
30049
 
30050
  def validate(self):
30051
    return
30052
 
30053
 
30054
  def __repr__(self):
30055
    L = ['%s=%r' % (key, value)
30056
      for key, value in self.__dict__.iteritems()]
30057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30058
 
30059
  def __eq__(self, other):
30060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30061
 
30062
  def __ne__(self, other):
30063
    return not (self == other)
30064
 
30065
class getPrivateDealsCatalogIds_result:
30066
  """
30067
  Attributes:
30068
   - success
30069
   - cex
30070
  """
30071
 
30072
  thrift_spec = (
30073
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30074
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30075
  )
30076
 
30077
  def __init__(self, success=None, cex=None,):
30078
    self.success = success
30079
    self.cex = cex
30080
 
30081
  def read(self, iprot):
30082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30084
      return
30085
    iprot.readStructBegin()
30086
    while True:
30087
      (fname, ftype, fid) = iprot.readFieldBegin()
30088
      if ftype == TType.STOP:
30089
        break
30090
      if fid == 0:
30091
        if ftype == TType.LIST:
30092
          self.success = []
12567 amit.gupta 30093
          (_etype683, _size680) = iprot.readListBegin()
30094
          for _i684 in xrange(_size680):
30095
            _elem685 = iprot.readI64();
30096
            self.success.append(_elem685)
11635 vikram.rag 30097
          iprot.readListEnd()
30098
        else:
30099
          iprot.skip(ftype)
30100
      elif fid == 1:
30101
        if ftype == TType.STRUCT:
30102
          self.cex = CatalogServiceException()
30103
          self.cex.read(iprot)
30104
        else:
30105
          iprot.skip(ftype)
30106
      else:
30107
        iprot.skip(ftype)
30108
      iprot.readFieldEnd()
30109
    iprot.readStructEnd()
30110
 
30111
  def write(self, oprot):
30112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30114
      return
30115
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30116
    if self.success is not None:
30117
      oprot.writeFieldBegin('success', TType.LIST, 0)
30118
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 30119
      for iter686 in self.success:
30120
        oprot.writeI64(iter686)
11635 vikram.rag 30121
      oprot.writeListEnd()
30122
      oprot.writeFieldEnd()
30123
    if self.cex is not None:
30124
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30125
      self.cex.write(oprot)
30126
      oprot.writeFieldEnd()
30127
    oprot.writeFieldStop()
30128
    oprot.writeStructEnd()
30129
 
30130
  def validate(self):
30131
    return
30132
 
30133
 
30134
  def __repr__(self):
30135
    L = ['%s=%r' % (key, value)
30136
      for key, value in self.__dict__.iteritems()]
30137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30138
 
30139
  def __eq__(self, other):
30140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30141
 
30142
  def __ne__(self, other):
30143
    return not (self == other)
11645 amit.gupta 30144
 
30145
class getPrivateDealsCount_args:
30146
 
30147
  thrift_spec = (
30148
  )
30149
 
30150
  def read(self, iprot):
30151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30153
      return
30154
    iprot.readStructBegin()
30155
    while True:
30156
      (fname, ftype, fid) = iprot.readFieldBegin()
30157
      if ftype == TType.STOP:
30158
        break
30159
      else:
30160
        iprot.skip(ftype)
30161
      iprot.readFieldEnd()
30162
    iprot.readStructEnd()
30163
 
30164
  def write(self, oprot):
30165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30167
      return
30168
    oprot.writeStructBegin('getPrivateDealsCount_args')
30169
    oprot.writeFieldStop()
30170
    oprot.writeStructEnd()
30171
 
30172
  def validate(self):
30173
    return
30174
 
30175
 
30176
  def __repr__(self):
30177
    L = ['%s=%r' % (key, value)
30178
      for key, value in self.__dict__.iteritems()]
30179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30180
 
30181
  def __eq__(self, other):
30182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30183
 
30184
  def __ne__(self, other):
30185
    return not (self == other)
30186
 
30187
class getPrivateDealsCount_result:
30188
  """
30189
  Attributes:
30190
   - success
30191
  """
30192
 
30193
  thrift_spec = (
30194
    (0, TType.I32, 'success', None, None, ), # 0
30195
  )
30196
 
30197
  def __init__(self, success=None,):
30198
    self.success = success
30199
 
30200
  def read(self, iprot):
30201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30203
      return
30204
    iprot.readStructBegin()
30205
    while True:
30206
      (fname, ftype, fid) = iprot.readFieldBegin()
30207
      if ftype == TType.STOP:
30208
        break
30209
      if fid == 0:
30210
        if ftype == TType.I32:
30211
          self.success = iprot.readI32();
30212
        else:
30213
          iprot.skip(ftype)
30214
      else:
30215
        iprot.skip(ftype)
30216
      iprot.readFieldEnd()
30217
    iprot.readStructEnd()
30218
 
30219
  def write(self, oprot):
30220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30222
      return
30223
    oprot.writeStructBegin('getPrivateDealsCount_result')
30224
    if self.success is not None:
30225
      oprot.writeFieldBegin('success', TType.I32, 0)
30226
      oprot.writeI32(self.success)
30227
      oprot.writeFieldEnd()
30228
    oprot.writeFieldStop()
30229
    oprot.writeStructEnd()
30230
 
30231
  def validate(self):
30232
    return
30233
 
30234
 
30235
  def __repr__(self):
30236
    L = ['%s=%r' % (key, value)
30237
      for key, value in self.__dict__.iteritems()]
30238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30239
 
30240
  def __eq__(self, other):
30241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30242
 
30243
  def __ne__(self, other):
30244
    return not (self == other)
11905 kshitij.so 30245
 
30246
class getAmazonOutSyncItems_args:
30247
  """
30248
  Attributes:
30249
   - item_id
30250
  """
30251
 
30252
  thrift_spec = (
30253
    None, # 0
30254
    (1, TType.I64, 'item_id', None, None, ), # 1
30255
  )
30256
 
30257
  def __init__(self, item_id=None,):
30258
    self.item_id = item_id
30259
 
30260
  def read(self, iprot):
30261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30263
      return
30264
    iprot.readStructBegin()
30265
    while True:
30266
      (fname, ftype, fid) = iprot.readFieldBegin()
30267
      if ftype == TType.STOP:
30268
        break
30269
      if fid == 1:
30270
        if ftype == TType.I64:
30271
          self.item_id = iprot.readI64();
30272
        else:
30273
          iprot.skip(ftype)
30274
      else:
30275
        iprot.skip(ftype)
30276
      iprot.readFieldEnd()
30277
    iprot.readStructEnd()
30278
 
30279
  def write(self, oprot):
30280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30282
      return
30283
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30284
    if self.item_id is not None:
30285
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30286
      oprot.writeI64(self.item_id)
30287
      oprot.writeFieldEnd()
30288
    oprot.writeFieldStop()
30289
    oprot.writeStructEnd()
30290
 
30291
  def validate(self):
30292
    return
30293
 
30294
 
30295
  def __repr__(self):
30296
    L = ['%s=%r' % (key, value)
30297
      for key, value in self.__dict__.iteritems()]
30298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30299
 
30300
  def __eq__(self, other):
30301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30302
 
30303
  def __ne__(self, other):
30304
    return not (self == other)
30305
 
30306
class getAmazonOutSyncItems_result:
30307
  """
30308
  Attributes:
30309
   - success
30310
  """
30311
 
30312
  thrift_spec = (
30313
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30314
  )
30315
 
30316
  def __init__(self, success=None,):
30317
    self.success = success
30318
 
30319
  def read(self, iprot):
30320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30322
      return
30323
    iprot.readStructBegin()
30324
    while True:
30325
      (fname, ftype, fid) = iprot.readFieldBegin()
30326
      if ftype == TType.STOP:
30327
        break
30328
      if fid == 0:
30329
        if ftype == TType.STRUCT:
30330
          self.success = AmazonOutOfSync()
30331
          self.success.read(iprot)
30332
        else:
30333
          iprot.skip(ftype)
30334
      else:
30335
        iprot.skip(ftype)
30336
      iprot.readFieldEnd()
30337
    iprot.readStructEnd()
30338
 
30339
  def write(self, oprot):
30340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30342
      return
30343
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30344
    if self.success is not None:
30345
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30346
      self.success.write(oprot)
30347
      oprot.writeFieldEnd()
30348
    oprot.writeFieldStop()
30349
    oprot.writeStructEnd()
30350
 
30351
  def validate(self):
30352
    return
30353
 
30354
 
30355
  def __repr__(self):
30356
    L = ['%s=%r' % (key, value)
30357
      for key, value in self.__dict__.iteritems()]
30358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30359
 
30360
  def __eq__(self, other):
30361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30362
 
30363
  def __ne__(self, other):
30364
    return not (self == other)
30365
 
30366
class getAllPrivateDealsComparison_args:
30367
 
30368
  thrift_spec = (
30369
  )
30370
 
30371
  def read(self, iprot):
30372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30374
      return
30375
    iprot.readStructBegin()
30376
    while True:
30377
      (fname, ftype, fid) = iprot.readFieldBegin()
30378
      if ftype == TType.STOP:
30379
        break
30380
      else:
30381
        iprot.skip(ftype)
30382
      iprot.readFieldEnd()
30383
    iprot.readStructEnd()
30384
 
30385
  def write(self, oprot):
30386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30388
      return
30389
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30390
    oprot.writeFieldStop()
30391
    oprot.writeStructEnd()
30392
 
30393
  def validate(self):
30394
    return
30395
 
30396
 
30397
  def __repr__(self):
30398
    L = ['%s=%r' % (key, value)
30399
      for key, value in self.__dict__.iteritems()]
30400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30401
 
30402
  def __eq__(self, other):
30403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30404
 
30405
  def __ne__(self, other):
30406
    return not (self == other)
30407
 
30408
class getAllPrivateDealsComparison_result:
30409
  """
30410
  Attributes:
30411
   - success
30412
  """
30413
 
30414
  thrift_spec = (
30415
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30416
  )
30417
 
30418
  def __init__(self, success=None,):
30419
    self.success = success
30420
 
30421
  def read(self, iprot):
30422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30424
      return
30425
    iprot.readStructBegin()
30426
    while True:
30427
      (fname, ftype, fid) = iprot.readFieldBegin()
30428
      if ftype == TType.STOP:
30429
        break
30430
      if fid == 0:
30431
        if ftype == TType.LIST:
30432
          self.success = []
12567 amit.gupta 30433
          (_etype690, _size687) = iprot.readListBegin()
30434
          for _i691 in xrange(_size687):
30435
            _elem692 = PdPriceComp()
30436
            _elem692.read(iprot)
30437
            self.success.append(_elem692)
11905 kshitij.so 30438
          iprot.readListEnd()
30439
        else:
30440
          iprot.skip(ftype)
30441
      else:
30442
        iprot.skip(ftype)
30443
      iprot.readFieldEnd()
30444
    iprot.readStructEnd()
30445
 
30446
  def write(self, oprot):
30447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30449
      return
30450
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30451
    if self.success is not None:
30452
      oprot.writeFieldBegin('success', TType.LIST, 0)
30453
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30454
      for iter693 in self.success:
30455
        iter693.write(oprot)
11905 kshitij.so 30456
      oprot.writeListEnd()
30457
      oprot.writeFieldEnd()
30458
    oprot.writeFieldStop()
30459
    oprot.writeStructEnd()
30460
 
30461
  def validate(self):
30462
    return
30463
 
30464
 
30465
  def __repr__(self):
30466
    L = ['%s=%r' % (key, value)
30467
      for key, value in self.__dict__.iteritems()]
30468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30469
 
30470
  def __eq__(self, other):
30471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30472
 
30473
  def __ne__(self, other):
30474
    return not (self == other)
12133 kshitij.so 30475
 
30476
class getAllSnapdealMarketplaceItem_args:
30477
 
30478
  thrift_spec = (
30479
  )
30480
 
30481
  def read(self, iprot):
30482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30484
      return
30485
    iprot.readStructBegin()
30486
    while True:
30487
      (fname, ftype, fid) = iprot.readFieldBegin()
30488
      if ftype == TType.STOP:
30489
        break
30490
      else:
30491
        iprot.skip(ftype)
30492
      iprot.readFieldEnd()
30493
    iprot.readStructEnd()
30494
 
30495
  def write(self, oprot):
30496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30498
      return
30499
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30500
    oprot.writeFieldStop()
30501
    oprot.writeStructEnd()
30502
 
30503
  def validate(self):
30504
    return
30505
 
30506
 
30507
  def __repr__(self):
30508
    L = ['%s=%r' % (key, value)
30509
      for key, value in self.__dict__.iteritems()]
30510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30511
 
30512
  def __eq__(self, other):
30513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30514
 
30515
  def __ne__(self, other):
30516
    return not (self == other)
30517
 
30518
class getAllSnapdealMarketplaceItem_result:
30519
  """
30520
  Attributes:
30521
   - success
30522
  """
30523
 
30524
  thrift_spec = (
30525
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30526
  )
30527
 
30528
  def __init__(self, success=None,):
30529
    self.success = success
30530
 
30531
  def read(self, iprot):
30532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30534
      return
30535
    iprot.readStructBegin()
30536
    while True:
30537
      (fname, ftype, fid) = iprot.readFieldBegin()
30538
      if ftype == TType.STOP:
30539
        break
30540
      if fid == 0:
30541
        if ftype == TType.LIST:
30542
          self.success = []
12567 amit.gupta 30543
          (_etype697, _size694) = iprot.readListBegin()
30544
          for _i698 in xrange(_size694):
30545
            _elem699 = SnapdealItem()
30546
            _elem699.read(iprot)
30547
            self.success.append(_elem699)
12133 kshitij.so 30548
          iprot.readListEnd()
30549
        else:
30550
          iprot.skip(ftype)
30551
      else:
30552
        iprot.skip(ftype)
30553
      iprot.readFieldEnd()
30554
    iprot.readStructEnd()
30555
 
30556
  def write(self, oprot):
30557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30559
      return
30560
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30561
    if self.success is not None:
30562
      oprot.writeFieldBegin('success', TType.LIST, 0)
30563
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30564
      for iter700 in self.success:
30565
        iter700.write(oprot)
12133 kshitij.so 30566
      oprot.writeListEnd()
30567
      oprot.writeFieldEnd()
30568
    oprot.writeFieldStop()
30569
    oprot.writeStructEnd()
30570
 
30571
  def validate(self):
30572
    return
30573
 
30574
 
30575
  def __repr__(self):
30576
    L = ['%s=%r' % (key, value)
30577
      for key, value in self.__dict__.iteritems()]
30578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30579
 
30580
  def __eq__(self, other):
30581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30582
 
30583
  def __ne__(self, other):
30584
    return not (self == other)
30585
 
30586
class getAllFlipkartMarketplaceItem_args:
30587
 
30588
  thrift_spec = (
30589
  )
30590
 
30591
  def read(self, iprot):
30592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30594
      return
30595
    iprot.readStructBegin()
30596
    while True:
30597
      (fname, ftype, fid) = iprot.readFieldBegin()
30598
      if ftype == TType.STOP:
30599
        break
30600
      else:
30601
        iprot.skip(ftype)
30602
      iprot.readFieldEnd()
30603
    iprot.readStructEnd()
30604
 
30605
  def write(self, oprot):
30606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30608
      return
30609
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30610
    oprot.writeFieldStop()
30611
    oprot.writeStructEnd()
30612
 
30613
  def validate(self):
30614
    return
30615
 
30616
 
30617
  def __repr__(self):
30618
    L = ['%s=%r' % (key, value)
30619
      for key, value in self.__dict__.iteritems()]
30620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30621
 
30622
  def __eq__(self, other):
30623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30624
 
30625
  def __ne__(self, other):
30626
    return not (self == other)
30627
 
30628
class getAllFlipkartMarketplaceItem_result:
30629
  """
30630
  Attributes:
30631
   - success
30632
  """
30633
 
30634
  thrift_spec = (
30635
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30636
  )
30637
 
30638
  def __init__(self, success=None,):
30639
    self.success = success
30640
 
30641
  def read(self, iprot):
30642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30644
      return
30645
    iprot.readStructBegin()
30646
    while True:
30647
      (fname, ftype, fid) = iprot.readFieldBegin()
30648
      if ftype == TType.STOP:
30649
        break
30650
      if fid == 0:
30651
        if ftype == TType.LIST:
30652
          self.success = []
12567 amit.gupta 30653
          (_etype704, _size701) = iprot.readListBegin()
30654
          for _i705 in xrange(_size701):
30655
            _elem706 = FlipkartItem()
30656
            _elem706.read(iprot)
30657
            self.success.append(_elem706)
12133 kshitij.so 30658
          iprot.readListEnd()
30659
        else:
30660
          iprot.skip(ftype)
30661
      else:
30662
        iprot.skip(ftype)
30663
      iprot.readFieldEnd()
30664
    iprot.readStructEnd()
30665
 
30666
  def write(self, oprot):
30667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30669
      return
30670
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
30671
    if self.success is not None:
30672
      oprot.writeFieldBegin('success', TType.LIST, 0)
30673
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30674
      for iter707 in self.success:
30675
        iter707.write(oprot)
12133 kshitij.so 30676
      oprot.writeListEnd()
30677
      oprot.writeFieldEnd()
30678
    oprot.writeFieldStop()
30679
    oprot.writeStructEnd()
30680
 
30681
  def validate(self):
30682
    return
30683
 
30684
 
30685
  def __repr__(self):
30686
    L = ['%s=%r' % (key, value)
30687
      for key, value in self.__dict__.iteritems()]
30688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30689
 
30690
  def __eq__(self, other):
30691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30692
 
30693
  def __ne__(self, other):
30694
    return not (self == other)
12243 kshitij.so 30695
 
30696
class addCompetitorScraping_args:
30697
  """
30698
  Attributes:
30699
   - competitorPricingMap
30700
  """
30701
 
30702
  thrift_spec = (
30703
    None, # 0
30704
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
30705
  )
30706
 
30707
  def __init__(self, competitorPricingMap=None,):
30708
    self.competitorPricingMap = competitorPricingMap
30709
 
30710
  def read(self, iprot):
30711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30713
      return
30714
    iprot.readStructBegin()
30715
    while True:
30716
      (fname, ftype, fid) = iprot.readFieldBegin()
30717
      if ftype == TType.STOP:
30718
        break
30719
      if fid == 1:
30720
        if ftype == TType.MAP:
30721
          self.competitorPricingMap = {}
12567 amit.gupta 30722
          (_ktype709, _vtype710, _size708 ) = iprot.readMapBegin() 
30723
          for _i712 in xrange(_size708):
30724
            _key713 = iprot.readI64();
30725
            _val714 = CompetitorPricing()
30726
            _val714.read(iprot)
30727
            self.competitorPricingMap[_key713] = _val714
12243 kshitij.so 30728
          iprot.readMapEnd()
30729
        else:
30730
          iprot.skip(ftype)
30731
      else:
30732
        iprot.skip(ftype)
30733
      iprot.readFieldEnd()
30734
    iprot.readStructEnd()
30735
 
30736
  def write(self, oprot):
30737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30739
      return
30740
    oprot.writeStructBegin('addCompetitorScraping_args')
30741
    if self.competitorPricingMap is not None:
30742
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
30743
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
12567 amit.gupta 30744
      for kiter715,viter716 in self.competitorPricingMap.items():
30745
        oprot.writeI64(kiter715)
30746
        viter716.write(oprot)
12243 kshitij.so 30747
      oprot.writeMapEnd()
30748
      oprot.writeFieldEnd()
30749
    oprot.writeFieldStop()
30750
    oprot.writeStructEnd()
30751
 
30752
  def validate(self):
30753
    return
30754
 
30755
 
30756
  def __repr__(self):
30757
    L = ['%s=%r' % (key, value)
30758
      for key, value in self.__dict__.iteritems()]
30759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30760
 
30761
  def __eq__(self, other):
30762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30763
 
30764
  def __ne__(self, other):
30765
    return not (self == other)
30766
 
30767
class addCompetitorScraping_result:
30768
 
30769
  thrift_spec = (
30770
  )
30771
 
30772
  def read(self, iprot):
30773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30775
      return
30776
    iprot.readStructBegin()
30777
    while True:
30778
      (fname, ftype, fid) = iprot.readFieldBegin()
30779
      if ftype == TType.STOP:
30780
        break
30781
      else:
30782
        iprot.skip(ftype)
30783
      iprot.readFieldEnd()
30784
    iprot.readStructEnd()
30785
 
30786
  def write(self, oprot):
30787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30789
      return
30790
    oprot.writeStructBegin('addCompetitorScraping_result')
30791
    oprot.writeFieldStop()
30792
    oprot.writeStructEnd()
30793
 
30794
  def validate(self):
30795
    return
30796
 
30797
 
30798
  def __repr__(self):
30799
    L = ['%s=%r' % (key, value)
30800
      for key, value in self.__dict__.iteritems()]
30801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30802
 
30803
  def __eq__(self, other):
30804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30805
 
30806
  def __ne__(self, other):
30807
    return not (self == other)
30808
 
30809
class getPreviousCompetitorScraping_args:
30810
  """
30811
  Attributes:
30812
   - delta
30813
  """
30814
 
30815
  thrift_spec = (
30816
    None, # 0
30817
    (1, TType.I64, 'delta', None, None, ), # 1
30818
  )
30819
 
30820
  def __init__(self, delta=None,):
30821
    self.delta = delta
30822
 
30823
  def read(self, iprot):
30824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30826
      return
30827
    iprot.readStructBegin()
30828
    while True:
30829
      (fname, ftype, fid) = iprot.readFieldBegin()
30830
      if ftype == TType.STOP:
30831
        break
30832
      if fid == 1:
30833
        if ftype == TType.I64:
30834
          self.delta = iprot.readI64();
30835
        else:
30836
          iprot.skip(ftype)
30837
      else:
30838
        iprot.skip(ftype)
30839
      iprot.readFieldEnd()
30840
    iprot.readStructEnd()
30841
 
30842
  def write(self, oprot):
30843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30845
      return
30846
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
30847
    if self.delta is not None:
30848
      oprot.writeFieldBegin('delta', TType.I64, 1)
30849
      oprot.writeI64(self.delta)
30850
      oprot.writeFieldEnd()
30851
    oprot.writeFieldStop()
30852
    oprot.writeStructEnd()
30853
 
30854
  def validate(self):
30855
    return
30856
 
30857
 
30858
  def __repr__(self):
30859
    L = ['%s=%r' % (key, value)
30860
      for key, value in self.__dict__.iteritems()]
30861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30862
 
30863
  def __eq__(self, other):
30864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30865
 
30866
  def __ne__(self, other):
30867
    return not (self == other)
30868
 
30869
class getPreviousCompetitorScraping_result:
30870
  """
30871
  Attributes:
30872
   - success
30873
  """
30874
 
30875
  thrift_spec = (
30876
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30877
  )
30878
 
30879
  def __init__(self, success=None,):
30880
    self.success = success
30881
 
30882
  def read(self, iprot):
30883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30885
      return
30886
    iprot.readStructBegin()
30887
    while True:
30888
      (fname, ftype, fid) = iprot.readFieldBegin()
30889
      if ftype == TType.STOP:
30890
        break
30891
      if fid == 0:
30892
        if ftype == TType.LIST:
30893
          self.success = []
12567 amit.gupta 30894
          (_etype720, _size717) = iprot.readListBegin()
30895
          for _i721 in xrange(_size717):
30896
            _elem722 = CompetitorPricing()
30897
            _elem722.read(iprot)
30898
            self.success.append(_elem722)
12243 kshitij.so 30899
          iprot.readListEnd()
30900
        else:
30901
          iprot.skip(ftype)
30902
      else:
30903
        iprot.skip(ftype)
30904
      iprot.readFieldEnd()
30905
    iprot.readStructEnd()
30906
 
30907
  def write(self, oprot):
30908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30910
      return
30911
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
30912
    if self.success is not None:
30913
      oprot.writeFieldBegin('success', TType.LIST, 0)
30914
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30915
      for iter723 in self.success:
30916
        iter723.write(oprot)
12243 kshitij.so 30917
      oprot.writeListEnd()
30918
      oprot.writeFieldEnd()
30919
    oprot.writeFieldStop()
30920
    oprot.writeStructEnd()
30921
 
30922
  def validate(self):
30923
    return
30924
 
30925
 
30926
  def __repr__(self):
30927
    L = ['%s=%r' % (key, value)
30928
      for key, value in self.__dict__.iteritems()]
30929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30930
 
30931
  def __eq__(self, other):
30932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30933
 
30934
  def __ne__(self, other):
30935
    return not (self == other)
12256 kshitij.so 30936
 
30937
class getUploadResultById_args:
30938
  """
30939
  Attributes:
30940
   - uploadId
30941
  """
30942
 
30943
  thrift_spec = (
30944
    None, # 0
30945
    (1, TType.I64, 'uploadId', None, None, ), # 1
30946
  )
30947
 
30948
  def __init__(self, uploadId=None,):
30949
    self.uploadId = uploadId
30950
 
30951
  def read(self, iprot):
30952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30954
      return
30955
    iprot.readStructBegin()
30956
    while True:
30957
      (fname, ftype, fid) = iprot.readFieldBegin()
30958
      if ftype == TType.STOP:
30959
        break
30960
      if fid == 1:
30961
        if ftype == TType.I64:
30962
          self.uploadId = iprot.readI64();
30963
        else:
30964
          iprot.skip(ftype)
30965
      else:
30966
        iprot.skip(ftype)
30967
      iprot.readFieldEnd()
30968
    iprot.readStructEnd()
30969
 
30970
  def write(self, oprot):
30971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30973
      return
30974
    oprot.writeStructBegin('getUploadResultById_args')
30975
    if self.uploadId is not None:
30976
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
30977
      oprot.writeI64(self.uploadId)
30978
      oprot.writeFieldEnd()
30979
    oprot.writeFieldStop()
30980
    oprot.writeStructEnd()
30981
 
30982
  def validate(self):
30983
    return
30984
 
30985
 
30986
  def __repr__(self):
30987
    L = ['%s=%r' % (key, value)
30988
      for key, value in self.__dict__.iteritems()]
30989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30990
 
30991
  def __eq__(self, other):
30992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30993
 
30994
  def __ne__(self, other):
30995
    return not (self == other)
30996
 
30997
class getUploadResultById_result:
30998
  """
30999
  Attributes:
31000
   - success
31001
  """
31002
 
31003
  thrift_spec = (
31004
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31005
  )
31006
 
31007
  def __init__(self, success=None,):
31008
    self.success = success
31009
 
31010
  def read(self, iprot):
31011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31013
      return
31014
    iprot.readStructBegin()
31015
    while True:
31016
      (fname, ftype, fid) = iprot.readFieldBegin()
31017
      if ftype == TType.STOP:
31018
        break
31019
      if fid == 0:
31020
        if ftype == TType.LIST:
31021
          self.success = []
12567 amit.gupta 31022
          (_etype727, _size724) = iprot.readListBegin()
31023
          for _i728 in xrange(_size724):
31024
            _elem729 = CompetitorPricing()
31025
            _elem729.read(iprot)
31026
            self.success.append(_elem729)
12256 kshitij.so 31027
          iprot.readListEnd()
31028
        else:
31029
          iprot.skip(ftype)
31030
      else:
31031
        iprot.skip(ftype)
31032
      iprot.readFieldEnd()
31033
    iprot.readStructEnd()
31034
 
31035
  def write(self, oprot):
31036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31038
      return
31039
    oprot.writeStructBegin('getUploadResultById_result')
31040
    if self.success is not None:
31041
      oprot.writeFieldBegin('success', TType.LIST, 0)
31042
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31043
      for iter730 in self.success:
31044
        iter730.write(oprot)
12256 kshitij.so 31045
      oprot.writeListEnd()
31046
      oprot.writeFieldEnd()
31047
    oprot.writeFieldStop()
31048
    oprot.writeStructEnd()
31049
 
31050
  def validate(self):
31051
    return
31052
 
31053
 
31054
  def __repr__(self):
31055
    L = ['%s=%r' % (key, value)
31056
      for key, value in self.__dict__.iteritems()]
31057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31058
 
31059
  def __eq__(self, other):
31060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31061
 
31062
  def __ne__(self, other):
31063
    return not (self == other)
12363 kshitij.so 31064
 
31065
class addAmazonPromotion_args:
31066
  """
31067
  Attributes:
31068
   - amazonPromotions
31069
  """
31070
 
31071
  thrift_spec = (
31072
    None, # 0
31073
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31074
  )
31075
 
31076
  def __init__(self, amazonPromotions=None,):
31077
    self.amazonPromotions = amazonPromotions
31078
 
31079
  def read(self, iprot):
31080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31082
      return
31083
    iprot.readStructBegin()
31084
    while True:
31085
      (fname, ftype, fid) = iprot.readFieldBegin()
31086
      if ftype == TType.STOP:
31087
        break
31088
      if fid == 1:
31089
        if ftype == TType.MAP:
31090
          self.amazonPromotions = {}
12567 amit.gupta 31091
          (_ktype732, _vtype733, _size731 ) = iprot.readMapBegin() 
31092
          for _i735 in xrange(_size731):
31093
            _key736 = iprot.readString();
31094
            _val737 = AmazonPromotion()
31095
            _val737.read(iprot)
31096
            self.amazonPromotions[_key736] = _val737
12363 kshitij.so 31097
          iprot.readMapEnd()
31098
        else:
31099
          iprot.skip(ftype)
31100
      else:
31101
        iprot.skip(ftype)
31102
      iprot.readFieldEnd()
31103
    iprot.readStructEnd()
31104
 
31105
  def write(self, oprot):
31106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31108
      return
31109
    oprot.writeStructBegin('addAmazonPromotion_args')
31110
    if self.amazonPromotions is not None:
31111
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31112
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31113
      for kiter738,viter739 in self.amazonPromotions.items():
31114
        oprot.writeString(kiter738)
31115
        viter739.write(oprot)
12363 kshitij.so 31116
      oprot.writeMapEnd()
31117
      oprot.writeFieldEnd()
31118
    oprot.writeFieldStop()
31119
    oprot.writeStructEnd()
31120
 
31121
  def validate(self):
31122
    return
31123
 
31124
 
31125
  def __repr__(self):
31126
    L = ['%s=%r' % (key, value)
31127
      for key, value in self.__dict__.iteritems()]
31128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31129
 
31130
  def __eq__(self, other):
31131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31132
 
31133
  def __ne__(self, other):
31134
    return not (self == other)
31135
 
31136
class addAmazonPromotion_result:
31137
  """
31138
  Attributes:
31139
   - success
31140
  """
31141
 
31142
  thrift_spec = (
31143
    (0, TType.BOOL, 'success', None, None, ), # 0
31144
  )
31145
 
31146
  def __init__(self, success=None,):
31147
    self.success = success
31148
 
31149
  def read(self, iprot):
31150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31152
      return
31153
    iprot.readStructBegin()
31154
    while True:
31155
      (fname, ftype, fid) = iprot.readFieldBegin()
31156
      if ftype == TType.STOP:
31157
        break
31158
      if fid == 0:
31159
        if ftype == TType.BOOL:
31160
          self.success = iprot.readBool();
31161
        else:
31162
          iprot.skip(ftype)
31163
      else:
31164
        iprot.skip(ftype)
31165
      iprot.readFieldEnd()
31166
    iprot.readStructEnd()
31167
 
31168
  def write(self, oprot):
31169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31171
      return
31172
    oprot.writeStructBegin('addAmazonPromotion_result')
31173
    if self.success is not None:
31174
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31175
      oprot.writeBool(self.success)
31176
      oprot.writeFieldEnd()
31177
    oprot.writeFieldStop()
31178
    oprot.writeStructEnd()
31179
 
31180
  def validate(self):
31181
    return
31182
 
31183
 
31184
  def __repr__(self):
31185
    L = ['%s=%r' % (key, value)
31186
      for key, value in self.__dict__.iteritems()]
31187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31188
 
31189
  def __eq__(self, other):
31190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31191
 
31192
  def __ne__(self, other):
31193
    return not (self == other)
31194
 
31195
class getAmazonPromotion_args:
31196
  """
31197
  Attributes:
31198
   - startDate
31199
   - endDate
31200
  """
31201
 
31202
  thrift_spec = (
31203
    None, # 0
31204
    (1, TType.I64, 'startDate', None, None, ), # 1
31205
    (2, TType.I64, 'endDate', None, None, ), # 2
31206
  )
31207
 
31208
  def __init__(self, startDate=None, endDate=None,):
31209
    self.startDate = startDate
31210
    self.endDate = endDate
31211
 
31212
  def read(self, iprot):
31213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31215
      return
31216
    iprot.readStructBegin()
31217
    while True:
31218
      (fname, ftype, fid) = iprot.readFieldBegin()
31219
      if ftype == TType.STOP:
31220
        break
31221
      if fid == 1:
31222
        if ftype == TType.I64:
31223
          self.startDate = iprot.readI64();
31224
        else:
31225
          iprot.skip(ftype)
31226
      elif fid == 2:
31227
        if ftype == TType.I64:
31228
          self.endDate = iprot.readI64();
31229
        else:
31230
          iprot.skip(ftype)
31231
      else:
31232
        iprot.skip(ftype)
31233
      iprot.readFieldEnd()
31234
    iprot.readStructEnd()
31235
 
31236
  def write(self, oprot):
31237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31239
      return
31240
    oprot.writeStructBegin('getAmazonPromotion_args')
31241
    if self.startDate is not None:
31242
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31243
      oprot.writeI64(self.startDate)
31244
      oprot.writeFieldEnd()
31245
    if self.endDate is not None:
31246
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31247
      oprot.writeI64(self.endDate)
31248
      oprot.writeFieldEnd()
31249
    oprot.writeFieldStop()
31250
    oprot.writeStructEnd()
31251
 
31252
  def validate(self):
31253
    return
31254
 
31255
 
31256
  def __repr__(self):
31257
    L = ['%s=%r' % (key, value)
31258
      for key, value in self.__dict__.iteritems()]
31259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31260
 
31261
  def __eq__(self, other):
31262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31263
 
31264
  def __ne__(self, other):
31265
    return not (self == other)
31266
 
31267
class getAmazonPromotion_result:
31268
  """
31269
  Attributes:
31270
   - success
31271
  """
31272
 
31273
  thrift_spec = (
31274
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31275
  )
31276
 
31277
  def __init__(self, success=None,):
31278
    self.success = success
31279
 
31280
  def read(self, iprot):
31281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31283
      return
31284
    iprot.readStructBegin()
31285
    while True:
31286
      (fname, ftype, fid) = iprot.readFieldBegin()
31287
      if ftype == TType.STOP:
31288
        break
31289
      if fid == 0:
31290
        if ftype == TType.LIST:
31291
          self.success = []
12567 amit.gupta 31292
          (_etype743, _size740) = iprot.readListBegin()
31293
          for _i744 in xrange(_size740):
31294
            _elem745 = AmazonPromotion()
31295
            _elem745.read(iprot)
31296
            self.success.append(_elem745)
12363 kshitij.so 31297
          iprot.readListEnd()
31298
        else:
31299
          iprot.skip(ftype)
31300
      else:
31301
        iprot.skip(ftype)
31302
      iprot.readFieldEnd()
31303
    iprot.readStructEnd()
31304
 
31305
  def write(self, oprot):
31306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31308
      return
31309
    oprot.writeStructBegin('getAmazonPromotion_result')
31310
    if self.success is not None:
31311
      oprot.writeFieldBegin('success', TType.LIST, 0)
31312
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31313
      for iter746 in self.success:
31314
        iter746.write(oprot)
12363 kshitij.so 31315
      oprot.writeListEnd()
31316
      oprot.writeFieldEnd()
31317
    oprot.writeFieldStop()
31318
    oprot.writeStructEnd()
31319
 
31320
  def validate(self):
31321
    return
31322
 
31323
 
31324
  def __repr__(self):
31325
    L = ['%s=%r' % (key, value)
31326
      for key, value in self.__dict__.iteritems()]
31327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31328
 
31329
  def __eq__(self, other):
31330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31331
 
31332
  def __ne__(self, other):
31333
    return not (self == other)
31334
 
31335
class updateAmazonPromotion_args:
31336
  """
31337
  Attributes:
31338
   - amazonPromotions
31339
  """
31340
 
31341
  thrift_spec = (
31342
    None, # 0
31343
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31344
  )
31345
 
31346
  def __init__(self, amazonPromotions=None,):
31347
    self.amazonPromotions = amazonPromotions
31348
 
31349
  def read(self, iprot):
31350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31352
      return
31353
    iprot.readStructBegin()
31354
    while True:
31355
      (fname, ftype, fid) = iprot.readFieldBegin()
31356
      if ftype == TType.STOP:
31357
        break
31358
      if fid == 1:
31359
        if ftype == TType.LIST:
31360
          self.amazonPromotions = []
12567 amit.gupta 31361
          (_etype750, _size747) = iprot.readListBegin()
31362
          for _i751 in xrange(_size747):
31363
            _elem752 = AmazonPromotion()
31364
            _elem752.read(iprot)
31365
            self.amazonPromotions.append(_elem752)
12363 kshitij.so 31366
          iprot.readListEnd()
31367
        else:
31368
          iprot.skip(ftype)
31369
      else:
31370
        iprot.skip(ftype)
31371
      iprot.readFieldEnd()
31372
    iprot.readStructEnd()
31373
 
31374
  def write(self, oprot):
31375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31377
      return
31378
    oprot.writeStructBegin('updateAmazonPromotion_args')
31379
    if self.amazonPromotions is not None:
31380
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31381
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31382
      for iter753 in self.amazonPromotions:
31383
        iter753.write(oprot)
12363 kshitij.so 31384
      oprot.writeListEnd()
31385
      oprot.writeFieldEnd()
31386
    oprot.writeFieldStop()
31387
    oprot.writeStructEnd()
31388
 
31389
  def validate(self):
31390
    return
31391
 
31392
 
31393
  def __repr__(self):
31394
    L = ['%s=%r' % (key, value)
31395
      for key, value in self.__dict__.iteritems()]
31396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31397
 
31398
  def __eq__(self, other):
31399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31400
 
31401
  def __ne__(self, other):
31402
    return not (self == other)
31403
 
31404
class updateAmazonPromotion_result:
31405
  """
31406
  Attributes:
31407
   - success
31408
  """
31409
 
31410
  thrift_spec = (
31411
    (0, TType.BOOL, 'success', None, None, ), # 0
31412
  )
31413
 
31414
  def __init__(self, success=None,):
31415
    self.success = success
31416
 
31417
  def read(self, iprot):
31418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31420
      return
31421
    iprot.readStructBegin()
31422
    while True:
31423
      (fname, ftype, fid) = iprot.readFieldBegin()
31424
      if ftype == TType.STOP:
31425
        break
31426
      if fid == 0:
31427
        if ftype == TType.BOOL:
31428
          self.success = iprot.readBool();
31429
        else:
31430
          iprot.skip(ftype)
31431
      else:
31432
        iprot.skip(ftype)
31433
      iprot.readFieldEnd()
31434
    iprot.readStructEnd()
31435
 
31436
  def write(self, oprot):
31437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31439
      return
31440
    oprot.writeStructBegin('updateAmazonPromotion_result')
31441
    if self.success is not None:
31442
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31443
      oprot.writeBool(self.success)
31444
      oprot.writeFieldEnd()
31445
    oprot.writeFieldStop()
31446
    oprot.writeStructEnd()
31447
 
31448
  def validate(self):
31449
    return
31450
 
31451
 
31452
  def __repr__(self):
31453
    L = ['%s=%r' % (key, value)
31454
      for key, value in self.__dict__.iteritems()]
31455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31456
 
31457
  def __eq__(self, other):
31458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31459
 
31460
  def __ne__(self, other):
31461
    return not (self == other)
12567 amit.gupta 31462
 
31463
class markPartiallyActive_args:
31464
  """
31465
  Attributes:
31466
   - itemId
31467
   - categoryId
31468
  """
31469
 
31470
  thrift_spec = (
31471
    None, # 0
31472
    (1, TType.I64, 'itemId', None, None, ), # 1
31473
    (2, TType.I64, 'categoryId', None, None, ), # 2
31474
  )
31475
 
31476
  def __init__(self, itemId=None, categoryId=None,):
31477
    self.itemId = itemId
31478
    self.categoryId = categoryId
31479
 
31480
  def read(self, iprot):
31481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31483
      return
31484
    iprot.readStructBegin()
31485
    while True:
31486
      (fname, ftype, fid) = iprot.readFieldBegin()
31487
      if ftype == TType.STOP:
31488
        break
31489
      if fid == 1:
31490
        if ftype == TType.I64:
31491
          self.itemId = iprot.readI64();
31492
        else:
31493
          iprot.skip(ftype)
31494
      elif fid == 2:
31495
        if ftype == TType.I64:
31496
          self.categoryId = iprot.readI64();
31497
        else:
31498
          iprot.skip(ftype)
31499
      else:
31500
        iprot.skip(ftype)
31501
      iprot.readFieldEnd()
31502
    iprot.readStructEnd()
31503
 
31504
  def write(self, oprot):
31505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31507
      return
31508
    oprot.writeStructBegin('markPartiallyActive_args')
31509
    if self.itemId is not None:
31510
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31511
      oprot.writeI64(self.itemId)
31512
      oprot.writeFieldEnd()
31513
    if self.categoryId is not None:
31514
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
31515
      oprot.writeI64(self.categoryId)
31516
      oprot.writeFieldEnd()
31517
    oprot.writeFieldStop()
31518
    oprot.writeStructEnd()
31519
 
31520
  def validate(self):
31521
    return
31522
 
31523
 
31524
  def __repr__(self):
31525
    L = ['%s=%r' % (key, value)
31526
      for key, value in self.__dict__.iteritems()]
31527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31528
 
31529
  def __eq__(self, other):
31530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31531
 
31532
  def __ne__(self, other):
31533
    return not (self == other)
31534
 
31535
class markPartiallyActive_result:
31536
  """
31537
  Attributes:
31538
   - success
31539
  """
31540
 
31541
  thrift_spec = (
31542
    (0, TType.BOOL, 'success', None, None, ), # 0
31543
  )
31544
 
31545
  def __init__(self, success=None,):
31546
    self.success = success
31547
 
31548
  def read(self, iprot):
31549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31551
      return
31552
    iprot.readStructBegin()
31553
    while True:
31554
      (fname, ftype, fid) = iprot.readFieldBegin()
31555
      if ftype == TType.STOP:
31556
        break
31557
      if fid == 0:
31558
        if ftype == TType.BOOL:
31559
          self.success = iprot.readBool();
31560
        else:
31561
          iprot.skip(ftype)
31562
      else:
31563
        iprot.skip(ftype)
31564
      iprot.readFieldEnd()
31565
    iprot.readStructEnd()
31566
 
31567
  def write(self, oprot):
31568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31570
      return
31571
    oprot.writeStructBegin('markPartiallyActive_result')
31572
    if self.success is not None:
31573
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31574
      oprot.writeBool(self.success)
31575
      oprot.writeFieldEnd()
31576
    oprot.writeFieldStop()
31577
    oprot.writeStructEnd()
31578
 
31579
  def validate(self):
31580
    return
31581
 
31582
 
31583
  def __repr__(self):
31584
    L = ['%s=%r' % (key, value)
31585
      for key, value in self.__dict__.iteritems()]
31586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31587
 
31588
  def __eq__(self, other):
31589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31590
 
31591
  def __ne__(self, other):
31592
    return not (self == other)
31593
 
31594
class updateItemStateVat_args:
31595
  """
31596
  Attributes:
31597
   - itemId
31598
   - statevat
31599
  """
31600
 
31601
  thrift_spec = (
31602
    None, # 0
31603
    (1, TType.I64, 'itemId', None, None, ), # 1
31604
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
31605
  )
31606
 
31607
  def __init__(self, itemId=None, statevat=None,):
31608
    self.itemId = itemId
31609
    self.statevat = statevat
31610
 
31611
  def read(self, iprot):
31612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31614
      return
31615
    iprot.readStructBegin()
31616
    while True:
31617
      (fname, ftype, fid) = iprot.readFieldBegin()
31618
      if ftype == TType.STOP:
31619
        break
31620
      if fid == 1:
31621
        if ftype == TType.I64:
31622
          self.itemId = iprot.readI64();
31623
        else:
31624
          iprot.skip(ftype)
31625
      elif fid == 2:
31626
        if ftype == TType.MAP:
31627
          self.statevat = {}
31628
          (_ktype755, _vtype756, _size754 ) = iprot.readMapBegin() 
31629
          for _i758 in xrange(_size754):
31630
            _key759 = iprot.readI64();
31631
            _val760 = iprot.readDouble();
31632
            self.statevat[_key759] = _val760
31633
          iprot.readMapEnd()
31634
        else:
31635
          iprot.skip(ftype)
31636
      else:
31637
        iprot.skip(ftype)
31638
      iprot.readFieldEnd()
31639
    iprot.readStructEnd()
31640
 
31641
  def write(self, oprot):
31642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31644
      return
31645
    oprot.writeStructBegin('updateItemStateVat_args')
31646
    if self.itemId is not None:
31647
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31648
      oprot.writeI64(self.itemId)
31649
      oprot.writeFieldEnd()
31650
    if self.statevat is not None:
31651
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
31652
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
31653
      for kiter761,viter762 in self.statevat.items():
31654
        oprot.writeI64(kiter761)
31655
        oprot.writeDouble(viter762)
31656
      oprot.writeMapEnd()
31657
      oprot.writeFieldEnd()
31658
    oprot.writeFieldStop()
31659
    oprot.writeStructEnd()
31660
 
31661
  def validate(self):
31662
    return
31663
 
31664
 
31665
  def __repr__(self):
31666
    L = ['%s=%r' % (key, value)
31667
      for key, value in self.__dict__.iteritems()]
31668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31669
 
31670
  def __eq__(self, other):
31671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31672
 
31673
  def __ne__(self, other):
31674
    return not (self == other)
31675
 
31676
class updateItemStateVat_result:
31677
  """
31678
  Attributes:
31679
   - success
31680
  """
31681
 
31682
  thrift_spec = (
31683
    (0, TType.BOOL, 'success', None, None, ), # 0
31684
  )
31685
 
31686
  def __init__(self, success=None,):
31687
    self.success = success
31688
 
31689
  def read(self, iprot):
31690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31692
      return
31693
    iprot.readStructBegin()
31694
    while True:
31695
      (fname, ftype, fid) = iprot.readFieldBegin()
31696
      if ftype == TType.STOP:
31697
        break
31698
      if fid == 0:
31699
        if ftype == TType.BOOL:
31700
          self.success = iprot.readBool();
31701
        else:
31702
          iprot.skip(ftype)
31703
      else:
31704
        iprot.skip(ftype)
31705
      iprot.readFieldEnd()
31706
    iprot.readStructEnd()
31707
 
31708
  def write(self, oprot):
31709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31711
      return
31712
    oprot.writeStructBegin('updateItemStateVat_result')
31713
    if self.success is not None:
31714
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31715
      oprot.writeBool(self.success)
31716
      oprot.writeFieldEnd()
31717
    oprot.writeFieldStop()
31718
    oprot.writeStructEnd()
31719
 
31720
  def validate(self):
31721
    return
31722
 
31723
 
31724
  def __repr__(self):
31725
    L = ['%s=%r' % (key, value)
31726
      for key, value in self.__dict__.iteritems()]
31727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31728
 
31729
  def __eq__(self, other):
31730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31731
 
31732
  def __ne__(self, other):
31733
    return not (self == other)
12620 amit.gupta 31734
 
31735
class getExAffiliateItemInfo_args:
31736
 
31737
  thrift_spec = (
31738
  )
31739
 
31740
  def read(self, iprot):
31741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31743
      return
31744
    iprot.readStructBegin()
31745
    while True:
31746
      (fname, ftype, fid) = iprot.readFieldBegin()
31747
      if ftype == TType.STOP:
31748
        break
31749
      else:
31750
        iprot.skip(ftype)
31751
      iprot.readFieldEnd()
31752
    iprot.readStructEnd()
31753
 
31754
  def write(self, oprot):
31755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31757
      return
31758
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
31759
    oprot.writeFieldStop()
31760
    oprot.writeStructEnd()
31761
 
31762
  def validate(self):
31763
    return
31764
 
31765
 
31766
  def __repr__(self):
31767
    L = ['%s=%r' % (key, value)
31768
      for key, value in self.__dict__.iteritems()]
31769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31770
 
31771
  def __eq__(self, other):
31772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31773
 
31774
  def __ne__(self, other):
31775
    return not (self == other)
31776
 
31777
class getExAffiliateItemInfo_result:
31778
  """
31779
  Attributes:
31780
   - success
31781
  """
31782
 
31783
  thrift_spec = (
31784
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
31785
  )
31786
 
31787
  def __init__(self, success=None,):
31788
    self.success = success
31789
 
31790
  def read(self, iprot):
31791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31793
      return
31794
    iprot.readStructBegin()
31795
    while True:
31796
      (fname, ftype, fid) = iprot.readFieldBegin()
31797
      if ftype == TType.STOP:
31798
        break
31799
      if fid == 0:
31800
        if ftype == TType.MAP:
31801
          self.success = {}
31802
          (_ktype764, _vtype765, _size763 ) = iprot.readMapBegin() 
31803
          for _i767 in xrange(_size763):
31804
            _key768 = iprot.readI64();
31805
            _val769 = ExclusiveAffiliateItemInfo()
31806
            _val769.read(iprot)
31807
            self.success[_key768] = _val769
31808
          iprot.readMapEnd()
31809
        else:
31810
          iprot.skip(ftype)
31811
      else:
31812
        iprot.skip(ftype)
31813
      iprot.readFieldEnd()
31814
    iprot.readStructEnd()
31815
 
31816
  def write(self, oprot):
31817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31819
      return
31820
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
31821
    if self.success is not None:
31822
      oprot.writeFieldBegin('success', TType.MAP, 0)
31823
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
31824
      for kiter770,viter771 in self.success.items():
31825
        oprot.writeI64(kiter770)
31826
        viter771.write(oprot)
31827
      oprot.writeMapEnd()
31828
      oprot.writeFieldEnd()
31829
    oprot.writeFieldStop()
31830
    oprot.writeStructEnd()
31831
 
31832
  def validate(self):
31833
    return
31834
 
31835
 
31836
  def __repr__(self):
31837
    L = ['%s=%r' % (key, value)
31838
      for key, value in self.__dict__.iteritems()]
31839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31840
 
31841
  def __eq__(self, other):
31842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31843
 
31844
  def __ne__(self, other):
31845
    return not (self == other)