Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
7438 amit.gupta 46
  def getItemsStatus(self, itemIds):
47
    """
48
    Parameters:
49
     - itemIds
50
    """
51
    pass
52
 
5944 mandeep.dh 53
  def getItemStatusDescription(self, itemId):
54
    """
55
    Parameters:
56
     - itemId
57
    """
58
    pass
59
 
60
  def startItemOn(self, item_id, timestamp):
61
    """
62
    Parameters:
63
     - item_id
64
     - timestamp
65
    """
66
    pass
67
 
68
  def retireItemOn(self, item_id, timestamp):
69
    """
70
    Parameters:
71
     - item_id
72
     - timestamp
73
    """
74
    pass
75
 
76
  def changeItemStatus(self, item_id, timestamp, newstatus):
77
    """
78
    Parameters:
79
     - item_id
80
     - timestamp
81
     - newstatus
82
    """
83
    pass
84
 
85
  def getItem(self, item_id):
86
    """
87
    Parameters:
88
     - item_id
89
    """
90
    pass
91
 
92
  def getItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getValidItemsByCatalogId(self, catalog_item_id):
100
    """
101
    Parameters:
102
     - catalog_item_id
103
    """
104
    pass
105
 
106
  def getAllItems(self, isActive):
107
    """
108
    Parameters:
109
     - isActive
110
    """
111
    pass
112
 
113
  def getAllItemsByStatus(self, itemStatus):
114
    """
115
    Parameters:
116
     - itemStatus
117
    """
118
    pass
119
 
9253 rajveer 120
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 121
    """
122
    Parameters:
123
     - entityId
124
     - category
125
     - brand
126
     - modelName
127
     - modelNumber
9253 rajveer 128
     - isAndroid
5944 mandeep.dh 129
    """
130
    pass
131
 
12567 amit.gupta 132
  def getVatRates(self, itemId, categoryId):
133
    """
134
    Parameters:
135
     - itemId
136
     - categoryId
137
    """
138
    pass
139
 
5944 mandeep.dh 140
  def getAllItemsInRange(self, offset, limit):
141
    """
142
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
143
 
144
    Parameters:
145
     - offset
146
     - limit
147
    """
148
    pass
149
 
150
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
151
    """
152
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
153
 
154
    Parameters:
155
     - itemStatus
156
     - offset
157
     - limit
158
    """
159
    pass
160
 
161
  def getItemCountByStatus(self, useStatus, itemStatus):
162
    """
163
    Gets a count of all items by status
164
 
165
    Parameters:
166
     - useStatus
167
     - itemStatus
168
    """
169
    pass
170
 
171
  def getBestSellers(self, ):
172
    pass
173
 
174
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestSellersCount(self, ):
185
    pass
186
 
187
  def getBestDeals(self, ):
188
    pass
189
 
190
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getBestDealsCount(self, ):
201
    pass
202
 
203
  def getComingSoon(self, ):
204
    pass
205
 
206
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
207
    """
208
    Parameters:
209
     - beginIndex
210
     - totalItems
211
     - brand
212
     - category
213
    """
214
    pass
215
 
216
  def getComingSoonCount(self, ):
217
    pass
218
 
219
  def getLatestArrivals(self, ):
220
    """
221
    Returns a list of items sorted in the descending order by start date.
222
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
223
    """
224
    pass
225
 
226
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
227
    """
228
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
229
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
230
 
231
    Parameters:
232
     - beginIndex
233
     - totalItems
234
     - brand
235
     - categories
236
    """
237
    pass
238
 
239
  def getLatestArrivalsCount(self, ):
240
    """
241
    Get the total number of latest arrivals we are willing to show.
242
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
243
    """
244
    pass
245
 
246
  def generateNewEntityID(self, ):
247
    pass
248
 
249
  def addCategory(self, category):
250
    """
251
    All category related functions
252
 
253
    Parameters:
254
     - category
255
    """
256
    pass
257
 
258
  def getCategory(self, id):
259
    """
260
    Parameters:
261
     - id
262
    """
263
    pass
264
 
265
  def getAllCategories(self, ):
266
    pass
267
 
268
  def getAllSimilarItems(self, itemId):
269
    """
270
    Returns the list of similar items.
271
 
272
    Parameters:
273
     - itemId
274
    """
275
    pass
276
 
277
  def addSimilarItem(self, itemId, catalogItemId):
278
    """
279
    Adds similar item.
280
 
281
    Parameters:
282
     - itemId
283
     - catalogItemId
284
    """
285
    pass
286
 
6512 kshitij.so 287
  def addTag(self, displayName, itemId):
288
    """
289
    Tag Related
290
 
291
    Parameters:
292
     - displayName
293
     - itemId
294
    """
295
    pass
296
 
297
  def deleteEntityTag(self, displayName, itemId):
298
    """
299
    Parameters:
300
     - displayName
301
     - itemId
302
    """
303
    pass
304
 
305
  def deleteTag(self, displayName):
306
    """
307
    Parameters:
308
     - displayName
309
    """
310
    pass
311
 
312
  def getAllTags(self, ):
313
    pass
314
 
315
  def getAllEntitiesByTagName(self, displayName):
316
    """
317
    Parameters:
318
     - displayName
319
    """
320
    pass
321
 
6845 amit.gupta 322
  def getAllEntityTags(self, ):
323
    pass
324
 
8590 kshitij.so 325
  def addBanner(self, bannerCongregate):
6850 kshitij.so 326
    """
8579 kshitij.so 327
    Banner Related
328
 
6850 kshitij.so 329
    Parameters:
8590 kshitij.so 330
     - bannerCongregate
6850 kshitij.so 331
    """
332
    pass
333
 
8579 kshitij.so 334
  def updateBanner(self, banner):
335
    """
336
    Parameters:
337
     - banner
338
    """
339
    pass
340
 
6850 kshitij.so 341
  def getAllBanners(self, ):
342
    pass
343
 
9155 kshitij.so 344
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 345
    """
346
    Parameters:
347
     - bannerName
9155 kshitij.so 348
     - bannerType
6850 kshitij.so 349
    """
350
    pass
351
 
9155 kshitij.so 352
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 353
    """
354
    Parameters:
355
     - bannerName
9155 kshitij.so 356
     - bannerType
6850 kshitij.so 357
    """
358
    pass
359
 
360
  def getActiveBanners(self, ):
361
    pass
362
 
8579 kshitij.so 363
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 364
    """
365
    Parameters:
8579 kshitij.so 366
     - bannerMaps
6849 kshitij.so 367
    """
368
    pass
369
 
8579 kshitij.so 370
  def updateBannerMap(self, bannerMap):
371
    """
372
    Parameters:
373
     - bannerMap
374
    """
375
    pass
376
 
6849 kshitij.so 377
  def deleteBannerMap(self, bannerName):
378
    """
379
    Parameters:
380
     - bannerName
381
    """
382
    pass
383
 
9155 kshitij.so 384
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 385
    """
386
    Parameters:
387
     - bannerName
9155 kshitij.so 388
     - bannerType
6849 kshitij.so 389
    """
390
    pass
391
 
8579 kshitij.so 392
  def addBannerUri(self, bannerUriMappings):
393
    """
394
    Parameters:
395
     - bannerUriMappings
396
    """
397
    pass
398
 
9155 kshitij.so 399
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 400
    """
401
    Parameters:
402
     - bannerName
9155 kshitij.so 403
     - bannerType
8579 kshitij.so 404
    """
405
    pass
406
 
407
  def addCampaign(self, campaign):
408
    """
409
    Parameters:
410
     - campaign
411
    """
412
    pass
413
 
414
  def getCampaigns(self, campaignName):
415
    """
416
    Parameters:
417
     - campaignName
418
    """
419
    pass
420
 
421
  def deleteCampaign(self, campaignId):
422
    """
423
    Parameters:
424
     - campaignId
425
    """
426
    pass
427
 
428
  def getAllCampaigns(self, ):
429
    pass
430
 
9155 kshitij.so 431
  def getActiveBannersForMobileSite(self, ):
432
    pass
433
 
5944 mandeep.dh 434
  def deleteSimilarItem(self, itemId, catalogItemId):
435
    """
436
    Delete similar item.
437
 
438
    Parameters:
439
     - itemId
440
     - catalogItemId
441
    """
442
    pass
443
 
444
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
445
    """
446
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
447
    If yes, returns the itemId else returns 0
448
 
449
    Parameters:
450
     - brand
451
     - modelNumber
452
     - modelName
453
     - color
454
    """
455
    pass
456
 
457
  def validateRiskyStatus(self, itemId):
458
    """
459
    Check wether item is risky and change status if inventory is not available for risky items
460
 
461
    Parameters:
462
     - itemId
463
    """
464
    pass
465
 
466
  def changeItemRiskyFlag(self, itemId, risky):
467
    """
468
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
469
 
470
    Parameters:
471
     - itemId
472
     - risky
473
    """
474
    pass
475
 
476
  def getItemsByRiskyFlag(self, ):
477
    """
478
    Returns list of items marked as risky.
479
    """
480
    pass
481
 
482
  def getItemsForMasterSheet(self, category, brand):
483
    """
484
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
485
 
486
    Parameters:
487
     - category
488
     - brand
489
    """
490
    pass
491
 
492
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
493
    """
494
    Returns list of catalog ids of items with same similarity index as of the given itemId
495
 
496
    Parameters:
497
     - beginIndex
498
     - totalItems
499
     - itemId
500
    """
501
    pass
502
 
503
  def addProductNotification(self, itemId, email):
504
    """
505
    Add user requests for out of stock items. Once user will ask for notify me an entry will
506
 
507
    Parameters:
508
     - itemId
509
     - email
510
    """
511
    pass
512
 
513
  def sendProductNotifications(self, ):
514
    """
515
    Send the product notifications to the users for items which has stock.
516
    """
517
    pass
518
 
519
  def getAllBrandsByCategory(self, categoryId):
520
    """
521
    Returns list of brand names for a given category Id
522
 
523
    Parameters:
524
     - categoryId
525
    """
526
    pass
527
 
528
  def getAllBrands(self, ):
529
    """
530
    Returns list of brand names
531
    """
532
    pass
533
 
534
  def getAllSources(self, ):
535
    """
536
    Return list of all sources
537
    """
538
    pass
539
 
540
  def getItemPricingBySource(self, itemId, sourceId):
541
    """
542
    Returns the pricing information of an item. If no information is found, exception will be thrown.
543
 
544
    Parameters:
545
     - itemId
546
     - sourceId
547
    """
548
    pass
549
 
550
  def addSourceItemPricing(self, sourceItemPricing):
551
    """
552
    Adds prices to be displayed corresponding to the item if user comes from a source.
553
    If item is not found or source is not found, it will throw exception.
554
 
555
    Parameters:
556
     - sourceItemPricing
557
    """
558
    pass
559
 
560
  def getAllSourcePricing(self, itemId):
561
    """
562
    Returns the list of source pricing information of an item.
563
    Raises an exception if item not found corresponding to itemId
564
 
565
    Parameters:
566
     - itemId
567
    """
568
    pass
569
 
570
  def getItemForSource(self, item_id, sourceId):
571
    """
572
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
573
 
574
    Parameters:
575
     - item_id
576
     - sourceId
577
    """
578
    pass
579
 
580
  def searchItemsInRange(self, searchTerms, offset, limit):
581
    """
582
    Searches items matching the the given terms in the catalog and returns results within the specified range.
583
 
584
    Parameters:
585
     - searchTerms
586
     - offset
587
     - limit
588
    """
589
    pass
590
 
591
  def getSearchResultCount(self, searchTerms):
592
    """
593
    Gets the count of search results for the given search terms so that the user can go through all the pages.
594
 
595
    Parameters:
596
     - searchTerms
597
    """
598
    pass
599
 
600
  def getProductNotifications(self, startDateTime):
601
    """
602
    Returns a list of product notifications added after a supplied datetime
603
 
604
    Parameters:
605
     - startDateTime
606
    """
607
    pass
608
 
7897 amar.kumar 609
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 610
    """
611
    Returns a list of count of requests for product notification against each item
612
 
613
    Parameters:
614
     - startDateTime
7897 amar.kumar 615
     - categoryId
5944 mandeep.dh 616
    """
617
    pass
618
 
619
  def addAuthorizationLog(self, itemId, username, reason):
620
    """
621
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
622
 
623
    Parameters:
624
     - itemId
625
     - username
626
     - reason
627
    """
628
    pass
629
 
630
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
631
    """
632
    Parameters:
633
     - catalog_item_id
634
     - voucherType
635
     - voucherAmount
636
    """
637
    pass
638
 
639
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
640
    """
641
    Parameters:
642
     - catalog_item_id
643
     - voucherType
644
    """
645
    pass
646
 
647
  def getVoucherAmount(self, itemId, voucherType):
648
    """
649
    Parameters:
650
     - itemId
651
     - voucherType
652
    """
653
    pass
654
 
655
  def getAllItemVouchers(self, itemId):
656
    """
657
    Parameters:
658
     - itemId
659
    """
660
    pass
661
 
662
  def isValidCatalogItemId(self, catalog_item_id):
663
    """
664
    Parameters:
665
     - catalog_item_id
666
    """
667
    pass
668
 
7330 amit.gupta 669
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 670
    """
671
    Parameters:
672
     - itemId
7330 amit.gupta 673
     - stateId
6039 amit.gupta 674
     - price
675
    """
676
    pass
5944 mandeep.dh 677
 
6039 amit.gupta 678
  def getVatAmountForItem(self, itemId, price):
679
    """
680
    Parameters:
681
     - itemId
682
     - price
683
    """
684
    pass
685
 
6531 vikram.rag 686
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
687
    """
688
    Parameters:
689
     - offset
690
     - limit
691
    """
692
    pass
6039 amit.gupta 693
 
6821 amar.kumar 694
  def getAllAliveItems(self, ):
695
    pass
696
 
6921 anupam.sin 697
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 698
    """
699
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 700
 
6805 anupam.sin 701
    Parameters:
702
     - itemId
6921 anupam.sin 703
     - price
6805 anupam.sin 704
     - insurerId
705
     - quantity
706
    """
707
    pass
708
 
709
  def getInsurer(self, insurerId):
710
    """
711
    Parameters:
712
     - insurerId
713
    """
714
    pass
715
 
6838 vikram.rag 716
  def getAllInsurers(self, ):
717
    pass
6805 anupam.sin 718
 
6962 rajveer 719
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
720
    """
721
    Parameters:
722
     - insurerId
723
     - amount
724
    """
725
    pass
6838 vikram.rag 726
 
7190 amar.kumar 727
  def getFreebieForItem(self, itemId):
728
    """
729
    Parameters:
730
     - itemId
731
    """
732
    pass
6962 rajveer 733
 
7190 amar.kumar 734
  def addOrUpdateFreebieForItem(self, freebieItem):
735
    """
736
    Parameters:
737
     - freebieItem
738
    """
739
    pass
740
 
7272 amit.gupta 741
  def addOrUpdateBrandInfo(self, brandInfo):
742
    """
743
    Parameters:
744
     - brandInfo
745
    """
746
    pass
747
 
748
  def getBrandInfo(self, ):
749
    pass
750
 
7256 rajveer 751
  def getStorePricing(self, itemId):
752
    """
753
    Parameters:
754
     - itemId
755
    """
756
    pass
7190 amar.kumar 757
 
7306 rajveer 758
  def getStorePricings(self, itemIds):
759
    """
760
    Parameters:
761
     - itemIds
762
    """
763
    pass
764
 
7382 rajveer 765
  def updateStorePricing(self, sp, allColors):
7265 rajveer 766
    """
767
    Parameters:
768
     - sp
7382 rajveer 769
     - allColors
7265 rajveer 770
    """
771
    pass
7256 rajveer 772
 
7281 kshitij.so 773
  def getAllAmazonListedItems(self, ):
774
    pass
7265 rajveer 775
 
8619 kshitij.so 776
  def searchAmazonItems(self, searchTerm, offset, limit):
777
    """
778
    Parameters:
779
     - searchTerm
780
     - offset
781
     - limit
782
    """
783
    pass
784
 
785
  def getAmazonSearchResultCount(self, searchTerm):
786
    """
787
    Parameters:
788
     - searchTerm
789
    """
790
    pass
791
 
792
  def getCountForAmazonlistedItems(self, ):
793
    pass
794
 
7281 kshitij.so 795
  def getAmazonItemDetails(self, itemId):
796
    """
797
    Parameters:
798
     - itemId
799
    """
800
    pass
801
 
8168 kshitij.so 802
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 803
    """
804
    Parameters:
8168 kshitij.so 805
     - amazonlisted
7281 kshitij.so 806
    """
807
    pass
808
 
809
  def addAmazonItem(self, amazonlisted):
810
    """
811
    Parameters:
812
     - amazonlisted
813
    """
814
    pass
815
 
7291 vikram.rag 816
  def getAsinItems(self, ):
817
    pass
7281 kshitij.so 818
 
7291 vikram.rag 819
  def getAllFbaListedItems(self, ):
820
    pass
821
 
822
  def getAllNonFbaListedItems(self, ):
823
    pass
824
 
7460 kshitij.so 825
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
826
    """
827
    Parameters:
828
     - itemId
829
     - holdInventory
830
     - defaultInventory
831
    """
832
    pass
7291 vikram.rag 833
 
7770 kshitij.so 834
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
835
    """
836
    Parameters:
837
     - type
838
     - sku
839
     - timestamp
840
    """
841
    pass
7460 kshitij.so 842
 
7897 amar.kumar 843
  def getAllParentCategories(self, ):
844
    pass
7770 kshitij.so 845
 
7977 kshitij.so 846
  def addPageViewEvent(self, pageViewEvents):
847
    """
848
    Parameters:
849
     - pageViewEvents
850
    """
851
    pass
7897 amar.kumar 852
 
7977 kshitij.so 853
  def addCartEvent(self, cartEvents):
854
    """
855
    Parameters:
856
     - cartEvents
857
    """
858
    pass
859
 
8182 amar.kumar 860
  def addEbayItem(self, ebayItem):
861
    """
862
    Parameters:
863
     - ebayItem
864
    """
865
    pass
866
 
867
  def getEbayItem(self, listingId):
868
    """
869
    Parameters:
870
     - listingId
871
    """
872
    pass
873
 
874
  def updateEbayItem(self, ebayItem):
875
    """
876
    Parameters:
877
     - ebayItem
878
    """
879
    pass
880
 
8139 kshitij.so 881
  def getAmazonListedItems(self, offset, limit):
882
    """
883
    Parameters:
884
     - offset
885
     - limit
886
    """
887
    pass
7977 kshitij.so 888
 
8168 kshitij.so 889
  def updateAmazonAttributesInBulk(self, amazonlisted):
890
    """
891
    Parameters:
892
     - amazonlisted
893
    """
894
    pass
8139 kshitij.so 895
 
8379 vikram.rag 896
  def getAllItemstoListOnFba(self, ):
897
    pass
8168 kshitij.so 898
 
8379 vikram.rag 899
  def getAllItemstoListOnNonFba(self, ):
900
    pass
901
 
8619 kshitij.so 902
  def updateAsin(self, item):
903
    """
904
    Parameters:
905
     - item
906
    """
907
    pass
8616 vikram.rag 908
 
8739 vikram.rag 909
  def addOrUpdateSnapdealItem(self, snapdealitem):
910
    """
911
    Parameters:
912
     - snapdealitem
913
    """
914
    pass
8619 kshitij.so 915
 
8739 vikram.rag 916
  def getSnapdealItem(self, item_id):
917
    """
918
    Parameters:
919
     - item_id
920
    """
921
    pass
922
 
9242 kshitij.so 923
  def getSnapdealItemDetails(self, item_id):
924
    """
925
    Parameters:
926
     - item_id
927
    """
928
    pass
929
 
8739 vikram.rag 930
  def getAllSnapdealItems(self, ):
931
    pass
932
 
9242 kshitij.so 933
  def getSnapdealItems(self, offset, limit):
934
    """
935
    Parameters:
936
     - offset
937
     - limit
938
    """
939
    pass
8739 vikram.rag 940
 
9242 kshitij.so 941
  def searchSnapdealItems(self, searchTerm, offset, limit):
942
    """
943
    Parameters:
944
     - searchTerm
945
     - offset
946
     - limit
947
    """
948
    pass
949
 
950
  def getCountForSnapdealItems(self, ):
951
    pass
952
 
953
  def getSnapdealSearchResultCount(self, searchTerm):
954
    """
955
    Parameters:
956
     - searchTerm
957
    """
958
    pass
959
 
9299 kshitij.so 960
  def getPrefferedInsurerForItem(self, itemId, insurerType):
961
    """
962
    Parameters:
963
     - itemId
964
     - insurerType
965
    """
966
    pass
9242 kshitij.so 967
 
9456 vikram.rag 968
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
969
    """
970
    Parameters:
971
     - skuAtSnapdeal
972
    """
973
    pass
9299 kshitij.so 974
 
9621 manish.sha 975
  def getProductFeedSubmit(self, catalogItemId):
976
    """
977
    Parameters:
978
     - catalogItemId
979
    """
980
    pass
9456 vikram.rag 981
 
9621 manish.sha 982
  def addProductFeedSubmit(self, productFeedSubmit):
983
    """
984
    Parameters:
985
     - productFeedSubmit
986
    """
987
    pass
988
 
989
  def updateProductFeedSubmit(self, productFeedSubmit):
990
    """
991
    Parameters:
992
     - productFeedSubmit
993
    """
994
    pass
995
 
996
  def deleteProductFeedSubmit(self, catalogItemId):
997
    """
998
    Parameters:
999
     - catalogItemId
1000
    """
1001
    pass
1002
 
1003
  def getAllProductFeedSubmit(self, ):
1004
    pass
1005
 
9724 kshitij.so 1006
  def getMarketplacedetailsForItem(self, itemId, sourceId):
1007
    """
1008
    Parameters:
1009
     - itemId
1010
     - sourceId
1011
    """
1012
    pass
9621 manish.sha 1013
 
9724 kshitij.so 1014
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1015
    """
1016
    Parameters:
1017
     - marketPlaceItem
1018
    """
1019
    pass
1020
 
9779 kshitij.so 1021
  def getCostingForMarketplace(self, source, item_id):
1022
    """
1023
    Parameters:
1024
     - source
1025
     - item_id
1026
    """
1027
    pass
1028
 
9776 vikram.rag 1029
  def getMarketPlaceItemsForPriceUpdate(self, source):
1030
    """
1031
    Parameters:
1032
     - source
1033
    """
1034
    pass
9724 kshitij.so 1035
 
9816 kshitij.so 1036
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 1037
    """
1038
    Parameters:
1039
     - skulist
1040
     - timestamp
9816 kshitij.so 1041
     - source
9776 vikram.rag 1042
    """
1043
    pass
1044
 
9861 rajveer 1045
  def updateItemHoldInventory(self, itemHoldMap):
1046
    """
1047
    Parameters:
1048
     - itemHoldMap
1049
    """
1050
    pass
9776 vikram.rag 1051
 
9895 vikram.rag 1052
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
1053
    """
1054
    Parameters:
1055
     - item_id
1056
     - vendor_id
1057
     - nlc
1058
    """
1059
    pass
9861 rajveer 1060
 
9945 vikram.rag 1061
  def getAllFlipkartItems(self, ):
1062
    pass
9895 vikram.rag 1063
 
10097 kshitij.so 1064
  def addOrUpdateFlipkartItem(self, flipkartitem):
1065
    """
1066
    Parameters:
1067
     - flipkartitem
1068
    """
1069
    pass
9945 vikram.rag 1070
 
10097 kshitij.so 1071
  def getFlipkartItem(self, item_id):
1072
    """
1073
    Parameters:
1074
     - item_id
1075
    """
1076
    pass
1077
 
1078
  def getFlipkartItemDetails(self, item_id):
1079
    """
1080
    Parameters:
1081
     - item_id
1082
    """
1083
    pass
1084
 
1085
  def getFlipkartItems(self, offset, limit):
1086
    """
1087
    Parameters:
1088
     - offset
1089
     - limit
1090
    """
1091
    pass
1092
 
1093
  def searchFlipkartItems(self, searchTerm, offset, limit):
1094
    """
1095
    Parameters:
1096
     - searchTerm
1097
     - offset
1098
     - limit
1099
    """
1100
    pass
1101
 
1102
  def getCountForFlipkartItems(self, ):
1103
    pass
1104
 
1105
  def getFlipkartSearchResultCount(self, searchTerm):
1106
    """
1107
    Parameters:
1108
     - searchTerm
1109
    """
1110
    pass
1111
 
1112
  def getAllFkItems(self, ):
1113
    pass
1114
 
10140 vikram.rag 1115
  def getFlipkartItemBySkyAtFlipkart(self, sku):
1116
    """
1117
    Parameters:
1118
     - sku
1119
    """
1120
    pass
10097 kshitij.so 1121
 
11015 kshitij.so 1122
  def getMarketplaceHistory(self, source, offset, itemId):
1123
    """
1124
    Parameters:
1125
     - source
1126
     - offset
1127
     - itemId
1128
    """
1129
    pass
1130
 
10909 vikram.rag 1131
  def getAllFbbListedItems(self, ):
1132
    pass
10140 vikram.rag 1133
 
10924 vikram.rag 1134
  def getAllFbbPricingItems(self, ):
1135
    pass
10909 vikram.rag 1136
 
11015 kshitij.so 1137
  def getCountForMarketplaceHistory(self, source, itemId):
1138
    """
1139
    Parameters:
1140
     - source
1141
     - itemId
1142
    """
1143
    pass
10924 vikram.rag 1144
 
11015 kshitij.so 1145
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
1146
    """
1147
    Parameters:
1148
     - source
1149
     - startDate
1150
     - endDate
1151
     - offset
1152
     - limit
1153
     - itemId
1154
    """
1155
    pass
1156
 
11531 vikram.rag 1157
  def getPrivateDealDetails(self, item_id):
1158
    """
1159
    Parameters:
1160
     - item_id
1161
    """
1162
    pass
11015 kshitij.so 1163
 
11531 vikram.rag 1164
  def getPrivateDealItems(self, offset, limit):
1165
    """
1166
    Parameters:
1167
     - offset
1168
     - limit
1169
    """
1170
    pass
1171
 
11653 amit.gupta 1172
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
1173
    """
1174
    Parameters:
1175
     - itemIds
1176
     - daysDelta
1177
    """
11592 amit.gupta 1178
    pass
1179
 
11531 vikram.rag 1180
  def addOrUpdatePrivateDeal(self, privateDeal):
1181
    """
1182
    Parameters:
1183
     - privateDeal
1184
    """
1185
    pass
1186
 
11635 vikram.rag 1187
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
1188
    """
1189
    Parameters:
1190
     - beginIndex
1191
     - totalItems
1192
    """
1193
    pass
11531 vikram.rag 1194
 
11645 amit.gupta 1195
  def getPrivateDealsCount(self, ):
1196
    pass
11635 vikram.rag 1197
 
11905 kshitij.so 1198
  def getAmazonOutSyncItems(self, item_id):
1199
    """
1200
    Parameters:
1201
     - item_id
1202
    """
1203
    pass
11645 amit.gupta 1204
 
11905 kshitij.so 1205
  def getAllPrivateDealsComparison(self, ):
1206
    pass
1207
 
12133 kshitij.so 1208
  def getAllSnapdealMarketplaceItem(self, ):
1209
    pass
11905 kshitij.so 1210
 
12133 kshitij.so 1211
  def getAllFlipkartMarketplaceItem(self, ):
1212
    pass
1213
 
12243 kshitij.so 1214
  def addCompetitorScraping(self, competitorPricingMap):
1215
    """
1216
    Parameters:
1217
     - competitorPricingMap
1218
    """
1219
    pass
12133 kshitij.so 1220
 
12243 kshitij.so 1221
  def getPreviousCompetitorScraping(self, delta):
1222
    """
1223
    Parameters:
1224
     - delta
1225
    """
1226
    pass
1227
 
12256 kshitij.so 1228
  def getUploadResultById(self, uploadId):
1229
    """
1230
    Parameters:
1231
     - uploadId
1232
    """
1233
    pass
12243 kshitij.so 1234
 
12363 kshitij.so 1235
  def addAmazonPromotion(self, amazonPromotions):
1236
    """
1237
    Parameters:
1238
     - amazonPromotions
1239
    """
1240
    pass
12256 kshitij.so 1241
 
12363 kshitij.so 1242
  def getAmazonPromotion(self, startDate, endDate):
1243
    """
1244
    Parameters:
1245
     - startDate
1246
     - endDate
1247
    """
1248
    pass
1249
 
1250
  def updateAmazonPromotion(self, amazonPromotions):
1251
    """
1252
    Parameters:
1253
     - amazonPromotions
1254
    """
1255
    pass
1256
 
12567 amit.gupta 1257
  def markPartiallyActive(self, itemId, categoryId):
1258
    """
1259
    Parameters:
1260
     - itemId
1261
     - categoryId
1262
    """
1263
    pass
12363 kshitij.so 1264
 
12567 amit.gupta 1265
  def updateItemStateVat(self, itemId, statevat):
1266
    """
1267
    Parameters:
1268
     - itemId
1269
     - statevat
1270
    """
1271
    pass
1272
 
12620 amit.gupta 1273
  def getExAffiliateItemInfo(self, ):
1274
    pass
12567 amit.gupta 1275
 
12888 kshitij.so 1276
  def getAllItemstoListOnFbg(self, ):
1277
    pass
12620 amit.gupta 1278
 
12892 kshitij.so 1279
  def getAllFbgListedItems(self, ):
1280
    pass
12888 kshitij.so 1281
 
12892 kshitij.so 1282
 
5944 mandeep.dh 1283
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1284
  def __init__(self, iprot, oprot=None):
1285
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1286
 
1287
  def addItem(self, item):
1288
    """
1289
    Availability and inventory attributes
1290
 
1291
    Parameters:
1292
     - item
1293
    """
1294
    self.send_addItem(item)
1295
    return self.recv_addItem()
1296
 
1297
  def send_addItem(self, item):
1298
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1299
    args = addItem_args()
1300
    args.item = item
1301
    args.write(self._oprot)
1302
    self._oprot.writeMessageEnd()
1303
    self._oprot.trans.flush()
1304
 
1305
  def recv_addItem(self, ):
1306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1307
    if mtype == TMessageType.EXCEPTION:
1308
      x = TApplicationException()
1309
      x.read(self._iprot)
1310
      self._iprot.readMessageEnd()
1311
      raise x
1312
    result = addItem_result()
1313
    result.read(self._iprot)
1314
    self._iprot.readMessageEnd()
1315
    if result.success is not None:
1316
      return result.success
1317
    if result.cex is not None:
1318
      raise result.cex
1319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1320
 
1321
  def updateItem(self, item):
1322
    """
1323
    Parameters:
1324
     - item
1325
    """
1326
    self.send_updateItem(item)
1327
    return self.recv_updateItem()
1328
 
1329
  def send_updateItem(self, item):
1330
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1331
    args = updateItem_args()
1332
    args.item = item
1333
    args.write(self._oprot)
1334
    self._oprot.writeMessageEnd()
1335
    self._oprot.trans.flush()
1336
 
1337
  def recv_updateItem(self, ):
1338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1339
    if mtype == TMessageType.EXCEPTION:
1340
      x = TApplicationException()
1341
      x.read(self._iprot)
1342
      self._iprot.readMessageEnd()
1343
      raise x
1344
    result = updateItem_result()
1345
    result.read(self._iprot)
1346
    self._iprot.readMessageEnd()
1347
    if result.success is not None:
1348
      return result.success
1349
    if result.cex is not None:
1350
      raise result.cex
1351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1352
 
1353
  def isActive(self, itemId):
1354
    """
1355
    Checks if the item given to the corresponding itemId is active. If it's active,
1356
    whether it's risky and if it's risky, its inventory position.
1357
 
1358
    Parameters:
1359
     - itemId
1360
    """
1361
    self.send_isActive(itemId)
1362
    return self.recv_isActive()
1363
 
1364
  def send_isActive(self, itemId):
1365
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1366
    args = isActive_args()
1367
    args.itemId = itemId
1368
    args.write(self._oprot)
1369
    self._oprot.writeMessageEnd()
1370
    self._oprot.trans.flush()
1371
 
1372
  def recv_isActive(self, ):
1373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1374
    if mtype == TMessageType.EXCEPTION:
1375
      x = TApplicationException()
1376
      x.read(self._iprot)
1377
      self._iprot.readMessageEnd()
1378
      raise x
1379
    result = isActive_result()
1380
    result.read(self._iprot)
1381
    self._iprot.readMessageEnd()
1382
    if result.success is not None:
1383
      return result.success
1384
    if result.isex is not None:
1385
      raise result.isex
1386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1387
 
7438 amit.gupta 1388
  def getItemsStatus(self, itemIds):
1389
    """
1390
    Parameters:
1391
     - itemIds
1392
    """
1393
    self.send_getItemsStatus(itemIds)
1394
    return self.recv_getItemsStatus()
1395
 
1396
  def send_getItemsStatus(self, itemIds):
1397
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1398
    args = getItemsStatus_args()
1399
    args.itemIds = itemIds
1400
    args.write(self._oprot)
1401
    self._oprot.writeMessageEnd()
1402
    self._oprot.trans.flush()
1403
 
1404
  def recv_getItemsStatus(self, ):
1405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1406
    if mtype == TMessageType.EXCEPTION:
1407
      x = TApplicationException()
1408
      x.read(self._iprot)
1409
      self._iprot.readMessageEnd()
1410
      raise x
1411
    result = getItemsStatus_result()
1412
    result.read(self._iprot)
1413
    self._iprot.readMessageEnd()
1414
    if result.success is not None:
1415
      return result.success
1416
    if result.isex is not None:
1417
      raise result.isex
1418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1419
 
5944 mandeep.dh 1420
  def getItemStatusDescription(self, itemId):
1421
    """
1422
    Parameters:
1423
     - itemId
1424
    """
1425
    self.send_getItemStatusDescription(itemId)
1426
    return self.recv_getItemStatusDescription()
1427
 
1428
  def send_getItemStatusDescription(self, itemId):
1429
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1430
    args = getItemStatusDescription_args()
1431
    args.itemId = itemId
1432
    args.write(self._oprot)
1433
    self._oprot.writeMessageEnd()
1434
    self._oprot.trans.flush()
1435
 
1436
  def recv_getItemStatusDescription(self, ):
1437
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1438
    if mtype == TMessageType.EXCEPTION:
1439
      x = TApplicationException()
1440
      x.read(self._iprot)
1441
      self._iprot.readMessageEnd()
1442
      raise x
1443
    result = getItemStatusDescription_result()
1444
    result.read(self._iprot)
1445
    self._iprot.readMessageEnd()
1446
    if result.success is not None:
1447
      return result.success
1448
    if result.isex is not None:
1449
      raise result.isex
1450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1451
 
1452
  def startItemOn(self, item_id, timestamp):
1453
    """
1454
    Parameters:
1455
     - item_id
1456
     - timestamp
1457
    """
1458
    self.send_startItemOn(item_id, timestamp)
1459
    self.recv_startItemOn()
1460
 
1461
  def send_startItemOn(self, item_id, timestamp):
1462
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1463
    args = startItemOn_args()
1464
    args.item_id = item_id
1465
    args.timestamp = timestamp
1466
    args.write(self._oprot)
1467
    self._oprot.writeMessageEnd()
1468
    self._oprot.trans.flush()
1469
 
1470
  def recv_startItemOn(self, ):
1471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1472
    if mtype == TMessageType.EXCEPTION:
1473
      x = TApplicationException()
1474
      x.read(self._iprot)
1475
      self._iprot.readMessageEnd()
1476
      raise x
1477
    result = startItemOn_result()
1478
    result.read(self._iprot)
1479
    self._iprot.readMessageEnd()
1480
    if result.cex is not None:
1481
      raise result.cex
1482
    return
1483
 
1484
  def retireItemOn(self, item_id, timestamp):
1485
    """
1486
    Parameters:
1487
     - item_id
1488
     - timestamp
1489
    """
1490
    self.send_retireItemOn(item_id, timestamp)
1491
    self.recv_retireItemOn()
1492
 
1493
  def send_retireItemOn(self, item_id, timestamp):
1494
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1495
    args = retireItemOn_args()
1496
    args.item_id = item_id
1497
    args.timestamp = timestamp
1498
    args.write(self._oprot)
1499
    self._oprot.writeMessageEnd()
1500
    self._oprot.trans.flush()
1501
 
1502
  def recv_retireItemOn(self, ):
1503
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1504
    if mtype == TMessageType.EXCEPTION:
1505
      x = TApplicationException()
1506
      x.read(self._iprot)
1507
      self._iprot.readMessageEnd()
1508
      raise x
1509
    result = retireItemOn_result()
1510
    result.read(self._iprot)
1511
    self._iprot.readMessageEnd()
1512
    if result.cex is not None:
1513
      raise result.cex
1514
    return
1515
 
1516
  def changeItemStatus(self, item_id, timestamp, newstatus):
1517
    """
1518
    Parameters:
1519
     - item_id
1520
     - timestamp
1521
     - newstatus
1522
    """
1523
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1524
    self.recv_changeItemStatus()
1525
 
1526
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1527
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1528
    args = changeItemStatus_args()
1529
    args.item_id = item_id
1530
    args.timestamp = timestamp
1531
    args.newstatus = newstatus
1532
    args.write(self._oprot)
1533
    self._oprot.writeMessageEnd()
1534
    self._oprot.trans.flush()
1535
 
1536
  def recv_changeItemStatus(self, ):
1537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1538
    if mtype == TMessageType.EXCEPTION:
1539
      x = TApplicationException()
1540
      x.read(self._iprot)
1541
      self._iprot.readMessageEnd()
1542
      raise x
1543
    result = changeItemStatus_result()
1544
    result.read(self._iprot)
1545
    self._iprot.readMessageEnd()
1546
    if result.cex is not None:
1547
      raise result.cex
1548
    return
1549
 
1550
  def getItem(self, item_id):
1551
    """
1552
    Parameters:
1553
     - item_id
1554
    """
1555
    self.send_getItem(item_id)
1556
    return self.recv_getItem()
1557
 
1558
  def send_getItem(self, item_id):
1559
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1560
    args = getItem_args()
1561
    args.item_id = item_id
1562
    args.write(self._oprot)
1563
    self._oprot.writeMessageEnd()
1564
    self._oprot.trans.flush()
1565
 
1566
  def recv_getItem(self, ):
1567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1568
    if mtype == TMessageType.EXCEPTION:
1569
      x = TApplicationException()
1570
      x.read(self._iprot)
1571
      self._iprot.readMessageEnd()
1572
      raise x
1573
    result = getItem_result()
1574
    result.read(self._iprot)
1575
    self._iprot.readMessageEnd()
1576
    if result.success is not None:
1577
      return result.success
1578
    if result.cex is not None:
1579
      raise result.cex
1580
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1581
 
1582
  def getItemsByCatalogId(self, catalog_item_id):
1583
    """
1584
    Parameters:
1585
     - catalog_item_id
1586
    """
1587
    self.send_getItemsByCatalogId(catalog_item_id)
1588
    return self.recv_getItemsByCatalogId()
1589
 
1590
  def send_getItemsByCatalogId(self, catalog_item_id):
1591
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1592
    args = getItemsByCatalogId_args()
1593
    args.catalog_item_id = catalog_item_id
1594
    args.write(self._oprot)
1595
    self._oprot.writeMessageEnd()
1596
    self._oprot.trans.flush()
1597
 
1598
  def recv_getItemsByCatalogId(self, ):
1599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1600
    if mtype == TMessageType.EXCEPTION:
1601
      x = TApplicationException()
1602
      x.read(self._iprot)
1603
      self._iprot.readMessageEnd()
1604
      raise x
1605
    result = getItemsByCatalogId_result()
1606
    result.read(self._iprot)
1607
    self._iprot.readMessageEnd()
1608
    if result.success is not None:
1609
      return result.success
1610
    if result.cex is not None:
1611
      raise result.cex
1612
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1613
 
1614
  def getValidItemsByCatalogId(self, catalog_item_id):
1615
    """
1616
    Parameters:
1617
     - catalog_item_id
1618
    """
1619
    self.send_getValidItemsByCatalogId(catalog_item_id)
1620
    return self.recv_getValidItemsByCatalogId()
1621
 
1622
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1623
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1624
    args = getValidItemsByCatalogId_args()
1625
    args.catalog_item_id = catalog_item_id
1626
    args.write(self._oprot)
1627
    self._oprot.writeMessageEnd()
1628
    self._oprot.trans.flush()
1629
 
1630
  def recv_getValidItemsByCatalogId(self, ):
1631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1632
    if mtype == TMessageType.EXCEPTION:
1633
      x = TApplicationException()
1634
      x.read(self._iprot)
1635
      self._iprot.readMessageEnd()
1636
      raise x
1637
    result = getValidItemsByCatalogId_result()
1638
    result.read(self._iprot)
1639
    self._iprot.readMessageEnd()
1640
    if result.success is not None:
1641
      return result.success
1642
    if result.cex is not None:
1643
      raise result.cex
1644
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1645
 
1646
  def getAllItems(self, isActive):
1647
    """
1648
    Parameters:
1649
     - isActive
1650
    """
1651
    self.send_getAllItems(isActive)
1652
    return self.recv_getAllItems()
1653
 
1654
  def send_getAllItems(self, isActive):
1655
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1656
    args = getAllItems_args()
1657
    args.isActive = isActive
1658
    args.write(self._oprot)
1659
    self._oprot.writeMessageEnd()
1660
    self._oprot.trans.flush()
1661
 
1662
  def recv_getAllItems(self, ):
1663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1664
    if mtype == TMessageType.EXCEPTION:
1665
      x = TApplicationException()
1666
      x.read(self._iprot)
1667
      self._iprot.readMessageEnd()
1668
      raise x
1669
    result = getAllItems_result()
1670
    result.read(self._iprot)
1671
    self._iprot.readMessageEnd()
1672
    if result.success is not None:
1673
      return result.success
1674
    if result.cex is not None:
1675
      raise result.cex
1676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1677
 
1678
  def getAllItemsByStatus(self, itemStatus):
1679
    """
1680
    Parameters:
1681
     - itemStatus
1682
    """
1683
    self.send_getAllItemsByStatus(itemStatus)
1684
    return self.recv_getAllItemsByStatus()
1685
 
1686
  def send_getAllItemsByStatus(self, itemStatus):
1687
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1688
    args = getAllItemsByStatus_args()
1689
    args.itemStatus = itemStatus
1690
    args.write(self._oprot)
1691
    self._oprot.writeMessageEnd()
1692
    self._oprot.trans.flush()
1693
 
1694
  def recv_getAllItemsByStatus(self, ):
1695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1696
    if mtype == TMessageType.EXCEPTION:
1697
      x = TApplicationException()
1698
      x.read(self._iprot)
1699
      self._iprot.readMessageEnd()
1700
      raise x
1701
    result = getAllItemsByStatus_result()
1702
    result.read(self._iprot)
1703
    self._iprot.readMessageEnd()
1704
    if result.success is not None:
1705
      return result.success
1706
    if result.cex is not None:
1707
      raise result.cex
1708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1709
 
9253 rajveer 1710
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1711
    """
1712
    Parameters:
1713
     - entityId
1714
     - category
1715
     - brand
1716
     - modelName
1717
     - modelNumber
9253 rajveer 1718
     - isAndroid
5944 mandeep.dh 1719
    """
9253 rajveer 1720
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1721
    return self.recv_markItemAsContentComplete()
1722
 
9253 rajveer 1723
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1724
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1725
    args = markItemAsContentComplete_args()
1726
    args.entityId = entityId
1727
    args.category = category
1728
    args.brand = brand
1729
    args.modelName = modelName
1730
    args.modelNumber = modelNumber
9253 rajveer 1731
    args.isAndroid = isAndroid
5944 mandeep.dh 1732
    args.write(self._oprot)
1733
    self._oprot.writeMessageEnd()
1734
    self._oprot.trans.flush()
1735
 
1736
  def recv_markItemAsContentComplete(self, ):
1737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1738
    if mtype == TMessageType.EXCEPTION:
1739
      x = TApplicationException()
1740
      x.read(self._iprot)
1741
      self._iprot.readMessageEnd()
1742
      raise x
1743
    result = markItemAsContentComplete_result()
1744
    result.read(self._iprot)
1745
    self._iprot.readMessageEnd()
1746
    if result.success is not None:
1747
      return result.success
1748
    if result.cex is not None:
1749
      raise result.cex
1750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1751
 
12567 amit.gupta 1752
  def getVatRates(self, itemId, categoryId):
1753
    """
1754
    Parameters:
1755
     - itemId
1756
     - categoryId
1757
    """
1758
    self.send_getVatRates(itemId, categoryId)
1759
    return self.recv_getVatRates()
1760
 
1761
  def send_getVatRates(self, itemId, categoryId):
1762
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1763
    args = getVatRates_args()
1764
    args.itemId = itemId
1765
    args.categoryId = categoryId
1766
    args.write(self._oprot)
1767
    self._oprot.writeMessageEnd()
1768
    self._oprot.trans.flush()
1769
 
1770
  def recv_getVatRates(self, ):
1771
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1772
    if mtype == TMessageType.EXCEPTION:
1773
      x = TApplicationException()
1774
      x.read(self._iprot)
1775
      self._iprot.readMessageEnd()
1776
      raise x
1777
    result = getVatRates_result()
1778
    result.read(self._iprot)
1779
    self._iprot.readMessageEnd()
1780
    if result.success is not None:
1781
      return result.success
1782
    if result.cex is not None:
1783
      raise result.cex
1784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1785
 
5944 mandeep.dh 1786
  def getAllItemsInRange(self, offset, limit):
1787
    """
1788
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1789
 
1790
    Parameters:
1791
     - offset
1792
     - limit
1793
    """
1794
    self.send_getAllItemsInRange(offset, limit)
1795
    return self.recv_getAllItemsInRange()
1796
 
1797
  def send_getAllItemsInRange(self, offset, limit):
1798
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1799
    args = getAllItemsInRange_args()
1800
    args.offset = offset
1801
    args.limit = limit
1802
    args.write(self._oprot)
1803
    self._oprot.writeMessageEnd()
1804
    self._oprot.trans.flush()
1805
 
1806
  def recv_getAllItemsInRange(self, ):
1807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1808
    if mtype == TMessageType.EXCEPTION:
1809
      x = TApplicationException()
1810
      x.read(self._iprot)
1811
      self._iprot.readMessageEnd()
1812
      raise x
1813
    result = getAllItemsInRange_result()
1814
    result.read(self._iprot)
1815
    self._iprot.readMessageEnd()
1816
    if result.success is not None:
1817
      return result.success
1818
    if result.cex is not None:
1819
      raise result.cex
1820
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1821
 
1822
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1823
    """
1824
    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.
1825
 
1826
    Parameters:
1827
     - itemStatus
1828
     - offset
1829
     - limit
1830
    """
1831
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1832
    return self.recv_getAllItemsByStatusInRange()
1833
 
1834
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1835
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1836
    args = getAllItemsByStatusInRange_args()
1837
    args.itemStatus = itemStatus
1838
    args.offset = offset
1839
    args.limit = limit
1840
    args.write(self._oprot)
1841
    self._oprot.writeMessageEnd()
1842
    self._oprot.trans.flush()
1843
 
1844
  def recv_getAllItemsByStatusInRange(self, ):
1845
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1846
    if mtype == TMessageType.EXCEPTION:
1847
      x = TApplicationException()
1848
      x.read(self._iprot)
1849
      self._iprot.readMessageEnd()
1850
      raise x
1851
    result = getAllItemsByStatusInRange_result()
1852
    result.read(self._iprot)
1853
    self._iprot.readMessageEnd()
1854
    if result.success is not None:
1855
      return result.success
1856
    if result.cex is not None:
1857
      raise result.cex
1858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1859
 
1860
  def getItemCountByStatus(self, useStatus, itemStatus):
1861
    """
1862
    Gets a count of all items by status
1863
 
1864
    Parameters:
1865
     - useStatus
1866
     - itemStatus
1867
    """
1868
    self.send_getItemCountByStatus(useStatus, itemStatus)
1869
    return self.recv_getItemCountByStatus()
1870
 
1871
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1872
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1873
    args = getItemCountByStatus_args()
1874
    args.useStatus = useStatus
1875
    args.itemStatus = itemStatus
1876
    args.write(self._oprot)
1877
    self._oprot.writeMessageEnd()
1878
    self._oprot.trans.flush()
1879
 
1880
  def recv_getItemCountByStatus(self, ):
1881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1882
    if mtype == TMessageType.EXCEPTION:
1883
      x = TApplicationException()
1884
      x.read(self._iprot)
1885
      self._iprot.readMessageEnd()
1886
      raise x
1887
    result = getItemCountByStatus_result()
1888
    result.read(self._iprot)
1889
    self._iprot.readMessageEnd()
1890
    if result.success is not None:
1891
      return result.success
1892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1893
 
1894
  def getBestSellers(self, ):
1895
    self.send_getBestSellers()
1896
    return self.recv_getBestSellers()
1897
 
1898
  def send_getBestSellers(self, ):
1899
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1900
    args = getBestSellers_args()
1901
    args.write(self._oprot)
1902
    self._oprot.writeMessageEnd()
1903
    self._oprot.trans.flush()
1904
 
1905
  def recv_getBestSellers(self, ):
1906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1907
    if mtype == TMessageType.EXCEPTION:
1908
      x = TApplicationException()
1909
      x.read(self._iprot)
1910
      self._iprot.readMessageEnd()
1911
      raise x
1912
    result = getBestSellers_result()
1913
    result.read(self._iprot)
1914
    self._iprot.readMessageEnd()
1915
    if result.success is not None:
1916
      return result.success
1917
    if result.isex is not None:
1918
      raise result.isex
1919
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1920
 
1921
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1922
    """
1923
    Parameters:
1924
     - beginIndex
1925
     - totalItems
1926
     - brand
1927
     - category
1928
    """
1929
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1930
    return self.recv_getBestSellersCatalogIds()
1931
 
1932
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1933
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1934
    args = getBestSellersCatalogIds_args()
1935
    args.beginIndex = beginIndex
1936
    args.totalItems = totalItems
1937
    args.brand = brand
1938
    args.category = category
1939
    args.write(self._oprot)
1940
    self._oprot.writeMessageEnd()
1941
    self._oprot.trans.flush()
1942
 
1943
  def recv_getBestSellersCatalogIds(self, ):
1944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1945
    if mtype == TMessageType.EXCEPTION:
1946
      x = TApplicationException()
1947
      x.read(self._iprot)
1948
      self._iprot.readMessageEnd()
1949
      raise x
1950
    result = getBestSellersCatalogIds_result()
1951
    result.read(self._iprot)
1952
    self._iprot.readMessageEnd()
1953
    if result.success is not None:
1954
      return result.success
1955
    if result.cex is not None:
1956
      raise result.cex
1957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1958
 
1959
  def getBestSellersCount(self, ):
1960
    self.send_getBestSellersCount()
1961
    return self.recv_getBestSellersCount()
1962
 
1963
  def send_getBestSellersCount(self, ):
1964
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1965
    args = getBestSellersCount_args()
1966
    args.write(self._oprot)
1967
    self._oprot.writeMessageEnd()
1968
    self._oprot.trans.flush()
1969
 
1970
  def recv_getBestSellersCount(self, ):
1971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1972
    if mtype == TMessageType.EXCEPTION:
1973
      x = TApplicationException()
1974
      x.read(self._iprot)
1975
      self._iprot.readMessageEnd()
1976
      raise x
1977
    result = getBestSellersCount_result()
1978
    result.read(self._iprot)
1979
    self._iprot.readMessageEnd()
1980
    if result.success is not None:
1981
      return result.success
1982
    if result.cex is not None:
1983
      raise result.cex
1984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1985
 
1986
  def getBestDeals(self, ):
1987
    self.send_getBestDeals()
1988
    return self.recv_getBestDeals()
1989
 
1990
  def send_getBestDeals(self, ):
1991
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1992
    args = getBestDeals_args()
1993
    args.write(self._oprot)
1994
    self._oprot.writeMessageEnd()
1995
    self._oprot.trans.flush()
1996
 
1997
  def recv_getBestDeals(self, ):
1998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1999
    if mtype == TMessageType.EXCEPTION:
2000
      x = TApplicationException()
2001
      x.read(self._iprot)
2002
      self._iprot.readMessageEnd()
2003
      raise x
2004
    result = getBestDeals_result()
2005
    result.read(self._iprot)
2006
    self._iprot.readMessageEnd()
2007
    if result.success is not None:
2008
      return result.success
2009
    if result.isex is not None:
2010
      raise result.isex
2011
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2012
 
2013
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2014
    """
2015
    Parameters:
2016
     - beginIndex
2017
     - totalItems
2018
     - brand
2019
     - category
2020
    """
2021
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2022
    return self.recv_getBestDealsCatalogIds()
2023
 
2024
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2025
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2026
    args = getBestDealsCatalogIds_args()
2027
    args.beginIndex = beginIndex
2028
    args.totalItems = totalItems
2029
    args.brand = brand
2030
    args.category = category
2031
    args.write(self._oprot)
2032
    self._oprot.writeMessageEnd()
2033
    self._oprot.trans.flush()
2034
 
2035
  def recv_getBestDealsCatalogIds(self, ):
2036
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2037
    if mtype == TMessageType.EXCEPTION:
2038
      x = TApplicationException()
2039
      x.read(self._iprot)
2040
      self._iprot.readMessageEnd()
2041
      raise x
2042
    result = getBestDealsCatalogIds_result()
2043
    result.read(self._iprot)
2044
    self._iprot.readMessageEnd()
2045
    if result.success is not None:
2046
      return result.success
2047
    if result.cex is not None:
2048
      raise result.cex
2049
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2050
 
2051
  def getBestDealsCount(self, ):
2052
    self.send_getBestDealsCount()
2053
    return self.recv_getBestDealsCount()
2054
 
2055
  def send_getBestDealsCount(self, ):
2056
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2057
    args = getBestDealsCount_args()
2058
    args.write(self._oprot)
2059
    self._oprot.writeMessageEnd()
2060
    self._oprot.trans.flush()
2061
 
2062
  def recv_getBestDealsCount(self, ):
2063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2064
    if mtype == TMessageType.EXCEPTION:
2065
      x = TApplicationException()
2066
      x.read(self._iprot)
2067
      self._iprot.readMessageEnd()
2068
      raise x
2069
    result = getBestDealsCount_result()
2070
    result.read(self._iprot)
2071
    self._iprot.readMessageEnd()
2072
    if result.success is not None:
2073
      return result.success
2074
    if result.cex is not None:
2075
      raise result.cex
2076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2077
 
2078
  def getComingSoon(self, ):
2079
    self.send_getComingSoon()
2080
    return self.recv_getComingSoon()
2081
 
2082
  def send_getComingSoon(self, ):
2083
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2084
    args = getComingSoon_args()
2085
    args.write(self._oprot)
2086
    self._oprot.writeMessageEnd()
2087
    self._oprot.trans.flush()
2088
 
2089
  def recv_getComingSoon(self, ):
2090
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2091
    if mtype == TMessageType.EXCEPTION:
2092
      x = TApplicationException()
2093
      x.read(self._iprot)
2094
      self._iprot.readMessageEnd()
2095
      raise x
2096
    result = getComingSoon_result()
2097
    result.read(self._iprot)
2098
    self._iprot.readMessageEnd()
2099
    if result.success is not None:
2100
      return result.success
2101
    if result.isex is not None:
2102
      raise result.isex
2103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2104
 
2105
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2106
    """
2107
    Parameters:
2108
     - beginIndex
2109
     - totalItems
2110
     - brand
2111
     - category
2112
    """
2113
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2114
    return self.recv_getComingSoonCatalogIds()
2115
 
2116
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2117
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2118
    args = getComingSoonCatalogIds_args()
2119
    args.beginIndex = beginIndex
2120
    args.totalItems = totalItems
2121
    args.brand = brand
2122
    args.category = category
2123
    args.write(self._oprot)
2124
    self._oprot.writeMessageEnd()
2125
    self._oprot.trans.flush()
2126
 
2127
  def recv_getComingSoonCatalogIds(self, ):
2128
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2129
    if mtype == TMessageType.EXCEPTION:
2130
      x = TApplicationException()
2131
      x.read(self._iprot)
2132
      self._iprot.readMessageEnd()
2133
      raise x
2134
    result = getComingSoonCatalogIds_result()
2135
    result.read(self._iprot)
2136
    self._iprot.readMessageEnd()
2137
    if result.success is not None:
2138
      return result.success
2139
    if result.cex is not None:
2140
      raise result.cex
2141
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2142
 
2143
  def getComingSoonCount(self, ):
2144
    self.send_getComingSoonCount()
2145
    return self.recv_getComingSoonCount()
2146
 
2147
  def send_getComingSoonCount(self, ):
2148
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2149
    args = getComingSoonCount_args()
2150
    args.write(self._oprot)
2151
    self._oprot.writeMessageEnd()
2152
    self._oprot.trans.flush()
2153
 
2154
  def recv_getComingSoonCount(self, ):
2155
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2156
    if mtype == TMessageType.EXCEPTION:
2157
      x = TApplicationException()
2158
      x.read(self._iprot)
2159
      self._iprot.readMessageEnd()
2160
      raise x
2161
    result = getComingSoonCount_result()
2162
    result.read(self._iprot)
2163
    self._iprot.readMessageEnd()
2164
    if result.success is not None:
2165
      return result.success
2166
    if result.cex is not None:
2167
      raise result.cex
2168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2169
 
2170
  def getLatestArrivals(self, ):
2171
    """
2172
    Returns a list of items sorted in the descending order by start date.
2173
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2174
    """
2175
    self.send_getLatestArrivals()
2176
    return self.recv_getLatestArrivals()
2177
 
2178
  def send_getLatestArrivals(self, ):
2179
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2180
    args = getLatestArrivals_args()
2181
    args.write(self._oprot)
2182
    self._oprot.writeMessageEnd()
2183
    self._oprot.trans.flush()
2184
 
2185
  def recv_getLatestArrivals(self, ):
2186
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2187
    if mtype == TMessageType.EXCEPTION:
2188
      x = TApplicationException()
2189
      x.read(self._iprot)
2190
      self._iprot.readMessageEnd()
2191
      raise x
2192
    result = getLatestArrivals_result()
2193
    result.read(self._iprot)
2194
    self._iprot.readMessageEnd()
2195
    if result.success is not None:
2196
      return result.success
2197
    if result.isex is not None:
2198
      raise result.isex
2199
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2200
 
2201
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2202
    """
2203
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2204
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2205
 
2206
    Parameters:
2207
     - beginIndex
2208
     - totalItems
2209
     - brand
2210
     - categories
2211
    """
2212
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2213
    return self.recv_getLatestArrivalsCatalogIds()
2214
 
2215
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2216
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2217
    args = getLatestArrivalsCatalogIds_args()
2218
    args.beginIndex = beginIndex
2219
    args.totalItems = totalItems
2220
    args.brand = brand
2221
    args.categories = categories
2222
    args.write(self._oprot)
2223
    self._oprot.writeMessageEnd()
2224
    self._oprot.trans.flush()
2225
 
2226
  def recv_getLatestArrivalsCatalogIds(self, ):
2227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2228
    if mtype == TMessageType.EXCEPTION:
2229
      x = TApplicationException()
2230
      x.read(self._iprot)
2231
      self._iprot.readMessageEnd()
2232
      raise x
2233
    result = getLatestArrivalsCatalogIds_result()
2234
    result.read(self._iprot)
2235
    self._iprot.readMessageEnd()
2236
    if result.success is not None:
2237
      return result.success
2238
    if result.cex is not None:
2239
      raise result.cex
2240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2241
 
2242
  def getLatestArrivalsCount(self, ):
2243
    """
2244
    Get the total number of latest arrivals we are willing to show.
2245
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2246
    """
2247
    self.send_getLatestArrivalsCount()
2248
    return self.recv_getLatestArrivalsCount()
2249
 
2250
  def send_getLatestArrivalsCount(self, ):
2251
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2252
    args = getLatestArrivalsCount_args()
2253
    args.write(self._oprot)
2254
    self._oprot.writeMessageEnd()
2255
    self._oprot.trans.flush()
2256
 
2257
  def recv_getLatestArrivalsCount(self, ):
2258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2259
    if mtype == TMessageType.EXCEPTION:
2260
      x = TApplicationException()
2261
      x.read(self._iprot)
2262
      self._iprot.readMessageEnd()
2263
      raise x
2264
    result = getLatestArrivalsCount_result()
2265
    result.read(self._iprot)
2266
    self._iprot.readMessageEnd()
2267
    if result.success is not None:
2268
      return result.success
2269
    if result.cex is not None:
2270
      raise result.cex
2271
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2272
 
2273
  def generateNewEntityID(self, ):
2274
    self.send_generateNewEntityID()
2275
    return self.recv_generateNewEntityID()
2276
 
2277
  def send_generateNewEntityID(self, ):
2278
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2279
    args = generateNewEntityID_args()
2280
    args.write(self._oprot)
2281
    self._oprot.writeMessageEnd()
2282
    self._oprot.trans.flush()
2283
 
2284
  def recv_generateNewEntityID(self, ):
2285
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2286
    if mtype == TMessageType.EXCEPTION:
2287
      x = TApplicationException()
2288
      x.read(self._iprot)
2289
      self._iprot.readMessageEnd()
2290
      raise x
2291
    result = generateNewEntityID_result()
2292
    result.read(self._iprot)
2293
    self._iprot.readMessageEnd()
2294
    if result.success is not None:
2295
      return result.success
2296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2297
 
2298
  def addCategory(self, category):
2299
    """
2300
    All category related functions
2301
 
2302
    Parameters:
2303
     - category
2304
    """
2305
    self.send_addCategory(category)
2306
    return self.recv_addCategory()
2307
 
2308
  def send_addCategory(self, category):
2309
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2310
    args = addCategory_args()
2311
    args.category = category
2312
    args.write(self._oprot)
2313
    self._oprot.writeMessageEnd()
2314
    self._oprot.trans.flush()
2315
 
2316
  def recv_addCategory(self, ):
2317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2318
    if mtype == TMessageType.EXCEPTION:
2319
      x = TApplicationException()
2320
      x.read(self._iprot)
2321
      self._iprot.readMessageEnd()
2322
      raise x
2323
    result = addCategory_result()
2324
    result.read(self._iprot)
2325
    self._iprot.readMessageEnd()
2326
    if result.success is not None:
2327
      return result.success
2328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2329
 
2330
  def getCategory(self, id):
2331
    """
2332
    Parameters:
2333
     - id
2334
    """
2335
    self.send_getCategory(id)
2336
    return self.recv_getCategory()
2337
 
2338
  def send_getCategory(self, id):
2339
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2340
    args = getCategory_args()
2341
    args.id = id
2342
    args.write(self._oprot)
2343
    self._oprot.writeMessageEnd()
2344
    self._oprot.trans.flush()
2345
 
2346
  def recv_getCategory(self, ):
2347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2348
    if mtype == TMessageType.EXCEPTION:
2349
      x = TApplicationException()
2350
      x.read(self._iprot)
2351
      self._iprot.readMessageEnd()
2352
      raise x
2353
    result = getCategory_result()
2354
    result.read(self._iprot)
2355
    self._iprot.readMessageEnd()
2356
    if result.success is not None:
2357
      return result.success
2358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2359
 
2360
  def getAllCategories(self, ):
2361
    self.send_getAllCategories()
2362
    return self.recv_getAllCategories()
2363
 
2364
  def send_getAllCategories(self, ):
2365
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2366
    args = getAllCategories_args()
2367
    args.write(self._oprot)
2368
    self._oprot.writeMessageEnd()
2369
    self._oprot.trans.flush()
2370
 
2371
  def recv_getAllCategories(self, ):
2372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2373
    if mtype == TMessageType.EXCEPTION:
2374
      x = TApplicationException()
2375
      x.read(self._iprot)
2376
      self._iprot.readMessageEnd()
2377
      raise x
2378
    result = getAllCategories_result()
2379
    result.read(self._iprot)
2380
    self._iprot.readMessageEnd()
2381
    if result.success is not None:
2382
      return result.success
2383
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2384
 
2385
  def getAllSimilarItems(self, itemId):
2386
    """
2387
    Returns the list of similar items.
2388
 
2389
    Parameters:
2390
     - itemId
2391
    """
2392
    self.send_getAllSimilarItems(itemId)
2393
    return self.recv_getAllSimilarItems()
2394
 
2395
  def send_getAllSimilarItems(self, itemId):
2396
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2397
    args = getAllSimilarItems_args()
2398
    args.itemId = itemId
2399
    args.write(self._oprot)
2400
    self._oprot.writeMessageEnd()
2401
    self._oprot.trans.flush()
2402
 
2403
  def recv_getAllSimilarItems(self, ):
2404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2405
    if mtype == TMessageType.EXCEPTION:
2406
      x = TApplicationException()
2407
      x.read(self._iprot)
2408
      self._iprot.readMessageEnd()
2409
      raise x
2410
    result = getAllSimilarItems_result()
2411
    result.read(self._iprot)
2412
    self._iprot.readMessageEnd()
2413
    if result.success is not None:
2414
      return result.success
2415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2416
 
2417
  def addSimilarItem(self, itemId, catalogItemId):
2418
    """
2419
    Adds similar item.
2420
 
2421
    Parameters:
2422
     - itemId
2423
     - catalogItemId
2424
    """
2425
    self.send_addSimilarItem(itemId, catalogItemId)
2426
    return self.recv_addSimilarItem()
2427
 
2428
  def send_addSimilarItem(self, itemId, catalogItemId):
2429
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2430
    args = addSimilarItem_args()
2431
    args.itemId = itemId
2432
    args.catalogItemId = catalogItemId
2433
    args.write(self._oprot)
2434
    self._oprot.writeMessageEnd()
2435
    self._oprot.trans.flush()
2436
 
2437
  def recv_addSimilarItem(self, ):
2438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2439
    if mtype == TMessageType.EXCEPTION:
2440
      x = TApplicationException()
2441
      x.read(self._iprot)
2442
      self._iprot.readMessageEnd()
2443
      raise x
2444
    result = addSimilarItem_result()
2445
    result.read(self._iprot)
2446
    self._iprot.readMessageEnd()
2447
    if result.success is not None:
2448
      return result.success
2449
    if result.cex is not None:
2450
      raise result.cex
2451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2452
 
6512 kshitij.so 2453
  def addTag(self, displayName, itemId):
2454
    """
2455
    Tag Related
2456
 
2457
    Parameters:
2458
     - displayName
2459
     - itemId
2460
    """
2461
    self.send_addTag(displayName, itemId)
2462
    return self.recv_addTag()
2463
 
2464
  def send_addTag(self, displayName, itemId):
2465
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2466
    args = addTag_args()
2467
    args.displayName = displayName
2468
    args.itemId = itemId
2469
    args.write(self._oprot)
2470
    self._oprot.writeMessageEnd()
2471
    self._oprot.trans.flush()
2472
 
2473
  def recv_addTag(self, ):
2474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2475
    if mtype == TMessageType.EXCEPTION:
2476
      x = TApplicationException()
2477
      x.read(self._iprot)
2478
      self._iprot.readMessageEnd()
2479
      raise x
2480
    result = addTag_result()
2481
    result.read(self._iprot)
2482
    self._iprot.readMessageEnd()
2483
    if result.success is not None:
2484
      return result.success
2485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2486
 
2487
  def deleteEntityTag(self, displayName, itemId):
2488
    """
2489
    Parameters:
2490
     - displayName
2491
     - itemId
2492
    """
2493
    self.send_deleteEntityTag(displayName, itemId)
2494
    return self.recv_deleteEntityTag()
2495
 
2496
  def send_deleteEntityTag(self, displayName, itemId):
2497
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2498
    args = deleteEntityTag_args()
2499
    args.displayName = displayName
2500
    args.itemId = itemId
2501
    args.write(self._oprot)
2502
    self._oprot.writeMessageEnd()
2503
    self._oprot.trans.flush()
2504
 
2505
  def recv_deleteEntityTag(self, ):
2506
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2507
    if mtype == TMessageType.EXCEPTION:
2508
      x = TApplicationException()
2509
      x.read(self._iprot)
2510
      self._iprot.readMessageEnd()
2511
      raise x
2512
    result = deleteEntityTag_result()
2513
    result.read(self._iprot)
2514
    self._iprot.readMessageEnd()
2515
    if result.success is not None:
2516
      return result.success
2517
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2518
 
2519
  def deleteTag(self, displayName):
2520
    """
2521
    Parameters:
2522
     - displayName
2523
    """
2524
    self.send_deleteTag(displayName)
2525
    return self.recv_deleteTag()
2526
 
2527
  def send_deleteTag(self, displayName):
2528
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2529
    args = deleteTag_args()
2530
    args.displayName = displayName
2531
    args.write(self._oprot)
2532
    self._oprot.writeMessageEnd()
2533
    self._oprot.trans.flush()
2534
 
2535
  def recv_deleteTag(self, ):
2536
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2537
    if mtype == TMessageType.EXCEPTION:
2538
      x = TApplicationException()
2539
      x.read(self._iprot)
2540
      self._iprot.readMessageEnd()
2541
      raise x
2542
    result = deleteTag_result()
2543
    result.read(self._iprot)
2544
    self._iprot.readMessageEnd()
2545
    if result.success is not None:
2546
      return result.success
2547
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2548
 
2549
  def getAllTags(self, ):
2550
    self.send_getAllTags()
2551
    return self.recv_getAllTags()
2552
 
2553
  def send_getAllTags(self, ):
2554
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2555
    args = getAllTags_args()
2556
    args.write(self._oprot)
2557
    self._oprot.writeMessageEnd()
2558
    self._oprot.trans.flush()
2559
 
2560
  def recv_getAllTags(self, ):
2561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2562
    if mtype == TMessageType.EXCEPTION:
2563
      x = TApplicationException()
2564
      x.read(self._iprot)
2565
      self._iprot.readMessageEnd()
2566
      raise x
2567
    result = getAllTags_result()
2568
    result.read(self._iprot)
2569
    self._iprot.readMessageEnd()
2570
    if result.success is not None:
2571
      return result.success
2572
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2573
 
2574
  def getAllEntitiesByTagName(self, displayName):
2575
    """
2576
    Parameters:
2577
     - displayName
2578
    """
2579
    self.send_getAllEntitiesByTagName(displayName)
2580
    return self.recv_getAllEntitiesByTagName()
2581
 
2582
  def send_getAllEntitiesByTagName(self, displayName):
2583
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2584
    args = getAllEntitiesByTagName_args()
2585
    args.displayName = displayName
2586
    args.write(self._oprot)
2587
    self._oprot.writeMessageEnd()
2588
    self._oprot.trans.flush()
2589
 
2590
  def recv_getAllEntitiesByTagName(self, ):
2591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2592
    if mtype == TMessageType.EXCEPTION:
2593
      x = TApplicationException()
2594
      x.read(self._iprot)
2595
      self._iprot.readMessageEnd()
2596
      raise x
2597
    result = getAllEntitiesByTagName_result()
2598
    result.read(self._iprot)
2599
    self._iprot.readMessageEnd()
2600
    if result.success is not None:
2601
      return result.success
2602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2603
 
6845 amit.gupta 2604
  def getAllEntityTags(self, ):
2605
    self.send_getAllEntityTags()
2606
    return self.recv_getAllEntityTags()
2607
 
2608
  def send_getAllEntityTags(self, ):
2609
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2610
    args = getAllEntityTags_args()
2611
    args.write(self._oprot)
2612
    self._oprot.writeMessageEnd()
2613
    self._oprot.trans.flush()
2614
 
2615
  def recv_getAllEntityTags(self, ):
2616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2617
    if mtype == TMessageType.EXCEPTION:
2618
      x = TApplicationException()
2619
      x.read(self._iprot)
2620
      self._iprot.readMessageEnd()
2621
      raise x
2622
    result = getAllEntityTags_result()
2623
    result.read(self._iprot)
2624
    self._iprot.readMessageEnd()
2625
    if result.success is not None:
2626
      return result.success
2627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2628
 
8590 kshitij.so 2629
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2630
    """
8579 kshitij.so 2631
    Banner Related
2632
 
6850 kshitij.so 2633
    Parameters:
8590 kshitij.so 2634
     - bannerCongregate
6850 kshitij.so 2635
    """
8590 kshitij.so 2636
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2637
    return self.recv_addBanner()
6850 kshitij.so 2638
 
8590 kshitij.so 2639
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2640
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2641
    args = addBanner_args()
8590 kshitij.so 2642
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2643
    args.write(self._oprot)
2644
    self._oprot.writeMessageEnd()
2645
    self._oprot.trans.flush()
2646
 
2647
  def recv_addBanner(self, ):
2648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2649
    if mtype == TMessageType.EXCEPTION:
2650
      x = TApplicationException()
2651
      x.read(self._iprot)
2652
      self._iprot.readMessageEnd()
2653
      raise x
2654
    result = addBanner_result()
2655
    result.read(self._iprot)
2656
    self._iprot.readMessageEnd()
10097 kshitij.so 2657
    if result.success is not None:
2658
      return result.success
2659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2660
 
8579 kshitij.so 2661
  def updateBanner(self, banner):
2662
    """
2663
    Parameters:
2664
     - banner
2665
    """
2666
    self.send_updateBanner(banner)
2667
    return self.recv_updateBanner()
2668
 
2669
  def send_updateBanner(self, banner):
2670
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2671
    args = updateBanner_args()
2672
    args.banner = banner
2673
    args.write(self._oprot)
2674
    self._oprot.writeMessageEnd()
2675
    self._oprot.trans.flush()
2676
 
2677
  def recv_updateBanner(self, ):
2678
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2679
    if mtype == TMessageType.EXCEPTION:
2680
      x = TApplicationException()
2681
      x.read(self._iprot)
2682
      self._iprot.readMessageEnd()
2683
      raise x
2684
    result = updateBanner_result()
2685
    result.read(self._iprot)
2686
    self._iprot.readMessageEnd()
2687
    if result.success is not None:
2688
      return result.success
2689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2690
 
6850 kshitij.so 2691
  def getAllBanners(self, ):
2692
    self.send_getAllBanners()
2693
    return self.recv_getAllBanners()
2694
 
2695
  def send_getAllBanners(self, ):
2696
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2697
    args = getAllBanners_args()
2698
    args.write(self._oprot)
2699
    self._oprot.writeMessageEnd()
2700
    self._oprot.trans.flush()
2701
 
2702
  def recv_getAllBanners(self, ):
2703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2704
    if mtype == TMessageType.EXCEPTION:
2705
      x = TApplicationException()
2706
      x.read(self._iprot)
2707
      self._iprot.readMessageEnd()
2708
      raise x
2709
    result = getAllBanners_result()
2710
    result.read(self._iprot)
2711
    self._iprot.readMessageEnd()
2712
    if result.success is not None:
2713
      return result.success
2714
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2715
 
9155 kshitij.so 2716
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2717
    """
2718
    Parameters:
2719
     - bannerName
9155 kshitij.so 2720
     - bannerType
6850 kshitij.so 2721
    """
9155 kshitij.so 2722
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2723
    return self.recv_deleteBanner()
2724
 
9155 kshitij.so 2725
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2726
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2727
    args = deleteBanner_args()
2728
    args.bannerName = bannerName
9155 kshitij.so 2729
    args.bannerType = bannerType
6850 kshitij.so 2730
    args.write(self._oprot)
2731
    self._oprot.writeMessageEnd()
2732
    self._oprot.trans.flush()
2733
 
2734
  def recv_deleteBanner(self, ):
2735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2736
    if mtype == TMessageType.EXCEPTION:
2737
      x = TApplicationException()
2738
      x.read(self._iprot)
2739
      self._iprot.readMessageEnd()
2740
      raise x
2741
    result = deleteBanner_result()
2742
    result.read(self._iprot)
2743
    self._iprot.readMessageEnd()
2744
    if result.success is not None:
2745
      return result.success
2746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2747
 
9155 kshitij.so 2748
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2749
    """
2750
    Parameters:
2751
     - bannerName
9155 kshitij.so 2752
     - bannerType
6850 kshitij.so 2753
    """
9155 kshitij.so 2754
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2755
    return self.recv_getBannerDetails()
2756
 
9155 kshitij.so 2757
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2758
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2759
    args = getBannerDetails_args()
2760
    args.bannerName = bannerName
9155 kshitij.so 2761
    args.bannerType = bannerType
6850 kshitij.so 2762
    args.write(self._oprot)
2763
    self._oprot.writeMessageEnd()
2764
    self._oprot.trans.flush()
2765
 
2766
  def recv_getBannerDetails(self, ):
2767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2768
    if mtype == TMessageType.EXCEPTION:
2769
      x = TApplicationException()
2770
      x.read(self._iprot)
2771
      self._iprot.readMessageEnd()
2772
      raise x
2773
    result = getBannerDetails_result()
2774
    result.read(self._iprot)
2775
    self._iprot.readMessageEnd()
2776
    if result.success is not None:
2777
      return result.success
2778
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2779
 
2780
  def getActiveBanners(self, ):
2781
    self.send_getActiveBanners()
2782
    return self.recv_getActiveBanners()
2783
 
2784
  def send_getActiveBanners(self, ):
2785
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2786
    args = getActiveBanners_args()
2787
    args.write(self._oprot)
2788
    self._oprot.writeMessageEnd()
2789
    self._oprot.trans.flush()
2790
 
2791
  def recv_getActiveBanners(self, ):
2792
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2793
    if mtype == TMessageType.EXCEPTION:
2794
      x = TApplicationException()
2795
      x.read(self._iprot)
2796
      self._iprot.readMessageEnd()
2797
      raise x
2798
    result = getActiveBanners_result()
2799
    result.read(self._iprot)
2800
    self._iprot.readMessageEnd()
2801
    if result.success is not None:
2802
      return result.success
2803
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2804
 
8579 kshitij.so 2805
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2806
    """
2807
    Parameters:
8579 kshitij.so 2808
     - bannerMaps
6849 kshitij.so 2809
    """
8579 kshitij.so 2810
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2811
    return self.recv_addBannerMap()
2812
 
8579 kshitij.so 2813
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2814
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2815
    args = addBannerMap_args()
8579 kshitij.so 2816
    args.bannerMaps = bannerMaps
6849 kshitij.so 2817
    args.write(self._oprot)
2818
    self._oprot.writeMessageEnd()
2819
    self._oprot.trans.flush()
2820
 
2821
  def recv_addBannerMap(self, ):
2822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2823
    if mtype == TMessageType.EXCEPTION:
2824
      x = TApplicationException()
2825
      x.read(self._iprot)
2826
      self._iprot.readMessageEnd()
2827
      raise x
2828
    result = addBannerMap_result()
2829
    result.read(self._iprot)
2830
    self._iprot.readMessageEnd()
2831
    if result.success is not None:
2832
      return result.success
2833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2834
 
8579 kshitij.so 2835
  def updateBannerMap(self, bannerMap):
2836
    """
2837
    Parameters:
2838
     - bannerMap
2839
    """
2840
    self.send_updateBannerMap(bannerMap)
2841
    return self.recv_updateBannerMap()
2842
 
2843
  def send_updateBannerMap(self, bannerMap):
2844
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2845
    args = updateBannerMap_args()
2846
    args.bannerMap = bannerMap
2847
    args.write(self._oprot)
2848
    self._oprot.writeMessageEnd()
2849
    self._oprot.trans.flush()
2850
 
2851
  def recv_updateBannerMap(self, ):
2852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2853
    if mtype == TMessageType.EXCEPTION:
2854
      x = TApplicationException()
2855
      x.read(self._iprot)
2856
      self._iprot.readMessageEnd()
2857
      raise x
2858
    result = updateBannerMap_result()
2859
    result.read(self._iprot)
2860
    self._iprot.readMessageEnd()
2861
    if result.success is not None:
2862
      return result.success
2863
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2864
 
6849 kshitij.so 2865
  def deleteBannerMap(self, bannerName):
2866
    """
2867
    Parameters:
2868
     - bannerName
2869
    """
2870
    self.send_deleteBannerMap(bannerName)
2871
    return self.recv_deleteBannerMap()
2872
 
2873
  def send_deleteBannerMap(self, bannerName):
2874
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2875
    args = deleteBannerMap_args()
2876
    args.bannerName = bannerName
2877
    args.write(self._oprot)
2878
    self._oprot.writeMessageEnd()
2879
    self._oprot.trans.flush()
2880
 
2881
  def recv_deleteBannerMap(self, ):
2882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2883
    if mtype == TMessageType.EXCEPTION:
2884
      x = TApplicationException()
2885
      x.read(self._iprot)
2886
      self._iprot.readMessageEnd()
2887
      raise x
2888
    result = deleteBannerMap_result()
2889
    result.read(self._iprot)
2890
    self._iprot.readMessageEnd()
2891
    if result.success is not None:
2892
      return result.success
2893
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2894
 
9155 kshitij.so 2895
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2896
    """
2897
    Parameters:
2898
     - bannerName
9155 kshitij.so 2899
     - bannerType
6849 kshitij.so 2900
    """
9155 kshitij.so 2901
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2902
    return self.recv_getBannerMapDetails()
2903
 
9155 kshitij.so 2904
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2905
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2906
    args = getBannerMapDetails_args()
2907
    args.bannerName = bannerName
9155 kshitij.so 2908
    args.bannerType = bannerType
6849 kshitij.so 2909
    args.write(self._oprot)
2910
    self._oprot.writeMessageEnd()
2911
    self._oprot.trans.flush()
2912
 
2913
  def recv_getBannerMapDetails(self, ):
2914
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2915
    if mtype == TMessageType.EXCEPTION:
2916
      x = TApplicationException()
2917
      x.read(self._iprot)
2918
      self._iprot.readMessageEnd()
2919
      raise x
2920
    result = getBannerMapDetails_result()
2921
    result.read(self._iprot)
2922
    self._iprot.readMessageEnd()
2923
    if result.success is not None:
2924
      return result.success
2925
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2926
 
8579 kshitij.so 2927
  def addBannerUri(self, bannerUriMappings):
2928
    """
2929
    Parameters:
2930
     - bannerUriMappings
2931
    """
2932
    self.send_addBannerUri(bannerUriMappings)
2933
    self.recv_addBannerUri()
2934
 
2935
  def send_addBannerUri(self, bannerUriMappings):
2936
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2937
    args = addBannerUri_args()
2938
    args.bannerUriMappings = bannerUriMappings
2939
    args.write(self._oprot)
2940
    self._oprot.writeMessageEnd()
2941
    self._oprot.trans.flush()
2942
 
2943
  def recv_addBannerUri(self, ):
2944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2945
    if mtype == TMessageType.EXCEPTION:
2946
      x = TApplicationException()
2947
      x.read(self._iprot)
2948
      self._iprot.readMessageEnd()
2949
      raise x
2950
    result = addBannerUri_result()
2951
    result.read(self._iprot)
2952
    self._iprot.readMessageEnd()
2953
    return
2954
 
9155 kshitij.so 2955
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2956
    """
2957
    Parameters:
2958
     - bannerName
9155 kshitij.so 2959
     - bannerType
8579 kshitij.so 2960
    """
9155 kshitij.so 2961
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2962
    return self.recv_getUriMapping()
2963
 
9155 kshitij.so 2964
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2965
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2966
    args = getUriMapping_args()
2967
    args.bannerName = bannerName
9155 kshitij.so 2968
    args.bannerType = bannerType
8579 kshitij.so 2969
    args.write(self._oprot)
2970
    self._oprot.writeMessageEnd()
2971
    self._oprot.trans.flush()
2972
 
2973
  def recv_getUriMapping(self, ):
2974
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2975
    if mtype == TMessageType.EXCEPTION:
2976
      x = TApplicationException()
2977
      x.read(self._iprot)
2978
      self._iprot.readMessageEnd()
2979
      raise x
2980
    result = getUriMapping_result()
2981
    result.read(self._iprot)
2982
    self._iprot.readMessageEnd()
2983
    if result.success is not None:
2984
      return result.success
2985
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2986
 
2987
  def addCampaign(self, campaign):
2988
    """
2989
    Parameters:
2990
     - campaign
2991
    """
2992
    self.send_addCampaign(campaign)
2993
    self.recv_addCampaign()
2994
 
2995
  def send_addCampaign(self, campaign):
2996
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2997
    args = addCampaign_args()
2998
    args.campaign = campaign
2999
    args.write(self._oprot)
3000
    self._oprot.writeMessageEnd()
3001
    self._oprot.trans.flush()
3002
 
3003
  def recv_addCampaign(self, ):
3004
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3005
    if mtype == TMessageType.EXCEPTION:
3006
      x = TApplicationException()
3007
      x.read(self._iprot)
3008
      self._iprot.readMessageEnd()
3009
      raise x
3010
    result = addCampaign_result()
3011
    result.read(self._iprot)
3012
    self._iprot.readMessageEnd()
3013
    return
3014
 
3015
  def getCampaigns(self, campaignName):
3016
    """
3017
    Parameters:
3018
     - campaignName
3019
    """
3020
    self.send_getCampaigns(campaignName)
3021
    return self.recv_getCampaigns()
3022
 
3023
  def send_getCampaigns(self, campaignName):
3024
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3025
    args = getCampaigns_args()
3026
    args.campaignName = campaignName
3027
    args.write(self._oprot)
3028
    self._oprot.writeMessageEnd()
3029
    self._oprot.trans.flush()
3030
 
3031
  def recv_getCampaigns(self, ):
3032
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3033
    if mtype == TMessageType.EXCEPTION:
3034
      x = TApplicationException()
3035
      x.read(self._iprot)
3036
      self._iprot.readMessageEnd()
3037
      raise x
3038
    result = getCampaigns_result()
3039
    result.read(self._iprot)
3040
    self._iprot.readMessageEnd()
3041
    if result.success is not None:
3042
      return result.success
3043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3044
 
3045
  def deleteCampaign(self, campaignId):
3046
    """
3047
    Parameters:
3048
     - campaignId
3049
    """
3050
    self.send_deleteCampaign(campaignId)
3051
    self.recv_deleteCampaign()
3052
 
3053
  def send_deleteCampaign(self, campaignId):
3054
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3055
    args = deleteCampaign_args()
3056
    args.campaignId = campaignId
3057
    args.write(self._oprot)
3058
    self._oprot.writeMessageEnd()
3059
    self._oprot.trans.flush()
3060
 
3061
  def recv_deleteCampaign(self, ):
3062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3063
    if mtype == TMessageType.EXCEPTION:
3064
      x = TApplicationException()
3065
      x.read(self._iprot)
3066
      self._iprot.readMessageEnd()
3067
      raise x
3068
    result = deleteCampaign_result()
3069
    result.read(self._iprot)
3070
    self._iprot.readMessageEnd()
3071
    return
3072
 
3073
  def getAllCampaigns(self, ):
3074
    self.send_getAllCampaigns()
3075
    return self.recv_getAllCampaigns()
3076
 
3077
  def send_getAllCampaigns(self, ):
3078
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3079
    args = getAllCampaigns_args()
3080
    args.write(self._oprot)
3081
    self._oprot.writeMessageEnd()
3082
    self._oprot.trans.flush()
3083
 
3084
  def recv_getAllCampaigns(self, ):
3085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3086
    if mtype == TMessageType.EXCEPTION:
3087
      x = TApplicationException()
3088
      x.read(self._iprot)
3089
      self._iprot.readMessageEnd()
3090
      raise x
3091
    result = getAllCampaigns_result()
3092
    result.read(self._iprot)
3093
    self._iprot.readMessageEnd()
3094
    if result.success is not None:
3095
      return result.success
3096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3097
 
9155 kshitij.so 3098
  def getActiveBannersForMobileSite(self, ):
3099
    self.send_getActiveBannersForMobileSite()
3100
    return self.recv_getActiveBannersForMobileSite()
3101
 
3102
  def send_getActiveBannersForMobileSite(self, ):
3103
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3104
    args = getActiveBannersForMobileSite_args()
3105
    args.write(self._oprot)
3106
    self._oprot.writeMessageEnd()
3107
    self._oprot.trans.flush()
3108
 
3109
  def recv_getActiveBannersForMobileSite(self, ):
3110
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3111
    if mtype == TMessageType.EXCEPTION:
3112
      x = TApplicationException()
3113
      x.read(self._iprot)
3114
      self._iprot.readMessageEnd()
3115
      raise x
3116
    result = getActiveBannersForMobileSite_result()
3117
    result.read(self._iprot)
3118
    self._iprot.readMessageEnd()
3119
    if result.success is not None:
3120
      return result.success
3121
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3122
 
5944 mandeep.dh 3123
  def deleteSimilarItem(self, itemId, catalogItemId):
3124
    """
3125
    Delete similar item.
3126
 
3127
    Parameters:
3128
     - itemId
3129
     - catalogItemId
3130
    """
3131
    self.send_deleteSimilarItem(itemId, catalogItemId)
3132
    return self.recv_deleteSimilarItem()
3133
 
3134
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3135
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3136
    args = deleteSimilarItem_args()
3137
    args.itemId = itemId
3138
    args.catalogItemId = catalogItemId
3139
    args.write(self._oprot)
3140
    self._oprot.writeMessageEnd()
3141
    self._oprot.trans.flush()
3142
 
3143
  def recv_deleteSimilarItem(self, ):
3144
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3145
    if mtype == TMessageType.EXCEPTION:
3146
      x = TApplicationException()
3147
      x.read(self._iprot)
3148
      self._iprot.readMessageEnd()
3149
      raise x
3150
    result = deleteSimilarItem_result()
3151
    result.read(self._iprot)
3152
    self._iprot.readMessageEnd()
3153
    if result.success is not None:
3154
      return result.success
3155
    if result.cex is not None:
3156
      raise result.cex
3157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3158
 
3159
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3160
    """
3161
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3162
    If yes, returns the itemId else returns 0
3163
 
3164
    Parameters:
3165
     - brand
3166
     - modelNumber
3167
     - modelName
3168
     - color
3169
    """
3170
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3171
    return self.recv_checkSimilarItem()
3172
 
3173
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3174
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3175
    args = checkSimilarItem_args()
3176
    args.brand = brand
3177
    args.modelNumber = modelNumber
3178
    args.modelName = modelName
3179
    args.color = color
3180
    args.write(self._oprot)
3181
    self._oprot.writeMessageEnd()
3182
    self._oprot.trans.flush()
3183
 
3184
  def recv_checkSimilarItem(self, ):
3185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3186
    if mtype == TMessageType.EXCEPTION:
3187
      x = TApplicationException()
3188
      x.read(self._iprot)
3189
      self._iprot.readMessageEnd()
3190
      raise x
3191
    result = checkSimilarItem_result()
3192
    result.read(self._iprot)
3193
    self._iprot.readMessageEnd()
3194
    if result.success is not None:
3195
      return result.success
3196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3197
 
3198
  def validateRiskyStatus(self, itemId):
3199
    """
3200
    Check wether item is risky and change status if inventory is not available for risky items
3201
 
3202
    Parameters:
3203
     - itemId
3204
    """
3205
    self.send_validateRiskyStatus(itemId)
3206
    self.recv_validateRiskyStatus()
3207
 
3208
  def send_validateRiskyStatus(self, itemId):
3209
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3210
    args = validateRiskyStatus_args()
3211
    args.itemId = itemId
3212
    args.write(self._oprot)
3213
    self._oprot.writeMessageEnd()
3214
    self._oprot.trans.flush()
3215
 
3216
  def recv_validateRiskyStatus(self, ):
3217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3218
    if mtype == TMessageType.EXCEPTION:
3219
      x = TApplicationException()
3220
      x.read(self._iprot)
3221
      self._iprot.readMessageEnd()
3222
      raise x
3223
    result = validateRiskyStatus_result()
3224
    result.read(self._iprot)
3225
    self._iprot.readMessageEnd()
3226
    return
3227
 
3228
  def changeItemRiskyFlag(self, itemId, risky):
3229
    """
3230
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3231
 
3232
    Parameters:
3233
     - itemId
3234
     - risky
3235
    """
3236
    self.send_changeItemRiskyFlag(itemId, risky)
3237
    self.recv_changeItemRiskyFlag()
3238
 
3239
  def send_changeItemRiskyFlag(self, itemId, risky):
3240
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3241
    args = changeItemRiskyFlag_args()
3242
    args.itemId = itemId
3243
    args.risky = risky
3244
    args.write(self._oprot)
3245
    self._oprot.writeMessageEnd()
3246
    self._oprot.trans.flush()
3247
 
3248
  def recv_changeItemRiskyFlag(self, ):
3249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3250
    if mtype == TMessageType.EXCEPTION:
3251
      x = TApplicationException()
3252
      x.read(self._iprot)
3253
      self._iprot.readMessageEnd()
3254
      raise x
3255
    result = changeItemRiskyFlag_result()
3256
    result.read(self._iprot)
3257
    self._iprot.readMessageEnd()
3258
    return
3259
 
3260
  def getItemsByRiskyFlag(self, ):
3261
    """
3262
    Returns list of items marked as risky.
3263
    """
3264
    self.send_getItemsByRiskyFlag()
3265
    return self.recv_getItemsByRiskyFlag()
3266
 
3267
  def send_getItemsByRiskyFlag(self, ):
3268
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3269
    args = getItemsByRiskyFlag_args()
3270
    args.write(self._oprot)
3271
    self._oprot.writeMessageEnd()
3272
    self._oprot.trans.flush()
3273
 
3274
  def recv_getItemsByRiskyFlag(self, ):
3275
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3276
    if mtype == TMessageType.EXCEPTION:
3277
      x = TApplicationException()
3278
      x.read(self._iprot)
3279
      self._iprot.readMessageEnd()
3280
      raise x
3281
    result = getItemsByRiskyFlag_result()
3282
    result.read(self._iprot)
3283
    self._iprot.readMessageEnd()
3284
    if result.success is not None:
3285
      return result.success
3286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3287
 
3288
  def getItemsForMasterSheet(self, category, brand):
3289
    """
3290
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3291
 
3292
    Parameters:
3293
     - category
3294
     - brand
3295
    """
3296
    self.send_getItemsForMasterSheet(category, brand)
3297
    return self.recv_getItemsForMasterSheet()
3298
 
3299
  def send_getItemsForMasterSheet(self, category, brand):
3300
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3301
    args = getItemsForMasterSheet_args()
3302
    args.category = category
3303
    args.brand = brand
3304
    args.write(self._oprot)
3305
    self._oprot.writeMessageEnd()
3306
    self._oprot.trans.flush()
3307
 
3308
  def recv_getItemsForMasterSheet(self, ):
3309
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3310
    if mtype == TMessageType.EXCEPTION:
3311
      x = TApplicationException()
3312
      x.read(self._iprot)
3313
      self._iprot.readMessageEnd()
3314
      raise x
3315
    result = getItemsForMasterSheet_result()
3316
    result.read(self._iprot)
3317
    self._iprot.readMessageEnd()
3318
    if result.success is not None:
3319
      return result.success
3320
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3321
 
3322
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3323
    """
3324
    Returns list of catalog ids of items with same similarity index as of the given itemId
3325
 
3326
    Parameters:
3327
     - beginIndex
3328
     - totalItems
3329
     - itemId
3330
    """
3331
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3332
    return self.recv_getSimilarItemsCatalogIds()
3333
 
3334
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3335
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3336
    args = getSimilarItemsCatalogIds_args()
3337
    args.beginIndex = beginIndex
3338
    args.totalItems = totalItems
3339
    args.itemId = itemId
3340
    args.write(self._oprot)
3341
    self._oprot.writeMessageEnd()
3342
    self._oprot.trans.flush()
3343
 
3344
  def recv_getSimilarItemsCatalogIds(self, ):
3345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3346
    if mtype == TMessageType.EXCEPTION:
3347
      x = TApplicationException()
3348
      x.read(self._iprot)
3349
      self._iprot.readMessageEnd()
3350
      raise x
3351
    result = getSimilarItemsCatalogIds_result()
3352
    result.read(self._iprot)
3353
    self._iprot.readMessageEnd()
3354
    if result.success is not None:
3355
      return result.success
3356
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3357
 
3358
  def addProductNotification(self, itemId, email):
3359
    """
3360
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3361
 
3362
    Parameters:
3363
     - itemId
3364
     - email
3365
    """
3366
    self.send_addProductNotification(itemId, email)
3367
    return self.recv_addProductNotification()
3368
 
3369
  def send_addProductNotification(self, itemId, email):
3370
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3371
    args = addProductNotification_args()
3372
    args.itemId = itemId
3373
    args.email = email
3374
    args.write(self._oprot)
3375
    self._oprot.writeMessageEnd()
3376
    self._oprot.trans.flush()
3377
 
3378
  def recv_addProductNotification(self, ):
3379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3380
    if mtype == TMessageType.EXCEPTION:
3381
      x = TApplicationException()
3382
      x.read(self._iprot)
3383
      self._iprot.readMessageEnd()
3384
      raise x
3385
    result = addProductNotification_result()
3386
    result.read(self._iprot)
3387
    self._iprot.readMessageEnd()
3388
    if result.success is not None:
3389
      return result.success
3390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3391
 
3392
  def sendProductNotifications(self, ):
3393
    """
3394
    Send the product notifications to the users for items which has stock.
3395
    """
3396
    self.send_sendProductNotifications()
3397
    return self.recv_sendProductNotifications()
3398
 
3399
  def send_sendProductNotifications(self, ):
3400
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3401
    args = sendProductNotifications_args()
3402
    args.write(self._oprot)
3403
    self._oprot.writeMessageEnd()
3404
    self._oprot.trans.flush()
3405
 
3406
  def recv_sendProductNotifications(self, ):
3407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3408
    if mtype == TMessageType.EXCEPTION:
3409
      x = TApplicationException()
3410
      x.read(self._iprot)
3411
      self._iprot.readMessageEnd()
3412
      raise x
3413
    result = sendProductNotifications_result()
3414
    result.read(self._iprot)
3415
    self._iprot.readMessageEnd()
3416
    if result.success is not None:
3417
      return result.success
3418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3419
 
3420
  def getAllBrandsByCategory(self, categoryId):
3421
    """
3422
    Returns list of brand names for a given category Id
3423
 
3424
    Parameters:
3425
     - categoryId
3426
    """
3427
    self.send_getAllBrandsByCategory(categoryId)
3428
    return self.recv_getAllBrandsByCategory()
3429
 
3430
  def send_getAllBrandsByCategory(self, categoryId):
3431
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3432
    args = getAllBrandsByCategory_args()
3433
    args.categoryId = categoryId
3434
    args.write(self._oprot)
3435
    self._oprot.writeMessageEnd()
3436
    self._oprot.trans.flush()
3437
 
3438
  def recv_getAllBrandsByCategory(self, ):
3439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3440
    if mtype == TMessageType.EXCEPTION:
3441
      x = TApplicationException()
3442
      x.read(self._iprot)
3443
      self._iprot.readMessageEnd()
3444
      raise x
3445
    result = getAllBrandsByCategory_result()
3446
    result.read(self._iprot)
3447
    self._iprot.readMessageEnd()
3448
    if result.success is not None:
3449
      return result.success
3450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3451
 
3452
  def getAllBrands(self, ):
3453
    """
3454
    Returns list of brand names
3455
    """
3456
    self.send_getAllBrands()
3457
    return self.recv_getAllBrands()
3458
 
3459
  def send_getAllBrands(self, ):
3460
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3461
    args = getAllBrands_args()
3462
    args.write(self._oprot)
3463
    self._oprot.writeMessageEnd()
3464
    self._oprot.trans.flush()
3465
 
3466
  def recv_getAllBrands(self, ):
3467
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3468
    if mtype == TMessageType.EXCEPTION:
3469
      x = TApplicationException()
3470
      x.read(self._iprot)
3471
      self._iprot.readMessageEnd()
3472
      raise x
3473
    result = getAllBrands_result()
3474
    result.read(self._iprot)
3475
    self._iprot.readMessageEnd()
3476
    if result.success is not None:
3477
      return result.success
3478
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3479
 
3480
  def getAllSources(self, ):
3481
    """
3482
    Return list of all sources
3483
    """
3484
    self.send_getAllSources()
3485
    return self.recv_getAllSources()
3486
 
3487
  def send_getAllSources(self, ):
3488
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3489
    args = getAllSources_args()
3490
    args.write(self._oprot)
3491
    self._oprot.writeMessageEnd()
3492
    self._oprot.trans.flush()
3493
 
3494
  def recv_getAllSources(self, ):
3495
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3496
    if mtype == TMessageType.EXCEPTION:
3497
      x = TApplicationException()
3498
      x.read(self._iprot)
3499
      self._iprot.readMessageEnd()
3500
      raise x
3501
    result = getAllSources_result()
3502
    result.read(self._iprot)
3503
    self._iprot.readMessageEnd()
3504
    if result.success is not None:
3505
      return result.success
3506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3507
 
3508
  def getItemPricingBySource(self, itemId, sourceId):
3509
    """
3510
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3511
 
3512
    Parameters:
3513
     - itemId
3514
     - sourceId
3515
    """
3516
    self.send_getItemPricingBySource(itemId, sourceId)
3517
    return self.recv_getItemPricingBySource()
3518
 
3519
  def send_getItemPricingBySource(self, itemId, sourceId):
3520
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3521
    args = getItemPricingBySource_args()
3522
    args.itemId = itemId
3523
    args.sourceId = sourceId
3524
    args.write(self._oprot)
3525
    self._oprot.writeMessageEnd()
3526
    self._oprot.trans.flush()
3527
 
3528
  def recv_getItemPricingBySource(self, ):
3529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3530
    if mtype == TMessageType.EXCEPTION:
3531
      x = TApplicationException()
3532
      x.read(self._iprot)
3533
      self._iprot.readMessageEnd()
3534
      raise x
3535
    result = getItemPricingBySource_result()
3536
    result.read(self._iprot)
3537
    self._iprot.readMessageEnd()
3538
    if result.success is not None:
3539
      return result.success
3540
    if result.cex is not None:
3541
      raise result.cex
3542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3543
 
3544
  def addSourceItemPricing(self, sourceItemPricing):
3545
    """
3546
    Adds prices to be displayed corresponding to the item if user comes from a source.
3547
    If item is not found or source is not found, it will throw exception.
3548
 
3549
    Parameters:
3550
     - sourceItemPricing
3551
    """
3552
    self.send_addSourceItemPricing(sourceItemPricing)
3553
    self.recv_addSourceItemPricing()
3554
 
3555
  def send_addSourceItemPricing(self, sourceItemPricing):
3556
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3557
    args = addSourceItemPricing_args()
3558
    args.sourceItemPricing = sourceItemPricing
3559
    args.write(self._oprot)
3560
    self._oprot.writeMessageEnd()
3561
    self._oprot.trans.flush()
3562
 
3563
  def recv_addSourceItemPricing(self, ):
3564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3565
    if mtype == TMessageType.EXCEPTION:
3566
      x = TApplicationException()
3567
      x.read(self._iprot)
3568
      self._iprot.readMessageEnd()
3569
      raise x
3570
    result = addSourceItemPricing_result()
3571
    result.read(self._iprot)
3572
    self._iprot.readMessageEnd()
3573
    if result.cex is not None:
3574
      raise result.cex
3575
    return
3576
 
3577
  def getAllSourcePricing(self, itemId):
3578
    """
3579
    Returns the list of source pricing information of an item.
3580
    Raises an exception if item not found corresponding to itemId
3581
 
3582
    Parameters:
3583
     - itemId
3584
    """
3585
    self.send_getAllSourcePricing(itemId)
3586
    return self.recv_getAllSourcePricing()
3587
 
3588
  def send_getAllSourcePricing(self, itemId):
3589
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3590
    args = getAllSourcePricing_args()
3591
    args.itemId = itemId
3592
    args.write(self._oprot)
3593
    self._oprot.writeMessageEnd()
3594
    self._oprot.trans.flush()
3595
 
3596
  def recv_getAllSourcePricing(self, ):
3597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3598
    if mtype == TMessageType.EXCEPTION:
3599
      x = TApplicationException()
3600
      x.read(self._iprot)
3601
      self._iprot.readMessageEnd()
3602
      raise x
3603
    result = getAllSourcePricing_result()
3604
    result.read(self._iprot)
3605
    self._iprot.readMessageEnd()
3606
    if result.success is not None:
3607
      return result.success
3608
    if result.cex is not None:
3609
      raise result.cex
3610
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3611
 
3612
  def getItemForSource(self, item_id, sourceId):
3613
    """
3614
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3615
 
3616
    Parameters:
3617
     - item_id
3618
     - sourceId
3619
    """
3620
    self.send_getItemForSource(item_id, sourceId)
3621
    return self.recv_getItemForSource()
3622
 
3623
  def send_getItemForSource(self, item_id, sourceId):
3624
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3625
    args = getItemForSource_args()
3626
    args.item_id = item_id
3627
    args.sourceId = sourceId
3628
    args.write(self._oprot)
3629
    self._oprot.writeMessageEnd()
3630
    self._oprot.trans.flush()
3631
 
3632
  def recv_getItemForSource(self, ):
3633
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3634
    if mtype == TMessageType.EXCEPTION:
3635
      x = TApplicationException()
3636
      x.read(self._iprot)
3637
      self._iprot.readMessageEnd()
3638
      raise x
3639
    result = getItemForSource_result()
3640
    result.read(self._iprot)
3641
    self._iprot.readMessageEnd()
3642
    if result.success is not None:
3643
      return result.success
3644
    if result.cex is not None:
3645
      raise result.cex
3646
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3647
 
3648
  def searchItemsInRange(self, searchTerms, offset, limit):
3649
    """
3650
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3651
 
3652
    Parameters:
3653
     - searchTerms
3654
     - offset
3655
     - limit
3656
    """
3657
    self.send_searchItemsInRange(searchTerms, offset, limit)
3658
    return self.recv_searchItemsInRange()
3659
 
3660
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3661
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3662
    args = searchItemsInRange_args()
3663
    args.searchTerms = searchTerms
3664
    args.offset = offset
3665
    args.limit = limit
3666
    args.write(self._oprot)
3667
    self._oprot.writeMessageEnd()
3668
    self._oprot.trans.flush()
3669
 
3670
  def recv_searchItemsInRange(self, ):
3671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3672
    if mtype == TMessageType.EXCEPTION:
3673
      x = TApplicationException()
3674
      x.read(self._iprot)
3675
      self._iprot.readMessageEnd()
3676
      raise x
3677
    result = searchItemsInRange_result()
3678
    result.read(self._iprot)
3679
    self._iprot.readMessageEnd()
3680
    if result.success is not None:
3681
      return result.success
3682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3683
 
3684
  def getSearchResultCount(self, searchTerms):
3685
    """
3686
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3687
 
3688
    Parameters:
3689
     - searchTerms
3690
    """
3691
    self.send_getSearchResultCount(searchTerms)
3692
    return self.recv_getSearchResultCount()
3693
 
3694
  def send_getSearchResultCount(self, searchTerms):
3695
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3696
    args = getSearchResultCount_args()
3697
    args.searchTerms = searchTerms
3698
    args.write(self._oprot)
3699
    self._oprot.writeMessageEnd()
3700
    self._oprot.trans.flush()
3701
 
3702
  def recv_getSearchResultCount(self, ):
3703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3704
    if mtype == TMessageType.EXCEPTION:
3705
      x = TApplicationException()
3706
      x.read(self._iprot)
3707
      self._iprot.readMessageEnd()
3708
      raise x
3709
    result = getSearchResultCount_result()
3710
    result.read(self._iprot)
3711
    self._iprot.readMessageEnd()
3712
    if result.success is not None:
3713
      return result.success
3714
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3715
 
3716
  def getProductNotifications(self, startDateTime):
3717
    """
3718
    Returns a list of product notifications added after a supplied datetime
3719
 
3720
    Parameters:
3721
     - startDateTime
3722
    """
3723
    self.send_getProductNotifications(startDateTime)
3724
    return self.recv_getProductNotifications()
3725
 
3726
  def send_getProductNotifications(self, startDateTime):
3727
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3728
    args = getProductNotifications_args()
3729
    args.startDateTime = startDateTime
3730
    args.write(self._oprot)
3731
    self._oprot.writeMessageEnd()
3732
    self._oprot.trans.flush()
3733
 
3734
  def recv_getProductNotifications(self, ):
3735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3736
    if mtype == TMessageType.EXCEPTION:
3737
      x = TApplicationException()
3738
      x.read(self._iprot)
3739
      self._iprot.readMessageEnd()
3740
      raise x
3741
    result = getProductNotifications_result()
3742
    result.read(self._iprot)
3743
    self._iprot.readMessageEnd()
3744
    if result.success is not None:
3745
      return result.success
3746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3747
 
7897 amar.kumar 3748
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3749
    """
3750
    Returns a list of count of requests for product notification against each item
3751
 
3752
    Parameters:
3753
     - startDateTime
7897 amar.kumar 3754
     - categoryId
5944 mandeep.dh 3755
    """
7897 amar.kumar 3756
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3757
    return self.recv_getProductNotificationRequestCount()
3758
 
7897 amar.kumar 3759
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3760
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3761
    args = getProductNotificationRequestCount_args()
3762
    args.startDateTime = startDateTime
7897 amar.kumar 3763
    args.categoryId = categoryId
5944 mandeep.dh 3764
    args.write(self._oprot)
3765
    self._oprot.writeMessageEnd()
3766
    self._oprot.trans.flush()
3767
 
3768
  def recv_getProductNotificationRequestCount(self, ):
3769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3770
    if mtype == TMessageType.EXCEPTION:
3771
      x = TApplicationException()
3772
      x.read(self._iprot)
3773
      self._iprot.readMessageEnd()
3774
      raise x
3775
    result = getProductNotificationRequestCount_result()
3776
    result.read(self._iprot)
3777
    self._iprot.readMessageEnd()
3778
    if result.success is not None:
3779
      return result.success
3780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3781
 
3782
  def addAuthorizationLog(self, itemId, username, reason):
3783
    """
3784
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3785
 
3786
    Parameters:
3787
     - itemId
3788
     - username
3789
     - reason
3790
    """
3791
    self.send_addAuthorizationLog(itemId, username, reason)
3792
    return self.recv_addAuthorizationLog()
3793
 
3794
  def send_addAuthorizationLog(self, itemId, username, reason):
3795
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3796
    args = addAuthorizationLog_args()
3797
    args.itemId = itemId
3798
    args.username = username
3799
    args.reason = reason
3800
    args.write(self._oprot)
3801
    self._oprot.writeMessageEnd()
3802
    self._oprot.trans.flush()
3803
 
3804
  def recv_addAuthorizationLog(self, ):
3805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3806
    if mtype == TMessageType.EXCEPTION:
3807
      x = TApplicationException()
3808
      x.read(self._iprot)
3809
      self._iprot.readMessageEnd()
3810
      raise x
3811
    result = addAuthorizationLog_result()
3812
    result.read(self._iprot)
3813
    self._iprot.readMessageEnd()
3814
    if result.success is not None:
3815
      return result.success
3816
    if result.cex is not None:
3817
      raise result.cex
3818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3819
 
3820
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3821
    """
3822
    Parameters:
3823
     - catalog_item_id
3824
     - voucherType
3825
     - voucherAmount
3826
    """
3827
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3828
    return self.recv_addupdateVoucherForItem()
3829
 
3830
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3831
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3832
    args = addupdateVoucherForItem_args()
3833
    args.catalog_item_id = catalog_item_id
3834
    args.voucherType = voucherType
3835
    args.voucherAmount = voucherAmount
3836
    args.write(self._oprot)
3837
    self._oprot.writeMessageEnd()
3838
    self._oprot.trans.flush()
3839
 
3840
  def recv_addupdateVoucherForItem(self, ):
3841
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3842
    if mtype == TMessageType.EXCEPTION:
3843
      x = TApplicationException()
3844
      x.read(self._iprot)
3845
      self._iprot.readMessageEnd()
3846
      raise x
3847
    result = addupdateVoucherForItem_result()
3848
    result.read(self._iprot)
3849
    self._iprot.readMessageEnd()
3850
    if result.success is not None:
3851
      return result.success
3852
    if result.cex is not None:
3853
      raise result.cex
3854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3855
 
3856
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3857
    """
3858
    Parameters:
3859
     - catalog_item_id
3860
     - voucherType
3861
    """
3862
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3863
    return self.recv_deleteVoucherForItem()
3864
 
3865
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3866
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3867
    args = deleteVoucherForItem_args()
3868
    args.catalog_item_id = catalog_item_id
3869
    args.voucherType = voucherType
3870
    args.write(self._oprot)
3871
    self._oprot.writeMessageEnd()
3872
    self._oprot.trans.flush()
3873
 
3874
  def recv_deleteVoucherForItem(self, ):
3875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3876
    if mtype == TMessageType.EXCEPTION:
3877
      x = TApplicationException()
3878
      x.read(self._iprot)
3879
      self._iprot.readMessageEnd()
3880
      raise x
3881
    result = deleteVoucherForItem_result()
3882
    result.read(self._iprot)
3883
    self._iprot.readMessageEnd()
3884
    if result.success is not None:
3885
      return result.success
3886
    if result.cex is not None:
3887
      raise result.cex
3888
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3889
 
3890
  def getVoucherAmount(self, itemId, voucherType):
3891
    """
3892
    Parameters:
3893
     - itemId
3894
     - voucherType
3895
    """
3896
    self.send_getVoucherAmount(itemId, voucherType)
3897
    return self.recv_getVoucherAmount()
3898
 
3899
  def send_getVoucherAmount(self, itemId, voucherType):
3900
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3901
    args = getVoucherAmount_args()
3902
    args.itemId = itemId
3903
    args.voucherType = voucherType
3904
    args.write(self._oprot)
3905
    self._oprot.writeMessageEnd()
3906
    self._oprot.trans.flush()
3907
 
3908
  def recv_getVoucherAmount(self, ):
3909
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3910
    if mtype == TMessageType.EXCEPTION:
3911
      x = TApplicationException()
3912
      x.read(self._iprot)
3913
      self._iprot.readMessageEnd()
3914
      raise x
3915
    result = getVoucherAmount_result()
3916
    result.read(self._iprot)
3917
    self._iprot.readMessageEnd()
3918
    if result.success is not None:
3919
      return result.success
3920
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3921
 
3922
  def getAllItemVouchers(self, itemId):
3923
    """
3924
    Parameters:
3925
     - itemId
3926
    """
3927
    self.send_getAllItemVouchers(itemId)
3928
    return self.recv_getAllItemVouchers()
3929
 
3930
  def send_getAllItemVouchers(self, itemId):
3931
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3932
    args = getAllItemVouchers_args()
3933
    args.itemId = itemId
3934
    args.write(self._oprot)
3935
    self._oprot.writeMessageEnd()
3936
    self._oprot.trans.flush()
3937
 
3938
  def recv_getAllItemVouchers(self, ):
3939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3940
    if mtype == TMessageType.EXCEPTION:
3941
      x = TApplicationException()
3942
      x.read(self._iprot)
3943
      self._iprot.readMessageEnd()
3944
      raise x
3945
    result = getAllItemVouchers_result()
3946
    result.read(self._iprot)
3947
    self._iprot.readMessageEnd()
3948
    if result.success is not None:
3949
      return result.success
3950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3951
 
3952
  def isValidCatalogItemId(self, catalog_item_id):
3953
    """
3954
    Parameters:
3955
     - catalog_item_id
3956
    """
3957
    self.send_isValidCatalogItemId(catalog_item_id)
3958
    return self.recv_isValidCatalogItemId()
3959
 
3960
  def send_isValidCatalogItemId(self, catalog_item_id):
3961
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3962
    args = isValidCatalogItemId_args()
3963
    args.catalog_item_id = catalog_item_id
3964
    args.write(self._oprot)
3965
    self._oprot.writeMessageEnd()
3966
    self._oprot.trans.flush()
3967
 
3968
  def recv_isValidCatalogItemId(self, ):
3969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3970
    if mtype == TMessageType.EXCEPTION:
3971
      x = TApplicationException()
3972
      x.read(self._iprot)
3973
      self._iprot.readMessageEnd()
3974
      raise x
3975
    result = isValidCatalogItemId_result()
3976
    result.read(self._iprot)
3977
    self._iprot.readMessageEnd()
3978
    if result.success is not None:
3979
      return result.success
3980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3981
 
7330 amit.gupta 3982
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3983
    """
3984
    Parameters:
3985
     - itemId
7330 amit.gupta 3986
     - stateId
6039 amit.gupta 3987
     - price
3988
    """
7330 amit.gupta 3989
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3990
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3991
 
7330 amit.gupta 3992
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3993
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3994
    args = getVatPercentageForItem_args()
3995
    args.itemId = itemId
7330 amit.gupta 3996
    args.stateId = stateId
6039 amit.gupta 3997
    args.price = price
3998
    args.write(self._oprot)
3999
    self._oprot.writeMessageEnd()
4000
    self._oprot.trans.flush()
4001
 
4002
  def recv_getVatPercentageForItem(self, ):
4003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4004
    if mtype == TMessageType.EXCEPTION:
4005
      x = TApplicationException()
4006
      x.read(self._iprot)
4007
      self._iprot.readMessageEnd()
4008
      raise x
4009
    result = getVatPercentageForItem_result()
4010
    result.read(self._iprot)
4011
    self._iprot.readMessageEnd()
4012
    if result.success is not None:
4013
      return result.success
7340 amit.gupta 4014
    if result.cex is not None:
4015
      raise result.cex
6039 amit.gupta 4016
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4017
 
4018
  def getVatAmountForItem(self, itemId, price):
4019
    """
4020
    Parameters:
4021
     - itemId
4022
     - price
4023
    """
4024
    self.send_getVatAmountForItem(itemId, price)
4025
    return self.recv_getVatAmountForItem()
4026
 
4027
  def send_getVatAmountForItem(self, itemId, price):
4028
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4029
    args = getVatAmountForItem_args()
4030
    args.itemId = itemId
4031
    args.price = price
4032
    args.write(self._oprot)
4033
    self._oprot.writeMessageEnd()
4034
    self._oprot.trans.flush()
4035
 
4036
  def recv_getVatAmountForItem(self, ):
4037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4038
    if mtype == TMessageType.EXCEPTION:
4039
      x = TApplicationException()
4040
      x.read(self._iprot)
4041
      self._iprot.readMessageEnd()
4042
      raise x
4043
    result = getVatAmountForItem_result()
4044
    result.read(self._iprot)
4045
    self._iprot.readMessageEnd()
4046
    if result.success is not None:
4047
      return result.success
4048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4049
 
6531 vikram.rag 4050
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4051
    """
4052
    Parameters:
4053
     - offset
4054
     - limit
4055
    """
4056
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4057
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4058
 
6531 vikram.rag 4059
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4060
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4061
    args = getAllIgnoredInventoryUpdateItemsList_args()
4062
    args.offset = offset
4063
    args.limit = limit
4064
    args.write(self._oprot)
4065
    self._oprot.writeMessageEnd()
4066
    self._oprot.trans.flush()
4067
 
4068
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4070
    if mtype == TMessageType.EXCEPTION:
4071
      x = TApplicationException()
4072
      x.read(self._iprot)
4073
      self._iprot.readMessageEnd()
4074
      raise x
4075
    result = getAllIgnoredInventoryUpdateItemsList_result()
4076
    result.read(self._iprot)
4077
    self._iprot.readMessageEnd()
4078
    if result.success is not None:
4079
      return result.success
4080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4081
 
6821 amar.kumar 4082
  def getAllAliveItems(self, ):
4083
    self.send_getAllAliveItems()
4084
    return self.recv_getAllAliveItems()
4085
 
4086
  def send_getAllAliveItems(self, ):
4087
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4088
    args = getAllAliveItems_args()
4089
    args.write(self._oprot)
4090
    self._oprot.writeMessageEnd()
4091
    self._oprot.trans.flush()
4092
 
4093
  def recv_getAllAliveItems(self, ):
4094
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4095
    if mtype == TMessageType.EXCEPTION:
4096
      x = TApplicationException()
4097
      x.read(self._iprot)
4098
      self._iprot.readMessageEnd()
4099
      raise x
4100
    result = getAllAliveItems_result()
4101
    result.read(self._iprot)
4102
    self._iprot.readMessageEnd()
4103
    if result.success is not None:
4104
      return result.success
4105
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4106
 
6921 anupam.sin 4107
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4108
    """
4109
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4110
 
6805 anupam.sin 4111
    Parameters:
4112
     - itemId
6921 anupam.sin 4113
     - price
6805 anupam.sin 4114
     - insurerId
4115
     - quantity
4116
    """
6921 anupam.sin 4117
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4118
    return self.recv_getInsuranceAmount()
4119
 
6921 anupam.sin 4120
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4121
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4122
    args = getInsuranceAmount_args()
4123
    args.itemId = itemId
6921 anupam.sin 4124
    args.price = price
6805 anupam.sin 4125
    args.insurerId = insurerId
4126
    args.quantity = quantity
4127
    args.write(self._oprot)
4128
    self._oprot.writeMessageEnd()
4129
    self._oprot.trans.flush()
4130
 
4131
  def recv_getInsuranceAmount(self, ):
4132
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4133
    if mtype == TMessageType.EXCEPTION:
4134
      x = TApplicationException()
4135
      x.read(self._iprot)
4136
      self._iprot.readMessageEnd()
4137
      raise x
4138
    result = getInsuranceAmount_result()
4139
    result.read(self._iprot)
4140
    self._iprot.readMessageEnd()
4141
    if result.success is not None:
4142
      return result.success
4143
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4144
 
4145
  def getInsurer(self, insurerId):
4146
    """
4147
    Parameters:
4148
     - insurerId
4149
    """
4150
    self.send_getInsurer(insurerId)
4151
    return self.recv_getInsurer()
4152
 
4153
  def send_getInsurer(self, insurerId):
4154
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4155
    args = getInsurer_args()
4156
    args.insurerId = insurerId
4157
    args.write(self._oprot)
4158
    self._oprot.writeMessageEnd()
4159
    self._oprot.trans.flush()
4160
 
4161
  def recv_getInsurer(self, ):
4162
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4163
    if mtype == TMessageType.EXCEPTION:
4164
      x = TApplicationException()
4165
      x.read(self._iprot)
4166
      self._iprot.readMessageEnd()
4167
      raise x
4168
    result = getInsurer_result()
4169
    result.read(self._iprot)
4170
    self._iprot.readMessageEnd()
4171
    if result.success is not None:
4172
      return result.success
4173
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4174
 
6838 vikram.rag 4175
  def getAllInsurers(self, ):
4176
    self.send_getAllInsurers()
4177
    return self.recv_getAllInsurers()
6805 anupam.sin 4178
 
6838 vikram.rag 4179
  def send_getAllInsurers(self, ):
4180
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4181
    args = getAllInsurers_args()
4182
    args.write(self._oprot)
4183
    self._oprot.writeMessageEnd()
4184
    self._oprot.trans.flush()
4185
 
4186
  def recv_getAllInsurers(self, ):
4187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4188
    if mtype == TMessageType.EXCEPTION:
4189
      x = TApplicationException()
4190
      x.read(self._iprot)
4191
      self._iprot.readMessageEnd()
4192
      raise x
4193
    result = getAllInsurers_result()
4194
    result.read(self._iprot)
4195
    self._iprot.readMessageEnd()
4196
    if result.success is not None:
4197
      return result.success
4198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4199
 
6962 rajveer 4200
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4201
    """
4202
    Parameters:
4203
     - insurerId
4204
     - amount
4205
    """
4206
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4207
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4208
 
6962 rajveer 4209
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4210
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4211
    args = updateInsuranceDeclaredAmount_args()
4212
    args.insurerId = insurerId
4213
    args.amount = amount
4214
    args.write(self._oprot)
4215
    self._oprot.writeMessageEnd()
4216
    self._oprot.trans.flush()
4217
 
4218
  def recv_updateInsuranceDeclaredAmount(self, ):
4219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4220
    if mtype == TMessageType.EXCEPTION:
4221
      x = TApplicationException()
4222
      x.read(self._iprot)
4223
      self._iprot.readMessageEnd()
4224
      raise x
4225
    result = updateInsuranceDeclaredAmount_result()
4226
    result.read(self._iprot)
4227
    self._iprot.readMessageEnd()
4228
    return
4229
 
7190 amar.kumar 4230
  def getFreebieForItem(self, itemId):
4231
    """
4232
    Parameters:
4233
     - itemId
4234
    """
4235
    self.send_getFreebieForItem(itemId)
4236
    return self.recv_getFreebieForItem()
6962 rajveer 4237
 
7190 amar.kumar 4238
  def send_getFreebieForItem(self, itemId):
4239
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4240
    args = getFreebieForItem_args()
4241
    args.itemId = itemId
4242
    args.write(self._oprot)
4243
    self._oprot.writeMessageEnd()
4244
    self._oprot.trans.flush()
4245
 
4246
  def recv_getFreebieForItem(self, ):
4247
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4248
    if mtype == TMessageType.EXCEPTION:
4249
      x = TApplicationException()
4250
      x.read(self._iprot)
4251
      self._iprot.readMessageEnd()
4252
      raise x
4253
    result = getFreebieForItem_result()
4254
    result.read(self._iprot)
4255
    self._iprot.readMessageEnd()
4256
    if result.success is not None:
4257
      return result.success
4258
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4259
 
4260
  def addOrUpdateFreebieForItem(self, freebieItem):
4261
    """
4262
    Parameters:
4263
     - freebieItem
4264
    """
4265
    self.send_addOrUpdateFreebieForItem(freebieItem)
4266
    self.recv_addOrUpdateFreebieForItem()
4267
 
4268
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4269
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4270
    args = addOrUpdateFreebieForItem_args()
4271
    args.freebieItem = freebieItem
4272
    args.write(self._oprot)
4273
    self._oprot.writeMessageEnd()
4274
    self._oprot.trans.flush()
4275
 
4276
  def recv_addOrUpdateFreebieForItem(self, ):
4277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4278
    if mtype == TMessageType.EXCEPTION:
4279
      x = TApplicationException()
4280
      x.read(self._iprot)
4281
      self._iprot.readMessageEnd()
4282
      raise x
4283
    result = addOrUpdateFreebieForItem_result()
4284
    result.read(self._iprot)
4285
    self._iprot.readMessageEnd()
4286
    return
4287
 
7272 amit.gupta 4288
  def addOrUpdateBrandInfo(self, brandInfo):
4289
    """
4290
    Parameters:
4291
     - brandInfo
4292
    """
4293
    self.send_addOrUpdateBrandInfo(brandInfo)
4294
    self.recv_addOrUpdateBrandInfo()
4295
 
4296
  def send_addOrUpdateBrandInfo(self, brandInfo):
4297
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4298
    args = addOrUpdateBrandInfo_args()
4299
    args.brandInfo = brandInfo
4300
    args.write(self._oprot)
4301
    self._oprot.writeMessageEnd()
4302
    self._oprot.trans.flush()
4303
 
4304
  def recv_addOrUpdateBrandInfo(self, ):
4305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4306
    if mtype == TMessageType.EXCEPTION:
4307
      x = TApplicationException()
4308
      x.read(self._iprot)
4309
      self._iprot.readMessageEnd()
4310
      raise x
4311
    result = addOrUpdateBrandInfo_result()
4312
    result.read(self._iprot)
4313
    self._iprot.readMessageEnd()
4314
    return
4315
 
4316
  def getBrandInfo(self, ):
4317
    self.send_getBrandInfo()
4318
    return self.recv_getBrandInfo()
4319
 
4320
  def send_getBrandInfo(self, ):
4321
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4322
    args = getBrandInfo_args()
4323
    args.write(self._oprot)
4324
    self._oprot.writeMessageEnd()
4325
    self._oprot.trans.flush()
4326
 
4327
  def recv_getBrandInfo(self, ):
4328
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4329
    if mtype == TMessageType.EXCEPTION:
4330
      x = TApplicationException()
4331
      x.read(self._iprot)
4332
      self._iprot.readMessageEnd()
4333
      raise x
4334
    result = getBrandInfo_result()
4335
    result.read(self._iprot)
4336
    self._iprot.readMessageEnd()
4337
    if result.success is not None:
4338
      return result.success
4339
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4340
 
7256 rajveer 4341
  def getStorePricing(self, itemId):
4342
    """
4343
    Parameters:
4344
     - itemId
4345
    """
4346
    self.send_getStorePricing(itemId)
4347
    return self.recv_getStorePricing()
7190 amar.kumar 4348
 
7256 rajveer 4349
  def send_getStorePricing(self, itemId):
4350
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4351
    args = getStorePricing_args()
4352
    args.itemId = itemId
4353
    args.write(self._oprot)
4354
    self._oprot.writeMessageEnd()
4355
    self._oprot.trans.flush()
4356
 
4357
  def recv_getStorePricing(self, ):
4358
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4359
    if mtype == TMessageType.EXCEPTION:
4360
      x = TApplicationException()
4361
      x.read(self._iprot)
4362
      self._iprot.readMessageEnd()
4363
      raise x
4364
    result = getStorePricing_result()
4365
    result.read(self._iprot)
4366
    self._iprot.readMessageEnd()
4367
    if result.success is not None:
4368
      return result.success
4369
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4370
 
7306 rajveer 4371
  def getStorePricings(self, itemIds):
4372
    """
4373
    Parameters:
4374
     - itemIds
4375
    """
4376
    self.send_getStorePricings(itemIds)
4377
    return self.recv_getStorePricings()
4378
 
4379
  def send_getStorePricings(self, itemIds):
4380
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4381
    args = getStorePricings_args()
4382
    args.itemIds = itemIds
4383
    args.write(self._oprot)
4384
    self._oprot.writeMessageEnd()
4385
    self._oprot.trans.flush()
4386
 
4387
  def recv_getStorePricings(self, ):
4388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4389
    if mtype == TMessageType.EXCEPTION:
4390
      x = TApplicationException()
4391
      x.read(self._iprot)
4392
      self._iprot.readMessageEnd()
4393
      raise x
4394
    result = getStorePricings_result()
4395
    result.read(self._iprot)
4396
    self._iprot.readMessageEnd()
4397
    if result.success is not None:
4398
      return result.success
4399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4400
 
7382 rajveer 4401
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4402
    """
4403
    Parameters:
4404
     - sp
7382 rajveer 4405
     - allColors
7265 rajveer 4406
    """
7382 rajveer 4407
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4408
    self.recv_updateStorePricing()
7256 rajveer 4409
 
7382 rajveer 4410
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4411
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4412
    args = updateStorePricing_args()
4413
    args.sp = sp
7382 rajveer 4414
    args.allColors = allColors
7265 rajveer 4415
    args.write(self._oprot)
4416
    self._oprot.writeMessageEnd()
4417
    self._oprot.trans.flush()
4418
 
4419
  def recv_updateStorePricing(self, ):
4420
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4421
    if mtype == TMessageType.EXCEPTION:
4422
      x = TApplicationException()
4423
      x.read(self._iprot)
4424
      self._iprot.readMessageEnd()
4425
      raise x
4426
    result = updateStorePricing_result()
4427
    result.read(self._iprot)
4428
    self._iprot.readMessageEnd()
4429
    return
4430
 
7281 kshitij.so 4431
  def getAllAmazonListedItems(self, ):
4432
    self.send_getAllAmazonListedItems()
4433
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4434
 
7281 kshitij.so 4435
  def send_getAllAmazonListedItems(self, ):
4436
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4437
    args = getAllAmazonListedItems_args()
4438
    args.write(self._oprot)
4439
    self._oprot.writeMessageEnd()
4440
    self._oprot.trans.flush()
4441
 
4442
  def recv_getAllAmazonListedItems(self, ):
4443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4444
    if mtype == TMessageType.EXCEPTION:
4445
      x = TApplicationException()
4446
      x.read(self._iprot)
4447
      self._iprot.readMessageEnd()
4448
      raise x
4449
    result = getAllAmazonListedItems_result()
4450
    result.read(self._iprot)
4451
    self._iprot.readMessageEnd()
4452
    if result.success is not None:
4453
      return result.success
4454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4455
 
8619 kshitij.so 4456
  def searchAmazonItems(self, searchTerm, offset, limit):
4457
    """
4458
    Parameters:
4459
     - searchTerm
4460
     - offset
4461
     - limit
4462
    """
4463
    self.send_searchAmazonItems(searchTerm, offset, limit)
4464
    return self.recv_searchAmazonItems()
4465
 
4466
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4467
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4468
    args = searchAmazonItems_args()
4469
    args.searchTerm = searchTerm
4470
    args.offset = offset
4471
    args.limit = limit
4472
    args.write(self._oprot)
4473
    self._oprot.writeMessageEnd()
4474
    self._oprot.trans.flush()
4475
 
4476
  def recv_searchAmazonItems(self, ):
4477
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4478
    if mtype == TMessageType.EXCEPTION:
4479
      x = TApplicationException()
4480
      x.read(self._iprot)
4481
      self._iprot.readMessageEnd()
4482
      raise x
4483
    result = searchAmazonItems_result()
4484
    result.read(self._iprot)
4485
    self._iprot.readMessageEnd()
4486
    if result.success is not None:
4487
      return result.success
4488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4489
 
4490
  def getAmazonSearchResultCount(self, searchTerm):
4491
    """
4492
    Parameters:
4493
     - searchTerm
4494
    """
4495
    self.send_getAmazonSearchResultCount(searchTerm)
4496
    return self.recv_getAmazonSearchResultCount()
4497
 
4498
  def send_getAmazonSearchResultCount(self, searchTerm):
4499
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4500
    args = getAmazonSearchResultCount_args()
4501
    args.searchTerm = searchTerm
4502
    args.write(self._oprot)
4503
    self._oprot.writeMessageEnd()
4504
    self._oprot.trans.flush()
4505
 
4506
  def recv_getAmazonSearchResultCount(self, ):
4507
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4508
    if mtype == TMessageType.EXCEPTION:
4509
      x = TApplicationException()
4510
      x.read(self._iprot)
4511
      self._iprot.readMessageEnd()
4512
      raise x
4513
    result = getAmazonSearchResultCount_result()
4514
    result.read(self._iprot)
4515
    self._iprot.readMessageEnd()
4516
    if result.success is not None:
4517
      return result.success
4518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4519
 
4520
  def getCountForAmazonlistedItems(self, ):
4521
    self.send_getCountForAmazonlistedItems()
4522
    return self.recv_getCountForAmazonlistedItems()
4523
 
4524
  def send_getCountForAmazonlistedItems(self, ):
4525
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4526
    args = getCountForAmazonlistedItems_args()
4527
    args.write(self._oprot)
4528
    self._oprot.writeMessageEnd()
4529
    self._oprot.trans.flush()
4530
 
4531
  def recv_getCountForAmazonlistedItems(self, ):
4532
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4533
    if mtype == TMessageType.EXCEPTION:
4534
      x = TApplicationException()
4535
      x.read(self._iprot)
4536
      self._iprot.readMessageEnd()
4537
      raise x
4538
    result = getCountForAmazonlistedItems_result()
4539
    result.read(self._iprot)
4540
    self._iprot.readMessageEnd()
4541
    if result.success is not None:
4542
      return result.success
4543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4544
 
7281 kshitij.so 4545
  def getAmazonItemDetails(self, itemId):
4546
    """
4547
    Parameters:
4548
     - itemId
4549
    """
4550
    self.send_getAmazonItemDetails(itemId)
4551
    return self.recv_getAmazonItemDetails()
4552
 
4553
  def send_getAmazonItemDetails(self, itemId):
4554
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4555
    args = getAmazonItemDetails_args()
4556
    args.itemId = itemId
4557
    args.write(self._oprot)
4558
    self._oprot.writeMessageEnd()
4559
    self._oprot.trans.flush()
4560
 
4561
  def recv_getAmazonItemDetails(self, ):
4562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4563
    if mtype == TMessageType.EXCEPTION:
4564
      x = TApplicationException()
4565
      x.read(self._iprot)
4566
      self._iprot.readMessageEnd()
4567
      raise x
4568
    result = getAmazonItemDetails_result()
4569
    result.read(self._iprot)
4570
    self._iprot.readMessageEnd()
4571
    if result.success is not None:
4572
      return result.success
4573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4574
 
8168 kshitij.so 4575
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4576
    """
4577
    Parameters:
8168 kshitij.so 4578
     - amazonlisted
7281 kshitij.so 4579
    """
8168 kshitij.so 4580
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4581
    self.recv_updateAmazonItemDetails()
4582
 
8168 kshitij.so 4583
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4584
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4585
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4586
    args.amazonlisted = amazonlisted
7281 kshitij.so 4587
    args.write(self._oprot)
4588
    self._oprot.writeMessageEnd()
4589
    self._oprot.trans.flush()
4590
 
4591
  def recv_updateAmazonItemDetails(self, ):
4592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4593
    if mtype == TMessageType.EXCEPTION:
4594
      x = TApplicationException()
4595
      x.read(self._iprot)
4596
      self._iprot.readMessageEnd()
4597
      raise x
4598
    result = updateAmazonItemDetails_result()
4599
    result.read(self._iprot)
4600
    self._iprot.readMessageEnd()
4601
    return
4602
 
4603
  def addAmazonItem(self, amazonlisted):
4604
    """
4605
    Parameters:
4606
     - amazonlisted
4607
    """
4608
    self.send_addAmazonItem(amazonlisted)
4609
    self.recv_addAmazonItem()
4610
 
4611
  def send_addAmazonItem(self, amazonlisted):
4612
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4613
    args = addAmazonItem_args()
4614
    args.amazonlisted = amazonlisted
4615
    args.write(self._oprot)
4616
    self._oprot.writeMessageEnd()
4617
    self._oprot.trans.flush()
4618
 
4619
  def recv_addAmazonItem(self, ):
4620
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4621
    if mtype == TMessageType.EXCEPTION:
4622
      x = TApplicationException()
4623
      x.read(self._iprot)
4624
      self._iprot.readMessageEnd()
4625
      raise x
4626
    result = addAmazonItem_result()
4627
    result.read(self._iprot)
4628
    self._iprot.readMessageEnd()
4629
    return
4630
 
7291 vikram.rag 4631
  def getAsinItems(self, ):
4632
    self.send_getAsinItems()
4633
    return self.recv_getAsinItems()
7281 kshitij.so 4634
 
7291 vikram.rag 4635
  def send_getAsinItems(self, ):
4636
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4637
    args = getAsinItems_args()
4638
    args.write(self._oprot)
4639
    self._oprot.writeMessageEnd()
4640
    self._oprot.trans.flush()
4641
 
4642
  def recv_getAsinItems(self, ):
4643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4644
    if mtype == TMessageType.EXCEPTION:
4645
      x = TApplicationException()
4646
      x.read(self._iprot)
4647
      self._iprot.readMessageEnd()
4648
      raise x
4649
    result = getAsinItems_result()
4650
    result.read(self._iprot)
4651
    self._iprot.readMessageEnd()
4652
    if result.success is not None:
4653
      return result.success
4654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4655
 
4656
  def getAllFbaListedItems(self, ):
4657
    self.send_getAllFbaListedItems()
4658
    return self.recv_getAllFbaListedItems()
4659
 
4660
  def send_getAllFbaListedItems(self, ):
4661
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4662
    args = getAllFbaListedItems_args()
4663
    args.write(self._oprot)
4664
    self._oprot.writeMessageEnd()
4665
    self._oprot.trans.flush()
4666
 
4667
  def recv_getAllFbaListedItems(self, ):
4668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4669
    if mtype == TMessageType.EXCEPTION:
4670
      x = TApplicationException()
4671
      x.read(self._iprot)
4672
      self._iprot.readMessageEnd()
4673
      raise x
4674
    result = getAllFbaListedItems_result()
4675
    result.read(self._iprot)
4676
    self._iprot.readMessageEnd()
4677
    if result.success is not None:
4678
      return result.success
4679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4680
 
4681
  def getAllNonFbaListedItems(self, ):
4682
    self.send_getAllNonFbaListedItems()
4683
    return self.recv_getAllNonFbaListedItems()
4684
 
4685
  def send_getAllNonFbaListedItems(self, ):
4686
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4687
    args = getAllNonFbaListedItems_args()
4688
    args.write(self._oprot)
4689
    self._oprot.writeMessageEnd()
4690
    self._oprot.trans.flush()
4691
 
4692
  def recv_getAllNonFbaListedItems(self, ):
4693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4694
    if mtype == TMessageType.EXCEPTION:
4695
      x = TApplicationException()
4696
      x.read(self._iprot)
4697
      self._iprot.readMessageEnd()
4698
      raise x
4699
    result = getAllNonFbaListedItems_result()
4700
    result.read(self._iprot)
4701
    self._iprot.readMessageEnd()
4702
    if result.success is not None:
4703
      return result.success
4704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4705
 
7460 kshitij.so 4706
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4707
    """
4708
    Parameters:
4709
     - itemId
4710
     - holdInventory
4711
     - defaultInventory
4712
    """
4713
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4714
    return self.recv_updateItemInventory()
7291 vikram.rag 4715
 
7460 kshitij.so 4716
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4717
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4718
    args = updateItemInventory_args()
4719
    args.itemId = itemId
4720
    args.holdInventory = holdInventory
4721
    args.defaultInventory = defaultInventory
4722
    args.write(self._oprot)
4723
    self._oprot.writeMessageEnd()
4724
    self._oprot.trans.flush()
4725
 
4726
  def recv_updateItemInventory(self, ):
4727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4728
    if mtype == TMessageType.EXCEPTION:
4729
      x = TApplicationException()
4730
      x.read(self._iprot)
4731
      self._iprot.readMessageEnd()
4732
      raise x
4733
    result = updateItemInventory_result()
4734
    result.read(self._iprot)
4735
    self._iprot.readMessageEnd()
4736
    if result.success is not None:
4737
      return result.success
4738
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4739
 
7770 kshitij.so 4740
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4741
    """
4742
    Parameters:
4743
     - type
4744
     - sku
4745
     - timestamp
4746
    """
4747
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4748
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4749
 
7770 kshitij.so 4750
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4751
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4752
    args = updateTimestampForAmazonFeeds_args()
4753
    args.type = type
4754
    args.sku = sku
4755
    args.timestamp = timestamp
4756
    args.write(self._oprot)
4757
    self._oprot.writeMessageEnd()
4758
    self._oprot.trans.flush()
4759
 
4760
  def recv_updateTimestampForAmazonFeeds(self, ):
4761
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4762
    if mtype == TMessageType.EXCEPTION:
4763
      x = TApplicationException()
4764
      x.read(self._iprot)
4765
      self._iprot.readMessageEnd()
4766
      raise x
4767
    result = updateTimestampForAmazonFeeds_result()
4768
    result.read(self._iprot)
4769
    self._iprot.readMessageEnd()
4770
    if result.success is not None:
4771
      return result.success
4772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4773
 
7897 amar.kumar 4774
  def getAllParentCategories(self, ):
4775
    self.send_getAllParentCategories()
4776
    return self.recv_getAllParentCategories()
7770 kshitij.so 4777
 
7897 amar.kumar 4778
  def send_getAllParentCategories(self, ):
4779
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4780
    args = getAllParentCategories_args()
4781
    args.write(self._oprot)
4782
    self._oprot.writeMessageEnd()
4783
    self._oprot.trans.flush()
4784
 
4785
  def recv_getAllParentCategories(self, ):
4786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4787
    if mtype == TMessageType.EXCEPTION:
4788
      x = TApplicationException()
4789
      x.read(self._iprot)
4790
      self._iprot.readMessageEnd()
4791
      raise x
4792
    result = getAllParentCategories_result()
4793
    result.read(self._iprot)
4794
    self._iprot.readMessageEnd()
4795
    if result.success is not None:
4796
      return result.success
4797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4798
 
7977 kshitij.so 4799
  def addPageViewEvent(self, pageViewEvents):
4800
    """
4801
    Parameters:
4802
     - pageViewEvents
4803
    """
4804
    self.send_addPageViewEvent(pageViewEvents)
4805
    self.recv_addPageViewEvent()
7897 amar.kumar 4806
 
7977 kshitij.so 4807
  def send_addPageViewEvent(self, pageViewEvents):
4808
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4809
    args = addPageViewEvent_args()
4810
    args.pageViewEvents = pageViewEvents
4811
    args.write(self._oprot)
4812
    self._oprot.writeMessageEnd()
4813
    self._oprot.trans.flush()
4814
 
4815
  def recv_addPageViewEvent(self, ):
4816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4817
    if mtype == TMessageType.EXCEPTION:
4818
      x = TApplicationException()
4819
      x.read(self._iprot)
4820
      self._iprot.readMessageEnd()
4821
      raise x
4822
    result = addPageViewEvent_result()
4823
    result.read(self._iprot)
4824
    self._iprot.readMessageEnd()
4825
    return
4826
 
4827
  def addCartEvent(self, cartEvents):
4828
    """
4829
    Parameters:
4830
     - cartEvents
4831
    """
4832
    self.send_addCartEvent(cartEvents)
4833
    self.recv_addCartEvent()
4834
 
4835
  def send_addCartEvent(self, cartEvents):
4836
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4837
    args = addCartEvent_args()
4838
    args.cartEvents = cartEvents
4839
    args.write(self._oprot)
4840
    self._oprot.writeMessageEnd()
4841
    self._oprot.trans.flush()
4842
 
4843
  def recv_addCartEvent(self, ):
4844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4845
    if mtype == TMessageType.EXCEPTION:
4846
      x = TApplicationException()
4847
      x.read(self._iprot)
4848
      self._iprot.readMessageEnd()
4849
      raise x
4850
    result = addCartEvent_result()
4851
    result.read(self._iprot)
4852
    self._iprot.readMessageEnd()
4853
    return
4854
 
8182 amar.kumar 4855
  def addEbayItem(self, ebayItem):
4856
    """
4857
    Parameters:
4858
     - ebayItem
4859
    """
4860
    self.send_addEbayItem(ebayItem)
4861
    self.recv_addEbayItem()
4862
 
4863
  def send_addEbayItem(self, ebayItem):
4864
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4865
    args = addEbayItem_args()
4866
    args.ebayItem = ebayItem
4867
    args.write(self._oprot)
4868
    self._oprot.writeMessageEnd()
4869
    self._oprot.trans.flush()
4870
 
4871
  def recv_addEbayItem(self, ):
4872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4873
    if mtype == TMessageType.EXCEPTION:
4874
      x = TApplicationException()
4875
      x.read(self._iprot)
4876
      self._iprot.readMessageEnd()
4877
      raise x
4878
    result = addEbayItem_result()
4879
    result.read(self._iprot)
4880
    self._iprot.readMessageEnd()
4881
    return
4882
 
4883
  def getEbayItem(self, listingId):
4884
    """
4885
    Parameters:
4886
     - listingId
4887
    """
4888
    self.send_getEbayItem(listingId)
4889
    return self.recv_getEbayItem()
4890
 
4891
  def send_getEbayItem(self, listingId):
4892
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4893
    args = getEbayItem_args()
4894
    args.listingId = listingId
4895
    args.write(self._oprot)
4896
    self._oprot.writeMessageEnd()
4897
    self._oprot.trans.flush()
4898
 
4899
  def recv_getEbayItem(self, ):
4900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4901
    if mtype == TMessageType.EXCEPTION:
4902
      x = TApplicationException()
4903
      x.read(self._iprot)
4904
      self._iprot.readMessageEnd()
4905
      raise x
4906
    result = getEbayItem_result()
4907
    result.read(self._iprot)
4908
    self._iprot.readMessageEnd()
4909
    if result.success is not None:
4910
      return result.success
4911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4912
 
4913
  def updateEbayItem(self, ebayItem):
4914
    """
4915
    Parameters:
4916
     - ebayItem
4917
    """
4918
    self.send_updateEbayItem(ebayItem)
4919
    self.recv_updateEbayItem()
4920
 
4921
  def send_updateEbayItem(self, ebayItem):
4922
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4923
    args = updateEbayItem_args()
4924
    args.ebayItem = ebayItem
4925
    args.write(self._oprot)
4926
    self._oprot.writeMessageEnd()
4927
    self._oprot.trans.flush()
4928
 
4929
  def recv_updateEbayItem(self, ):
4930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4931
    if mtype == TMessageType.EXCEPTION:
4932
      x = TApplicationException()
4933
      x.read(self._iprot)
4934
      self._iprot.readMessageEnd()
4935
      raise x
4936
    result = updateEbayItem_result()
4937
    result.read(self._iprot)
4938
    self._iprot.readMessageEnd()
4939
    return
4940
 
8139 kshitij.so 4941
  def getAmazonListedItems(self, offset, limit):
4942
    """
4943
    Parameters:
4944
     - offset
4945
     - limit
4946
    """
4947
    self.send_getAmazonListedItems(offset, limit)
4948
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4949
 
8139 kshitij.so 4950
  def send_getAmazonListedItems(self, offset, limit):
4951
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4952
    args = getAmazonListedItems_args()
4953
    args.offset = offset
4954
    args.limit = limit
4955
    args.write(self._oprot)
4956
    self._oprot.writeMessageEnd()
4957
    self._oprot.trans.flush()
4958
 
4959
  def recv_getAmazonListedItems(self, ):
4960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4961
    if mtype == TMessageType.EXCEPTION:
4962
      x = TApplicationException()
4963
      x.read(self._iprot)
4964
      self._iprot.readMessageEnd()
4965
      raise x
4966
    result = getAmazonListedItems_result()
4967
    result.read(self._iprot)
4968
    self._iprot.readMessageEnd()
4969
    if result.success is not None:
4970
      return result.success
4971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4972
 
8168 kshitij.so 4973
  def updateAmazonAttributesInBulk(self, amazonlisted):
4974
    """
4975
    Parameters:
4976
     - amazonlisted
4977
    """
4978
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4979
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4980
 
8168 kshitij.so 4981
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4982
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4983
    args = updateAmazonAttributesInBulk_args()
4984
    args.amazonlisted = amazonlisted
4985
    args.write(self._oprot)
4986
    self._oprot.writeMessageEnd()
4987
    self._oprot.trans.flush()
4988
 
4989
  def recv_updateAmazonAttributesInBulk(self, ):
4990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4991
    if mtype == TMessageType.EXCEPTION:
4992
      x = TApplicationException()
4993
      x.read(self._iprot)
4994
      self._iprot.readMessageEnd()
4995
      raise x
4996
    result = updateAmazonAttributesInBulk_result()
4997
    result.read(self._iprot)
4998
    self._iprot.readMessageEnd()
4999
    if result.success is not None:
5000
      return result.success
5001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
5002
 
8379 vikram.rag 5003
  def getAllItemstoListOnFba(self, ):
5004
    self.send_getAllItemstoListOnFba()
5005
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 5006
 
8379 vikram.rag 5007
  def send_getAllItemstoListOnFba(self, ):
5008
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5009
    args = getAllItemstoListOnFba_args()
5010
    args.write(self._oprot)
5011
    self._oprot.writeMessageEnd()
5012
    self._oprot.trans.flush()
5013
 
5014
  def recv_getAllItemstoListOnFba(self, ):
5015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5016
    if mtype == TMessageType.EXCEPTION:
5017
      x = TApplicationException()
5018
      x.read(self._iprot)
5019
      self._iprot.readMessageEnd()
5020
      raise x
5021
    result = getAllItemstoListOnFba_result()
5022
    result.read(self._iprot)
5023
    self._iprot.readMessageEnd()
5024
    if result.success is not None:
5025
      return result.success
5026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5027
 
5028
  def getAllItemstoListOnNonFba(self, ):
5029
    self.send_getAllItemstoListOnNonFba()
5030
    return self.recv_getAllItemstoListOnNonFba()
5031
 
5032
  def send_getAllItemstoListOnNonFba(self, ):
5033
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5034
    args = getAllItemstoListOnNonFba_args()
5035
    args.write(self._oprot)
5036
    self._oprot.writeMessageEnd()
5037
    self._oprot.trans.flush()
5038
 
5039
  def recv_getAllItemstoListOnNonFba(self, ):
5040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5041
    if mtype == TMessageType.EXCEPTION:
5042
      x = TApplicationException()
5043
      x.read(self._iprot)
5044
      self._iprot.readMessageEnd()
5045
      raise x
5046
    result = getAllItemstoListOnNonFba_result()
5047
    result.read(self._iprot)
5048
    self._iprot.readMessageEnd()
5049
    if result.success is not None:
5050
      return result.success
5051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5052
 
8619 kshitij.so 5053
  def updateAsin(self, item):
5054
    """
5055
    Parameters:
5056
     - item
5057
    """
5058
    self.send_updateAsin(item)
5059
    self.recv_updateAsin()
8616 vikram.rag 5060
 
8619 kshitij.so 5061
  def send_updateAsin(self, item):
5062
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5063
    args = updateAsin_args()
5064
    args.item = item
5065
    args.write(self._oprot)
5066
    self._oprot.writeMessageEnd()
5067
    self._oprot.trans.flush()
5068
 
5069
  def recv_updateAsin(self, ):
5070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5071
    if mtype == TMessageType.EXCEPTION:
5072
      x = TApplicationException()
5073
      x.read(self._iprot)
5074
      self._iprot.readMessageEnd()
5075
      raise x
5076
    result = updateAsin_result()
5077
    result.read(self._iprot)
5078
    self._iprot.readMessageEnd()
5079
    return
5080
 
8739 vikram.rag 5081
  def addOrUpdateSnapdealItem(self, snapdealitem):
5082
    """
5083
    Parameters:
5084
     - snapdealitem
5085
    """
5086
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5087
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5088
 
8739 vikram.rag 5089
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5090
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5091
    args = addOrUpdateSnapdealItem_args()
5092
    args.snapdealitem = snapdealitem
5093
    args.write(self._oprot)
5094
    self._oprot.writeMessageEnd()
5095
    self._oprot.trans.flush()
5096
 
5097
  def recv_addOrUpdateSnapdealItem(self, ):
5098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5099
    if mtype == TMessageType.EXCEPTION:
5100
      x = TApplicationException()
5101
      x.read(self._iprot)
5102
      self._iprot.readMessageEnd()
5103
      raise x
5104
    result = addOrUpdateSnapdealItem_result()
5105
    result.read(self._iprot)
5106
    self._iprot.readMessageEnd()
5107
    if result.success is not None:
5108
      return result.success
5109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5110
 
5111
  def getSnapdealItem(self, item_id):
5112
    """
5113
    Parameters:
5114
     - item_id
5115
    """
5116
    self.send_getSnapdealItem(item_id)
5117
    return self.recv_getSnapdealItem()
5118
 
5119
  def send_getSnapdealItem(self, item_id):
5120
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5121
    args = getSnapdealItem_args()
5122
    args.item_id = item_id
5123
    args.write(self._oprot)
5124
    self._oprot.writeMessageEnd()
5125
    self._oprot.trans.flush()
5126
 
5127
  def recv_getSnapdealItem(self, ):
5128
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5129
    if mtype == TMessageType.EXCEPTION:
5130
      x = TApplicationException()
5131
      x.read(self._iprot)
5132
      self._iprot.readMessageEnd()
5133
      raise x
5134
    result = getSnapdealItem_result()
5135
    result.read(self._iprot)
5136
    self._iprot.readMessageEnd()
5137
    if result.success is not None:
5138
      return result.success
5139
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5140
 
9242 kshitij.so 5141
  def getSnapdealItemDetails(self, item_id):
5142
    """
5143
    Parameters:
5144
     - item_id
5145
    """
5146
    self.send_getSnapdealItemDetails(item_id)
5147
    return self.recv_getSnapdealItemDetails()
5148
 
5149
  def send_getSnapdealItemDetails(self, item_id):
5150
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5151
    args = getSnapdealItemDetails_args()
5152
    args.item_id = item_id
5153
    args.write(self._oprot)
5154
    self._oprot.writeMessageEnd()
5155
    self._oprot.trans.flush()
5156
 
5157
  def recv_getSnapdealItemDetails(self, ):
5158
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5159
    if mtype == TMessageType.EXCEPTION:
5160
      x = TApplicationException()
5161
      x.read(self._iprot)
5162
      self._iprot.readMessageEnd()
5163
      raise x
5164
    result = getSnapdealItemDetails_result()
5165
    result.read(self._iprot)
5166
    self._iprot.readMessageEnd()
5167
    if result.success is not None:
5168
      return result.success
5169
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5170
 
8739 vikram.rag 5171
  def getAllSnapdealItems(self, ):
5172
    self.send_getAllSnapdealItems()
5173
    return self.recv_getAllSnapdealItems()
5174
 
5175
  def send_getAllSnapdealItems(self, ):
5176
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5177
    args = getAllSnapdealItems_args()
5178
    args.write(self._oprot)
5179
    self._oprot.writeMessageEnd()
5180
    self._oprot.trans.flush()
5181
 
5182
  def recv_getAllSnapdealItems(self, ):
5183
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5184
    if mtype == TMessageType.EXCEPTION:
5185
      x = TApplicationException()
5186
      x.read(self._iprot)
5187
      self._iprot.readMessageEnd()
5188
      raise x
5189
    result = getAllSnapdealItems_result()
5190
    result.read(self._iprot)
5191
    self._iprot.readMessageEnd()
5192
    if result.success is not None:
5193
      return result.success
5194
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5195
 
9242 kshitij.so 5196
  def getSnapdealItems(self, offset, limit):
5197
    """
5198
    Parameters:
5199
     - offset
5200
     - limit
5201
    """
5202
    self.send_getSnapdealItems(offset, limit)
5203
    return self.recv_getSnapdealItems()
8739 vikram.rag 5204
 
9242 kshitij.so 5205
  def send_getSnapdealItems(self, offset, limit):
5206
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5207
    args = getSnapdealItems_args()
5208
    args.offset = offset
5209
    args.limit = limit
5210
    args.write(self._oprot)
5211
    self._oprot.writeMessageEnd()
5212
    self._oprot.trans.flush()
5213
 
5214
  def recv_getSnapdealItems(self, ):
5215
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5216
    if mtype == TMessageType.EXCEPTION:
5217
      x = TApplicationException()
5218
      x.read(self._iprot)
5219
      self._iprot.readMessageEnd()
5220
      raise x
5221
    result = getSnapdealItems_result()
5222
    result.read(self._iprot)
5223
    self._iprot.readMessageEnd()
5224
    if result.success is not None:
5225
      return result.success
5226
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5227
 
5228
  def searchSnapdealItems(self, searchTerm, offset, limit):
5229
    """
5230
    Parameters:
5231
     - searchTerm
5232
     - offset
5233
     - limit
5234
    """
5235
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5236
    return self.recv_searchSnapdealItems()
5237
 
5238
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5239
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5240
    args = searchSnapdealItems_args()
5241
    args.searchTerm = searchTerm
5242
    args.offset = offset
5243
    args.limit = limit
5244
    args.write(self._oprot)
5245
    self._oprot.writeMessageEnd()
5246
    self._oprot.trans.flush()
5247
 
5248
  def recv_searchSnapdealItems(self, ):
5249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5250
    if mtype == TMessageType.EXCEPTION:
5251
      x = TApplicationException()
5252
      x.read(self._iprot)
5253
      self._iprot.readMessageEnd()
5254
      raise x
5255
    result = searchSnapdealItems_result()
5256
    result.read(self._iprot)
5257
    self._iprot.readMessageEnd()
5258
    if result.success is not None:
5259
      return result.success
5260
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5261
 
5262
  def getCountForSnapdealItems(self, ):
5263
    self.send_getCountForSnapdealItems()
5264
    return self.recv_getCountForSnapdealItems()
5265
 
5266
  def send_getCountForSnapdealItems(self, ):
5267
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5268
    args = getCountForSnapdealItems_args()
5269
    args.write(self._oprot)
5270
    self._oprot.writeMessageEnd()
5271
    self._oprot.trans.flush()
5272
 
5273
  def recv_getCountForSnapdealItems(self, ):
5274
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5275
    if mtype == TMessageType.EXCEPTION:
5276
      x = TApplicationException()
5277
      x.read(self._iprot)
5278
      self._iprot.readMessageEnd()
5279
      raise x
5280
    result = getCountForSnapdealItems_result()
5281
    result.read(self._iprot)
5282
    self._iprot.readMessageEnd()
5283
    if result.success is not None:
5284
      return result.success
5285
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5286
 
5287
  def getSnapdealSearchResultCount(self, searchTerm):
5288
    """
5289
    Parameters:
5290
     - searchTerm
5291
    """
5292
    self.send_getSnapdealSearchResultCount(searchTerm)
5293
    return self.recv_getSnapdealSearchResultCount()
5294
 
5295
  def send_getSnapdealSearchResultCount(self, searchTerm):
5296
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5297
    args = getSnapdealSearchResultCount_args()
5298
    args.searchTerm = searchTerm
5299
    args.write(self._oprot)
5300
    self._oprot.writeMessageEnd()
5301
    self._oprot.trans.flush()
5302
 
5303
  def recv_getSnapdealSearchResultCount(self, ):
5304
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5305
    if mtype == TMessageType.EXCEPTION:
5306
      x = TApplicationException()
5307
      x.read(self._iprot)
5308
      self._iprot.readMessageEnd()
5309
      raise x
5310
    result = getSnapdealSearchResultCount_result()
5311
    result.read(self._iprot)
5312
    self._iprot.readMessageEnd()
5313
    if result.success is not None:
5314
      return result.success
5315
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5316
 
9299 kshitij.so 5317
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5318
    """
5319
    Parameters:
5320
     - itemId
5321
     - insurerType
5322
    """
5323
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5324
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5325
 
9299 kshitij.so 5326
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5327
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5328
    args = getPrefferedInsurerForItem_args()
5329
    args.itemId = itemId
5330
    args.insurerType = insurerType
5331
    args.write(self._oprot)
5332
    self._oprot.writeMessageEnd()
5333
    self._oprot.trans.flush()
5334
 
5335
  def recv_getPrefferedInsurerForItem(self, ):
5336
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5337
    if mtype == TMessageType.EXCEPTION:
5338
      x = TApplicationException()
5339
      x.read(self._iprot)
5340
      self._iprot.readMessageEnd()
5341
      raise x
5342
    result = getPrefferedInsurerForItem_result()
5343
    result.read(self._iprot)
5344
    self._iprot.readMessageEnd()
5345
    if result.success is not None:
5346
      return result.success
5347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5348
 
9456 vikram.rag 5349
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5350
    """
5351
    Parameters:
5352
     - skuAtSnapdeal
5353
    """
5354
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5355
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5356
 
9456 vikram.rag 5357
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5358
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5359
    args = getSnapdealItembySkuAtSnapdeal_args()
5360
    args.skuAtSnapdeal = skuAtSnapdeal
5361
    args.write(self._oprot)
5362
    self._oprot.writeMessageEnd()
5363
    self._oprot.trans.flush()
5364
 
5365
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5367
    if mtype == TMessageType.EXCEPTION:
5368
      x = TApplicationException()
5369
      x.read(self._iprot)
5370
      self._iprot.readMessageEnd()
5371
      raise x
5372
    result = getSnapdealItembySkuAtSnapdeal_result()
5373
    result.read(self._iprot)
5374
    self._iprot.readMessageEnd()
5375
    if result.success is not None:
5376
      return result.success
5377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5378
 
9621 manish.sha 5379
  def getProductFeedSubmit(self, catalogItemId):
5380
    """
5381
    Parameters:
5382
     - catalogItemId
5383
    """
5384
    self.send_getProductFeedSubmit(catalogItemId)
5385
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5386
 
9621 manish.sha 5387
  def send_getProductFeedSubmit(self, catalogItemId):
5388
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5389
    args = getProductFeedSubmit_args()
5390
    args.catalogItemId = catalogItemId
5391
    args.write(self._oprot)
5392
    self._oprot.writeMessageEnd()
5393
    self._oprot.trans.flush()
5394
 
5395
  def recv_getProductFeedSubmit(self, ):
5396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5397
    if mtype == TMessageType.EXCEPTION:
5398
      x = TApplicationException()
5399
      x.read(self._iprot)
5400
      self._iprot.readMessageEnd()
5401
      raise x
5402
    result = getProductFeedSubmit_result()
5403
    result.read(self._iprot)
5404
    self._iprot.readMessageEnd()
5405
    if result.success is not None:
5406
      return result.success
5407
    if result.cex is not None:
5408
      raise result.cex
5409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5410
 
5411
  def addProductFeedSubmit(self, productFeedSubmit):
5412
    """
5413
    Parameters:
5414
     - productFeedSubmit
5415
    """
5416
    self.send_addProductFeedSubmit(productFeedSubmit)
5417
    return self.recv_addProductFeedSubmit()
5418
 
5419
  def send_addProductFeedSubmit(self, productFeedSubmit):
5420
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5421
    args = addProductFeedSubmit_args()
5422
    args.productFeedSubmit = productFeedSubmit
5423
    args.write(self._oprot)
5424
    self._oprot.writeMessageEnd()
5425
    self._oprot.trans.flush()
5426
 
5427
  def recv_addProductFeedSubmit(self, ):
5428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5429
    if mtype == TMessageType.EXCEPTION:
5430
      x = TApplicationException()
5431
      x.read(self._iprot)
5432
      self._iprot.readMessageEnd()
5433
      raise x
5434
    result = addProductFeedSubmit_result()
5435
    result.read(self._iprot)
5436
    self._iprot.readMessageEnd()
5437
    if result.success is not None:
5438
      return result.success
5439
    if result.cex is not None:
5440
      raise result.cex
5441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5442
 
5443
  def updateProductFeedSubmit(self, productFeedSubmit):
5444
    """
5445
    Parameters:
5446
     - productFeedSubmit
5447
    """
5448
    self.send_updateProductFeedSubmit(productFeedSubmit)
5449
    return self.recv_updateProductFeedSubmit()
5450
 
5451
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5452
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5453
    args = updateProductFeedSubmit_args()
5454
    args.productFeedSubmit = productFeedSubmit
5455
    args.write(self._oprot)
5456
    self._oprot.writeMessageEnd()
5457
    self._oprot.trans.flush()
5458
 
5459
  def recv_updateProductFeedSubmit(self, ):
5460
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5461
    if mtype == TMessageType.EXCEPTION:
5462
      x = TApplicationException()
5463
      x.read(self._iprot)
5464
      self._iprot.readMessageEnd()
5465
      raise x
5466
    result = updateProductFeedSubmit_result()
5467
    result.read(self._iprot)
5468
    self._iprot.readMessageEnd()
5469
    if result.success is not None:
5470
      return result.success
5471
    if result.cex is not None:
5472
      raise result.cex
5473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5474
 
5475
  def deleteProductFeedSubmit(self, catalogItemId):
5476
    """
5477
    Parameters:
5478
     - catalogItemId
5479
    """
5480
    self.send_deleteProductFeedSubmit(catalogItemId)
5481
    return self.recv_deleteProductFeedSubmit()
5482
 
5483
  def send_deleteProductFeedSubmit(self, catalogItemId):
5484
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5485
    args = deleteProductFeedSubmit_args()
5486
    args.catalogItemId = catalogItemId
5487
    args.write(self._oprot)
5488
    self._oprot.writeMessageEnd()
5489
    self._oprot.trans.flush()
5490
 
5491
  def recv_deleteProductFeedSubmit(self, ):
5492
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5493
    if mtype == TMessageType.EXCEPTION:
5494
      x = TApplicationException()
5495
      x.read(self._iprot)
5496
      self._iprot.readMessageEnd()
5497
      raise x
5498
    result = deleteProductFeedSubmit_result()
5499
    result.read(self._iprot)
5500
    self._iprot.readMessageEnd()
5501
    if result.success is not None:
5502
      return result.success
5503
    if result.cex is not None:
5504
      raise result.cex
5505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5506
 
5507
  def getAllProductFeedSubmit(self, ):
5508
    self.send_getAllProductFeedSubmit()
5509
    return self.recv_getAllProductFeedSubmit()
5510
 
5511
  def send_getAllProductFeedSubmit(self, ):
5512
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5513
    args = getAllProductFeedSubmit_args()
5514
    args.write(self._oprot)
5515
    self._oprot.writeMessageEnd()
5516
    self._oprot.trans.flush()
5517
 
5518
  def recv_getAllProductFeedSubmit(self, ):
5519
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5520
    if mtype == TMessageType.EXCEPTION:
5521
      x = TApplicationException()
5522
      x.read(self._iprot)
5523
      self._iprot.readMessageEnd()
5524
      raise x
5525
    result = getAllProductFeedSubmit_result()
5526
    result.read(self._iprot)
5527
    self._iprot.readMessageEnd()
5528
    if result.success is not None:
5529
      return result.success
5530
    if result.cex is not None:
5531
      raise result.cex
5532
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5533
 
9724 kshitij.so 5534
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5535
    """
5536
    Parameters:
5537
     - itemId
5538
     - sourceId
5539
    """
5540
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5541
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5542
 
9724 kshitij.so 5543
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5544
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5545
    args = getMarketplacedetailsForItem_args()
5546
    args.itemId = itemId
5547
    args.sourceId = sourceId
5548
    args.write(self._oprot)
5549
    self._oprot.writeMessageEnd()
5550
    self._oprot.trans.flush()
5551
 
5552
  def recv_getMarketplacedetailsForItem(self, ):
5553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5554
    if mtype == TMessageType.EXCEPTION:
5555
      x = TApplicationException()
5556
      x.read(self._iprot)
5557
      self._iprot.readMessageEnd()
5558
      raise x
5559
    result = getMarketplacedetailsForItem_result()
5560
    result.read(self._iprot)
5561
    self._iprot.readMessageEnd()
5562
    if result.success is not None:
5563
      return result.success
5564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5565
 
5566
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5567
    """
5568
    Parameters:
5569
     - marketPlaceItem
5570
    """
5571
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5572
    return self.recv_updateMarketplaceAttributesForItem()
5573
 
5574
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5575
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5576
    args = updateMarketplaceAttributesForItem_args()
5577
    args.marketPlaceItem = marketPlaceItem
5578
    args.write(self._oprot)
5579
    self._oprot.writeMessageEnd()
5580
    self._oprot.trans.flush()
5581
 
5582
  def recv_updateMarketplaceAttributesForItem(self, ):
5583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5584
    if mtype == TMessageType.EXCEPTION:
5585
      x = TApplicationException()
5586
      x.read(self._iprot)
5587
      self._iprot.readMessageEnd()
5588
      raise x
5589
    result = updateMarketplaceAttributesForItem_result()
5590
    result.read(self._iprot)
5591
    self._iprot.readMessageEnd()
5592
    if result.success is not None:
5593
      return result.success
5594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5595
 
9779 kshitij.so 5596
  def getCostingForMarketplace(self, source, item_id):
5597
    """
5598
    Parameters:
5599
     - source
5600
     - item_id
5601
    """
5602
    self.send_getCostingForMarketplace(source, item_id)
5603
    return self.recv_getCostingForMarketplace()
5604
 
5605
  def send_getCostingForMarketplace(self, source, item_id):
5606
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5607
    args = getCostingForMarketplace_args()
5608
    args.source = source
5609
    args.item_id = item_id
5610
    args.write(self._oprot)
5611
    self._oprot.writeMessageEnd()
5612
    self._oprot.trans.flush()
5613
 
5614
  def recv_getCostingForMarketplace(self, ):
5615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5616
    if mtype == TMessageType.EXCEPTION:
5617
      x = TApplicationException()
5618
      x.read(self._iprot)
5619
      self._iprot.readMessageEnd()
5620
      raise x
5621
    result = getCostingForMarketplace_result()
5622
    result.read(self._iprot)
5623
    self._iprot.readMessageEnd()
5624
    if result.success is not None:
5625
      return result.success
5626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5627
 
9776 vikram.rag 5628
  def getMarketPlaceItemsForPriceUpdate(self, source):
5629
    """
5630
    Parameters:
5631
     - source
5632
    """
5633
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5634
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5635
 
9776 vikram.rag 5636
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5637
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5638
    args = getMarketPlaceItemsForPriceUpdate_args()
5639
    args.source = source
5640
    args.write(self._oprot)
5641
    self._oprot.writeMessageEnd()
5642
    self._oprot.trans.flush()
5643
 
5644
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5646
    if mtype == TMessageType.EXCEPTION:
5647
      x = TApplicationException()
5648
      x.read(self._iprot)
5649
      self._iprot.readMessageEnd()
5650
      raise x
5651
    result = getMarketPlaceItemsForPriceUpdate_result()
5652
    result.read(self._iprot)
5653
    self._iprot.readMessageEnd()
5654
    if result.success is not None:
5655
      return result.success
5656
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5657
 
9816 kshitij.so 5658
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5659
    """
5660
    Parameters:
5661
     - skulist
5662
     - timestamp
9816 kshitij.so 5663
     - source
9776 vikram.rag 5664
    """
9816 kshitij.so 5665
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5666
    self.recv_updateMarketPlacePriceUpdateStatus()
5667
 
9816 kshitij.so 5668
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5669
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5670
    args = updateMarketPlacePriceUpdateStatus_args()
5671
    args.skulist = skulist
5672
    args.timestamp = timestamp
9816 kshitij.so 5673
    args.source = source
9776 vikram.rag 5674
    args.write(self._oprot)
5675
    self._oprot.writeMessageEnd()
5676
    self._oprot.trans.flush()
5677
 
5678
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5680
    if mtype == TMessageType.EXCEPTION:
5681
      x = TApplicationException()
5682
      x.read(self._iprot)
5683
      self._iprot.readMessageEnd()
5684
      raise x
5685
    result = updateMarketPlacePriceUpdateStatus_result()
5686
    result.read(self._iprot)
5687
    self._iprot.readMessageEnd()
5688
    return
5689
 
9861 rajveer 5690
  def updateItemHoldInventory(self, itemHoldMap):
5691
    """
5692
    Parameters:
5693
     - itemHoldMap
5694
    """
5695
    self.send_updateItemHoldInventory(itemHoldMap)
5696
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5697
 
9861 rajveer 5698
  def send_updateItemHoldInventory(self, itemHoldMap):
5699
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5700
    args = updateItemHoldInventory_args()
5701
    args.itemHoldMap = itemHoldMap
5702
    args.write(self._oprot)
5703
    self._oprot.writeMessageEnd()
5704
    self._oprot.trans.flush()
5705
 
5706
  def recv_updateItemHoldInventory(self, ):
5707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5708
    if mtype == TMessageType.EXCEPTION:
5709
      x = TApplicationException()
5710
      x.read(self._iprot)
5711
      self._iprot.readMessageEnd()
5712
      raise x
5713
    result = updateItemHoldInventory_result()
5714
    result.read(self._iprot)
5715
    self._iprot.readMessageEnd()
5716
    return
5717
 
9895 vikram.rag 5718
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5719
    """
5720
    Parameters:
5721
     - item_id
5722
     - vendor_id
5723
     - nlc
5724
    """
5725
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5726
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5727
 
9895 vikram.rag 5728
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5729
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5730
    args = updateNlcAtMarketplaces_args()
5731
    args.item_id = item_id
5732
    args.vendor_id = vendor_id
5733
    args.nlc = nlc
5734
    args.write(self._oprot)
5735
    self._oprot.writeMessageEnd()
5736
    self._oprot.trans.flush()
5737
 
5738
  def recv_updateNlcAtMarketplaces(self, ):
5739
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5740
    if mtype == TMessageType.EXCEPTION:
5741
      x = TApplicationException()
5742
      x.read(self._iprot)
5743
      self._iprot.readMessageEnd()
5744
      raise x
5745
    result = updateNlcAtMarketplaces_result()
5746
    result.read(self._iprot)
5747
    self._iprot.readMessageEnd()
5748
    return
5749
 
9945 vikram.rag 5750
  def getAllFlipkartItems(self, ):
5751
    self.send_getAllFlipkartItems()
5752
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5753
 
9945 vikram.rag 5754
  def send_getAllFlipkartItems(self, ):
5755
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5756
    args = getAllFlipkartItems_args()
5757
    args.write(self._oprot)
5758
    self._oprot.writeMessageEnd()
5759
    self._oprot.trans.flush()
5760
 
5761
  def recv_getAllFlipkartItems(self, ):
5762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5763
    if mtype == TMessageType.EXCEPTION:
5764
      x = TApplicationException()
5765
      x.read(self._iprot)
5766
      self._iprot.readMessageEnd()
5767
      raise x
5768
    result = getAllFlipkartItems_result()
5769
    result.read(self._iprot)
5770
    self._iprot.readMessageEnd()
5771
    if result.success is not None:
5772
      return result.success
5773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5774
 
10097 kshitij.so 5775
  def addOrUpdateFlipkartItem(self, flipkartitem):
5776
    """
5777
    Parameters:
5778
     - flipkartitem
5779
    """
5780
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5781
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5782
 
10097 kshitij.so 5783
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5784
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5785
    args = addOrUpdateFlipkartItem_args()
5786
    args.flipkartitem = flipkartitem
5787
    args.write(self._oprot)
5788
    self._oprot.writeMessageEnd()
5789
    self._oprot.trans.flush()
5790
 
5791
  def recv_addOrUpdateFlipkartItem(self, ):
5792
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5793
    if mtype == TMessageType.EXCEPTION:
5794
      x = TApplicationException()
5795
      x.read(self._iprot)
5796
      self._iprot.readMessageEnd()
5797
      raise x
5798
    result = addOrUpdateFlipkartItem_result()
5799
    result.read(self._iprot)
5800
    self._iprot.readMessageEnd()
5801
    if result.success is not None:
5802
      return result.success
5803
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5804
 
5805
  def getFlipkartItem(self, item_id):
5806
    """
5807
    Parameters:
5808
     - item_id
5809
    """
5810
    self.send_getFlipkartItem(item_id)
5811
    return self.recv_getFlipkartItem()
5812
 
5813
  def send_getFlipkartItem(self, item_id):
5814
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5815
    args = getFlipkartItem_args()
5816
    args.item_id = item_id
5817
    args.write(self._oprot)
5818
    self._oprot.writeMessageEnd()
5819
    self._oprot.trans.flush()
5820
 
5821
  def recv_getFlipkartItem(self, ):
5822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5823
    if mtype == TMessageType.EXCEPTION:
5824
      x = TApplicationException()
5825
      x.read(self._iprot)
5826
      self._iprot.readMessageEnd()
5827
      raise x
5828
    result = getFlipkartItem_result()
5829
    result.read(self._iprot)
5830
    self._iprot.readMessageEnd()
5831
    if result.success is not None:
5832
      return result.success
5833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5834
 
5835
  def getFlipkartItemDetails(self, item_id):
5836
    """
5837
    Parameters:
5838
     - item_id
5839
    """
5840
    self.send_getFlipkartItemDetails(item_id)
5841
    return self.recv_getFlipkartItemDetails()
5842
 
5843
  def send_getFlipkartItemDetails(self, item_id):
5844
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5845
    args = getFlipkartItemDetails_args()
5846
    args.item_id = item_id
5847
    args.write(self._oprot)
5848
    self._oprot.writeMessageEnd()
5849
    self._oprot.trans.flush()
5850
 
5851
  def recv_getFlipkartItemDetails(self, ):
5852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5853
    if mtype == TMessageType.EXCEPTION:
5854
      x = TApplicationException()
5855
      x.read(self._iprot)
5856
      self._iprot.readMessageEnd()
5857
      raise x
5858
    result = getFlipkartItemDetails_result()
5859
    result.read(self._iprot)
5860
    self._iprot.readMessageEnd()
5861
    if result.success is not None:
5862
      return result.success
5863
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5864
 
5865
  def getFlipkartItems(self, offset, limit):
5866
    """
5867
    Parameters:
5868
     - offset
5869
     - limit
5870
    """
5871
    self.send_getFlipkartItems(offset, limit)
5872
    return self.recv_getFlipkartItems()
5873
 
5874
  def send_getFlipkartItems(self, offset, limit):
5875
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5876
    args = getFlipkartItems_args()
5877
    args.offset = offset
5878
    args.limit = limit
5879
    args.write(self._oprot)
5880
    self._oprot.writeMessageEnd()
5881
    self._oprot.trans.flush()
5882
 
5883
  def recv_getFlipkartItems(self, ):
5884
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5885
    if mtype == TMessageType.EXCEPTION:
5886
      x = TApplicationException()
5887
      x.read(self._iprot)
5888
      self._iprot.readMessageEnd()
5889
      raise x
5890
    result = getFlipkartItems_result()
5891
    result.read(self._iprot)
5892
    self._iprot.readMessageEnd()
5893
    if result.success is not None:
5894
      return result.success
5895
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5896
 
5897
  def searchFlipkartItems(self, searchTerm, offset, limit):
5898
    """
5899
    Parameters:
5900
     - searchTerm
5901
     - offset
5902
     - limit
5903
    """
5904
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5905
    return self.recv_searchFlipkartItems()
5906
 
5907
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5908
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5909
    args = searchFlipkartItems_args()
5910
    args.searchTerm = searchTerm
5911
    args.offset = offset
5912
    args.limit = limit
5913
    args.write(self._oprot)
5914
    self._oprot.writeMessageEnd()
5915
    self._oprot.trans.flush()
5916
 
5917
  def recv_searchFlipkartItems(self, ):
5918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5919
    if mtype == TMessageType.EXCEPTION:
5920
      x = TApplicationException()
5921
      x.read(self._iprot)
5922
      self._iprot.readMessageEnd()
5923
      raise x
5924
    result = searchFlipkartItems_result()
5925
    result.read(self._iprot)
5926
    self._iprot.readMessageEnd()
5927
    if result.success is not None:
5928
      return result.success
5929
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5930
 
5931
  def getCountForFlipkartItems(self, ):
5932
    self.send_getCountForFlipkartItems()
5933
    return self.recv_getCountForFlipkartItems()
5934
 
5935
  def send_getCountForFlipkartItems(self, ):
5936
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5937
    args = getCountForFlipkartItems_args()
5938
    args.write(self._oprot)
5939
    self._oprot.writeMessageEnd()
5940
    self._oprot.trans.flush()
5941
 
5942
  def recv_getCountForFlipkartItems(self, ):
5943
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5944
    if mtype == TMessageType.EXCEPTION:
5945
      x = TApplicationException()
5946
      x.read(self._iprot)
5947
      self._iprot.readMessageEnd()
5948
      raise x
5949
    result = getCountForFlipkartItems_result()
5950
    result.read(self._iprot)
5951
    self._iprot.readMessageEnd()
5952
    if result.success is not None:
5953
      return result.success
5954
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5955
 
5956
  def getFlipkartSearchResultCount(self, searchTerm):
5957
    """
5958
    Parameters:
5959
     - searchTerm
5960
    """
5961
    self.send_getFlipkartSearchResultCount(searchTerm)
5962
    return self.recv_getFlipkartSearchResultCount()
5963
 
5964
  def send_getFlipkartSearchResultCount(self, searchTerm):
5965
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5966
    args = getFlipkartSearchResultCount_args()
5967
    args.searchTerm = searchTerm
5968
    args.write(self._oprot)
5969
    self._oprot.writeMessageEnd()
5970
    self._oprot.trans.flush()
5971
 
5972
  def recv_getFlipkartSearchResultCount(self, ):
5973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5974
    if mtype == TMessageType.EXCEPTION:
5975
      x = TApplicationException()
5976
      x.read(self._iprot)
5977
      self._iprot.readMessageEnd()
5978
      raise x
5979
    result = getFlipkartSearchResultCount_result()
5980
    result.read(self._iprot)
5981
    self._iprot.readMessageEnd()
5982
    if result.success is not None:
5983
      return result.success
5984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5985
 
5986
  def getAllFkItems(self, ):
5987
    self.send_getAllFkItems()
5988
    return self.recv_getAllFkItems()
5989
 
5990
  def send_getAllFkItems(self, ):
5991
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5992
    args = getAllFkItems_args()
5993
    args.write(self._oprot)
5994
    self._oprot.writeMessageEnd()
5995
    self._oprot.trans.flush()
5996
 
5997
  def recv_getAllFkItems(self, ):
5998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5999
    if mtype == TMessageType.EXCEPTION:
6000
      x = TApplicationException()
6001
      x.read(self._iprot)
6002
      self._iprot.readMessageEnd()
6003
      raise x
6004
    result = getAllFkItems_result()
6005
    result.read(self._iprot)
6006
    self._iprot.readMessageEnd()
6007
    if result.success is not None:
6008
      return result.success
6009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6010
 
10140 vikram.rag 6011
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6012
    """
6013
    Parameters:
6014
     - sku
6015
    """
6016
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6017
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6018
 
10140 vikram.rag 6019
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6020
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6021
    args = getFlipkartItemBySkyAtFlipkart_args()
6022
    args.sku = sku
6023
    args.write(self._oprot)
6024
    self._oprot.writeMessageEnd()
6025
    self._oprot.trans.flush()
6026
 
6027
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6029
    if mtype == TMessageType.EXCEPTION:
6030
      x = TApplicationException()
6031
      x.read(self._iprot)
6032
      self._iprot.readMessageEnd()
6033
      raise x
6034
    result = getFlipkartItemBySkyAtFlipkart_result()
6035
    result.read(self._iprot)
6036
    self._iprot.readMessageEnd()
6037
    if result.success is not None:
6038
      return result.success
6039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6040
 
11015 kshitij.so 6041
  def getMarketplaceHistory(self, source, offset, itemId):
6042
    """
6043
    Parameters:
6044
     - source
6045
     - offset
6046
     - itemId
6047
    """
6048
    self.send_getMarketplaceHistory(source, offset, itemId)
6049
    return self.recv_getMarketplaceHistory()
6050
 
6051
  def send_getMarketplaceHistory(self, source, offset, itemId):
6052
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6053
    args = getMarketplaceHistory_args()
6054
    args.source = source
6055
    args.offset = offset
6056
    args.itemId = itemId
6057
    args.write(self._oprot)
6058
    self._oprot.writeMessageEnd()
6059
    self._oprot.trans.flush()
6060
 
6061
  def recv_getMarketplaceHistory(self, ):
6062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6063
    if mtype == TMessageType.EXCEPTION:
6064
      x = TApplicationException()
6065
      x.read(self._iprot)
6066
      self._iprot.readMessageEnd()
6067
      raise x
6068
    result = getMarketplaceHistory_result()
6069
    result.read(self._iprot)
6070
    self._iprot.readMessageEnd()
6071
    if result.success is not None:
6072
      return result.success
6073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6074
 
10909 vikram.rag 6075
  def getAllFbbListedItems(self, ):
6076
    self.send_getAllFbbListedItems()
6077
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6078
 
10909 vikram.rag 6079
  def send_getAllFbbListedItems(self, ):
6080
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6081
    args = getAllFbbListedItems_args()
6082
    args.write(self._oprot)
6083
    self._oprot.writeMessageEnd()
6084
    self._oprot.trans.flush()
6085
 
6086
  def recv_getAllFbbListedItems(self, ):
6087
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6088
    if mtype == TMessageType.EXCEPTION:
6089
      x = TApplicationException()
6090
      x.read(self._iprot)
6091
      self._iprot.readMessageEnd()
6092
      raise x
6093
    result = getAllFbbListedItems_result()
6094
    result.read(self._iprot)
6095
    self._iprot.readMessageEnd()
6096
    if result.success is not None:
6097
      return result.success
6098
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6099
 
10924 vikram.rag 6100
  def getAllFbbPricingItems(self, ):
6101
    self.send_getAllFbbPricingItems()
6102
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6103
 
10924 vikram.rag 6104
  def send_getAllFbbPricingItems(self, ):
6105
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6106
    args = getAllFbbPricingItems_args()
6107
    args.write(self._oprot)
6108
    self._oprot.writeMessageEnd()
6109
    self._oprot.trans.flush()
6110
 
6111
  def recv_getAllFbbPricingItems(self, ):
6112
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6113
    if mtype == TMessageType.EXCEPTION:
6114
      x = TApplicationException()
6115
      x.read(self._iprot)
6116
      self._iprot.readMessageEnd()
6117
      raise x
6118
    result = getAllFbbPricingItems_result()
6119
    result.read(self._iprot)
6120
    self._iprot.readMessageEnd()
6121
    if result.success is not None:
6122
      return result.success
6123
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6124
 
11015 kshitij.so 6125
  def getCountForMarketplaceHistory(self, source, itemId):
6126
    """
6127
    Parameters:
6128
     - source
6129
     - itemId
6130
    """
6131
    self.send_getCountForMarketplaceHistory(source, itemId)
6132
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6133
 
11015 kshitij.so 6134
  def send_getCountForMarketplaceHistory(self, source, itemId):
6135
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6136
    args = getCountForMarketplaceHistory_args()
6137
    args.source = source
6138
    args.itemId = itemId
6139
    args.write(self._oprot)
6140
    self._oprot.writeMessageEnd()
6141
    self._oprot.trans.flush()
6142
 
6143
  def recv_getCountForMarketplaceHistory(self, ):
6144
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6145
    if mtype == TMessageType.EXCEPTION:
6146
      x = TApplicationException()
6147
      x.read(self._iprot)
6148
      self._iprot.readMessageEnd()
6149
      raise x
6150
    result = getCountForMarketplaceHistory_result()
6151
    result.read(self._iprot)
6152
    self._iprot.readMessageEnd()
6153
    if result.success is not None:
6154
      return result.success
6155
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6156
 
6157
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6158
    """
6159
    Parameters:
6160
     - source
6161
     - startDate
6162
     - endDate
6163
     - offset
6164
     - limit
6165
     - itemId
6166
    """
6167
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6168
    return self.recv_getMarketplaceHistoryByDate()
6169
 
6170
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6171
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6172
    args = getMarketplaceHistoryByDate_args()
6173
    args.source = source
6174
    args.startDate = startDate
6175
    args.endDate = endDate
6176
    args.offset = offset
6177
    args.limit = limit
6178
    args.itemId = itemId
6179
    args.write(self._oprot)
6180
    self._oprot.writeMessageEnd()
6181
    self._oprot.trans.flush()
6182
 
6183
  def recv_getMarketplaceHistoryByDate(self, ):
6184
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6185
    if mtype == TMessageType.EXCEPTION:
6186
      x = TApplicationException()
6187
      x.read(self._iprot)
6188
      self._iprot.readMessageEnd()
6189
      raise x
6190
    result = getMarketplaceHistoryByDate_result()
6191
    result.read(self._iprot)
6192
    self._iprot.readMessageEnd()
6193
    if result.success is not None:
6194
      return result.success
6195
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6196
 
11531 vikram.rag 6197
  def getPrivateDealDetails(self, item_id):
6198
    """
6199
    Parameters:
6200
     - item_id
6201
    """
6202
    self.send_getPrivateDealDetails(item_id)
6203
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6204
 
11531 vikram.rag 6205
  def send_getPrivateDealDetails(self, item_id):
6206
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6207
    args = getPrivateDealDetails_args()
6208
    args.item_id = item_id
6209
    args.write(self._oprot)
6210
    self._oprot.writeMessageEnd()
6211
    self._oprot.trans.flush()
6212
 
6213
  def recv_getPrivateDealDetails(self, ):
6214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6215
    if mtype == TMessageType.EXCEPTION:
6216
      x = TApplicationException()
6217
      x.read(self._iprot)
6218
      self._iprot.readMessageEnd()
6219
      raise x
6220
    result = getPrivateDealDetails_result()
6221
    result.read(self._iprot)
6222
    self._iprot.readMessageEnd()
6223
    if result.success is not None:
6224
      return result.success
6225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6226
 
6227
  def getPrivateDealItems(self, offset, limit):
6228
    """
6229
    Parameters:
6230
     - offset
6231
     - limit
6232
    """
6233
    self.send_getPrivateDealItems(offset, limit)
6234
    return self.recv_getPrivateDealItems()
6235
 
6236
  def send_getPrivateDealItems(self, offset, limit):
6237
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6238
    args = getPrivateDealItems_args()
6239
    args.offset = offset
6240
    args.limit = limit
6241
    args.write(self._oprot)
6242
    self._oprot.writeMessageEnd()
6243
    self._oprot.trans.flush()
6244
 
6245
  def recv_getPrivateDealItems(self, ):
6246
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6247
    if mtype == TMessageType.EXCEPTION:
6248
      x = TApplicationException()
6249
      x.read(self._iprot)
6250
      self._iprot.readMessageEnd()
6251
      raise x
6252
    result = getPrivateDealItems_result()
6253
    result.read(self._iprot)
6254
    self._iprot.readMessageEnd()
6255
    if result.success is not None:
6256
      return result.success
6257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6258
 
11653 amit.gupta 6259
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6260
    """
6261
    Parameters:
6262
     - itemIds
6263
     - daysDelta
6264
    """
6265
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6266
    return self.recv_getAllActivePrivateDeals()
6267
 
11653 amit.gupta 6268
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6269
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6270
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6271
    args.itemIds = itemIds
6272
    args.daysDelta = daysDelta
11592 amit.gupta 6273
    args.write(self._oprot)
6274
    self._oprot.writeMessageEnd()
6275
    self._oprot.trans.flush()
6276
 
6277
  def recv_getAllActivePrivateDeals(self, ):
6278
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6279
    if mtype == TMessageType.EXCEPTION:
6280
      x = TApplicationException()
6281
      x.read(self._iprot)
6282
      self._iprot.readMessageEnd()
6283
      raise x
6284
    result = getAllActivePrivateDeals_result()
6285
    result.read(self._iprot)
6286
    self._iprot.readMessageEnd()
6287
    if result.success is not None:
6288
      return result.success
6289
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6290
 
11531 vikram.rag 6291
  def addOrUpdatePrivateDeal(self, privateDeal):
6292
    """
6293
    Parameters:
6294
     - privateDeal
6295
    """
6296
    self.send_addOrUpdatePrivateDeal(privateDeal)
6297
    return self.recv_addOrUpdatePrivateDeal()
6298
 
6299
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6300
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6301
    args = addOrUpdatePrivateDeal_args()
6302
    args.privateDeal = privateDeal
6303
    args.write(self._oprot)
6304
    self._oprot.writeMessageEnd()
6305
    self._oprot.trans.flush()
6306
 
6307
  def recv_addOrUpdatePrivateDeal(self, ):
6308
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6309
    if mtype == TMessageType.EXCEPTION:
6310
      x = TApplicationException()
6311
      x.read(self._iprot)
6312
      self._iprot.readMessageEnd()
6313
      raise x
6314
    result = addOrUpdatePrivateDeal_result()
6315
    result.read(self._iprot)
6316
    self._iprot.readMessageEnd()
6317
    if result.success is not None:
6318
      return result.success
6319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6320
 
11635 vikram.rag 6321
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6322
    """
6323
    Parameters:
6324
     - beginIndex
6325
     - totalItems
6326
    """
6327
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6328
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6329
 
11635 vikram.rag 6330
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6331
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6332
    args = getPrivateDealsCatalogIds_args()
6333
    args.beginIndex = beginIndex
6334
    args.totalItems = totalItems
6335
    args.write(self._oprot)
6336
    self._oprot.writeMessageEnd()
6337
    self._oprot.trans.flush()
6338
 
6339
  def recv_getPrivateDealsCatalogIds(self, ):
6340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6341
    if mtype == TMessageType.EXCEPTION:
6342
      x = TApplicationException()
6343
      x.read(self._iprot)
6344
      self._iprot.readMessageEnd()
6345
      raise x
6346
    result = getPrivateDealsCatalogIds_result()
6347
    result.read(self._iprot)
6348
    self._iprot.readMessageEnd()
6349
    if result.success is not None:
6350
      return result.success
6351
    if result.cex is not None:
6352
      raise result.cex
6353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6354
 
11645 amit.gupta 6355
  def getPrivateDealsCount(self, ):
6356
    self.send_getPrivateDealsCount()
6357
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6358
 
11645 amit.gupta 6359
  def send_getPrivateDealsCount(self, ):
6360
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6361
    args = getPrivateDealsCount_args()
6362
    args.write(self._oprot)
6363
    self._oprot.writeMessageEnd()
6364
    self._oprot.trans.flush()
6365
 
6366
  def recv_getPrivateDealsCount(self, ):
6367
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6368
    if mtype == TMessageType.EXCEPTION:
6369
      x = TApplicationException()
6370
      x.read(self._iprot)
6371
      self._iprot.readMessageEnd()
6372
      raise x
6373
    result = getPrivateDealsCount_result()
6374
    result.read(self._iprot)
6375
    self._iprot.readMessageEnd()
6376
    if result.success is not None:
6377
      return result.success
6378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6379
 
11905 kshitij.so 6380
  def getAmazonOutSyncItems(self, item_id):
6381
    """
6382
    Parameters:
6383
     - item_id
6384
    """
6385
    self.send_getAmazonOutSyncItems(item_id)
6386
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6387
 
11905 kshitij.so 6388
  def send_getAmazonOutSyncItems(self, item_id):
6389
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6390
    args = getAmazonOutSyncItems_args()
6391
    args.item_id = item_id
6392
    args.write(self._oprot)
6393
    self._oprot.writeMessageEnd()
6394
    self._oprot.trans.flush()
6395
 
6396
  def recv_getAmazonOutSyncItems(self, ):
6397
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6398
    if mtype == TMessageType.EXCEPTION:
6399
      x = TApplicationException()
6400
      x.read(self._iprot)
6401
      self._iprot.readMessageEnd()
6402
      raise x
6403
    result = getAmazonOutSyncItems_result()
6404
    result.read(self._iprot)
6405
    self._iprot.readMessageEnd()
6406
    if result.success is not None:
6407
      return result.success
6408
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6409
 
6410
  def getAllPrivateDealsComparison(self, ):
6411
    self.send_getAllPrivateDealsComparison()
6412
    return self.recv_getAllPrivateDealsComparison()
6413
 
6414
  def send_getAllPrivateDealsComparison(self, ):
6415
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6416
    args = getAllPrivateDealsComparison_args()
6417
    args.write(self._oprot)
6418
    self._oprot.writeMessageEnd()
6419
    self._oprot.trans.flush()
6420
 
6421
  def recv_getAllPrivateDealsComparison(self, ):
6422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6423
    if mtype == TMessageType.EXCEPTION:
6424
      x = TApplicationException()
6425
      x.read(self._iprot)
6426
      self._iprot.readMessageEnd()
6427
      raise x
6428
    result = getAllPrivateDealsComparison_result()
6429
    result.read(self._iprot)
6430
    self._iprot.readMessageEnd()
6431
    if result.success is not None:
6432
      return result.success
6433
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6434
 
12133 kshitij.so 6435
  def getAllSnapdealMarketplaceItem(self, ):
6436
    self.send_getAllSnapdealMarketplaceItem()
6437
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6438
 
12133 kshitij.so 6439
  def send_getAllSnapdealMarketplaceItem(self, ):
6440
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6441
    args = getAllSnapdealMarketplaceItem_args()
6442
    args.write(self._oprot)
6443
    self._oprot.writeMessageEnd()
6444
    self._oprot.trans.flush()
6445
 
6446
  def recv_getAllSnapdealMarketplaceItem(self, ):
6447
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6448
    if mtype == TMessageType.EXCEPTION:
6449
      x = TApplicationException()
6450
      x.read(self._iprot)
6451
      self._iprot.readMessageEnd()
6452
      raise x
6453
    result = getAllSnapdealMarketplaceItem_result()
6454
    result.read(self._iprot)
6455
    self._iprot.readMessageEnd()
6456
    if result.success is not None:
6457
      return result.success
6458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6459
 
6460
  def getAllFlipkartMarketplaceItem(self, ):
6461
    self.send_getAllFlipkartMarketplaceItem()
6462
    return self.recv_getAllFlipkartMarketplaceItem()
6463
 
6464
  def send_getAllFlipkartMarketplaceItem(self, ):
6465
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6466
    args = getAllFlipkartMarketplaceItem_args()
6467
    args.write(self._oprot)
6468
    self._oprot.writeMessageEnd()
6469
    self._oprot.trans.flush()
6470
 
6471
  def recv_getAllFlipkartMarketplaceItem(self, ):
6472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6473
    if mtype == TMessageType.EXCEPTION:
6474
      x = TApplicationException()
6475
      x.read(self._iprot)
6476
      self._iprot.readMessageEnd()
6477
      raise x
6478
    result = getAllFlipkartMarketplaceItem_result()
6479
    result.read(self._iprot)
6480
    self._iprot.readMessageEnd()
6481
    if result.success is not None:
6482
      return result.success
6483
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6484
 
12243 kshitij.so 6485
  def addCompetitorScraping(self, competitorPricingMap):
6486
    """
6487
    Parameters:
6488
     - competitorPricingMap
6489
    """
6490
    self.send_addCompetitorScraping(competitorPricingMap)
6491
    self.recv_addCompetitorScraping()
12133 kshitij.so 6492
 
12243 kshitij.so 6493
  def send_addCompetitorScraping(self, competitorPricingMap):
6494
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6495
    args = addCompetitorScraping_args()
6496
    args.competitorPricingMap = competitorPricingMap
6497
    args.write(self._oprot)
6498
    self._oprot.writeMessageEnd()
6499
    self._oprot.trans.flush()
6500
 
6501
  def recv_addCompetitorScraping(self, ):
6502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6503
    if mtype == TMessageType.EXCEPTION:
6504
      x = TApplicationException()
6505
      x.read(self._iprot)
6506
      self._iprot.readMessageEnd()
6507
      raise x
6508
    result = addCompetitorScraping_result()
6509
    result.read(self._iprot)
6510
    self._iprot.readMessageEnd()
6511
    return
6512
 
6513
  def getPreviousCompetitorScraping(self, delta):
6514
    """
6515
    Parameters:
6516
     - delta
6517
    """
6518
    self.send_getPreviousCompetitorScraping(delta)
6519
    return self.recv_getPreviousCompetitorScraping()
6520
 
6521
  def send_getPreviousCompetitorScraping(self, delta):
6522
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6523
    args = getPreviousCompetitorScraping_args()
6524
    args.delta = delta
6525
    args.write(self._oprot)
6526
    self._oprot.writeMessageEnd()
6527
    self._oprot.trans.flush()
6528
 
6529
  def recv_getPreviousCompetitorScraping(self, ):
6530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6531
    if mtype == TMessageType.EXCEPTION:
6532
      x = TApplicationException()
6533
      x.read(self._iprot)
6534
      self._iprot.readMessageEnd()
6535
      raise x
6536
    result = getPreviousCompetitorScraping_result()
6537
    result.read(self._iprot)
6538
    self._iprot.readMessageEnd()
6539
    if result.success is not None:
6540
      return result.success
6541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6542
 
12256 kshitij.so 6543
  def getUploadResultById(self, uploadId):
6544
    """
6545
    Parameters:
6546
     - uploadId
6547
    """
6548
    self.send_getUploadResultById(uploadId)
6549
    return self.recv_getUploadResultById()
12243 kshitij.so 6550
 
12256 kshitij.so 6551
  def send_getUploadResultById(self, uploadId):
6552
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6553
    args = getUploadResultById_args()
6554
    args.uploadId = uploadId
6555
    args.write(self._oprot)
6556
    self._oprot.writeMessageEnd()
6557
    self._oprot.trans.flush()
6558
 
6559
  def recv_getUploadResultById(self, ):
6560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6561
    if mtype == TMessageType.EXCEPTION:
6562
      x = TApplicationException()
6563
      x.read(self._iprot)
6564
      self._iprot.readMessageEnd()
6565
      raise x
6566
    result = getUploadResultById_result()
6567
    result.read(self._iprot)
6568
    self._iprot.readMessageEnd()
6569
    if result.success is not None:
6570
      return result.success
6571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6572
 
12363 kshitij.so 6573
  def addAmazonPromotion(self, amazonPromotions):
6574
    """
6575
    Parameters:
6576
     - amazonPromotions
6577
    """
6578
    self.send_addAmazonPromotion(amazonPromotions)
6579
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6580
 
12363 kshitij.so 6581
  def send_addAmazonPromotion(self, amazonPromotions):
6582
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6583
    args = addAmazonPromotion_args()
6584
    args.amazonPromotions = amazonPromotions
6585
    args.write(self._oprot)
6586
    self._oprot.writeMessageEnd()
6587
    self._oprot.trans.flush()
6588
 
6589
  def recv_addAmazonPromotion(self, ):
6590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6591
    if mtype == TMessageType.EXCEPTION:
6592
      x = TApplicationException()
6593
      x.read(self._iprot)
6594
      self._iprot.readMessageEnd()
6595
      raise x
6596
    result = addAmazonPromotion_result()
6597
    result.read(self._iprot)
6598
    self._iprot.readMessageEnd()
6599
    if result.success is not None:
6600
      return result.success
12947 kshitij.so 6601
    if result.cex is not None:
6602
      raise result.cex
12363 kshitij.so 6603
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6604
 
6605
  def getAmazonPromotion(self, startDate, endDate):
6606
    """
6607
    Parameters:
6608
     - startDate
6609
     - endDate
6610
    """
6611
    self.send_getAmazonPromotion(startDate, endDate)
6612
    return self.recv_getAmazonPromotion()
6613
 
6614
  def send_getAmazonPromotion(self, startDate, endDate):
6615
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6616
    args = getAmazonPromotion_args()
6617
    args.startDate = startDate
6618
    args.endDate = endDate
6619
    args.write(self._oprot)
6620
    self._oprot.writeMessageEnd()
6621
    self._oprot.trans.flush()
6622
 
6623
  def recv_getAmazonPromotion(self, ):
6624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6625
    if mtype == TMessageType.EXCEPTION:
6626
      x = TApplicationException()
6627
      x.read(self._iprot)
6628
      self._iprot.readMessageEnd()
6629
      raise x
6630
    result = getAmazonPromotion_result()
6631
    result.read(self._iprot)
6632
    self._iprot.readMessageEnd()
6633
    if result.success is not None:
6634
      return result.success
6635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6636
 
6637
  def updateAmazonPromotion(self, amazonPromotions):
6638
    """
6639
    Parameters:
6640
     - amazonPromotions
6641
    """
6642
    self.send_updateAmazonPromotion(amazonPromotions)
6643
    return self.recv_updateAmazonPromotion()
6644
 
6645
  def send_updateAmazonPromotion(self, amazonPromotions):
6646
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6647
    args = updateAmazonPromotion_args()
6648
    args.amazonPromotions = amazonPromotions
6649
    args.write(self._oprot)
6650
    self._oprot.writeMessageEnd()
6651
    self._oprot.trans.flush()
6652
 
6653
  def recv_updateAmazonPromotion(self, ):
6654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6655
    if mtype == TMessageType.EXCEPTION:
6656
      x = TApplicationException()
6657
      x.read(self._iprot)
6658
      self._iprot.readMessageEnd()
6659
      raise x
6660
    result = updateAmazonPromotion_result()
6661
    result.read(self._iprot)
6662
    self._iprot.readMessageEnd()
6663
    if result.success is not None:
6664
      return result.success
6665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6666
 
12567 amit.gupta 6667
  def markPartiallyActive(self, itemId, categoryId):
6668
    """
6669
    Parameters:
6670
     - itemId
6671
     - categoryId
6672
    """
6673
    self.send_markPartiallyActive(itemId, categoryId)
6674
    return self.recv_markPartiallyActive()
12363 kshitij.so 6675
 
12567 amit.gupta 6676
  def send_markPartiallyActive(self, itemId, categoryId):
6677
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6678
    args = markPartiallyActive_args()
6679
    args.itemId = itemId
6680
    args.categoryId = categoryId
6681
    args.write(self._oprot)
6682
    self._oprot.writeMessageEnd()
6683
    self._oprot.trans.flush()
6684
 
6685
  def recv_markPartiallyActive(self, ):
6686
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6687
    if mtype == TMessageType.EXCEPTION:
6688
      x = TApplicationException()
6689
      x.read(self._iprot)
6690
      self._iprot.readMessageEnd()
6691
      raise x
6692
    result = markPartiallyActive_result()
6693
    result.read(self._iprot)
6694
    self._iprot.readMessageEnd()
6695
    if result.success is not None:
6696
      return result.success
6697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6698
 
6699
  def updateItemStateVat(self, itemId, statevat):
6700
    """
6701
    Parameters:
6702
     - itemId
6703
     - statevat
6704
    """
6705
    self.send_updateItemStateVat(itemId, statevat)
6706
    return self.recv_updateItemStateVat()
6707
 
6708
  def send_updateItemStateVat(self, itemId, statevat):
6709
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6710
    args = updateItemStateVat_args()
6711
    args.itemId = itemId
6712
    args.statevat = statevat
6713
    args.write(self._oprot)
6714
    self._oprot.writeMessageEnd()
6715
    self._oprot.trans.flush()
6716
 
6717
  def recv_updateItemStateVat(self, ):
6718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6719
    if mtype == TMessageType.EXCEPTION:
6720
      x = TApplicationException()
6721
      x.read(self._iprot)
6722
      self._iprot.readMessageEnd()
6723
      raise x
6724
    result = updateItemStateVat_result()
6725
    result.read(self._iprot)
6726
    self._iprot.readMessageEnd()
6727
    if result.success is not None:
6728
      return result.success
6729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6730
 
12620 amit.gupta 6731
  def getExAffiliateItemInfo(self, ):
6732
    self.send_getExAffiliateItemInfo()
6733
    return self.recv_getExAffiliateItemInfo()
12567 amit.gupta 6734
 
12620 amit.gupta 6735
  def send_getExAffiliateItemInfo(self, ):
6736
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
6737
    args = getExAffiliateItemInfo_args()
6738
    args.write(self._oprot)
6739
    self._oprot.writeMessageEnd()
6740
    self._oprot.trans.flush()
6741
 
6742
  def recv_getExAffiliateItemInfo(self, ):
6743
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6744
    if mtype == TMessageType.EXCEPTION:
6745
      x = TApplicationException()
6746
      x.read(self._iprot)
6747
      self._iprot.readMessageEnd()
6748
      raise x
6749
    result = getExAffiliateItemInfo_result()
6750
    result.read(self._iprot)
6751
    self._iprot.readMessageEnd()
6752
    if result.success is not None:
6753
      return result.success
6754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6755
 
12888 kshitij.so 6756
  def getAllItemstoListOnFbg(self, ):
6757
    self.send_getAllItemstoListOnFbg()
6758
    return self.recv_getAllItemstoListOnFbg()
12620 amit.gupta 6759
 
12888 kshitij.so 6760
  def send_getAllItemstoListOnFbg(self, ):
6761
    self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)
6762
    args = getAllItemstoListOnFbg_args()
6763
    args.write(self._oprot)
6764
    self._oprot.writeMessageEnd()
6765
    self._oprot.trans.flush()
6766
 
6767
  def recv_getAllItemstoListOnFbg(self, ):
6768
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6769
    if mtype == TMessageType.EXCEPTION:
6770
      x = TApplicationException()
6771
      x.read(self._iprot)
6772
      self._iprot.readMessageEnd()
6773
      raise x
6774
    result = getAllItemstoListOnFbg_result()
6775
    result.read(self._iprot)
6776
    self._iprot.readMessageEnd()
6777
    if result.success is not None:
6778
      return result.success
6779
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6780
 
12892 kshitij.so 6781
  def getAllFbgListedItems(self, ):
6782
    self.send_getAllFbgListedItems()
6783
    return self.recv_getAllFbgListedItems()
12888 kshitij.so 6784
 
12892 kshitij.so 6785
  def send_getAllFbgListedItems(self, ):
6786
    self._oprot.writeMessageBegin('getAllFbgListedItems', TMessageType.CALL, self._seqid)
6787
    args = getAllFbgListedItems_args()
6788
    args.write(self._oprot)
6789
    self._oprot.writeMessageEnd()
6790
    self._oprot.trans.flush()
6791
 
6792
  def recv_getAllFbgListedItems(self, ):
6793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6794
    if mtype == TMessageType.EXCEPTION:
6795
      x = TApplicationException()
6796
      x.read(self._iprot)
6797
      self._iprot.readMessageEnd()
6798
      raise x
6799
    result = getAllFbgListedItems_result()
6800
    result.read(self._iprot)
6801
    self._iprot.readMessageEnd()
6802
    if result.success is not None:
6803
      return result.success
6804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");
6805
 
6806
 
5944 mandeep.dh 6807
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6808
  def __init__(self, handler):
6809
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6810
    self._processMap["addItem"] = Processor.process_addItem
6811
    self._processMap["updateItem"] = Processor.process_updateItem
6812
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6813
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6814
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6815
    self._processMap["startItemOn"] = Processor.process_startItemOn
6816
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6817
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6818
    self._processMap["getItem"] = Processor.process_getItem
6819
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6820
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6821
    self._processMap["getAllItems"] = Processor.process_getAllItems
6822
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6823
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 6824
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 6825
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6826
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6827
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6828
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6829
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6830
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6831
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6832
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6833
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6834
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6835
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6836
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6837
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6838
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6839
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6840
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6841
    self._processMap["addCategory"] = Processor.process_addCategory
6842
    self._processMap["getCategory"] = Processor.process_getCategory
6843
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6844
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6845
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6846
    self._processMap["addTag"] = Processor.process_addTag
6847
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6848
    self._processMap["deleteTag"] = Processor.process_deleteTag
6849
    self._processMap["getAllTags"] = Processor.process_getAllTags
6850
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6851
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6852
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6853
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6854
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6855
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6856
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6857
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6858
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6859
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6860
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6861
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6862
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6863
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6864
    self._processMap["addCampaign"] = Processor.process_addCampaign
6865
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6866
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6867
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6868
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6869
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6870
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6871
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6872
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6873
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6874
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6875
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6876
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6877
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6878
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6879
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6880
    self._processMap["getAllSources"] = Processor.process_getAllSources
6881
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6882
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6883
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6884
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6885
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6886
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6887
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6888
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6889
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6890
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6891
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6892
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6893
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6894
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6895
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6896
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6897
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6898
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6899
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6900
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6901
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6902
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6903
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6904
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6905
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6906
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6907
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6908
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6909
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6910
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6911
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6912
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6913
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6914
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6915
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6916
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6917
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6918
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6919
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6920
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 6921
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 6922
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 6923
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
6924
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 6925
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
6926
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
6927
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 6928
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 6929
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 6930
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
6931
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 6932
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 6933
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
6934
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 6935
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 6936
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 6937
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
6938
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
6939
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6940
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6941
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6942
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6943
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6944
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6945
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6946
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6947
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6948
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6949
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6950
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6951
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6952
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6953
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6954
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6955
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6956
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6957
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6958
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6959
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6960
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6961
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6962
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6963
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 6964
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 6965
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 6966
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 6967
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 6968
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6969
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 6970
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
6971
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 6972
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 6973
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 6974
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 6975
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 6976
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
6977
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 6978
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6979
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 6980
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6981
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 6982
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 6983
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6984
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6985
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 6986
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6987
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
12620 amit.gupta 6988
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
12888 kshitij.so 6989
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
12892 kshitij.so 6990
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
5944 mandeep.dh 6991
 
6992
  def process(self, iprot, oprot):
6993
    (name, type, seqid) = iprot.readMessageBegin()
6994
    if name not in self._processMap:
6995
      iprot.skip(TType.STRUCT)
6996
      iprot.readMessageEnd()
6997
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
6998
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
6999
      x.write(oprot)
7000
      oprot.writeMessageEnd()
7001
      oprot.trans.flush()
7002
      return
7003
    else:
7004
      self._processMap[name](self, seqid, iprot, oprot)
7005
    return True
7006
 
7007
  def process_addItem(self, seqid, iprot, oprot):
7008
    args = addItem_args()
7009
    args.read(iprot)
7010
    iprot.readMessageEnd()
7011
    result = addItem_result()
7012
    try:
7013
      result.success = self._handler.addItem(args.item)
7014
    except CatalogServiceException, cex:
7015
      result.cex = cex
7016
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
7017
    result.write(oprot)
7018
    oprot.writeMessageEnd()
7019
    oprot.trans.flush()
7020
 
7021
  def process_updateItem(self, seqid, iprot, oprot):
7022
    args = updateItem_args()
7023
    args.read(iprot)
7024
    iprot.readMessageEnd()
7025
    result = updateItem_result()
7026
    try:
7027
      result.success = self._handler.updateItem(args.item)
7028
    except CatalogServiceException, cex:
7029
      result.cex = cex
7030
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
7031
    result.write(oprot)
7032
    oprot.writeMessageEnd()
7033
    oprot.trans.flush()
7034
 
7035
  def process_isActive(self, seqid, iprot, oprot):
7036
    args = isActive_args()
7037
    args.read(iprot)
7038
    iprot.readMessageEnd()
7039
    result = isActive_result()
7040
    try:
7041
      result.success = self._handler.isActive(args.itemId)
7042
    except CatalogServiceException, isex:
7043
      result.isex = isex
7044
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
7045
    result.write(oprot)
7046
    oprot.writeMessageEnd()
7047
    oprot.trans.flush()
7048
 
7438 amit.gupta 7049
  def process_getItemsStatus(self, seqid, iprot, oprot):
7050
    args = getItemsStatus_args()
7051
    args.read(iprot)
7052
    iprot.readMessageEnd()
7053
    result = getItemsStatus_result()
7054
    try:
7055
      result.success = self._handler.getItemsStatus(args.itemIds)
7056
    except CatalogServiceException, isex:
7057
      result.isex = isex
7058
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
7059
    result.write(oprot)
7060
    oprot.writeMessageEnd()
7061
    oprot.trans.flush()
7062
 
5944 mandeep.dh 7063
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
7064
    args = getItemStatusDescription_args()
7065
    args.read(iprot)
7066
    iprot.readMessageEnd()
7067
    result = getItemStatusDescription_result()
7068
    try:
7069
      result.success = self._handler.getItemStatusDescription(args.itemId)
7070
    except CatalogServiceException, isex:
7071
      result.isex = isex
7072
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
7073
    result.write(oprot)
7074
    oprot.writeMessageEnd()
7075
    oprot.trans.flush()
7076
 
7077
  def process_startItemOn(self, seqid, iprot, oprot):
7078
    args = startItemOn_args()
7079
    args.read(iprot)
7080
    iprot.readMessageEnd()
7081
    result = startItemOn_result()
7082
    try:
7083
      self._handler.startItemOn(args.item_id, args.timestamp)
7084
    except CatalogServiceException, cex:
7085
      result.cex = cex
7086
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
7087
    result.write(oprot)
7088
    oprot.writeMessageEnd()
7089
    oprot.trans.flush()
7090
 
7091
  def process_retireItemOn(self, seqid, iprot, oprot):
7092
    args = retireItemOn_args()
7093
    args.read(iprot)
7094
    iprot.readMessageEnd()
7095
    result = retireItemOn_result()
7096
    try:
7097
      self._handler.retireItemOn(args.item_id, args.timestamp)
7098
    except CatalogServiceException, cex:
7099
      result.cex = cex
7100
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7101
    result.write(oprot)
7102
    oprot.writeMessageEnd()
7103
    oprot.trans.flush()
7104
 
7105
  def process_changeItemStatus(self, seqid, iprot, oprot):
7106
    args = changeItemStatus_args()
7107
    args.read(iprot)
7108
    iprot.readMessageEnd()
7109
    result = changeItemStatus_result()
7110
    try:
7111
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7112
    except CatalogServiceException, cex:
7113
      result.cex = cex
7114
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7115
    result.write(oprot)
7116
    oprot.writeMessageEnd()
7117
    oprot.trans.flush()
7118
 
7119
  def process_getItem(self, seqid, iprot, oprot):
7120
    args = getItem_args()
7121
    args.read(iprot)
7122
    iprot.readMessageEnd()
7123
    result = getItem_result()
7124
    try:
7125
      result.success = self._handler.getItem(args.item_id)
7126
    except CatalogServiceException, cex:
7127
      result.cex = cex
7128
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7129
    result.write(oprot)
7130
    oprot.writeMessageEnd()
7131
    oprot.trans.flush()
7132
 
7133
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7134
    args = getItemsByCatalogId_args()
7135
    args.read(iprot)
7136
    iprot.readMessageEnd()
7137
    result = getItemsByCatalogId_result()
7138
    try:
7139
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7140
    except CatalogServiceException, cex:
7141
      result.cex = cex
7142
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7143
    result.write(oprot)
7144
    oprot.writeMessageEnd()
7145
    oprot.trans.flush()
7146
 
7147
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7148
    args = getValidItemsByCatalogId_args()
7149
    args.read(iprot)
7150
    iprot.readMessageEnd()
7151
    result = getValidItemsByCatalogId_result()
7152
    try:
7153
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7154
    except CatalogServiceException, cex:
7155
      result.cex = cex
7156
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7157
    result.write(oprot)
7158
    oprot.writeMessageEnd()
7159
    oprot.trans.flush()
7160
 
7161
  def process_getAllItems(self, seqid, iprot, oprot):
7162
    args = getAllItems_args()
7163
    args.read(iprot)
7164
    iprot.readMessageEnd()
7165
    result = getAllItems_result()
7166
    try:
7167
      result.success = self._handler.getAllItems(args.isActive)
7168
    except CatalogServiceException, cex:
7169
      result.cex = cex
7170
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7171
    result.write(oprot)
7172
    oprot.writeMessageEnd()
7173
    oprot.trans.flush()
7174
 
7175
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7176
    args = getAllItemsByStatus_args()
7177
    args.read(iprot)
7178
    iprot.readMessageEnd()
7179
    result = getAllItemsByStatus_result()
7180
    try:
7181
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7182
    except CatalogServiceException, cex:
7183
      result.cex = cex
7184
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7185
    result.write(oprot)
7186
    oprot.writeMessageEnd()
7187
    oprot.trans.flush()
7188
 
7189
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7190
    args = markItemAsContentComplete_args()
7191
    args.read(iprot)
7192
    iprot.readMessageEnd()
7193
    result = markItemAsContentComplete_result()
7194
    try:
9253 rajveer 7195
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7196
    except CatalogServiceException, cex:
7197
      result.cex = cex
7198
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7199
    result.write(oprot)
7200
    oprot.writeMessageEnd()
7201
    oprot.trans.flush()
7202
 
12567 amit.gupta 7203
  def process_getVatRates(self, seqid, iprot, oprot):
7204
    args = getVatRates_args()
7205
    args.read(iprot)
7206
    iprot.readMessageEnd()
7207
    result = getVatRates_result()
7208
    try:
7209
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7210
    except CatalogServiceException, cex:
7211
      result.cex = cex
7212
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7213
    result.write(oprot)
7214
    oprot.writeMessageEnd()
7215
    oprot.trans.flush()
7216
 
5944 mandeep.dh 7217
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7218
    args = getAllItemsInRange_args()
7219
    args.read(iprot)
7220
    iprot.readMessageEnd()
7221
    result = getAllItemsInRange_result()
7222
    try:
7223
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7224
    except CatalogServiceException, cex:
7225
      result.cex = cex
7226
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7227
    result.write(oprot)
7228
    oprot.writeMessageEnd()
7229
    oprot.trans.flush()
7230
 
7231
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7232
    args = getAllItemsByStatusInRange_args()
7233
    args.read(iprot)
7234
    iprot.readMessageEnd()
7235
    result = getAllItemsByStatusInRange_result()
7236
    try:
7237
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7238
    except CatalogServiceException, cex:
7239
      result.cex = cex
7240
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7241
    result.write(oprot)
7242
    oprot.writeMessageEnd()
7243
    oprot.trans.flush()
7244
 
7245
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7246
    args = getItemCountByStatus_args()
7247
    args.read(iprot)
7248
    iprot.readMessageEnd()
7249
    result = getItemCountByStatus_result()
7250
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7251
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7252
    result.write(oprot)
7253
    oprot.writeMessageEnd()
7254
    oprot.trans.flush()
7255
 
7256
  def process_getBestSellers(self, seqid, iprot, oprot):
7257
    args = getBestSellers_args()
7258
    args.read(iprot)
7259
    iprot.readMessageEnd()
7260
    result = getBestSellers_result()
7261
    try:
7262
      result.success = self._handler.getBestSellers()
7263
    except CatalogServiceException, isex:
7264
      result.isex = isex
7265
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7266
    result.write(oprot)
7267
    oprot.writeMessageEnd()
7268
    oprot.trans.flush()
7269
 
7270
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7271
    args = getBestSellersCatalogIds_args()
7272
    args.read(iprot)
7273
    iprot.readMessageEnd()
7274
    result = getBestSellersCatalogIds_result()
7275
    try:
7276
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7277
    except CatalogServiceException, cex:
7278
      result.cex = cex
7279
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7280
    result.write(oprot)
7281
    oprot.writeMessageEnd()
7282
    oprot.trans.flush()
7283
 
7284
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7285
    args = getBestSellersCount_args()
7286
    args.read(iprot)
7287
    iprot.readMessageEnd()
7288
    result = getBestSellersCount_result()
7289
    try:
7290
      result.success = self._handler.getBestSellersCount()
7291
    except CatalogServiceException, cex:
7292
      result.cex = cex
7293
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7294
    result.write(oprot)
7295
    oprot.writeMessageEnd()
7296
    oprot.trans.flush()
7297
 
7298
  def process_getBestDeals(self, seqid, iprot, oprot):
7299
    args = getBestDeals_args()
7300
    args.read(iprot)
7301
    iprot.readMessageEnd()
7302
    result = getBestDeals_result()
7303
    try:
7304
      result.success = self._handler.getBestDeals()
7305
    except CatalogServiceException, isex:
7306
      result.isex = isex
7307
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7308
    result.write(oprot)
7309
    oprot.writeMessageEnd()
7310
    oprot.trans.flush()
7311
 
7312
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7313
    args = getBestDealsCatalogIds_args()
7314
    args.read(iprot)
7315
    iprot.readMessageEnd()
7316
    result = getBestDealsCatalogIds_result()
7317
    try:
7318
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7319
    except CatalogServiceException, cex:
7320
      result.cex = cex
7321
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7322
    result.write(oprot)
7323
    oprot.writeMessageEnd()
7324
    oprot.trans.flush()
7325
 
7326
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7327
    args = getBestDealsCount_args()
7328
    args.read(iprot)
7329
    iprot.readMessageEnd()
7330
    result = getBestDealsCount_result()
7331
    try:
7332
      result.success = self._handler.getBestDealsCount()
7333
    except CatalogServiceException, cex:
7334
      result.cex = cex
7335
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7336
    result.write(oprot)
7337
    oprot.writeMessageEnd()
7338
    oprot.trans.flush()
7339
 
7340
  def process_getComingSoon(self, seqid, iprot, oprot):
7341
    args = getComingSoon_args()
7342
    args.read(iprot)
7343
    iprot.readMessageEnd()
7344
    result = getComingSoon_result()
7345
    try:
7346
      result.success = self._handler.getComingSoon()
7347
    except CatalogServiceException, isex:
7348
      result.isex = isex
7349
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7350
    result.write(oprot)
7351
    oprot.writeMessageEnd()
7352
    oprot.trans.flush()
7353
 
7354
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7355
    args = getComingSoonCatalogIds_args()
7356
    args.read(iprot)
7357
    iprot.readMessageEnd()
7358
    result = getComingSoonCatalogIds_result()
7359
    try:
7360
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7361
    except CatalogServiceException, cex:
7362
      result.cex = cex
7363
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7364
    result.write(oprot)
7365
    oprot.writeMessageEnd()
7366
    oprot.trans.flush()
7367
 
7368
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7369
    args = getComingSoonCount_args()
7370
    args.read(iprot)
7371
    iprot.readMessageEnd()
7372
    result = getComingSoonCount_result()
7373
    try:
7374
      result.success = self._handler.getComingSoonCount()
7375
    except CatalogServiceException, cex:
7376
      result.cex = cex
7377
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7378
    result.write(oprot)
7379
    oprot.writeMessageEnd()
7380
    oprot.trans.flush()
7381
 
7382
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7383
    args = getLatestArrivals_args()
7384
    args.read(iprot)
7385
    iprot.readMessageEnd()
7386
    result = getLatestArrivals_result()
7387
    try:
7388
      result.success = self._handler.getLatestArrivals()
7389
    except CatalogServiceException, isex:
7390
      result.isex = isex
7391
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7392
    result.write(oprot)
7393
    oprot.writeMessageEnd()
7394
    oprot.trans.flush()
7395
 
7396
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7397
    args = getLatestArrivalsCatalogIds_args()
7398
    args.read(iprot)
7399
    iprot.readMessageEnd()
7400
    result = getLatestArrivalsCatalogIds_result()
7401
    try:
7402
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7403
    except CatalogServiceException, cex:
7404
      result.cex = cex
7405
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7406
    result.write(oprot)
7407
    oprot.writeMessageEnd()
7408
    oprot.trans.flush()
7409
 
7410
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7411
    args = getLatestArrivalsCount_args()
7412
    args.read(iprot)
7413
    iprot.readMessageEnd()
7414
    result = getLatestArrivalsCount_result()
7415
    try:
7416
      result.success = self._handler.getLatestArrivalsCount()
7417
    except CatalogServiceException, cex:
7418
      result.cex = cex
7419
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7420
    result.write(oprot)
7421
    oprot.writeMessageEnd()
7422
    oprot.trans.flush()
7423
 
7424
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7425
    args = generateNewEntityID_args()
7426
    args.read(iprot)
7427
    iprot.readMessageEnd()
7428
    result = generateNewEntityID_result()
7429
    result.success = self._handler.generateNewEntityID()
7430
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7431
    result.write(oprot)
7432
    oprot.writeMessageEnd()
7433
    oprot.trans.flush()
7434
 
7435
  def process_addCategory(self, seqid, iprot, oprot):
7436
    args = addCategory_args()
7437
    args.read(iprot)
7438
    iprot.readMessageEnd()
7439
    result = addCategory_result()
7440
    result.success = self._handler.addCategory(args.category)
7441
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7442
    result.write(oprot)
7443
    oprot.writeMessageEnd()
7444
    oprot.trans.flush()
7445
 
7446
  def process_getCategory(self, seqid, iprot, oprot):
7447
    args = getCategory_args()
7448
    args.read(iprot)
7449
    iprot.readMessageEnd()
7450
    result = getCategory_result()
7451
    result.success = self._handler.getCategory(args.id)
7452
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7453
    result.write(oprot)
7454
    oprot.writeMessageEnd()
7455
    oprot.trans.flush()
7456
 
7457
  def process_getAllCategories(self, seqid, iprot, oprot):
7458
    args = getAllCategories_args()
7459
    args.read(iprot)
7460
    iprot.readMessageEnd()
7461
    result = getAllCategories_result()
7462
    result.success = self._handler.getAllCategories()
7463
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7464
    result.write(oprot)
7465
    oprot.writeMessageEnd()
7466
    oprot.trans.flush()
7467
 
7468
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7469
    args = getAllSimilarItems_args()
7470
    args.read(iprot)
7471
    iprot.readMessageEnd()
7472
    result = getAllSimilarItems_result()
7473
    result.success = self._handler.getAllSimilarItems(args.itemId)
7474
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7475
    result.write(oprot)
7476
    oprot.writeMessageEnd()
7477
    oprot.trans.flush()
7478
 
7479
  def process_addSimilarItem(self, seqid, iprot, oprot):
7480
    args = addSimilarItem_args()
7481
    args.read(iprot)
7482
    iprot.readMessageEnd()
7483
    result = addSimilarItem_result()
7484
    try:
7485
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7486
    except CatalogServiceException, cex:
7487
      result.cex = cex
7488
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7489
    result.write(oprot)
7490
    oprot.writeMessageEnd()
7491
    oprot.trans.flush()
7492
 
6512 kshitij.so 7493
  def process_addTag(self, seqid, iprot, oprot):
7494
    args = addTag_args()
7495
    args.read(iprot)
7496
    iprot.readMessageEnd()
7497
    result = addTag_result()
7498
    result.success = self._handler.addTag(args.displayName, args.itemId)
7499
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7500
    result.write(oprot)
7501
    oprot.writeMessageEnd()
7502
    oprot.trans.flush()
7503
 
7504
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7505
    args = deleteEntityTag_args()
7506
    args.read(iprot)
7507
    iprot.readMessageEnd()
7508
    result = deleteEntityTag_result()
7509
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7510
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7511
    result.write(oprot)
7512
    oprot.writeMessageEnd()
7513
    oprot.trans.flush()
7514
 
7515
  def process_deleteTag(self, seqid, iprot, oprot):
7516
    args = deleteTag_args()
7517
    args.read(iprot)
7518
    iprot.readMessageEnd()
7519
    result = deleteTag_result()
7520
    result.success = self._handler.deleteTag(args.displayName)
7521
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7522
    result.write(oprot)
7523
    oprot.writeMessageEnd()
7524
    oprot.trans.flush()
7525
 
7526
  def process_getAllTags(self, seqid, iprot, oprot):
7527
    args = getAllTags_args()
7528
    args.read(iprot)
7529
    iprot.readMessageEnd()
7530
    result = getAllTags_result()
7531
    result.success = self._handler.getAllTags()
7532
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7533
    result.write(oprot)
7534
    oprot.writeMessageEnd()
7535
    oprot.trans.flush()
7536
 
7537
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7538
    args = getAllEntitiesByTagName_args()
7539
    args.read(iprot)
7540
    iprot.readMessageEnd()
7541
    result = getAllEntitiesByTagName_result()
7542
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7543
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7544
    result.write(oprot)
7545
    oprot.writeMessageEnd()
7546
    oprot.trans.flush()
7547
 
6845 amit.gupta 7548
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7549
    args = getAllEntityTags_args()
7550
    args.read(iprot)
7551
    iprot.readMessageEnd()
7552
    result = getAllEntityTags_result()
7553
    result.success = self._handler.getAllEntityTags()
7554
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7555
    result.write(oprot)
7556
    oprot.writeMessageEnd()
7557
    oprot.trans.flush()
7558
 
6850 kshitij.so 7559
  def process_addBanner(self, seqid, iprot, oprot):
7560
    args = addBanner_args()
7561
    args.read(iprot)
7562
    iprot.readMessageEnd()
7563
    result = addBanner_result()
10097 kshitij.so 7564
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7565
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7566
    result.write(oprot)
7567
    oprot.writeMessageEnd()
7568
    oprot.trans.flush()
7569
 
8579 kshitij.so 7570
  def process_updateBanner(self, seqid, iprot, oprot):
7571
    args = updateBanner_args()
7572
    args.read(iprot)
7573
    iprot.readMessageEnd()
7574
    result = updateBanner_result()
7575
    result.success = self._handler.updateBanner(args.banner)
7576
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7577
    result.write(oprot)
7578
    oprot.writeMessageEnd()
7579
    oprot.trans.flush()
7580
 
6850 kshitij.so 7581
  def process_getAllBanners(self, seqid, iprot, oprot):
7582
    args = getAllBanners_args()
7583
    args.read(iprot)
7584
    iprot.readMessageEnd()
7585
    result = getAllBanners_result()
7586
    result.success = self._handler.getAllBanners()
7587
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7588
    result.write(oprot)
7589
    oprot.writeMessageEnd()
7590
    oprot.trans.flush()
7591
 
7592
  def process_deleteBanner(self, seqid, iprot, oprot):
7593
    args = deleteBanner_args()
7594
    args.read(iprot)
7595
    iprot.readMessageEnd()
7596
    result = deleteBanner_result()
9155 kshitij.so 7597
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7598
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7599
    result.write(oprot)
7600
    oprot.writeMessageEnd()
7601
    oprot.trans.flush()
7602
 
7603
  def process_getBannerDetails(self, seqid, iprot, oprot):
7604
    args = getBannerDetails_args()
7605
    args.read(iprot)
7606
    iprot.readMessageEnd()
7607
    result = getBannerDetails_result()
9155 kshitij.so 7608
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7609
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7610
    result.write(oprot)
7611
    oprot.writeMessageEnd()
7612
    oprot.trans.flush()
7613
 
7614
  def process_getActiveBanners(self, seqid, iprot, oprot):
7615
    args = getActiveBanners_args()
7616
    args.read(iprot)
7617
    iprot.readMessageEnd()
7618
    result = getActiveBanners_result()
7619
    result.success = self._handler.getActiveBanners()
7620
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7621
    result.write(oprot)
7622
    oprot.writeMessageEnd()
7623
    oprot.trans.flush()
7624
 
6849 kshitij.so 7625
  def process_addBannerMap(self, seqid, iprot, oprot):
7626
    args = addBannerMap_args()
7627
    args.read(iprot)
7628
    iprot.readMessageEnd()
7629
    result = addBannerMap_result()
8579 kshitij.so 7630
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7631
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7632
    result.write(oprot)
7633
    oprot.writeMessageEnd()
7634
    oprot.trans.flush()
7635
 
8579 kshitij.so 7636
  def process_updateBannerMap(self, seqid, iprot, oprot):
7637
    args = updateBannerMap_args()
7638
    args.read(iprot)
7639
    iprot.readMessageEnd()
7640
    result = updateBannerMap_result()
7641
    result.success = self._handler.updateBannerMap(args.bannerMap)
7642
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7643
    result.write(oprot)
7644
    oprot.writeMessageEnd()
7645
    oprot.trans.flush()
7646
 
6849 kshitij.so 7647
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7648
    args = deleteBannerMap_args()
7649
    args.read(iprot)
7650
    iprot.readMessageEnd()
7651
    result = deleteBannerMap_result()
7652
    result.success = self._handler.deleteBannerMap(args.bannerName)
7653
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7654
    result.write(oprot)
7655
    oprot.writeMessageEnd()
7656
    oprot.trans.flush()
7657
 
7658
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7659
    args = getBannerMapDetails_args()
7660
    args.read(iprot)
7661
    iprot.readMessageEnd()
7662
    result = getBannerMapDetails_result()
9155 kshitij.so 7663
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7664
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7665
    result.write(oprot)
7666
    oprot.writeMessageEnd()
7667
    oprot.trans.flush()
7668
 
8579 kshitij.so 7669
  def process_addBannerUri(self, seqid, iprot, oprot):
7670
    args = addBannerUri_args()
7671
    args.read(iprot)
7672
    iprot.readMessageEnd()
7673
    result = addBannerUri_result()
7674
    self._handler.addBannerUri(args.bannerUriMappings)
7675
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7676
    result.write(oprot)
7677
    oprot.writeMessageEnd()
7678
    oprot.trans.flush()
7679
 
7680
  def process_getUriMapping(self, seqid, iprot, oprot):
7681
    args = getUriMapping_args()
7682
    args.read(iprot)
7683
    iprot.readMessageEnd()
7684
    result = getUriMapping_result()
9155 kshitij.so 7685
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7686
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7687
    result.write(oprot)
7688
    oprot.writeMessageEnd()
7689
    oprot.trans.flush()
7690
 
7691
  def process_addCampaign(self, seqid, iprot, oprot):
7692
    args = addCampaign_args()
7693
    args.read(iprot)
7694
    iprot.readMessageEnd()
7695
    result = addCampaign_result()
7696
    self._handler.addCampaign(args.campaign)
7697
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7698
    result.write(oprot)
7699
    oprot.writeMessageEnd()
7700
    oprot.trans.flush()
7701
 
7702
  def process_getCampaigns(self, seqid, iprot, oprot):
7703
    args = getCampaigns_args()
7704
    args.read(iprot)
7705
    iprot.readMessageEnd()
7706
    result = getCampaigns_result()
7707
    result.success = self._handler.getCampaigns(args.campaignName)
7708
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7709
    result.write(oprot)
7710
    oprot.writeMessageEnd()
7711
    oprot.trans.flush()
7712
 
7713
  def process_deleteCampaign(self, seqid, iprot, oprot):
7714
    args = deleteCampaign_args()
7715
    args.read(iprot)
7716
    iprot.readMessageEnd()
7717
    result = deleteCampaign_result()
7718
    self._handler.deleteCampaign(args.campaignId)
7719
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7720
    result.write(oprot)
7721
    oprot.writeMessageEnd()
7722
    oprot.trans.flush()
7723
 
7724
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7725
    args = getAllCampaigns_args()
7726
    args.read(iprot)
7727
    iprot.readMessageEnd()
7728
    result = getAllCampaigns_result()
7729
    result.success = self._handler.getAllCampaigns()
7730
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7731
    result.write(oprot)
7732
    oprot.writeMessageEnd()
7733
    oprot.trans.flush()
7734
 
9155 kshitij.so 7735
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7736
    args = getActiveBannersForMobileSite_args()
7737
    args.read(iprot)
7738
    iprot.readMessageEnd()
7739
    result = getActiveBannersForMobileSite_result()
7740
    result.success = self._handler.getActiveBannersForMobileSite()
7741
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7742
    result.write(oprot)
7743
    oprot.writeMessageEnd()
7744
    oprot.trans.flush()
7745
 
5944 mandeep.dh 7746
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7747
    args = deleteSimilarItem_args()
7748
    args.read(iprot)
7749
    iprot.readMessageEnd()
7750
    result = deleteSimilarItem_result()
7751
    try:
7752
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7753
    except CatalogServiceException, cex:
7754
      result.cex = cex
7755
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7756
    result.write(oprot)
7757
    oprot.writeMessageEnd()
7758
    oprot.trans.flush()
7759
 
7760
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7761
    args = checkSimilarItem_args()
7762
    args.read(iprot)
7763
    iprot.readMessageEnd()
7764
    result = checkSimilarItem_result()
7765
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7766
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7767
    result.write(oprot)
7768
    oprot.writeMessageEnd()
7769
    oprot.trans.flush()
7770
 
7771
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7772
    args = validateRiskyStatus_args()
7773
    args.read(iprot)
7774
    iprot.readMessageEnd()
7775
    result = validateRiskyStatus_result()
7776
    self._handler.validateRiskyStatus(args.itemId)
7777
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7778
    result.write(oprot)
7779
    oprot.writeMessageEnd()
7780
    oprot.trans.flush()
7781
 
7782
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7783
    args = changeItemRiskyFlag_args()
7784
    args.read(iprot)
7785
    iprot.readMessageEnd()
7786
    result = changeItemRiskyFlag_result()
7787
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7788
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7789
    result.write(oprot)
7790
    oprot.writeMessageEnd()
7791
    oprot.trans.flush()
7792
 
7793
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7794
    args = getItemsByRiskyFlag_args()
7795
    args.read(iprot)
7796
    iprot.readMessageEnd()
7797
    result = getItemsByRiskyFlag_result()
7798
    result.success = self._handler.getItemsByRiskyFlag()
7799
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7800
    result.write(oprot)
7801
    oprot.writeMessageEnd()
7802
    oprot.trans.flush()
7803
 
7804
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7805
    args = getItemsForMasterSheet_args()
7806
    args.read(iprot)
7807
    iprot.readMessageEnd()
7808
    result = getItemsForMasterSheet_result()
7809
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7810
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7811
    result.write(oprot)
7812
    oprot.writeMessageEnd()
7813
    oprot.trans.flush()
7814
 
7815
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7816
    args = getSimilarItemsCatalogIds_args()
7817
    args.read(iprot)
7818
    iprot.readMessageEnd()
7819
    result = getSimilarItemsCatalogIds_result()
7820
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7821
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7822
    result.write(oprot)
7823
    oprot.writeMessageEnd()
7824
    oprot.trans.flush()
7825
 
7826
  def process_addProductNotification(self, seqid, iprot, oprot):
7827
    args = addProductNotification_args()
7828
    args.read(iprot)
7829
    iprot.readMessageEnd()
7830
    result = addProductNotification_result()
7831
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7832
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7833
    result.write(oprot)
7834
    oprot.writeMessageEnd()
7835
    oprot.trans.flush()
7836
 
7837
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7838
    args = sendProductNotifications_args()
7839
    args.read(iprot)
7840
    iprot.readMessageEnd()
7841
    result = sendProductNotifications_result()
7842
    result.success = self._handler.sendProductNotifications()
7843
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7844
    result.write(oprot)
7845
    oprot.writeMessageEnd()
7846
    oprot.trans.flush()
7847
 
7848
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7849
    args = getAllBrandsByCategory_args()
7850
    args.read(iprot)
7851
    iprot.readMessageEnd()
7852
    result = getAllBrandsByCategory_result()
7853
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7854
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7855
    result.write(oprot)
7856
    oprot.writeMessageEnd()
7857
    oprot.trans.flush()
7858
 
7859
  def process_getAllBrands(self, seqid, iprot, oprot):
7860
    args = getAllBrands_args()
7861
    args.read(iprot)
7862
    iprot.readMessageEnd()
7863
    result = getAllBrands_result()
7864
    result.success = self._handler.getAllBrands()
7865
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7866
    result.write(oprot)
7867
    oprot.writeMessageEnd()
7868
    oprot.trans.flush()
7869
 
7870
  def process_getAllSources(self, seqid, iprot, oprot):
7871
    args = getAllSources_args()
7872
    args.read(iprot)
7873
    iprot.readMessageEnd()
7874
    result = getAllSources_result()
7875
    result.success = self._handler.getAllSources()
7876
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7877
    result.write(oprot)
7878
    oprot.writeMessageEnd()
7879
    oprot.trans.flush()
7880
 
7881
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7882
    args = getItemPricingBySource_args()
7883
    args.read(iprot)
7884
    iprot.readMessageEnd()
7885
    result = getItemPricingBySource_result()
7886
    try:
7887
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7888
    except CatalogServiceException, cex:
7889
      result.cex = cex
7890
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7891
    result.write(oprot)
7892
    oprot.writeMessageEnd()
7893
    oprot.trans.flush()
7894
 
7895
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7896
    args = addSourceItemPricing_args()
7897
    args.read(iprot)
7898
    iprot.readMessageEnd()
7899
    result = addSourceItemPricing_result()
7900
    try:
7901
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7902
    except CatalogServiceException, cex:
7903
      result.cex = cex
7904
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7905
    result.write(oprot)
7906
    oprot.writeMessageEnd()
7907
    oprot.trans.flush()
7908
 
7909
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
7910
    args = getAllSourcePricing_args()
7911
    args.read(iprot)
7912
    iprot.readMessageEnd()
7913
    result = getAllSourcePricing_result()
7914
    try:
7915
      result.success = self._handler.getAllSourcePricing(args.itemId)
7916
    except CatalogServiceException, cex:
7917
      result.cex = cex
7918
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
7919
    result.write(oprot)
7920
    oprot.writeMessageEnd()
7921
    oprot.trans.flush()
7922
 
7923
  def process_getItemForSource(self, seqid, iprot, oprot):
7924
    args = getItemForSource_args()
7925
    args.read(iprot)
7926
    iprot.readMessageEnd()
7927
    result = getItemForSource_result()
7928
    try:
7929
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
7930
    except CatalogServiceException, cex:
7931
      result.cex = cex
7932
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
7933
    result.write(oprot)
7934
    oprot.writeMessageEnd()
7935
    oprot.trans.flush()
7936
 
7937
  def process_searchItemsInRange(self, seqid, iprot, oprot):
7938
    args = searchItemsInRange_args()
7939
    args.read(iprot)
7940
    iprot.readMessageEnd()
7941
    result = searchItemsInRange_result()
7942
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
7943
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
7944
    result.write(oprot)
7945
    oprot.writeMessageEnd()
7946
    oprot.trans.flush()
7947
 
7948
  def process_getSearchResultCount(self, seqid, iprot, oprot):
7949
    args = getSearchResultCount_args()
7950
    args.read(iprot)
7951
    iprot.readMessageEnd()
7952
    result = getSearchResultCount_result()
7953
    result.success = self._handler.getSearchResultCount(args.searchTerms)
7954
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
7955
    result.write(oprot)
7956
    oprot.writeMessageEnd()
7957
    oprot.trans.flush()
7958
 
7959
  def process_getProductNotifications(self, seqid, iprot, oprot):
7960
    args = getProductNotifications_args()
7961
    args.read(iprot)
7962
    iprot.readMessageEnd()
7963
    result = getProductNotifications_result()
7964
    result.success = self._handler.getProductNotifications(args.startDateTime)
7965
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
7966
    result.write(oprot)
7967
    oprot.writeMessageEnd()
7968
    oprot.trans.flush()
7969
 
7970
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
7971
    args = getProductNotificationRequestCount_args()
7972
    args.read(iprot)
7973
    iprot.readMessageEnd()
7974
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 7975
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 7976
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
7977
    result.write(oprot)
7978
    oprot.writeMessageEnd()
7979
    oprot.trans.flush()
7980
 
7981
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
7982
    args = addAuthorizationLog_args()
7983
    args.read(iprot)
7984
    iprot.readMessageEnd()
7985
    result = addAuthorizationLog_result()
7986
    try:
7987
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
7988
    except CatalogServiceException, cex:
7989
      result.cex = cex
7990
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
7991
    result.write(oprot)
7992
    oprot.writeMessageEnd()
7993
    oprot.trans.flush()
7994
 
7995
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
7996
    args = addupdateVoucherForItem_args()
7997
    args.read(iprot)
7998
    iprot.readMessageEnd()
7999
    result = addupdateVoucherForItem_result()
8000
    try:
8001
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
8002
    except CatalogServiceException, cex:
8003
      result.cex = cex
8004
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
8005
    result.write(oprot)
8006
    oprot.writeMessageEnd()
8007
    oprot.trans.flush()
8008
 
8009
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
8010
    args = deleteVoucherForItem_args()
8011
    args.read(iprot)
8012
    iprot.readMessageEnd()
8013
    result = deleteVoucherForItem_result()
8014
    try:
8015
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
8016
    except CatalogServiceException, cex:
8017
      result.cex = cex
8018
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
8019
    result.write(oprot)
8020
    oprot.writeMessageEnd()
8021
    oprot.trans.flush()
8022
 
8023
  def process_getVoucherAmount(self, seqid, iprot, oprot):
8024
    args = getVoucherAmount_args()
8025
    args.read(iprot)
8026
    iprot.readMessageEnd()
8027
    result = getVoucherAmount_result()
8028
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
8029
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
8030
    result.write(oprot)
8031
    oprot.writeMessageEnd()
8032
    oprot.trans.flush()
8033
 
8034
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
8035
    args = getAllItemVouchers_args()
8036
    args.read(iprot)
8037
    iprot.readMessageEnd()
8038
    result = getAllItemVouchers_result()
8039
    result.success = self._handler.getAllItemVouchers(args.itemId)
8040
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
8041
    result.write(oprot)
8042
    oprot.writeMessageEnd()
8043
    oprot.trans.flush()
8044
 
8045
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
8046
    args = isValidCatalogItemId_args()
8047
    args.read(iprot)
8048
    iprot.readMessageEnd()
8049
    result = isValidCatalogItemId_result()
8050
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
8051
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
8052
    result.write(oprot)
8053
    oprot.writeMessageEnd()
8054
    oprot.trans.flush()
8055
 
6039 amit.gupta 8056
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
8057
    args = getVatPercentageForItem_args()
8058
    args.read(iprot)
8059
    iprot.readMessageEnd()
8060
    result = getVatPercentageForItem_result()
7340 amit.gupta 8061
    try:
8062
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
8063
    except CatalogServiceException, cex:
8064
      result.cex = cex
6039 amit.gupta 8065
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
8066
    result.write(oprot)
8067
    oprot.writeMessageEnd()
8068
    oprot.trans.flush()
5944 mandeep.dh 8069
 
6039 amit.gupta 8070
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
8071
    args = getVatAmountForItem_args()
8072
    args.read(iprot)
8073
    iprot.readMessageEnd()
8074
    result = getVatAmountForItem_result()
8075
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
8076
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
8077
    result.write(oprot)
8078
    oprot.writeMessageEnd()
8079
    oprot.trans.flush()
8080
 
6531 vikram.rag 8081
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
8082
    args = getAllIgnoredInventoryUpdateItemsList_args()
8083
    args.read(iprot)
8084
    iprot.readMessageEnd()
8085
    result = getAllIgnoredInventoryUpdateItemsList_result()
8086
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
8087
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
8088
    result.write(oprot)
8089
    oprot.writeMessageEnd()
8090
    oprot.trans.flush()
6039 amit.gupta 8091
 
6821 amar.kumar 8092
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8093
    args = getAllAliveItems_args()
8094
    args.read(iprot)
8095
    iprot.readMessageEnd()
8096
    result = getAllAliveItems_result()
8097
    result.success = self._handler.getAllAliveItems()
8098
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8099
    result.write(oprot)
8100
    oprot.writeMessageEnd()
8101
    oprot.trans.flush()
8102
 
6805 anupam.sin 8103
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8104
    args = getInsuranceAmount_args()
8105
    args.read(iprot)
8106
    iprot.readMessageEnd()
8107
    result = getInsuranceAmount_result()
6921 anupam.sin 8108
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8109
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8110
    result.write(oprot)
8111
    oprot.writeMessageEnd()
8112
    oprot.trans.flush()
6531 vikram.rag 8113
 
6805 anupam.sin 8114
  def process_getInsurer(self, seqid, iprot, oprot):
8115
    args = getInsurer_args()
8116
    args.read(iprot)
8117
    iprot.readMessageEnd()
8118
    result = getInsurer_result()
8119
    result.success = self._handler.getInsurer(args.insurerId)
8120
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8121
    result.write(oprot)
8122
    oprot.writeMessageEnd()
8123
    oprot.trans.flush()
8124
 
6838 vikram.rag 8125
  def process_getAllInsurers(self, seqid, iprot, oprot):
8126
    args = getAllInsurers_args()
8127
    args.read(iprot)
8128
    iprot.readMessageEnd()
8129
    result = getAllInsurers_result()
8130
    result.success = self._handler.getAllInsurers()
8131
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8132
    result.write(oprot)
8133
    oprot.writeMessageEnd()
8134
    oprot.trans.flush()
6805 anupam.sin 8135
 
6962 rajveer 8136
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8137
    args = updateInsuranceDeclaredAmount_args()
8138
    args.read(iprot)
8139
    iprot.readMessageEnd()
8140
    result = updateInsuranceDeclaredAmount_result()
8141
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8142
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8143
    result.write(oprot)
8144
    oprot.writeMessageEnd()
8145
    oprot.trans.flush()
6838 vikram.rag 8146
 
7190 amar.kumar 8147
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8148
    args = getFreebieForItem_args()
8149
    args.read(iprot)
8150
    iprot.readMessageEnd()
8151
    result = getFreebieForItem_result()
8152
    result.success = self._handler.getFreebieForItem(args.itemId)
8153
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8154
    result.write(oprot)
8155
    oprot.writeMessageEnd()
8156
    oprot.trans.flush()
6962 rajveer 8157
 
7190 amar.kumar 8158
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8159
    args = addOrUpdateFreebieForItem_args()
8160
    args.read(iprot)
8161
    iprot.readMessageEnd()
8162
    result = addOrUpdateFreebieForItem_result()
8163
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8164
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8165
    result.write(oprot)
8166
    oprot.writeMessageEnd()
8167
    oprot.trans.flush()
8168
 
7272 amit.gupta 8169
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8170
    args = addOrUpdateBrandInfo_args()
8171
    args.read(iprot)
8172
    iprot.readMessageEnd()
8173
    result = addOrUpdateBrandInfo_result()
8174
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8175
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8176
    result.write(oprot)
8177
    oprot.writeMessageEnd()
8178
    oprot.trans.flush()
8179
 
8180
  def process_getBrandInfo(self, seqid, iprot, oprot):
8181
    args = getBrandInfo_args()
8182
    args.read(iprot)
8183
    iprot.readMessageEnd()
8184
    result = getBrandInfo_result()
8185
    result.success = self._handler.getBrandInfo()
8186
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8187
    result.write(oprot)
8188
    oprot.writeMessageEnd()
8189
    oprot.trans.flush()
8190
 
7256 rajveer 8191
  def process_getStorePricing(self, seqid, iprot, oprot):
8192
    args = getStorePricing_args()
8193
    args.read(iprot)
8194
    iprot.readMessageEnd()
8195
    result = getStorePricing_result()
8196
    result.success = self._handler.getStorePricing(args.itemId)
8197
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8198
    result.write(oprot)
8199
    oprot.writeMessageEnd()
8200
    oprot.trans.flush()
7190 amar.kumar 8201
 
7306 rajveer 8202
  def process_getStorePricings(self, seqid, iprot, oprot):
8203
    args = getStorePricings_args()
8204
    args.read(iprot)
8205
    iprot.readMessageEnd()
8206
    result = getStorePricings_result()
8207
    result.success = self._handler.getStorePricings(args.itemIds)
8208
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8209
    result.write(oprot)
8210
    oprot.writeMessageEnd()
8211
    oprot.trans.flush()
8212
 
7265 rajveer 8213
  def process_updateStorePricing(self, seqid, iprot, oprot):
8214
    args = updateStorePricing_args()
8215
    args.read(iprot)
8216
    iprot.readMessageEnd()
8217
    result = updateStorePricing_result()
7382 rajveer 8218
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8219
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8220
    result.write(oprot)
8221
    oprot.writeMessageEnd()
8222
    oprot.trans.flush()
7256 rajveer 8223
 
7281 kshitij.so 8224
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8225
    args = getAllAmazonListedItems_args()
8226
    args.read(iprot)
8227
    iprot.readMessageEnd()
8228
    result = getAllAmazonListedItems_result()
8229
    result.success = self._handler.getAllAmazonListedItems()
8230
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8231
    result.write(oprot)
8232
    oprot.writeMessageEnd()
8233
    oprot.trans.flush()
7265 rajveer 8234
 
8619 kshitij.so 8235
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8236
    args = searchAmazonItems_args()
8237
    args.read(iprot)
8238
    iprot.readMessageEnd()
8239
    result = searchAmazonItems_result()
8240
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8241
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8242
    result.write(oprot)
8243
    oprot.writeMessageEnd()
8244
    oprot.trans.flush()
8245
 
8246
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8247
    args = getAmazonSearchResultCount_args()
8248
    args.read(iprot)
8249
    iprot.readMessageEnd()
8250
    result = getAmazonSearchResultCount_result()
8251
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8252
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8253
    result.write(oprot)
8254
    oprot.writeMessageEnd()
8255
    oprot.trans.flush()
8256
 
8257
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8258
    args = getCountForAmazonlistedItems_args()
8259
    args.read(iprot)
8260
    iprot.readMessageEnd()
8261
    result = getCountForAmazonlistedItems_result()
8262
    result.success = self._handler.getCountForAmazonlistedItems()
8263
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8264
    result.write(oprot)
8265
    oprot.writeMessageEnd()
8266
    oprot.trans.flush()
8267
 
7281 kshitij.so 8268
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8269
    args = getAmazonItemDetails_args()
8270
    args.read(iprot)
8271
    iprot.readMessageEnd()
8272
    result = getAmazonItemDetails_result()
8273
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8274
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8275
    result.write(oprot)
8276
    oprot.writeMessageEnd()
8277
    oprot.trans.flush()
8278
 
8279
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8280
    args = updateAmazonItemDetails_args()
8281
    args.read(iprot)
8282
    iprot.readMessageEnd()
8283
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8284
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8285
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8286
    result.write(oprot)
8287
    oprot.writeMessageEnd()
8288
    oprot.trans.flush()
8289
 
8290
  def process_addAmazonItem(self, seqid, iprot, oprot):
8291
    args = addAmazonItem_args()
8292
    args.read(iprot)
8293
    iprot.readMessageEnd()
8294
    result = addAmazonItem_result()
8295
    self._handler.addAmazonItem(args.amazonlisted)
8296
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8297
    result.write(oprot)
8298
    oprot.writeMessageEnd()
8299
    oprot.trans.flush()
8300
 
7291 vikram.rag 8301
  def process_getAsinItems(self, seqid, iprot, oprot):
8302
    args = getAsinItems_args()
8303
    args.read(iprot)
8304
    iprot.readMessageEnd()
8305
    result = getAsinItems_result()
8306
    result.success = self._handler.getAsinItems()
8307
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8308
    result.write(oprot)
8309
    oprot.writeMessageEnd()
8310
    oprot.trans.flush()
7281 kshitij.so 8311
 
7291 vikram.rag 8312
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8313
    args = getAllFbaListedItems_args()
8314
    args.read(iprot)
8315
    iprot.readMessageEnd()
8316
    result = getAllFbaListedItems_result()
8317
    result.success = self._handler.getAllFbaListedItems()
8318
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8319
    result.write(oprot)
8320
    oprot.writeMessageEnd()
8321
    oprot.trans.flush()
8322
 
8323
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8324
    args = getAllNonFbaListedItems_args()
8325
    args.read(iprot)
8326
    iprot.readMessageEnd()
8327
    result = getAllNonFbaListedItems_result()
8328
    result.success = self._handler.getAllNonFbaListedItems()
8329
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8330
    result.write(oprot)
8331
    oprot.writeMessageEnd()
8332
    oprot.trans.flush()
8333
 
7460 kshitij.so 8334
  def process_updateItemInventory(self, seqid, iprot, oprot):
8335
    args = updateItemInventory_args()
8336
    args.read(iprot)
8337
    iprot.readMessageEnd()
8338
    result = updateItemInventory_result()
8339
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8340
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8341
    result.write(oprot)
8342
    oprot.writeMessageEnd()
8343
    oprot.trans.flush()
7291 vikram.rag 8344
 
7770 kshitij.so 8345
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8346
    args = updateTimestampForAmazonFeeds_args()
8347
    args.read(iprot)
8348
    iprot.readMessageEnd()
8349
    result = updateTimestampForAmazonFeeds_result()
8350
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8351
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8352
    result.write(oprot)
8353
    oprot.writeMessageEnd()
8354
    oprot.trans.flush()
7460 kshitij.so 8355
 
7897 amar.kumar 8356
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8357
    args = getAllParentCategories_args()
8358
    args.read(iprot)
8359
    iprot.readMessageEnd()
8360
    result = getAllParentCategories_result()
8361
    result.success = self._handler.getAllParentCategories()
8362
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8363
    result.write(oprot)
8364
    oprot.writeMessageEnd()
8365
    oprot.trans.flush()
7770 kshitij.so 8366
 
7977 kshitij.so 8367
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8368
    args = addPageViewEvent_args()
8369
    args.read(iprot)
8370
    iprot.readMessageEnd()
8371
    result = addPageViewEvent_result()
8372
    self._handler.addPageViewEvent(args.pageViewEvents)
8373
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8374
    result.write(oprot)
8375
    oprot.writeMessageEnd()
8376
    oprot.trans.flush()
7897 amar.kumar 8377
 
7977 kshitij.so 8378
  def process_addCartEvent(self, seqid, iprot, oprot):
8379
    args = addCartEvent_args()
8380
    args.read(iprot)
8381
    iprot.readMessageEnd()
8382
    result = addCartEvent_result()
8383
    self._handler.addCartEvent(args.cartEvents)
8384
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8385
    result.write(oprot)
8386
    oprot.writeMessageEnd()
8387
    oprot.trans.flush()
8388
 
8182 amar.kumar 8389
  def process_addEbayItem(self, seqid, iprot, oprot):
8390
    args = addEbayItem_args()
8391
    args.read(iprot)
8392
    iprot.readMessageEnd()
8393
    result = addEbayItem_result()
8394
    self._handler.addEbayItem(args.ebayItem)
8395
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8396
    result.write(oprot)
8397
    oprot.writeMessageEnd()
8398
    oprot.trans.flush()
8399
 
8400
  def process_getEbayItem(self, seqid, iprot, oprot):
8401
    args = getEbayItem_args()
8402
    args.read(iprot)
8403
    iprot.readMessageEnd()
8404
    result = getEbayItem_result()
8405
    result.success = self._handler.getEbayItem(args.listingId)
8406
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8407
    result.write(oprot)
8408
    oprot.writeMessageEnd()
8409
    oprot.trans.flush()
8410
 
8411
  def process_updateEbayItem(self, seqid, iprot, oprot):
8412
    args = updateEbayItem_args()
8413
    args.read(iprot)
8414
    iprot.readMessageEnd()
8415
    result = updateEbayItem_result()
8416
    self._handler.updateEbayItem(args.ebayItem)
8417
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8418
    result.write(oprot)
8419
    oprot.writeMessageEnd()
8420
    oprot.trans.flush()
8421
 
8139 kshitij.so 8422
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8423
    args = getAmazonListedItems_args()
8424
    args.read(iprot)
8425
    iprot.readMessageEnd()
8426
    result = getAmazonListedItems_result()
8427
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8428
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8429
    result.write(oprot)
8430
    oprot.writeMessageEnd()
8431
    oprot.trans.flush()
7977 kshitij.so 8432
 
8168 kshitij.so 8433
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8434
    args = updateAmazonAttributesInBulk_args()
8435
    args.read(iprot)
8436
    iprot.readMessageEnd()
8437
    result = updateAmazonAttributesInBulk_result()
8438
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8439
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8440
    result.write(oprot)
8441
    oprot.writeMessageEnd()
8442
    oprot.trans.flush()
8139 kshitij.so 8443
 
8379 vikram.rag 8444
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8445
    args = getAllItemstoListOnFba_args()
8446
    args.read(iprot)
8447
    iprot.readMessageEnd()
8448
    result = getAllItemstoListOnFba_result()
8449
    result.success = self._handler.getAllItemstoListOnFba()
8450
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8451
    result.write(oprot)
8452
    oprot.writeMessageEnd()
8453
    oprot.trans.flush()
8168 kshitij.so 8454
 
8379 vikram.rag 8455
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8456
    args = getAllItemstoListOnNonFba_args()
8457
    args.read(iprot)
8458
    iprot.readMessageEnd()
8459
    result = getAllItemstoListOnNonFba_result()
8460
    result.success = self._handler.getAllItemstoListOnNonFba()
8461
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8462
    result.write(oprot)
8463
    oprot.writeMessageEnd()
8464
    oprot.trans.flush()
8465
 
8619 kshitij.so 8466
  def process_updateAsin(self, seqid, iprot, oprot):
8467
    args = updateAsin_args()
8468
    args.read(iprot)
8469
    iprot.readMessageEnd()
8470
    result = updateAsin_result()
8471
    self._handler.updateAsin(args.item)
8472
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8473
    result.write(oprot)
8474
    oprot.writeMessageEnd()
8475
    oprot.trans.flush()
8616 vikram.rag 8476
 
8739 vikram.rag 8477
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8478
    args = addOrUpdateSnapdealItem_args()
8479
    args.read(iprot)
8480
    iprot.readMessageEnd()
8481
    result = addOrUpdateSnapdealItem_result()
8482
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8483
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8484
    result.write(oprot)
8485
    oprot.writeMessageEnd()
8486
    oprot.trans.flush()
8619 kshitij.so 8487
 
8739 vikram.rag 8488
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8489
    args = getSnapdealItem_args()
8490
    args.read(iprot)
8491
    iprot.readMessageEnd()
8492
    result = getSnapdealItem_result()
8493
    result.success = self._handler.getSnapdealItem(args.item_id)
8494
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8495
    result.write(oprot)
8496
    oprot.writeMessageEnd()
8497
    oprot.trans.flush()
8498
 
9242 kshitij.so 8499
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8500
    args = getSnapdealItemDetails_args()
8501
    args.read(iprot)
8502
    iprot.readMessageEnd()
8503
    result = getSnapdealItemDetails_result()
8504
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8505
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8506
    result.write(oprot)
8507
    oprot.writeMessageEnd()
8508
    oprot.trans.flush()
8509
 
8739 vikram.rag 8510
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8511
    args = getAllSnapdealItems_args()
8512
    args.read(iprot)
8513
    iprot.readMessageEnd()
8514
    result = getAllSnapdealItems_result()
8515
    result.success = self._handler.getAllSnapdealItems()
8516
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8517
    result.write(oprot)
8518
    oprot.writeMessageEnd()
8519
    oprot.trans.flush()
8520
 
9242 kshitij.so 8521
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8522
    args = getSnapdealItems_args()
8523
    args.read(iprot)
8524
    iprot.readMessageEnd()
8525
    result = getSnapdealItems_result()
8526
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8527
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8528
    result.write(oprot)
8529
    oprot.writeMessageEnd()
8530
    oprot.trans.flush()
8739 vikram.rag 8531
 
9242 kshitij.so 8532
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8533
    args = searchSnapdealItems_args()
8534
    args.read(iprot)
8535
    iprot.readMessageEnd()
8536
    result = searchSnapdealItems_result()
8537
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8538
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8539
    result.write(oprot)
8540
    oprot.writeMessageEnd()
8541
    oprot.trans.flush()
8542
 
8543
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8544
    args = getCountForSnapdealItems_args()
8545
    args.read(iprot)
8546
    iprot.readMessageEnd()
8547
    result = getCountForSnapdealItems_result()
8548
    result.success = self._handler.getCountForSnapdealItems()
8549
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8550
    result.write(oprot)
8551
    oprot.writeMessageEnd()
8552
    oprot.trans.flush()
8553
 
8554
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8555
    args = getSnapdealSearchResultCount_args()
8556
    args.read(iprot)
8557
    iprot.readMessageEnd()
8558
    result = getSnapdealSearchResultCount_result()
8559
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8560
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8561
    result.write(oprot)
8562
    oprot.writeMessageEnd()
8563
    oprot.trans.flush()
8564
 
9299 kshitij.so 8565
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8566
    args = getPrefferedInsurerForItem_args()
8567
    args.read(iprot)
8568
    iprot.readMessageEnd()
8569
    result = getPrefferedInsurerForItem_result()
8570
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8571
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8572
    result.write(oprot)
8573
    oprot.writeMessageEnd()
8574
    oprot.trans.flush()
9242 kshitij.so 8575
 
9456 vikram.rag 8576
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8577
    args = getSnapdealItembySkuAtSnapdeal_args()
8578
    args.read(iprot)
8579
    iprot.readMessageEnd()
8580
    result = getSnapdealItembySkuAtSnapdeal_result()
8581
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8582
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8583
    result.write(oprot)
8584
    oprot.writeMessageEnd()
8585
    oprot.trans.flush()
9299 kshitij.so 8586
 
9621 manish.sha 8587
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8588
    args = getProductFeedSubmit_args()
8589
    args.read(iprot)
8590
    iprot.readMessageEnd()
8591
    result = getProductFeedSubmit_result()
8592
    try:
8593
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8594
    except CatalogServiceException, cex:
8595
      result.cex = cex
8596
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8597
    result.write(oprot)
8598
    oprot.writeMessageEnd()
8599
    oprot.trans.flush()
9456 vikram.rag 8600
 
9621 manish.sha 8601
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8602
    args = addProductFeedSubmit_args()
8603
    args.read(iprot)
8604
    iprot.readMessageEnd()
8605
    result = addProductFeedSubmit_result()
8606
    try:
8607
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8608
    except CatalogServiceException, cex:
8609
      result.cex = cex
8610
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8611
    result.write(oprot)
8612
    oprot.writeMessageEnd()
8613
    oprot.trans.flush()
8614
 
8615
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8616
    args = updateProductFeedSubmit_args()
8617
    args.read(iprot)
8618
    iprot.readMessageEnd()
8619
    result = updateProductFeedSubmit_result()
8620
    try:
8621
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8622
    except CatalogServiceException, cex:
8623
      result.cex = cex
8624
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8625
    result.write(oprot)
8626
    oprot.writeMessageEnd()
8627
    oprot.trans.flush()
8628
 
8629
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8630
    args = deleteProductFeedSubmit_args()
8631
    args.read(iprot)
8632
    iprot.readMessageEnd()
8633
    result = deleteProductFeedSubmit_result()
8634
    try:
8635
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8636
    except CatalogServiceException, cex:
8637
      result.cex = cex
8638
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8639
    result.write(oprot)
8640
    oprot.writeMessageEnd()
8641
    oprot.trans.flush()
8642
 
8643
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8644
    args = getAllProductFeedSubmit_args()
8645
    args.read(iprot)
8646
    iprot.readMessageEnd()
8647
    result = getAllProductFeedSubmit_result()
8648
    try:
8649
      result.success = self._handler.getAllProductFeedSubmit()
8650
    except CatalogServiceException, cex:
8651
      result.cex = cex
8652
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8653
    result.write(oprot)
8654
    oprot.writeMessageEnd()
8655
    oprot.trans.flush()
8656
 
9724 kshitij.so 8657
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8658
    args = getMarketplacedetailsForItem_args()
8659
    args.read(iprot)
8660
    iprot.readMessageEnd()
8661
    result = getMarketplacedetailsForItem_result()
8662
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8663
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8664
    result.write(oprot)
8665
    oprot.writeMessageEnd()
8666
    oprot.trans.flush()
9621 manish.sha 8667
 
9724 kshitij.so 8668
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8669
    args = updateMarketplaceAttributesForItem_args()
8670
    args.read(iprot)
8671
    iprot.readMessageEnd()
8672
    result = updateMarketplaceAttributesForItem_result()
8673
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8674
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8675
    result.write(oprot)
8676
    oprot.writeMessageEnd()
8677
    oprot.trans.flush()
8678
 
9779 kshitij.so 8679
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8680
    args = getCostingForMarketplace_args()
8681
    args.read(iprot)
8682
    iprot.readMessageEnd()
8683
    result = getCostingForMarketplace_result()
8684
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8685
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8686
    result.write(oprot)
8687
    oprot.writeMessageEnd()
8688
    oprot.trans.flush()
8689
 
9776 vikram.rag 8690
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8691
    args = getMarketPlaceItemsForPriceUpdate_args()
8692
    args.read(iprot)
8693
    iprot.readMessageEnd()
8694
    result = getMarketPlaceItemsForPriceUpdate_result()
8695
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8696
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8697
    result.write(oprot)
8698
    oprot.writeMessageEnd()
8699
    oprot.trans.flush()
9724 kshitij.so 8700
 
9776 vikram.rag 8701
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8702
    args = updateMarketPlacePriceUpdateStatus_args()
8703
    args.read(iprot)
8704
    iprot.readMessageEnd()
8705
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8706
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8707
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8708
    result.write(oprot)
8709
    oprot.writeMessageEnd()
8710
    oprot.trans.flush()
8711
 
9861 rajveer 8712
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8713
    args = updateItemHoldInventory_args()
8714
    args.read(iprot)
8715
    iprot.readMessageEnd()
8716
    result = updateItemHoldInventory_result()
8717
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8718
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8719
    result.write(oprot)
8720
    oprot.writeMessageEnd()
8721
    oprot.trans.flush()
9776 vikram.rag 8722
 
9895 vikram.rag 8723
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8724
    args = updateNlcAtMarketplaces_args()
8725
    args.read(iprot)
8726
    iprot.readMessageEnd()
8727
    result = updateNlcAtMarketplaces_result()
8728
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8729
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8730
    result.write(oprot)
8731
    oprot.writeMessageEnd()
8732
    oprot.trans.flush()
9861 rajveer 8733
 
9945 vikram.rag 8734
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8735
    args = getAllFlipkartItems_args()
8736
    args.read(iprot)
8737
    iprot.readMessageEnd()
8738
    result = getAllFlipkartItems_result()
8739
    result.success = self._handler.getAllFlipkartItems()
8740
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8741
    result.write(oprot)
8742
    oprot.writeMessageEnd()
8743
    oprot.trans.flush()
9895 vikram.rag 8744
 
10097 kshitij.so 8745
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8746
    args = addOrUpdateFlipkartItem_args()
8747
    args.read(iprot)
8748
    iprot.readMessageEnd()
8749
    result = addOrUpdateFlipkartItem_result()
8750
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8751
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8752
    result.write(oprot)
8753
    oprot.writeMessageEnd()
8754
    oprot.trans.flush()
9945 vikram.rag 8755
 
10097 kshitij.so 8756
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8757
    args = getFlipkartItem_args()
8758
    args.read(iprot)
8759
    iprot.readMessageEnd()
8760
    result = getFlipkartItem_result()
8761
    result.success = self._handler.getFlipkartItem(args.item_id)
8762
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8763
    result.write(oprot)
8764
    oprot.writeMessageEnd()
8765
    oprot.trans.flush()
8766
 
8767
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8768
    args = getFlipkartItemDetails_args()
8769
    args.read(iprot)
8770
    iprot.readMessageEnd()
8771
    result = getFlipkartItemDetails_result()
8772
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8773
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8774
    result.write(oprot)
8775
    oprot.writeMessageEnd()
8776
    oprot.trans.flush()
8777
 
8778
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8779
    args = getFlipkartItems_args()
8780
    args.read(iprot)
8781
    iprot.readMessageEnd()
8782
    result = getFlipkartItems_result()
8783
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8784
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8785
    result.write(oprot)
8786
    oprot.writeMessageEnd()
8787
    oprot.trans.flush()
8788
 
8789
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8790
    args = searchFlipkartItems_args()
8791
    args.read(iprot)
8792
    iprot.readMessageEnd()
8793
    result = searchFlipkartItems_result()
8794
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8795
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8796
    result.write(oprot)
8797
    oprot.writeMessageEnd()
8798
    oprot.trans.flush()
8799
 
8800
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8801
    args = getCountForFlipkartItems_args()
8802
    args.read(iprot)
8803
    iprot.readMessageEnd()
8804
    result = getCountForFlipkartItems_result()
8805
    result.success = self._handler.getCountForFlipkartItems()
8806
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8807
    result.write(oprot)
8808
    oprot.writeMessageEnd()
8809
    oprot.trans.flush()
8810
 
8811
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8812
    args = getFlipkartSearchResultCount_args()
8813
    args.read(iprot)
8814
    iprot.readMessageEnd()
8815
    result = getFlipkartSearchResultCount_result()
8816
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8817
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8818
    result.write(oprot)
8819
    oprot.writeMessageEnd()
8820
    oprot.trans.flush()
8821
 
8822
  def process_getAllFkItems(self, seqid, iprot, oprot):
8823
    args = getAllFkItems_args()
8824
    args.read(iprot)
8825
    iprot.readMessageEnd()
8826
    result = getAllFkItems_result()
8827
    result.success = self._handler.getAllFkItems()
8828
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8829
    result.write(oprot)
8830
    oprot.writeMessageEnd()
8831
    oprot.trans.flush()
8832
 
10140 vikram.rag 8833
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8834
    args = getFlipkartItemBySkyAtFlipkart_args()
8835
    args.read(iprot)
8836
    iprot.readMessageEnd()
8837
    result = getFlipkartItemBySkyAtFlipkart_result()
8838
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8839
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8840
    result.write(oprot)
8841
    oprot.writeMessageEnd()
8842
    oprot.trans.flush()
10097 kshitij.so 8843
 
11015 kshitij.so 8844
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8845
    args = getMarketplaceHistory_args()
8846
    args.read(iprot)
8847
    iprot.readMessageEnd()
8848
    result = getMarketplaceHistory_result()
8849
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8850
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8851
    result.write(oprot)
8852
    oprot.writeMessageEnd()
8853
    oprot.trans.flush()
8854
 
10909 vikram.rag 8855
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8856
    args = getAllFbbListedItems_args()
8857
    args.read(iprot)
8858
    iprot.readMessageEnd()
8859
    result = getAllFbbListedItems_result()
8860
    result.success = self._handler.getAllFbbListedItems()
8861
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8862
    result.write(oprot)
8863
    oprot.writeMessageEnd()
8864
    oprot.trans.flush()
10140 vikram.rag 8865
 
10924 vikram.rag 8866
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8867
    args = getAllFbbPricingItems_args()
8868
    args.read(iprot)
8869
    iprot.readMessageEnd()
8870
    result = getAllFbbPricingItems_result()
8871
    result.success = self._handler.getAllFbbPricingItems()
8872
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8873
    result.write(oprot)
8874
    oprot.writeMessageEnd()
8875
    oprot.trans.flush()
10909 vikram.rag 8876
 
11015 kshitij.so 8877
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8878
    args = getCountForMarketplaceHistory_args()
8879
    args.read(iprot)
8880
    iprot.readMessageEnd()
8881
    result = getCountForMarketplaceHistory_result()
8882
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8883
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8884
    result.write(oprot)
8885
    oprot.writeMessageEnd()
8886
    oprot.trans.flush()
10924 vikram.rag 8887
 
11015 kshitij.so 8888
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8889
    args = getMarketplaceHistoryByDate_args()
8890
    args.read(iprot)
8891
    iprot.readMessageEnd()
8892
    result = getMarketplaceHistoryByDate_result()
8893
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8894
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8895
    result.write(oprot)
8896
    oprot.writeMessageEnd()
8897
    oprot.trans.flush()
8898
 
11531 vikram.rag 8899
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8900
    args = getPrivateDealDetails_args()
8901
    args.read(iprot)
8902
    iprot.readMessageEnd()
8903
    result = getPrivateDealDetails_result()
8904
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8905
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
8906
    result.write(oprot)
8907
    oprot.writeMessageEnd()
8908
    oprot.trans.flush()
11015 kshitij.so 8909
 
11531 vikram.rag 8910
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
8911
    args = getPrivateDealItems_args()
8912
    args.read(iprot)
8913
    iprot.readMessageEnd()
8914
    result = getPrivateDealItems_result()
8915
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
8916
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
8917
    result.write(oprot)
8918
    oprot.writeMessageEnd()
8919
    oprot.trans.flush()
8920
 
11592 amit.gupta 8921
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
8922
    args = getAllActivePrivateDeals_args()
8923
    args.read(iprot)
8924
    iprot.readMessageEnd()
8925
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 8926
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 8927
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
8928
    result.write(oprot)
8929
    oprot.writeMessageEnd()
8930
    oprot.trans.flush()
8931
 
11531 vikram.rag 8932
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
8933
    args = addOrUpdatePrivateDeal_args()
8934
    args.read(iprot)
8935
    iprot.readMessageEnd()
8936
    result = addOrUpdatePrivateDeal_result()
8937
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
8938
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
8939
    result.write(oprot)
8940
    oprot.writeMessageEnd()
8941
    oprot.trans.flush()
8942
 
11635 vikram.rag 8943
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
8944
    args = getPrivateDealsCatalogIds_args()
8945
    args.read(iprot)
8946
    iprot.readMessageEnd()
8947
    result = getPrivateDealsCatalogIds_result()
8948
    try:
8949
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
8950
    except CatalogServiceException, cex:
8951
      result.cex = cex
8952
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
8953
    result.write(oprot)
8954
    oprot.writeMessageEnd()
8955
    oprot.trans.flush()
11531 vikram.rag 8956
 
11645 amit.gupta 8957
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
8958
    args = getPrivateDealsCount_args()
8959
    args.read(iprot)
8960
    iprot.readMessageEnd()
8961
    result = getPrivateDealsCount_result()
8962
    result.success = self._handler.getPrivateDealsCount()
8963
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
8964
    result.write(oprot)
8965
    oprot.writeMessageEnd()
8966
    oprot.trans.flush()
11635 vikram.rag 8967
 
11905 kshitij.so 8968
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
8969
    args = getAmazonOutSyncItems_args()
8970
    args.read(iprot)
8971
    iprot.readMessageEnd()
8972
    result = getAmazonOutSyncItems_result()
8973
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
8974
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
8975
    result.write(oprot)
8976
    oprot.writeMessageEnd()
8977
    oprot.trans.flush()
11645 amit.gupta 8978
 
11905 kshitij.so 8979
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
8980
    args = getAllPrivateDealsComparison_args()
8981
    args.read(iprot)
8982
    iprot.readMessageEnd()
8983
    result = getAllPrivateDealsComparison_result()
8984
    result.success = self._handler.getAllPrivateDealsComparison()
8985
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
8986
    result.write(oprot)
8987
    oprot.writeMessageEnd()
8988
    oprot.trans.flush()
8989
 
12133 kshitij.so 8990
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
8991
    args = getAllSnapdealMarketplaceItem_args()
8992
    args.read(iprot)
8993
    iprot.readMessageEnd()
8994
    result = getAllSnapdealMarketplaceItem_result()
8995
    result.success = self._handler.getAllSnapdealMarketplaceItem()
8996
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
8997
    result.write(oprot)
8998
    oprot.writeMessageEnd()
8999
    oprot.trans.flush()
11905 kshitij.so 9000
 
12133 kshitij.so 9001
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
9002
    args = getAllFlipkartMarketplaceItem_args()
9003
    args.read(iprot)
9004
    iprot.readMessageEnd()
9005
    result = getAllFlipkartMarketplaceItem_result()
9006
    result.success = self._handler.getAllFlipkartMarketplaceItem()
9007
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
9008
    result.write(oprot)
9009
    oprot.writeMessageEnd()
9010
    oprot.trans.flush()
9011
 
12243 kshitij.so 9012
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
9013
    args = addCompetitorScraping_args()
9014
    args.read(iprot)
9015
    iprot.readMessageEnd()
9016
    result = addCompetitorScraping_result()
9017
    self._handler.addCompetitorScraping(args.competitorPricingMap)
9018
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
9019
    result.write(oprot)
9020
    oprot.writeMessageEnd()
9021
    oprot.trans.flush()
12133 kshitij.so 9022
 
12243 kshitij.so 9023
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
9024
    args = getPreviousCompetitorScraping_args()
9025
    args.read(iprot)
9026
    iprot.readMessageEnd()
9027
    result = getPreviousCompetitorScraping_result()
9028
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
9029
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
9030
    result.write(oprot)
9031
    oprot.writeMessageEnd()
9032
    oprot.trans.flush()
9033
 
12256 kshitij.so 9034
  def process_getUploadResultById(self, seqid, iprot, oprot):
9035
    args = getUploadResultById_args()
9036
    args.read(iprot)
9037
    iprot.readMessageEnd()
9038
    result = getUploadResultById_result()
9039
    result.success = self._handler.getUploadResultById(args.uploadId)
9040
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
9041
    result.write(oprot)
9042
    oprot.writeMessageEnd()
9043
    oprot.trans.flush()
12243 kshitij.so 9044
 
12363 kshitij.so 9045
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
9046
    args = addAmazonPromotion_args()
9047
    args.read(iprot)
9048
    iprot.readMessageEnd()
9049
    result = addAmazonPromotion_result()
12947 kshitij.so 9050
    try:
9051
      result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
9052
    except CatalogServiceException, cex:
9053
      result.cex = cex
12363 kshitij.so 9054
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
9055
    result.write(oprot)
9056
    oprot.writeMessageEnd()
9057
    oprot.trans.flush()
12256 kshitij.so 9058
 
12363 kshitij.so 9059
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
9060
    args = getAmazonPromotion_args()
9061
    args.read(iprot)
9062
    iprot.readMessageEnd()
9063
    result = getAmazonPromotion_result()
9064
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
9065
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
9066
    result.write(oprot)
9067
    oprot.writeMessageEnd()
9068
    oprot.trans.flush()
9069
 
9070
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
9071
    args = updateAmazonPromotion_args()
9072
    args.read(iprot)
9073
    iprot.readMessageEnd()
9074
    result = updateAmazonPromotion_result()
9075
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
9076
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
9077
    result.write(oprot)
9078
    oprot.writeMessageEnd()
9079
    oprot.trans.flush()
9080
 
12567 amit.gupta 9081
  def process_markPartiallyActive(self, seqid, iprot, oprot):
9082
    args = markPartiallyActive_args()
9083
    args.read(iprot)
9084
    iprot.readMessageEnd()
9085
    result = markPartiallyActive_result()
9086
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
9087
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
9088
    result.write(oprot)
9089
    oprot.writeMessageEnd()
9090
    oprot.trans.flush()
12363 kshitij.so 9091
 
12567 amit.gupta 9092
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9093
    args = updateItemStateVat_args()
9094
    args.read(iprot)
9095
    iprot.readMessageEnd()
9096
    result = updateItemStateVat_result()
9097
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9098
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9099
    result.write(oprot)
9100
    oprot.writeMessageEnd()
9101
    oprot.trans.flush()
9102
 
12620 amit.gupta 9103
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
9104
    args = getExAffiliateItemInfo_args()
9105
    args.read(iprot)
9106
    iprot.readMessageEnd()
9107
    result = getExAffiliateItemInfo_result()
9108
    result.success = self._handler.getExAffiliateItemInfo()
9109
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9110
    result.write(oprot)
9111
    oprot.writeMessageEnd()
9112
    oprot.trans.flush()
12567 amit.gupta 9113
 
12888 kshitij.so 9114
  def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):
9115
    args = getAllItemstoListOnFbg_args()
9116
    args.read(iprot)
9117
    iprot.readMessageEnd()
9118
    result = getAllItemstoListOnFbg_result()
9119
    result.success = self._handler.getAllItemstoListOnFbg()
9120
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9121
    result.write(oprot)
9122
    oprot.writeMessageEnd()
9123
    oprot.trans.flush()
12620 amit.gupta 9124
 
12892 kshitij.so 9125
  def process_getAllFbgListedItems(self, seqid, iprot, oprot):
9126
    args = getAllFbgListedItems_args()
9127
    args.read(iprot)
9128
    iprot.readMessageEnd()
9129
    result = getAllFbgListedItems_result()
9130
    result.success = self._handler.getAllFbgListedItems()
9131
    oprot.writeMessageBegin("getAllFbgListedItems", TMessageType.REPLY, seqid)
9132
    result.write(oprot)
9133
    oprot.writeMessageEnd()
9134
    oprot.trans.flush()
12888 kshitij.so 9135
 
12892 kshitij.so 9136
 
5944 mandeep.dh 9137
# HELPER FUNCTIONS AND STRUCTURES
9138
 
9139
class addItem_args:
9140
  """
9141
  Attributes:
9142
   - item
9143
  """
9144
 
9145
  thrift_spec = (
9146
    None, # 0
9147
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9148
  )
9149
 
9150
  def __init__(self, item=None,):
9151
    self.item = item
9152
 
9153
  def read(self, iprot):
9154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9156
      return
9157
    iprot.readStructBegin()
9158
    while True:
9159
      (fname, ftype, fid) = iprot.readFieldBegin()
9160
      if ftype == TType.STOP:
9161
        break
9162
      if fid == 1:
9163
        if ftype == TType.STRUCT:
9164
          self.item = Item()
9165
          self.item.read(iprot)
9166
        else:
9167
          iprot.skip(ftype)
9168
      else:
9169
        iprot.skip(ftype)
9170
      iprot.readFieldEnd()
9171
    iprot.readStructEnd()
9172
 
9173
  def write(self, oprot):
9174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9176
      return
9177
    oprot.writeStructBegin('addItem_args')
9178
    if self.item is not None:
9179
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9180
      self.item.write(oprot)
9181
      oprot.writeFieldEnd()
9182
    oprot.writeFieldStop()
9183
    oprot.writeStructEnd()
9184
 
9185
  def validate(self):
9186
    return
9187
 
9188
 
9189
  def __repr__(self):
9190
    L = ['%s=%r' % (key, value)
9191
      for key, value in self.__dict__.iteritems()]
9192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9193
 
9194
  def __eq__(self, other):
9195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9196
 
9197
  def __ne__(self, other):
9198
    return not (self == other)
9199
 
9200
class addItem_result:
9201
  """
9202
  Attributes:
9203
   - success
9204
   - cex
9205
  """
9206
 
9207
  thrift_spec = (
9208
    (0, TType.I64, 'success', None, None, ), # 0
9209
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9210
  )
9211
 
9212
  def __init__(self, success=None, cex=None,):
9213
    self.success = success
9214
    self.cex = cex
9215
 
9216
  def read(self, iprot):
9217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9219
      return
9220
    iprot.readStructBegin()
9221
    while True:
9222
      (fname, ftype, fid) = iprot.readFieldBegin()
9223
      if ftype == TType.STOP:
9224
        break
9225
      if fid == 0:
9226
        if ftype == TType.I64:
9227
          self.success = iprot.readI64();
9228
        else:
9229
          iprot.skip(ftype)
9230
      elif fid == 1:
9231
        if ftype == TType.STRUCT:
9232
          self.cex = CatalogServiceException()
9233
          self.cex.read(iprot)
9234
        else:
9235
          iprot.skip(ftype)
9236
      else:
9237
        iprot.skip(ftype)
9238
      iprot.readFieldEnd()
9239
    iprot.readStructEnd()
9240
 
9241
  def write(self, oprot):
9242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9244
      return
9245
    oprot.writeStructBegin('addItem_result')
9246
    if self.success is not None:
9247
      oprot.writeFieldBegin('success', TType.I64, 0)
9248
      oprot.writeI64(self.success)
9249
      oprot.writeFieldEnd()
9250
    if self.cex is not None:
9251
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9252
      self.cex.write(oprot)
9253
      oprot.writeFieldEnd()
9254
    oprot.writeFieldStop()
9255
    oprot.writeStructEnd()
9256
 
9257
  def validate(self):
9258
    return
9259
 
9260
 
9261
  def __repr__(self):
9262
    L = ['%s=%r' % (key, value)
9263
      for key, value in self.__dict__.iteritems()]
9264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9265
 
9266
  def __eq__(self, other):
9267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9268
 
9269
  def __ne__(self, other):
9270
    return not (self == other)
9271
 
9272
class updateItem_args:
9273
  """
9274
  Attributes:
9275
   - item
9276
  """
9277
 
9278
  thrift_spec = (
9279
    None, # 0
9280
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9281
  )
9282
 
9283
  def __init__(self, item=None,):
9284
    self.item = item
9285
 
9286
  def read(self, iprot):
9287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9289
      return
9290
    iprot.readStructBegin()
9291
    while True:
9292
      (fname, ftype, fid) = iprot.readFieldBegin()
9293
      if ftype == TType.STOP:
9294
        break
9295
      if fid == 1:
9296
        if ftype == TType.STRUCT:
9297
          self.item = Item()
9298
          self.item.read(iprot)
9299
        else:
9300
          iprot.skip(ftype)
9301
      else:
9302
        iprot.skip(ftype)
9303
      iprot.readFieldEnd()
9304
    iprot.readStructEnd()
9305
 
9306
  def write(self, oprot):
9307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9309
      return
9310
    oprot.writeStructBegin('updateItem_args')
9311
    if self.item is not None:
9312
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9313
      self.item.write(oprot)
9314
      oprot.writeFieldEnd()
9315
    oprot.writeFieldStop()
9316
    oprot.writeStructEnd()
9317
 
9318
  def validate(self):
9319
    return
9320
 
9321
 
9322
  def __repr__(self):
9323
    L = ['%s=%r' % (key, value)
9324
      for key, value in self.__dict__.iteritems()]
9325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9326
 
9327
  def __eq__(self, other):
9328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9329
 
9330
  def __ne__(self, other):
9331
    return not (self == other)
9332
 
9333
class updateItem_result:
9334
  """
9335
  Attributes:
9336
   - success
9337
   - cex
9338
  """
9339
 
9340
  thrift_spec = (
9341
    (0, TType.I64, 'success', None, None, ), # 0
9342
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9343
  )
9344
 
9345
  def __init__(self, success=None, cex=None,):
9346
    self.success = success
9347
    self.cex = cex
9348
 
9349
  def read(self, iprot):
9350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9352
      return
9353
    iprot.readStructBegin()
9354
    while True:
9355
      (fname, ftype, fid) = iprot.readFieldBegin()
9356
      if ftype == TType.STOP:
9357
        break
9358
      if fid == 0:
9359
        if ftype == TType.I64:
9360
          self.success = iprot.readI64();
9361
        else:
9362
          iprot.skip(ftype)
9363
      elif fid == 1:
9364
        if ftype == TType.STRUCT:
9365
          self.cex = CatalogServiceException()
9366
          self.cex.read(iprot)
9367
        else:
9368
          iprot.skip(ftype)
9369
      else:
9370
        iprot.skip(ftype)
9371
      iprot.readFieldEnd()
9372
    iprot.readStructEnd()
9373
 
9374
  def write(self, oprot):
9375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9377
      return
9378
    oprot.writeStructBegin('updateItem_result')
9379
    if self.success is not None:
9380
      oprot.writeFieldBegin('success', TType.I64, 0)
9381
      oprot.writeI64(self.success)
9382
      oprot.writeFieldEnd()
9383
    if self.cex is not None:
9384
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9385
      self.cex.write(oprot)
9386
      oprot.writeFieldEnd()
9387
    oprot.writeFieldStop()
9388
    oprot.writeStructEnd()
9389
 
9390
  def validate(self):
9391
    return
9392
 
9393
 
9394
  def __repr__(self):
9395
    L = ['%s=%r' % (key, value)
9396
      for key, value in self.__dict__.iteritems()]
9397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9398
 
9399
  def __eq__(self, other):
9400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9401
 
9402
  def __ne__(self, other):
9403
    return not (self == other)
9404
 
9405
class isActive_args:
9406
  """
9407
  Attributes:
9408
   - itemId
9409
  """
9410
 
9411
  thrift_spec = (
9412
    None, # 0
9413
    (1, TType.I64, 'itemId', None, None, ), # 1
9414
  )
9415
 
9416
  def __init__(self, itemId=None,):
9417
    self.itemId = itemId
9418
 
9419
  def read(self, iprot):
9420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9422
      return
9423
    iprot.readStructBegin()
9424
    while True:
9425
      (fname, ftype, fid) = iprot.readFieldBegin()
9426
      if ftype == TType.STOP:
9427
        break
9428
      if fid == 1:
9429
        if ftype == TType.I64:
9430
          self.itemId = iprot.readI64();
9431
        else:
9432
          iprot.skip(ftype)
9433
      else:
9434
        iprot.skip(ftype)
9435
      iprot.readFieldEnd()
9436
    iprot.readStructEnd()
9437
 
9438
  def write(self, oprot):
9439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9441
      return
9442
    oprot.writeStructBegin('isActive_args')
9443
    if self.itemId is not None:
9444
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9445
      oprot.writeI64(self.itemId)
9446
      oprot.writeFieldEnd()
9447
    oprot.writeFieldStop()
9448
    oprot.writeStructEnd()
9449
 
9450
  def validate(self):
9451
    return
9452
 
9453
 
9454
  def __repr__(self):
9455
    L = ['%s=%r' % (key, value)
9456
      for key, value in self.__dict__.iteritems()]
9457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9458
 
9459
  def __eq__(self, other):
9460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9461
 
9462
  def __ne__(self, other):
9463
    return not (self == other)
9464
 
9465
class isActive_result:
9466
  """
9467
  Attributes:
9468
   - success
9469
   - isex
9470
  """
9471
 
9472
  thrift_spec = (
9473
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9474
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9475
  )
9476
 
9477
  def __init__(self, success=None, isex=None,):
9478
    self.success = success
9479
    self.isex = isex
9480
 
9481
  def read(self, iprot):
9482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9484
      return
9485
    iprot.readStructBegin()
9486
    while True:
9487
      (fname, ftype, fid) = iprot.readFieldBegin()
9488
      if ftype == TType.STOP:
9489
        break
9490
      if fid == 0:
9491
        if ftype == TType.STRUCT:
9492
          self.success = ItemShippingInfo()
9493
          self.success.read(iprot)
9494
        else:
9495
          iprot.skip(ftype)
9496
      elif fid == 1:
9497
        if ftype == TType.STRUCT:
9498
          self.isex = CatalogServiceException()
9499
          self.isex.read(iprot)
9500
        else:
9501
          iprot.skip(ftype)
9502
      else:
9503
        iprot.skip(ftype)
9504
      iprot.readFieldEnd()
9505
    iprot.readStructEnd()
9506
 
9507
  def write(self, oprot):
9508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9510
      return
9511
    oprot.writeStructBegin('isActive_result')
9512
    if self.success is not None:
9513
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9514
      self.success.write(oprot)
9515
      oprot.writeFieldEnd()
9516
    if self.isex is not None:
9517
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9518
      self.isex.write(oprot)
9519
      oprot.writeFieldEnd()
9520
    oprot.writeFieldStop()
9521
    oprot.writeStructEnd()
9522
 
9523
  def validate(self):
9524
    return
9525
 
9526
 
9527
  def __repr__(self):
9528
    L = ['%s=%r' % (key, value)
9529
      for key, value in self.__dict__.iteritems()]
9530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9531
 
9532
  def __eq__(self, other):
9533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9534
 
9535
  def __ne__(self, other):
9536
    return not (self == other)
9537
 
7438 amit.gupta 9538
class getItemsStatus_args:
9539
  """
9540
  Attributes:
9541
   - itemIds
9542
  """
9543
 
9544
  thrift_spec = (
9545
    None, # 0
9546
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9547
  )
9548
 
9549
  def __init__(self, itemIds=None,):
9550
    self.itemIds = itemIds
9551
 
9552
  def read(self, iprot):
9553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9555
      return
9556
    iprot.readStructBegin()
9557
    while True:
9558
      (fname, ftype, fid) = iprot.readFieldBegin()
9559
      if ftype == TType.STOP:
9560
        break
9561
      if fid == 1:
9562
        if ftype == TType.LIST:
9563
          self.itemIds = []
8590 kshitij.so 9564
          (_etype33, _size30) = iprot.readListBegin()
9565
          for _i34 in xrange(_size30):
9566
            _elem35 = iprot.readI64();
9567
            self.itemIds.append(_elem35)
7438 amit.gupta 9568
          iprot.readListEnd()
9569
        else:
9570
          iprot.skip(ftype)
9571
      else:
9572
        iprot.skip(ftype)
9573
      iprot.readFieldEnd()
9574
    iprot.readStructEnd()
9575
 
9576
  def write(self, oprot):
9577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9579
      return
9580
    oprot.writeStructBegin('getItemsStatus_args')
9581
    if self.itemIds is not None:
9582
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9583
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9584
      for iter36 in self.itemIds:
9585
        oprot.writeI64(iter36)
7438 amit.gupta 9586
      oprot.writeListEnd()
9587
      oprot.writeFieldEnd()
9588
    oprot.writeFieldStop()
9589
    oprot.writeStructEnd()
9590
 
9591
  def validate(self):
9592
    return
9593
 
9594
 
9595
  def __repr__(self):
9596
    L = ['%s=%r' % (key, value)
9597
      for key, value in self.__dict__.iteritems()]
9598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9599
 
9600
  def __eq__(self, other):
9601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9602
 
9603
  def __ne__(self, other):
9604
    return not (self == other)
9605
 
9606
class getItemsStatus_result:
9607
  """
9608
  Attributes:
9609
   - success
9610
   - isex
9611
  """
9612
 
9613
  thrift_spec = (
9614
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9615
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9616
  )
9617
 
9618
  def __init__(self, success=None, isex=None,):
9619
    self.success = success
9620
    self.isex = isex
9621
 
9622
  def read(self, iprot):
9623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9625
      return
9626
    iprot.readStructBegin()
9627
    while True:
9628
      (fname, ftype, fid) = iprot.readFieldBegin()
9629
      if ftype == TType.STOP:
9630
        break
9631
      if fid == 0:
9632
        if ftype == TType.MAP:
9633
          self.success = {}
8590 kshitij.so 9634
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9635
          for _i41 in xrange(_size37):
9636
            _key42 = iprot.readI64();
9637
            _val43 = iprot.readBool();
9638
            self.success[_key42] = _val43
7438 amit.gupta 9639
          iprot.readMapEnd()
9640
        else:
9641
          iprot.skip(ftype)
9642
      elif fid == 1:
9643
        if ftype == TType.STRUCT:
9644
          self.isex = CatalogServiceException()
9645
          self.isex.read(iprot)
9646
        else:
9647
          iprot.skip(ftype)
9648
      else:
9649
        iprot.skip(ftype)
9650
      iprot.readFieldEnd()
9651
    iprot.readStructEnd()
9652
 
9653
  def write(self, oprot):
9654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9656
      return
9657
    oprot.writeStructBegin('getItemsStatus_result')
9658
    if self.success is not None:
9659
      oprot.writeFieldBegin('success', TType.MAP, 0)
9660
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9661
      for kiter44,viter45 in self.success.items():
9662
        oprot.writeI64(kiter44)
9663
        oprot.writeBool(viter45)
7438 amit.gupta 9664
      oprot.writeMapEnd()
9665
      oprot.writeFieldEnd()
9666
    if self.isex is not None:
9667
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9668
      self.isex.write(oprot)
9669
      oprot.writeFieldEnd()
9670
    oprot.writeFieldStop()
9671
    oprot.writeStructEnd()
9672
 
9673
  def validate(self):
9674
    return
9675
 
9676
 
9677
  def __repr__(self):
9678
    L = ['%s=%r' % (key, value)
9679
      for key, value in self.__dict__.iteritems()]
9680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9681
 
9682
  def __eq__(self, other):
9683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9684
 
9685
  def __ne__(self, other):
9686
    return not (self == other)
9687
 
5944 mandeep.dh 9688
class getItemStatusDescription_args:
9689
  """
9690
  Attributes:
9691
   - itemId
9692
  """
9693
 
9694
  thrift_spec = (
9695
    None, # 0
9696
    (1, TType.I64, 'itemId', None, None, ), # 1
9697
  )
9698
 
9699
  def __init__(self, itemId=None,):
9700
    self.itemId = itemId
9701
 
9702
  def read(self, iprot):
9703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9705
      return
9706
    iprot.readStructBegin()
9707
    while True:
9708
      (fname, ftype, fid) = iprot.readFieldBegin()
9709
      if ftype == TType.STOP:
9710
        break
9711
      if fid == 1:
9712
        if ftype == TType.I64:
9713
          self.itemId = iprot.readI64();
9714
        else:
9715
          iprot.skip(ftype)
9716
      else:
9717
        iprot.skip(ftype)
9718
      iprot.readFieldEnd()
9719
    iprot.readStructEnd()
9720
 
9721
  def write(self, oprot):
9722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9724
      return
9725
    oprot.writeStructBegin('getItemStatusDescription_args')
9726
    if self.itemId is not None:
9727
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9728
      oprot.writeI64(self.itemId)
9729
      oprot.writeFieldEnd()
9730
    oprot.writeFieldStop()
9731
    oprot.writeStructEnd()
9732
 
9733
  def validate(self):
9734
    return
9735
 
9736
 
9737
  def __repr__(self):
9738
    L = ['%s=%r' % (key, value)
9739
      for key, value in self.__dict__.iteritems()]
9740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9741
 
9742
  def __eq__(self, other):
9743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9744
 
9745
  def __ne__(self, other):
9746
    return not (self == other)
9747
 
9748
class getItemStatusDescription_result:
9749
  """
9750
  Attributes:
9751
   - success
9752
   - isex
9753
  """
9754
 
9755
  thrift_spec = (
9756
    (0, TType.STRING, 'success', None, None, ), # 0
9757
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9758
  )
9759
 
9760
  def __init__(self, success=None, isex=None,):
9761
    self.success = success
9762
    self.isex = isex
9763
 
9764
  def read(self, iprot):
9765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9767
      return
9768
    iprot.readStructBegin()
9769
    while True:
9770
      (fname, ftype, fid) = iprot.readFieldBegin()
9771
      if ftype == TType.STOP:
9772
        break
9773
      if fid == 0:
9774
        if ftype == TType.STRING:
9775
          self.success = iprot.readString();
9776
        else:
9777
          iprot.skip(ftype)
9778
      elif fid == 1:
9779
        if ftype == TType.STRUCT:
9780
          self.isex = CatalogServiceException()
9781
          self.isex.read(iprot)
9782
        else:
9783
          iprot.skip(ftype)
9784
      else:
9785
        iprot.skip(ftype)
9786
      iprot.readFieldEnd()
9787
    iprot.readStructEnd()
9788
 
9789
  def write(self, oprot):
9790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9792
      return
9793
    oprot.writeStructBegin('getItemStatusDescription_result')
9794
    if self.success is not None:
9795
      oprot.writeFieldBegin('success', TType.STRING, 0)
9796
      oprot.writeString(self.success)
9797
      oprot.writeFieldEnd()
9798
    if self.isex is not None:
9799
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9800
      self.isex.write(oprot)
9801
      oprot.writeFieldEnd()
9802
    oprot.writeFieldStop()
9803
    oprot.writeStructEnd()
9804
 
9805
  def validate(self):
9806
    return
9807
 
9808
 
9809
  def __repr__(self):
9810
    L = ['%s=%r' % (key, value)
9811
      for key, value in self.__dict__.iteritems()]
9812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9813
 
9814
  def __eq__(self, other):
9815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9816
 
9817
  def __ne__(self, other):
9818
    return not (self == other)
9819
 
9820
class startItemOn_args:
9821
  """
9822
  Attributes:
9823
   - item_id
9824
   - timestamp
9825
  """
9826
 
9827
  thrift_spec = (
9828
    None, # 0
9829
    (1, TType.I64, 'item_id', None, None, ), # 1
9830
    (2, TType.I64, 'timestamp', None, None, ), # 2
9831
  )
9832
 
9833
  def __init__(self, item_id=None, timestamp=None,):
9834
    self.item_id = item_id
9835
    self.timestamp = timestamp
9836
 
9837
  def read(self, iprot):
9838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9840
      return
9841
    iprot.readStructBegin()
9842
    while True:
9843
      (fname, ftype, fid) = iprot.readFieldBegin()
9844
      if ftype == TType.STOP:
9845
        break
9846
      if fid == 1:
9847
        if ftype == TType.I64:
9848
          self.item_id = iprot.readI64();
9849
        else:
9850
          iprot.skip(ftype)
9851
      elif fid == 2:
9852
        if ftype == TType.I64:
9853
          self.timestamp = iprot.readI64();
9854
        else:
9855
          iprot.skip(ftype)
9856
      else:
9857
        iprot.skip(ftype)
9858
      iprot.readFieldEnd()
9859
    iprot.readStructEnd()
9860
 
9861
  def write(self, oprot):
9862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9864
      return
9865
    oprot.writeStructBegin('startItemOn_args')
9866
    if self.item_id is not None:
9867
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9868
      oprot.writeI64(self.item_id)
9869
      oprot.writeFieldEnd()
9870
    if self.timestamp is not None:
9871
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9872
      oprot.writeI64(self.timestamp)
9873
      oprot.writeFieldEnd()
9874
    oprot.writeFieldStop()
9875
    oprot.writeStructEnd()
9876
 
9877
  def validate(self):
9878
    return
9879
 
9880
 
9881
  def __repr__(self):
9882
    L = ['%s=%r' % (key, value)
9883
      for key, value in self.__dict__.iteritems()]
9884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9885
 
9886
  def __eq__(self, other):
9887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9888
 
9889
  def __ne__(self, other):
9890
    return not (self == other)
9891
 
9892
class startItemOn_result:
9893
  """
9894
  Attributes:
9895
   - cex
9896
  """
9897
 
9898
  thrift_spec = (
9899
    None, # 0
9900
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9901
  )
9902
 
9903
  def __init__(self, cex=None,):
9904
    self.cex = cex
9905
 
9906
  def read(self, iprot):
9907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9909
      return
9910
    iprot.readStructBegin()
9911
    while True:
9912
      (fname, ftype, fid) = iprot.readFieldBegin()
9913
      if ftype == TType.STOP:
9914
        break
9915
      if fid == 1:
9916
        if ftype == TType.STRUCT:
9917
          self.cex = CatalogServiceException()
9918
          self.cex.read(iprot)
9919
        else:
9920
          iprot.skip(ftype)
9921
      else:
9922
        iprot.skip(ftype)
9923
      iprot.readFieldEnd()
9924
    iprot.readStructEnd()
9925
 
9926
  def write(self, oprot):
9927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9929
      return
9930
    oprot.writeStructBegin('startItemOn_result')
9931
    if self.cex is not None:
9932
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9933
      self.cex.write(oprot)
9934
      oprot.writeFieldEnd()
9935
    oprot.writeFieldStop()
9936
    oprot.writeStructEnd()
9937
 
9938
  def validate(self):
9939
    return
9940
 
9941
 
9942
  def __repr__(self):
9943
    L = ['%s=%r' % (key, value)
9944
      for key, value in self.__dict__.iteritems()]
9945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9946
 
9947
  def __eq__(self, other):
9948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9949
 
9950
  def __ne__(self, other):
9951
    return not (self == other)
9952
 
9953
class retireItemOn_args:
9954
  """
9955
  Attributes:
9956
   - item_id
9957
   - timestamp
9958
  """
9959
 
9960
  thrift_spec = (
9961
    None, # 0
9962
    (1, TType.I64, 'item_id', None, None, ), # 1
9963
    (2, TType.I64, 'timestamp', None, None, ), # 2
9964
  )
9965
 
9966
  def __init__(self, item_id=None, timestamp=None,):
9967
    self.item_id = item_id
9968
    self.timestamp = timestamp
9969
 
9970
  def read(self, iprot):
9971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9973
      return
9974
    iprot.readStructBegin()
9975
    while True:
9976
      (fname, ftype, fid) = iprot.readFieldBegin()
9977
      if ftype == TType.STOP:
9978
        break
9979
      if fid == 1:
9980
        if ftype == TType.I64:
9981
          self.item_id = iprot.readI64();
9982
        else:
9983
          iprot.skip(ftype)
9984
      elif fid == 2:
9985
        if ftype == TType.I64:
9986
          self.timestamp = iprot.readI64();
9987
        else:
9988
          iprot.skip(ftype)
9989
      else:
9990
        iprot.skip(ftype)
9991
      iprot.readFieldEnd()
9992
    iprot.readStructEnd()
9993
 
9994
  def write(self, oprot):
9995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9997
      return
9998
    oprot.writeStructBegin('retireItemOn_args')
9999
    if self.item_id is not None:
10000
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10001
      oprot.writeI64(self.item_id)
10002
      oprot.writeFieldEnd()
10003
    if self.timestamp is not None:
10004
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10005
      oprot.writeI64(self.timestamp)
10006
      oprot.writeFieldEnd()
10007
    oprot.writeFieldStop()
10008
    oprot.writeStructEnd()
10009
 
10010
  def validate(self):
10011
    return
10012
 
10013
 
10014
  def __repr__(self):
10015
    L = ['%s=%r' % (key, value)
10016
      for key, value in self.__dict__.iteritems()]
10017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10018
 
10019
  def __eq__(self, other):
10020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10021
 
10022
  def __ne__(self, other):
10023
    return not (self == other)
10024
 
10025
class retireItemOn_result:
10026
  """
10027
  Attributes:
10028
   - cex
10029
  """
10030
 
10031
  thrift_spec = (
10032
    None, # 0
10033
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10034
  )
10035
 
10036
  def __init__(self, cex=None,):
10037
    self.cex = cex
10038
 
10039
  def read(self, iprot):
10040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10042
      return
10043
    iprot.readStructBegin()
10044
    while True:
10045
      (fname, ftype, fid) = iprot.readFieldBegin()
10046
      if ftype == TType.STOP:
10047
        break
10048
      if fid == 1:
10049
        if ftype == TType.STRUCT:
10050
          self.cex = CatalogServiceException()
10051
          self.cex.read(iprot)
10052
        else:
10053
          iprot.skip(ftype)
10054
      else:
10055
        iprot.skip(ftype)
10056
      iprot.readFieldEnd()
10057
    iprot.readStructEnd()
10058
 
10059
  def write(self, oprot):
10060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10062
      return
10063
    oprot.writeStructBegin('retireItemOn_result')
10064
    if self.cex is not None:
10065
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10066
      self.cex.write(oprot)
10067
      oprot.writeFieldEnd()
10068
    oprot.writeFieldStop()
10069
    oprot.writeStructEnd()
10070
 
10071
  def validate(self):
10072
    return
10073
 
10074
 
10075
  def __repr__(self):
10076
    L = ['%s=%r' % (key, value)
10077
      for key, value in self.__dict__.iteritems()]
10078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10079
 
10080
  def __eq__(self, other):
10081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10082
 
10083
  def __ne__(self, other):
10084
    return not (self == other)
10085
 
10086
class changeItemStatus_args:
10087
  """
10088
  Attributes:
10089
   - item_id
10090
   - timestamp
10091
   - newstatus
10092
  """
10093
 
10094
  thrift_spec = (
10095
    None, # 0
10096
    (1, TType.I64, 'item_id', None, None, ), # 1
10097
    (2, TType.I64, 'timestamp', None, None, ), # 2
10098
    (3, TType.I32, 'newstatus', None, None, ), # 3
10099
  )
10100
 
10101
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
10102
    self.item_id = item_id
10103
    self.timestamp = timestamp
10104
    self.newstatus = newstatus
10105
 
10106
  def read(self, iprot):
10107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10109
      return
10110
    iprot.readStructBegin()
10111
    while True:
10112
      (fname, ftype, fid) = iprot.readFieldBegin()
10113
      if ftype == TType.STOP:
10114
        break
10115
      if fid == 1:
10116
        if ftype == TType.I64:
10117
          self.item_id = iprot.readI64();
10118
        else:
10119
          iprot.skip(ftype)
10120
      elif fid == 2:
10121
        if ftype == TType.I64:
10122
          self.timestamp = iprot.readI64();
10123
        else:
10124
          iprot.skip(ftype)
10125
      elif fid == 3:
10126
        if ftype == TType.I32:
10127
          self.newstatus = iprot.readI32();
10128
        else:
10129
          iprot.skip(ftype)
10130
      else:
10131
        iprot.skip(ftype)
10132
      iprot.readFieldEnd()
10133
    iprot.readStructEnd()
10134
 
10135
  def write(self, oprot):
10136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10138
      return
10139
    oprot.writeStructBegin('changeItemStatus_args')
10140
    if self.item_id is not None:
10141
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10142
      oprot.writeI64(self.item_id)
10143
      oprot.writeFieldEnd()
10144
    if self.timestamp is not None:
10145
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10146
      oprot.writeI64(self.timestamp)
10147
      oprot.writeFieldEnd()
10148
    if self.newstatus is not None:
10149
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10150
      oprot.writeI32(self.newstatus)
10151
      oprot.writeFieldEnd()
10152
    oprot.writeFieldStop()
10153
    oprot.writeStructEnd()
10154
 
10155
  def validate(self):
10156
    return
10157
 
10158
 
10159
  def __repr__(self):
10160
    L = ['%s=%r' % (key, value)
10161
      for key, value in self.__dict__.iteritems()]
10162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10163
 
10164
  def __eq__(self, other):
10165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10166
 
10167
  def __ne__(self, other):
10168
    return not (self == other)
10169
 
10170
class changeItemStatus_result:
10171
  """
10172
  Attributes:
10173
   - cex
10174
  """
10175
 
10176
  thrift_spec = (
10177
    None, # 0
10178
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10179
  )
10180
 
10181
  def __init__(self, cex=None,):
10182
    self.cex = cex
10183
 
10184
  def read(self, iprot):
10185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10187
      return
10188
    iprot.readStructBegin()
10189
    while True:
10190
      (fname, ftype, fid) = iprot.readFieldBegin()
10191
      if ftype == TType.STOP:
10192
        break
10193
      if fid == 1:
10194
        if ftype == TType.STRUCT:
10195
          self.cex = CatalogServiceException()
10196
          self.cex.read(iprot)
10197
        else:
10198
          iprot.skip(ftype)
10199
      else:
10200
        iprot.skip(ftype)
10201
      iprot.readFieldEnd()
10202
    iprot.readStructEnd()
10203
 
10204
  def write(self, oprot):
10205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10207
      return
10208
    oprot.writeStructBegin('changeItemStatus_result')
10209
    if self.cex is not None:
10210
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10211
      self.cex.write(oprot)
10212
      oprot.writeFieldEnd()
10213
    oprot.writeFieldStop()
10214
    oprot.writeStructEnd()
10215
 
10216
  def validate(self):
10217
    return
10218
 
10219
 
10220
  def __repr__(self):
10221
    L = ['%s=%r' % (key, value)
10222
      for key, value in self.__dict__.iteritems()]
10223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10224
 
10225
  def __eq__(self, other):
10226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10227
 
10228
  def __ne__(self, other):
10229
    return not (self == other)
10230
 
10231
class getItem_args:
10232
  """
10233
  Attributes:
10234
   - item_id
10235
  """
10236
 
10237
  thrift_spec = (
10238
    None, # 0
10239
    (1, TType.I64, 'item_id', None, None, ), # 1
10240
  )
10241
 
10242
  def __init__(self, item_id=None,):
10243
    self.item_id = item_id
10244
 
10245
  def read(self, iprot):
10246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10248
      return
10249
    iprot.readStructBegin()
10250
    while True:
10251
      (fname, ftype, fid) = iprot.readFieldBegin()
10252
      if ftype == TType.STOP:
10253
        break
10254
      if fid == 1:
10255
        if ftype == TType.I64:
10256
          self.item_id = iprot.readI64();
10257
        else:
10258
          iprot.skip(ftype)
10259
      else:
10260
        iprot.skip(ftype)
10261
      iprot.readFieldEnd()
10262
    iprot.readStructEnd()
10263
 
10264
  def write(self, oprot):
10265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10267
      return
10268
    oprot.writeStructBegin('getItem_args')
10269
    if self.item_id is not None:
10270
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10271
      oprot.writeI64(self.item_id)
10272
      oprot.writeFieldEnd()
10273
    oprot.writeFieldStop()
10274
    oprot.writeStructEnd()
10275
 
10276
  def validate(self):
10277
    return
10278
 
10279
 
10280
  def __repr__(self):
10281
    L = ['%s=%r' % (key, value)
10282
      for key, value in self.__dict__.iteritems()]
10283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10284
 
10285
  def __eq__(self, other):
10286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10287
 
10288
  def __ne__(self, other):
10289
    return not (self == other)
10290
 
10291
class getItem_result:
10292
  """
10293
  Attributes:
10294
   - success
10295
   - cex
10296
  """
10297
 
10298
  thrift_spec = (
10299
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10300
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10301
  )
10302
 
10303
  def __init__(self, success=None, cex=None,):
10304
    self.success = success
10305
    self.cex = cex
10306
 
10307
  def read(self, iprot):
10308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10310
      return
10311
    iprot.readStructBegin()
10312
    while True:
10313
      (fname, ftype, fid) = iprot.readFieldBegin()
10314
      if ftype == TType.STOP:
10315
        break
10316
      if fid == 0:
10317
        if ftype == TType.STRUCT:
10318
          self.success = Item()
10319
          self.success.read(iprot)
10320
        else:
10321
          iprot.skip(ftype)
10322
      elif fid == 1:
10323
        if ftype == TType.STRUCT:
10324
          self.cex = CatalogServiceException()
10325
          self.cex.read(iprot)
10326
        else:
10327
          iprot.skip(ftype)
10328
      else:
10329
        iprot.skip(ftype)
10330
      iprot.readFieldEnd()
10331
    iprot.readStructEnd()
10332
 
10333
  def write(self, oprot):
10334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10336
      return
10337
    oprot.writeStructBegin('getItem_result')
10338
    if self.success is not None:
10339
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10340
      self.success.write(oprot)
10341
      oprot.writeFieldEnd()
10342
    if self.cex is not None:
10343
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10344
      self.cex.write(oprot)
10345
      oprot.writeFieldEnd()
10346
    oprot.writeFieldStop()
10347
    oprot.writeStructEnd()
10348
 
10349
  def validate(self):
10350
    return
10351
 
10352
 
10353
  def __repr__(self):
10354
    L = ['%s=%r' % (key, value)
10355
      for key, value in self.__dict__.iteritems()]
10356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10357
 
10358
  def __eq__(self, other):
10359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10360
 
10361
  def __ne__(self, other):
10362
    return not (self == other)
10363
 
10364
class getItemsByCatalogId_args:
10365
  """
10366
  Attributes:
10367
   - catalog_item_id
10368
  """
10369
 
10370
  thrift_spec = (
10371
    None, # 0
10372
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10373
  )
10374
 
10375
  def __init__(self, catalog_item_id=None,):
10376
    self.catalog_item_id = catalog_item_id
10377
 
10378
  def read(self, iprot):
10379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10381
      return
10382
    iprot.readStructBegin()
10383
    while True:
10384
      (fname, ftype, fid) = iprot.readFieldBegin()
10385
      if ftype == TType.STOP:
10386
        break
10387
      if fid == 1:
10388
        if ftype == TType.I64:
10389
          self.catalog_item_id = iprot.readI64();
10390
        else:
10391
          iprot.skip(ftype)
10392
      else:
10393
        iprot.skip(ftype)
10394
      iprot.readFieldEnd()
10395
    iprot.readStructEnd()
10396
 
10397
  def write(self, oprot):
10398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10400
      return
10401
    oprot.writeStructBegin('getItemsByCatalogId_args')
10402
    if self.catalog_item_id is not None:
10403
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10404
      oprot.writeI64(self.catalog_item_id)
10405
      oprot.writeFieldEnd()
10406
    oprot.writeFieldStop()
10407
    oprot.writeStructEnd()
10408
 
10409
  def validate(self):
10410
    return
10411
 
10412
 
10413
  def __repr__(self):
10414
    L = ['%s=%r' % (key, value)
10415
      for key, value in self.__dict__.iteritems()]
10416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10417
 
10418
  def __eq__(self, other):
10419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10420
 
10421
  def __ne__(self, other):
10422
    return not (self == other)
10423
 
10424
class getItemsByCatalogId_result:
10425
  """
10426
  Attributes:
10427
   - success
10428
   - cex
10429
  """
10430
 
10431
  thrift_spec = (
10432
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10433
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10434
  )
10435
 
10436
  def __init__(self, success=None, cex=None,):
10437
    self.success = success
10438
    self.cex = cex
10439
 
10440
  def read(self, iprot):
10441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10443
      return
10444
    iprot.readStructBegin()
10445
    while True:
10446
      (fname, ftype, fid) = iprot.readFieldBegin()
10447
      if ftype == TType.STOP:
10448
        break
10449
      if fid == 0:
10450
        if ftype == TType.LIST:
10451
          self.success = []
8590 kshitij.so 10452
          (_etype49, _size46) = iprot.readListBegin()
10453
          for _i50 in xrange(_size46):
10454
            _elem51 = Item()
10455
            _elem51.read(iprot)
10456
            self.success.append(_elem51)
5944 mandeep.dh 10457
          iprot.readListEnd()
10458
        else:
10459
          iprot.skip(ftype)
10460
      elif fid == 1:
10461
        if ftype == TType.STRUCT:
10462
          self.cex = CatalogServiceException()
10463
          self.cex.read(iprot)
10464
        else:
10465
          iprot.skip(ftype)
10466
      else:
10467
        iprot.skip(ftype)
10468
      iprot.readFieldEnd()
10469
    iprot.readStructEnd()
10470
 
10471
  def write(self, oprot):
10472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10474
      return
10475
    oprot.writeStructBegin('getItemsByCatalogId_result')
10476
    if self.success is not None:
10477
      oprot.writeFieldBegin('success', TType.LIST, 0)
10478
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10479
      for iter52 in self.success:
10480
        iter52.write(oprot)
5944 mandeep.dh 10481
      oprot.writeListEnd()
10482
      oprot.writeFieldEnd()
10483
    if self.cex is not None:
10484
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10485
      self.cex.write(oprot)
10486
      oprot.writeFieldEnd()
10487
    oprot.writeFieldStop()
10488
    oprot.writeStructEnd()
10489
 
10490
  def validate(self):
10491
    return
10492
 
10493
 
10494
  def __repr__(self):
10495
    L = ['%s=%r' % (key, value)
10496
      for key, value in self.__dict__.iteritems()]
10497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10498
 
10499
  def __eq__(self, other):
10500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10501
 
10502
  def __ne__(self, other):
10503
    return not (self == other)
10504
 
10505
class getValidItemsByCatalogId_args:
10506
  """
10507
  Attributes:
10508
   - catalog_item_id
10509
  """
10510
 
10511
  thrift_spec = (
10512
    None, # 0
10513
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10514
  )
10515
 
10516
  def __init__(self, catalog_item_id=None,):
10517
    self.catalog_item_id = catalog_item_id
10518
 
10519
  def read(self, iprot):
10520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10522
      return
10523
    iprot.readStructBegin()
10524
    while True:
10525
      (fname, ftype, fid) = iprot.readFieldBegin()
10526
      if ftype == TType.STOP:
10527
        break
10528
      if fid == 1:
10529
        if ftype == TType.I64:
10530
          self.catalog_item_id = iprot.readI64();
10531
        else:
10532
          iprot.skip(ftype)
10533
      else:
10534
        iprot.skip(ftype)
10535
      iprot.readFieldEnd()
10536
    iprot.readStructEnd()
10537
 
10538
  def write(self, oprot):
10539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10541
      return
10542
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10543
    if self.catalog_item_id is not None:
10544
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10545
      oprot.writeI64(self.catalog_item_id)
10546
      oprot.writeFieldEnd()
10547
    oprot.writeFieldStop()
10548
    oprot.writeStructEnd()
10549
 
10550
  def validate(self):
10551
    return
10552
 
10553
 
10554
  def __repr__(self):
10555
    L = ['%s=%r' % (key, value)
10556
      for key, value in self.__dict__.iteritems()]
10557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10558
 
10559
  def __eq__(self, other):
10560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10561
 
10562
  def __ne__(self, other):
10563
    return not (self == other)
10564
 
10565
class getValidItemsByCatalogId_result:
10566
  """
10567
  Attributes:
10568
   - success
10569
   - cex
10570
  """
10571
 
10572
  thrift_spec = (
10573
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10574
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10575
  )
10576
 
10577
  def __init__(self, success=None, cex=None,):
10578
    self.success = success
10579
    self.cex = cex
10580
 
10581
  def read(self, iprot):
10582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10584
      return
10585
    iprot.readStructBegin()
10586
    while True:
10587
      (fname, ftype, fid) = iprot.readFieldBegin()
10588
      if ftype == TType.STOP:
10589
        break
10590
      if fid == 0:
10591
        if ftype == TType.LIST:
10592
          self.success = []
8590 kshitij.so 10593
          (_etype56, _size53) = iprot.readListBegin()
10594
          for _i57 in xrange(_size53):
10595
            _elem58 = Item()
10596
            _elem58.read(iprot)
10597
            self.success.append(_elem58)
5944 mandeep.dh 10598
          iprot.readListEnd()
10599
        else:
10600
          iprot.skip(ftype)
10601
      elif fid == 1:
10602
        if ftype == TType.STRUCT:
10603
          self.cex = CatalogServiceException()
10604
          self.cex.read(iprot)
10605
        else:
10606
          iprot.skip(ftype)
10607
      else:
10608
        iprot.skip(ftype)
10609
      iprot.readFieldEnd()
10610
    iprot.readStructEnd()
10611
 
10612
  def write(self, oprot):
10613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10615
      return
10616
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10617
    if self.success is not None:
10618
      oprot.writeFieldBegin('success', TType.LIST, 0)
10619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10620
      for iter59 in self.success:
10621
        iter59.write(oprot)
5944 mandeep.dh 10622
      oprot.writeListEnd()
10623
      oprot.writeFieldEnd()
10624
    if self.cex is not None:
10625
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10626
      self.cex.write(oprot)
10627
      oprot.writeFieldEnd()
10628
    oprot.writeFieldStop()
10629
    oprot.writeStructEnd()
10630
 
10631
  def validate(self):
10632
    return
10633
 
10634
 
10635
  def __repr__(self):
10636
    L = ['%s=%r' % (key, value)
10637
      for key, value in self.__dict__.iteritems()]
10638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10639
 
10640
  def __eq__(self, other):
10641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10642
 
10643
  def __ne__(self, other):
10644
    return not (self == other)
10645
 
10646
class getAllItems_args:
10647
  """
10648
  Attributes:
10649
   - isActive
10650
  """
10651
 
10652
  thrift_spec = (
10653
    None, # 0
10654
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10655
  )
10656
 
10657
  def __init__(self, isActive=None,):
10658
    self.isActive = isActive
10659
 
10660
  def read(self, iprot):
10661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10663
      return
10664
    iprot.readStructBegin()
10665
    while True:
10666
      (fname, ftype, fid) = iprot.readFieldBegin()
10667
      if ftype == TType.STOP:
10668
        break
10669
      if fid == 1:
10670
        if ftype == TType.BOOL:
10671
          self.isActive = iprot.readBool();
10672
        else:
10673
          iprot.skip(ftype)
10674
      else:
10675
        iprot.skip(ftype)
10676
      iprot.readFieldEnd()
10677
    iprot.readStructEnd()
10678
 
10679
  def write(self, oprot):
10680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10682
      return
10683
    oprot.writeStructBegin('getAllItems_args')
10684
    if self.isActive is not None:
10685
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10686
      oprot.writeBool(self.isActive)
10687
      oprot.writeFieldEnd()
10688
    oprot.writeFieldStop()
10689
    oprot.writeStructEnd()
10690
 
10691
  def validate(self):
10692
    return
10693
 
10694
 
10695
  def __repr__(self):
10696
    L = ['%s=%r' % (key, value)
10697
      for key, value in self.__dict__.iteritems()]
10698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10699
 
10700
  def __eq__(self, other):
10701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10702
 
10703
  def __ne__(self, other):
10704
    return not (self == other)
10705
 
10706
class getAllItems_result:
10707
  """
10708
  Attributes:
10709
   - success
10710
   - cex
10711
  """
10712
 
10713
  thrift_spec = (
10714
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10715
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10716
  )
10717
 
10718
  def __init__(self, success=None, cex=None,):
10719
    self.success = success
10720
    self.cex = cex
10721
 
10722
  def read(self, iprot):
10723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10725
      return
10726
    iprot.readStructBegin()
10727
    while True:
10728
      (fname, ftype, fid) = iprot.readFieldBegin()
10729
      if ftype == TType.STOP:
10730
        break
10731
      if fid == 0:
10732
        if ftype == TType.LIST:
10733
          self.success = []
8590 kshitij.so 10734
          (_etype63, _size60) = iprot.readListBegin()
10735
          for _i64 in xrange(_size60):
10736
            _elem65 = Item()
10737
            _elem65.read(iprot)
10738
            self.success.append(_elem65)
5944 mandeep.dh 10739
          iprot.readListEnd()
10740
        else:
10741
          iprot.skip(ftype)
10742
      elif fid == 1:
10743
        if ftype == TType.STRUCT:
10744
          self.cex = CatalogServiceException()
10745
          self.cex.read(iprot)
10746
        else:
10747
          iprot.skip(ftype)
10748
      else:
10749
        iprot.skip(ftype)
10750
      iprot.readFieldEnd()
10751
    iprot.readStructEnd()
10752
 
10753
  def write(self, oprot):
10754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10756
      return
10757
    oprot.writeStructBegin('getAllItems_result')
10758
    if self.success is not None:
10759
      oprot.writeFieldBegin('success', TType.LIST, 0)
10760
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10761
      for iter66 in self.success:
10762
        iter66.write(oprot)
5944 mandeep.dh 10763
      oprot.writeListEnd()
10764
      oprot.writeFieldEnd()
10765
    if self.cex is not None:
10766
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10767
      self.cex.write(oprot)
10768
      oprot.writeFieldEnd()
10769
    oprot.writeFieldStop()
10770
    oprot.writeStructEnd()
10771
 
10772
  def validate(self):
10773
    return
10774
 
10775
 
10776
  def __repr__(self):
10777
    L = ['%s=%r' % (key, value)
10778
      for key, value in self.__dict__.iteritems()]
10779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10780
 
10781
  def __eq__(self, other):
10782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10783
 
10784
  def __ne__(self, other):
10785
    return not (self == other)
10786
 
10787
class getAllItemsByStatus_args:
10788
  """
10789
  Attributes:
10790
   - itemStatus
10791
  """
10792
 
10793
  thrift_spec = (
10794
    None, # 0
10795
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10796
  )
10797
 
10798
  def __init__(self, itemStatus=None,):
10799
    self.itemStatus = itemStatus
10800
 
10801
  def read(self, iprot):
10802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10804
      return
10805
    iprot.readStructBegin()
10806
    while True:
10807
      (fname, ftype, fid) = iprot.readFieldBegin()
10808
      if ftype == TType.STOP:
10809
        break
10810
      if fid == 1:
10811
        if ftype == TType.I32:
10812
          self.itemStatus = iprot.readI32();
10813
        else:
10814
          iprot.skip(ftype)
10815
      else:
10816
        iprot.skip(ftype)
10817
      iprot.readFieldEnd()
10818
    iprot.readStructEnd()
10819
 
10820
  def write(self, oprot):
10821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10823
      return
10824
    oprot.writeStructBegin('getAllItemsByStatus_args')
10825
    if self.itemStatus is not None:
10826
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10827
      oprot.writeI32(self.itemStatus)
10828
      oprot.writeFieldEnd()
10829
    oprot.writeFieldStop()
10830
    oprot.writeStructEnd()
10831
 
10832
  def validate(self):
10833
    return
10834
 
10835
 
10836
  def __repr__(self):
10837
    L = ['%s=%r' % (key, value)
10838
      for key, value in self.__dict__.iteritems()]
10839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10840
 
10841
  def __eq__(self, other):
10842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10843
 
10844
  def __ne__(self, other):
10845
    return not (self == other)
10846
 
10847
class getAllItemsByStatus_result:
10848
  """
10849
  Attributes:
10850
   - success
10851
   - cex
10852
  """
10853
 
10854
  thrift_spec = (
10855
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10856
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10857
  )
10858
 
10859
  def __init__(self, success=None, cex=None,):
10860
    self.success = success
10861
    self.cex = cex
10862
 
10863
  def read(self, iprot):
10864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10866
      return
10867
    iprot.readStructBegin()
10868
    while True:
10869
      (fname, ftype, fid) = iprot.readFieldBegin()
10870
      if ftype == TType.STOP:
10871
        break
10872
      if fid == 0:
10873
        if ftype == TType.LIST:
10874
          self.success = []
8590 kshitij.so 10875
          (_etype70, _size67) = iprot.readListBegin()
10876
          for _i71 in xrange(_size67):
10877
            _elem72 = Item()
10878
            _elem72.read(iprot)
10879
            self.success.append(_elem72)
5944 mandeep.dh 10880
          iprot.readListEnd()
10881
        else:
10882
          iprot.skip(ftype)
10883
      elif fid == 1:
10884
        if ftype == TType.STRUCT:
10885
          self.cex = CatalogServiceException()
10886
          self.cex.read(iprot)
10887
        else:
10888
          iprot.skip(ftype)
10889
      else:
10890
        iprot.skip(ftype)
10891
      iprot.readFieldEnd()
10892
    iprot.readStructEnd()
10893
 
10894
  def write(self, oprot):
10895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10897
      return
10898
    oprot.writeStructBegin('getAllItemsByStatus_result')
10899
    if self.success is not None:
10900
      oprot.writeFieldBegin('success', TType.LIST, 0)
10901
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10902
      for iter73 in self.success:
10903
        iter73.write(oprot)
5944 mandeep.dh 10904
      oprot.writeListEnd()
10905
      oprot.writeFieldEnd()
10906
    if self.cex is not None:
10907
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10908
      self.cex.write(oprot)
10909
      oprot.writeFieldEnd()
10910
    oprot.writeFieldStop()
10911
    oprot.writeStructEnd()
10912
 
10913
  def validate(self):
10914
    return
10915
 
10916
 
10917
  def __repr__(self):
10918
    L = ['%s=%r' % (key, value)
10919
      for key, value in self.__dict__.iteritems()]
10920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10921
 
10922
  def __eq__(self, other):
10923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10924
 
10925
  def __ne__(self, other):
10926
    return not (self == other)
10927
 
10928
class markItemAsContentComplete_args:
10929
  """
10930
  Attributes:
10931
   - entityId
10932
   - category
10933
   - brand
10934
   - modelName
10935
   - modelNumber
9253 rajveer 10936
   - isAndroid
5944 mandeep.dh 10937
  """
10938
 
10939
  thrift_spec = (
10940
    None, # 0
10941
    (1, TType.I64, 'entityId', None, None, ), # 1
10942
    (2, TType.I64, 'category', None, None, ), # 2
10943
    (3, TType.STRING, 'brand', None, None, ), # 3
10944
    (4, TType.STRING, 'modelName', None, None, ), # 4
10945
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 10946
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 10947
  )
10948
 
9253 rajveer 10949
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 10950
    self.entityId = entityId
10951
    self.category = category
10952
    self.brand = brand
10953
    self.modelName = modelName
10954
    self.modelNumber = modelNumber
9253 rajveer 10955
    self.isAndroid = isAndroid
5944 mandeep.dh 10956
 
10957
  def read(self, iprot):
10958
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10959
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10960
      return
10961
    iprot.readStructBegin()
10962
    while True:
10963
      (fname, ftype, fid) = iprot.readFieldBegin()
10964
      if ftype == TType.STOP:
10965
        break
10966
      if fid == 1:
10967
        if ftype == TType.I64:
10968
          self.entityId = iprot.readI64();
10969
        else:
10970
          iprot.skip(ftype)
10971
      elif fid == 2:
10972
        if ftype == TType.I64:
10973
          self.category = iprot.readI64();
10974
        else:
10975
          iprot.skip(ftype)
10976
      elif fid == 3:
10977
        if ftype == TType.STRING:
10978
          self.brand = iprot.readString();
10979
        else:
10980
          iprot.skip(ftype)
10981
      elif fid == 4:
10982
        if ftype == TType.STRING:
10983
          self.modelName = iprot.readString();
10984
        else:
10985
          iprot.skip(ftype)
10986
      elif fid == 5:
10987
        if ftype == TType.STRING:
10988
          self.modelNumber = iprot.readString();
10989
        else:
10990
          iprot.skip(ftype)
9253 rajveer 10991
      elif fid == 6:
10992
        if ftype == TType.BOOL:
10993
          self.isAndroid = iprot.readBool();
10994
        else:
10995
          iprot.skip(ftype)
5944 mandeep.dh 10996
      else:
10997
        iprot.skip(ftype)
10998
      iprot.readFieldEnd()
10999
    iprot.readStructEnd()
11000
 
11001
  def write(self, oprot):
11002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11004
      return
11005
    oprot.writeStructBegin('markItemAsContentComplete_args')
11006
    if self.entityId is not None:
11007
      oprot.writeFieldBegin('entityId', TType.I64, 1)
11008
      oprot.writeI64(self.entityId)
11009
      oprot.writeFieldEnd()
11010
    if self.category is not None:
11011
      oprot.writeFieldBegin('category', TType.I64, 2)
11012
      oprot.writeI64(self.category)
11013
      oprot.writeFieldEnd()
11014
    if self.brand is not None:
11015
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11016
      oprot.writeString(self.brand)
11017
      oprot.writeFieldEnd()
11018
    if self.modelName is not None:
11019
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
11020
      oprot.writeString(self.modelName)
11021
      oprot.writeFieldEnd()
11022
    if self.modelNumber is not None:
11023
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
11024
      oprot.writeString(self.modelNumber)
11025
      oprot.writeFieldEnd()
9253 rajveer 11026
    if self.isAndroid is not None:
11027
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
11028
      oprot.writeBool(self.isAndroid)
11029
      oprot.writeFieldEnd()
5944 mandeep.dh 11030
    oprot.writeFieldStop()
11031
    oprot.writeStructEnd()
11032
 
11033
  def validate(self):
11034
    return
11035
 
11036
 
11037
  def __repr__(self):
11038
    L = ['%s=%r' % (key, value)
11039
      for key, value in self.__dict__.iteritems()]
11040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11041
 
11042
  def __eq__(self, other):
11043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11044
 
11045
  def __ne__(self, other):
11046
    return not (self == other)
11047
 
11048
class markItemAsContentComplete_result:
11049
  """
11050
  Attributes:
11051
   - success
11052
   - cex
11053
  """
11054
 
11055
  thrift_spec = (
11056
    (0, TType.BOOL, 'success', None, None, ), # 0
11057
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11058
  )
11059
 
11060
  def __init__(self, success=None, cex=None,):
11061
    self.success = success
11062
    self.cex = cex
11063
 
11064
  def read(self, iprot):
11065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11067
      return
11068
    iprot.readStructBegin()
11069
    while True:
11070
      (fname, ftype, fid) = iprot.readFieldBegin()
11071
      if ftype == TType.STOP:
11072
        break
11073
      if fid == 0:
11074
        if ftype == TType.BOOL:
11075
          self.success = iprot.readBool();
11076
        else:
11077
          iprot.skip(ftype)
11078
      elif fid == 1:
11079
        if ftype == TType.STRUCT:
11080
          self.cex = CatalogServiceException()
11081
          self.cex.read(iprot)
11082
        else:
11083
          iprot.skip(ftype)
11084
      else:
11085
        iprot.skip(ftype)
11086
      iprot.readFieldEnd()
11087
    iprot.readStructEnd()
11088
 
11089
  def write(self, oprot):
11090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11092
      return
11093
    oprot.writeStructBegin('markItemAsContentComplete_result')
11094
    if self.success is not None:
11095
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11096
      oprot.writeBool(self.success)
11097
      oprot.writeFieldEnd()
11098
    if self.cex is not None:
11099
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11100
      self.cex.write(oprot)
11101
      oprot.writeFieldEnd()
11102
    oprot.writeFieldStop()
11103
    oprot.writeStructEnd()
11104
 
11105
  def validate(self):
11106
    return
11107
 
11108
 
11109
  def __repr__(self):
11110
    L = ['%s=%r' % (key, value)
11111
      for key, value in self.__dict__.iteritems()]
11112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11113
 
11114
  def __eq__(self, other):
11115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11116
 
11117
  def __ne__(self, other):
11118
    return not (self == other)
11119
 
12567 amit.gupta 11120
class getVatRates_args:
11121
  """
11122
  Attributes:
11123
   - itemId
11124
   - categoryId
11125
  """
11126
 
11127
  thrift_spec = (
11128
    None, # 0
11129
    (1, TType.I64, 'itemId', None, None, ), # 1
11130
    (2, TType.I64, 'categoryId', None, None, ), # 2
11131
  )
11132
 
11133
  def __init__(self, itemId=None, categoryId=None,):
11134
    self.itemId = itemId
11135
    self.categoryId = categoryId
11136
 
11137
  def read(self, iprot):
11138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11140
      return
11141
    iprot.readStructBegin()
11142
    while True:
11143
      (fname, ftype, fid) = iprot.readFieldBegin()
11144
      if ftype == TType.STOP:
11145
        break
11146
      if fid == 1:
11147
        if ftype == TType.I64:
11148
          self.itemId = iprot.readI64();
11149
        else:
11150
          iprot.skip(ftype)
11151
      elif fid == 2:
11152
        if ftype == TType.I64:
11153
          self.categoryId = iprot.readI64();
11154
        else:
11155
          iprot.skip(ftype)
11156
      else:
11157
        iprot.skip(ftype)
11158
      iprot.readFieldEnd()
11159
    iprot.readStructEnd()
11160
 
11161
  def write(self, oprot):
11162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11164
      return
11165
    oprot.writeStructBegin('getVatRates_args')
11166
    if self.itemId is not None:
11167
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11168
      oprot.writeI64(self.itemId)
11169
      oprot.writeFieldEnd()
11170
    if self.categoryId is not None:
11171
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11172
      oprot.writeI64(self.categoryId)
11173
      oprot.writeFieldEnd()
11174
    oprot.writeFieldStop()
11175
    oprot.writeStructEnd()
11176
 
11177
  def validate(self):
11178
    return
11179
 
11180
 
11181
  def __repr__(self):
11182
    L = ['%s=%r' % (key, value)
11183
      for key, value in self.__dict__.iteritems()]
11184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11185
 
11186
  def __eq__(self, other):
11187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11188
 
11189
  def __ne__(self, other):
11190
    return not (self == other)
11191
 
11192
class getVatRates_result:
11193
  """
11194
  Attributes:
11195
   - success
11196
   - cex
11197
  """
11198
 
11199
  thrift_spec = (
11200
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11201
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11202
  )
11203
 
11204
  def __init__(self, success=None, cex=None,):
11205
    self.success = success
11206
    self.cex = cex
11207
 
11208
  def read(self, iprot):
11209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11211
      return
11212
    iprot.readStructBegin()
11213
    while True:
11214
      (fname, ftype, fid) = iprot.readFieldBegin()
11215
      if ftype == TType.STOP:
11216
        break
11217
      if fid == 0:
11218
        if ftype == TType.MAP:
11219
          self.success = {}
11220
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
11221
          for _i78 in xrange(_size74):
11222
            _key79 = iprot.readI64();
11223
            _val80 = iprot.readDouble();
11224
            self.success[_key79] = _val80
11225
          iprot.readMapEnd()
11226
        else:
11227
          iprot.skip(ftype)
11228
      elif fid == 1:
11229
        if ftype == TType.STRUCT:
11230
          self.cex = CatalogServiceException()
11231
          self.cex.read(iprot)
11232
        else:
11233
          iprot.skip(ftype)
11234
      else:
11235
        iprot.skip(ftype)
11236
      iprot.readFieldEnd()
11237
    iprot.readStructEnd()
11238
 
11239
  def write(self, oprot):
11240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11242
      return
11243
    oprot.writeStructBegin('getVatRates_result')
11244
    if self.success is not None:
11245
      oprot.writeFieldBegin('success', TType.MAP, 0)
11246
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
11247
      for kiter81,viter82 in self.success.items():
11248
        oprot.writeI64(kiter81)
11249
        oprot.writeDouble(viter82)
11250
      oprot.writeMapEnd()
11251
      oprot.writeFieldEnd()
11252
    if self.cex is not None:
11253
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11254
      self.cex.write(oprot)
11255
      oprot.writeFieldEnd()
11256
    oprot.writeFieldStop()
11257
    oprot.writeStructEnd()
11258
 
11259
  def validate(self):
11260
    return
11261
 
11262
 
11263
  def __repr__(self):
11264
    L = ['%s=%r' % (key, value)
11265
      for key, value in self.__dict__.iteritems()]
11266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11267
 
11268
  def __eq__(self, other):
11269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11270
 
11271
  def __ne__(self, other):
11272
    return not (self == other)
11273
 
5944 mandeep.dh 11274
class getAllItemsInRange_args:
11275
  """
11276
  Attributes:
11277
   - offset
11278
   - limit
11279
  """
11280
 
11281
  thrift_spec = (
11282
    None, # 0
11283
    (1, TType.I64, 'offset', None, None, ), # 1
11284
    (2, TType.I64, 'limit', None, None, ), # 2
11285
  )
11286
 
11287
  def __init__(self, offset=None, limit=None,):
11288
    self.offset = offset
11289
    self.limit = limit
11290
 
11291
  def read(self, iprot):
11292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11294
      return
11295
    iprot.readStructBegin()
11296
    while True:
11297
      (fname, ftype, fid) = iprot.readFieldBegin()
11298
      if ftype == TType.STOP:
11299
        break
11300
      if fid == 1:
11301
        if ftype == TType.I64:
11302
          self.offset = iprot.readI64();
11303
        else:
11304
          iprot.skip(ftype)
11305
      elif fid == 2:
11306
        if ftype == TType.I64:
11307
          self.limit = iprot.readI64();
11308
        else:
11309
          iprot.skip(ftype)
11310
      else:
11311
        iprot.skip(ftype)
11312
      iprot.readFieldEnd()
11313
    iprot.readStructEnd()
11314
 
11315
  def write(self, oprot):
11316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11318
      return
11319
    oprot.writeStructBegin('getAllItemsInRange_args')
11320
    if self.offset is not None:
11321
      oprot.writeFieldBegin('offset', TType.I64, 1)
11322
      oprot.writeI64(self.offset)
11323
      oprot.writeFieldEnd()
11324
    if self.limit is not None:
11325
      oprot.writeFieldBegin('limit', TType.I64, 2)
11326
      oprot.writeI64(self.limit)
11327
      oprot.writeFieldEnd()
11328
    oprot.writeFieldStop()
11329
    oprot.writeStructEnd()
11330
 
11331
  def validate(self):
11332
    return
11333
 
11334
 
11335
  def __repr__(self):
11336
    L = ['%s=%r' % (key, value)
11337
      for key, value in self.__dict__.iteritems()]
11338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11339
 
11340
  def __eq__(self, other):
11341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11342
 
11343
  def __ne__(self, other):
11344
    return not (self == other)
11345
 
11346
class getAllItemsInRange_result:
11347
  """
11348
  Attributes:
11349
   - success
11350
   - cex
11351
  """
11352
 
11353
  thrift_spec = (
11354
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11355
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11356
  )
11357
 
11358
  def __init__(self, success=None, cex=None,):
11359
    self.success = success
11360
    self.cex = cex
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 == 0:
11372
        if ftype == TType.LIST:
11373
          self.success = []
12567 amit.gupta 11374
          (_etype86, _size83) = iprot.readListBegin()
11375
          for _i87 in xrange(_size83):
11376
            _elem88 = Item()
11377
            _elem88.read(iprot)
11378
            self.success.append(_elem88)
5944 mandeep.dh 11379
          iprot.readListEnd()
11380
        else:
11381
          iprot.skip(ftype)
11382
      elif fid == 1:
11383
        if ftype == TType.STRUCT:
11384
          self.cex = CatalogServiceException()
11385
          self.cex.read(iprot)
11386
        else:
11387
          iprot.skip(ftype)
11388
      else:
11389
        iprot.skip(ftype)
11390
      iprot.readFieldEnd()
11391
    iprot.readStructEnd()
11392
 
11393
  def write(self, oprot):
11394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11396
      return
11397
    oprot.writeStructBegin('getAllItemsInRange_result')
11398
    if self.success is not None:
11399
      oprot.writeFieldBegin('success', TType.LIST, 0)
11400
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11401
      for iter89 in self.success:
11402
        iter89.write(oprot)
5944 mandeep.dh 11403
      oprot.writeListEnd()
11404
      oprot.writeFieldEnd()
11405
    if self.cex is not None:
11406
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11407
      self.cex.write(oprot)
11408
      oprot.writeFieldEnd()
11409
    oprot.writeFieldStop()
11410
    oprot.writeStructEnd()
11411
 
11412
  def validate(self):
11413
    return
11414
 
11415
 
11416
  def __repr__(self):
11417
    L = ['%s=%r' % (key, value)
11418
      for key, value in self.__dict__.iteritems()]
11419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11420
 
11421
  def __eq__(self, other):
11422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11423
 
11424
  def __ne__(self, other):
11425
    return not (self == other)
11426
 
11427
class getAllItemsByStatusInRange_args:
11428
  """
11429
  Attributes:
11430
   - itemStatus
11431
   - offset
11432
   - limit
11433
  """
11434
 
11435
  thrift_spec = (
11436
    None, # 0
11437
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11438
    (2, TType.I64, 'offset', None, None, ), # 2
11439
    (3, TType.I64, 'limit', None, None, ), # 3
11440
  )
11441
 
11442
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11443
    self.itemStatus = itemStatus
11444
    self.offset = offset
11445
    self.limit = limit
11446
 
11447
  def read(self, iprot):
11448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11450
      return
11451
    iprot.readStructBegin()
11452
    while True:
11453
      (fname, ftype, fid) = iprot.readFieldBegin()
11454
      if ftype == TType.STOP:
11455
        break
11456
      if fid == 1:
11457
        if ftype == TType.I32:
11458
          self.itemStatus = iprot.readI32();
11459
        else:
11460
          iprot.skip(ftype)
11461
      elif fid == 2:
11462
        if ftype == TType.I64:
11463
          self.offset = iprot.readI64();
11464
        else:
11465
          iprot.skip(ftype)
11466
      elif fid == 3:
11467
        if ftype == TType.I64:
11468
          self.limit = iprot.readI64();
11469
        else:
11470
          iprot.skip(ftype)
11471
      else:
11472
        iprot.skip(ftype)
11473
      iprot.readFieldEnd()
11474
    iprot.readStructEnd()
11475
 
11476
  def write(self, oprot):
11477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11479
      return
11480
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11481
    if self.itemStatus is not None:
11482
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11483
      oprot.writeI32(self.itemStatus)
11484
      oprot.writeFieldEnd()
11485
    if self.offset is not None:
11486
      oprot.writeFieldBegin('offset', TType.I64, 2)
11487
      oprot.writeI64(self.offset)
11488
      oprot.writeFieldEnd()
11489
    if self.limit is not None:
11490
      oprot.writeFieldBegin('limit', TType.I64, 3)
11491
      oprot.writeI64(self.limit)
11492
      oprot.writeFieldEnd()
11493
    oprot.writeFieldStop()
11494
    oprot.writeStructEnd()
11495
 
11496
  def validate(self):
11497
    return
11498
 
11499
 
11500
  def __repr__(self):
11501
    L = ['%s=%r' % (key, value)
11502
      for key, value in self.__dict__.iteritems()]
11503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11504
 
11505
  def __eq__(self, other):
11506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11507
 
11508
  def __ne__(self, other):
11509
    return not (self == other)
11510
 
11511
class getAllItemsByStatusInRange_result:
11512
  """
11513
  Attributes:
11514
   - success
11515
   - cex
11516
  """
11517
 
11518
  thrift_spec = (
11519
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11520
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11521
  )
11522
 
11523
  def __init__(self, success=None, cex=None,):
11524
    self.success = success
11525
    self.cex = cex
11526
 
11527
  def read(self, iprot):
11528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11530
      return
11531
    iprot.readStructBegin()
11532
    while True:
11533
      (fname, ftype, fid) = iprot.readFieldBegin()
11534
      if ftype == TType.STOP:
11535
        break
11536
      if fid == 0:
11537
        if ftype == TType.LIST:
11538
          self.success = []
12567 amit.gupta 11539
          (_etype93, _size90) = iprot.readListBegin()
11540
          for _i94 in xrange(_size90):
11541
            _elem95 = Item()
11542
            _elem95.read(iprot)
11543
            self.success.append(_elem95)
5944 mandeep.dh 11544
          iprot.readListEnd()
11545
        else:
11546
          iprot.skip(ftype)
11547
      elif fid == 1:
11548
        if ftype == TType.STRUCT:
11549
          self.cex = CatalogServiceException()
11550
          self.cex.read(iprot)
11551
        else:
11552
          iprot.skip(ftype)
11553
      else:
11554
        iprot.skip(ftype)
11555
      iprot.readFieldEnd()
11556
    iprot.readStructEnd()
11557
 
11558
  def write(self, oprot):
11559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11561
      return
11562
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11563
    if self.success is not None:
11564
      oprot.writeFieldBegin('success', TType.LIST, 0)
11565
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11566
      for iter96 in self.success:
11567
        iter96.write(oprot)
5944 mandeep.dh 11568
      oprot.writeListEnd()
11569
      oprot.writeFieldEnd()
11570
    if self.cex is not None:
11571
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11572
      self.cex.write(oprot)
11573
      oprot.writeFieldEnd()
11574
    oprot.writeFieldStop()
11575
    oprot.writeStructEnd()
11576
 
11577
  def validate(self):
11578
    return
11579
 
11580
 
11581
  def __repr__(self):
11582
    L = ['%s=%r' % (key, value)
11583
      for key, value in self.__dict__.iteritems()]
11584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11585
 
11586
  def __eq__(self, other):
11587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11588
 
11589
  def __ne__(self, other):
11590
    return not (self == other)
11591
 
11592
class getItemCountByStatus_args:
11593
  """
11594
  Attributes:
11595
   - useStatus
11596
   - itemStatus
11597
  """
11598
 
11599
  thrift_spec = (
11600
    None, # 0
11601
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11602
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11603
  )
11604
 
11605
  def __init__(self, useStatus=None, itemStatus=None,):
11606
    self.useStatus = useStatus
11607
    self.itemStatus = itemStatus
11608
 
11609
  def read(self, iprot):
11610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11612
      return
11613
    iprot.readStructBegin()
11614
    while True:
11615
      (fname, ftype, fid) = iprot.readFieldBegin()
11616
      if ftype == TType.STOP:
11617
        break
11618
      if fid == 1:
11619
        if ftype == TType.BOOL:
11620
          self.useStatus = iprot.readBool();
11621
        else:
11622
          iprot.skip(ftype)
11623
      elif fid == 2:
11624
        if ftype == TType.I32:
11625
          self.itemStatus = iprot.readI32();
11626
        else:
11627
          iprot.skip(ftype)
11628
      else:
11629
        iprot.skip(ftype)
11630
      iprot.readFieldEnd()
11631
    iprot.readStructEnd()
11632
 
11633
  def write(self, oprot):
11634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11636
      return
11637
    oprot.writeStructBegin('getItemCountByStatus_args')
11638
    if self.useStatus is not None:
11639
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11640
      oprot.writeBool(self.useStatus)
11641
      oprot.writeFieldEnd()
11642
    if self.itemStatus is not None:
11643
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11644
      oprot.writeI32(self.itemStatus)
11645
      oprot.writeFieldEnd()
11646
    oprot.writeFieldStop()
11647
    oprot.writeStructEnd()
11648
 
11649
  def validate(self):
11650
    return
11651
 
11652
 
11653
  def __repr__(self):
11654
    L = ['%s=%r' % (key, value)
11655
      for key, value in self.__dict__.iteritems()]
11656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11657
 
11658
  def __eq__(self, other):
11659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11660
 
11661
  def __ne__(self, other):
11662
    return not (self == other)
11663
 
11664
class getItemCountByStatus_result:
11665
  """
11666
  Attributes:
11667
   - success
11668
  """
11669
 
11670
  thrift_spec = (
11671
    (0, TType.I32, 'success', None, None, ), # 0
11672
  )
11673
 
11674
  def __init__(self, success=None,):
11675
    self.success = success
11676
 
11677
  def read(self, iprot):
11678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11680
      return
11681
    iprot.readStructBegin()
11682
    while True:
11683
      (fname, ftype, fid) = iprot.readFieldBegin()
11684
      if ftype == TType.STOP:
11685
        break
11686
      if fid == 0:
11687
        if ftype == TType.I32:
11688
          self.success = iprot.readI32();
11689
        else:
11690
          iprot.skip(ftype)
11691
      else:
11692
        iprot.skip(ftype)
11693
      iprot.readFieldEnd()
11694
    iprot.readStructEnd()
11695
 
11696
  def write(self, oprot):
11697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11699
      return
11700
    oprot.writeStructBegin('getItemCountByStatus_result')
11701
    if self.success is not None:
11702
      oprot.writeFieldBegin('success', TType.I32, 0)
11703
      oprot.writeI32(self.success)
11704
      oprot.writeFieldEnd()
11705
    oprot.writeFieldStop()
11706
    oprot.writeStructEnd()
11707
 
11708
  def validate(self):
11709
    return
11710
 
11711
 
11712
  def __repr__(self):
11713
    L = ['%s=%r' % (key, value)
11714
      for key, value in self.__dict__.iteritems()]
11715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11716
 
11717
  def __eq__(self, other):
11718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11719
 
11720
  def __ne__(self, other):
11721
    return not (self == other)
11722
 
11723
class getBestSellers_args:
11724
 
11725
  thrift_spec = (
11726
  )
11727
 
11728
  def read(self, iprot):
11729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11731
      return
11732
    iprot.readStructBegin()
11733
    while True:
11734
      (fname, ftype, fid) = iprot.readFieldBegin()
11735
      if ftype == TType.STOP:
11736
        break
11737
      else:
11738
        iprot.skip(ftype)
11739
      iprot.readFieldEnd()
11740
    iprot.readStructEnd()
11741
 
11742
  def write(self, oprot):
11743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11745
      return
11746
    oprot.writeStructBegin('getBestSellers_args')
11747
    oprot.writeFieldStop()
11748
    oprot.writeStructEnd()
11749
 
11750
  def validate(self):
11751
    return
11752
 
11753
 
11754
  def __repr__(self):
11755
    L = ['%s=%r' % (key, value)
11756
      for key, value in self.__dict__.iteritems()]
11757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11758
 
11759
  def __eq__(self, other):
11760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11761
 
11762
  def __ne__(self, other):
11763
    return not (self == other)
11764
 
11765
class getBestSellers_result:
11766
  """
11767
  Attributes:
11768
   - success
11769
   - isex
11770
  """
11771
 
11772
  thrift_spec = (
11773
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11774
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11775
  )
11776
 
11777
  def __init__(self, success=None, isex=None,):
11778
    self.success = success
11779
    self.isex = isex
11780
 
11781
  def read(self, iprot):
11782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11784
      return
11785
    iprot.readStructBegin()
11786
    while True:
11787
      (fname, ftype, fid) = iprot.readFieldBegin()
11788
      if ftype == TType.STOP:
11789
        break
11790
      if fid == 0:
11791
        if ftype == TType.LIST:
11792
          self.success = []
12567 amit.gupta 11793
          (_etype100, _size97) = iprot.readListBegin()
11794
          for _i101 in xrange(_size97):
11795
            _elem102 = Item()
11796
            _elem102.read(iprot)
11797
            self.success.append(_elem102)
5944 mandeep.dh 11798
          iprot.readListEnd()
11799
        else:
11800
          iprot.skip(ftype)
11801
      elif fid == 1:
11802
        if ftype == TType.STRUCT:
11803
          self.isex = CatalogServiceException()
11804
          self.isex.read(iprot)
11805
        else:
11806
          iprot.skip(ftype)
11807
      else:
11808
        iprot.skip(ftype)
11809
      iprot.readFieldEnd()
11810
    iprot.readStructEnd()
11811
 
11812
  def write(self, oprot):
11813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11815
      return
11816
    oprot.writeStructBegin('getBestSellers_result')
11817
    if self.success is not None:
11818
      oprot.writeFieldBegin('success', TType.LIST, 0)
11819
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11820
      for iter103 in self.success:
11821
        iter103.write(oprot)
5944 mandeep.dh 11822
      oprot.writeListEnd()
11823
      oprot.writeFieldEnd()
11824
    if self.isex is not None:
11825
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11826
      self.isex.write(oprot)
11827
      oprot.writeFieldEnd()
11828
    oprot.writeFieldStop()
11829
    oprot.writeStructEnd()
11830
 
11831
  def validate(self):
11832
    return
11833
 
11834
 
11835
  def __repr__(self):
11836
    L = ['%s=%r' % (key, value)
11837
      for key, value in self.__dict__.iteritems()]
11838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11839
 
11840
  def __eq__(self, other):
11841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11842
 
11843
  def __ne__(self, other):
11844
    return not (self == other)
11845
 
11846
class getBestSellersCatalogIds_args:
11847
  """
11848
  Attributes:
11849
   - beginIndex
11850
   - totalItems
11851
   - brand
11852
   - category
11853
  """
11854
 
11855
  thrift_spec = (
11856
    None, # 0
11857
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11858
    (2, TType.I64, 'totalItems', None, None, ), # 2
11859
    (3, TType.STRING, 'brand', None, None, ), # 3
11860
    (4, TType.I64, 'category', None, None, ), # 4
11861
  )
11862
 
11863
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11864
    self.beginIndex = beginIndex
11865
    self.totalItems = totalItems
11866
    self.brand = brand
11867
    self.category = category
11868
 
11869
  def read(self, iprot):
11870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11872
      return
11873
    iprot.readStructBegin()
11874
    while True:
11875
      (fname, ftype, fid) = iprot.readFieldBegin()
11876
      if ftype == TType.STOP:
11877
        break
11878
      if fid == 1:
11879
        if ftype == TType.I64:
11880
          self.beginIndex = iprot.readI64();
11881
        else:
11882
          iprot.skip(ftype)
11883
      elif fid == 2:
11884
        if ftype == TType.I64:
11885
          self.totalItems = iprot.readI64();
11886
        else:
11887
          iprot.skip(ftype)
11888
      elif fid == 3:
11889
        if ftype == TType.STRING:
11890
          self.brand = iprot.readString();
11891
        else:
11892
          iprot.skip(ftype)
11893
      elif fid == 4:
11894
        if ftype == TType.I64:
11895
          self.category = iprot.readI64();
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_args')
11908
    if self.beginIndex is not None:
11909
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11910
      oprot.writeI64(self.beginIndex)
11911
      oprot.writeFieldEnd()
11912
    if self.totalItems is not None:
11913
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11914
      oprot.writeI64(self.totalItems)
11915
      oprot.writeFieldEnd()
11916
    if self.brand is not None:
11917
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11918
      oprot.writeString(self.brand)
11919
      oprot.writeFieldEnd()
11920
    if self.category is not None:
11921
      oprot.writeFieldBegin('category', TType.I64, 4)
11922
      oprot.writeI64(self.category)
11923
      oprot.writeFieldEnd()
11924
    oprot.writeFieldStop()
11925
    oprot.writeStructEnd()
11926
 
11927
  def validate(self):
11928
    return
11929
 
11930
 
11931
  def __repr__(self):
11932
    L = ['%s=%r' % (key, value)
11933
      for key, value in self.__dict__.iteritems()]
11934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11935
 
11936
  def __eq__(self, other):
11937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11938
 
11939
  def __ne__(self, other):
11940
    return not (self == other)
11941
 
11942
class getBestSellersCatalogIds_result:
11943
  """
11944
  Attributes:
11945
   - success
11946
   - cex
11947
  """
11948
 
11949
  thrift_spec = (
11950
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11951
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11952
  )
11953
 
11954
  def __init__(self, success=None, cex=None,):
11955
    self.success = success
11956
    self.cex = cex
11957
 
11958
  def read(self, iprot):
11959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11961
      return
11962
    iprot.readStructBegin()
11963
    while True:
11964
      (fname, ftype, fid) = iprot.readFieldBegin()
11965
      if ftype == TType.STOP:
11966
        break
11967
      if fid == 0:
11968
        if ftype == TType.LIST:
11969
          self.success = []
12567 amit.gupta 11970
          (_etype107, _size104) = iprot.readListBegin()
11971
          for _i108 in xrange(_size104):
11972
            _elem109 = iprot.readI64();
11973
            self.success.append(_elem109)
5944 mandeep.dh 11974
          iprot.readListEnd()
11975
        else:
11976
          iprot.skip(ftype)
11977
      elif fid == 1:
11978
        if ftype == TType.STRUCT:
11979
          self.cex = CatalogServiceException()
11980
          self.cex.read(iprot)
11981
        else:
11982
          iprot.skip(ftype)
11983
      else:
11984
        iprot.skip(ftype)
11985
      iprot.readFieldEnd()
11986
    iprot.readStructEnd()
11987
 
11988
  def write(self, oprot):
11989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11991
      return
11992
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
11993
    if self.success is not None:
11994
      oprot.writeFieldBegin('success', TType.LIST, 0)
11995
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 11996
      for iter110 in self.success:
11997
        oprot.writeI64(iter110)
5944 mandeep.dh 11998
      oprot.writeListEnd()
11999
      oprot.writeFieldEnd()
12000
    if self.cex is not None:
12001
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12002
      self.cex.write(oprot)
12003
      oprot.writeFieldEnd()
12004
    oprot.writeFieldStop()
12005
    oprot.writeStructEnd()
12006
 
12007
  def validate(self):
12008
    return
12009
 
12010
 
12011
  def __repr__(self):
12012
    L = ['%s=%r' % (key, value)
12013
      for key, value in self.__dict__.iteritems()]
12014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12015
 
12016
  def __eq__(self, other):
12017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12018
 
12019
  def __ne__(self, other):
12020
    return not (self == other)
12021
 
12022
class getBestSellersCount_args:
12023
 
12024
  thrift_spec = (
12025
  )
12026
 
12027
  def read(self, iprot):
12028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12030
      return
12031
    iprot.readStructBegin()
12032
    while True:
12033
      (fname, ftype, fid) = iprot.readFieldBegin()
12034
      if ftype == TType.STOP:
12035
        break
12036
      else:
12037
        iprot.skip(ftype)
12038
      iprot.readFieldEnd()
12039
    iprot.readStructEnd()
12040
 
12041
  def write(self, oprot):
12042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12044
      return
12045
    oprot.writeStructBegin('getBestSellersCount_args')
12046
    oprot.writeFieldStop()
12047
    oprot.writeStructEnd()
12048
 
12049
  def validate(self):
12050
    return
12051
 
12052
 
12053
  def __repr__(self):
12054
    L = ['%s=%r' % (key, value)
12055
      for key, value in self.__dict__.iteritems()]
12056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12057
 
12058
  def __eq__(self, other):
12059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12060
 
12061
  def __ne__(self, other):
12062
    return not (self == other)
12063
 
12064
class getBestSellersCount_result:
12065
  """
12066
  Attributes:
12067
   - success
12068
   - cex
12069
  """
12070
 
12071
  thrift_spec = (
12072
    (0, TType.I64, 'success', None, None, ), # 0
12073
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12074
  )
12075
 
12076
  def __init__(self, success=None, cex=None,):
12077
    self.success = success
12078
    self.cex = cex
12079
 
12080
  def read(self, iprot):
12081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12083
      return
12084
    iprot.readStructBegin()
12085
    while True:
12086
      (fname, ftype, fid) = iprot.readFieldBegin()
12087
      if ftype == TType.STOP:
12088
        break
12089
      if fid == 0:
12090
        if ftype == TType.I64:
12091
          self.success = iprot.readI64();
12092
        else:
12093
          iprot.skip(ftype)
12094
      elif fid == 1:
12095
        if ftype == TType.STRUCT:
12096
          self.cex = CatalogServiceException()
12097
          self.cex.read(iprot)
12098
        else:
12099
          iprot.skip(ftype)
12100
      else:
12101
        iprot.skip(ftype)
12102
      iprot.readFieldEnd()
12103
    iprot.readStructEnd()
12104
 
12105
  def write(self, oprot):
12106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12108
      return
12109
    oprot.writeStructBegin('getBestSellersCount_result')
12110
    if self.success is not None:
12111
      oprot.writeFieldBegin('success', TType.I64, 0)
12112
      oprot.writeI64(self.success)
12113
      oprot.writeFieldEnd()
12114
    if self.cex is not None:
12115
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12116
      self.cex.write(oprot)
12117
      oprot.writeFieldEnd()
12118
    oprot.writeFieldStop()
12119
    oprot.writeStructEnd()
12120
 
12121
  def validate(self):
12122
    return
12123
 
12124
 
12125
  def __repr__(self):
12126
    L = ['%s=%r' % (key, value)
12127
      for key, value in self.__dict__.iteritems()]
12128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12129
 
12130
  def __eq__(self, other):
12131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12132
 
12133
  def __ne__(self, other):
12134
    return not (self == other)
12135
 
12136
class getBestDeals_args:
12137
 
12138
  thrift_spec = (
12139
  )
12140
 
12141
  def read(self, iprot):
12142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12144
      return
12145
    iprot.readStructBegin()
12146
    while True:
12147
      (fname, ftype, fid) = iprot.readFieldBegin()
12148
      if ftype == TType.STOP:
12149
        break
12150
      else:
12151
        iprot.skip(ftype)
12152
      iprot.readFieldEnd()
12153
    iprot.readStructEnd()
12154
 
12155
  def write(self, oprot):
12156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12158
      return
12159
    oprot.writeStructBegin('getBestDeals_args')
12160
    oprot.writeFieldStop()
12161
    oprot.writeStructEnd()
12162
 
12163
  def validate(self):
12164
    return
12165
 
12166
 
12167
  def __repr__(self):
12168
    L = ['%s=%r' % (key, value)
12169
      for key, value in self.__dict__.iteritems()]
12170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12171
 
12172
  def __eq__(self, other):
12173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12174
 
12175
  def __ne__(self, other):
12176
    return not (self == other)
12177
 
12178
class getBestDeals_result:
12179
  """
12180
  Attributes:
12181
   - success
12182
   - isex
12183
  """
12184
 
12185
  thrift_spec = (
12186
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12187
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12188
  )
12189
 
12190
  def __init__(self, success=None, isex=None,):
12191
    self.success = success
12192
    self.isex = isex
12193
 
12194
  def read(self, iprot):
12195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12197
      return
12198
    iprot.readStructBegin()
12199
    while True:
12200
      (fname, ftype, fid) = iprot.readFieldBegin()
12201
      if ftype == TType.STOP:
12202
        break
12203
      if fid == 0:
12204
        if ftype == TType.LIST:
12205
          self.success = []
12567 amit.gupta 12206
          (_etype114, _size111) = iprot.readListBegin()
12207
          for _i115 in xrange(_size111):
12208
            _elem116 = Item()
12209
            _elem116.read(iprot)
12210
            self.success.append(_elem116)
5944 mandeep.dh 12211
          iprot.readListEnd()
12212
        else:
12213
          iprot.skip(ftype)
12214
      elif fid == 1:
12215
        if ftype == TType.STRUCT:
12216
          self.isex = CatalogServiceException()
12217
          self.isex.read(iprot)
12218
        else:
12219
          iprot.skip(ftype)
12220
      else:
12221
        iprot.skip(ftype)
12222
      iprot.readFieldEnd()
12223
    iprot.readStructEnd()
12224
 
12225
  def write(self, oprot):
12226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12228
      return
12229
    oprot.writeStructBegin('getBestDeals_result')
12230
    if self.success is not None:
12231
      oprot.writeFieldBegin('success', TType.LIST, 0)
12232
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12233
      for iter117 in self.success:
12234
        iter117.write(oprot)
5944 mandeep.dh 12235
      oprot.writeListEnd()
12236
      oprot.writeFieldEnd()
12237
    if self.isex is not None:
12238
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12239
      self.isex.write(oprot)
12240
      oprot.writeFieldEnd()
12241
    oprot.writeFieldStop()
12242
    oprot.writeStructEnd()
12243
 
12244
  def validate(self):
12245
    return
12246
 
12247
 
12248
  def __repr__(self):
12249
    L = ['%s=%r' % (key, value)
12250
      for key, value in self.__dict__.iteritems()]
12251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12252
 
12253
  def __eq__(self, other):
12254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12255
 
12256
  def __ne__(self, other):
12257
    return not (self == other)
12258
 
12259
class getBestDealsCatalogIds_args:
12260
  """
12261
  Attributes:
12262
   - beginIndex
12263
   - totalItems
12264
   - brand
12265
   - category
12266
  """
12267
 
12268
  thrift_spec = (
12269
    None, # 0
12270
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12271
    (2, TType.I64, 'totalItems', None, None, ), # 2
12272
    (3, TType.STRING, 'brand', None, None, ), # 3
12273
    (4, TType.I64, 'category', None, None, ), # 4
12274
  )
12275
 
12276
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12277
    self.beginIndex = beginIndex
12278
    self.totalItems = totalItems
12279
    self.brand = brand
12280
    self.category = category
12281
 
12282
  def read(self, iprot):
12283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12285
      return
12286
    iprot.readStructBegin()
12287
    while True:
12288
      (fname, ftype, fid) = iprot.readFieldBegin()
12289
      if ftype == TType.STOP:
12290
        break
12291
      if fid == 1:
12292
        if ftype == TType.I64:
12293
          self.beginIndex = iprot.readI64();
12294
        else:
12295
          iprot.skip(ftype)
12296
      elif fid == 2:
12297
        if ftype == TType.I64:
12298
          self.totalItems = iprot.readI64();
12299
        else:
12300
          iprot.skip(ftype)
12301
      elif fid == 3:
12302
        if ftype == TType.STRING:
12303
          self.brand = iprot.readString();
12304
        else:
12305
          iprot.skip(ftype)
12306
      elif fid == 4:
12307
        if ftype == TType.I64:
12308
          self.category = iprot.readI64();
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_args')
12321
    if self.beginIndex is not None:
12322
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12323
      oprot.writeI64(self.beginIndex)
12324
      oprot.writeFieldEnd()
12325
    if self.totalItems is not None:
12326
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12327
      oprot.writeI64(self.totalItems)
12328
      oprot.writeFieldEnd()
12329
    if self.brand is not None:
12330
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12331
      oprot.writeString(self.brand)
12332
      oprot.writeFieldEnd()
12333
    if self.category is not None:
12334
      oprot.writeFieldBegin('category', TType.I64, 4)
12335
      oprot.writeI64(self.category)
12336
      oprot.writeFieldEnd()
12337
    oprot.writeFieldStop()
12338
    oprot.writeStructEnd()
12339
 
12340
  def validate(self):
12341
    return
12342
 
12343
 
12344
  def __repr__(self):
12345
    L = ['%s=%r' % (key, value)
12346
      for key, value in self.__dict__.iteritems()]
12347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12348
 
12349
  def __eq__(self, other):
12350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12351
 
12352
  def __ne__(self, other):
12353
    return not (self == other)
12354
 
12355
class getBestDealsCatalogIds_result:
12356
  """
12357
  Attributes:
12358
   - success
12359
   - cex
12360
  """
12361
 
12362
  thrift_spec = (
12363
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12364
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12365
  )
12366
 
12367
  def __init__(self, success=None, cex=None,):
12368
    self.success = success
12369
    self.cex = cex
12370
 
12371
  def read(self, iprot):
12372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12374
      return
12375
    iprot.readStructBegin()
12376
    while True:
12377
      (fname, ftype, fid) = iprot.readFieldBegin()
12378
      if ftype == TType.STOP:
12379
        break
12380
      if fid == 0:
12381
        if ftype == TType.LIST:
12382
          self.success = []
12567 amit.gupta 12383
          (_etype121, _size118) = iprot.readListBegin()
12384
          for _i122 in xrange(_size118):
12385
            _elem123 = iprot.readI64();
12386
            self.success.append(_elem123)
5944 mandeep.dh 12387
          iprot.readListEnd()
12388
        else:
12389
          iprot.skip(ftype)
12390
      elif fid == 1:
12391
        if ftype == TType.STRUCT:
12392
          self.cex = CatalogServiceException()
12393
          self.cex.read(iprot)
12394
        else:
12395
          iprot.skip(ftype)
12396
      else:
12397
        iprot.skip(ftype)
12398
      iprot.readFieldEnd()
12399
    iprot.readStructEnd()
12400
 
12401
  def write(self, oprot):
12402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12404
      return
12405
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12406
    if self.success is not None:
12407
      oprot.writeFieldBegin('success', TType.LIST, 0)
12408
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12409
      for iter124 in self.success:
12410
        oprot.writeI64(iter124)
5944 mandeep.dh 12411
      oprot.writeListEnd()
12412
      oprot.writeFieldEnd()
12413
    if self.cex is not None:
12414
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12415
      self.cex.write(oprot)
12416
      oprot.writeFieldEnd()
12417
    oprot.writeFieldStop()
12418
    oprot.writeStructEnd()
12419
 
12420
  def validate(self):
12421
    return
12422
 
12423
 
12424
  def __repr__(self):
12425
    L = ['%s=%r' % (key, value)
12426
      for key, value in self.__dict__.iteritems()]
12427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12428
 
12429
  def __eq__(self, other):
12430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12431
 
12432
  def __ne__(self, other):
12433
    return not (self == other)
12434
 
12435
class getBestDealsCount_args:
12436
 
12437
  thrift_spec = (
12438
  )
12439
 
12440
  def read(self, iprot):
12441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12443
      return
12444
    iprot.readStructBegin()
12445
    while True:
12446
      (fname, ftype, fid) = iprot.readFieldBegin()
12447
      if ftype == TType.STOP:
12448
        break
12449
      else:
12450
        iprot.skip(ftype)
12451
      iprot.readFieldEnd()
12452
    iprot.readStructEnd()
12453
 
12454
  def write(self, oprot):
12455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12457
      return
12458
    oprot.writeStructBegin('getBestDealsCount_args')
12459
    oprot.writeFieldStop()
12460
    oprot.writeStructEnd()
12461
 
12462
  def validate(self):
12463
    return
12464
 
12465
 
12466
  def __repr__(self):
12467
    L = ['%s=%r' % (key, value)
12468
      for key, value in self.__dict__.iteritems()]
12469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12470
 
12471
  def __eq__(self, other):
12472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12473
 
12474
  def __ne__(self, other):
12475
    return not (self == other)
12476
 
12477
class getBestDealsCount_result:
12478
  """
12479
  Attributes:
12480
   - success
12481
   - cex
12482
  """
12483
 
12484
  thrift_spec = (
12485
    (0, TType.I64, 'success', None, None, ), # 0
12486
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12487
  )
12488
 
12489
  def __init__(self, success=None, cex=None,):
12490
    self.success = success
12491
    self.cex = cex
12492
 
12493
  def read(self, iprot):
12494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12496
      return
12497
    iprot.readStructBegin()
12498
    while True:
12499
      (fname, ftype, fid) = iprot.readFieldBegin()
12500
      if ftype == TType.STOP:
12501
        break
12502
      if fid == 0:
12503
        if ftype == TType.I64:
12504
          self.success = iprot.readI64();
12505
        else:
12506
          iprot.skip(ftype)
12507
      elif fid == 1:
12508
        if ftype == TType.STRUCT:
12509
          self.cex = CatalogServiceException()
12510
          self.cex.read(iprot)
12511
        else:
12512
          iprot.skip(ftype)
12513
      else:
12514
        iprot.skip(ftype)
12515
      iprot.readFieldEnd()
12516
    iprot.readStructEnd()
12517
 
12518
  def write(self, oprot):
12519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12521
      return
12522
    oprot.writeStructBegin('getBestDealsCount_result')
12523
    if self.success is not None:
12524
      oprot.writeFieldBegin('success', TType.I64, 0)
12525
      oprot.writeI64(self.success)
12526
      oprot.writeFieldEnd()
12527
    if self.cex is not None:
12528
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12529
      self.cex.write(oprot)
12530
      oprot.writeFieldEnd()
12531
    oprot.writeFieldStop()
12532
    oprot.writeStructEnd()
12533
 
12534
  def validate(self):
12535
    return
12536
 
12537
 
12538
  def __repr__(self):
12539
    L = ['%s=%r' % (key, value)
12540
      for key, value in self.__dict__.iteritems()]
12541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12542
 
12543
  def __eq__(self, other):
12544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12545
 
12546
  def __ne__(self, other):
12547
    return not (self == other)
12548
 
12549
class getComingSoon_args:
12550
 
12551
  thrift_spec = (
12552
  )
12553
 
12554
  def read(self, iprot):
12555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12557
      return
12558
    iprot.readStructBegin()
12559
    while True:
12560
      (fname, ftype, fid) = iprot.readFieldBegin()
12561
      if ftype == TType.STOP:
12562
        break
12563
      else:
12564
        iprot.skip(ftype)
12565
      iprot.readFieldEnd()
12566
    iprot.readStructEnd()
12567
 
12568
  def write(self, oprot):
12569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12571
      return
12572
    oprot.writeStructBegin('getComingSoon_args')
12573
    oprot.writeFieldStop()
12574
    oprot.writeStructEnd()
12575
 
12576
  def validate(self):
12577
    return
12578
 
12579
 
12580
  def __repr__(self):
12581
    L = ['%s=%r' % (key, value)
12582
      for key, value in self.__dict__.iteritems()]
12583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12584
 
12585
  def __eq__(self, other):
12586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12587
 
12588
  def __ne__(self, other):
12589
    return not (self == other)
12590
 
12591
class getComingSoon_result:
12592
  """
12593
  Attributes:
12594
   - success
12595
   - isex
12596
  """
12597
 
12598
  thrift_spec = (
12599
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12600
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12601
  )
12602
 
12603
  def __init__(self, success=None, isex=None,):
12604
    self.success = success
12605
    self.isex = isex
12606
 
12607
  def read(self, iprot):
12608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12610
      return
12611
    iprot.readStructBegin()
12612
    while True:
12613
      (fname, ftype, fid) = iprot.readFieldBegin()
12614
      if ftype == TType.STOP:
12615
        break
12616
      if fid == 0:
12617
        if ftype == TType.LIST:
12618
          self.success = []
12567 amit.gupta 12619
          (_etype128, _size125) = iprot.readListBegin()
12620
          for _i129 in xrange(_size125):
12621
            _elem130 = Item()
12622
            _elem130.read(iprot)
12623
            self.success.append(_elem130)
5944 mandeep.dh 12624
          iprot.readListEnd()
12625
        else:
12626
          iprot.skip(ftype)
12627
      elif fid == 1:
12628
        if ftype == TType.STRUCT:
12629
          self.isex = CatalogServiceException()
12630
          self.isex.read(iprot)
12631
        else:
12632
          iprot.skip(ftype)
12633
      else:
12634
        iprot.skip(ftype)
12635
      iprot.readFieldEnd()
12636
    iprot.readStructEnd()
12637
 
12638
  def write(self, oprot):
12639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12641
      return
12642
    oprot.writeStructBegin('getComingSoon_result')
12643
    if self.success is not None:
12644
      oprot.writeFieldBegin('success', TType.LIST, 0)
12645
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12646
      for iter131 in self.success:
12647
        iter131.write(oprot)
5944 mandeep.dh 12648
      oprot.writeListEnd()
12649
      oprot.writeFieldEnd()
12650
    if self.isex is not None:
12651
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12652
      self.isex.write(oprot)
12653
      oprot.writeFieldEnd()
12654
    oprot.writeFieldStop()
12655
    oprot.writeStructEnd()
12656
 
12657
  def validate(self):
12658
    return
12659
 
12660
 
12661
  def __repr__(self):
12662
    L = ['%s=%r' % (key, value)
12663
      for key, value in self.__dict__.iteritems()]
12664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12665
 
12666
  def __eq__(self, other):
12667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12668
 
12669
  def __ne__(self, other):
12670
    return not (self == other)
12671
 
12672
class getComingSoonCatalogIds_args:
12673
  """
12674
  Attributes:
12675
   - beginIndex
12676
   - totalItems
12677
   - brand
12678
   - category
12679
  """
12680
 
12681
  thrift_spec = (
12682
    None, # 0
12683
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12684
    (2, TType.I64, 'totalItems', None, None, ), # 2
12685
    (3, TType.STRING, 'brand', None, None, ), # 3
12686
    (4, TType.I64, 'category', None, None, ), # 4
12687
  )
12688
 
12689
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12690
    self.beginIndex = beginIndex
12691
    self.totalItems = totalItems
12692
    self.brand = brand
12693
    self.category = category
12694
 
12695
  def read(self, iprot):
12696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12698
      return
12699
    iprot.readStructBegin()
12700
    while True:
12701
      (fname, ftype, fid) = iprot.readFieldBegin()
12702
      if ftype == TType.STOP:
12703
        break
12704
      if fid == 1:
12705
        if ftype == TType.I64:
12706
          self.beginIndex = iprot.readI64();
12707
        else:
12708
          iprot.skip(ftype)
12709
      elif fid == 2:
12710
        if ftype == TType.I64:
12711
          self.totalItems = iprot.readI64();
12712
        else:
12713
          iprot.skip(ftype)
12714
      elif fid == 3:
12715
        if ftype == TType.STRING:
12716
          self.brand = iprot.readString();
12717
        else:
12718
          iprot.skip(ftype)
12719
      elif fid == 4:
12720
        if ftype == TType.I64:
12721
          self.category = iprot.readI64();
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_args')
12734
    if self.beginIndex is not None:
12735
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12736
      oprot.writeI64(self.beginIndex)
12737
      oprot.writeFieldEnd()
12738
    if self.totalItems is not None:
12739
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12740
      oprot.writeI64(self.totalItems)
12741
      oprot.writeFieldEnd()
12742
    if self.brand is not None:
12743
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12744
      oprot.writeString(self.brand)
12745
      oprot.writeFieldEnd()
12746
    if self.category is not None:
12747
      oprot.writeFieldBegin('category', TType.I64, 4)
12748
      oprot.writeI64(self.category)
12749
      oprot.writeFieldEnd()
12750
    oprot.writeFieldStop()
12751
    oprot.writeStructEnd()
12752
 
12753
  def validate(self):
12754
    return
12755
 
12756
 
12757
  def __repr__(self):
12758
    L = ['%s=%r' % (key, value)
12759
      for key, value in self.__dict__.iteritems()]
12760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12761
 
12762
  def __eq__(self, other):
12763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12764
 
12765
  def __ne__(self, other):
12766
    return not (self == other)
12767
 
12768
class getComingSoonCatalogIds_result:
12769
  """
12770
  Attributes:
12771
   - success
12772
   - cex
12773
  """
12774
 
12775
  thrift_spec = (
12776
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12777
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12778
  )
12779
 
12780
  def __init__(self, success=None, cex=None,):
12781
    self.success = success
12782
    self.cex = cex
12783
 
12784
  def read(self, iprot):
12785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12787
      return
12788
    iprot.readStructBegin()
12789
    while True:
12790
      (fname, ftype, fid) = iprot.readFieldBegin()
12791
      if ftype == TType.STOP:
12792
        break
12793
      if fid == 0:
12794
        if ftype == TType.LIST:
12795
          self.success = []
12567 amit.gupta 12796
          (_etype135, _size132) = iprot.readListBegin()
12797
          for _i136 in xrange(_size132):
12798
            _elem137 = iprot.readI64();
12799
            self.success.append(_elem137)
5944 mandeep.dh 12800
          iprot.readListEnd()
12801
        else:
12802
          iprot.skip(ftype)
12803
      elif fid == 1:
12804
        if ftype == TType.STRUCT:
12805
          self.cex = CatalogServiceException()
12806
          self.cex.read(iprot)
12807
        else:
12808
          iprot.skip(ftype)
12809
      else:
12810
        iprot.skip(ftype)
12811
      iprot.readFieldEnd()
12812
    iprot.readStructEnd()
12813
 
12814
  def write(self, oprot):
12815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12817
      return
12818
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
12819
    if self.success is not None:
12820
      oprot.writeFieldBegin('success', TType.LIST, 0)
12821
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12822
      for iter138 in self.success:
12823
        oprot.writeI64(iter138)
5944 mandeep.dh 12824
      oprot.writeListEnd()
12825
      oprot.writeFieldEnd()
12826
    if self.cex is not None:
12827
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12828
      self.cex.write(oprot)
12829
      oprot.writeFieldEnd()
12830
    oprot.writeFieldStop()
12831
    oprot.writeStructEnd()
12832
 
12833
  def validate(self):
12834
    return
12835
 
12836
 
12837
  def __repr__(self):
12838
    L = ['%s=%r' % (key, value)
12839
      for key, value in self.__dict__.iteritems()]
12840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12841
 
12842
  def __eq__(self, other):
12843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12844
 
12845
  def __ne__(self, other):
12846
    return not (self == other)
12847
 
12848
class getComingSoonCount_args:
12849
 
12850
  thrift_spec = (
12851
  )
12852
 
12853
  def read(self, iprot):
12854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12856
      return
12857
    iprot.readStructBegin()
12858
    while True:
12859
      (fname, ftype, fid) = iprot.readFieldBegin()
12860
      if ftype == TType.STOP:
12861
        break
12862
      else:
12863
        iprot.skip(ftype)
12864
      iprot.readFieldEnd()
12865
    iprot.readStructEnd()
12866
 
12867
  def write(self, oprot):
12868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12870
      return
12871
    oprot.writeStructBegin('getComingSoonCount_args')
12872
    oprot.writeFieldStop()
12873
    oprot.writeStructEnd()
12874
 
12875
  def validate(self):
12876
    return
12877
 
12878
 
12879
  def __repr__(self):
12880
    L = ['%s=%r' % (key, value)
12881
      for key, value in self.__dict__.iteritems()]
12882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12883
 
12884
  def __eq__(self, other):
12885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12886
 
12887
  def __ne__(self, other):
12888
    return not (self == other)
12889
 
12890
class getComingSoonCount_result:
12891
  """
12892
  Attributes:
12893
   - success
12894
   - cex
12895
  """
12896
 
12897
  thrift_spec = (
12898
    (0, TType.I64, 'success', None, None, ), # 0
12899
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12900
  )
12901
 
12902
  def __init__(self, success=None, cex=None,):
12903
    self.success = success
12904
    self.cex = cex
12905
 
12906
  def read(self, iprot):
12907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12909
      return
12910
    iprot.readStructBegin()
12911
    while True:
12912
      (fname, ftype, fid) = iprot.readFieldBegin()
12913
      if ftype == TType.STOP:
12914
        break
12915
      if fid == 0:
12916
        if ftype == TType.I64:
12917
          self.success = iprot.readI64();
12918
        else:
12919
          iprot.skip(ftype)
12920
      elif fid == 1:
12921
        if ftype == TType.STRUCT:
12922
          self.cex = CatalogServiceException()
12923
          self.cex.read(iprot)
12924
        else:
12925
          iprot.skip(ftype)
12926
      else:
12927
        iprot.skip(ftype)
12928
      iprot.readFieldEnd()
12929
    iprot.readStructEnd()
12930
 
12931
  def write(self, oprot):
12932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12934
      return
12935
    oprot.writeStructBegin('getComingSoonCount_result')
12936
    if self.success is not None:
12937
      oprot.writeFieldBegin('success', TType.I64, 0)
12938
      oprot.writeI64(self.success)
12939
      oprot.writeFieldEnd()
12940
    if self.cex is not None:
12941
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12942
      self.cex.write(oprot)
12943
      oprot.writeFieldEnd()
12944
    oprot.writeFieldStop()
12945
    oprot.writeStructEnd()
12946
 
12947
  def validate(self):
12948
    return
12949
 
12950
 
12951
  def __repr__(self):
12952
    L = ['%s=%r' % (key, value)
12953
      for key, value in self.__dict__.iteritems()]
12954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12955
 
12956
  def __eq__(self, other):
12957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12958
 
12959
  def __ne__(self, other):
12960
    return not (self == other)
12961
 
12962
class getLatestArrivals_args:
12963
 
12964
  thrift_spec = (
12965
  )
12966
 
12967
  def read(self, iprot):
12968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12970
      return
12971
    iprot.readStructBegin()
12972
    while True:
12973
      (fname, ftype, fid) = iprot.readFieldBegin()
12974
      if ftype == TType.STOP:
12975
        break
12976
      else:
12977
        iprot.skip(ftype)
12978
      iprot.readFieldEnd()
12979
    iprot.readStructEnd()
12980
 
12981
  def write(self, oprot):
12982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12984
      return
12985
    oprot.writeStructBegin('getLatestArrivals_args')
12986
    oprot.writeFieldStop()
12987
    oprot.writeStructEnd()
12988
 
12989
  def validate(self):
12990
    return
12991
 
12992
 
12993
  def __repr__(self):
12994
    L = ['%s=%r' % (key, value)
12995
      for key, value in self.__dict__.iteritems()]
12996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12997
 
12998
  def __eq__(self, other):
12999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13000
 
13001
  def __ne__(self, other):
13002
    return not (self == other)
13003
 
13004
class getLatestArrivals_result:
13005
  """
13006
  Attributes:
13007
   - success
13008
   - isex
13009
  """
13010
 
13011
  thrift_spec = (
13012
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13013
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13014
  )
13015
 
13016
  def __init__(self, success=None, isex=None,):
13017
    self.success = success
13018
    self.isex = isex
13019
 
13020
  def read(self, iprot):
13021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13023
      return
13024
    iprot.readStructBegin()
13025
    while True:
13026
      (fname, ftype, fid) = iprot.readFieldBegin()
13027
      if ftype == TType.STOP:
13028
        break
13029
      if fid == 0:
13030
        if ftype == TType.LIST:
13031
          self.success = []
12567 amit.gupta 13032
          (_etype142, _size139) = iprot.readListBegin()
13033
          for _i143 in xrange(_size139):
13034
            _elem144 = Item()
13035
            _elem144.read(iprot)
13036
            self.success.append(_elem144)
5944 mandeep.dh 13037
          iprot.readListEnd()
13038
        else:
13039
          iprot.skip(ftype)
13040
      elif fid == 1:
13041
        if ftype == TType.STRUCT:
13042
          self.isex = CatalogServiceException()
13043
          self.isex.read(iprot)
13044
        else:
13045
          iprot.skip(ftype)
13046
      else:
13047
        iprot.skip(ftype)
13048
      iprot.readFieldEnd()
13049
    iprot.readStructEnd()
13050
 
13051
  def write(self, oprot):
13052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13054
      return
13055
    oprot.writeStructBegin('getLatestArrivals_result')
13056
    if self.success is not None:
13057
      oprot.writeFieldBegin('success', TType.LIST, 0)
13058
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13059
      for iter145 in self.success:
13060
        iter145.write(oprot)
5944 mandeep.dh 13061
      oprot.writeListEnd()
13062
      oprot.writeFieldEnd()
13063
    if self.isex is not None:
13064
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
13065
      self.isex.write(oprot)
13066
      oprot.writeFieldEnd()
13067
    oprot.writeFieldStop()
13068
    oprot.writeStructEnd()
13069
 
13070
  def validate(self):
13071
    return
13072
 
13073
 
13074
  def __repr__(self):
13075
    L = ['%s=%r' % (key, value)
13076
      for key, value in self.__dict__.iteritems()]
13077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13078
 
13079
  def __eq__(self, other):
13080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13081
 
13082
  def __ne__(self, other):
13083
    return not (self == other)
13084
 
13085
class getLatestArrivalsCatalogIds_args:
13086
  """
13087
  Attributes:
13088
   - beginIndex
13089
   - totalItems
13090
   - brand
13091
   - categories
13092
  """
13093
 
13094
  thrift_spec = (
13095
    None, # 0
13096
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13097
    (2, TType.I64, 'totalItems', None, None, ), # 2
13098
    (3, TType.STRING, 'brand', None, None, ), # 3
13099
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
13100
  )
13101
 
13102
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
13103
    self.beginIndex = beginIndex
13104
    self.totalItems = totalItems
13105
    self.brand = brand
13106
    self.categories = categories
13107
 
13108
  def read(self, iprot):
13109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13111
      return
13112
    iprot.readStructBegin()
13113
    while True:
13114
      (fname, ftype, fid) = iprot.readFieldBegin()
13115
      if ftype == TType.STOP:
13116
        break
13117
      if fid == 1:
13118
        if ftype == TType.I64:
13119
          self.beginIndex = iprot.readI64();
13120
        else:
13121
          iprot.skip(ftype)
13122
      elif fid == 2:
13123
        if ftype == TType.I64:
13124
          self.totalItems = iprot.readI64();
13125
        else:
13126
          iprot.skip(ftype)
13127
      elif fid == 3:
13128
        if ftype == TType.STRING:
13129
          self.brand = iprot.readString();
13130
        else:
13131
          iprot.skip(ftype)
13132
      elif fid == 4:
13133
        if ftype == TType.LIST:
13134
          self.categories = []
12567 amit.gupta 13135
          (_etype149, _size146) = iprot.readListBegin()
13136
          for _i150 in xrange(_size146):
13137
            _elem151 = iprot.readI64();
13138
            self.categories.append(_elem151)
5944 mandeep.dh 13139
          iprot.readListEnd()
13140
        else:
13141
          iprot.skip(ftype)
13142
      else:
13143
        iprot.skip(ftype)
13144
      iprot.readFieldEnd()
13145
    iprot.readStructEnd()
13146
 
13147
  def write(self, oprot):
13148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13150
      return
13151
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13152
    if self.beginIndex is not None:
13153
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13154
      oprot.writeI64(self.beginIndex)
13155
      oprot.writeFieldEnd()
13156
    if self.totalItems is not None:
13157
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13158
      oprot.writeI64(self.totalItems)
13159
      oprot.writeFieldEnd()
13160
    if self.brand is not None:
13161
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13162
      oprot.writeString(self.brand)
13163
      oprot.writeFieldEnd()
13164
    if self.categories is not None:
13165
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13166
      oprot.writeListBegin(TType.I64, len(self.categories))
12567 amit.gupta 13167
      for iter152 in self.categories:
13168
        oprot.writeI64(iter152)
5944 mandeep.dh 13169
      oprot.writeListEnd()
13170
      oprot.writeFieldEnd()
13171
    oprot.writeFieldStop()
13172
    oprot.writeStructEnd()
13173
 
13174
  def validate(self):
13175
    return
13176
 
13177
 
13178
  def __repr__(self):
13179
    L = ['%s=%r' % (key, value)
13180
      for key, value in self.__dict__.iteritems()]
13181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13182
 
13183
  def __eq__(self, other):
13184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13185
 
13186
  def __ne__(self, other):
13187
    return not (self == other)
13188
 
13189
class getLatestArrivalsCatalogIds_result:
13190
  """
13191
  Attributes:
13192
   - success
13193
   - cex
13194
  """
13195
 
13196
  thrift_spec = (
13197
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13198
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13199
  )
13200
 
13201
  def __init__(self, success=None, cex=None,):
13202
    self.success = success
13203
    self.cex = cex
13204
 
13205
  def read(self, iprot):
13206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13208
      return
13209
    iprot.readStructBegin()
13210
    while True:
13211
      (fname, ftype, fid) = iprot.readFieldBegin()
13212
      if ftype == TType.STOP:
13213
        break
13214
      if fid == 0:
13215
        if ftype == TType.LIST:
13216
          self.success = []
12567 amit.gupta 13217
          (_etype156, _size153) = iprot.readListBegin()
13218
          for _i157 in xrange(_size153):
13219
            _elem158 = iprot.readI64();
13220
            self.success.append(_elem158)
5944 mandeep.dh 13221
          iprot.readListEnd()
13222
        else:
13223
          iprot.skip(ftype)
13224
      elif fid == 1:
13225
        if ftype == TType.STRUCT:
13226
          self.cex = CatalogServiceException()
13227
          self.cex.read(iprot)
13228
        else:
13229
          iprot.skip(ftype)
13230
      else:
13231
        iprot.skip(ftype)
13232
      iprot.readFieldEnd()
13233
    iprot.readStructEnd()
13234
 
13235
  def write(self, oprot):
13236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13238
      return
13239
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13240
    if self.success is not None:
13241
      oprot.writeFieldBegin('success', TType.LIST, 0)
13242
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 13243
      for iter159 in self.success:
13244
        oprot.writeI64(iter159)
5944 mandeep.dh 13245
      oprot.writeListEnd()
13246
      oprot.writeFieldEnd()
13247
    if self.cex is not None:
13248
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13249
      self.cex.write(oprot)
13250
      oprot.writeFieldEnd()
13251
    oprot.writeFieldStop()
13252
    oprot.writeStructEnd()
13253
 
13254
  def validate(self):
13255
    return
13256
 
13257
 
13258
  def __repr__(self):
13259
    L = ['%s=%r' % (key, value)
13260
      for key, value in self.__dict__.iteritems()]
13261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13262
 
13263
  def __eq__(self, other):
13264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13265
 
13266
  def __ne__(self, other):
13267
    return not (self == other)
13268
 
13269
class getLatestArrivalsCount_args:
13270
 
13271
  thrift_spec = (
13272
  )
13273
 
13274
  def read(self, iprot):
13275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13277
      return
13278
    iprot.readStructBegin()
13279
    while True:
13280
      (fname, ftype, fid) = iprot.readFieldBegin()
13281
      if ftype == TType.STOP:
13282
        break
13283
      else:
13284
        iprot.skip(ftype)
13285
      iprot.readFieldEnd()
13286
    iprot.readStructEnd()
13287
 
13288
  def write(self, oprot):
13289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13291
      return
13292
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13293
    oprot.writeFieldStop()
13294
    oprot.writeStructEnd()
13295
 
13296
  def validate(self):
13297
    return
13298
 
13299
 
13300
  def __repr__(self):
13301
    L = ['%s=%r' % (key, value)
13302
      for key, value in self.__dict__.iteritems()]
13303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13304
 
13305
  def __eq__(self, other):
13306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13307
 
13308
  def __ne__(self, other):
13309
    return not (self == other)
13310
 
13311
class getLatestArrivalsCount_result:
13312
  """
13313
  Attributes:
13314
   - success
13315
   - cex
13316
  """
13317
 
13318
  thrift_spec = (
13319
    (0, TType.I64, 'success', None, None, ), # 0
13320
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13321
  )
13322
 
13323
  def __init__(self, success=None, cex=None,):
13324
    self.success = success
13325
    self.cex = cex
13326
 
13327
  def read(self, iprot):
13328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13330
      return
13331
    iprot.readStructBegin()
13332
    while True:
13333
      (fname, ftype, fid) = iprot.readFieldBegin()
13334
      if ftype == TType.STOP:
13335
        break
13336
      if fid == 0:
13337
        if ftype == TType.I64:
13338
          self.success = iprot.readI64();
13339
        else:
13340
          iprot.skip(ftype)
13341
      elif fid == 1:
13342
        if ftype == TType.STRUCT:
13343
          self.cex = CatalogServiceException()
13344
          self.cex.read(iprot)
13345
        else:
13346
          iprot.skip(ftype)
13347
      else:
13348
        iprot.skip(ftype)
13349
      iprot.readFieldEnd()
13350
    iprot.readStructEnd()
13351
 
13352
  def write(self, oprot):
13353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13355
      return
13356
    oprot.writeStructBegin('getLatestArrivalsCount_result')
13357
    if self.success is not None:
13358
      oprot.writeFieldBegin('success', TType.I64, 0)
13359
      oprot.writeI64(self.success)
13360
      oprot.writeFieldEnd()
13361
    if self.cex is not None:
13362
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13363
      self.cex.write(oprot)
13364
      oprot.writeFieldEnd()
13365
    oprot.writeFieldStop()
13366
    oprot.writeStructEnd()
13367
 
13368
  def validate(self):
13369
    return
13370
 
13371
 
13372
  def __repr__(self):
13373
    L = ['%s=%r' % (key, value)
13374
      for key, value in self.__dict__.iteritems()]
13375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13376
 
13377
  def __eq__(self, other):
13378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13379
 
13380
  def __ne__(self, other):
13381
    return not (self == other)
13382
 
13383
class generateNewEntityID_args:
13384
 
13385
  thrift_spec = (
13386
  )
13387
 
13388
  def read(self, iprot):
13389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13391
      return
13392
    iprot.readStructBegin()
13393
    while True:
13394
      (fname, ftype, fid) = iprot.readFieldBegin()
13395
      if ftype == TType.STOP:
13396
        break
13397
      else:
13398
        iprot.skip(ftype)
13399
      iprot.readFieldEnd()
13400
    iprot.readStructEnd()
13401
 
13402
  def write(self, oprot):
13403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13405
      return
13406
    oprot.writeStructBegin('generateNewEntityID_args')
13407
    oprot.writeFieldStop()
13408
    oprot.writeStructEnd()
13409
 
13410
  def validate(self):
13411
    return
13412
 
13413
 
13414
  def __repr__(self):
13415
    L = ['%s=%r' % (key, value)
13416
      for key, value in self.__dict__.iteritems()]
13417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13418
 
13419
  def __eq__(self, other):
13420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13421
 
13422
  def __ne__(self, other):
13423
    return not (self == other)
13424
 
13425
class generateNewEntityID_result:
13426
  """
13427
  Attributes:
13428
   - success
13429
  """
13430
 
13431
  thrift_spec = (
13432
    (0, TType.I64, 'success', None, None, ), # 0
13433
  )
13434
 
13435
  def __init__(self, success=None,):
13436
    self.success = success
13437
 
13438
  def read(self, iprot):
13439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13441
      return
13442
    iprot.readStructBegin()
13443
    while True:
13444
      (fname, ftype, fid) = iprot.readFieldBegin()
13445
      if ftype == TType.STOP:
13446
        break
13447
      if fid == 0:
13448
        if ftype == TType.I64:
13449
          self.success = iprot.readI64();
13450
        else:
13451
          iprot.skip(ftype)
13452
      else:
13453
        iprot.skip(ftype)
13454
      iprot.readFieldEnd()
13455
    iprot.readStructEnd()
13456
 
13457
  def write(self, oprot):
13458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13460
      return
13461
    oprot.writeStructBegin('generateNewEntityID_result')
13462
    if self.success is not None:
13463
      oprot.writeFieldBegin('success', TType.I64, 0)
13464
      oprot.writeI64(self.success)
13465
      oprot.writeFieldEnd()
13466
    oprot.writeFieldStop()
13467
    oprot.writeStructEnd()
13468
 
13469
  def validate(self):
13470
    return
13471
 
13472
 
13473
  def __repr__(self):
13474
    L = ['%s=%r' % (key, value)
13475
      for key, value in self.__dict__.iteritems()]
13476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13477
 
13478
  def __eq__(self, other):
13479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13480
 
13481
  def __ne__(self, other):
13482
    return not (self == other)
13483
 
13484
class addCategory_args:
13485
  """
13486
  Attributes:
13487
   - category
13488
  """
13489
 
13490
  thrift_spec = (
13491
    None, # 0
13492
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13493
  )
13494
 
13495
  def __init__(self, category=None,):
13496
    self.category = category
13497
 
13498
  def read(self, iprot):
13499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13501
      return
13502
    iprot.readStructBegin()
13503
    while True:
13504
      (fname, ftype, fid) = iprot.readFieldBegin()
13505
      if ftype == TType.STOP:
13506
        break
13507
      if fid == 1:
13508
        if ftype == TType.STRUCT:
13509
          self.category = Category()
13510
          self.category.read(iprot)
13511
        else:
13512
          iprot.skip(ftype)
13513
      else:
13514
        iprot.skip(ftype)
13515
      iprot.readFieldEnd()
13516
    iprot.readStructEnd()
13517
 
13518
  def write(self, oprot):
13519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13521
      return
13522
    oprot.writeStructBegin('addCategory_args')
13523
    if self.category is not None:
13524
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13525
      self.category.write(oprot)
13526
      oprot.writeFieldEnd()
13527
    oprot.writeFieldStop()
13528
    oprot.writeStructEnd()
13529
 
13530
  def validate(self):
13531
    return
13532
 
13533
 
13534
  def __repr__(self):
13535
    L = ['%s=%r' % (key, value)
13536
      for key, value in self.__dict__.iteritems()]
13537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13538
 
13539
  def __eq__(self, other):
13540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13541
 
13542
  def __ne__(self, other):
13543
    return not (self == other)
13544
 
13545
class addCategory_result:
13546
  """
13547
  Attributes:
13548
   - success
13549
  """
13550
 
13551
  thrift_spec = (
13552
    (0, TType.BOOL, 'success', None, None, ), # 0
13553
  )
13554
 
13555
  def __init__(self, success=None,):
13556
    self.success = success
13557
 
13558
  def read(self, iprot):
13559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13561
      return
13562
    iprot.readStructBegin()
13563
    while True:
13564
      (fname, ftype, fid) = iprot.readFieldBegin()
13565
      if ftype == TType.STOP:
13566
        break
13567
      if fid == 0:
13568
        if ftype == TType.BOOL:
13569
          self.success = iprot.readBool();
13570
        else:
13571
          iprot.skip(ftype)
13572
      else:
13573
        iprot.skip(ftype)
13574
      iprot.readFieldEnd()
13575
    iprot.readStructEnd()
13576
 
13577
  def write(self, oprot):
13578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13580
      return
13581
    oprot.writeStructBegin('addCategory_result')
13582
    if self.success is not None:
13583
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13584
      oprot.writeBool(self.success)
13585
      oprot.writeFieldEnd()
13586
    oprot.writeFieldStop()
13587
    oprot.writeStructEnd()
13588
 
13589
  def validate(self):
13590
    return
13591
 
13592
 
13593
  def __repr__(self):
13594
    L = ['%s=%r' % (key, value)
13595
      for key, value in self.__dict__.iteritems()]
13596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13597
 
13598
  def __eq__(self, other):
13599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13600
 
13601
  def __ne__(self, other):
13602
    return not (self == other)
13603
 
13604
class getCategory_args:
13605
  """
13606
  Attributes:
13607
   - id
13608
  """
13609
 
13610
  thrift_spec = (
13611
    None, # 0
13612
    (1, TType.I64, 'id', None, None, ), # 1
13613
  )
13614
 
13615
  def __init__(self, id=None,):
13616
    self.id = id
13617
 
13618
  def read(self, iprot):
13619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13621
      return
13622
    iprot.readStructBegin()
13623
    while True:
13624
      (fname, ftype, fid) = iprot.readFieldBegin()
13625
      if ftype == TType.STOP:
13626
        break
13627
      if fid == 1:
13628
        if ftype == TType.I64:
13629
          self.id = iprot.readI64();
13630
        else:
13631
          iprot.skip(ftype)
13632
      else:
13633
        iprot.skip(ftype)
13634
      iprot.readFieldEnd()
13635
    iprot.readStructEnd()
13636
 
13637
  def write(self, oprot):
13638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13640
      return
13641
    oprot.writeStructBegin('getCategory_args')
13642
    if self.id is not None:
13643
      oprot.writeFieldBegin('id', TType.I64, 1)
13644
      oprot.writeI64(self.id)
13645
      oprot.writeFieldEnd()
13646
    oprot.writeFieldStop()
13647
    oprot.writeStructEnd()
13648
 
13649
  def validate(self):
13650
    return
13651
 
13652
 
13653
  def __repr__(self):
13654
    L = ['%s=%r' % (key, value)
13655
      for key, value in self.__dict__.iteritems()]
13656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13657
 
13658
  def __eq__(self, other):
13659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13660
 
13661
  def __ne__(self, other):
13662
    return not (self == other)
13663
 
13664
class getCategory_result:
13665
  """
13666
  Attributes:
13667
   - success
13668
  """
13669
 
13670
  thrift_spec = (
13671
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13672
  )
13673
 
13674
  def __init__(self, success=None,):
13675
    self.success = success
13676
 
13677
  def read(self, iprot):
13678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13680
      return
13681
    iprot.readStructBegin()
13682
    while True:
13683
      (fname, ftype, fid) = iprot.readFieldBegin()
13684
      if ftype == TType.STOP:
13685
        break
13686
      if fid == 0:
13687
        if ftype == TType.STRUCT:
13688
          self.success = Category()
13689
          self.success.read(iprot)
13690
        else:
13691
          iprot.skip(ftype)
13692
      else:
13693
        iprot.skip(ftype)
13694
      iprot.readFieldEnd()
13695
    iprot.readStructEnd()
13696
 
13697
  def write(self, oprot):
13698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13700
      return
13701
    oprot.writeStructBegin('getCategory_result')
13702
    if self.success is not None:
13703
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13704
      self.success.write(oprot)
13705
      oprot.writeFieldEnd()
13706
    oprot.writeFieldStop()
13707
    oprot.writeStructEnd()
13708
 
13709
  def validate(self):
13710
    return
13711
 
13712
 
13713
  def __repr__(self):
13714
    L = ['%s=%r' % (key, value)
13715
      for key, value in self.__dict__.iteritems()]
13716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13717
 
13718
  def __eq__(self, other):
13719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13720
 
13721
  def __ne__(self, other):
13722
    return not (self == other)
13723
 
13724
class getAllCategories_args:
13725
 
13726
  thrift_spec = (
13727
  )
13728
 
13729
  def read(self, iprot):
13730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13732
      return
13733
    iprot.readStructBegin()
13734
    while True:
13735
      (fname, ftype, fid) = iprot.readFieldBegin()
13736
      if ftype == TType.STOP:
13737
        break
13738
      else:
13739
        iprot.skip(ftype)
13740
      iprot.readFieldEnd()
13741
    iprot.readStructEnd()
13742
 
13743
  def write(self, oprot):
13744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13746
      return
13747
    oprot.writeStructBegin('getAllCategories_args')
13748
    oprot.writeFieldStop()
13749
    oprot.writeStructEnd()
13750
 
13751
  def validate(self):
13752
    return
13753
 
13754
 
13755
  def __repr__(self):
13756
    L = ['%s=%r' % (key, value)
13757
      for key, value in self.__dict__.iteritems()]
13758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13759
 
13760
  def __eq__(self, other):
13761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13762
 
13763
  def __ne__(self, other):
13764
    return not (self == other)
13765
 
13766
class getAllCategories_result:
13767
  """
13768
  Attributes:
13769
   - success
13770
  """
13771
 
13772
  thrift_spec = (
13773
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
13774
  )
13775
 
13776
  def __init__(self, success=None,):
13777
    self.success = success
13778
 
13779
  def read(self, iprot):
13780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13782
      return
13783
    iprot.readStructBegin()
13784
    while True:
13785
      (fname, ftype, fid) = iprot.readFieldBegin()
13786
      if ftype == TType.STOP:
13787
        break
13788
      if fid == 0:
13789
        if ftype == TType.LIST:
13790
          self.success = []
12567 amit.gupta 13791
          (_etype163, _size160) = iprot.readListBegin()
13792
          for _i164 in xrange(_size160):
13793
            _elem165 = Category()
13794
            _elem165.read(iprot)
13795
            self.success.append(_elem165)
5944 mandeep.dh 13796
          iprot.readListEnd()
13797
        else:
13798
          iprot.skip(ftype)
13799
      else:
13800
        iprot.skip(ftype)
13801
      iprot.readFieldEnd()
13802
    iprot.readStructEnd()
13803
 
13804
  def write(self, oprot):
13805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13807
      return
13808
    oprot.writeStructBegin('getAllCategories_result')
13809
    if self.success is not None:
13810
      oprot.writeFieldBegin('success', TType.LIST, 0)
13811
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13812
      for iter166 in self.success:
13813
        iter166.write(oprot)
5944 mandeep.dh 13814
      oprot.writeListEnd()
13815
      oprot.writeFieldEnd()
13816
    oprot.writeFieldStop()
13817
    oprot.writeStructEnd()
13818
 
13819
  def validate(self):
13820
    return
13821
 
13822
 
13823
  def __repr__(self):
13824
    L = ['%s=%r' % (key, value)
13825
      for key, value in self.__dict__.iteritems()]
13826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13827
 
13828
  def __eq__(self, other):
13829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13830
 
13831
  def __ne__(self, other):
13832
    return not (self == other)
13833
 
13834
class getAllSimilarItems_args:
13835
  """
13836
  Attributes:
13837
   - itemId
13838
  """
13839
 
13840
  thrift_spec = (
13841
    None, # 0
13842
    (1, TType.I64, 'itemId', None, None, ), # 1
13843
  )
13844
 
13845
  def __init__(self, itemId=None,):
13846
    self.itemId = itemId
13847
 
13848
  def read(self, iprot):
13849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13851
      return
13852
    iprot.readStructBegin()
13853
    while True:
13854
      (fname, ftype, fid) = iprot.readFieldBegin()
13855
      if ftype == TType.STOP:
13856
        break
13857
      if fid == 1:
13858
        if ftype == TType.I64:
13859
          self.itemId = iprot.readI64();
13860
        else:
13861
          iprot.skip(ftype)
13862
      else:
13863
        iprot.skip(ftype)
13864
      iprot.readFieldEnd()
13865
    iprot.readStructEnd()
13866
 
13867
  def write(self, oprot):
13868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13870
      return
13871
    oprot.writeStructBegin('getAllSimilarItems_args')
13872
    if self.itemId is not None:
13873
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13874
      oprot.writeI64(self.itemId)
13875
      oprot.writeFieldEnd()
13876
    oprot.writeFieldStop()
13877
    oprot.writeStructEnd()
13878
 
13879
  def validate(self):
13880
    return
13881
 
13882
 
13883
  def __repr__(self):
13884
    L = ['%s=%r' % (key, value)
13885
      for key, value in self.__dict__.iteritems()]
13886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13887
 
13888
  def __eq__(self, other):
13889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13890
 
13891
  def __ne__(self, other):
13892
    return not (self == other)
13893
 
13894
class getAllSimilarItems_result:
13895
  """
13896
  Attributes:
13897
   - success
13898
  """
13899
 
13900
  thrift_spec = (
13901
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13902
  )
13903
 
13904
  def __init__(self, success=None,):
13905
    self.success = success
13906
 
13907
  def read(self, iprot):
13908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13910
      return
13911
    iprot.readStructBegin()
13912
    while True:
13913
      (fname, ftype, fid) = iprot.readFieldBegin()
13914
      if ftype == TType.STOP:
13915
        break
13916
      if fid == 0:
13917
        if ftype == TType.LIST:
13918
          self.success = []
12567 amit.gupta 13919
          (_etype170, _size167) = iprot.readListBegin()
13920
          for _i171 in xrange(_size167):
13921
            _elem172 = Item()
13922
            _elem172.read(iprot)
13923
            self.success.append(_elem172)
5944 mandeep.dh 13924
          iprot.readListEnd()
13925
        else:
13926
          iprot.skip(ftype)
13927
      else:
13928
        iprot.skip(ftype)
13929
      iprot.readFieldEnd()
13930
    iprot.readStructEnd()
13931
 
13932
  def write(self, oprot):
13933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13935
      return
13936
    oprot.writeStructBegin('getAllSimilarItems_result')
13937
    if self.success is not None:
13938
      oprot.writeFieldBegin('success', TType.LIST, 0)
13939
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13940
      for iter173 in self.success:
13941
        iter173.write(oprot)
5944 mandeep.dh 13942
      oprot.writeListEnd()
13943
      oprot.writeFieldEnd()
13944
    oprot.writeFieldStop()
13945
    oprot.writeStructEnd()
13946
 
13947
  def validate(self):
13948
    return
13949
 
13950
 
13951
  def __repr__(self):
13952
    L = ['%s=%r' % (key, value)
13953
      for key, value in self.__dict__.iteritems()]
13954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13955
 
13956
  def __eq__(self, other):
13957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13958
 
13959
  def __ne__(self, other):
13960
    return not (self == other)
13961
 
13962
class addSimilarItem_args:
13963
  """
13964
  Attributes:
13965
   - itemId
13966
   - catalogItemId
13967
  """
13968
 
13969
  thrift_spec = (
13970
    None, # 0
13971
    (1, TType.I64, 'itemId', None, None, ), # 1
13972
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
13973
  )
13974
 
13975
  def __init__(self, itemId=None, catalogItemId=None,):
13976
    self.itemId = itemId
13977
    self.catalogItemId = catalogItemId
13978
 
13979
  def read(self, iprot):
13980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13982
      return
13983
    iprot.readStructBegin()
13984
    while True:
13985
      (fname, ftype, fid) = iprot.readFieldBegin()
13986
      if ftype == TType.STOP:
13987
        break
13988
      if fid == 1:
13989
        if ftype == TType.I64:
13990
          self.itemId = iprot.readI64();
13991
        else:
13992
          iprot.skip(ftype)
13993
      elif fid == 2:
13994
        if ftype == TType.I64:
13995
          self.catalogItemId = iprot.readI64();
13996
        else:
13997
          iprot.skip(ftype)
13998
      else:
13999
        iprot.skip(ftype)
14000
      iprot.readFieldEnd()
14001
    iprot.readStructEnd()
14002
 
14003
  def write(self, oprot):
14004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14006
      return
14007
    oprot.writeStructBegin('addSimilarItem_args')
14008
    if self.itemId is not None:
14009
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14010
      oprot.writeI64(self.itemId)
14011
      oprot.writeFieldEnd()
14012
    if self.catalogItemId is not None:
14013
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14014
      oprot.writeI64(self.catalogItemId)
14015
      oprot.writeFieldEnd()
14016
    oprot.writeFieldStop()
14017
    oprot.writeStructEnd()
14018
 
14019
  def validate(self):
14020
    return
14021
 
14022
 
14023
  def __repr__(self):
14024
    L = ['%s=%r' % (key, value)
14025
      for key, value in self.__dict__.iteritems()]
14026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14027
 
14028
  def __eq__(self, other):
14029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14030
 
14031
  def __ne__(self, other):
14032
    return not (self == other)
14033
 
14034
class addSimilarItem_result:
14035
  """
14036
  Attributes:
14037
   - success
14038
   - cex
14039
  """
14040
 
14041
  thrift_spec = (
14042
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
14043
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14044
  )
14045
 
14046
  def __init__(self, success=None, cex=None,):
14047
    self.success = success
14048
    self.cex = cex
14049
 
14050
  def read(self, iprot):
14051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14053
      return
14054
    iprot.readStructBegin()
14055
    while True:
14056
      (fname, ftype, fid) = iprot.readFieldBegin()
14057
      if ftype == TType.STOP:
14058
        break
14059
      if fid == 0:
14060
        if ftype == TType.STRUCT:
14061
          self.success = Item()
14062
          self.success.read(iprot)
14063
        else:
14064
          iprot.skip(ftype)
14065
      elif fid == 1:
14066
        if ftype == TType.STRUCT:
14067
          self.cex = CatalogServiceException()
14068
          self.cex.read(iprot)
14069
        else:
14070
          iprot.skip(ftype)
14071
      else:
14072
        iprot.skip(ftype)
14073
      iprot.readFieldEnd()
14074
    iprot.readStructEnd()
14075
 
14076
  def write(self, oprot):
14077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14079
      return
14080
    oprot.writeStructBegin('addSimilarItem_result')
14081
    if self.success is not None:
14082
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14083
      self.success.write(oprot)
14084
      oprot.writeFieldEnd()
14085
    if self.cex is not None:
14086
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14087
      self.cex.write(oprot)
14088
      oprot.writeFieldEnd()
14089
    oprot.writeFieldStop()
14090
    oprot.writeStructEnd()
14091
 
14092
  def validate(self):
14093
    return
14094
 
14095
 
14096
  def __repr__(self):
14097
    L = ['%s=%r' % (key, value)
14098
      for key, value in self.__dict__.iteritems()]
14099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14100
 
14101
  def __eq__(self, other):
14102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14103
 
14104
  def __ne__(self, other):
14105
    return not (self == other)
14106
 
6512 kshitij.so 14107
class addTag_args:
14108
  """
14109
  Attributes:
14110
   - displayName
14111
   - itemId
14112
  """
14113
 
14114
  thrift_spec = (
14115
    None, # 0
14116
    (1, TType.STRING, 'displayName', None, None, ), # 1
14117
    (2, TType.I64, 'itemId', None, None, ), # 2
14118
  )
14119
 
14120
  def __init__(self, displayName=None, itemId=None,):
14121
    self.displayName = displayName
14122
    self.itemId = itemId
14123
 
14124
  def read(self, iprot):
14125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14127
      return
14128
    iprot.readStructBegin()
14129
    while True:
14130
      (fname, ftype, fid) = iprot.readFieldBegin()
14131
      if ftype == TType.STOP:
14132
        break
14133
      if fid == 1:
14134
        if ftype == TType.STRING:
14135
          self.displayName = iprot.readString();
14136
        else:
14137
          iprot.skip(ftype)
14138
      elif fid == 2:
14139
        if ftype == TType.I64:
14140
          self.itemId = iprot.readI64();
14141
        else:
14142
          iprot.skip(ftype)
14143
      else:
14144
        iprot.skip(ftype)
14145
      iprot.readFieldEnd()
14146
    iprot.readStructEnd()
14147
 
14148
  def write(self, oprot):
14149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14151
      return
14152
    oprot.writeStructBegin('addTag_args')
14153
    if self.displayName is not None:
14154
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14155
      oprot.writeString(self.displayName)
14156
      oprot.writeFieldEnd()
14157
    if self.itemId is not None:
14158
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14159
      oprot.writeI64(self.itemId)
14160
      oprot.writeFieldEnd()
14161
    oprot.writeFieldStop()
14162
    oprot.writeStructEnd()
14163
 
14164
  def validate(self):
14165
    return
14166
 
14167
 
14168
  def __repr__(self):
14169
    L = ['%s=%r' % (key, value)
14170
      for key, value in self.__dict__.iteritems()]
14171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14172
 
14173
  def __eq__(self, other):
14174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14175
 
14176
  def __ne__(self, other):
14177
    return not (self == other)
14178
 
14179
class addTag_result:
14180
  """
14181
  Attributes:
14182
   - success
14183
  """
14184
 
14185
  thrift_spec = (
14186
    (0, TType.BOOL, 'success', None, None, ), # 0
14187
  )
14188
 
14189
  def __init__(self, success=None,):
14190
    self.success = success
14191
 
14192
  def read(self, iprot):
14193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14195
      return
14196
    iprot.readStructBegin()
14197
    while True:
14198
      (fname, ftype, fid) = iprot.readFieldBegin()
14199
      if ftype == TType.STOP:
14200
        break
14201
      if fid == 0:
14202
        if ftype == TType.BOOL:
14203
          self.success = iprot.readBool();
14204
        else:
14205
          iprot.skip(ftype)
14206
      else:
14207
        iprot.skip(ftype)
14208
      iprot.readFieldEnd()
14209
    iprot.readStructEnd()
14210
 
14211
  def write(self, oprot):
14212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14214
      return
14215
    oprot.writeStructBegin('addTag_result')
14216
    if self.success is not None:
14217
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14218
      oprot.writeBool(self.success)
14219
      oprot.writeFieldEnd()
14220
    oprot.writeFieldStop()
14221
    oprot.writeStructEnd()
14222
 
14223
  def validate(self):
14224
    return
14225
 
14226
 
14227
  def __repr__(self):
14228
    L = ['%s=%r' % (key, value)
14229
      for key, value in self.__dict__.iteritems()]
14230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14231
 
14232
  def __eq__(self, other):
14233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14234
 
14235
  def __ne__(self, other):
14236
    return not (self == other)
14237
 
14238
class deleteEntityTag_args:
14239
  """
14240
  Attributes:
14241
   - displayName
14242
   - itemId
14243
  """
14244
 
14245
  thrift_spec = (
14246
    None, # 0
14247
    (1, TType.STRING, 'displayName', None, None, ), # 1
14248
    (2, TType.I64, 'itemId', None, None, ), # 2
14249
  )
14250
 
14251
  def __init__(self, displayName=None, itemId=None,):
14252
    self.displayName = displayName
14253
    self.itemId = itemId
14254
 
14255
  def read(self, iprot):
14256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14258
      return
14259
    iprot.readStructBegin()
14260
    while True:
14261
      (fname, ftype, fid) = iprot.readFieldBegin()
14262
      if ftype == TType.STOP:
14263
        break
14264
      if fid == 1:
14265
        if ftype == TType.STRING:
14266
          self.displayName = iprot.readString();
14267
        else:
14268
          iprot.skip(ftype)
14269
      elif fid == 2:
14270
        if ftype == TType.I64:
14271
          self.itemId = iprot.readI64();
14272
        else:
14273
          iprot.skip(ftype)
14274
      else:
14275
        iprot.skip(ftype)
14276
      iprot.readFieldEnd()
14277
    iprot.readStructEnd()
14278
 
14279
  def write(self, oprot):
14280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14282
      return
14283
    oprot.writeStructBegin('deleteEntityTag_args')
14284
    if self.displayName is not None:
14285
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14286
      oprot.writeString(self.displayName)
14287
      oprot.writeFieldEnd()
14288
    if self.itemId is not None:
14289
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14290
      oprot.writeI64(self.itemId)
14291
      oprot.writeFieldEnd()
14292
    oprot.writeFieldStop()
14293
    oprot.writeStructEnd()
14294
 
14295
  def validate(self):
14296
    return
14297
 
14298
 
14299
  def __repr__(self):
14300
    L = ['%s=%r' % (key, value)
14301
      for key, value in self.__dict__.iteritems()]
14302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14303
 
14304
  def __eq__(self, other):
14305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14306
 
14307
  def __ne__(self, other):
14308
    return not (self == other)
14309
 
14310
class deleteEntityTag_result:
14311
  """
14312
  Attributes:
14313
   - success
14314
  """
14315
 
14316
  thrift_spec = (
14317
    (0, TType.BOOL, 'success', None, None, ), # 0
14318
  )
14319
 
14320
  def __init__(self, success=None,):
14321
    self.success = success
14322
 
14323
  def read(self, iprot):
14324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14326
      return
14327
    iprot.readStructBegin()
14328
    while True:
14329
      (fname, ftype, fid) = iprot.readFieldBegin()
14330
      if ftype == TType.STOP:
14331
        break
14332
      if fid == 0:
14333
        if ftype == TType.BOOL:
14334
          self.success = iprot.readBool();
14335
        else:
14336
          iprot.skip(ftype)
14337
      else:
14338
        iprot.skip(ftype)
14339
      iprot.readFieldEnd()
14340
    iprot.readStructEnd()
14341
 
14342
  def write(self, oprot):
14343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14345
      return
14346
    oprot.writeStructBegin('deleteEntityTag_result')
14347
    if self.success is not None:
14348
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14349
      oprot.writeBool(self.success)
14350
      oprot.writeFieldEnd()
14351
    oprot.writeFieldStop()
14352
    oprot.writeStructEnd()
14353
 
14354
  def validate(self):
14355
    return
14356
 
14357
 
14358
  def __repr__(self):
14359
    L = ['%s=%r' % (key, value)
14360
      for key, value in self.__dict__.iteritems()]
14361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14362
 
14363
  def __eq__(self, other):
14364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14365
 
14366
  def __ne__(self, other):
14367
    return not (self == other)
14368
 
14369
class deleteTag_args:
14370
  """
14371
  Attributes:
14372
   - displayName
14373
  """
14374
 
14375
  thrift_spec = (
14376
    None, # 0
14377
    (1, TType.STRING, 'displayName', None, None, ), # 1
14378
  )
14379
 
14380
  def __init__(self, displayName=None,):
14381
    self.displayName = displayName
14382
 
14383
  def read(self, iprot):
14384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14386
      return
14387
    iprot.readStructBegin()
14388
    while True:
14389
      (fname, ftype, fid) = iprot.readFieldBegin()
14390
      if ftype == TType.STOP:
14391
        break
14392
      if fid == 1:
14393
        if ftype == TType.STRING:
14394
          self.displayName = iprot.readString();
14395
        else:
14396
          iprot.skip(ftype)
14397
      else:
14398
        iprot.skip(ftype)
14399
      iprot.readFieldEnd()
14400
    iprot.readStructEnd()
14401
 
14402
  def write(self, oprot):
14403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14405
      return
14406
    oprot.writeStructBegin('deleteTag_args')
14407
    if self.displayName is not None:
14408
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14409
      oprot.writeString(self.displayName)
14410
      oprot.writeFieldEnd()
14411
    oprot.writeFieldStop()
14412
    oprot.writeStructEnd()
14413
 
14414
  def validate(self):
14415
    return
14416
 
14417
 
14418
  def __repr__(self):
14419
    L = ['%s=%r' % (key, value)
14420
      for key, value in self.__dict__.iteritems()]
14421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14422
 
14423
  def __eq__(self, other):
14424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14425
 
14426
  def __ne__(self, other):
14427
    return not (self == other)
14428
 
14429
class deleteTag_result:
14430
  """
14431
  Attributes:
14432
   - success
14433
  """
14434
 
14435
  thrift_spec = (
14436
    (0, TType.BOOL, 'success', None, None, ), # 0
14437
  )
14438
 
14439
  def __init__(self, success=None,):
14440
    self.success = success
14441
 
14442
  def read(self, iprot):
14443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14445
      return
14446
    iprot.readStructBegin()
14447
    while True:
14448
      (fname, ftype, fid) = iprot.readFieldBegin()
14449
      if ftype == TType.STOP:
14450
        break
14451
      if fid == 0:
14452
        if ftype == TType.BOOL:
14453
          self.success = iprot.readBool();
14454
        else:
14455
          iprot.skip(ftype)
14456
      else:
14457
        iprot.skip(ftype)
14458
      iprot.readFieldEnd()
14459
    iprot.readStructEnd()
14460
 
14461
  def write(self, oprot):
14462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14464
      return
14465
    oprot.writeStructBegin('deleteTag_result')
14466
    if self.success is not None:
14467
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14468
      oprot.writeBool(self.success)
14469
      oprot.writeFieldEnd()
14470
    oprot.writeFieldStop()
14471
    oprot.writeStructEnd()
14472
 
14473
  def validate(self):
14474
    return
14475
 
14476
 
14477
  def __repr__(self):
14478
    L = ['%s=%r' % (key, value)
14479
      for key, value in self.__dict__.iteritems()]
14480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14481
 
14482
  def __eq__(self, other):
14483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14484
 
14485
  def __ne__(self, other):
14486
    return not (self == other)
14487
 
14488
class getAllTags_args:
14489
 
14490
  thrift_spec = (
14491
  )
14492
 
14493
  def read(self, iprot):
14494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14496
      return
14497
    iprot.readStructBegin()
14498
    while True:
14499
      (fname, ftype, fid) = iprot.readFieldBegin()
14500
      if ftype == TType.STOP:
14501
        break
14502
      else:
14503
        iprot.skip(ftype)
14504
      iprot.readFieldEnd()
14505
    iprot.readStructEnd()
14506
 
14507
  def write(self, oprot):
14508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14510
      return
14511
    oprot.writeStructBegin('getAllTags_args')
14512
    oprot.writeFieldStop()
14513
    oprot.writeStructEnd()
14514
 
14515
  def validate(self):
14516
    return
14517
 
14518
 
14519
  def __repr__(self):
14520
    L = ['%s=%r' % (key, value)
14521
      for key, value in self.__dict__.iteritems()]
14522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14523
 
14524
  def __eq__(self, other):
14525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14526
 
14527
  def __ne__(self, other):
14528
    return not (self == other)
14529
 
14530
class getAllTags_result:
14531
  """
14532
  Attributes:
14533
   - success
14534
  """
14535
 
14536
  thrift_spec = (
14537
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14538
  )
14539
 
14540
  def __init__(self, success=None,):
14541
    self.success = success
14542
 
14543
  def read(self, iprot):
14544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14546
      return
14547
    iprot.readStructBegin()
14548
    while True:
14549
      (fname, ftype, fid) = iprot.readFieldBegin()
14550
      if ftype == TType.STOP:
14551
        break
14552
      if fid == 0:
14553
        if ftype == TType.LIST:
14554
          self.success = []
12567 amit.gupta 14555
          (_etype177, _size174) = iprot.readListBegin()
14556
          for _i178 in xrange(_size174):
14557
            _elem179 = iprot.readString();
14558
            self.success.append(_elem179)
6512 kshitij.so 14559
          iprot.readListEnd()
14560
        else:
14561
          iprot.skip(ftype)
14562
      else:
14563
        iprot.skip(ftype)
14564
      iprot.readFieldEnd()
14565
    iprot.readStructEnd()
14566
 
14567
  def write(self, oprot):
14568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14570
      return
14571
    oprot.writeStructBegin('getAllTags_result')
14572
    if self.success is not None:
14573
      oprot.writeFieldBegin('success', TType.LIST, 0)
14574
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 14575
      for iter180 in self.success:
14576
        oprot.writeString(iter180)
6512 kshitij.so 14577
      oprot.writeListEnd()
14578
      oprot.writeFieldEnd()
14579
    oprot.writeFieldStop()
14580
    oprot.writeStructEnd()
14581
 
14582
  def validate(self):
14583
    return
14584
 
14585
 
14586
  def __repr__(self):
14587
    L = ['%s=%r' % (key, value)
14588
      for key, value in self.__dict__.iteritems()]
14589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14590
 
14591
  def __eq__(self, other):
14592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14593
 
14594
  def __ne__(self, other):
14595
    return not (self == other)
14596
 
14597
class getAllEntitiesByTagName_args:
14598
  """
14599
  Attributes:
14600
   - displayName
14601
  """
14602
 
14603
  thrift_spec = (
14604
    None, # 0
14605
    (1, TType.STRING, 'displayName', None, None, ), # 1
14606
  )
14607
 
14608
  def __init__(self, displayName=None,):
14609
    self.displayName = displayName
14610
 
14611
  def read(self, iprot):
14612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14614
      return
14615
    iprot.readStructBegin()
14616
    while True:
14617
      (fname, ftype, fid) = iprot.readFieldBegin()
14618
      if ftype == TType.STOP:
14619
        break
14620
      if fid == 1:
14621
        if ftype == TType.STRING:
14622
          self.displayName = iprot.readString();
14623
        else:
14624
          iprot.skip(ftype)
14625
      else:
14626
        iprot.skip(ftype)
14627
      iprot.readFieldEnd()
14628
    iprot.readStructEnd()
14629
 
14630
  def write(self, oprot):
14631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14633
      return
14634
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14635
    if self.displayName is not None:
14636
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14637
      oprot.writeString(self.displayName)
14638
      oprot.writeFieldEnd()
14639
    oprot.writeFieldStop()
14640
    oprot.writeStructEnd()
14641
 
14642
  def validate(self):
14643
    return
14644
 
14645
 
14646
  def __repr__(self):
14647
    L = ['%s=%r' % (key, value)
14648
      for key, value in self.__dict__.iteritems()]
14649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14650
 
14651
  def __eq__(self, other):
14652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14653
 
14654
  def __ne__(self, other):
14655
    return not (self == other)
14656
 
14657
class getAllEntitiesByTagName_result:
14658
  """
14659
  Attributes:
14660
   - success
14661
  """
14662
 
14663
  thrift_spec = (
14664
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14665
  )
14666
 
14667
  def __init__(self, success=None,):
14668
    self.success = success
14669
 
14670
  def read(self, iprot):
14671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14673
      return
14674
    iprot.readStructBegin()
14675
    while True:
14676
      (fname, ftype, fid) = iprot.readFieldBegin()
14677
      if ftype == TType.STOP:
14678
        break
14679
      if fid == 0:
14680
        if ftype == TType.LIST:
14681
          self.success = []
12567 amit.gupta 14682
          (_etype184, _size181) = iprot.readListBegin()
14683
          for _i185 in xrange(_size181):
14684
            _elem186 = iprot.readI64();
14685
            self.success.append(_elem186)
6512 kshitij.so 14686
          iprot.readListEnd()
14687
        else:
14688
          iprot.skip(ftype)
14689
      else:
14690
        iprot.skip(ftype)
14691
      iprot.readFieldEnd()
14692
    iprot.readStructEnd()
14693
 
14694
  def write(self, oprot):
14695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14697
      return
14698
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14699
    if self.success is not None:
14700
      oprot.writeFieldBegin('success', TType.LIST, 0)
14701
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 14702
      for iter187 in self.success:
14703
        oprot.writeI64(iter187)
6512 kshitij.so 14704
      oprot.writeListEnd()
14705
      oprot.writeFieldEnd()
14706
    oprot.writeFieldStop()
14707
    oprot.writeStructEnd()
14708
 
14709
  def validate(self):
14710
    return
14711
 
14712
 
14713
  def __repr__(self):
14714
    L = ['%s=%r' % (key, value)
14715
      for key, value in self.__dict__.iteritems()]
14716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14717
 
14718
  def __eq__(self, other):
14719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14720
 
14721
  def __ne__(self, other):
14722
    return not (self == other)
14723
 
6845 amit.gupta 14724
class getAllEntityTags_args:
14725
 
14726
  thrift_spec = (
14727
  )
14728
 
14729
  def read(self, iprot):
14730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14732
      return
14733
    iprot.readStructBegin()
14734
    while True:
14735
      (fname, ftype, fid) = iprot.readFieldBegin()
14736
      if ftype == TType.STOP:
14737
        break
14738
      else:
14739
        iprot.skip(ftype)
14740
      iprot.readFieldEnd()
14741
    iprot.readStructEnd()
14742
 
14743
  def write(self, oprot):
14744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14746
      return
14747
    oprot.writeStructBegin('getAllEntityTags_args')
14748
    oprot.writeFieldStop()
14749
    oprot.writeStructEnd()
14750
 
14751
  def validate(self):
14752
    return
14753
 
14754
 
14755
  def __repr__(self):
14756
    L = ['%s=%r' % (key, value)
14757
      for key, value in self.__dict__.iteritems()]
14758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14759
 
14760
  def __eq__(self, other):
14761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14762
 
14763
  def __ne__(self, other):
14764
    return not (self == other)
14765
 
14766
class getAllEntityTags_result:
14767
  """
14768
  Attributes:
14769
   - success
14770
  """
14771
 
14772
  thrift_spec = (
14773
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
14774
  )
14775
 
14776
  def __init__(self, success=None,):
14777
    self.success = success
14778
 
14779
  def read(self, iprot):
14780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14782
      return
14783
    iprot.readStructBegin()
14784
    while True:
14785
      (fname, ftype, fid) = iprot.readFieldBegin()
14786
      if ftype == TType.STOP:
14787
        break
14788
      if fid == 0:
14789
        if ftype == TType.MAP:
14790
          self.success = {}
12567 amit.gupta 14791
          (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin() 
14792
          for _i192 in xrange(_size188):
14793
            _key193 = iprot.readI64();
14794
            _val194 = []
14795
            (_etype198, _size195) = iprot.readListBegin()
14796
            for _i199 in xrange(_size195):
14797
              _elem200 = iprot.readString();
14798
              _val194.append(_elem200)
6845 amit.gupta 14799
            iprot.readListEnd()
12567 amit.gupta 14800
            self.success[_key193] = _val194
6845 amit.gupta 14801
          iprot.readMapEnd()
14802
        else:
14803
          iprot.skip(ftype)
14804
      else:
14805
        iprot.skip(ftype)
14806
      iprot.readFieldEnd()
14807
    iprot.readStructEnd()
14808
 
14809
  def write(self, oprot):
14810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14812
      return
14813
    oprot.writeStructBegin('getAllEntityTags_result')
14814
    if self.success is not None:
14815
      oprot.writeFieldBegin('success', TType.MAP, 0)
14816
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
12567 amit.gupta 14817
      for kiter201,viter202 in self.success.items():
14818
        oprot.writeI64(kiter201)
14819
        oprot.writeListBegin(TType.STRING, len(viter202))
14820
        for iter203 in viter202:
14821
          oprot.writeString(iter203)
6845 amit.gupta 14822
        oprot.writeListEnd()
14823
      oprot.writeMapEnd()
14824
      oprot.writeFieldEnd()
14825
    oprot.writeFieldStop()
14826
    oprot.writeStructEnd()
14827
 
14828
  def validate(self):
14829
    return
14830
 
14831
 
14832
  def __repr__(self):
14833
    L = ['%s=%r' % (key, value)
14834
      for key, value in self.__dict__.iteritems()]
14835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14836
 
14837
  def __eq__(self, other):
14838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14839
 
14840
  def __ne__(self, other):
14841
    return not (self == other)
14842
 
6850 kshitij.so 14843
class addBanner_args:
14844
  """
14845
  Attributes:
8590 kshitij.so 14846
   - bannerCongregate
6850 kshitij.so 14847
  """
14848
 
14849
  thrift_spec = (
14850
    None, # 0
8590 kshitij.so 14851
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 14852
  )
14853
 
8590 kshitij.so 14854
  def __init__(self, bannerCongregate=None,):
14855
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 14856
 
14857
  def read(self, iprot):
14858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14860
      return
14861
    iprot.readStructBegin()
14862
    while True:
14863
      (fname, ftype, fid) = iprot.readFieldBegin()
14864
      if ftype == TType.STOP:
14865
        break
14866
      if fid == 1:
8579 kshitij.so 14867
        if ftype == TType.STRUCT:
8590 kshitij.so 14868
          self.bannerCongregate = BannerCongregate()
14869
          self.bannerCongregate.read(iprot)
6850 kshitij.so 14870
        else:
14871
          iprot.skip(ftype)
8579 kshitij.so 14872
      else:
14873
        iprot.skip(ftype)
14874
      iprot.readFieldEnd()
14875
    iprot.readStructEnd()
14876
 
14877
  def write(self, oprot):
14878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14880
      return
14881
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 14882
    if self.bannerCongregate is not None:
14883
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
14884
      self.bannerCongregate.write(oprot)
8579 kshitij.so 14885
      oprot.writeFieldEnd()
14886
    oprot.writeFieldStop()
14887
    oprot.writeStructEnd()
14888
 
14889
  def validate(self):
14890
    return
14891
 
14892
 
14893
  def __repr__(self):
14894
    L = ['%s=%r' % (key, value)
14895
      for key, value in self.__dict__.iteritems()]
14896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14897
 
14898
  def __eq__(self, other):
14899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14900
 
14901
  def __ne__(self, other):
14902
    return not (self == other)
14903
 
14904
class addBanner_result:
10097 kshitij.so 14905
  """
14906
  Attributes:
14907
   - success
14908
  """
8579 kshitij.so 14909
 
14910
  thrift_spec = (
10097 kshitij.so 14911
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 14912
  )
14913
 
10097 kshitij.so 14914
  def __init__(self, success=None,):
14915
    self.success = success
14916
 
8579 kshitij.so 14917
  def read(self, iprot):
14918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14920
      return
14921
    iprot.readStructBegin()
14922
    while True:
14923
      (fname, ftype, fid) = iprot.readFieldBegin()
14924
      if ftype == TType.STOP:
14925
        break
10097 kshitij.so 14926
      if fid == 0:
14927
        if ftype == TType.BOOL:
14928
          self.success = iprot.readBool();
14929
        else:
14930
          iprot.skip(ftype)
8579 kshitij.so 14931
      else:
14932
        iprot.skip(ftype)
14933
      iprot.readFieldEnd()
14934
    iprot.readStructEnd()
14935
 
14936
  def write(self, oprot):
14937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14939
      return
14940
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 14941
    if self.success is not None:
14942
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14943
      oprot.writeBool(self.success)
14944
      oprot.writeFieldEnd()
8579 kshitij.so 14945
    oprot.writeFieldStop()
14946
    oprot.writeStructEnd()
14947
 
14948
  def validate(self):
14949
    return
14950
 
14951
 
14952
  def __repr__(self):
14953
    L = ['%s=%r' % (key, value)
14954
      for key, value in self.__dict__.iteritems()]
14955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14956
 
14957
  def __eq__(self, other):
14958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14959
 
14960
  def __ne__(self, other):
14961
    return not (self == other)
14962
 
14963
class updateBanner_args:
14964
  """
14965
  Attributes:
14966
   - banner
14967
  """
14968
 
14969
  thrift_spec = (
14970
    None, # 0
14971
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
14972
  )
14973
 
14974
  def __init__(self, banner=None,):
14975
    self.banner = banner
14976
 
14977
  def read(self, iprot):
14978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14980
      return
14981
    iprot.readStructBegin()
14982
    while True:
14983
      (fname, ftype, fid) = iprot.readFieldBegin()
14984
      if ftype == TType.STOP:
14985
        break
14986
      if fid == 1:
14987
        if ftype == TType.STRUCT:
14988
          self.banner = Banner()
14989
          self.banner.read(iprot)
6850 kshitij.so 14990
        else:
14991
          iprot.skip(ftype)
14992
      else:
14993
        iprot.skip(ftype)
14994
      iprot.readFieldEnd()
14995
    iprot.readStructEnd()
14996
 
14997
  def write(self, oprot):
14998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15000
      return
8579 kshitij.so 15001
    oprot.writeStructBegin('updateBanner_args')
15002
    if self.banner is not None:
15003
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
15004
      self.banner.write(oprot)
6850 kshitij.so 15005
      oprot.writeFieldEnd()
15006
    oprot.writeFieldStop()
15007
    oprot.writeStructEnd()
15008
 
15009
  def validate(self):
15010
    return
15011
 
15012
 
15013
  def __repr__(self):
15014
    L = ['%s=%r' % (key, value)
15015
      for key, value in self.__dict__.iteritems()]
15016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15017
 
15018
  def __eq__(self, other):
15019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15020
 
15021
  def __ne__(self, other):
15022
    return not (self == other)
15023
 
8579 kshitij.so 15024
class updateBanner_result:
6850 kshitij.so 15025
  """
15026
  Attributes:
15027
   - success
15028
  """
15029
 
15030
  thrift_spec = (
15031
    (0, TType.BOOL, 'success', None, None, ), # 0
15032
  )
15033
 
15034
  def __init__(self, success=None,):
15035
    self.success = success
15036
 
15037
  def read(self, iprot):
15038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15040
      return
15041
    iprot.readStructBegin()
15042
    while True:
15043
      (fname, ftype, fid) = iprot.readFieldBegin()
15044
      if ftype == TType.STOP:
15045
        break
15046
      if fid == 0:
15047
        if ftype == TType.BOOL:
15048
          self.success = iprot.readBool();
15049
        else:
15050
          iprot.skip(ftype)
15051
      else:
15052
        iprot.skip(ftype)
15053
      iprot.readFieldEnd()
15054
    iprot.readStructEnd()
15055
 
15056
  def write(self, oprot):
15057
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15058
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15059
      return
8579 kshitij.so 15060
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 15061
    if self.success is not None:
15062
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15063
      oprot.writeBool(self.success)
15064
      oprot.writeFieldEnd()
15065
    oprot.writeFieldStop()
15066
    oprot.writeStructEnd()
15067
 
15068
  def validate(self):
15069
    return
15070
 
15071
 
15072
  def __repr__(self):
15073
    L = ['%s=%r' % (key, value)
15074
      for key, value in self.__dict__.iteritems()]
15075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15076
 
15077
  def __eq__(self, other):
15078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15079
 
15080
  def __ne__(self, other):
15081
    return not (self == other)
15082
 
15083
class getAllBanners_args:
15084
 
15085
  thrift_spec = (
15086
  )
15087
 
15088
  def read(self, iprot):
15089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15091
      return
15092
    iprot.readStructBegin()
15093
    while True:
15094
      (fname, ftype, fid) = iprot.readFieldBegin()
15095
      if ftype == TType.STOP:
15096
        break
15097
      else:
15098
        iprot.skip(ftype)
15099
      iprot.readFieldEnd()
15100
    iprot.readStructEnd()
15101
 
15102
  def write(self, oprot):
15103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15105
      return
15106
    oprot.writeStructBegin('getAllBanners_args')
15107
    oprot.writeFieldStop()
15108
    oprot.writeStructEnd()
15109
 
15110
  def validate(self):
15111
    return
15112
 
15113
 
15114
  def __repr__(self):
15115
    L = ['%s=%r' % (key, value)
15116
      for key, value in self.__dict__.iteritems()]
15117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15118
 
15119
  def __eq__(self, other):
15120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15121
 
15122
  def __ne__(self, other):
15123
    return not (self == other)
15124
 
15125
class getAllBanners_result:
15126
  """
15127
  Attributes:
15128
   - success
15129
  """
15130
 
15131
  thrift_spec = (
8579 kshitij.so 15132
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15133
  )
15134
 
15135
  def __init__(self, success=None,):
15136
    self.success = success
15137
 
15138
  def read(self, iprot):
15139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15141
      return
15142
    iprot.readStructBegin()
15143
    while True:
15144
      (fname, ftype, fid) = iprot.readFieldBegin()
15145
      if ftype == TType.STOP:
15146
        break
15147
      if fid == 0:
15148
        if ftype == TType.LIST:
15149
          self.success = []
12567 amit.gupta 15150
          (_etype207, _size204) = iprot.readListBegin()
15151
          for _i208 in xrange(_size204):
15152
            _elem209 = Banner()
15153
            _elem209.read(iprot)
15154
            self.success.append(_elem209)
6850 kshitij.so 15155
          iprot.readListEnd()
15156
        else:
15157
          iprot.skip(ftype)
15158
      else:
15159
        iprot.skip(ftype)
15160
      iprot.readFieldEnd()
15161
    iprot.readStructEnd()
15162
 
15163
  def write(self, oprot):
15164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15166
      return
15167
    oprot.writeStructBegin('getAllBanners_result')
15168
    if self.success is not None:
15169
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15170
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15171
      for iter210 in self.success:
15172
        iter210.write(oprot)
6850 kshitij.so 15173
      oprot.writeListEnd()
15174
      oprot.writeFieldEnd()
15175
    oprot.writeFieldStop()
15176
    oprot.writeStructEnd()
15177
 
15178
  def validate(self):
15179
    return
15180
 
15181
 
15182
  def __repr__(self):
15183
    L = ['%s=%r' % (key, value)
15184
      for key, value in self.__dict__.iteritems()]
15185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15186
 
15187
  def __eq__(self, other):
15188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15189
 
15190
  def __ne__(self, other):
15191
    return not (self == other)
15192
 
15193
class deleteBanner_args:
15194
  """
15195
  Attributes:
15196
   - bannerName
9155 kshitij.so 15197
   - bannerType
6850 kshitij.so 15198
  """
15199
 
15200
  thrift_spec = (
15201
    None, # 0
15202
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15203
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15204
  )
15205
 
9155 kshitij.so 15206
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15207
    self.bannerName = bannerName
9155 kshitij.so 15208
    self.bannerType = bannerType
6850 kshitij.so 15209
 
15210
  def read(self, iprot):
15211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15213
      return
15214
    iprot.readStructBegin()
15215
    while True:
15216
      (fname, ftype, fid) = iprot.readFieldBegin()
15217
      if ftype == TType.STOP:
15218
        break
15219
      if fid == 1:
15220
        if ftype == TType.STRING:
15221
          self.bannerName = iprot.readString();
15222
        else:
15223
          iprot.skip(ftype)
9155 kshitij.so 15224
      elif fid == 2:
15225
        if ftype == TType.I32:
15226
          self.bannerType = iprot.readI32();
15227
        else:
15228
          iprot.skip(ftype)
6850 kshitij.so 15229
      else:
15230
        iprot.skip(ftype)
15231
      iprot.readFieldEnd()
15232
    iprot.readStructEnd()
15233
 
15234
  def write(self, oprot):
15235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15237
      return
15238
    oprot.writeStructBegin('deleteBanner_args')
15239
    if self.bannerName is not None:
15240
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15241
      oprot.writeString(self.bannerName)
15242
      oprot.writeFieldEnd()
9155 kshitij.so 15243
    if self.bannerType is not None:
15244
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15245
      oprot.writeI32(self.bannerType)
15246
      oprot.writeFieldEnd()
6850 kshitij.so 15247
    oprot.writeFieldStop()
15248
    oprot.writeStructEnd()
15249
 
15250
  def validate(self):
15251
    return
15252
 
15253
 
15254
  def __repr__(self):
15255
    L = ['%s=%r' % (key, value)
15256
      for key, value in self.__dict__.iteritems()]
15257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15258
 
15259
  def __eq__(self, other):
15260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15261
 
15262
  def __ne__(self, other):
15263
    return not (self == other)
15264
 
15265
class deleteBanner_result:
15266
  """
15267
  Attributes:
15268
   - success
15269
  """
15270
 
15271
  thrift_spec = (
15272
    (0, TType.BOOL, 'success', None, None, ), # 0
15273
  )
15274
 
15275
  def __init__(self, success=None,):
15276
    self.success = success
15277
 
15278
  def read(self, iprot):
15279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15281
      return
15282
    iprot.readStructBegin()
15283
    while True:
15284
      (fname, ftype, fid) = iprot.readFieldBegin()
15285
      if ftype == TType.STOP:
15286
        break
15287
      if fid == 0:
15288
        if ftype == TType.BOOL:
15289
          self.success = iprot.readBool();
15290
        else:
15291
          iprot.skip(ftype)
15292
      else:
15293
        iprot.skip(ftype)
15294
      iprot.readFieldEnd()
15295
    iprot.readStructEnd()
15296
 
15297
  def write(self, oprot):
15298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15300
      return
15301
    oprot.writeStructBegin('deleteBanner_result')
15302
    if self.success is not None:
15303
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15304
      oprot.writeBool(self.success)
15305
      oprot.writeFieldEnd()
15306
    oprot.writeFieldStop()
15307
    oprot.writeStructEnd()
15308
 
15309
  def validate(self):
15310
    return
15311
 
15312
 
15313
  def __repr__(self):
15314
    L = ['%s=%r' % (key, value)
15315
      for key, value in self.__dict__.iteritems()]
15316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15317
 
15318
  def __eq__(self, other):
15319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15320
 
15321
  def __ne__(self, other):
15322
    return not (self == other)
15323
 
15324
class getBannerDetails_args:
15325
  """
15326
  Attributes:
15327
   - bannerName
9155 kshitij.so 15328
   - bannerType
6850 kshitij.so 15329
  """
15330
 
15331
  thrift_spec = (
15332
    None, # 0
15333
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15334
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15335
  )
15336
 
9155 kshitij.so 15337
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15338
    self.bannerName = bannerName
9155 kshitij.so 15339
    self.bannerType = bannerType
6850 kshitij.so 15340
 
15341
  def read(self, iprot):
15342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15344
      return
15345
    iprot.readStructBegin()
15346
    while True:
15347
      (fname, ftype, fid) = iprot.readFieldBegin()
15348
      if ftype == TType.STOP:
15349
        break
15350
      if fid == 1:
15351
        if ftype == TType.STRING:
15352
          self.bannerName = iprot.readString();
15353
        else:
15354
          iprot.skip(ftype)
9155 kshitij.so 15355
      elif fid == 2:
15356
        if ftype == TType.I32:
15357
          self.bannerType = iprot.readI32();
15358
        else:
15359
          iprot.skip(ftype)
6850 kshitij.so 15360
      else:
15361
        iprot.skip(ftype)
15362
      iprot.readFieldEnd()
15363
    iprot.readStructEnd()
15364
 
15365
  def write(self, oprot):
15366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15368
      return
15369
    oprot.writeStructBegin('getBannerDetails_args')
15370
    if self.bannerName is not None:
15371
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15372
      oprot.writeString(self.bannerName)
15373
      oprot.writeFieldEnd()
9155 kshitij.so 15374
    if self.bannerType is not None:
15375
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15376
      oprot.writeI32(self.bannerType)
15377
      oprot.writeFieldEnd()
6850 kshitij.so 15378
    oprot.writeFieldStop()
15379
    oprot.writeStructEnd()
15380
 
15381
  def validate(self):
15382
    return
15383
 
15384
 
15385
  def __repr__(self):
15386
    L = ['%s=%r' % (key, value)
15387
      for key, value in self.__dict__.iteritems()]
15388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15389
 
15390
  def __eq__(self, other):
15391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15392
 
15393
  def __ne__(self, other):
15394
    return not (self == other)
15395
 
15396
class getBannerDetails_result:
15397
  """
15398
  Attributes:
15399
   - success
15400
  """
15401
 
15402
  thrift_spec = (
15403
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15404
  )
15405
 
15406
  def __init__(self, success=None,):
15407
    self.success = success
15408
 
15409
  def read(self, iprot):
15410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15412
      return
15413
    iprot.readStructBegin()
15414
    while True:
15415
      (fname, ftype, fid) = iprot.readFieldBegin()
15416
      if ftype == TType.STOP:
15417
        break
15418
      if fid == 0:
15419
        if ftype == TType.STRUCT:
15420
          self.success = Banner()
15421
          self.success.read(iprot)
15422
        else:
15423
          iprot.skip(ftype)
15424
      else:
15425
        iprot.skip(ftype)
15426
      iprot.readFieldEnd()
15427
    iprot.readStructEnd()
15428
 
15429
  def write(self, oprot):
15430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15432
      return
15433
    oprot.writeStructBegin('getBannerDetails_result')
15434
    if self.success is not None:
15435
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15436
      self.success.write(oprot)
15437
      oprot.writeFieldEnd()
15438
    oprot.writeFieldStop()
15439
    oprot.writeStructEnd()
15440
 
15441
  def validate(self):
15442
    return
15443
 
15444
 
15445
  def __repr__(self):
15446
    L = ['%s=%r' % (key, value)
15447
      for key, value in self.__dict__.iteritems()]
15448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15449
 
15450
  def __eq__(self, other):
15451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15452
 
15453
  def __ne__(self, other):
15454
    return not (self == other)
15455
 
15456
class getActiveBanners_args:
15457
 
15458
  thrift_spec = (
15459
  )
15460
 
15461
  def read(self, iprot):
15462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15464
      return
15465
    iprot.readStructBegin()
15466
    while True:
15467
      (fname, ftype, fid) = iprot.readFieldBegin()
15468
      if ftype == TType.STOP:
15469
        break
15470
      else:
15471
        iprot.skip(ftype)
15472
      iprot.readFieldEnd()
15473
    iprot.readStructEnd()
15474
 
15475
  def write(self, oprot):
15476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15478
      return
15479
    oprot.writeStructBegin('getActiveBanners_args')
15480
    oprot.writeFieldStop()
15481
    oprot.writeStructEnd()
15482
 
15483
  def validate(self):
15484
    return
15485
 
15486
 
15487
  def __repr__(self):
15488
    L = ['%s=%r' % (key, value)
15489
      for key, value in self.__dict__.iteritems()]
15490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15491
 
15492
  def __eq__(self, other):
15493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15494
 
15495
  def __ne__(self, other):
15496
    return not (self == other)
15497
 
15498
class getActiveBanners_result:
15499
  """
15500
  Attributes:
15501
   - success
15502
  """
15503
 
15504
  thrift_spec = (
8579 kshitij.so 15505
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15506
  )
15507
 
15508
  def __init__(self, success=None,):
15509
    self.success = success
15510
 
15511
  def read(self, iprot):
15512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15514
      return
15515
    iprot.readStructBegin()
15516
    while True:
15517
      (fname, ftype, fid) = iprot.readFieldBegin()
15518
      if ftype == TType.STOP:
15519
        break
15520
      if fid == 0:
8579 kshitij.so 15521
        if ftype == TType.MAP:
15522
          self.success = {}
12567 amit.gupta 15523
          (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() 
15524
          for _i215 in xrange(_size211):
15525
            _key216 = iprot.readString();
15526
            _val217 = []
15527
            (_etype221, _size218) = iprot.readListBegin()
15528
            for _i222 in xrange(_size218):
15529
              _elem223 = Banner()
15530
              _elem223.read(iprot)
15531
              _val217.append(_elem223)
8579 kshitij.so 15532
            iprot.readListEnd()
12567 amit.gupta 15533
            self.success[_key216] = _val217
8579 kshitij.so 15534
          iprot.readMapEnd()
6850 kshitij.so 15535
        else:
15536
          iprot.skip(ftype)
15537
      else:
15538
        iprot.skip(ftype)
15539
      iprot.readFieldEnd()
15540
    iprot.readStructEnd()
15541
 
15542
  def write(self, oprot):
15543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15545
      return
15546
    oprot.writeStructBegin('getActiveBanners_result')
15547
    if self.success is not None:
8579 kshitij.so 15548
      oprot.writeFieldBegin('success', TType.MAP, 0)
15549
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 15550
      for kiter224,viter225 in self.success.items():
15551
        oprot.writeString(kiter224)
15552
        oprot.writeListBegin(TType.STRUCT, len(viter225))
15553
        for iter226 in viter225:
15554
          iter226.write(oprot)
8579 kshitij.so 15555
        oprot.writeListEnd()
15556
      oprot.writeMapEnd()
6850 kshitij.so 15557
      oprot.writeFieldEnd()
15558
    oprot.writeFieldStop()
15559
    oprot.writeStructEnd()
15560
 
15561
  def validate(self):
15562
    return
15563
 
15564
 
15565
  def __repr__(self):
15566
    L = ['%s=%r' % (key, value)
15567
      for key, value in self.__dict__.iteritems()]
15568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15569
 
15570
  def __eq__(self, other):
15571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15572
 
15573
  def __ne__(self, other):
15574
    return not (self == other)
15575
 
6849 kshitij.so 15576
class addBannerMap_args:
15577
  """
15578
  Attributes:
8579 kshitij.so 15579
   - bannerMaps
6849 kshitij.so 15580
  """
15581
 
15582
  thrift_spec = (
15583
    None, # 0
8579 kshitij.so 15584
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15585
  )
15586
 
8579 kshitij.so 15587
  def __init__(self, bannerMaps=None,):
15588
    self.bannerMaps = bannerMaps
6849 kshitij.so 15589
 
15590
  def read(self, iprot):
15591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15593
      return
15594
    iprot.readStructBegin()
15595
    while True:
15596
      (fname, ftype, fid) = iprot.readFieldBegin()
15597
      if ftype == TType.STOP:
15598
        break
15599
      if fid == 1:
8579 kshitij.so 15600
        if ftype == TType.LIST:
15601
          self.bannerMaps = []
12567 amit.gupta 15602
          (_etype230, _size227) = iprot.readListBegin()
15603
          for _i231 in xrange(_size227):
15604
            _elem232 = BannerMap()
15605
            _elem232.read(iprot)
15606
            self.bannerMaps.append(_elem232)
8579 kshitij.so 15607
          iprot.readListEnd()
6849 kshitij.so 15608
        else:
15609
          iprot.skip(ftype)
8579 kshitij.so 15610
      else:
15611
        iprot.skip(ftype)
15612
      iprot.readFieldEnd()
15613
    iprot.readStructEnd()
15614
 
15615
  def write(self, oprot):
15616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15618
      return
15619
    oprot.writeStructBegin('addBannerMap_args')
15620
    if self.bannerMaps is not None:
15621
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15622
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
12567 amit.gupta 15623
      for iter233 in self.bannerMaps:
15624
        iter233.write(oprot)
8579 kshitij.so 15625
      oprot.writeListEnd()
15626
      oprot.writeFieldEnd()
15627
    oprot.writeFieldStop()
15628
    oprot.writeStructEnd()
15629
 
15630
  def validate(self):
15631
    return
15632
 
15633
 
15634
  def __repr__(self):
15635
    L = ['%s=%r' % (key, value)
15636
      for key, value in self.__dict__.iteritems()]
15637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15638
 
15639
  def __eq__(self, other):
15640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15641
 
15642
  def __ne__(self, other):
15643
    return not (self == other)
15644
 
15645
class addBannerMap_result:
15646
  """
15647
  Attributes:
15648
   - success
15649
  """
15650
 
15651
  thrift_spec = (
15652
    (0, TType.BOOL, 'success', None, None, ), # 0
15653
  )
15654
 
15655
  def __init__(self, success=None,):
15656
    self.success = success
15657
 
15658
  def read(self, iprot):
15659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15661
      return
15662
    iprot.readStructBegin()
15663
    while True:
15664
      (fname, ftype, fid) = iprot.readFieldBegin()
15665
      if ftype == TType.STOP:
15666
        break
15667
      if fid == 0:
15668
        if ftype == TType.BOOL:
15669
          self.success = iprot.readBool();
6849 kshitij.so 15670
        else:
15671
          iprot.skip(ftype)
8579 kshitij.so 15672
      else:
15673
        iprot.skip(ftype)
15674
      iprot.readFieldEnd()
15675
    iprot.readStructEnd()
15676
 
15677
  def write(self, oprot):
15678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15680
      return
15681
    oprot.writeStructBegin('addBannerMap_result')
15682
    if self.success is not None:
15683
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15684
      oprot.writeBool(self.success)
15685
      oprot.writeFieldEnd()
15686
    oprot.writeFieldStop()
15687
    oprot.writeStructEnd()
15688
 
15689
  def validate(self):
15690
    return
15691
 
15692
 
15693
  def __repr__(self):
15694
    L = ['%s=%r' % (key, value)
15695
      for key, value in self.__dict__.iteritems()]
15696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15697
 
15698
  def __eq__(self, other):
15699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15700
 
15701
  def __ne__(self, other):
15702
    return not (self == other)
15703
 
15704
class updateBannerMap_args:
15705
  """
15706
  Attributes:
15707
   - bannerMap
15708
  """
15709
 
15710
  thrift_spec = (
15711
    None, # 0
15712
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15713
  )
15714
 
15715
  def __init__(self, bannerMap=None,):
15716
    self.bannerMap = bannerMap
15717
 
15718
  def read(self, iprot):
15719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15721
      return
15722
    iprot.readStructBegin()
15723
    while True:
15724
      (fname, ftype, fid) = iprot.readFieldBegin()
15725
      if ftype == TType.STOP:
15726
        break
15727
      if fid == 1:
15728
        if ftype == TType.STRUCT:
15729
          self.bannerMap = BannerMap()
15730
          self.bannerMap.read(iprot)
6849 kshitij.so 15731
        else:
15732
          iprot.skip(ftype)
15733
      else:
15734
        iprot.skip(ftype)
15735
      iprot.readFieldEnd()
15736
    iprot.readStructEnd()
15737
 
15738
  def write(self, oprot):
15739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15741
      return
8579 kshitij.so 15742
    oprot.writeStructBegin('updateBannerMap_args')
15743
    if self.bannerMap is not None:
15744
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
15745
      self.bannerMap.write(oprot)
6849 kshitij.so 15746
      oprot.writeFieldEnd()
15747
    oprot.writeFieldStop()
15748
    oprot.writeStructEnd()
15749
 
15750
  def validate(self):
15751
    return
15752
 
15753
 
15754
  def __repr__(self):
15755
    L = ['%s=%r' % (key, value)
15756
      for key, value in self.__dict__.iteritems()]
15757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15758
 
15759
  def __eq__(self, other):
15760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15761
 
15762
  def __ne__(self, other):
15763
    return not (self == other)
15764
 
8579 kshitij.so 15765
class updateBannerMap_result:
6849 kshitij.so 15766
  """
15767
  Attributes:
15768
   - success
15769
  """
15770
 
15771
  thrift_spec = (
15772
    (0, TType.BOOL, 'success', None, None, ), # 0
15773
  )
15774
 
15775
  def __init__(self, success=None,):
15776
    self.success = success
15777
 
15778
  def read(self, iprot):
15779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15781
      return
15782
    iprot.readStructBegin()
15783
    while True:
15784
      (fname, ftype, fid) = iprot.readFieldBegin()
15785
      if ftype == TType.STOP:
15786
        break
15787
      if fid == 0:
15788
        if ftype == TType.BOOL:
15789
          self.success = iprot.readBool();
15790
        else:
15791
          iprot.skip(ftype)
15792
      else:
15793
        iprot.skip(ftype)
15794
      iprot.readFieldEnd()
15795
    iprot.readStructEnd()
15796
 
15797
  def write(self, oprot):
15798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15800
      return
8579 kshitij.so 15801
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 15802
    if self.success is not None:
15803
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15804
      oprot.writeBool(self.success)
15805
      oprot.writeFieldEnd()
15806
    oprot.writeFieldStop()
15807
    oprot.writeStructEnd()
15808
 
15809
  def validate(self):
15810
    return
15811
 
15812
 
15813
  def __repr__(self):
15814
    L = ['%s=%r' % (key, value)
15815
      for key, value in self.__dict__.iteritems()]
15816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15817
 
15818
  def __eq__(self, other):
15819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15820
 
15821
  def __ne__(self, other):
15822
    return not (self == other)
15823
 
15824
class deleteBannerMap_args:
15825
  """
15826
  Attributes:
15827
   - bannerName
15828
  """
15829
 
15830
  thrift_spec = (
15831
    None, # 0
15832
    (1, TType.STRING, 'bannerName', None, None, ), # 1
15833
  )
15834
 
15835
  def __init__(self, bannerName=None,):
15836
    self.bannerName = bannerName
15837
 
15838
  def read(self, iprot):
15839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15841
      return
15842
    iprot.readStructBegin()
15843
    while True:
15844
      (fname, ftype, fid) = iprot.readFieldBegin()
15845
      if ftype == TType.STOP:
15846
        break
15847
      if fid == 1:
15848
        if ftype == TType.STRING:
15849
          self.bannerName = iprot.readString();
15850
        else:
15851
          iprot.skip(ftype)
15852
      else:
15853
        iprot.skip(ftype)
15854
      iprot.readFieldEnd()
15855
    iprot.readStructEnd()
15856
 
15857
  def write(self, oprot):
15858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15860
      return
15861
    oprot.writeStructBegin('deleteBannerMap_args')
15862
    if self.bannerName is not None:
15863
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15864
      oprot.writeString(self.bannerName)
15865
      oprot.writeFieldEnd()
15866
    oprot.writeFieldStop()
15867
    oprot.writeStructEnd()
15868
 
15869
  def validate(self):
15870
    return
15871
 
15872
 
15873
  def __repr__(self):
15874
    L = ['%s=%r' % (key, value)
15875
      for key, value in self.__dict__.iteritems()]
15876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15877
 
15878
  def __eq__(self, other):
15879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15880
 
15881
  def __ne__(self, other):
15882
    return not (self == other)
15883
 
15884
class deleteBannerMap_result:
15885
  """
15886
  Attributes:
15887
   - success
15888
  """
15889
 
15890
  thrift_spec = (
15891
    (0, TType.BOOL, 'success', None, None, ), # 0
15892
  )
15893
 
15894
  def __init__(self, success=None,):
15895
    self.success = success
15896
 
15897
  def read(self, iprot):
15898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15900
      return
15901
    iprot.readStructBegin()
15902
    while True:
15903
      (fname, ftype, fid) = iprot.readFieldBegin()
15904
      if ftype == TType.STOP:
15905
        break
15906
      if fid == 0:
15907
        if ftype == TType.BOOL:
15908
          self.success = iprot.readBool();
15909
        else:
15910
          iprot.skip(ftype)
15911
      else:
15912
        iprot.skip(ftype)
15913
      iprot.readFieldEnd()
15914
    iprot.readStructEnd()
15915
 
15916
  def write(self, oprot):
15917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15919
      return
15920
    oprot.writeStructBegin('deleteBannerMap_result')
15921
    if self.success is not None:
15922
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15923
      oprot.writeBool(self.success)
15924
      oprot.writeFieldEnd()
15925
    oprot.writeFieldStop()
15926
    oprot.writeStructEnd()
15927
 
15928
  def validate(self):
15929
    return
15930
 
15931
 
15932
  def __repr__(self):
15933
    L = ['%s=%r' % (key, value)
15934
      for key, value in self.__dict__.iteritems()]
15935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15936
 
15937
  def __eq__(self, other):
15938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15939
 
15940
  def __ne__(self, other):
15941
    return not (self == other)
15942
 
15943
class getBannerMapDetails_args:
15944
  """
15945
  Attributes:
15946
   - bannerName
9155 kshitij.so 15947
   - bannerType
6849 kshitij.so 15948
  """
15949
 
15950
  thrift_spec = (
15951
    None, # 0
15952
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15953
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 15954
  )
15955
 
9155 kshitij.so 15956
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 15957
    self.bannerName = bannerName
9155 kshitij.so 15958
    self.bannerType = bannerType
6849 kshitij.so 15959
 
15960
  def read(self, iprot):
15961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15963
      return
15964
    iprot.readStructBegin()
15965
    while True:
15966
      (fname, ftype, fid) = iprot.readFieldBegin()
15967
      if ftype == TType.STOP:
15968
        break
15969
      if fid == 1:
15970
        if ftype == TType.STRING:
15971
          self.bannerName = iprot.readString();
15972
        else:
15973
          iprot.skip(ftype)
9155 kshitij.so 15974
      elif fid == 2:
15975
        if ftype == TType.I32:
15976
          self.bannerType = iprot.readI32();
15977
        else:
15978
          iprot.skip(ftype)
6849 kshitij.so 15979
      else:
15980
        iprot.skip(ftype)
15981
      iprot.readFieldEnd()
15982
    iprot.readStructEnd()
15983
 
15984
  def write(self, oprot):
15985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15987
      return
15988
    oprot.writeStructBegin('getBannerMapDetails_args')
15989
    if self.bannerName is not None:
15990
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15991
      oprot.writeString(self.bannerName)
15992
      oprot.writeFieldEnd()
9155 kshitij.so 15993
    if self.bannerType is not None:
15994
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15995
      oprot.writeI32(self.bannerType)
15996
      oprot.writeFieldEnd()
6849 kshitij.so 15997
    oprot.writeFieldStop()
15998
    oprot.writeStructEnd()
15999
 
16000
  def validate(self):
16001
    return
16002
 
16003
 
16004
  def __repr__(self):
16005
    L = ['%s=%r' % (key, value)
16006
      for key, value in self.__dict__.iteritems()]
16007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16008
 
16009
  def __eq__(self, other):
16010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16011
 
16012
  def __ne__(self, other):
16013
    return not (self == other)
16014
 
16015
class getBannerMapDetails_result:
16016
  """
16017
  Attributes:
16018
   - success
16019
  """
16020
 
16021
  thrift_spec = (
16022
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
16023
  )
16024
 
16025
  def __init__(self, success=None,):
16026
    self.success = success
16027
 
16028
  def read(self, iprot):
16029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16031
      return
16032
    iprot.readStructBegin()
16033
    while True:
16034
      (fname, ftype, fid) = iprot.readFieldBegin()
16035
      if ftype == TType.STOP:
16036
        break
16037
      if fid == 0:
16038
        if ftype == TType.LIST:
16039
          self.success = []
12567 amit.gupta 16040
          (_etype237, _size234) = iprot.readListBegin()
16041
          for _i238 in xrange(_size234):
16042
            _elem239 = BannerMap()
16043
            _elem239.read(iprot)
16044
            self.success.append(_elem239)
6849 kshitij.so 16045
          iprot.readListEnd()
16046
        else:
16047
          iprot.skip(ftype)
16048
      else:
16049
        iprot.skip(ftype)
16050
      iprot.readFieldEnd()
16051
    iprot.readStructEnd()
16052
 
16053
  def write(self, oprot):
16054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16056
      return
16057
    oprot.writeStructBegin('getBannerMapDetails_result')
16058
    if self.success is not None:
16059
      oprot.writeFieldBegin('success', TType.LIST, 0)
16060
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16061
      for iter240 in self.success:
16062
        iter240.write(oprot)
6849 kshitij.so 16063
      oprot.writeListEnd()
16064
      oprot.writeFieldEnd()
16065
    oprot.writeFieldStop()
16066
    oprot.writeStructEnd()
16067
 
16068
  def validate(self):
16069
    return
16070
 
16071
 
16072
  def __repr__(self):
16073
    L = ['%s=%r' % (key, value)
16074
      for key, value in self.__dict__.iteritems()]
16075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16076
 
16077
  def __eq__(self, other):
16078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16079
 
16080
  def __ne__(self, other):
16081
    return not (self == other)
16082
 
8579 kshitij.so 16083
class addBannerUri_args:
16084
  """
16085
  Attributes:
16086
   - bannerUriMappings
16087
  """
16088
 
16089
  thrift_spec = (
16090
    None, # 0
16091
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
16092
  )
16093
 
16094
  def __init__(self, bannerUriMappings=None,):
16095
    self.bannerUriMappings = bannerUriMappings
16096
 
16097
  def read(self, iprot):
16098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16100
      return
16101
    iprot.readStructBegin()
16102
    while True:
16103
      (fname, ftype, fid) = iprot.readFieldBegin()
16104
      if ftype == TType.STOP:
16105
        break
16106
      if fid == 1:
16107
        if ftype == TType.LIST:
16108
          self.bannerUriMappings = []
12567 amit.gupta 16109
          (_etype244, _size241) = iprot.readListBegin()
16110
          for _i245 in xrange(_size241):
16111
            _elem246 = BannerUriMapping()
16112
            _elem246.read(iprot)
16113
            self.bannerUriMappings.append(_elem246)
8579 kshitij.so 16114
          iprot.readListEnd()
16115
        else:
16116
          iprot.skip(ftype)
16117
      else:
16118
        iprot.skip(ftype)
16119
      iprot.readFieldEnd()
16120
    iprot.readStructEnd()
16121
 
16122
  def write(self, oprot):
16123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16125
      return
16126
    oprot.writeStructBegin('addBannerUri_args')
16127
    if self.bannerUriMappings is not None:
16128
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16129
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
12567 amit.gupta 16130
      for iter247 in self.bannerUriMappings:
16131
        iter247.write(oprot)
8579 kshitij.so 16132
      oprot.writeListEnd()
16133
      oprot.writeFieldEnd()
16134
    oprot.writeFieldStop()
16135
    oprot.writeStructEnd()
16136
 
16137
  def validate(self):
16138
    return
16139
 
16140
 
16141
  def __repr__(self):
16142
    L = ['%s=%r' % (key, value)
16143
      for key, value in self.__dict__.iteritems()]
16144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16145
 
16146
  def __eq__(self, other):
16147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16148
 
16149
  def __ne__(self, other):
16150
    return not (self == other)
16151
 
16152
class addBannerUri_result:
16153
 
16154
  thrift_spec = (
16155
  )
16156
 
16157
  def read(self, iprot):
16158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16160
      return
16161
    iprot.readStructBegin()
16162
    while True:
16163
      (fname, ftype, fid) = iprot.readFieldBegin()
16164
      if ftype == TType.STOP:
16165
        break
16166
      else:
16167
        iprot.skip(ftype)
16168
      iprot.readFieldEnd()
16169
    iprot.readStructEnd()
16170
 
16171
  def write(self, oprot):
16172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16174
      return
16175
    oprot.writeStructBegin('addBannerUri_result')
16176
    oprot.writeFieldStop()
16177
    oprot.writeStructEnd()
16178
 
16179
  def validate(self):
16180
    return
16181
 
16182
 
16183
  def __repr__(self):
16184
    L = ['%s=%r' % (key, value)
16185
      for key, value in self.__dict__.iteritems()]
16186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16187
 
16188
  def __eq__(self, other):
16189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16190
 
16191
  def __ne__(self, other):
16192
    return not (self == other)
16193
 
16194
class getUriMapping_args:
16195
  """
16196
  Attributes:
16197
   - bannerName
9155 kshitij.so 16198
   - bannerType
8579 kshitij.so 16199
  """
16200
 
16201
  thrift_spec = (
16202
    None, # 0
16203
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16204
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16205
  )
16206
 
9155 kshitij.so 16207
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16208
    self.bannerName = bannerName
9155 kshitij.so 16209
    self.bannerType = bannerType
8579 kshitij.so 16210
 
16211
  def read(self, iprot):
16212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16214
      return
16215
    iprot.readStructBegin()
16216
    while True:
16217
      (fname, ftype, fid) = iprot.readFieldBegin()
16218
      if ftype == TType.STOP:
16219
        break
16220
      if fid == 1:
16221
        if ftype == TType.STRING:
16222
          self.bannerName = iprot.readString();
16223
        else:
16224
          iprot.skip(ftype)
9155 kshitij.so 16225
      elif fid == 2:
16226
        if ftype == TType.I32:
16227
          self.bannerType = iprot.readI32();
16228
        else:
16229
          iprot.skip(ftype)
8579 kshitij.so 16230
      else:
16231
        iprot.skip(ftype)
16232
      iprot.readFieldEnd()
16233
    iprot.readStructEnd()
16234
 
16235
  def write(self, oprot):
16236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16238
      return
16239
    oprot.writeStructBegin('getUriMapping_args')
16240
    if self.bannerName is not None:
16241
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16242
      oprot.writeString(self.bannerName)
16243
      oprot.writeFieldEnd()
9155 kshitij.so 16244
    if self.bannerType is not None:
16245
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16246
      oprot.writeI32(self.bannerType)
16247
      oprot.writeFieldEnd()
8579 kshitij.so 16248
    oprot.writeFieldStop()
16249
    oprot.writeStructEnd()
16250
 
16251
  def validate(self):
16252
    return
16253
 
16254
 
16255
  def __repr__(self):
16256
    L = ['%s=%r' % (key, value)
16257
      for key, value in self.__dict__.iteritems()]
16258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16259
 
16260
  def __eq__(self, other):
16261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16262
 
16263
  def __ne__(self, other):
16264
    return not (self == other)
16265
 
16266
class getUriMapping_result:
16267
  """
16268
  Attributes:
16269
   - success
16270
  """
16271
 
16272
  thrift_spec = (
16273
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16274
  )
16275
 
16276
  def __init__(self, success=None,):
16277
    self.success = success
16278
 
16279
  def read(self, iprot):
16280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16282
      return
16283
    iprot.readStructBegin()
16284
    while True:
16285
      (fname, ftype, fid) = iprot.readFieldBegin()
16286
      if ftype == TType.STOP:
16287
        break
16288
      if fid == 0:
16289
        if ftype == TType.LIST:
16290
          self.success = []
12567 amit.gupta 16291
          (_etype251, _size248) = iprot.readListBegin()
16292
          for _i252 in xrange(_size248):
16293
            _elem253 = BannerUriMapping()
16294
            _elem253.read(iprot)
16295
            self.success.append(_elem253)
8579 kshitij.so 16296
          iprot.readListEnd()
16297
        else:
16298
          iprot.skip(ftype)
16299
      else:
16300
        iprot.skip(ftype)
16301
      iprot.readFieldEnd()
16302
    iprot.readStructEnd()
16303
 
16304
  def write(self, oprot):
16305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16307
      return
16308
    oprot.writeStructBegin('getUriMapping_result')
16309
    if self.success is not None:
16310
      oprot.writeFieldBegin('success', TType.LIST, 0)
16311
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16312
      for iter254 in self.success:
16313
        iter254.write(oprot)
8579 kshitij.so 16314
      oprot.writeListEnd()
16315
      oprot.writeFieldEnd()
16316
    oprot.writeFieldStop()
16317
    oprot.writeStructEnd()
16318
 
16319
  def validate(self):
16320
    return
16321
 
16322
 
16323
  def __repr__(self):
16324
    L = ['%s=%r' % (key, value)
16325
      for key, value in self.__dict__.iteritems()]
16326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16327
 
16328
  def __eq__(self, other):
16329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16330
 
16331
  def __ne__(self, other):
16332
    return not (self == other)
16333
 
16334
class addCampaign_args:
16335
  """
16336
  Attributes:
16337
   - campaign
16338
  """
16339
 
16340
  thrift_spec = (
16341
    None, # 0
16342
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16343
  )
16344
 
16345
  def __init__(self, campaign=None,):
16346
    self.campaign = campaign
16347
 
16348
  def read(self, iprot):
16349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16351
      return
16352
    iprot.readStructBegin()
16353
    while True:
16354
      (fname, ftype, fid) = iprot.readFieldBegin()
16355
      if ftype == TType.STOP:
16356
        break
16357
      if fid == 1:
16358
        if ftype == TType.STRUCT:
16359
          self.campaign = Campaign()
16360
          self.campaign.read(iprot)
16361
        else:
16362
          iprot.skip(ftype)
16363
      else:
16364
        iprot.skip(ftype)
16365
      iprot.readFieldEnd()
16366
    iprot.readStructEnd()
16367
 
16368
  def write(self, oprot):
16369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16371
      return
16372
    oprot.writeStructBegin('addCampaign_args')
16373
    if self.campaign is not None:
16374
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16375
      self.campaign.write(oprot)
16376
      oprot.writeFieldEnd()
16377
    oprot.writeFieldStop()
16378
    oprot.writeStructEnd()
16379
 
16380
  def validate(self):
16381
    return
16382
 
16383
 
16384
  def __repr__(self):
16385
    L = ['%s=%r' % (key, value)
16386
      for key, value in self.__dict__.iteritems()]
16387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16388
 
16389
  def __eq__(self, other):
16390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16391
 
16392
  def __ne__(self, other):
16393
    return not (self == other)
16394
 
16395
class addCampaign_result:
16396
 
16397
  thrift_spec = (
16398
  )
16399
 
16400
  def read(self, iprot):
16401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16403
      return
16404
    iprot.readStructBegin()
16405
    while True:
16406
      (fname, ftype, fid) = iprot.readFieldBegin()
16407
      if ftype == TType.STOP:
16408
        break
16409
      else:
16410
        iprot.skip(ftype)
16411
      iprot.readFieldEnd()
16412
    iprot.readStructEnd()
16413
 
16414
  def write(self, oprot):
16415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16417
      return
16418
    oprot.writeStructBegin('addCampaign_result')
16419
    oprot.writeFieldStop()
16420
    oprot.writeStructEnd()
16421
 
16422
  def validate(self):
16423
    return
16424
 
16425
 
16426
  def __repr__(self):
16427
    L = ['%s=%r' % (key, value)
16428
      for key, value in self.__dict__.iteritems()]
16429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16430
 
16431
  def __eq__(self, other):
16432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16433
 
16434
  def __ne__(self, other):
16435
    return not (self == other)
16436
 
16437
class getCampaigns_args:
16438
  """
16439
  Attributes:
16440
   - campaignName
16441
  """
16442
 
16443
  thrift_spec = (
16444
    None, # 0
16445
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16446
  )
16447
 
16448
  def __init__(self, campaignName=None,):
16449
    self.campaignName = campaignName
16450
 
16451
  def read(self, iprot):
16452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16454
      return
16455
    iprot.readStructBegin()
16456
    while True:
16457
      (fname, ftype, fid) = iprot.readFieldBegin()
16458
      if ftype == TType.STOP:
16459
        break
16460
      if fid == 1:
16461
        if ftype == TType.STRING:
16462
          self.campaignName = iprot.readString();
16463
        else:
16464
          iprot.skip(ftype)
16465
      else:
16466
        iprot.skip(ftype)
16467
      iprot.readFieldEnd()
16468
    iprot.readStructEnd()
16469
 
16470
  def write(self, oprot):
16471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16473
      return
16474
    oprot.writeStructBegin('getCampaigns_args')
16475
    if self.campaignName is not None:
16476
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16477
      oprot.writeString(self.campaignName)
16478
      oprot.writeFieldEnd()
16479
    oprot.writeFieldStop()
16480
    oprot.writeStructEnd()
16481
 
16482
  def validate(self):
16483
    return
16484
 
16485
 
16486
  def __repr__(self):
16487
    L = ['%s=%r' % (key, value)
16488
      for key, value in self.__dict__.iteritems()]
16489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16490
 
16491
  def __eq__(self, other):
16492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16493
 
16494
  def __ne__(self, other):
16495
    return not (self == other)
16496
 
16497
class getCampaigns_result:
16498
  """
16499
  Attributes:
16500
   - success
16501
  """
16502
 
16503
  thrift_spec = (
16504
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16505
  )
16506
 
16507
  def __init__(self, success=None,):
16508
    self.success = success
16509
 
16510
  def read(self, iprot):
16511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16513
      return
16514
    iprot.readStructBegin()
16515
    while True:
16516
      (fname, ftype, fid) = iprot.readFieldBegin()
16517
      if ftype == TType.STOP:
16518
        break
16519
      if fid == 0:
16520
        if ftype == TType.LIST:
16521
          self.success = []
12567 amit.gupta 16522
          (_etype258, _size255) = iprot.readListBegin()
16523
          for _i259 in xrange(_size255):
16524
            _elem260 = Campaign()
16525
            _elem260.read(iprot)
16526
            self.success.append(_elem260)
8579 kshitij.so 16527
          iprot.readListEnd()
16528
        else:
16529
          iprot.skip(ftype)
16530
      else:
16531
        iprot.skip(ftype)
16532
      iprot.readFieldEnd()
16533
    iprot.readStructEnd()
16534
 
16535
  def write(self, oprot):
16536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16538
      return
16539
    oprot.writeStructBegin('getCampaigns_result')
16540
    if self.success is not None:
16541
      oprot.writeFieldBegin('success', TType.LIST, 0)
16542
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16543
      for iter261 in self.success:
16544
        iter261.write(oprot)
8579 kshitij.so 16545
      oprot.writeListEnd()
16546
      oprot.writeFieldEnd()
16547
    oprot.writeFieldStop()
16548
    oprot.writeStructEnd()
16549
 
16550
  def validate(self):
16551
    return
16552
 
16553
 
16554
  def __repr__(self):
16555
    L = ['%s=%r' % (key, value)
16556
      for key, value in self.__dict__.iteritems()]
16557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16558
 
16559
  def __eq__(self, other):
16560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16561
 
16562
  def __ne__(self, other):
16563
    return not (self == other)
16564
 
16565
class deleteCampaign_args:
16566
  """
16567
  Attributes:
16568
   - campaignId
16569
  """
16570
 
16571
  thrift_spec = (
16572
    None, # 0
16573
    (1, TType.I64, 'campaignId', None, None, ), # 1
16574
  )
16575
 
16576
  def __init__(self, campaignId=None,):
16577
    self.campaignId = campaignId
16578
 
16579
  def read(self, iprot):
16580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16582
      return
16583
    iprot.readStructBegin()
16584
    while True:
16585
      (fname, ftype, fid) = iprot.readFieldBegin()
16586
      if ftype == TType.STOP:
16587
        break
16588
      if fid == 1:
16589
        if ftype == TType.I64:
16590
          self.campaignId = iprot.readI64();
16591
        else:
16592
          iprot.skip(ftype)
16593
      else:
16594
        iprot.skip(ftype)
16595
      iprot.readFieldEnd()
16596
    iprot.readStructEnd()
16597
 
16598
  def write(self, oprot):
16599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16601
      return
16602
    oprot.writeStructBegin('deleteCampaign_args')
16603
    if self.campaignId is not None:
16604
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16605
      oprot.writeI64(self.campaignId)
16606
      oprot.writeFieldEnd()
16607
    oprot.writeFieldStop()
16608
    oprot.writeStructEnd()
16609
 
16610
  def validate(self):
16611
    return
16612
 
16613
 
16614
  def __repr__(self):
16615
    L = ['%s=%r' % (key, value)
16616
      for key, value in self.__dict__.iteritems()]
16617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16618
 
16619
  def __eq__(self, other):
16620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16621
 
16622
  def __ne__(self, other):
16623
    return not (self == other)
16624
 
16625
class deleteCampaign_result:
16626
 
16627
  thrift_spec = (
16628
  )
16629
 
16630
  def read(self, iprot):
16631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16633
      return
16634
    iprot.readStructBegin()
16635
    while True:
16636
      (fname, ftype, fid) = iprot.readFieldBegin()
16637
      if ftype == TType.STOP:
16638
        break
16639
      else:
16640
        iprot.skip(ftype)
16641
      iprot.readFieldEnd()
16642
    iprot.readStructEnd()
16643
 
16644
  def write(self, oprot):
16645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16647
      return
16648
    oprot.writeStructBegin('deleteCampaign_result')
16649
    oprot.writeFieldStop()
16650
    oprot.writeStructEnd()
16651
 
16652
  def validate(self):
16653
    return
16654
 
16655
 
16656
  def __repr__(self):
16657
    L = ['%s=%r' % (key, value)
16658
      for key, value in self.__dict__.iteritems()]
16659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16660
 
16661
  def __eq__(self, other):
16662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16663
 
16664
  def __ne__(self, other):
16665
    return not (self == other)
16666
 
16667
class getAllCampaigns_args:
16668
 
16669
  thrift_spec = (
16670
  )
16671
 
16672
  def read(self, iprot):
16673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16675
      return
16676
    iprot.readStructBegin()
16677
    while True:
16678
      (fname, ftype, fid) = iprot.readFieldBegin()
16679
      if ftype == TType.STOP:
16680
        break
16681
      else:
16682
        iprot.skip(ftype)
16683
      iprot.readFieldEnd()
16684
    iprot.readStructEnd()
16685
 
16686
  def write(self, oprot):
16687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16689
      return
16690
    oprot.writeStructBegin('getAllCampaigns_args')
16691
    oprot.writeFieldStop()
16692
    oprot.writeStructEnd()
16693
 
16694
  def validate(self):
16695
    return
16696
 
16697
 
16698
  def __repr__(self):
16699
    L = ['%s=%r' % (key, value)
16700
      for key, value in self.__dict__.iteritems()]
16701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16702
 
16703
  def __eq__(self, other):
16704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16705
 
16706
  def __ne__(self, other):
16707
    return not (self == other)
16708
 
16709
class getAllCampaigns_result:
16710
  """
16711
  Attributes:
16712
   - success
16713
  """
16714
 
16715
  thrift_spec = (
16716
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16717
  )
16718
 
16719
  def __init__(self, success=None,):
16720
    self.success = success
16721
 
16722
  def read(self, iprot):
16723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16725
      return
16726
    iprot.readStructBegin()
16727
    while True:
16728
      (fname, ftype, fid) = iprot.readFieldBegin()
16729
      if ftype == TType.STOP:
16730
        break
16731
      if fid == 0:
16732
        if ftype == TType.LIST:
16733
          self.success = []
12567 amit.gupta 16734
          (_etype265, _size262) = iprot.readListBegin()
16735
          for _i266 in xrange(_size262):
16736
            _elem267 = iprot.readString();
16737
            self.success.append(_elem267)
8579 kshitij.so 16738
          iprot.readListEnd()
16739
        else:
16740
          iprot.skip(ftype)
16741
      else:
16742
        iprot.skip(ftype)
16743
      iprot.readFieldEnd()
16744
    iprot.readStructEnd()
16745
 
16746
  def write(self, oprot):
16747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16749
      return
16750
    oprot.writeStructBegin('getAllCampaigns_result')
16751
    if self.success is not None:
16752
      oprot.writeFieldBegin('success', TType.LIST, 0)
16753
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 16754
      for iter268 in self.success:
16755
        oprot.writeString(iter268)
8579 kshitij.so 16756
      oprot.writeListEnd()
16757
      oprot.writeFieldEnd()
16758
    oprot.writeFieldStop()
16759
    oprot.writeStructEnd()
16760
 
16761
  def validate(self):
16762
    return
16763
 
16764
 
16765
  def __repr__(self):
16766
    L = ['%s=%r' % (key, value)
16767
      for key, value in self.__dict__.iteritems()]
16768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16769
 
16770
  def __eq__(self, other):
16771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16772
 
16773
  def __ne__(self, other):
16774
    return not (self == other)
16775
 
9155 kshitij.so 16776
class getActiveBannersForMobileSite_args:
16777
 
16778
  thrift_spec = (
16779
  )
16780
 
16781
  def read(self, iprot):
16782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16784
      return
16785
    iprot.readStructBegin()
16786
    while True:
16787
      (fname, ftype, fid) = iprot.readFieldBegin()
16788
      if ftype == TType.STOP:
16789
        break
16790
      else:
16791
        iprot.skip(ftype)
16792
      iprot.readFieldEnd()
16793
    iprot.readStructEnd()
16794
 
16795
  def write(self, oprot):
16796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16798
      return
16799
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
16800
    oprot.writeFieldStop()
16801
    oprot.writeStructEnd()
16802
 
16803
  def validate(self):
16804
    return
16805
 
16806
 
16807
  def __repr__(self):
16808
    L = ['%s=%r' % (key, value)
16809
      for key, value in self.__dict__.iteritems()]
16810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16811
 
16812
  def __eq__(self, other):
16813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16814
 
16815
  def __ne__(self, other):
16816
    return not (self == other)
16817
 
16818
class getActiveBannersForMobileSite_result:
16819
  """
16820
  Attributes:
16821
   - success
16822
  """
16823
 
16824
  thrift_spec = (
16825
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
16826
  )
16827
 
16828
  def __init__(self, success=None,):
16829
    self.success = success
16830
 
16831
  def read(self, iprot):
16832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16834
      return
16835
    iprot.readStructBegin()
16836
    while True:
16837
      (fname, ftype, fid) = iprot.readFieldBegin()
16838
      if ftype == TType.STOP:
16839
        break
16840
      if fid == 0:
16841
        if ftype == TType.MAP:
16842
          self.success = {}
12567 amit.gupta 16843
          (_ktype270, _vtype271, _size269 ) = iprot.readMapBegin() 
16844
          for _i273 in xrange(_size269):
16845
            _key274 = iprot.readString();
16846
            _val275 = []
16847
            (_etype279, _size276) = iprot.readListBegin()
16848
            for _i280 in xrange(_size276):
16849
              _elem281 = Banner()
16850
              _elem281.read(iprot)
16851
              _val275.append(_elem281)
9155 kshitij.so 16852
            iprot.readListEnd()
12567 amit.gupta 16853
            self.success[_key274] = _val275
9155 kshitij.so 16854
          iprot.readMapEnd()
16855
        else:
16856
          iprot.skip(ftype)
16857
      else:
16858
        iprot.skip(ftype)
16859
      iprot.readFieldEnd()
16860
    iprot.readStructEnd()
16861
 
16862
  def write(self, oprot):
16863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16865
      return
16866
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
16867
    if self.success is not None:
16868
      oprot.writeFieldBegin('success', TType.MAP, 0)
16869
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 16870
      for kiter282,viter283 in self.success.items():
16871
        oprot.writeString(kiter282)
16872
        oprot.writeListBegin(TType.STRUCT, len(viter283))
16873
        for iter284 in viter283:
16874
          iter284.write(oprot)
9155 kshitij.so 16875
        oprot.writeListEnd()
16876
      oprot.writeMapEnd()
16877
      oprot.writeFieldEnd()
16878
    oprot.writeFieldStop()
16879
    oprot.writeStructEnd()
16880
 
16881
  def validate(self):
16882
    return
16883
 
16884
 
16885
  def __repr__(self):
16886
    L = ['%s=%r' % (key, value)
16887
      for key, value in self.__dict__.iteritems()]
16888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16889
 
16890
  def __eq__(self, other):
16891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16892
 
16893
  def __ne__(self, other):
16894
    return not (self == other)
16895
 
5944 mandeep.dh 16896
class deleteSimilarItem_args:
16897
  """
16898
  Attributes:
16899
   - itemId
16900
   - catalogItemId
16901
  """
16902
 
16903
  thrift_spec = (
16904
    None, # 0
16905
    (1, TType.I64, 'itemId', None, None, ), # 1
16906
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
16907
  )
16908
 
16909
  def __init__(self, itemId=None, catalogItemId=None,):
16910
    self.itemId = itemId
16911
    self.catalogItemId = catalogItemId
16912
 
16913
  def read(self, iprot):
16914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16916
      return
16917
    iprot.readStructBegin()
16918
    while True:
16919
      (fname, ftype, fid) = iprot.readFieldBegin()
16920
      if ftype == TType.STOP:
16921
        break
16922
      if fid == 1:
16923
        if ftype == TType.I64:
16924
          self.itemId = iprot.readI64();
16925
        else:
16926
          iprot.skip(ftype)
16927
      elif fid == 2:
16928
        if ftype == TType.I64:
16929
          self.catalogItemId = iprot.readI64();
16930
        else:
16931
          iprot.skip(ftype)
16932
      else:
16933
        iprot.skip(ftype)
16934
      iprot.readFieldEnd()
16935
    iprot.readStructEnd()
16936
 
16937
  def write(self, oprot):
16938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16940
      return
16941
    oprot.writeStructBegin('deleteSimilarItem_args')
16942
    if self.itemId is not None:
16943
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16944
      oprot.writeI64(self.itemId)
16945
      oprot.writeFieldEnd()
16946
    if self.catalogItemId is not None:
16947
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
16948
      oprot.writeI64(self.catalogItemId)
16949
      oprot.writeFieldEnd()
16950
    oprot.writeFieldStop()
16951
    oprot.writeStructEnd()
16952
 
16953
  def validate(self):
16954
    return
16955
 
16956
 
16957
  def __repr__(self):
16958
    L = ['%s=%r' % (key, value)
16959
      for key, value in self.__dict__.iteritems()]
16960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16961
 
16962
  def __eq__(self, other):
16963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16964
 
16965
  def __ne__(self, other):
16966
    return not (self == other)
16967
 
16968
class deleteSimilarItem_result:
16969
  """
16970
  Attributes:
16971
   - success
16972
   - cex
16973
  """
16974
 
16975
  thrift_spec = (
16976
    (0, TType.BOOL, 'success', None, None, ), # 0
16977
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16978
  )
16979
 
16980
  def __init__(self, success=None, cex=None,):
16981
    self.success = success
16982
    self.cex = cex
16983
 
16984
  def read(self, iprot):
16985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16987
      return
16988
    iprot.readStructBegin()
16989
    while True:
16990
      (fname, ftype, fid) = iprot.readFieldBegin()
16991
      if ftype == TType.STOP:
16992
        break
16993
      if fid == 0:
16994
        if ftype == TType.BOOL:
16995
          self.success = iprot.readBool();
16996
        else:
16997
          iprot.skip(ftype)
16998
      elif fid == 1:
16999
        if ftype == TType.STRUCT:
17000
          self.cex = CatalogServiceException()
17001
          self.cex.read(iprot)
17002
        else:
17003
          iprot.skip(ftype)
17004
      else:
17005
        iprot.skip(ftype)
17006
      iprot.readFieldEnd()
17007
    iprot.readStructEnd()
17008
 
17009
  def write(self, oprot):
17010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17012
      return
17013
    oprot.writeStructBegin('deleteSimilarItem_result')
17014
    if self.success is not None:
17015
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17016
      oprot.writeBool(self.success)
17017
      oprot.writeFieldEnd()
17018
    if self.cex is not None:
17019
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17020
      self.cex.write(oprot)
17021
      oprot.writeFieldEnd()
17022
    oprot.writeFieldStop()
17023
    oprot.writeStructEnd()
17024
 
17025
  def validate(self):
17026
    return
17027
 
17028
 
17029
  def __repr__(self):
17030
    L = ['%s=%r' % (key, value)
17031
      for key, value in self.__dict__.iteritems()]
17032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17033
 
17034
  def __eq__(self, other):
17035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17036
 
17037
  def __ne__(self, other):
17038
    return not (self == other)
17039
 
17040
class checkSimilarItem_args:
17041
  """
17042
  Attributes:
17043
   - brand
17044
   - modelNumber
17045
   - modelName
17046
   - color
17047
  """
17048
 
17049
  thrift_spec = (
17050
    None, # 0
17051
    (1, TType.STRING, 'brand', None, None, ), # 1
17052
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
17053
    (3, TType.STRING, 'modelName', None, None, ), # 3
17054
    (4, TType.STRING, 'color', None, None, ), # 4
17055
  )
17056
 
17057
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
17058
    self.brand = brand
17059
    self.modelNumber = modelNumber
17060
    self.modelName = modelName
17061
    self.color = color
17062
 
17063
  def read(self, iprot):
17064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17066
      return
17067
    iprot.readStructBegin()
17068
    while True:
17069
      (fname, ftype, fid) = iprot.readFieldBegin()
17070
      if ftype == TType.STOP:
17071
        break
17072
      if fid == 1:
17073
        if ftype == TType.STRING:
17074
          self.brand = iprot.readString();
17075
        else:
17076
          iprot.skip(ftype)
17077
      elif fid == 2:
17078
        if ftype == TType.STRING:
17079
          self.modelNumber = iprot.readString();
17080
        else:
17081
          iprot.skip(ftype)
17082
      elif fid == 3:
17083
        if ftype == TType.STRING:
17084
          self.modelName = iprot.readString();
17085
        else:
17086
          iprot.skip(ftype)
17087
      elif fid == 4:
17088
        if ftype == TType.STRING:
17089
          self.color = iprot.readString();
17090
        else:
17091
          iprot.skip(ftype)
17092
      else:
17093
        iprot.skip(ftype)
17094
      iprot.readFieldEnd()
17095
    iprot.readStructEnd()
17096
 
17097
  def write(self, oprot):
17098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17100
      return
17101
    oprot.writeStructBegin('checkSimilarItem_args')
17102
    if self.brand is not None:
17103
      oprot.writeFieldBegin('brand', TType.STRING, 1)
17104
      oprot.writeString(self.brand)
17105
      oprot.writeFieldEnd()
17106
    if self.modelNumber is not None:
17107
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
17108
      oprot.writeString(self.modelNumber)
17109
      oprot.writeFieldEnd()
17110
    if self.modelName is not None:
17111
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
17112
      oprot.writeString(self.modelName)
17113
      oprot.writeFieldEnd()
17114
    if self.color is not None:
17115
      oprot.writeFieldBegin('color', TType.STRING, 4)
17116
      oprot.writeString(self.color)
17117
      oprot.writeFieldEnd()
17118
    oprot.writeFieldStop()
17119
    oprot.writeStructEnd()
17120
 
17121
  def validate(self):
17122
    return
17123
 
17124
 
17125
  def __repr__(self):
17126
    L = ['%s=%r' % (key, value)
17127
      for key, value in self.__dict__.iteritems()]
17128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17129
 
17130
  def __eq__(self, other):
17131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17132
 
17133
  def __ne__(self, other):
17134
    return not (self == other)
17135
 
17136
class checkSimilarItem_result:
17137
  """
17138
  Attributes:
17139
   - success
17140
  """
17141
 
17142
  thrift_spec = (
17143
    (0, TType.I64, 'success', None, None, ), # 0
17144
  )
17145
 
17146
  def __init__(self, success=None,):
17147
    self.success = success
17148
 
17149
  def read(self, iprot):
17150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17152
      return
17153
    iprot.readStructBegin()
17154
    while True:
17155
      (fname, ftype, fid) = iprot.readFieldBegin()
17156
      if ftype == TType.STOP:
17157
        break
17158
      if fid == 0:
17159
        if ftype == TType.I64:
17160
          self.success = iprot.readI64();
17161
        else:
17162
          iprot.skip(ftype)
17163
      else:
17164
        iprot.skip(ftype)
17165
      iprot.readFieldEnd()
17166
    iprot.readStructEnd()
17167
 
17168
  def write(self, oprot):
17169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17171
      return
17172
    oprot.writeStructBegin('checkSimilarItem_result')
17173
    if self.success is not None:
17174
      oprot.writeFieldBegin('success', TType.I64, 0)
17175
      oprot.writeI64(self.success)
17176
      oprot.writeFieldEnd()
17177
    oprot.writeFieldStop()
17178
    oprot.writeStructEnd()
17179
 
17180
  def validate(self):
17181
    return
17182
 
17183
 
17184
  def __repr__(self):
17185
    L = ['%s=%r' % (key, value)
17186
      for key, value in self.__dict__.iteritems()]
17187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17188
 
17189
  def __eq__(self, other):
17190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17191
 
17192
  def __ne__(self, other):
17193
    return not (self == other)
17194
 
17195
class validateRiskyStatus_args:
17196
  """
17197
  Attributes:
17198
   - itemId
17199
  """
17200
 
17201
  thrift_spec = (
17202
    None, # 0
17203
    (1, TType.I64, 'itemId', None, None, ), # 1
17204
  )
17205
 
17206
  def __init__(self, itemId=None,):
17207
    self.itemId = itemId
17208
 
17209
  def read(self, iprot):
17210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17212
      return
17213
    iprot.readStructBegin()
17214
    while True:
17215
      (fname, ftype, fid) = iprot.readFieldBegin()
17216
      if ftype == TType.STOP:
17217
        break
17218
      if fid == 1:
17219
        if ftype == TType.I64:
17220
          self.itemId = iprot.readI64();
17221
        else:
17222
          iprot.skip(ftype)
17223
      else:
17224
        iprot.skip(ftype)
17225
      iprot.readFieldEnd()
17226
    iprot.readStructEnd()
17227
 
17228
  def write(self, oprot):
17229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17231
      return
17232
    oprot.writeStructBegin('validateRiskyStatus_args')
17233
    if self.itemId is not None:
17234
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17235
      oprot.writeI64(self.itemId)
17236
      oprot.writeFieldEnd()
17237
    oprot.writeFieldStop()
17238
    oprot.writeStructEnd()
17239
 
17240
  def validate(self):
17241
    return
17242
 
17243
 
17244
  def __repr__(self):
17245
    L = ['%s=%r' % (key, value)
17246
      for key, value in self.__dict__.iteritems()]
17247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17248
 
17249
  def __eq__(self, other):
17250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17251
 
17252
  def __ne__(self, other):
17253
    return not (self == other)
17254
 
17255
class validateRiskyStatus_result:
17256
 
17257
  thrift_spec = (
17258
  )
17259
 
17260
  def read(self, iprot):
17261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17263
      return
17264
    iprot.readStructBegin()
17265
    while True:
17266
      (fname, ftype, fid) = iprot.readFieldBegin()
17267
      if ftype == TType.STOP:
17268
        break
17269
      else:
17270
        iprot.skip(ftype)
17271
      iprot.readFieldEnd()
17272
    iprot.readStructEnd()
17273
 
17274
  def write(self, oprot):
17275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17277
      return
17278
    oprot.writeStructBegin('validateRiskyStatus_result')
17279
    oprot.writeFieldStop()
17280
    oprot.writeStructEnd()
17281
 
17282
  def validate(self):
17283
    return
17284
 
17285
 
17286
  def __repr__(self):
17287
    L = ['%s=%r' % (key, value)
17288
      for key, value in self.__dict__.iteritems()]
17289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17290
 
17291
  def __eq__(self, other):
17292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17293
 
17294
  def __ne__(self, other):
17295
    return not (self == other)
17296
 
17297
class changeItemRiskyFlag_args:
17298
  """
17299
  Attributes:
17300
   - itemId
17301
   - risky
17302
  """
17303
 
17304
  thrift_spec = (
17305
    None, # 0
17306
    (1, TType.I64, 'itemId', None, None, ), # 1
17307
    (2, TType.BOOL, 'risky', None, None, ), # 2
17308
  )
17309
 
17310
  def __init__(self, itemId=None, risky=None,):
17311
    self.itemId = itemId
17312
    self.risky = risky
17313
 
17314
  def read(self, iprot):
17315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17317
      return
17318
    iprot.readStructBegin()
17319
    while True:
17320
      (fname, ftype, fid) = iprot.readFieldBegin()
17321
      if ftype == TType.STOP:
17322
        break
17323
      if fid == 1:
17324
        if ftype == TType.I64:
17325
          self.itemId = iprot.readI64();
17326
        else:
17327
          iprot.skip(ftype)
17328
      elif fid == 2:
17329
        if ftype == TType.BOOL:
17330
          self.risky = iprot.readBool();
17331
        else:
17332
          iprot.skip(ftype)
17333
      else:
17334
        iprot.skip(ftype)
17335
      iprot.readFieldEnd()
17336
    iprot.readStructEnd()
17337
 
17338
  def write(self, oprot):
17339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17341
      return
17342
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17343
    if self.itemId is not None:
17344
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17345
      oprot.writeI64(self.itemId)
17346
      oprot.writeFieldEnd()
17347
    if self.risky is not None:
17348
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17349
      oprot.writeBool(self.risky)
17350
      oprot.writeFieldEnd()
17351
    oprot.writeFieldStop()
17352
    oprot.writeStructEnd()
17353
 
17354
  def validate(self):
17355
    return
17356
 
17357
 
17358
  def __repr__(self):
17359
    L = ['%s=%r' % (key, value)
17360
      for key, value in self.__dict__.iteritems()]
17361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17362
 
17363
  def __eq__(self, other):
17364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17365
 
17366
  def __ne__(self, other):
17367
    return not (self == other)
17368
 
17369
class changeItemRiskyFlag_result:
17370
 
17371
  thrift_spec = (
17372
  )
17373
 
17374
  def read(self, iprot):
17375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17377
      return
17378
    iprot.readStructBegin()
17379
    while True:
17380
      (fname, ftype, fid) = iprot.readFieldBegin()
17381
      if ftype == TType.STOP:
17382
        break
17383
      else:
17384
        iprot.skip(ftype)
17385
      iprot.readFieldEnd()
17386
    iprot.readStructEnd()
17387
 
17388
  def write(self, oprot):
17389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17391
      return
17392
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17393
    oprot.writeFieldStop()
17394
    oprot.writeStructEnd()
17395
 
17396
  def validate(self):
17397
    return
17398
 
17399
 
17400
  def __repr__(self):
17401
    L = ['%s=%r' % (key, value)
17402
      for key, value in self.__dict__.iteritems()]
17403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17404
 
17405
  def __eq__(self, other):
17406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17407
 
17408
  def __ne__(self, other):
17409
    return not (self == other)
17410
 
17411
class getItemsByRiskyFlag_args:
17412
 
17413
  thrift_spec = (
17414
  )
17415
 
17416
  def read(self, iprot):
17417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17419
      return
17420
    iprot.readStructBegin()
17421
    while True:
17422
      (fname, ftype, fid) = iprot.readFieldBegin()
17423
      if ftype == TType.STOP:
17424
        break
17425
      else:
17426
        iprot.skip(ftype)
17427
      iprot.readFieldEnd()
17428
    iprot.readStructEnd()
17429
 
17430
  def write(self, oprot):
17431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17433
      return
17434
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17435
    oprot.writeFieldStop()
17436
    oprot.writeStructEnd()
17437
 
17438
  def validate(self):
17439
    return
17440
 
17441
 
17442
  def __repr__(self):
17443
    L = ['%s=%r' % (key, value)
17444
      for key, value in self.__dict__.iteritems()]
17445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17446
 
17447
  def __eq__(self, other):
17448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17449
 
17450
  def __ne__(self, other):
17451
    return not (self == other)
17452
 
17453
class getItemsByRiskyFlag_result:
17454
  """
17455
  Attributes:
17456
   - success
17457
  """
17458
 
17459
  thrift_spec = (
17460
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17461
  )
17462
 
17463
  def __init__(self, success=None,):
17464
    self.success = success
17465
 
17466
  def read(self, iprot):
17467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17469
      return
17470
    iprot.readStructBegin()
17471
    while True:
17472
      (fname, ftype, fid) = iprot.readFieldBegin()
17473
      if ftype == TType.STOP:
17474
        break
17475
      if fid == 0:
17476
        if ftype == TType.LIST:
17477
          self.success = []
12567 amit.gupta 17478
          (_etype288, _size285) = iprot.readListBegin()
17479
          for _i289 in xrange(_size285):
17480
            _elem290 = Item()
17481
            _elem290.read(iprot)
17482
            self.success.append(_elem290)
5944 mandeep.dh 17483
          iprot.readListEnd()
17484
        else:
17485
          iprot.skip(ftype)
17486
      else:
17487
        iprot.skip(ftype)
17488
      iprot.readFieldEnd()
17489
    iprot.readStructEnd()
17490
 
17491
  def write(self, oprot):
17492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17494
      return
17495
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17496
    if self.success is not None:
17497
      oprot.writeFieldBegin('success', TType.LIST, 0)
17498
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17499
      for iter291 in self.success:
17500
        iter291.write(oprot)
5944 mandeep.dh 17501
      oprot.writeListEnd()
17502
      oprot.writeFieldEnd()
17503
    oprot.writeFieldStop()
17504
    oprot.writeStructEnd()
17505
 
17506
  def validate(self):
17507
    return
17508
 
17509
 
17510
  def __repr__(self):
17511
    L = ['%s=%r' % (key, value)
17512
      for key, value in self.__dict__.iteritems()]
17513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17514
 
17515
  def __eq__(self, other):
17516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17517
 
17518
  def __ne__(self, other):
17519
    return not (self == other)
17520
 
17521
class getItemsForMasterSheet_args:
17522
  """
17523
  Attributes:
17524
   - category
17525
   - brand
17526
  """
17527
 
17528
  thrift_spec = (
17529
    None, # 0
17530
    (1, TType.STRING, 'category', None, None, ), # 1
17531
    (2, TType.STRING, 'brand', None, None, ), # 2
17532
  )
17533
 
17534
  def __init__(self, category=None, brand=None,):
17535
    self.category = category
17536
    self.brand = brand
17537
 
17538
  def read(self, iprot):
17539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17541
      return
17542
    iprot.readStructBegin()
17543
    while True:
17544
      (fname, ftype, fid) = iprot.readFieldBegin()
17545
      if ftype == TType.STOP:
17546
        break
17547
      if fid == 1:
17548
        if ftype == TType.STRING:
17549
          self.category = iprot.readString();
17550
        else:
17551
          iprot.skip(ftype)
17552
      elif fid == 2:
17553
        if ftype == TType.STRING:
17554
          self.brand = iprot.readString();
17555
        else:
17556
          iprot.skip(ftype)
17557
      else:
17558
        iprot.skip(ftype)
17559
      iprot.readFieldEnd()
17560
    iprot.readStructEnd()
17561
 
17562
  def write(self, oprot):
17563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17565
      return
17566
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17567
    if self.category is not None:
17568
      oprot.writeFieldBegin('category', TType.STRING, 1)
17569
      oprot.writeString(self.category)
17570
      oprot.writeFieldEnd()
17571
    if self.brand is not None:
17572
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17573
      oprot.writeString(self.brand)
17574
      oprot.writeFieldEnd()
17575
    oprot.writeFieldStop()
17576
    oprot.writeStructEnd()
17577
 
17578
  def validate(self):
17579
    return
17580
 
17581
 
17582
  def __repr__(self):
17583
    L = ['%s=%r' % (key, value)
17584
      for key, value in self.__dict__.iteritems()]
17585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17586
 
17587
  def __eq__(self, other):
17588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17589
 
17590
  def __ne__(self, other):
17591
    return not (self == other)
17592
 
17593
class getItemsForMasterSheet_result:
17594
  """
17595
  Attributes:
17596
   - success
17597
  """
17598
 
17599
  thrift_spec = (
17600
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17601
  )
17602
 
17603
  def __init__(self, success=None,):
17604
    self.success = success
17605
 
17606
  def read(self, iprot):
17607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17609
      return
17610
    iprot.readStructBegin()
17611
    while True:
17612
      (fname, ftype, fid) = iprot.readFieldBegin()
17613
      if ftype == TType.STOP:
17614
        break
17615
      if fid == 0:
17616
        if ftype == TType.LIST:
17617
          self.success = []
12567 amit.gupta 17618
          (_etype295, _size292) = iprot.readListBegin()
17619
          for _i296 in xrange(_size292):
17620
            _elem297 = Item()
17621
            _elem297.read(iprot)
17622
            self.success.append(_elem297)
5944 mandeep.dh 17623
          iprot.readListEnd()
17624
        else:
17625
          iprot.skip(ftype)
17626
      else:
17627
        iprot.skip(ftype)
17628
      iprot.readFieldEnd()
17629
    iprot.readStructEnd()
17630
 
17631
  def write(self, oprot):
17632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17634
      return
17635
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17636
    if self.success is not None:
17637
      oprot.writeFieldBegin('success', TType.LIST, 0)
17638
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17639
      for iter298 in self.success:
17640
        iter298.write(oprot)
5944 mandeep.dh 17641
      oprot.writeListEnd()
17642
      oprot.writeFieldEnd()
17643
    oprot.writeFieldStop()
17644
    oprot.writeStructEnd()
17645
 
17646
  def validate(self):
17647
    return
17648
 
17649
 
17650
  def __repr__(self):
17651
    L = ['%s=%r' % (key, value)
17652
      for key, value in self.__dict__.iteritems()]
17653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17654
 
17655
  def __eq__(self, other):
17656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17657
 
17658
  def __ne__(self, other):
17659
    return not (self == other)
17660
 
17661
class getSimilarItemsCatalogIds_args:
17662
  """
17663
  Attributes:
17664
   - beginIndex
17665
   - totalItems
17666
   - itemId
17667
  """
17668
 
17669
  thrift_spec = (
17670
    None, # 0
17671
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17672
    (2, TType.I64, 'totalItems', None, None, ), # 2
17673
    (3, TType.I64, 'itemId', None, None, ), # 3
17674
  )
17675
 
17676
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17677
    self.beginIndex = beginIndex
17678
    self.totalItems = totalItems
17679
    self.itemId = itemId
17680
 
17681
  def read(self, iprot):
17682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17684
      return
17685
    iprot.readStructBegin()
17686
    while True:
17687
      (fname, ftype, fid) = iprot.readFieldBegin()
17688
      if ftype == TType.STOP:
17689
        break
17690
      if fid == 1:
17691
        if ftype == TType.I64:
17692
          self.beginIndex = iprot.readI64();
17693
        else:
17694
          iprot.skip(ftype)
17695
      elif fid == 2:
17696
        if ftype == TType.I64:
17697
          self.totalItems = iprot.readI64();
17698
        else:
17699
          iprot.skip(ftype)
17700
      elif fid == 3:
17701
        if ftype == TType.I64:
17702
          self.itemId = iprot.readI64();
17703
        else:
17704
          iprot.skip(ftype)
17705
      else:
17706
        iprot.skip(ftype)
17707
      iprot.readFieldEnd()
17708
    iprot.readStructEnd()
17709
 
17710
  def write(self, oprot):
17711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17713
      return
17714
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17715
    if self.beginIndex is not None:
17716
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17717
      oprot.writeI64(self.beginIndex)
17718
      oprot.writeFieldEnd()
17719
    if self.totalItems is not None:
17720
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17721
      oprot.writeI64(self.totalItems)
17722
      oprot.writeFieldEnd()
17723
    if self.itemId is not None:
17724
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17725
      oprot.writeI64(self.itemId)
17726
      oprot.writeFieldEnd()
17727
    oprot.writeFieldStop()
17728
    oprot.writeStructEnd()
17729
 
17730
  def validate(self):
17731
    return
17732
 
17733
 
17734
  def __repr__(self):
17735
    L = ['%s=%r' % (key, value)
17736
      for key, value in self.__dict__.iteritems()]
17737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17738
 
17739
  def __eq__(self, other):
17740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17741
 
17742
  def __ne__(self, other):
17743
    return not (self == other)
17744
 
17745
class getSimilarItemsCatalogIds_result:
17746
  """
17747
  Attributes:
17748
   - success
17749
  """
17750
 
17751
  thrift_spec = (
17752
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17753
  )
17754
 
17755
  def __init__(self, success=None,):
17756
    self.success = success
17757
 
17758
  def read(self, iprot):
17759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17761
      return
17762
    iprot.readStructBegin()
17763
    while True:
17764
      (fname, ftype, fid) = iprot.readFieldBegin()
17765
      if ftype == TType.STOP:
17766
        break
17767
      if fid == 0:
17768
        if ftype == TType.LIST:
17769
          self.success = []
12567 amit.gupta 17770
          (_etype302, _size299) = iprot.readListBegin()
17771
          for _i303 in xrange(_size299):
17772
            _elem304 = iprot.readI64();
17773
            self.success.append(_elem304)
5944 mandeep.dh 17774
          iprot.readListEnd()
17775
        else:
17776
          iprot.skip(ftype)
17777
      else:
17778
        iprot.skip(ftype)
17779
      iprot.readFieldEnd()
17780
    iprot.readStructEnd()
17781
 
17782
  def write(self, oprot):
17783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17785
      return
17786
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
17787
    if self.success is not None:
17788
      oprot.writeFieldBegin('success', TType.LIST, 0)
17789
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 17790
      for iter305 in self.success:
17791
        oprot.writeI64(iter305)
5944 mandeep.dh 17792
      oprot.writeListEnd()
17793
      oprot.writeFieldEnd()
17794
    oprot.writeFieldStop()
17795
    oprot.writeStructEnd()
17796
 
17797
  def validate(self):
17798
    return
17799
 
17800
 
17801
  def __repr__(self):
17802
    L = ['%s=%r' % (key, value)
17803
      for key, value in self.__dict__.iteritems()]
17804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17805
 
17806
  def __eq__(self, other):
17807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17808
 
17809
  def __ne__(self, other):
17810
    return not (self == other)
17811
 
17812
class addProductNotification_args:
17813
  """
17814
  Attributes:
17815
   - itemId
17816
   - email
17817
  """
17818
 
17819
  thrift_spec = None
17820
  def __init__(self, itemId=None, email=None,):
17821
    self.itemId = itemId
17822
    self.email = email
17823
 
17824
  def read(self, iprot):
17825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17827
      return
17828
    iprot.readStructBegin()
17829
    while True:
17830
      (fname, ftype, fid) = iprot.readFieldBegin()
17831
      if ftype == TType.STOP:
17832
        break
17833
      if fid == -1:
17834
        if ftype == TType.I64:
17835
          self.itemId = iprot.readI64();
17836
        else:
17837
          iprot.skip(ftype)
17838
      elif fid == -2:
17839
        if ftype == TType.STRING:
17840
          self.email = iprot.readString();
17841
        else:
17842
          iprot.skip(ftype)
17843
      else:
17844
        iprot.skip(ftype)
17845
      iprot.readFieldEnd()
17846
    iprot.readStructEnd()
17847
 
17848
  def write(self, oprot):
17849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17851
      return
17852
    oprot.writeStructBegin('addProductNotification_args')
17853
    if self.email is not None:
17854
      oprot.writeFieldBegin('email', TType.STRING, -2)
17855
      oprot.writeString(self.email)
17856
      oprot.writeFieldEnd()
17857
    if self.itemId is not None:
17858
      oprot.writeFieldBegin('itemId', TType.I64, -1)
17859
      oprot.writeI64(self.itemId)
17860
      oprot.writeFieldEnd()
17861
    oprot.writeFieldStop()
17862
    oprot.writeStructEnd()
17863
 
17864
  def validate(self):
17865
    return
17866
 
17867
 
17868
  def __repr__(self):
17869
    L = ['%s=%r' % (key, value)
17870
      for key, value in self.__dict__.iteritems()]
17871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17872
 
17873
  def __eq__(self, other):
17874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17875
 
17876
  def __ne__(self, other):
17877
    return not (self == other)
17878
 
17879
class addProductNotification_result:
17880
  """
17881
  Attributes:
17882
   - success
17883
  """
17884
 
17885
  thrift_spec = (
17886
    (0, TType.BOOL, 'success', None, None, ), # 0
17887
  )
17888
 
17889
  def __init__(self, success=None,):
17890
    self.success = success
17891
 
17892
  def read(self, iprot):
17893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17895
      return
17896
    iprot.readStructBegin()
17897
    while True:
17898
      (fname, ftype, fid) = iprot.readFieldBegin()
17899
      if ftype == TType.STOP:
17900
        break
17901
      if fid == 0:
17902
        if ftype == TType.BOOL:
17903
          self.success = iprot.readBool();
17904
        else:
17905
          iprot.skip(ftype)
17906
      else:
17907
        iprot.skip(ftype)
17908
      iprot.readFieldEnd()
17909
    iprot.readStructEnd()
17910
 
17911
  def write(self, oprot):
17912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17914
      return
17915
    oprot.writeStructBegin('addProductNotification_result')
17916
    if self.success is not None:
17917
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17918
      oprot.writeBool(self.success)
17919
      oprot.writeFieldEnd()
17920
    oprot.writeFieldStop()
17921
    oprot.writeStructEnd()
17922
 
17923
  def validate(self):
17924
    return
17925
 
17926
 
17927
  def __repr__(self):
17928
    L = ['%s=%r' % (key, value)
17929
      for key, value in self.__dict__.iteritems()]
17930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17931
 
17932
  def __eq__(self, other):
17933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17934
 
17935
  def __ne__(self, other):
17936
    return not (self == other)
17937
 
17938
class sendProductNotifications_args:
17939
 
17940
  thrift_spec = (
17941
  )
17942
 
17943
  def read(self, iprot):
17944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17946
      return
17947
    iprot.readStructBegin()
17948
    while True:
17949
      (fname, ftype, fid) = iprot.readFieldBegin()
17950
      if ftype == TType.STOP:
17951
        break
17952
      else:
17953
        iprot.skip(ftype)
17954
      iprot.readFieldEnd()
17955
    iprot.readStructEnd()
17956
 
17957
  def write(self, oprot):
17958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17960
      return
17961
    oprot.writeStructBegin('sendProductNotifications_args')
17962
    oprot.writeFieldStop()
17963
    oprot.writeStructEnd()
17964
 
17965
  def validate(self):
17966
    return
17967
 
17968
 
17969
  def __repr__(self):
17970
    L = ['%s=%r' % (key, value)
17971
      for key, value in self.__dict__.iteritems()]
17972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17973
 
17974
  def __eq__(self, other):
17975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17976
 
17977
  def __ne__(self, other):
17978
    return not (self == other)
17979
 
17980
class sendProductNotifications_result:
17981
  """
17982
  Attributes:
17983
   - success
17984
  """
17985
 
17986
  thrift_spec = (
17987
    (0, TType.BOOL, 'success', None, None, ), # 0
17988
  )
17989
 
17990
  def __init__(self, success=None,):
17991
    self.success = success
17992
 
17993
  def read(self, iprot):
17994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17996
      return
17997
    iprot.readStructBegin()
17998
    while True:
17999
      (fname, ftype, fid) = iprot.readFieldBegin()
18000
      if ftype == TType.STOP:
18001
        break
18002
      if fid == 0:
18003
        if ftype == TType.BOOL:
18004
          self.success = iprot.readBool();
18005
        else:
18006
          iprot.skip(ftype)
18007
      else:
18008
        iprot.skip(ftype)
18009
      iprot.readFieldEnd()
18010
    iprot.readStructEnd()
18011
 
18012
  def write(self, oprot):
18013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18015
      return
18016
    oprot.writeStructBegin('sendProductNotifications_result')
18017
    if self.success is not None:
18018
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18019
      oprot.writeBool(self.success)
18020
      oprot.writeFieldEnd()
18021
    oprot.writeFieldStop()
18022
    oprot.writeStructEnd()
18023
 
18024
  def validate(self):
18025
    return
18026
 
18027
 
18028
  def __repr__(self):
18029
    L = ['%s=%r' % (key, value)
18030
      for key, value in self.__dict__.iteritems()]
18031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18032
 
18033
  def __eq__(self, other):
18034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18035
 
18036
  def __ne__(self, other):
18037
    return not (self == other)
18038
 
18039
class getAllBrandsByCategory_args:
18040
  """
18041
  Attributes:
18042
   - categoryId
18043
  """
18044
 
18045
  thrift_spec = (
18046
    None, # 0
18047
    (1, TType.I64, 'categoryId', None, None, ), # 1
18048
  )
18049
 
18050
  def __init__(self, categoryId=None,):
18051
    self.categoryId = categoryId
18052
 
18053
  def read(self, iprot):
18054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18056
      return
18057
    iprot.readStructBegin()
18058
    while True:
18059
      (fname, ftype, fid) = iprot.readFieldBegin()
18060
      if ftype == TType.STOP:
18061
        break
18062
      if fid == 1:
18063
        if ftype == TType.I64:
18064
          self.categoryId = iprot.readI64();
18065
        else:
18066
          iprot.skip(ftype)
18067
      else:
18068
        iprot.skip(ftype)
18069
      iprot.readFieldEnd()
18070
    iprot.readStructEnd()
18071
 
18072
  def write(self, oprot):
18073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18075
      return
18076
    oprot.writeStructBegin('getAllBrandsByCategory_args')
18077
    if self.categoryId is not None:
18078
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
18079
      oprot.writeI64(self.categoryId)
18080
      oprot.writeFieldEnd()
18081
    oprot.writeFieldStop()
18082
    oprot.writeStructEnd()
18083
 
18084
  def validate(self):
18085
    return
18086
 
18087
 
18088
  def __repr__(self):
18089
    L = ['%s=%r' % (key, value)
18090
      for key, value in self.__dict__.iteritems()]
18091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18092
 
18093
  def __eq__(self, other):
18094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18095
 
18096
  def __ne__(self, other):
18097
    return not (self == other)
18098
 
18099
class getAllBrandsByCategory_result:
18100
  """
18101
  Attributes:
18102
   - success
18103
  """
18104
 
18105
  thrift_spec = (
18106
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18107
  )
18108
 
18109
  def __init__(self, success=None,):
18110
    self.success = success
18111
 
18112
  def read(self, iprot):
18113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18115
      return
18116
    iprot.readStructBegin()
18117
    while True:
18118
      (fname, ftype, fid) = iprot.readFieldBegin()
18119
      if ftype == TType.STOP:
18120
        break
18121
      if fid == 0:
18122
        if ftype == TType.LIST:
18123
          self.success = []
12567 amit.gupta 18124
          (_etype309, _size306) = iprot.readListBegin()
18125
          for _i310 in xrange(_size306):
18126
            _elem311 = iprot.readString();
18127
            self.success.append(_elem311)
5944 mandeep.dh 18128
          iprot.readListEnd()
18129
        else:
18130
          iprot.skip(ftype)
18131
      else:
18132
        iprot.skip(ftype)
18133
      iprot.readFieldEnd()
18134
    iprot.readStructEnd()
18135
 
18136
  def write(self, oprot):
18137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18139
      return
18140
    oprot.writeStructBegin('getAllBrandsByCategory_result')
18141
    if self.success is not None:
18142
      oprot.writeFieldBegin('success', TType.LIST, 0)
18143
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18144
      for iter312 in self.success:
18145
        oprot.writeString(iter312)
5944 mandeep.dh 18146
      oprot.writeListEnd()
18147
      oprot.writeFieldEnd()
18148
    oprot.writeFieldStop()
18149
    oprot.writeStructEnd()
18150
 
18151
  def validate(self):
18152
    return
18153
 
18154
 
18155
  def __repr__(self):
18156
    L = ['%s=%r' % (key, value)
18157
      for key, value in self.__dict__.iteritems()]
18158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18159
 
18160
  def __eq__(self, other):
18161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18162
 
18163
  def __ne__(self, other):
18164
    return not (self == other)
18165
 
18166
class getAllBrands_args:
18167
 
18168
  thrift_spec = (
18169
  )
18170
 
18171
  def read(self, iprot):
18172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18174
      return
18175
    iprot.readStructBegin()
18176
    while True:
18177
      (fname, ftype, fid) = iprot.readFieldBegin()
18178
      if ftype == TType.STOP:
18179
        break
18180
      else:
18181
        iprot.skip(ftype)
18182
      iprot.readFieldEnd()
18183
    iprot.readStructEnd()
18184
 
18185
  def write(self, oprot):
18186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18188
      return
18189
    oprot.writeStructBegin('getAllBrands_args')
18190
    oprot.writeFieldStop()
18191
    oprot.writeStructEnd()
18192
 
18193
  def validate(self):
18194
    return
18195
 
18196
 
18197
  def __repr__(self):
18198
    L = ['%s=%r' % (key, value)
18199
      for key, value in self.__dict__.iteritems()]
18200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18201
 
18202
  def __eq__(self, other):
18203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18204
 
18205
  def __ne__(self, other):
18206
    return not (self == other)
18207
 
18208
class getAllBrands_result:
18209
  """
18210
  Attributes:
18211
   - success
18212
  """
18213
 
18214
  thrift_spec = (
18215
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18216
  )
18217
 
18218
  def __init__(self, success=None,):
18219
    self.success = success
18220
 
18221
  def read(self, iprot):
18222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18224
      return
18225
    iprot.readStructBegin()
18226
    while True:
18227
      (fname, ftype, fid) = iprot.readFieldBegin()
18228
      if ftype == TType.STOP:
18229
        break
18230
      if fid == 0:
18231
        if ftype == TType.LIST:
18232
          self.success = []
12567 amit.gupta 18233
          (_etype316, _size313) = iprot.readListBegin()
18234
          for _i317 in xrange(_size313):
18235
            _elem318 = iprot.readString();
18236
            self.success.append(_elem318)
5944 mandeep.dh 18237
          iprot.readListEnd()
18238
        else:
18239
          iprot.skip(ftype)
18240
      else:
18241
        iprot.skip(ftype)
18242
      iprot.readFieldEnd()
18243
    iprot.readStructEnd()
18244
 
18245
  def write(self, oprot):
18246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18248
      return
18249
    oprot.writeStructBegin('getAllBrands_result')
18250
    if self.success is not None:
18251
      oprot.writeFieldBegin('success', TType.LIST, 0)
18252
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18253
      for iter319 in self.success:
18254
        oprot.writeString(iter319)
5944 mandeep.dh 18255
      oprot.writeListEnd()
18256
      oprot.writeFieldEnd()
18257
    oprot.writeFieldStop()
18258
    oprot.writeStructEnd()
18259
 
18260
  def validate(self):
18261
    return
18262
 
18263
 
18264
  def __repr__(self):
18265
    L = ['%s=%r' % (key, value)
18266
      for key, value in self.__dict__.iteritems()]
18267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18268
 
18269
  def __eq__(self, other):
18270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18271
 
18272
  def __ne__(self, other):
18273
    return not (self == other)
18274
 
18275
class getAllSources_args:
18276
 
18277
  thrift_spec = (
18278
  )
18279
 
18280
  def read(self, iprot):
18281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18283
      return
18284
    iprot.readStructBegin()
18285
    while True:
18286
      (fname, ftype, fid) = iprot.readFieldBegin()
18287
      if ftype == TType.STOP:
18288
        break
18289
      else:
18290
        iprot.skip(ftype)
18291
      iprot.readFieldEnd()
18292
    iprot.readStructEnd()
18293
 
18294
  def write(self, oprot):
18295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18297
      return
18298
    oprot.writeStructBegin('getAllSources_args')
18299
    oprot.writeFieldStop()
18300
    oprot.writeStructEnd()
18301
 
18302
  def validate(self):
18303
    return
18304
 
18305
 
18306
  def __repr__(self):
18307
    L = ['%s=%r' % (key, value)
18308
      for key, value in self.__dict__.iteritems()]
18309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18310
 
18311
  def __eq__(self, other):
18312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18313
 
18314
  def __ne__(self, other):
18315
    return not (self == other)
18316
 
18317
class getAllSources_result:
18318
  """
18319
  Attributes:
18320
   - success
18321
  """
18322
 
18323
  thrift_spec = (
18324
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18325
  )
18326
 
18327
  def __init__(self, success=None,):
18328
    self.success = success
18329
 
18330
  def read(self, iprot):
18331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18333
      return
18334
    iprot.readStructBegin()
18335
    while True:
18336
      (fname, ftype, fid) = iprot.readFieldBegin()
18337
      if ftype == TType.STOP:
18338
        break
18339
      if fid == 0:
18340
        if ftype == TType.LIST:
18341
          self.success = []
12567 amit.gupta 18342
          (_etype323, _size320) = iprot.readListBegin()
18343
          for _i324 in xrange(_size320):
18344
            _elem325 = Source()
18345
            _elem325.read(iprot)
18346
            self.success.append(_elem325)
5944 mandeep.dh 18347
          iprot.readListEnd()
18348
        else:
18349
          iprot.skip(ftype)
18350
      else:
18351
        iprot.skip(ftype)
18352
      iprot.readFieldEnd()
18353
    iprot.readStructEnd()
18354
 
18355
  def write(self, oprot):
18356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18358
      return
18359
    oprot.writeStructBegin('getAllSources_result')
18360
    if self.success is not None:
18361
      oprot.writeFieldBegin('success', TType.LIST, 0)
18362
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18363
      for iter326 in self.success:
18364
        iter326.write(oprot)
5944 mandeep.dh 18365
      oprot.writeListEnd()
18366
      oprot.writeFieldEnd()
18367
    oprot.writeFieldStop()
18368
    oprot.writeStructEnd()
18369
 
18370
  def validate(self):
18371
    return
18372
 
18373
 
18374
  def __repr__(self):
18375
    L = ['%s=%r' % (key, value)
18376
      for key, value in self.__dict__.iteritems()]
18377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18378
 
18379
  def __eq__(self, other):
18380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18381
 
18382
  def __ne__(self, other):
18383
    return not (self == other)
18384
 
18385
class getItemPricingBySource_args:
18386
  """
18387
  Attributes:
18388
   - itemId
18389
   - sourceId
18390
  """
18391
 
18392
  thrift_spec = (
18393
    None, # 0
18394
    (1, TType.I64, 'itemId', None, None, ), # 1
18395
    (2, TType.I64, 'sourceId', None, None, ), # 2
18396
  )
18397
 
18398
  def __init__(self, itemId=None, sourceId=None,):
18399
    self.itemId = itemId
18400
    self.sourceId = sourceId
18401
 
18402
  def read(self, iprot):
18403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18405
      return
18406
    iprot.readStructBegin()
18407
    while True:
18408
      (fname, ftype, fid) = iprot.readFieldBegin()
18409
      if ftype == TType.STOP:
18410
        break
18411
      if fid == 1:
18412
        if ftype == TType.I64:
18413
          self.itemId = iprot.readI64();
18414
        else:
18415
          iprot.skip(ftype)
18416
      elif fid == 2:
18417
        if ftype == TType.I64:
18418
          self.sourceId = iprot.readI64();
18419
        else:
18420
          iprot.skip(ftype)
18421
      else:
18422
        iprot.skip(ftype)
18423
      iprot.readFieldEnd()
18424
    iprot.readStructEnd()
18425
 
18426
  def write(self, oprot):
18427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18429
      return
18430
    oprot.writeStructBegin('getItemPricingBySource_args')
18431
    if self.itemId is not None:
18432
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18433
      oprot.writeI64(self.itemId)
18434
      oprot.writeFieldEnd()
18435
    if self.sourceId is not None:
18436
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18437
      oprot.writeI64(self.sourceId)
18438
      oprot.writeFieldEnd()
18439
    oprot.writeFieldStop()
18440
    oprot.writeStructEnd()
18441
 
18442
  def validate(self):
18443
    return
18444
 
18445
 
18446
  def __repr__(self):
18447
    L = ['%s=%r' % (key, value)
18448
      for key, value in self.__dict__.iteritems()]
18449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18450
 
18451
  def __eq__(self, other):
18452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18453
 
18454
  def __ne__(self, other):
18455
    return not (self == other)
18456
 
18457
class getItemPricingBySource_result:
18458
  """
18459
  Attributes:
18460
   - success
18461
   - cex
18462
  """
18463
 
18464
  thrift_spec = (
18465
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18466
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18467
  )
18468
 
18469
  def __init__(self, success=None, cex=None,):
18470
    self.success = success
18471
    self.cex = cex
18472
 
18473
  def read(self, iprot):
18474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18476
      return
18477
    iprot.readStructBegin()
18478
    while True:
18479
      (fname, ftype, fid) = iprot.readFieldBegin()
18480
      if ftype == TType.STOP:
18481
        break
18482
      if fid == 0:
18483
        if ftype == TType.STRUCT:
18484
          self.success = SourceItemPricing()
18485
          self.success.read(iprot)
18486
        else:
18487
          iprot.skip(ftype)
18488
      elif fid == 1:
18489
        if ftype == TType.STRUCT:
18490
          self.cex = CatalogServiceException()
18491
          self.cex.read(iprot)
18492
        else:
18493
          iprot.skip(ftype)
18494
      else:
18495
        iprot.skip(ftype)
18496
      iprot.readFieldEnd()
18497
    iprot.readStructEnd()
18498
 
18499
  def write(self, oprot):
18500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18502
      return
18503
    oprot.writeStructBegin('getItemPricingBySource_result')
18504
    if self.success is not None:
18505
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18506
      self.success.write(oprot)
18507
      oprot.writeFieldEnd()
18508
    if self.cex is not None:
18509
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18510
      self.cex.write(oprot)
18511
      oprot.writeFieldEnd()
18512
    oprot.writeFieldStop()
18513
    oprot.writeStructEnd()
18514
 
18515
  def validate(self):
18516
    return
18517
 
18518
 
18519
  def __repr__(self):
18520
    L = ['%s=%r' % (key, value)
18521
      for key, value in self.__dict__.iteritems()]
18522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18523
 
18524
  def __eq__(self, other):
18525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18526
 
18527
  def __ne__(self, other):
18528
    return not (self == other)
18529
 
18530
class addSourceItemPricing_args:
18531
  """
18532
  Attributes:
18533
   - sourceItemPricing
18534
  """
18535
 
18536
  thrift_spec = (
18537
    None, # 0
18538
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18539
  )
18540
 
18541
  def __init__(self, sourceItemPricing=None,):
18542
    self.sourceItemPricing = sourceItemPricing
18543
 
18544
  def read(self, iprot):
18545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18547
      return
18548
    iprot.readStructBegin()
18549
    while True:
18550
      (fname, ftype, fid) = iprot.readFieldBegin()
18551
      if ftype == TType.STOP:
18552
        break
18553
      if fid == 1:
18554
        if ftype == TType.STRUCT:
18555
          self.sourceItemPricing = SourceItemPricing()
18556
          self.sourceItemPricing.read(iprot)
18557
        else:
18558
          iprot.skip(ftype)
18559
      else:
18560
        iprot.skip(ftype)
18561
      iprot.readFieldEnd()
18562
    iprot.readStructEnd()
18563
 
18564
  def write(self, oprot):
18565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18567
      return
18568
    oprot.writeStructBegin('addSourceItemPricing_args')
18569
    if self.sourceItemPricing is not None:
18570
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18571
      self.sourceItemPricing.write(oprot)
18572
      oprot.writeFieldEnd()
18573
    oprot.writeFieldStop()
18574
    oprot.writeStructEnd()
18575
 
18576
  def validate(self):
18577
    return
18578
 
18579
 
18580
  def __repr__(self):
18581
    L = ['%s=%r' % (key, value)
18582
      for key, value in self.__dict__.iteritems()]
18583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18584
 
18585
  def __eq__(self, other):
18586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18587
 
18588
  def __ne__(self, other):
18589
    return not (self == other)
18590
 
18591
class addSourceItemPricing_result:
18592
  """
18593
  Attributes:
18594
   - cex
18595
  """
18596
 
18597
  thrift_spec = (
18598
    None, # 0
18599
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18600
  )
18601
 
18602
  def __init__(self, cex=None,):
18603
    self.cex = cex
18604
 
18605
  def read(self, iprot):
18606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18608
      return
18609
    iprot.readStructBegin()
18610
    while True:
18611
      (fname, ftype, fid) = iprot.readFieldBegin()
18612
      if ftype == TType.STOP:
18613
        break
18614
      if fid == 1:
18615
        if ftype == TType.STRUCT:
18616
          self.cex = CatalogServiceException()
18617
          self.cex.read(iprot)
18618
        else:
18619
          iprot.skip(ftype)
18620
      else:
18621
        iprot.skip(ftype)
18622
      iprot.readFieldEnd()
18623
    iprot.readStructEnd()
18624
 
18625
  def write(self, oprot):
18626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18628
      return
18629
    oprot.writeStructBegin('addSourceItemPricing_result')
18630
    if self.cex is not None:
18631
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18632
      self.cex.write(oprot)
18633
      oprot.writeFieldEnd()
18634
    oprot.writeFieldStop()
18635
    oprot.writeStructEnd()
18636
 
18637
  def validate(self):
18638
    return
18639
 
18640
 
18641
  def __repr__(self):
18642
    L = ['%s=%r' % (key, value)
18643
      for key, value in self.__dict__.iteritems()]
18644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18645
 
18646
  def __eq__(self, other):
18647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18648
 
18649
  def __ne__(self, other):
18650
    return not (self == other)
18651
 
18652
class getAllSourcePricing_args:
18653
  """
18654
  Attributes:
18655
   - itemId
18656
  """
18657
 
18658
  thrift_spec = (
18659
    None, # 0
18660
    (1, TType.I64, 'itemId', None, None, ), # 1
18661
  )
18662
 
18663
  def __init__(self, itemId=None,):
18664
    self.itemId = itemId
18665
 
18666
  def read(self, iprot):
18667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18669
      return
18670
    iprot.readStructBegin()
18671
    while True:
18672
      (fname, ftype, fid) = iprot.readFieldBegin()
18673
      if ftype == TType.STOP:
18674
        break
18675
      if fid == 1:
18676
        if ftype == TType.I64:
18677
          self.itemId = iprot.readI64();
18678
        else:
18679
          iprot.skip(ftype)
18680
      else:
18681
        iprot.skip(ftype)
18682
      iprot.readFieldEnd()
18683
    iprot.readStructEnd()
18684
 
18685
  def write(self, oprot):
18686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18688
      return
18689
    oprot.writeStructBegin('getAllSourcePricing_args')
18690
    if self.itemId is not None:
18691
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18692
      oprot.writeI64(self.itemId)
18693
      oprot.writeFieldEnd()
18694
    oprot.writeFieldStop()
18695
    oprot.writeStructEnd()
18696
 
18697
  def validate(self):
18698
    return
18699
 
18700
 
18701
  def __repr__(self):
18702
    L = ['%s=%r' % (key, value)
18703
      for key, value in self.__dict__.iteritems()]
18704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18705
 
18706
  def __eq__(self, other):
18707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18708
 
18709
  def __ne__(self, other):
18710
    return not (self == other)
18711
 
18712
class getAllSourcePricing_result:
18713
  """
18714
  Attributes:
18715
   - success
18716
   - cex
18717
  """
18718
 
18719
  thrift_spec = (
18720
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18721
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18722
  )
18723
 
18724
  def __init__(self, success=None, cex=None,):
18725
    self.success = success
18726
    self.cex = cex
18727
 
18728
  def read(self, iprot):
18729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18731
      return
18732
    iprot.readStructBegin()
18733
    while True:
18734
      (fname, ftype, fid) = iprot.readFieldBegin()
18735
      if ftype == TType.STOP:
18736
        break
18737
      if fid == 0:
18738
        if ftype == TType.LIST:
18739
          self.success = []
12567 amit.gupta 18740
          (_etype330, _size327) = iprot.readListBegin()
18741
          for _i331 in xrange(_size327):
18742
            _elem332 = SourceItemPricing()
18743
            _elem332.read(iprot)
18744
            self.success.append(_elem332)
5944 mandeep.dh 18745
          iprot.readListEnd()
18746
        else:
18747
          iprot.skip(ftype)
18748
      elif fid == 1:
18749
        if ftype == TType.STRUCT:
18750
          self.cex = CatalogServiceException()
18751
          self.cex.read(iprot)
18752
        else:
18753
          iprot.skip(ftype)
18754
      else:
18755
        iprot.skip(ftype)
18756
      iprot.readFieldEnd()
18757
    iprot.readStructEnd()
18758
 
18759
  def write(self, oprot):
18760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18762
      return
18763
    oprot.writeStructBegin('getAllSourcePricing_result')
18764
    if self.success is not None:
18765
      oprot.writeFieldBegin('success', TType.LIST, 0)
18766
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18767
      for iter333 in self.success:
18768
        iter333.write(oprot)
5944 mandeep.dh 18769
      oprot.writeListEnd()
18770
      oprot.writeFieldEnd()
18771
    if self.cex is not None:
18772
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18773
      self.cex.write(oprot)
18774
      oprot.writeFieldEnd()
18775
    oprot.writeFieldStop()
18776
    oprot.writeStructEnd()
18777
 
18778
  def validate(self):
18779
    return
18780
 
18781
 
18782
  def __repr__(self):
18783
    L = ['%s=%r' % (key, value)
18784
      for key, value in self.__dict__.iteritems()]
18785
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18786
 
18787
  def __eq__(self, other):
18788
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18789
 
18790
  def __ne__(self, other):
18791
    return not (self == other)
18792
 
18793
class getItemForSource_args:
18794
  """
18795
  Attributes:
18796
   - item_id
18797
   - sourceId
18798
  """
18799
 
18800
  thrift_spec = (
18801
    None, # 0
18802
    (1, TType.I64, 'item_id', None, None, ), # 1
18803
    (2, TType.I64, 'sourceId', None, None, ), # 2
18804
  )
18805
 
18806
  def __init__(self, item_id=None, sourceId=None,):
18807
    self.item_id = item_id
18808
    self.sourceId = sourceId
18809
 
18810
  def read(self, iprot):
18811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18813
      return
18814
    iprot.readStructBegin()
18815
    while True:
18816
      (fname, ftype, fid) = iprot.readFieldBegin()
18817
      if ftype == TType.STOP:
18818
        break
18819
      if fid == 1:
18820
        if ftype == TType.I64:
18821
          self.item_id = iprot.readI64();
18822
        else:
18823
          iprot.skip(ftype)
18824
      elif fid == 2:
18825
        if ftype == TType.I64:
18826
          self.sourceId = iprot.readI64();
18827
        else:
18828
          iprot.skip(ftype)
18829
      else:
18830
        iprot.skip(ftype)
18831
      iprot.readFieldEnd()
18832
    iprot.readStructEnd()
18833
 
18834
  def write(self, oprot):
18835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18837
      return
18838
    oprot.writeStructBegin('getItemForSource_args')
18839
    if self.item_id is not None:
18840
      oprot.writeFieldBegin('item_id', TType.I64, 1)
18841
      oprot.writeI64(self.item_id)
18842
      oprot.writeFieldEnd()
18843
    if self.sourceId is not None:
18844
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18845
      oprot.writeI64(self.sourceId)
18846
      oprot.writeFieldEnd()
18847
    oprot.writeFieldStop()
18848
    oprot.writeStructEnd()
18849
 
18850
  def validate(self):
18851
    return
18852
 
18853
 
18854
  def __repr__(self):
18855
    L = ['%s=%r' % (key, value)
18856
      for key, value in self.__dict__.iteritems()]
18857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18858
 
18859
  def __eq__(self, other):
18860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18861
 
18862
  def __ne__(self, other):
18863
    return not (self == other)
18864
 
18865
class getItemForSource_result:
18866
  """
18867
  Attributes:
18868
   - success
18869
   - cex
18870
  """
18871
 
18872
  thrift_spec = (
18873
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
18874
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18875
  )
18876
 
18877
  def __init__(self, success=None, cex=None,):
18878
    self.success = success
18879
    self.cex = cex
18880
 
18881
  def read(self, iprot):
18882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18884
      return
18885
    iprot.readStructBegin()
18886
    while True:
18887
      (fname, ftype, fid) = iprot.readFieldBegin()
18888
      if ftype == TType.STOP:
18889
        break
18890
      if fid == 0:
18891
        if ftype == TType.STRUCT:
18892
          self.success = Item()
18893
          self.success.read(iprot)
18894
        else:
18895
          iprot.skip(ftype)
18896
      elif fid == 1:
18897
        if ftype == TType.STRUCT:
18898
          self.cex = CatalogServiceException()
18899
          self.cex.read(iprot)
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('getItemForSource_result')
18912
    if self.success is not None:
18913
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18914
      self.success.write(oprot)
18915
      oprot.writeFieldEnd()
18916
    if self.cex is not None:
18917
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18918
      self.cex.write(oprot)
18919
      oprot.writeFieldEnd()
18920
    oprot.writeFieldStop()
18921
    oprot.writeStructEnd()
18922
 
18923
  def validate(self):
18924
    return
18925
 
18926
 
18927
  def __repr__(self):
18928
    L = ['%s=%r' % (key, value)
18929
      for key, value in self.__dict__.iteritems()]
18930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18931
 
18932
  def __eq__(self, other):
18933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18934
 
18935
  def __ne__(self, other):
18936
    return not (self == other)
18937
 
18938
class searchItemsInRange_args:
18939
  """
18940
  Attributes:
18941
   - searchTerms
18942
   - offset
18943
   - limit
18944
  """
18945
 
18946
  thrift_spec = (
18947
    None, # 0
18948
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18949
    (2, TType.I64, 'offset', None, None, ), # 2
18950
    (3, TType.I64, 'limit', None, None, ), # 3
18951
  )
18952
 
18953
  def __init__(self, searchTerms=None, offset=None, limit=None,):
18954
    self.searchTerms = searchTerms
18955
    self.offset = offset
18956
    self.limit = limit
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 == 1:
18968
        if ftype == TType.LIST:
18969
          self.searchTerms = []
12567 amit.gupta 18970
          (_etype337, _size334) = iprot.readListBegin()
18971
          for _i338 in xrange(_size334):
18972
            _elem339 = iprot.readString();
18973
            self.searchTerms.append(_elem339)
5944 mandeep.dh 18974
          iprot.readListEnd()
18975
        else:
18976
          iprot.skip(ftype)
18977
      elif fid == 2:
18978
        if ftype == TType.I64:
18979
          self.offset = iprot.readI64();
18980
        else:
18981
          iprot.skip(ftype)
18982
      elif fid == 3:
18983
        if ftype == TType.I64:
18984
          self.limit = iprot.readI64();
18985
        else:
18986
          iprot.skip(ftype)
18987
      else:
18988
        iprot.skip(ftype)
18989
      iprot.readFieldEnd()
18990
    iprot.readStructEnd()
18991
 
18992
  def write(self, oprot):
18993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18995
      return
18996
    oprot.writeStructBegin('searchItemsInRange_args')
18997
    if self.searchTerms is not None:
18998
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
18999
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19000
      for iter340 in self.searchTerms:
19001
        oprot.writeString(iter340)
5944 mandeep.dh 19002
      oprot.writeListEnd()
19003
      oprot.writeFieldEnd()
19004
    if self.offset is not None:
19005
      oprot.writeFieldBegin('offset', TType.I64, 2)
19006
      oprot.writeI64(self.offset)
19007
      oprot.writeFieldEnd()
19008
    if self.limit is not None:
19009
      oprot.writeFieldBegin('limit', TType.I64, 3)
19010
      oprot.writeI64(self.limit)
19011
      oprot.writeFieldEnd()
19012
    oprot.writeFieldStop()
19013
    oprot.writeStructEnd()
19014
 
19015
  def validate(self):
19016
    return
19017
 
19018
 
19019
  def __repr__(self):
19020
    L = ['%s=%r' % (key, value)
19021
      for key, value in self.__dict__.iteritems()]
19022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19023
 
19024
  def __eq__(self, other):
19025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19026
 
19027
  def __ne__(self, other):
19028
    return not (self == other)
19029
 
19030
class searchItemsInRange_result:
19031
  """
19032
  Attributes:
19033
   - success
19034
  """
19035
 
19036
  thrift_spec = (
19037
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19038
  )
19039
 
19040
  def __init__(self, success=None,):
19041
    self.success = success
19042
 
19043
  def read(self, iprot):
19044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19046
      return
19047
    iprot.readStructBegin()
19048
    while True:
19049
      (fname, ftype, fid) = iprot.readFieldBegin()
19050
      if ftype == TType.STOP:
19051
        break
19052
      if fid == 0:
19053
        if ftype == TType.LIST:
19054
          self.success = []
12567 amit.gupta 19055
          (_etype344, _size341) = iprot.readListBegin()
19056
          for _i345 in xrange(_size341):
19057
            _elem346 = Item()
19058
            _elem346.read(iprot)
19059
            self.success.append(_elem346)
5944 mandeep.dh 19060
          iprot.readListEnd()
19061
        else:
19062
          iprot.skip(ftype)
19063
      else:
19064
        iprot.skip(ftype)
19065
      iprot.readFieldEnd()
19066
    iprot.readStructEnd()
19067
 
19068
  def write(self, oprot):
19069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19071
      return
19072
    oprot.writeStructBegin('searchItemsInRange_result')
19073
    if self.success is not None:
19074
      oprot.writeFieldBegin('success', TType.LIST, 0)
19075
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19076
      for iter347 in self.success:
19077
        iter347.write(oprot)
5944 mandeep.dh 19078
      oprot.writeListEnd()
19079
      oprot.writeFieldEnd()
19080
    oprot.writeFieldStop()
19081
    oprot.writeStructEnd()
19082
 
19083
  def validate(self):
19084
    return
19085
 
19086
 
19087
  def __repr__(self):
19088
    L = ['%s=%r' % (key, value)
19089
      for key, value in self.__dict__.iteritems()]
19090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19091
 
19092
  def __eq__(self, other):
19093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19094
 
19095
  def __ne__(self, other):
19096
    return not (self == other)
19097
 
19098
class getSearchResultCount_args:
19099
  """
19100
  Attributes:
19101
   - searchTerms
19102
  """
19103
 
19104
  thrift_spec = (
19105
    None, # 0
19106
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19107
  )
19108
 
19109
  def __init__(self, searchTerms=None,):
19110
    self.searchTerms = searchTerms
19111
 
19112
  def read(self, iprot):
19113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19115
      return
19116
    iprot.readStructBegin()
19117
    while True:
19118
      (fname, ftype, fid) = iprot.readFieldBegin()
19119
      if ftype == TType.STOP:
19120
        break
19121
      if fid == 1:
19122
        if ftype == TType.LIST:
19123
          self.searchTerms = []
12567 amit.gupta 19124
          (_etype351, _size348) = iprot.readListBegin()
19125
          for _i352 in xrange(_size348):
19126
            _elem353 = iprot.readString();
19127
            self.searchTerms.append(_elem353)
5944 mandeep.dh 19128
          iprot.readListEnd()
19129
        else:
19130
          iprot.skip(ftype)
19131
      else:
19132
        iprot.skip(ftype)
19133
      iprot.readFieldEnd()
19134
    iprot.readStructEnd()
19135
 
19136
  def write(self, oprot):
19137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19139
      return
19140
    oprot.writeStructBegin('getSearchResultCount_args')
19141
    if self.searchTerms is not None:
19142
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19143
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19144
      for iter354 in self.searchTerms:
19145
        oprot.writeString(iter354)
5944 mandeep.dh 19146
      oprot.writeListEnd()
19147
      oprot.writeFieldEnd()
19148
    oprot.writeFieldStop()
19149
    oprot.writeStructEnd()
19150
 
19151
  def validate(self):
19152
    return
19153
 
19154
 
19155
  def __repr__(self):
19156
    L = ['%s=%r' % (key, value)
19157
      for key, value in self.__dict__.iteritems()]
19158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19159
 
19160
  def __eq__(self, other):
19161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19162
 
19163
  def __ne__(self, other):
19164
    return not (self == other)
19165
 
19166
class getSearchResultCount_result:
19167
  """
19168
  Attributes:
19169
   - success
19170
  """
19171
 
19172
  thrift_spec = (
19173
    (0, TType.I32, 'success', None, None, ), # 0
19174
  )
19175
 
19176
  def __init__(self, success=None,):
19177
    self.success = success
19178
 
19179
  def read(self, iprot):
19180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19182
      return
19183
    iprot.readStructBegin()
19184
    while True:
19185
      (fname, ftype, fid) = iprot.readFieldBegin()
19186
      if ftype == TType.STOP:
19187
        break
19188
      if fid == 0:
19189
        if ftype == TType.I32:
19190
          self.success = iprot.readI32();
19191
        else:
19192
          iprot.skip(ftype)
19193
      else:
19194
        iprot.skip(ftype)
19195
      iprot.readFieldEnd()
19196
    iprot.readStructEnd()
19197
 
19198
  def write(self, oprot):
19199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19201
      return
19202
    oprot.writeStructBegin('getSearchResultCount_result')
19203
    if self.success is not None:
19204
      oprot.writeFieldBegin('success', TType.I32, 0)
19205
      oprot.writeI32(self.success)
19206
      oprot.writeFieldEnd()
19207
    oprot.writeFieldStop()
19208
    oprot.writeStructEnd()
19209
 
19210
  def validate(self):
19211
    return
19212
 
19213
 
19214
  def __repr__(self):
19215
    L = ['%s=%r' % (key, value)
19216
      for key, value in self.__dict__.iteritems()]
19217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19218
 
19219
  def __eq__(self, other):
19220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19221
 
19222
  def __ne__(self, other):
19223
    return not (self == other)
19224
 
19225
class getProductNotifications_args:
19226
  """
19227
  Attributes:
19228
   - startDateTime
19229
  """
19230
 
19231
  thrift_spec = (
19232
    None, # 0
19233
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19234
  )
19235
 
19236
  def __init__(self, startDateTime=None,):
19237
    self.startDateTime = startDateTime
19238
 
19239
  def read(self, iprot):
19240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19242
      return
19243
    iprot.readStructBegin()
19244
    while True:
19245
      (fname, ftype, fid) = iprot.readFieldBegin()
19246
      if ftype == TType.STOP:
19247
        break
19248
      if fid == 1:
19249
        if ftype == TType.I64:
19250
          self.startDateTime = iprot.readI64();
19251
        else:
19252
          iprot.skip(ftype)
19253
      else:
19254
        iprot.skip(ftype)
19255
      iprot.readFieldEnd()
19256
    iprot.readStructEnd()
19257
 
19258
  def write(self, oprot):
19259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19261
      return
19262
    oprot.writeStructBegin('getProductNotifications_args')
19263
    if self.startDateTime is not None:
19264
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19265
      oprot.writeI64(self.startDateTime)
19266
      oprot.writeFieldEnd()
19267
    oprot.writeFieldStop()
19268
    oprot.writeStructEnd()
19269
 
19270
  def validate(self):
19271
    return
19272
 
19273
 
19274
  def __repr__(self):
19275
    L = ['%s=%r' % (key, value)
19276
      for key, value in self.__dict__.iteritems()]
19277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19278
 
19279
  def __eq__(self, other):
19280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19281
 
19282
  def __ne__(self, other):
19283
    return not (self == other)
19284
 
19285
class getProductNotifications_result:
19286
  """
19287
  Attributes:
19288
   - success
19289
  """
19290
 
19291
  thrift_spec = (
19292
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19293
  )
19294
 
19295
  def __init__(self, success=None,):
19296
    self.success = success
19297
 
19298
  def read(self, iprot):
19299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19301
      return
19302
    iprot.readStructBegin()
19303
    while True:
19304
      (fname, ftype, fid) = iprot.readFieldBegin()
19305
      if ftype == TType.STOP:
19306
        break
19307
      if fid == 0:
19308
        if ftype == TType.LIST:
19309
          self.success = []
12567 amit.gupta 19310
          (_etype358, _size355) = iprot.readListBegin()
19311
          for _i359 in xrange(_size355):
19312
            _elem360 = ProductNotificationRequest()
19313
            _elem360.read(iprot)
19314
            self.success.append(_elem360)
5944 mandeep.dh 19315
          iprot.readListEnd()
19316
        else:
19317
          iprot.skip(ftype)
19318
      else:
19319
        iprot.skip(ftype)
19320
      iprot.readFieldEnd()
19321
    iprot.readStructEnd()
19322
 
19323
  def write(self, oprot):
19324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19326
      return
19327
    oprot.writeStructBegin('getProductNotifications_result')
19328
    if self.success is not None:
19329
      oprot.writeFieldBegin('success', TType.LIST, 0)
19330
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19331
      for iter361 in self.success:
19332
        iter361.write(oprot)
5944 mandeep.dh 19333
      oprot.writeListEnd()
19334
      oprot.writeFieldEnd()
19335
    oprot.writeFieldStop()
19336
    oprot.writeStructEnd()
19337
 
19338
  def validate(self):
19339
    return
19340
 
19341
 
19342
  def __repr__(self):
19343
    L = ['%s=%r' % (key, value)
19344
      for key, value in self.__dict__.iteritems()]
19345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19346
 
19347
  def __eq__(self, other):
19348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19349
 
19350
  def __ne__(self, other):
19351
    return not (self == other)
19352
 
19353
class getProductNotificationRequestCount_args:
19354
  """
19355
  Attributes:
19356
   - startDateTime
7897 amar.kumar 19357
   - categoryId
5944 mandeep.dh 19358
  """
19359
 
19360
  thrift_spec = (
19361
    None, # 0
19362
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19363
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19364
  )
19365
 
7897 amar.kumar 19366
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19367
    self.startDateTime = startDateTime
7897 amar.kumar 19368
    self.categoryId = categoryId
5944 mandeep.dh 19369
 
19370
  def read(self, iprot):
19371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19373
      return
19374
    iprot.readStructBegin()
19375
    while True:
19376
      (fname, ftype, fid) = iprot.readFieldBegin()
19377
      if ftype == TType.STOP:
19378
        break
19379
      if fid == 1:
19380
        if ftype == TType.I64:
19381
          self.startDateTime = iprot.readI64();
19382
        else:
19383
          iprot.skip(ftype)
7897 amar.kumar 19384
      elif fid == 2:
19385
        if ftype == TType.I64:
19386
          self.categoryId = iprot.readI64();
19387
        else:
19388
          iprot.skip(ftype)
5944 mandeep.dh 19389
      else:
19390
        iprot.skip(ftype)
19391
      iprot.readFieldEnd()
19392
    iprot.readStructEnd()
19393
 
19394
  def write(self, oprot):
19395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19397
      return
19398
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19399
    if self.startDateTime is not None:
19400
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19401
      oprot.writeI64(self.startDateTime)
19402
      oprot.writeFieldEnd()
7897 amar.kumar 19403
    if self.categoryId is not None:
19404
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19405
      oprot.writeI64(self.categoryId)
19406
      oprot.writeFieldEnd()
5944 mandeep.dh 19407
    oprot.writeFieldStop()
19408
    oprot.writeStructEnd()
19409
 
19410
  def validate(self):
19411
    return
19412
 
19413
 
19414
  def __repr__(self):
19415
    L = ['%s=%r' % (key, value)
19416
      for key, value in self.__dict__.iteritems()]
19417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19418
 
19419
  def __eq__(self, other):
19420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19421
 
19422
  def __ne__(self, other):
19423
    return not (self == other)
19424
 
19425
class getProductNotificationRequestCount_result:
19426
  """
19427
  Attributes:
19428
   - success
19429
  """
19430
 
19431
  thrift_spec = (
19432
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19433
  )
19434
 
19435
  def __init__(self, success=None,):
19436
    self.success = success
19437
 
19438
  def read(self, iprot):
19439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19441
      return
19442
    iprot.readStructBegin()
19443
    while True:
19444
      (fname, ftype, fid) = iprot.readFieldBegin()
19445
      if ftype == TType.STOP:
19446
        break
19447
      if fid == 0:
19448
        if ftype == TType.LIST:
19449
          self.success = []
12567 amit.gupta 19450
          (_etype365, _size362) = iprot.readListBegin()
19451
          for _i366 in xrange(_size362):
19452
            _elem367 = ProductNotificationRequestCount()
19453
            _elem367.read(iprot)
19454
            self.success.append(_elem367)
5944 mandeep.dh 19455
          iprot.readListEnd()
19456
        else:
19457
          iprot.skip(ftype)
19458
      else:
19459
        iprot.skip(ftype)
19460
      iprot.readFieldEnd()
19461
    iprot.readStructEnd()
19462
 
19463
  def write(self, oprot):
19464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19466
      return
19467
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19468
    if self.success is not None:
19469
      oprot.writeFieldBegin('success', TType.LIST, 0)
19470
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19471
      for iter368 in self.success:
19472
        iter368.write(oprot)
5944 mandeep.dh 19473
      oprot.writeListEnd()
19474
      oprot.writeFieldEnd()
19475
    oprot.writeFieldStop()
19476
    oprot.writeStructEnd()
19477
 
19478
  def validate(self):
19479
    return
19480
 
19481
 
19482
  def __repr__(self):
19483
    L = ['%s=%r' % (key, value)
19484
      for key, value in self.__dict__.iteritems()]
19485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19486
 
19487
  def __eq__(self, other):
19488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19489
 
19490
  def __ne__(self, other):
19491
    return not (self == other)
19492
 
19493
class addAuthorizationLog_args:
19494
  """
19495
  Attributes:
19496
   - itemId
19497
   - username
19498
   - reason
19499
  """
19500
 
19501
  thrift_spec = (
19502
    None, # 0
19503
    (1, TType.I64, 'itemId', None, None, ), # 1
19504
    (2, TType.STRING, 'username', None, None, ), # 2
19505
    (3, TType.STRING, 'reason', None, None, ), # 3
19506
  )
19507
 
19508
  def __init__(self, itemId=None, username=None, reason=None,):
19509
    self.itemId = itemId
19510
    self.username = username
19511
    self.reason = reason
19512
 
19513
  def read(self, iprot):
19514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19516
      return
19517
    iprot.readStructBegin()
19518
    while True:
19519
      (fname, ftype, fid) = iprot.readFieldBegin()
19520
      if ftype == TType.STOP:
19521
        break
19522
      if fid == 1:
19523
        if ftype == TType.I64:
19524
          self.itemId = iprot.readI64();
19525
        else:
19526
          iprot.skip(ftype)
19527
      elif fid == 2:
19528
        if ftype == TType.STRING:
19529
          self.username = iprot.readString();
19530
        else:
19531
          iprot.skip(ftype)
19532
      elif fid == 3:
19533
        if ftype == TType.STRING:
19534
          self.reason = iprot.readString();
19535
        else:
19536
          iprot.skip(ftype)
19537
      else:
19538
        iprot.skip(ftype)
19539
      iprot.readFieldEnd()
19540
    iprot.readStructEnd()
19541
 
19542
  def write(self, oprot):
19543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19545
      return
19546
    oprot.writeStructBegin('addAuthorizationLog_args')
19547
    if self.itemId is not None:
19548
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19549
      oprot.writeI64(self.itemId)
19550
      oprot.writeFieldEnd()
19551
    if self.username is not None:
19552
      oprot.writeFieldBegin('username', TType.STRING, 2)
19553
      oprot.writeString(self.username)
19554
      oprot.writeFieldEnd()
19555
    if self.reason is not None:
19556
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19557
      oprot.writeString(self.reason)
19558
      oprot.writeFieldEnd()
19559
    oprot.writeFieldStop()
19560
    oprot.writeStructEnd()
19561
 
19562
  def validate(self):
19563
    return
19564
 
19565
 
19566
  def __repr__(self):
19567
    L = ['%s=%r' % (key, value)
19568
      for key, value in self.__dict__.iteritems()]
19569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19570
 
19571
  def __eq__(self, other):
19572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19573
 
19574
  def __ne__(self, other):
19575
    return not (self == other)
19576
 
19577
class addAuthorizationLog_result:
19578
  """
19579
  Attributes:
19580
   - success
19581
   - cex
19582
  """
19583
 
19584
  thrift_spec = (
19585
    (0, TType.BOOL, 'success', None, None, ), # 0
19586
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19587
  )
19588
 
19589
  def __init__(self, success=None, cex=None,):
19590
    self.success = success
19591
    self.cex = cex
19592
 
19593
  def read(self, iprot):
19594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19596
      return
19597
    iprot.readStructBegin()
19598
    while True:
19599
      (fname, ftype, fid) = iprot.readFieldBegin()
19600
      if ftype == TType.STOP:
19601
        break
19602
      if fid == 0:
19603
        if ftype == TType.BOOL:
19604
          self.success = iprot.readBool();
19605
        else:
19606
          iprot.skip(ftype)
19607
      elif fid == 1:
19608
        if ftype == TType.STRUCT:
19609
          self.cex = CatalogServiceException()
19610
          self.cex.read(iprot)
19611
        else:
19612
          iprot.skip(ftype)
19613
      else:
19614
        iprot.skip(ftype)
19615
      iprot.readFieldEnd()
19616
    iprot.readStructEnd()
19617
 
19618
  def write(self, oprot):
19619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19621
      return
19622
    oprot.writeStructBegin('addAuthorizationLog_result')
19623
    if self.success is not None:
19624
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19625
      oprot.writeBool(self.success)
19626
      oprot.writeFieldEnd()
19627
    if self.cex is not None:
19628
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19629
      self.cex.write(oprot)
19630
      oprot.writeFieldEnd()
19631
    oprot.writeFieldStop()
19632
    oprot.writeStructEnd()
19633
 
19634
  def validate(self):
19635
    return
19636
 
19637
 
19638
  def __repr__(self):
19639
    L = ['%s=%r' % (key, value)
19640
      for key, value in self.__dict__.iteritems()]
19641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19642
 
19643
  def __eq__(self, other):
19644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19645
 
19646
  def __ne__(self, other):
19647
    return not (self == other)
19648
 
19649
class addupdateVoucherForItem_args:
19650
  """
19651
  Attributes:
19652
   - catalog_item_id
19653
   - voucherType
19654
   - voucherAmount
19655
  """
19656
 
19657
  thrift_spec = (
19658
    None, # 0
19659
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19660
    (2, TType.I64, 'voucherType', None, None, ), # 2
19661
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19662
  )
19663
 
19664
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19665
    self.catalog_item_id = catalog_item_id
19666
    self.voucherType = voucherType
19667
    self.voucherAmount = voucherAmount
19668
 
19669
  def read(self, iprot):
19670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19672
      return
19673
    iprot.readStructBegin()
19674
    while True:
19675
      (fname, ftype, fid) = iprot.readFieldBegin()
19676
      if ftype == TType.STOP:
19677
        break
19678
      if fid == 1:
19679
        if ftype == TType.I64:
19680
          self.catalog_item_id = iprot.readI64();
19681
        else:
19682
          iprot.skip(ftype)
19683
      elif fid == 2:
19684
        if ftype == TType.I64:
19685
          self.voucherType = iprot.readI64();
19686
        else:
19687
          iprot.skip(ftype)
19688
      elif fid == 3:
19689
        if ftype == TType.I64:
19690
          self.voucherAmount = iprot.readI64();
19691
        else:
19692
          iprot.skip(ftype)
19693
      else:
19694
        iprot.skip(ftype)
19695
      iprot.readFieldEnd()
19696
    iprot.readStructEnd()
19697
 
19698
  def write(self, oprot):
19699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19701
      return
19702
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19703
    if self.catalog_item_id is not None:
19704
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19705
      oprot.writeI64(self.catalog_item_id)
19706
      oprot.writeFieldEnd()
19707
    if self.voucherType is not None:
19708
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19709
      oprot.writeI64(self.voucherType)
19710
      oprot.writeFieldEnd()
19711
    if self.voucherAmount is not None:
19712
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19713
      oprot.writeI64(self.voucherAmount)
19714
      oprot.writeFieldEnd()
19715
    oprot.writeFieldStop()
19716
    oprot.writeStructEnd()
19717
 
19718
  def validate(self):
19719
    return
19720
 
19721
 
19722
  def __repr__(self):
19723
    L = ['%s=%r' % (key, value)
19724
      for key, value in self.__dict__.iteritems()]
19725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19726
 
19727
  def __eq__(self, other):
19728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19729
 
19730
  def __ne__(self, other):
19731
    return not (self == other)
19732
 
19733
class addupdateVoucherForItem_result:
19734
  """
19735
  Attributes:
19736
   - success
19737
   - cex
19738
  """
19739
 
19740
  thrift_spec = (
19741
    (0, TType.BOOL, 'success', None, None, ), # 0
19742
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19743
  )
19744
 
19745
  def __init__(self, success=None, cex=None,):
19746
    self.success = success
19747
    self.cex = cex
19748
 
19749
  def read(self, iprot):
19750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19752
      return
19753
    iprot.readStructBegin()
19754
    while True:
19755
      (fname, ftype, fid) = iprot.readFieldBegin()
19756
      if ftype == TType.STOP:
19757
        break
19758
      if fid == 0:
19759
        if ftype == TType.BOOL:
19760
          self.success = iprot.readBool();
19761
        else:
19762
          iprot.skip(ftype)
19763
      elif fid == 1:
19764
        if ftype == TType.STRUCT:
19765
          self.cex = CatalogServiceException()
19766
          self.cex.read(iprot)
19767
        else:
19768
          iprot.skip(ftype)
19769
      else:
19770
        iprot.skip(ftype)
19771
      iprot.readFieldEnd()
19772
    iprot.readStructEnd()
19773
 
19774
  def write(self, oprot):
19775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19777
      return
19778
    oprot.writeStructBegin('addupdateVoucherForItem_result')
19779
    if self.success is not None:
19780
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19781
      oprot.writeBool(self.success)
19782
      oprot.writeFieldEnd()
19783
    if self.cex is not None:
19784
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19785
      self.cex.write(oprot)
19786
      oprot.writeFieldEnd()
19787
    oprot.writeFieldStop()
19788
    oprot.writeStructEnd()
19789
 
19790
  def validate(self):
19791
    return
19792
 
19793
 
19794
  def __repr__(self):
19795
    L = ['%s=%r' % (key, value)
19796
      for key, value in self.__dict__.iteritems()]
19797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19798
 
19799
  def __eq__(self, other):
19800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19801
 
19802
  def __ne__(self, other):
19803
    return not (self == other)
19804
 
19805
class deleteVoucherForItem_args:
19806
  """
19807
  Attributes:
19808
   - catalog_item_id
19809
   - voucherType
19810
  """
19811
 
19812
  thrift_spec = (
19813
    None, # 0
19814
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19815
    (2, TType.I64, 'voucherType', None, None, ), # 2
19816
  )
19817
 
19818
  def __init__(self, catalog_item_id=None, voucherType=None,):
19819
    self.catalog_item_id = catalog_item_id
19820
    self.voucherType = voucherType
19821
 
19822
  def read(self, iprot):
19823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19825
      return
19826
    iprot.readStructBegin()
19827
    while True:
19828
      (fname, ftype, fid) = iprot.readFieldBegin()
19829
      if ftype == TType.STOP:
19830
        break
19831
      if fid == 1:
19832
        if ftype == TType.I64:
19833
          self.catalog_item_id = iprot.readI64();
19834
        else:
19835
          iprot.skip(ftype)
19836
      elif fid == 2:
19837
        if ftype == TType.I64:
19838
          self.voucherType = iprot.readI64();
19839
        else:
19840
          iprot.skip(ftype)
19841
      else:
19842
        iprot.skip(ftype)
19843
      iprot.readFieldEnd()
19844
    iprot.readStructEnd()
19845
 
19846
  def write(self, oprot):
19847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19849
      return
19850
    oprot.writeStructBegin('deleteVoucherForItem_args')
19851
    if self.catalog_item_id is not None:
19852
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19853
      oprot.writeI64(self.catalog_item_id)
19854
      oprot.writeFieldEnd()
19855
    if self.voucherType is not None:
19856
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19857
      oprot.writeI64(self.voucherType)
19858
      oprot.writeFieldEnd()
19859
    oprot.writeFieldStop()
19860
    oprot.writeStructEnd()
19861
 
19862
  def validate(self):
19863
    return
19864
 
19865
 
19866
  def __repr__(self):
19867
    L = ['%s=%r' % (key, value)
19868
      for key, value in self.__dict__.iteritems()]
19869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19870
 
19871
  def __eq__(self, other):
19872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19873
 
19874
  def __ne__(self, other):
19875
    return not (self == other)
19876
 
19877
class deleteVoucherForItem_result:
19878
  """
19879
  Attributes:
19880
   - success
19881
   - cex
19882
  """
19883
 
19884
  thrift_spec = (
19885
    (0, TType.BOOL, 'success', None, None, ), # 0
19886
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19887
  )
19888
 
19889
  def __init__(self, success=None, cex=None,):
19890
    self.success = success
19891
    self.cex = cex
19892
 
19893
  def read(self, iprot):
19894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19896
      return
19897
    iprot.readStructBegin()
19898
    while True:
19899
      (fname, ftype, fid) = iprot.readFieldBegin()
19900
      if ftype == TType.STOP:
19901
        break
19902
      if fid == 0:
19903
        if ftype == TType.BOOL:
19904
          self.success = iprot.readBool();
19905
        else:
19906
          iprot.skip(ftype)
19907
      elif fid == 1:
19908
        if ftype == TType.STRUCT:
19909
          self.cex = CatalogServiceException()
19910
          self.cex.read(iprot)
19911
        else:
19912
          iprot.skip(ftype)
19913
      else:
19914
        iprot.skip(ftype)
19915
      iprot.readFieldEnd()
19916
    iprot.readStructEnd()
19917
 
19918
  def write(self, oprot):
19919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19921
      return
19922
    oprot.writeStructBegin('deleteVoucherForItem_result')
19923
    if self.success is not None:
19924
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19925
      oprot.writeBool(self.success)
19926
      oprot.writeFieldEnd()
19927
    if self.cex is not None:
19928
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19929
      self.cex.write(oprot)
19930
      oprot.writeFieldEnd()
19931
    oprot.writeFieldStop()
19932
    oprot.writeStructEnd()
19933
 
19934
  def validate(self):
19935
    return
19936
 
19937
 
19938
  def __repr__(self):
19939
    L = ['%s=%r' % (key, value)
19940
      for key, value in self.__dict__.iteritems()]
19941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19942
 
19943
  def __eq__(self, other):
19944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19945
 
19946
  def __ne__(self, other):
19947
    return not (self == other)
19948
 
19949
class getVoucherAmount_args:
19950
  """
19951
  Attributes:
19952
   - itemId
19953
   - voucherType
19954
  """
19955
 
19956
  thrift_spec = (
19957
    None, # 0
19958
    (1, TType.I64, 'itemId', None, None, ), # 1
19959
    (2, TType.I64, 'voucherType', None, None, ), # 2
19960
  )
19961
 
19962
  def __init__(self, itemId=None, voucherType=None,):
19963
    self.itemId = itemId
19964
    self.voucherType = voucherType
19965
 
19966
  def read(self, iprot):
19967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19969
      return
19970
    iprot.readStructBegin()
19971
    while True:
19972
      (fname, ftype, fid) = iprot.readFieldBegin()
19973
      if ftype == TType.STOP:
19974
        break
19975
      if fid == 1:
19976
        if ftype == TType.I64:
19977
          self.itemId = iprot.readI64();
19978
        else:
19979
          iprot.skip(ftype)
19980
      elif fid == 2:
19981
        if ftype == TType.I64:
19982
          self.voucherType = iprot.readI64();
19983
        else:
19984
          iprot.skip(ftype)
19985
      else:
19986
        iprot.skip(ftype)
19987
      iprot.readFieldEnd()
19988
    iprot.readStructEnd()
19989
 
19990
  def write(self, oprot):
19991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19993
      return
19994
    oprot.writeStructBegin('getVoucherAmount_args')
19995
    if self.itemId is not None:
19996
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19997
      oprot.writeI64(self.itemId)
19998
      oprot.writeFieldEnd()
19999
    if self.voucherType is not None:
20000
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20001
      oprot.writeI64(self.voucherType)
20002
      oprot.writeFieldEnd()
20003
    oprot.writeFieldStop()
20004
    oprot.writeStructEnd()
20005
 
20006
  def validate(self):
20007
    return
20008
 
20009
 
20010
  def __repr__(self):
20011
    L = ['%s=%r' % (key, value)
20012
      for key, value in self.__dict__.iteritems()]
20013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20014
 
20015
  def __eq__(self, other):
20016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20017
 
20018
  def __ne__(self, other):
20019
    return not (self == other)
20020
 
20021
class getVoucherAmount_result:
20022
  """
20023
  Attributes:
20024
   - success
20025
  """
20026
 
20027
  thrift_spec = (
20028
    (0, TType.I64, 'success', None, None, ), # 0
20029
  )
20030
 
20031
  def __init__(self, success=None,):
20032
    self.success = success
20033
 
20034
  def read(self, iprot):
20035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20037
      return
20038
    iprot.readStructBegin()
20039
    while True:
20040
      (fname, ftype, fid) = iprot.readFieldBegin()
20041
      if ftype == TType.STOP:
20042
        break
20043
      if fid == 0:
20044
        if ftype == TType.I64:
20045
          self.success = iprot.readI64();
20046
        else:
20047
          iprot.skip(ftype)
20048
      else:
20049
        iprot.skip(ftype)
20050
      iprot.readFieldEnd()
20051
    iprot.readStructEnd()
20052
 
20053
  def write(self, oprot):
20054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20056
      return
20057
    oprot.writeStructBegin('getVoucherAmount_result')
20058
    if self.success is not None:
20059
      oprot.writeFieldBegin('success', TType.I64, 0)
20060
      oprot.writeI64(self.success)
20061
      oprot.writeFieldEnd()
20062
    oprot.writeFieldStop()
20063
    oprot.writeStructEnd()
20064
 
20065
  def validate(self):
20066
    return
20067
 
20068
 
20069
  def __repr__(self):
20070
    L = ['%s=%r' % (key, value)
20071
      for key, value in self.__dict__.iteritems()]
20072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20073
 
20074
  def __eq__(self, other):
20075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20076
 
20077
  def __ne__(self, other):
20078
    return not (self == other)
20079
 
20080
class getAllItemVouchers_args:
20081
  """
20082
  Attributes:
20083
   - itemId
20084
  """
20085
 
20086
  thrift_spec = (
20087
    None, # 0
20088
    (1, TType.I64, 'itemId', None, None, ), # 1
20089
  )
20090
 
20091
  def __init__(self, itemId=None,):
20092
    self.itemId = itemId
20093
 
20094
  def read(self, iprot):
20095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20097
      return
20098
    iprot.readStructBegin()
20099
    while True:
20100
      (fname, ftype, fid) = iprot.readFieldBegin()
20101
      if ftype == TType.STOP:
20102
        break
20103
      if fid == 1:
20104
        if ftype == TType.I64:
20105
          self.itemId = iprot.readI64();
20106
        else:
20107
          iprot.skip(ftype)
20108
      else:
20109
        iprot.skip(ftype)
20110
      iprot.readFieldEnd()
20111
    iprot.readStructEnd()
20112
 
20113
  def write(self, oprot):
20114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20116
      return
20117
    oprot.writeStructBegin('getAllItemVouchers_args')
20118
    if self.itemId is not None:
20119
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20120
      oprot.writeI64(self.itemId)
20121
      oprot.writeFieldEnd()
20122
    oprot.writeFieldStop()
20123
    oprot.writeStructEnd()
20124
 
20125
  def validate(self):
20126
    return
20127
 
20128
 
20129
  def __repr__(self):
20130
    L = ['%s=%r' % (key, value)
20131
      for key, value in self.__dict__.iteritems()]
20132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20133
 
20134
  def __eq__(self, other):
20135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20136
 
20137
  def __ne__(self, other):
20138
    return not (self == other)
20139
 
20140
class getAllItemVouchers_result:
20141
  """
20142
  Attributes:
20143
   - success
20144
  """
20145
 
20146
  thrift_spec = (
20147
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20148
  )
20149
 
20150
  def __init__(self, success=None,):
20151
    self.success = success
20152
 
20153
  def read(self, iprot):
20154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20156
      return
20157
    iprot.readStructBegin()
20158
    while True:
20159
      (fname, ftype, fid) = iprot.readFieldBegin()
20160
      if ftype == TType.STOP:
20161
        break
20162
      if fid == 0:
20163
        if ftype == TType.LIST:
20164
          self.success = []
12567 amit.gupta 20165
          (_etype372, _size369) = iprot.readListBegin()
20166
          for _i373 in xrange(_size369):
20167
            _elem374 = VoucherItemMapping()
20168
            _elem374.read(iprot)
20169
            self.success.append(_elem374)
5944 mandeep.dh 20170
          iprot.readListEnd()
20171
        else:
20172
          iprot.skip(ftype)
20173
      else:
20174
        iprot.skip(ftype)
20175
      iprot.readFieldEnd()
20176
    iprot.readStructEnd()
20177
 
20178
  def write(self, oprot):
20179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20181
      return
20182
    oprot.writeStructBegin('getAllItemVouchers_result')
20183
    if self.success is not None:
20184
      oprot.writeFieldBegin('success', TType.LIST, 0)
20185
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20186
      for iter375 in self.success:
20187
        iter375.write(oprot)
5944 mandeep.dh 20188
      oprot.writeListEnd()
20189
      oprot.writeFieldEnd()
20190
    oprot.writeFieldStop()
20191
    oprot.writeStructEnd()
20192
 
20193
  def validate(self):
20194
    return
20195
 
20196
 
20197
  def __repr__(self):
20198
    L = ['%s=%r' % (key, value)
20199
      for key, value in self.__dict__.iteritems()]
20200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20201
 
20202
  def __eq__(self, other):
20203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20204
 
20205
  def __ne__(self, other):
20206
    return not (self == other)
20207
 
20208
class isValidCatalogItemId_args:
20209
  """
20210
  Attributes:
20211
   - catalog_item_id
20212
  """
20213
 
20214
  thrift_spec = (
20215
    None, # 0
20216
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20217
  )
20218
 
20219
  def __init__(self, catalog_item_id=None,):
20220
    self.catalog_item_id = catalog_item_id
20221
 
20222
  def read(self, iprot):
20223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20225
      return
20226
    iprot.readStructBegin()
20227
    while True:
20228
      (fname, ftype, fid) = iprot.readFieldBegin()
20229
      if ftype == TType.STOP:
20230
        break
20231
      if fid == 1:
20232
        if ftype == TType.I64:
20233
          self.catalog_item_id = iprot.readI64();
20234
        else:
20235
          iprot.skip(ftype)
20236
      else:
20237
        iprot.skip(ftype)
20238
      iprot.readFieldEnd()
20239
    iprot.readStructEnd()
20240
 
20241
  def write(self, oprot):
20242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20244
      return
20245
    oprot.writeStructBegin('isValidCatalogItemId_args')
20246
    if self.catalog_item_id is not None:
20247
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20248
      oprot.writeI64(self.catalog_item_id)
20249
      oprot.writeFieldEnd()
20250
    oprot.writeFieldStop()
20251
    oprot.writeStructEnd()
20252
 
20253
  def validate(self):
20254
    return
20255
 
20256
 
20257
  def __repr__(self):
20258
    L = ['%s=%r' % (key, value)
20259
      for key, value in self.__dict__.iteritems()]
20260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20261
 
20262
  def __eq__(self, other):
20263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20264
 
20265
  def __ne__(self, other):
20266
    return not (self == other)
20267
 
20268
class isValidCatalogItemId_result:
20269
  """
20270
  Attributes:
20271
   - success
20272
  """
20273
 
20274
  thrift_spec = (
20275
    (0, TType.BOOL, 'success', None, None, ), # 0
20276
  )
20277
 
20278
  def __init__(self, success=None,):
20279
    self.success = success
20280
 
20281
  def read(self, iprot):
20282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20284
      return
20285
    iprot.readStructBegin()
20286
    while True:
20287
      (fname, ftype, fid) = iprot.readFieldBegin()
20288
      if ftype == TType.STOP:
20289
        break
20290
      if fid == 0:
20291
        if ftype == TType.BOOL:
20292
          self.success = iprot.readBool();
20293
        else:
20294
          iprot.skip(ftype)
20295
      else:
20296
        iprot.skip(ftype)
20297
      iprot.readFieldEnd()
20298
    iprot.readStructEnd()
20299
 
20300
  def write(self, oprot):
20301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20303
      return
20304
    oprot.writeStructBegin('isValidCatalogItemId_result')
20305
    if self.success is not None:
20306
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20307
      oprot.writeBool(self.success)
20308
      oprot.writeFieldEnd()
20309
    oprot.writeFieldStop()
20310
    oprot.writeStructEnd()
20311
 
20312
  def validate(self):
20313
    return
20314
 
20315
 
20316
  def __repr__(self):
20317
    L = ['%s=%r' % (key, value)
20318
      for key, value in self.__dict__.iteritems()]
20319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20320
 
20321
  def __eq__(self, other):
20322
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20323
 
20324
  def __ne__(self, other):
20325
    return not (self == other)
6039 amit.gupta 20326
 
20327
class getVatPercentageForItem_args:
20328
  """
20329
  Attributes:
20330
   - itemId
7330 amit.gupta 20331
   - stateId
6039 amit.gupta 20332
   - price
20333
  """
20334
 
20335
  thrift_spec = (
20336
    None, # 0
20337
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20338
    (2, TType.I64, 'stateId', None, None, ), # 2
20339
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20340
  )
20341
 
7330 amit.gupta 20342
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20343
    self.itemId = itemId
7330 amit.gupta 20344
    self.stateId = stateId
6039 amit.gupta 20345
    self.price = price
20346
 
20347
  def read(self, iprot):
20348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20350
      return
20351
    iprot.readStructBegin()
20352
    while True:
20353
      (fname, ftype, fid) = iprot.readFieldBegin()
20354
      if ftype == TType.STOP:
20355
        break
20356
      if fid == 1:
20357
        if ftype == TType.I64:
20358
          self.itemId = iprot.readI64();
20359
        else:
20360
          iprot.skip(ftype)
20361
      elif fid == 2:
7330 amit.gupta 20362
        if ftype == TType.I64:
20363
          self.stateId = iprot.readI64();
20364
        else:
20365
          iprot.skip(ftype)
20366
      elif fid == 3:
6039 amit.gupta 20367
        if ftype == TType.DOUBLE:
20368
          self.price = iprot.readDouble();
20369
        else:
20370
          iprot.skip(ftype)
20371
      else:
20372
        iprot.skip(ftype)
20373
      iprot.readFieldEnd()
20374
    iprot.readStructEnd()
20375
 
20376
  def write(self, oprot):
20377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20379
      return
20380
    oprot.writeStructBegin('getVatPercentageForItem_args')
20381
    if self.itemId is not None:
20382
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20383
      oprot.writeI64(self.itemId)
20384
      oprot.writeFieldEnd()
7330 amit.gupta 20385
    if self.stateId is not None:
20386
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20387
      oprot.writeI64(self.stateId)
20388
      oprot.writeFieldEnd()
6039 amit.gupta 20389
    if self.price is not None:
7330 amit.gupta 20390
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20391
      oprot.writeDouble(self.price)
20392
      oprot.writeFieldEnd()
20393
    oprot.writeFieldStop()
20394
    oprot.writeStructEnd()
20395
 
20396
  def validate(self):
20397
    return
20398
 
20399
 
20400
  def __repr__(self):
20401
    L = ['%s=%r' % (key, value)
20402
      for key, value in self.__dict__.iteritems()]
20403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20404
 
20405
  def __eq__(self, other):
20406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20407
 
20408
  def __ne__(self, other):
20409
    return not (self == other)
20410
 
20411
class getVatPercentageForItem_result:
20412
  """
20413
  Attributes:
20414
   - success
7340 amit.gupta 20415
   - cex
6039 amit.gupta 20416
  """
20417
 
20418
  thrift_spec = (
20419
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20420
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20421
  )
20422
 
7340 amit.gupta 20423
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20424
    self.success = success
7340 amit.gupta 20425
    self.cex = cex
6039 amit.gupta 20426
 
20427
  def read(self, iprot):
20428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20430
      return
20431
    iprot.readStructBegin()
20432
    while True:
20433
      (fname, ftype, fid) = iprot.readFieldBegin()
20434
      if ftype == TType.STOP:
20435
        break
20436
      if fid == 0:
20437
        if ftype == TType.DOUBLE:
20438
          self.success = iprot.readDouble();
20439
        else:
20440
          iprot.skip(ftype)
7340 amit.gupta 20441
      elif fid == 1:
20442
        if ftype == TType.STRUCT:
20443
          self.cex = CatalogServiceException()
20444
          self.cex.read(iprot)
20445
        else:
20446
          iprot.skip(ftype)
6039 amit.gupta 20447
      else:
20448
        iprot.skip(ftype)
20449
      iprot.readFieldEnd()
20450
    iprot.readStructEnd()
20451
 
20452
  def write(self, oprot):
20453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20455
      return
20456
    oprot.writeStructBegin('getVatPercentageForItem_result')
20457
    if self.success is not None:
20458
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20459
      oprot.writeDouble(self.success)
20460
      oprot.writeFieldEnd()
7340 amit.gupta 20461
    if self.cex is not None:
20462
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20463
      self.cex.write(oprot)
20464
      oprot.writeFieldEnd()
6039 amit.gupta 20465
    oprot.writeFieldStop()
20466
    oprot.writeStructEnd()
20467
 
20468
  def validate(self):
20469
    return
20470
 
20471
 
20472
  def __repr__(self):
20473
    L = ['%s=%r' % (key, value)
20474
      for key, value in self.__dict__.iteritems()]
20475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20476
 
20477
  def __eq__(self, other):
20478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20479
 
20480
  def __ne__(self, other):
20481
    return not (self == other)
20482
 
20483
class getVatAmountForItem_args:
20484
  """
20485
  Attributes:
20486
   - itemId
20487
   - price
20488
  """
20489
 
20490
  thrift_spec = (
20491
    None, # 0
20492
    (1, TType.I64, 'itemId', None, None, ), # 1
20493
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20494
  )
20495
 
20496
  def __init__(self, itemId=None, price=None,):
20497
    self.itemId = itemId
20498
    self.price = price
20499
 
20500
  def read(self, iprot):
20501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20503
      return
20504
    iprot.readStructBegin()
20505
    while True:
20506
      (fname, ftype, fid) = iprot.readFieldBegin()
20507
      if ftype == TType.STOP:
20508
        break
20509
      if fid == 1:
20510
        if ftype == TType.I64:
20511
          self.itemId = iprot.readI64();
20512
        else:
20513
          iprot.skip(ftype)
20514
      elif fid == 2:
20515
        if ftype == TType.DOUBLE:
20516
          self.price = iprot.readDouble();
20517
        else:
20518
          iprot.skip(ftype)
20519
      else:
20520
        iprot.skip(ftype)
20521
      iprot.readFieldEnd()
20522
    iprot.readStructEnd()
20523
 
20524
  def write(self, oprot):
20525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20527
      return
20528
    oprot.writeStructBegin('getVatAmountForItem_args')
20529
    if self.itemId is not None:
20530
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20531
      oprot.writeI64(self.itemId)
20532
      oprot.writeFieldEnd()
20533
    if self.price is not None:
20534
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20535
      oprot.writeDouble(self.price)
20536
      oprot.writeFieldEnd()
20537
    oprot.writeFieldStop()
20538
    oprot.writeStructEnd()
20539
 
20540
  def validate(self):
20541
    return
20542
 
20543
 
20544
  def __repr__(self):
20545
    L = ['%s=%r' % (key, value)
20546
      for key, value in self.__dict__.iteritems()]
20547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20548
 
20549
  def __eq__(self, other):
20550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20551
 
20552
  def __ne__(self, other):
20553
    return not (self == other)
20554
 
20555
class getVatAmountForItem_result:
20556
  """
20557
  Attributes:
20558
   - success
20559
  """
20560
 
20561
  thrift_spec = (
20562
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20563
  )
20564
 
20565
  def __init__(self, success=None,):
20566
    self.success = success
20567
 
20568
  def read(self, iprot):
20569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20571
      return
20572
    iprot.readStructBegin()
20573
    while True:
20574
      (fname, ftype, fid) = iprot.readFieldBegin()
20575
      if ftype == TType.STOP:
20576
        break
20577
      if fid == 0:
20578
        if ftype == TType.DOUBLE:
20579
          self.success = iprot.readDouble();
20580
        else:
20581
          iprot.skip(ftype)
20582
      else:
20583
        iprot.skip(ftype)
20584
      iprot.readFieldEnd()
20585
    iprot.readStructEnd()
20586
 
20587
  def write(self, oprot):
20588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20590
      return
20591
    oprot.writeStructBegin('getVatAmountForItem_result')
20592
    if self.success is not None:
20593
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20594
      oprot.writeDouble(self.success)
20595
      oprot.writeFieldEnd()
20596
    oprot.writeFieldStop()
20597
    oprot.writeStructEnd()
20598
 
20599
  def validate(self):
20600
    return
20601
 
20602
 
20603
  def __repr__(self):
20604
    L = ['%s=%r' % (key, value)
20605
      for key, value in self.__dict__.iteritems()]
20606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20607
 
20608
  def __eq__(self, other):
20609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20610
 
20611
  def __ne__(self, other):
20612
    return not (self == other)
6531 vikram.rag 20613
 
20614
class getAllIgnoredInventoryUpdateItemsList_args:
20615
  """
20616
  Attributes:
20617
   - offset
20618
   - limit
20619
  """
20620
 
20621
  thrift_spec = (
20622
    None, # 0
20623
    (1, TType.I32, 'offset', None, None, ), # 1
20624
    (2, TType.I32, 'limit', None, None, ), # 2
20625
  )
20626
 
20627
  def __init__(self, offset=None, limit=None,):
20628
    self.offset = offset
20629
    self.limit = limit
20630
 
20631
  def read(self, iprot):
20632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20634
      return
20635
    iprot.readStructBegin()
20636
    while True:
20637
      (fname, ftype, fid) = iprot.readFieldBegin()
20638
      if ftype == TType.STOP:
20639
        break
20640
      if fid == 1:
20641
        if ftype == TType.I32:
20642
          self.offset = iprot.readI32();
20643
        else:
20644
          iprot.skip(ftype)
20645
      elif fid == 2:
20646
        if ftype == TType.I32:
20647
          self.limit = iprot.readI32();
20648
        else:
20649
          iprot.skip(ftype)
20650
      else:
20651
        iprot.skip(ftype)
20652
      iprot.readFieldEnd()
20653
    iprot.readStructEnd()
20654
 
20655
  def write(self, oprot):
20656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20658
      return
20659
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20660
    if self.offset is not None:
20661
      oprot.writeFieldBegin('offset', TType.I32, 1)
20662
      oprot.writeI32(self.offset)
20663
      oprot.writeFieldEnd()
20664
    if self.limit is not None:
20665
      oprot.writeFieldBegin('limit', TType.I32, 2)
20666
      oprot.writeI32(self.limit)
20667
      oprot.writeFieldEnd()
20668
    oprot.writeFieldStop()
20669
    oprot.writeStructEnd()
20670
 
20671
  def validate(self):
20672
    return
20673
 
20674
 
20675
  def __repr__(self):
20676
    L = ['%s=%r' % (key, value)
20677
      for key, value in self.__dict__.iteritems()]
20678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20679
 
20680
  def __eq__(self, other):
20681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20682
 
20683
  def __ne__(self, other):
20684
    return not (self == other)
20685
 
20686
class getAllIgnoredInventoryUpdateItemsList_result:
20687
  """
20688
  Attributes:
20689
   - success
20690
  """
20691
 
20692
  thrift_spec = (
20693
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20694
  )
20695
 
20696
  def __init__(self, success=None,):
20697
    self.success = success
20698
 
20699
  def read(self, iprot):
20700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20702
      return
20703
    iprot.readStructBegin()
20704
    while True:
20705
      (fname, ftype, fid) = iprot.readFieldBegin()
20706
      if ftype == TType.STOP:
20707
        break
20708
      if fid == 0:
20709
        if ftype == TType.LIST:
20710
          self.success = []
12567 amit.gupta 20711
          (_etype379, _size376) = iprot.readListBegin()
20712
          for _i380 in xrange(_size376):
20713
            _elem381 = Item()
20714
            _elem381.read(iprot)
20715
            self.success.append(_elem381)
6531 vikram.rag 20716
          iprot.readListEnd()
20717
        else:
20718
          iprot.skip(ftype)
20719
      else:
20720
        iprot.skip(ftype)
20721
      iprot.readFieldEnd()
20722
    iprot.readStructEnd()
20723
 
20724
  def write(self, oprot):
20725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20727
      return
20728
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20729
    if self.success is not None:
20730
      oprot.writeFieldBegin('success', TType.LIST, 0)
20731
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20732
      for iter382 in self.success:
20733
        iter382.write(oprot)
6531 vikram.rag 20734
      oprot.writeListEnd()
20735
      oprot.writeFieldEnd()
20736
    oprot.writeFieldStop()
20737
    oprot.writeStructEnd()
20738
 
20739
  def validate(self):
20740
    return
20741
 
20742
 
20743
  def __repr__(self):
20744
    L = ['%s=%r' % (key, value)
20745
      for key, value in self.__dict__.iteritems()]
20746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20747
 
20748
  def __eq__(self, other):
20749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20750
 
20751
  def __ne__(self, other):
20752
    return not (self == other)
6805 anupam.sin 20753
 
6821 amar.kumar 20754
class getAllAliveItems_args:
20755
 
20756
  thrift_spec = (
20757
  )
20758
 
20759
  def read(self, iprot):
20760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20762
      return
20763
    iprot.readStructBegin()
20764
    while True:
20765
      (fname, ftype, fid) = iprot.readFieldBegin()
20766
      if ftype == TType.STOP:
20767
        break
20768
      else:
20769
        iprot.skip(ftype)
20770
      iprot.readFieldEnd()
20771
    iprot.readStructEnd()
20772
 
20773
  def write(self, oprot):
20774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20776
      return
20777
    oprot.writeStructBegin('getAllAliveItems_args')
20778
    oprot.writeFieldStop()
20779
    oprot.writeStructEnd()
20780
 
20781
  def validate(self):
20782
    return
20783
 
20784
 
20785
  def __repr__(self):
20786
    L = ['%s=%r' % (key, value)
20787
      for key, value in self.__dict__.iteritems()]
20788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20789
 
20790
  def __eq__(self, other):
20791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20792
 
20793
  def __ne__(self, other):
20794
    return not (self == other)
20795
 
20796
class getAllAliveItems_result:
20797
  """
20798
  Attributes:
20799
   - success
20800
  """
20801
 
20802
  thrift_spec = (
20803
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20804
  )
20805
 
20806
  def __init__(self, success=None,):
20807
    self.success = success
20808
 
20809
  def read(self, iprot):
20810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20812
      return
20813
    iprot.readStructBegin()
20814
    while True:
20815
      (fname, ftype, fid) = iprot.readFieldBegin()
20816
      if ftype == TType.STOP:
20817
        break
20818
      if fid == 0:
20819
        if ftype == TType.LIST:
20820
          self.success = []
12567 amit.gupta 20821
          (_etype386, _size383) = iprot.readListBegin()
20822
          for _i387 in xrange(_size383):
20823
            _elem388 = Item()
20824
            _elem388.read(iprot)
20825
            self.success.append(_elem388)
6821 amar.kumar 20826
          iprot.readListEnd()
20827
        else:
20828
          iprot.skip(ftype)
20829
      else:
20830
        iprot.skip(ftype)
20831
      iprot.readFieldEnd()
20832
    iprot.readStructEnd()
20833
 
20834
  def write(self, oprot):
20835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20837
      return
20838
    oprot.writeStructBegin('getAllAliveItems_result')
20839
    if self.success is not None:
20840
      oprot.writeFieldBegin('success', TType.LIST, 0)
20841
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20842
      for iter389 in self.success:
20843
        iter389.write(oprot)
6821 amar.kumar 20844
      oprot.writeListEnd()
20845
      oprot.writeFieldEnd()
20846
    oprot.writeFieldStop()
20847
    oprot.writeStructEnd()
20848
 
20849
  def validate(self):
20850
    return
20851
 
20852
 
20853
  def __repr__(self):
20854
    L = ['%s=%r' % (key, value)
20855
      for key, value in self.__dict__.iteritems()]
20856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20857
 
20858
  def __eq__(self, other):
20859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20860
 
20861
  def __ne__(self, other):
20862
    return not (self == other)
20863
 
6805 anupam.sin 20864
class getInsuranceAmount_args:
20865
  """
20866
  Attributes:
20867
   - itemId
6921 anupam.sin 20868
   - price
6805 anupam.sin 20869
   - insurerId
20870
   - quantity
20871
  """
20872
 
20873
  thrift_spec = (
20874
    None, # 0
20875
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 20876
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20877
    (3, TType.I64, 'insurerId', None, None, ), # 3
20878
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 20879
  )
20880
 
6921 anupam.sin 20881
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 20882
    self.itemId = itemId
6921 anupam.sin 20883
    self.price = price
6805 anupam.sin 20884
    self.insurerId = insurerId
20885
    self.quantity = quantity
20886
 
20887
  def read(self, iprot):
20888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20890
      return
20891
    iprot.readStructBegin()
20892
    while True:
20893
      (fname, ftype, fid) = iprot.readFieldBegin()
20894
      if ftype == TType.STOP:
20895
        break
20896
      if fid == 1:
20897
        if ftype == TType.I64:
20898
          self.itemId = iprot.readI64();
20899
        else:
20900
          iprot.skip(ftype)
20901
      elif fid == 2:
6921 anupam.sin 20902
        if ftype == TType.DOUBLE:
20903
          self.price = iprot.readDouble();
20904
        else:
20905
          iprot.skip(ftype)
20906
      elif fid == 3:
6805 anupam.sin 20907
        if ftype == TType.I64:
20908
          self.insurerId = iprot.readI64();
20909
        else:
20910
          iprot.skip(ftype)
6921 anupam.sin 20911
      elif fid == 4:
6805 anupam.sin 20912
        if ftype == TType.I64:
20913
          self.quantity = iprot.readI64();
20914
        else:
20915
          iprot.skip(ftype)
20916
      else:
20917
        iprot.skip(ftype)
20918
      iprot.readFieldEnd()
20919
    iprot.readStructEnd()
20920
 
20921
  def write(self, oprot):
20922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20924
      return
20925
    oprot.writeStructBegin('getInsuranceAmount_args')
20926
    if self.itemId is not None:
20927
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20928
      oprot.writeI64(self.itemId)
20929
      oprot.writeFieldEnd()
6921 anupam.sin 20930
    if self.price is not None:
20931
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20932
      oprot.writeDouble(self.price)
20933
      oprot.writeFieldEnd()
6805 anupam.sin 20934
    if self.insurerId is not None:
6921 anupam.sin 20935
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 20936
      oprot.writeI64(self.insurerId)
20937
      oprot.writeFieldEnd()
20938
    if self.quantity is not None:
6921 anupam.sin 20939
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 20940
      oprot.writeI64(self.quantity)
20941
      oprot.writeFieldEnd()
20942
    oprot.writeFieldStop()
20943
    oprot.writeStructEnd()
20944
 
20945
  def validate(self):
20946
    return
20947
 
20948
 
20949
  def __repr__(self):
20950
    L = ['%s=%r' % (key, value)
20951
      for key, value in self.__dict__.iteritems()]
20952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20953
 
20954
  def __eq__(self, other):
20955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20956
 
20957
  def __ne__(self, other):
20958
    return not (self == other)
20959
 
20960
class getInsuranceAmount_result:
20961
  """
20962
  Attributes:
20963
   - success
20964
  """
20965
 
20966
  thrift_spec = (
20967
    (0, TType.I64, 'success', None, None, ), # 0
20968
  )
20969
 
20970
  def __init__(self, success=None,):
20971
    self.success = success
20972
 
20973
  def read(self, iprot):
20974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20976
      return
20977
    iprot.readStructBegin()
20978
    while True:
20979
      (fname, ftype, fid) = iprot.readFieldBegin()
20980
      if ftype == TType.STOP:
20981
        break
20982
      if fid == 0:
20983
        if ftype == TType.I64:
20984
          self.success = iprot.readI64();
20985
        else:
20986
          iprot.skip(ftype)
20987
      else:
20988
        iprot.skip(ftype)
20989
      iprot.readFieldEnd()
20990
    iprot.readStructEnd()
20991
 
20992
  def write(self, oprot):
20993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20995
      return
20996
    oprot.writeStructBegin('getInsuranceAmount_result')
20997
    if self.success is not None:
20998
      oprot.writeFieldBegin('success', TType.I64, 0)
20999
      oprot.writeI64(self.success)
21000
      oprot.writeFieldEnd()
21001
    oprot.writeFieldStop()
21002
    oprot.writeStructEnd()
21003
 
21004
  def validate(self):
21005
    return
21006
 
21007
 
21008
  def __repr__(self):
21009
    L = ['%s=%r' % (key, value)
21010
      for key, value in self.__dict__.iteritems()]
21011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21012
 
21013
  def __eq__(self, other):
21014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21015
 
21016
  def __ne__(self, other):
21017
    return not (self == other)
21018
 
21019
class getInsurer_args:
21020
  """
21021
  Attributes:
21022
   - insurerId
21023
  """
21024
 
21025
  thrift_spec = (
21026
    None, # 0
21027
    (1, TType.I64, 'insurerId', None, None, ), # 1
21028
  )
21029
 
21030
  def __init__(self, insurerId=None,):
21031
    self.insurerId = insurerId
21032
 
21033
  def read(self, iprot):
21034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21036
      return
21037
    iprot.readStructBegin()
21038
    while True:
21039
      (fname, ftype, fid) = iprot.readFieldBegin()
21040
      if ftype == TType.STOP:
21041
        break
21042
      if fid == 1:
21043
        if ftype == TType.I64:
21044
          self.insurerId = iprot.readI64();
21045
        else:
21046
          iprot.skip(ftype)
21047
      else:
21048
        iprot.skip(ftype)
21049
      iprot.readFieldEnd()
21050
    iprot.readStructEnd()
21051
 
21052
  def write(self, oprot):
21053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21055
      return
21056
    oprot.writeStructBegin('getInsurer_args')
21057
    if self.insurerId is not None:
21058
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21059
      oprot.writeI64(self.insurerId)
21060
      oprot.writeFieldEnd()
21061
    oprot.writeFieldStop()
21062
    oprot.writeStructEnd()
21063
 
21064
  def validate(self):
21065
    return
21066
 
21067
 
21068
  def __repr__(self):
21069
    L = ['%s=%r' % (key, value)
21070
      for key, value in self.__dict__.iteritems()]
21071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21072
 
21073
  def __eq__(self, other):
21074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21075
 
21076
  def __ne__(self, other):
21077
    return not (self == other)
21078
 
21079
class getInsurer_result:
21080
  """
21081
  Attributes:
21082
   - success
21083
  """
21084
 
21085
  thrift_spec = (
21086
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
21087
  )
21088
 
21089
  def __init__(self, success=None,):
21090
    self.success = success
21091
 
21092
  def read(self, iprot):
21093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21095
      return
21096
    iprot.readStructBegin()
21097
    while True:
21098
      (fname, ftype, fid) = iprot.readFieldBegin()
21099
      if ftype == TType.STOP:
21100
        break
21101
      if fid == 0:
21102
        if ftype == TType.STRUCT:
21103
          self.success = Insurer()
21104
          self.success.read(iprot)
21105
        else:
21106
          iprot.skip(ftype)
21107
      else:
21108
        iprot.skip(ftype)
21109
      iprot.readFieldEnd()
21110
    iprot.readStructEnd()
21111
 
21112
  def write(self, oprot):
21113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21115
      return
21116
    oprot.writeStructBegin('getInsurer_result')
21117
    if self.success is not None:
21118
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21119
      self.success.write(oprot)
21120
      oprot.writeFieldEnd()
21121
    oprot.writeFieldStop()
21122
    oprot.writeStructEnd()
21123
 
21124
  def validate(self):
21125
    return
21126
 
21127
 
21128
  def __repr__(self):
21129
    L = ['%s=%r' % (key, value)
21130
      for key, value in self.__dict__.iteritems()]
21131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21132
 
21133
  def __eq__(self, other):
21134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21135
 
21136
  def __ne__(self, other):
21137
    return not (self == other)
6838 vikram.rag 21138
 
21139
class getAllInsurers_args:
21140
 
21141
  thrift_spec = (
21142
  )
21143
 
21144
  def read(self, iprot):
21145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21147
      return
21148
    iprot.readStructBegin()
21149
    while True:
21150
      (fname, ftype, fid) = iprot.readFieldBegin()
21151
      if ftype == TType.STOP:
21152
        break
21153
      else:
21154
        iprot.skip(ftype)
21155
      iprot.readFieldEnd()
21156
    iprot.readStructEnd()
21157
 
21158
  def write(self, oprot):
21159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21161
      return
21162
    oprot.writeStructBegin('getAllInsurers_args')
21163
    oprot.writeFieldStop()
21164
    oprot.writeStructEnd()
21165
 
21166
  def validate(self):
21167
    return
21168
 
21169
 
21170
  def __repr__(self):
21171
    L = ['%s=%r' % (key, value)
21172
      for key, value in self.__dict__.iteritems()]
21173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21174
 
21175
  def __eq__(self, other):
21176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21177
 
21178
  def __ne__(self, other):
21179
    return not (self == other)
21180
 
21181
class getAllInsurers_result:
21182
  """
21183
  Attributes:
21184
   - success
21185
  """
21186
 
21187
  thrift_spec = (
21188
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21189
  )
21190
 
21191
  def __init__(self, success=None,):
21192
    self.success = success
21193
 
21194
  def read(self, iprot):
21195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21197
      return
21198
    iprot.readStructBegin()
21199
    while True:
21200
      (fname, ftype, fid) = iprot.readFieldBegin()
21201
      if ftype == TType.STOP:
21202
        break
21203
      if fid == 0:
21204
        if ftype == TType.LIST:
21205
          self.success = []
12567 amit.gupta 21206
          (_etype393, _size390) = iprot.readListBegin()
21207
          for _i394 in xrange(_size390):
21208
            _elem395 = Insurer()
21209
            _elem395.read(iprot)
21210
            self.success.append(_elem395)
6838 vikram.rag 21211
          iprot.readListEnd()
21212
        else:
21213
          iprot.skip(ftype)
21214
      else:
21215
        iprot.skip(ftype)
21216
      iprot.readFieldEnd()
21217
    iprot.readStructEnd()
21218
 
21219
  def write(self, oprot):
21220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21222
      return
21223
    oprot.writeStructBegin('getAllInsurers_result')
21224
    if self.success is not None:
21225
      oprot.writeFieldBegin('success', TType.LIST, 0)
21226
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21227
      for iter396 in self.success:
21228
        iter396.write(oprot)
6838 vikram.rag 21229
      oprot.writeListEnd()
21230
      oprot.writeFieldEnd()
21231
    oprot.writeFieldStop()
21232
    oprot.writeStructEnd()
21233
 
21234
  def validate(self):
21235
    return
21236
 
21237
 
21238
  def __repr__(self):
21239
    L = ['%s=%r' % (key, value)
21240
      for key, value in self.__dict__.iteritems()]
21241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21242
 
21243
  def __eq__(self, other):
21244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21245
 
21246
  def __ne__(self, other):
21247
    return not (self == other)
6962 rajveer 21248
 
21249
class updateInsuranceDeclaredAmount_args:
21250
  """
21251
  Attributes:
21252
   - insurerId
21253
   - amount
21254
  """
21255
 
21256
  thrift_spec = (
21257
    None, # 0
21258
    (1, TType.I64, 'insurerId', None, None, ), # 1
21259
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21260
  )
21261
 
21262
  def __init__(self, insurerId=None, amount=None,):
21263
    self.insurerId = insurerId
21264
    self.amount = amount
21265
 
21266
  def read(self, iprot):
21267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21269
      return
21270
    iprot.readStructBegin()
21271
    while True:
21272
      (fname, ftype, fid) = iprot.readFieldBegin()
21273
      if ftype == TType.STOP:
21274
        break
21275
      if fid == 1:
21276
        if ftype == TType.I64:
21277
          self.insurerId = iprot.readI64();
21278
        else:
21279
          iprot.skip(ftype)
21280
      elif fid == 2:
21281
        if ftype == TType.DOUBLE:
21282
          self.amount = iprot.readDouble();
21283
        else:
21284
          iprot.skip(ftype)
21285
      else:
21286
        iprot.skip(ftype)
21287
      iprot.readFieldEnd()
21288
    iprot.readStructEnd()
21289
 
21290
  def write(self, oprot):
21291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21293
      return
21294
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21295
    if self.insurerId is not None:
21296
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21297
      oprot.writeI64(self.insurerId)
21298
      oprot.writeFieldEnd()
21299
    if self.amount is not None:
21300
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21301
      oprot.writeDouble(self.amount)
21302
      oprot.writeFieldEnd()
21303
    oprot.writeFieldStop()
21304
    oprot.writeStructEnd()
21305
 
21306
  def validate(self):
21307
    return
21308
 
21309
 
21310
  def __repr__(self):
21311
    L = ['%s=%r' % (key, value)
21312
      for key, value in self.__dict__.iteritems()]
21313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21314
 
21315
  def __eq__(self, other):
21316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21317
 
21318
  def __ne__(self, other):
21319
    return not (self == other)
21320
 
21321
class updateInsuranceDeclaredAmount_result:
21322
 
21323
  thrift_spec = (
21324
  )
21325
 
21326
  def read(self, iprot):
21327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21329
      return
21330
    iprot.readStructBegin()
21331
    while True:
21332
      (fname, ftype, fid) = iprot.readFieldBegin()
21333
      if ftype == TType.STOP:
21334
        break
21335
      else:
21336
        iprot.skip(ftype)
21337
      iprot.readFieldEnd()
21338
    iprot.readStructEnd()
21339
 
21340
  def write(self, oprot):
21341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21343
      return
21344
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21345
    oprot.writeFieldStop()
21346
    oprot.writeStructEnd()
21347
 
21348
  def validate(self):
21349
    return
21350
 
21351
 
21352
  def __repr__(self):
21353
    L = ['%s=%r' % (key, value)
21354
      for key, value in self.__dict__.iteritems()]
21355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21356
 
21357
  def __eq__(self, other):
21358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21359
 
21360
  def __ne__(self, other):
21361
    return not (self == other)
7190 amar.kumar 21362
 
21363
class getFreebieForItem_args:
21364
  """
21365
  Attributes:
21366
   - itemId
21367
  """
21368
 
21369
  thrift_spec = (
21370
    None, # 0
21371
    (1, TType.I64, 'itemId', None, None, ), # 1
21372
  )
21373
 
21374
  def __init__(self, itemId=None,):
21375
    self.itemId = itemId
21376
 
21377
  def read(self, iprot):
21378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21380
      return
21381
    iprot.readStructBegin()
21382
    while True:
21383
      (fname, ftype, fid) = iprot.readFieldBegin()
21384
      if ftype == TType.STOP:
21385
        break
21386
      if fid == 1:
21387
        if ftype == TType.I64:
21388
          self.itemId = iprot.readI64();
21389
        else:
21390
          iprot.skip(ftype)
21391
      else:
21392
        iprot.skip(ftype)
21393
      iprot.readFieldEnd()
21394
    iprot.readStructEnd()
21395
 
21396
  def write(self, oprot):
21397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21399
      return
21400
    oprot.writeStructBegin('getFreebieForItem_args')
21401
    if self.itemId is not None:
21402
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21403
      oprot.writeI64(self.itemId)
21404
      oprot.writeFieldEnd()
21405
    oprot.writeFieldStop()
21406
    oprot.writeStructEnd()
21407
 
21408
  def validate(self):
21409
    return
21410
 
21411
 
21412
  def __repr__(self):
21413
    L = ['%s=%r' % (key, value)
21414
      for key, value in self.__dict__.iteritems()]
21415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21416
 
21417
  def __eq__(self, other):
21418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21419
 
21420
  def __ne__(self, other):
21421
    return not (self == other)
21422
 
21423
class getFreebieForItem_result:
21424
  """
21425
  Attributes:
21426
   - success
21427
  """
21428
 
21429
  thrift_spec = (
21430
    (0, TType.I64, 'success', None, None, ), # 0
21431
  )
21432
 
21433
  def __init__(self, success=None,):
21434
    self.success = success
21435
 
21436
  def read(self, iprot):
21437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21439
      return
21440
    iprot.readStructBegin()
21441
    while True:
21442
      (fname, ftype, fid) = iprot.readFieldBegin()
21443
      if ftype == TType.STOP:
21444
        break
21445
      if fid == 0:
21446
        if ftype == TType.I64:
21447
          self.success = iprot.readI64();
21448
        else:
21449
          iprot.skip(ftype)
21450
      else:
21451
        iprot.skip(ftype)
21452
      iprot.readFieldEnd()
21453
    iprot.readStructEnd()
21454
 
21455
  def write(self, oprot):
21456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21458
      return
21459
    oprot.writeStructBegin('getFreebieForItem_result')
21460
    if self.success is not None:
21461
      oprot.writeFieldBegin('success', TType.I64, 0)
21462
      oprot.writeI64(self.success)
21463
      oprot.writeFieldEnd()
21464
    oprot.writeFieldStop()
21465
    oprot.writeStructEnd()
21466
 
21467
  def validate(self):
21468
    return
21469
 
21470
 
21471
  def __repr__(self):
21472
    L = ['%s=%r' % (key, value)
21473
      for key, value in self.__dict__.iteritems()]
21474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21475
 
21476
  def __eq__(self, other):
21477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21478
 
21479
  def __ne__(self, other):
21480
    return not (self == other)
21481
 
21482
class addOrUpdateFreebieForItem_args:
21483
  """
21484
  Attributes:
21485
   - freebieItem
21486
  """
21487
 
21488
  thrift_spec = (
21489
    None, # 0
21490
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21491
  )
21492
 
21493
  def __init__(self, freebieItem=None,):
21494
    self.freebieItem = freebieItem
21495
 
21496
  def read(self, iprot):
21497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21499
      return
21500
    iprot.readStructBegin()
21501
    while True:
21502
      (fname, ftype, fid) = iprot.readFieldBegin()
21503
      if ftype == TType.STOP:
21504
        break
21505
      if fid == 1:
21506
        if ftype == TType.STRUCT:
21507
          self.freebieItem = FreebieItem()
21508
          self.freebieItem.read(iprot)
21509
        else:
21510
          iprot.skip(ftype)
21511
      else:
21512
        iprot.skip(ftype)
21513
      iprot.readFieldEnd()
21514
    iprot.readStructEnd()
21515
 
21516
  def write(self, oprot):
21517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21519
      return
21520
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21521
    if self.freebieItem is not None:
21522
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21523
      self.freebieItem.write(oprot)
21524
      oprot.writeFieldEnd()
21525
    oprot.writeFieldStop()
21526
    oprot.writeStructEnd()
21527
 
21528
  def validate(self):
21529
    return
21530
 
21531
 
21532
  def __repr__(self):
21533
    L = ['%s=%r' % (key, value)
21534
      for key, value in self.__dict__.iteritems()]
21535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21536
 
21537
  def __eq__(self, other):
21538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21539
 
21540
  def __ne__(self, other):
21541
    return not (self == other)
21542
 
21543
class addOrUpdateFreebieForItem_result:
21544
 
21545
  thrift_spec = (
21546
  )
21547
 
21548
  def read(self, iprot):
21549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21551
      return
21552
    iprot.readStructBegin()
21553
    while True:
21554
      (fname, ftype, fid) = iprot.readFieldBegin()
21555
      if ftype == TType.STOP:
21556
        break
21557
      else:
21558
        iprot.skip(ftype)
21559
      iprot.readFieldEnd()
21560
    iprot.readStructEnd()
21561
 
21562
  def write(self, oprot):
21563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21565
      return
21566
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21567
    oprot.writeFieldStop()
21568
    oprot.writeStructEnd()
21569
 
21570
  def validate(self):
21571
    return
21572
 
21573
 
21574
  def __repr__(self):
21575
    L = ['%s=%r' % (key, value)
21576
      for key, value in self.__dict__.iteritems()]
21577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21578
 
21579
  def __eq__(self, other):
21580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21581
 
21582
  def __ne__(self, other):
21583
    return not (self == other)
7256 rajveer 21584
 
7272 amit.gupta 21585
class addOrUpdateBrandInfo_args:
21586
  """
21587
  Attributes:
21588
   - brandInfo
21589
  """
21590
 
21591
  thrift_spec = (
21592
    None, # 0
21593
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21594
  )
21595
 
21596
  def __init__(self, brandInfo=None,):
21597
    self.brandInfo = brandInfo
21598
 
21599
  def read(self, iprot):
21600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21602
      return
21603
    iprot.readStructBegin()
21604
    while True:
21605
      (fname, ftype, fid) = iprot.readFieldBegin()
21606
      if ftype == TType.STOP:
21607
        break
21608
      if fid == 1:
21609
        if ftype == TType.STRUCT:
21610
          self.brandInfo = BrandInfo()
21611
          self.brandInfo.read(iprot)
21612
        else:
21613
          iprot.skip(ftype)
21614
      else:
21615
        iprot.skip(ftype)
21616
      iprot.readFieldEnd()
21617
    iprot.readStructEnd()
21618
 
21619
  def write(self, oprot):
21620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21622
      return
21623
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21624
    if self.brandInfo is not None:
21625
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21626
      self.brandInfo.write(oprot)
21627
      oprot.writeFieldEnd()
21628
    oprot.writeFieldStop()
21629
    oprot.writeStructEnd()
21630
 
21631
  def validate(self):
21632
    return
21633
 
21634
 
21635
  def __repr__(self):
21636
    L = ['%s=%r' % (key, value)
21637
      for key, value in self.__dict__.iteritems()]
21638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21639
 
21640
  def __eq__(self, other):
21641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21642
 
21643
  def __ne__(self, other):
21644
    return not (self == other)
21645
 
21646
class addOrUpdateBrandInfo_result:
21647
 
21648
  thrift_spec = (
21649
  )
21650
 
21651
  def read(self, iprot):
21652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21654
      return
21655
    iprot.readStructBegin()
21656
    while True:
21657
      (fname, ftype, fid) = iprot.readFieldBegin()
21658
      if ftype == TType.STOP:
21659
        break
21660
      else:
21661
        iprot.skip(ftype)
21662
      iprot.readFieldEnd()
21663
    iprot.readStructEnd()
21664
 
21665
  def write(self, oprot):
21666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21668
      return
21669
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21670
    oprot.writeFieldStop()
21671
    oprot.writeStructEnd()
21672
 
21673
  def validate(self):
21674
    return
21675
 
21676
 
21677
  def __repr__(self):
21678
    L = ['%s=%r' % (key, value)
21679
      for key, value in self.__dict__.iteritems()]
21680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21681
 
21682
  def __eq__(self, other):
21683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21684
 
21685
  def __ne__(self, other):
21686
    return not (self == other)
21687
 
21688
class getBrandInfo_args:
21689
 
21690
  thrift_spec = (
21691
  )
21692
 
21693
  def read(self, iprot):
21694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21696
      return
21697
    iprot.readStructBegin()
21698
    while True:
21699
      (fname, ftype, fid) = iprot.readFieldBegin()
21700
      if ftype == TType.STOP:
21701
        break
21702
      else:
21703
        iprot.skip(ftype)
21704
      iprot.readFieldEnd()
21705
    iprot.readStructEnd()
21706
 
21707
  def write(self, oprot):
21708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21710
      return
21711
    oprot.writeStructBegin('getBrandInfo_args')
21712
    oprot.writeFieldStop()
21713
    oprot.writeStructEnd()
21714
 
21715
  def validate(self):
21716
    return
21717
 
21718
 
21719
  def __repr__(self):
21720
    L = ['%s=%r' % (key, value)
21721
      for key, value in self.__dict__.iteritems()]
21722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21723
 
21724
  def __eq__(self, other):
21725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21726
 
21727
  def __ne__(self, other):
21728
    return not (self == other)
21729
 
21730
class getBrandInfo_result:
21731
  """
21732
  Attributes:
21733
   - success
21734
  """
21735
 
21736
  thrift_spec = (
21737
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21738
  )
21739
 
21740
  def __init__(self, success=None,):
21741
    self.success = success
21742
 
21743
  def read(self, iprot):
21744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21746
      return
21747
    iprot.readStructBegin()
21748
    while True:
21749
      (fname, ftype, fid) = iprot.readFieldBegin()
21750
      if ftype == TType.STOP:
21751
        break
21752
      if fid == 0:
21753
        if ftype == TType.MAP:
21754
          self.success = {}
12567 amit.gupta 21755
          (_ktype398, _vtype399, _size397 ) = iprot.readMapBegin() 
21756
          for _i401 in xrange(_size397):
21757
            _key402 = iprot.readString();
21758
            _val403 = BrandInfo()
21759
            _val403.read(iprot)
21760
            self.success[_key402] = _val403
7272 amit.gupta 21761
          iprot.readMapEnd()
21762
        else:
21763
          iprot.skip(ftype)
21764
      else:
21765
        iprot.skip(ftype)
21766
      iprot.readFieldEnd()
21767
    iprot.readStructEnd()
21768
 
21769
  def write(self, oprot):
21770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21772
      return
21773
    oprot.writeStructBegin('getBrandInfo_result')
21774
    if self.success is not None:
21775
      oprot.writeFieldBegin('success', TType.MAP, 0)
21776
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
12567 amit.gupta 21777
      for kiter404,viter405 in self.success.items():
21778
        oprot.writeString(kiter404)
21779
        viter405.write(oprot)
7272 amit.gupta 21780
      oprot.writeMapEnd()
21781
      oprot.writeFieldEnd()
21782
    oprot.writeFieldStop()
21783
    oprot.writeStructEnd()
21784
 
21785
  def validate(self):
21786
    return
21787
 
21788
 
21789
  def __repr__(self):
21790
    L = ['%s=%r' % (key, value)
21791
      for key, value in self.__dict__.iteritems()]
21792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21793
 
21794
  def __eq__(self, other):
21795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21796
 
21797
  def __ne__(self, other):
21798
    return not (self == other)
21799
 
7256 rajveer 21800
class getStorePricing_args:
21801
  """
21802
  Attributes:
21803
   - itemId
21804
  """
21805
 
21806
  thrift_spec = (
21807
    None, # 0
21808
    (1, TType.I64, 'itemId', None, None, ), # 1
21809
  )
21810
 
21811
  def __init__(self, itemId=None,):
21812
    self.itemId = itemId
21813
 
21814
  def read(self, iprot):
21815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21817
      return
21818
    iprot.readStructBegin()
21819
    while True:
21820
      (fname, ftype, fid) = iprot.readFieldBegin()
21821
      if ftype == TType.STOP:
21822
        break
21823
      if fid == 1:
21824
        if ftype == TType.I64:
21825
          self.itemId = iprot.readI64();
21826
        else:
21827
          iprot.skip(ftype)
21828
      else:
21829
        iprot.skip(ftype)
21830
      iprot.readFieldEnd()
21831
    iprot.readStructEnd()
21832
 
21833
  def write(self, oprot):
21834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21836
      return
21837
    oprot.writeStructBegin('getStorePricing_args')
21838
    if self.itemId is not None:
21839
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21840
      oprot.writeI64(self.itemId)
21841
      oprot.writeFieldEnd()
21842
    oprot.writeFieldStop()
21843
    oprot.writeStructEnd()
21844
 
21845
  def validate(self):
21846
    return
21847
 
21848
 
21849
  def __repr__(self):
21850
    L = ['%s=%r' % (key, value)
21851
      for key, value in self.__dict__.iteritems()]
21852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21853
 
21854
  def __eq__(self, other):
21855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21856
 
21857
  def __ne__(self, other):
21858
    return not (self == other)
21859
 
21860
class getStorePricing_result:
21861
  """
21862
  Attributes:
21863
   - success
21864
  """
21865
 
21866
  thrift_spec = (
21867
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
21868
  )
21869
 
21870
  def __init__(self, success=None,):
21871
    self.success = success
21872
 
21873
  def read(self, iprot):
21874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21876
      return
21877
    iprot.readStructBegin()
21878
    while True:
21879
      (fname, ftype, fid) = iprot.readFieldBegin()
21880
      if ftype == TType.STOP:
21881
        break
21882
      if fid == 0:
21883
        if ftype == TType.STRUCT:
21884
          self.success = StorePricing()
21885
          self.success.read(iprot)
21886
        else:
21887
          iprot.skip(ftype)
21888
      else:
21889
        iprot.skip(ftype)
21890
      iprot.readFieldEnd()
21891
    iprot.readStructEnd()
21892
 
21893
  def write(self, oprot):
21894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21896
      return
21897
    oprot.writeStructBegin('getStorePricing_result')
21898
    if self.success is not None:
21899
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21900
      self.success.write(oprot)
21901
      oprot.writeFieldEnd()
21902
    oprot.writeFieldStop()
21903
    oprot.writeStructEnd()
21904
 
21905
  def validate(self):
21906
    return
21907
 
21908
 
21909
  def __repr__(self):
21910
    L = ['%s=%r' % (key, value)
21911
      for key, value in self.__dict__.iteritems()]
21912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21913
 
21914
  def __eq__(self, other):
21915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21916
 
21917
  def __ne__(self, other):
21918
    return not (self == other)
7265 rajveer 21919
 
7306 rajveer 21920
class getStorePricings_args:
21921
  """
21922
  Attributes:
21923
   - itemIds
21924
  """
21925
 
21926
  thrift_spec = (
21927
    None, # 0
21928
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
21929
  )
21930
 
21931
  def __init__(self, itemIds=None,):
21932
    self.itemIds = itemIds
21933
 
21934
  def read(self, iprot):
21935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21937
      return
21938
    iprot.readStructBegin()
21939
    while True:
21940
      (fname, ftype, fid) = iprot.readFieldBegin()
21941
      if ftype == TType.STOP:
21942
        break
21943
      if fid == 1:
21944
        if ftype == TType.LIST:
21945
          self.itemIds = []
12567 amit.gupta 21946
          (_etype409, _size406) = iprot.readListBegin()
21947
          for _i410 in xrange(_size406):
21948
            _elem411 = iprot.readI64();
21949
            self.itemIds.append(_elem411)
7306 rajveer 21950
          iprot.readListEnd()
21951
        else:
21952
          iprot.skip(ftype)
21953
      else:
21954
        iprot.skip(ftype)
21955
      iprot.readFieldEnd()
21956
    iprot.readStructEnd()
21957
 
21958
  def write(self, oprot):
21959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21961
      return
21962
    oprot.writeStructBegin('getStorePricings_args')
21963
    if self.itemIds is not None:
21964
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
21965
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 21966
      for iter412 in self.itemIds:
21967
        oprot.writeI64(iter412)
7306 rajveer 21968
      oprot.writeListEnd()
21969
      oprot.writeFieldEnd()
21970
    oprot.writeFieldStop()
21971
    oprot.writeStructEnd()
21972
 
21973
  def validate(self):
21974
    return
21975
 
21976
 
21977
  def __repr__(self):
21978
    L = ['%s=%r' % (key, value)
21979
      for key, value in self.__dict__.iteritems()]
21980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21981
 
21982
  def __eq__(self, other):
21983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21984
 
21985
  def __ne__(self, other):
21986
    return not (self == other)
21987
 
21988
class getStorePricings_result:
21989
  """
21990
  Attributes:
21991
   - success
21992
  """
21993
 
21994
  thrift_spec = (
21995
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
21996
  )
21997
 
21998
  def __init__(self, success=None,):
21999
    self.success = success
22000
 
22001
  def read(self, iprot):
22002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22004
      return
22005
    iprot.readStructBegin()
22006
    while True:
22007
      (fname, ftype, fid) = iprot.readFieldBegin()
22008
      if ftype == TType.STOP:
22009
        break
22010
      if fid == 0:
22011
        if ftype == TType.LIST:
22012
          self.success = []
12567 amit.gupta 22013
          (_etype416, _size413) = iprot.readListBegin()
22014
          for _i417 in xrange(_size413):
22015
            _elem418 = StorePricing()
22016
            _elem418.read(iprot)
22017
            self.success.append(_elem418)
7306 rajveer 22018
          iprot.readListEnd()
22019
        else:
22020
          iprot.skip(ftype)
22021
      else:
22022
        iprot.skip(ftype)
22023
      iprot.readFieldEnd()
22024
    iprot.readStructEnd()
22025
 
22026
  def write(self, oprot):
22027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22029
      return
22030
    oprot.writeStructBegin('getStorePricings_result')
22031
    if self.success is not None:
22032
      oprot.writeFieldBegin('success', TType.LIST, 0)
22033
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22034
      for iter419 in self.success:
22035
        iter419.write(oprot)
7306 rajveer 22036
      oprot.writeListEnd()
22037
      oprot.writeFieldEnd()
22038
    oprot.writeFieldStop()
22039
    oprot.writeStructEnd()
22040
 
22041
  def validate(self):
22042
    return
22043
 
22044
 
22045
  def __repr__(self):
22046
    L = ['%s=%r' % (key, value)
22047
      for key, value in self.__dict__.iteritems()]
22048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22049
 
22050
  def __eq__(self, other):
22051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22052
 
22053
  def __ne__(self, other):
22054
    return not (self == other)
22055
 
7265 rajveer 22056
class updateStorePricing_args:
22057
  """
22058
  Attributes:
22059
   - sp
7382 rajveer 22060
   - allColors
7265 rajveer 22061
  """
22062
 
22063
  thrift_spec = (
22064
    None, # 0
22065
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 22066
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 22067
  )
22068
 
7382 rajveer 22069
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 22070
    self.sp = sp
7382 rajveer 22071
    self.allColors = allColors
7265 rajveer 22072
 
22073
  def read(self, iprot):
22074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22076
      return
22077
    iprot.readStructBegin()
22078
    while True:
22079
      (fname, ftype, fid) = iprot.readFieldBegin()
22080
      if ftype == TType.STOP:
22081
        break
22082
      if fid == 1:
22083
        if ftype == TType.STRUCT:
22084
          self.sp = StorePricing()
22085
          self.sp.read(iprot)
22086
        else:
22087
          iprot.skip(ftype)
7382 rajveer 22088
      elif fid == 2:
22089
        if ftype == TType.BOOL:
22090
          self.allColors = iprot.readBool();
22091
        else:
22092
          iprot.skip(ftype)
7265 rajveer 22093
      else:
22094
        iprot.skip(ftype)
22095
      iprot.readFieldEnd()
22096
    iprot.readStructEnd()
22097
 
22098
  def write(self, oprot):
22099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22101
      return
22102
    oprot.writeStructBegin('updateStorePricing_args')
22103
    if self.sp is not None:
22104
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
22105
      self.sp.write(oprot)
22106
      oprot.writeFieldEnd()
7382 rajveer 22107
    if self.allColors is not None:
22108
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
22109
      oprot.writeBool(self.allColors)
22110
      oprot.writeFieldEnd()
7265 rajveer 22111
    oprot.writeFieldStop()
22112
    oprot.writeStructEnd()
22113
 
22114
  def validate(self):
22115
    return
22116
 
22117
 
22118
  def __repr__(self):
22119
    L = ['%s=%r' % (key, value)
22120
      for key, value in self.__dict__.iteritems()]
22121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22122
 
22123
  def __eq__(self, other):
22124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22125
 
22126
  def __ne__(self, other):
22127
    return not (self == other)
22128
 
22129
class updateStorePricing_result:
22130
 
22131
  thrift_spec = (
22132
  )
22133
 
22134
  def read(self, iprot):
22135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22137
      return
22138
    iprot.readStructBegin()
22139
    while True:
22140
      (fname, ftype, fid) = iprot.readFieldBegin()
22141
      if ftype == TType.STOP:
22142
        break
22143
      else:
22144
        iprot.skip(ftype)
22145
      iprot.readFieldEnd()
22146
    iprot.readStructEnd()
22147
 
22148
  def write(self, oprot):
22149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22151
      return
22152
    oprot.writeStructBegin('updateStorePricing_result')
22153
    oprot.writeFieldStop()
22154
    oprot.writeStructEnd()
22155
 
22156
  def validate(self):
22157
    return
22158
 
22159
 
22160
  def __repr__(self):
22161
    L = ['%s=%r' % (key, value)
22162
      for key, value in self.__dict__.iteritems()]
22163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22164
 
22165
  def __eq__(self, other):
22166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22167
 
22168
  def __ne__(self, other):
22169
    return not (self == other)
7281 kshitij.so 22170
 
22171
class getAllAmazonListedItems_args:
22172
 
22173
  thrift_spec = (
22174
  )
22175
 
22176
  def read(self, iprot):
22177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22179
      return
22180
    iprot.readStructBegin()
22181
    while True:
22182
      (fname, ftype, fid) = iprot.readFieldBegin()
22183
      if ftype == TType.STOP:
22184
        break
22185
      else:
22186
        iprot.skip(ftype)
22187
      iprot.readFieldEnd()
22188
    iprot.readStructEnd()
22189
 
22190
  def write(self, oprot):
22191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22193
      return
22194
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22195
    oprot.writeFieldStop()
22196
    oprot.writeStructEnd()
22197
 
22198
  def validate(self):
22199
    return
22200
 
22201
 
22202
  def __repr__(self):
22203
    L = ['%s=%r' % (key, value)
22204
      for key, value in self.__dict__.iteritems()]
22205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22206
 
22207
  def __eq__(self, other):
22208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22209
 
22210
  def __ne__(self, other):
22211
    return not (self == other)
22212
 
22213
class getAllAmazonListedItems_result:
22214
  """
22215
  Attributes:
22216
   - success
22217
  """
22218
 
22219
  thrift_spec = (
22220
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22221
  )
22222
 
22223
  def __init__(self, success=None,):
22224
    self.success = success
22225
 
22226
  def read(self, iprot):
22227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22229
      return
22230
    iprot.readStructBegin()
22231
    while True:
22232
      (fname, ftype, fid) = iprot.readFieldBegin()
22233
      if ftype == TType.STOP:
22234
        break
22235
      if fid == 0:
22236
        if ftype == TType.LIST:
22237
          self.success = []
12567 amit.gupta 22238
          (_etype423, _size420) = iprot.readListBegin()
22239
          for _i424 in xrange(_size420):
22240
            _elem425 = Amazonlisted()
22241
            _elem425.read(iprot)
22242
            self.success.append(_elem425)
7281 kshitij.so 22243
          iprot.readListEnd()
22244
        else:
22245
          iprot.skip(ftype)
22246
      else:
22247
        iprot.skip(ftype)
22248
      iprot.readFieldEnd()
22249
    iprot.readStructEnd()
22250
 
22251
  def write(self, oprot):
22252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22254
      return
22255
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22256
    if self.success is not None:
22257
      oprot.writeFieldBegin('success', TType.LIST, 0)
22258
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22259
      for iter426 in self.success:
22260
        iter426.write(oprot)
7281 kshitij.so 22261
      oprot.writeListEnd()
22262
      oprot.writeFieldEnd()
22263
    oprot.writeFieldStop()
22264
    oprot.writeStructEnd()
22265
 
22266
  def validate(self):
22267
    return
22268
 
22269
 
22270
  def __repr__(self):
22271
    L = ['%s=%r' % (key, value)
22272
      for key, value in self.__dict__.iteritems()]
22273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22274
 
22275
  def __eq__(self, other):
22276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22277
 
22278
  def __ne__(self, other):
22279
    return not (self == other)
22280
 
8619 kshitij.so 22281
class searchAmazonItems_args:
22282
  """
22283
  Attributes:
22284
   - searchTerm
22285
   - offset
22286
   - limit
22287
  """
22288
 
22289
  thrift_spec = (
22290
    None, # 0
22291
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22292
    (2, TType.I64, 'offset', None, None, ), # 2
22293
    (3, TType.I64, 'limit', None, None, ), # 3
22294
  )
22295
 
22296
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22297
    self.searchTerm = searchTerm
22298
    self.offset = offset
22299
    self.limit = limit
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 == 1:
22311
        if ftype == TType.LIST:
22312
          self.searchTerm = []
12567 amit.gupta 22313
          (_etype430, _size427) = iprot.readListBegin()
22314
          for _i431 in xrange(_size427):
22315
            _elem432 = iprot.readString();
22316
            self.searchTerm.append(_elem432)
8619 kshitij.so 22317
          iprot.readListEnd()
22318
        else:
22319
          iprot.skip(ftype)
22320
      elif fid == 2:
22321
        if ftype == TType.I64:
22322
          self.offset = iprot.readI64();
22323
        else:
22324
          iprot.skip(ftype)
22325
      elif fid == 3:
22326
        if ftype == TType.I64:
22327
          self.limit = iprot.readI64();
22328
        else:
22329
          iprot.skip(ftype)
22330
      else:
22331
        iprot.skip(ftype)
22332
      iprot.readFieldEnd()
22333
    iprot.readStructEnd()
22334
 
22335
  def write(self, oprot):
22336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22338
      return
22339
    oprot.writeStructBegin('searchAmazonItems_args')
22340
    if self.searchTerm is not None:
22341
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22342
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22343
      for iter433 in self.searchTerm:
22344
        oprot.writeString(iter433)
8619 kshitij.so 22345
      oprot.writeListEnd()
22346
      oprot.writeFieldEnd()
22347
    if self.offset is not None:
22348
      oprot.writeFieldBegin('offset', TType.I64, 2)
22349
      oprot.writeI64(self.offset)
22350
      oprot.writeFieldEnd()
22351
    if self.limit is not None:
22352
      oprot.writeFieldBegin('limit', TType.I64, 3)
22353
      oprot.writeI64(self.limit)
22354
      oprot.writeFieldEnd()
22355
    oprot.writeFieldStop()
22356
    oprot.writeStructEnd()
22357
 
22358
  def validate(self):
22359
    return
22360
 
22361
 
22362
  def __repr__(self):
22363
    L = ['%s=%r' % (key, value)
22364
      for key, value in self.__dict__.iteritems()]
22365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22366
 
22367
  def __eq__(self, other):
22368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22369
 
22370
  def __ne__(self, other):
22371
    return not (self == other)
22372
 
22373
class searchAmazonItems_result:
22374
  """
22375
  Attributes:
22376
   - success
22377
  """
22378
 
22379
  thrift_spec = (
22380
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22381
  )
22382
 
22383
  def __init__(self, success=None,):
22384
    self.success = success
22385
 
22386
  def read(self, iprot):
22387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22389
      return
22390
    iprot.readStructBegin()
22391
    while True:
22392
      (fname, ftype, fid) = iprot.readFieldBegin()
22393
      if ftype == TType.STOP:
22394
        break
22395
      if fid == 0:
22396
        if ftype == TType.LIST:
22397
          self.success = []
12567 amit.gupta 22398
          (_etype437, _size434) = iprot.readListBegin()
22399
          for _i438 in xrange(_size434):
22400
            _elem439 = Amazonlisted()
22401
            _elem439.read(iprot)
22402
            self.success.append(_elem439)
8619 kshitij.so 22403
          iprot.readListEnd()
22404
        else:
22405
          iprot.skip(ftype)
22406
      else:
22407
        iprot.skip(ftype)
22408
      iprot.readFieldEnd()
22409
    iprot.readStructEnd()
22410
 
22411
  def write(self, oprot):
22412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22414
      return
22415
    oprot.writeStructBegin('searchAmazonItems_result')
22416
    if self.success is not None:
22417
      oprot.writeFieldBegin('success', TType.LIST, 0)
22418
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22419
      for iter440 in self.success:
22420
        iter440.write(oprot)
8619 kshitij.so 22421
      oprot.writeListEnd()
22422
      oprot.writeFieldEnd()
22423
    oprot.writeFieldStop()
22424
    oprot.writeStructEnd()
22425
 
22426
  def validate(self):
22427
    return
22428
 
22429
 
22430
  def __repr__(self):
22431
    L = ['%s=%r' % (key, value)
22432
      for key, value in self.__dict__.iteritems()]
22433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22434
 
22435
  def __eq__(self, other):
22436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22437
 
22438
  def __ne__(self, other):
22439
    return not (self == other)
22440
 
22441
class getAmazonSearchResultCount_args:
22442
  """
22443
  Attributes:
22444
   - searchTerm
22445
  """
22446
 
22447
  thrift_spec = (
22448
    None, # 0
22449
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22450
  )
22451
 
22452
  def __init__(self, searchTerm=None,):
22453
    self.searchTerm = searchTerm
22454
 
22455
  def read(self, iprot):
22456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22458
      return
22459
    iprot.readStructBegin()
22460
    while True:
22461
      (fname, ftype, fid) = iprot.readFieldBegin()
22462
      if ftype == TType.STOP:
22463
        break
22464
      if fid == 1:
22465
        if ftype == TType.LIST:
22466
          self.searchTerm = []
12567 amit.gupta 22467
          (_etype444, _size441) = iprot.readListBegin()
22468
          for _i445 in xrange(_size441):
22469
            _elem446 = iprot.readString();
22470
            self.searchTerm.append(_elem446)
8619 kshitij.so 22471
          iprot.readListEnd()
22472
        else:
22473
          iprot.skip(ftype)
22474
      else:
22475
        iprot.skip(ftype)
22476
      iprot.readFieldEnd()
22477
    iprot.readStructEnd()
22478
 
22479
  def write(self, oprot):
22480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22482
      return
22483
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22484
    if self.searchTerm is not None:
22485
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22486
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22487
      for iter447 in self.searchTerm:
22488
        oprot.writeString(iter447)
8619 kshitij.so 22489
      oprot.writeListEnd()
22490
      oprot.writeFieldEnd()
22491
    oprot.writeFieldStop()
22492
    oprot.writeStructEnd()
22493
 
22494
  def validate(self):
22495
    return
22496
 
22497
 
22498
  def __repr__(self):
22499
    L = ['%s=%r' % (key, value)
22500
      for key, value in self.__dict__.iteritems()]
22501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22502
 
22503
  def __eq__(self, other):
22504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22505
 
22506
  def __ne__(self, other):
22507
    return not (self == other)
22508
 
22509
class getAmazonSearchResultCount_result:
22510
  """
22511
  Attributes:
22512
   - success
22513
  """
22514
 
22515
  thrift_spec = (
22516
    (0, TType.I64, 'success', None, None, ), # 0
22517
  )
22518
 
22519
  def __init__(self, success=None,):
22520
    self.success = success
22521
 
22522
  def read(self, iprot):
22523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22525
      return
22526
    iprot.readStructBegin()
22527
    while True:
22528
      (fname, ftype, fid) = iprot.readFieldBegin()
22529
      if ftype == TType.STOP:
22530
        break
22531
      if fid == 0:
22532
        if ftype == TType.I64:
22533
          self.success = iprot.readI64();
22534
        else:
22535
          iprot.skip(ftype)
22536
      else:
22537
        iprot.skip(ftype)
22538
      iprot.readFieldEnd()
22539
    iprot.readStructEnd()
22540
 
22541
  def write(self, oprot):
22542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22544
      return
22545
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22546
    if self.success is not None:
22547
      oprot.writeFieldBegin('success', TType.I64, 0)
22548
      oprot.writeI64(self.success)
22549
      oprot.writeFieldEnd()
22550
    oprot.writeFieldStop()
22551
    oprot.writeStructEnd()
22552
 
22553
  def validate(self):
22554
    return
22555
 
22556
 
22557
  def __repr__(self):
22558
    L = ['%s=%r' % (key, value)
22559
      for key, value in self.__dict__.iteritems()]
22560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22561
 
22562
  def __eq__(self, other):
22563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22564
 
22565
  def __ne__(self, other):
22566
    return not (self == other)
22567
 
22568
class getCountForAmazonlistedItems_args:
22569
 
22570
  thrift_spec = (
22571
  )
22572
 
22573
  def read(self, iprot):
22574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22576
      return
22577
    iprot.readStructBegin()
22578
    while True:
22579
      (fname, ftype, fid) = iprot.readFieldBegin()
22580
      if ftype == TType.STOP:
22581
        break
22582
      else:
22583
        iprot.skip(ftype)
22584
      iprot.readFieldEnd()
22585
    iprot.readStructEnd()
22586
 
22587
  def write(self, oprot):
22588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22590
      return
22591
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22592
    oprot.writeFieldStop()
22593
    oprot.writeStructEnd()
22594
 
22595
  def validate(self):
22596
    return
22597
 
22598
 
22599
  def __repr__(self):
22600
    L = ['%s=%r' % (key, value)
22601
      for key, value in self.__dict__.iteritems()]
22602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22603
 
22604
  def __eq__(self, other):
22605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22606
 
22607
  def __ne__(self, other):
22608
    return not (self == other)
22609
 
22610
class getCountForAmazonlistedItems_result:
22611
  """
22612
  Attributes:
22613
   - success
22614
  """
22615
 
22616
  thrift_spec = (
22617
    (0, TType.I64, 'success', None, None, ), # 0
22618
  )
22619
 
22620
  def __init__(self, success=None,):
22621
    self.success = success
22622
 
22623
  def read(self, iprot):
22624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22626
      return
22627
    iprot.readStructBegin()
22628
    while True:
22629
      (fname, ftype, fid) = iprot.readFieldBegin()
22630
      if ftype == TType.STOP:
22631
        break
22632
      if fid == 0:
22633
        if ftype == TType.I64:
22634
          self.success = iprot.readI64();
22635
        else:
22636
          iprot.skip(ftype)
22637
      else:
22638
        iprot.skip(ftype)
22639
      iprot.readFieldEnd()
22640
    iprot.readStructEnd()
22641
 
22642
  def write(self, oprot):
22643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22645
      return
22646
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22647
    if self.success is not None:
22648
      oprot.writeFieldBegin('success', TType.I64, 0)
22649
      oprot.writeI64(self.success)
22650
      oprot.writeFieldEnd()
22651
    oprot.writeFieldStop()
22652
    oprot.writeStructEnd()
22653
 
22654
  def validate(self):
22655
    return
22656
 
22657
 
22658
  def __repr__(self):
22659
    L = ['%s=%r' % (key, value)
22660
      for key, value in self.__dict__.iteritems()]
22661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22662
 
22663
  def __eq__(self, other):
22664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22665
 
22666
  def __ne__(self, other):
22667
    return not (self == other)
22668
 
7281 kshitij.so 22669
class getAmazonItemDetails_args:
22670
  """
22671
  Attributes:
22672
   - itemId
22673
  """
22674
 
22675
  thrift_spec = (
22676
    None, # 0
22677
    (1, TType.I64, 'itemId', None, None, ), # 1
22678
  )
22679
 
22680
  def __init__(self, itemId=None,):
22681
    self.itemId = itemId
22682
 
22683
  def read(self, iprot):
22684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22686
      return
22687
    iprot.readStructBegin()
22688
    while True:
22689
      (fname, ftype, fid) = iprot.readFieldBegin()
22690
      if ftype == TType.STOP:
22691
        break
22692
      if fid == 1:
22693
        if ftype == TType.I64:
22694
          self.itemId = iprot.readI64();
22695
        else:
22696
          iprot.skip(ftype)
22697
      else:
22698
        iprot.skip(ftype)
22699
      iprot.readFieldEnd()
22700
    iprot.readStructEnd()
22701
 
22702
  def write(self, oprot):
22703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22705
      return
22706
    oprot.writeStructBegin('getAmazonItemDetails_args')
22707
    if self.itemId is not None:
22708
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22709
      oprot.writeI64(self.itemId)
22710
      oprot.writeFieldEnd()
22711
    oprot.writeFieldStop()
22712
    oprot.writeStructEnd()
22713
 
22714
  def validate(self):
22715
    return
22716
 
22717
 
22718
  def __repr__(self):
22719
    L = ['%s=%r' % (key, value)
22720
      for key, value in self.__dict__.iteritems()]
22721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22722
 
22723
  def __eq__(self, other):
22724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22725
 
22726
  def __ne__(self, other):
22727
    return not (self == other)
22728
 
22729
class getAmazonItemDetails_result:
22730
  """
22731
  Attributes:
22732
   - success
22733
  """
22734
 
22735
  thrift_spec = (
22736
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22737
  )
22738
 
22739
  def __init__(self, success=None,):
22740
    self.success = success
22741
 
22742
  def read(self, iprot):
22743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22745
      return
22746
    iprot.readStructBegin()
22747
    while True:
22748
      (fname, ftype, fid) = iprot.readFieldBegin()
22749
      if ftype == TType.STOP:
22750
        break
22751
      if fid == 0:
22752
        if ftype == TType.STRUCT:
22753
          self.success = Amazonlisted()
22754
          self.success.read(iprot)
22755
        else:
22756
          iprot.skip(ftype)
22757
      else:
22758
        iprot.skip(ftype)
22759
      iprot.readFieldEnd()
22760
    iprot.readStructEnd()
22761
 
22762
  def write(self, oprot):
22763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22765
      return
22766
    oprot.writeStructBegin('getAmazonItemDetails_result')
22767
    if self.success is not None:
22768
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22769
      self.success.write(oprot)
22770
      oprot.writeFieldEnd()
22771
    oprot.writeFieldStop()
22772
    oprot.writeStructEnd()
22773
 
22774
  def validate(self):
22775
    return
22776
 
22777
 
22778
  def __repr__(self):
22779
    L = ['%s=%r' % (key, value)
22780
      for key, value in self.__dict__.iteritems()]
22781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22782
 
22783
  def __eq__(self, other):
22784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22785
 
22786
  def __ne__(self, other):
22787
    return not (self == other)
22788
 
22789
class updateAmazonItemDetails_args:
22790
  """
22791
  Attributes:
8168 kshitij.so 22792
   - amazonlisted
7281 kshitij.so 22793
  """
22794
 
22795
  thrift_spec = (
22796
    None, # 0
8168 kshitij.so 22797
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 22798
  )
22799
 
8168 kshitij.so 22800
  def __init__(self, amazonlisted=None,):
22801
    self.amazonlisted = amazonlisted
7281 kshitij.so 22802
 
22803
  def read(self, iprot):
22804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22806
      return
22807
    iprot.readStructBegin()
22808
    while True:
22809
      (fname, ftype, fid) = iprot.readFieldBegin()
22810
      if ftype == TType.STOP:
22811
        break
22812
      if fid == 1:
8168 kshitij.so 22813
        if ftype == TType.STRUCT:
22814
          self.amazonlisted = Amazonlisted()
22815
          self.amazonlisted.read(iprot)
7281 kshitij.so 22816
        else:
22817
          iprot.skip(ftype)
22818
      else:
22819
        iprot.skip(ftype)
22820
      iprot.readFieldEnd()
22821
    iprot.readStructEnd()
22822
 
22823
  def write(self, oprot):
22824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22826
      return
22827
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 22828
    if self.amazonlisted is not None:
22829
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22830
      self.amazonlisted.write(oprot)
7281 kshitij.so 22831
      oprot.writeFieldEnd()
22832
    oprot.writeFieldStop()
22833
    oprot.writeStructEnd()
22834
 
22835
  def validate(self):
22836
    return
22837
 
22838
 
22839
  def __repr__(self):
22840
    L = ['%s=%r' % (key, value)
22841
      for key, value in self.__dict__.iteritems()]
22842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22843
 
22844
  def __eq__(self, other):
22845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22846
 
22847
  def __ne__(self, other):
22848
    return not (self == other)
22849
 
22850
class updateAmazonItemDetails_result:
22851
 
22852
  thrift_spec = (
22853
  )
22854
 
22855
  def read(self, iprot):
22856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22858
      return
22859
    iprot.readStructBegin()
22860
    while True:
22861
      (fname, ftype, fid) = iprot.readFieldBegin()
22862
      if ftype == TType.STOP:
22863
        break
22864
      else:
22865
        iprot.skip(ftype)
22866
      iprot.readFieldEnd()
22867
    iprot.readStructEnd()
22868
 
22869
  def write(self, oprot):
22870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22872
      return
22873
    oprot.writeStructBegin('updateAmazonItemDetails_result')
22874
    oprot.writeFieldStop()
22875
    oprot.writeStructEnd()
22876
 
22877
  def validate(self):
22878
    return
22879
 
22880
 
22881
  def __repr__(self):
22882
    L = ['%s=%r' % (key, value)
22883
      for key, value in self.__dict__.iteritems()]
22884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22885
 
22886
  def __eq__(self, other):
22887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22888
 
22889
  def __ne__(self, other):
22890
    return not (self == other)
22891
 
22892
class addAmazonItem_args:
22893
  """
22894
  Attributes:
22895
   - amazonlisted
22896
  """
22897
 
22898
  thrift_spec = (
22899
    None, # 0
22900
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
22901
  )
22902
 
22903
  def __init__(self, amazonlisted=None,):
22904
    self.amazonlisted = amazonlisted
22905
 
22906
  def read(self, iprot):
22907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22909
      return
22910
    iprot.readStructBegin()
22911
    while True:
22912
      (fname, ftype, fid) = iprot.readFieldBegin()
22913
      if ftype == TType.STOP:
22914
        break
22915
      if fid == 1:
22916
        if ftype == TType.STRUCT:
22917
          self.amazonlisted = Amazonlisted()
22918
          self.amazonlisted.read(iprot)
22919
        else:
22920
          iprot.skip(ftype)
22921
      else:
22922
        iprot.skip(ftype)
22923
      iprot.readFieldEnd()
22924
    iprot.readStructEnd()
22925
 
22926
  def write(self, oprot):
22927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22929
      return
22930
    oprot.writeStructBegin('addAmazonItem_args')
22931
    if self.amazonlisted is not None:
22932
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22933
      self.amazonlisted.write(oprot)
22934
      oprot.writeFieldEnd()
22935
    oprot.writeFieldStop()
22936
    oprot.writeStructEnd()
22937
 
22938
  def validate(self):
22939
    return
22940
 
22941
 
22942
  def __repr__(self):
22943
    L = ['%s=%r' % (key, value)
22944
      for key, value in self.__dict__.iteritems()]
22945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22946
 
22947
  def __eq__(self, other):
22948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22949
 
22950
  def __ne__(self, other):
22951
    return not (self == other)
22952
 
22953
class addAmazonItem_result:
22954
 
22955
  thrift_spec = (
22956
  )
22957
 
22958
  def read(self, iprot):
22959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22961
      return
22962
    iprot.readStructBegin()
22963
    while True:
22964
      (fname, ftype, fid) = iprot.readFieldBegin()
22965
      if ftype == TType.STOP:
22966
        break
22967
      else:
22968
        iprot.skip(ftype)
22969
      iprot.readFieldEnd()
22970
    iprot.readStructEnd()
22971
 
22972
  def write(self, oprot):
22973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22975
      return
22976
    oprot.writeStructBegin('addAmazonItem_result')
22977
    oprot.writeFieldStop()
22978
    oprot.writeStructEnd()
22979
 
22980
  def validate(self):
22981
    return
22982
 
22983
 
22984
  def __repr__(self):
22985
    L = ['%s=%r' % (key, value)
22986
      for key, value in self.__dict__.iteritems()]
22987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22988
 
22989
  def __eq__(self, other):
22990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22991
 
22992
  def __ne__(self, other):
22993
    return not (self == other)
7291 vikram.rag 22994
 
22995
class getAsinItems_args:
22996
 
22997
  thrift_spec = (
22998
  )
22999
 
23000
  def read(self, iprot):
23001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23003
      return
23004
    iprot.readStructBegin()
23005
    while True:
23006
      (fname, ftype, fid) = iprot.readFieldBegin()
23007
      if ftype == TType.STOP:
23008
        break
23009
      else:
23010
        iprot.skip(ftype)
23011
      iprot.readFieldEnd()
23012
    iprot.readStructEnd()
23013
 
23014
  def write(self, oprot):
23015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23017
      return
23018
    oprot.writeStructBegin('getAsinItems_args')
23019
    oprot.writeFieldStop()
23020
    oprot.writeStructEnd()
23021
 
23022
  def validate(self):
23023
    return
23024
 
23025
 
23026
  def __repr__(self):
23027
    L = ['%s=%r' % (key, value)
23028
      for key, value in self.__dict__.iteritems()]
23029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23030
 
23031
  def __eq__(self, other):
23032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23033
 
23034
  def __ne__(self, other):
23035
    return not (self == other)
23036
 
23037
class getAsinItems_result:
23038
  """
23039
  Attributes:
23040
   - success
23041
  """
23042
 
23043
  thrift_spec = (
23044
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
23045
  )
23046
 
23047
  def __init__(self, success=None,):
23048
    self.success = success
23049
 
23050
  def read(self, iprot):
23051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23053
      return
23054
    iprot.readStructBegin()
23055
    while True:
23056
      (fname, ftype, fid) = iprot.readFieldBegin()
23057
      if ftype == TType.STOP:
23058
        break
23059
      if fid == 0:
23060
        if ftype == TType.LIST:
23061
          self.success = []
12567 amit.gupta 23062
          (_etype451, _size448) = iprot.readListBegin()
23063
          for _i452 in xrange(_size448):
23064
            _elem453 = Item()
23065
            _elem453.read(iprot)
23066
            self.success.append(_elem453)
7291 vikram.rag 23067
          iprot.readListEnd()
23068
        else:
23069
          iprot.skip(ftype)
23070
      else:
23071
        iprot.skip(ftype)
23072
      iprot.readFieldEnd()
23073
    iprot.readStructEnd()
23074
 
23075
  def write(self, oprot):
23076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23078
      return
23079
    oprot.writeStructBegin('getAsinItems_result')
23080
    if self.success is not None:
23081
      oprot.writeFieldBegin('success', TType.LIST, 0)
23082
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23083
      for iter454 in self.success:
23084
        iter454.write(oprot)
7291 vikram.rag 23085
      oprot.writeListEnd()
23086
      oprot.writeFieldEnd()
23087
    oprot.writeFieldStop()
23088
    oprot.writeStructEnd()
23089
 
23090
  def validate(self):
23091
    return
23092
 
23093
 
23094
  def __repr__(self):
23095
    L = ['%s=%r' % (key, value)
23096
      for key, value in self.__dict__.iteritems()]
23097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23098
 
23099
  def __eq__(self, other):
23100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23101
 
23102
  def __ne__(self, other):
23103
    return not (self == other)
23104
 
23105
class getAllFbaListedItems_args:
23106
 
23107
  thrift_spec = (
23108
  )
23109
 
23110
  def read(self, iprot):
23111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23113
      return
23114
    iprot.readStructBegin()
23115
    while True:
23116
      (fname, ftype, fid) = iprot.readFieldBegin()
23117
      if ftype == TType.STOP:
23118
        break
23119
      else:
23120
        iprot.skip(ftype)
23121
      iprot.readFieldEnd()
23122
    iprot.readStructEnd()
23123
 
23124
  def write(self, oprot):
23125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23127
      return
23128
    oprot.writeStructBegin('getAllFbaListedItems_args')
23129
    oprot.writeFieldStop()
23130
    oprot.writeStructEnd()
23131
 
23132
  def validate(self):
23133
    return
23134
 
23135
 
23136
  def __repr__(self):
23137
    L = ['%s=%r' % (key, value)
23138
      for key, value in self.__dict__.iteritems()]
23139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23140
 
23141
  def __eq__(self, other):
23142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23143
 
23144
  def __ne__(self, other):
23145
    return not (self == other)
23146
 
23147
class getAllFbaListedItems_result:
23148
  """
23149
  Attributes:
23150
   - success
23151
  """
23152
 
23153
  thrift_spec = (
23154
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23155
  )
23156
 
23157
  def __init__(self, success=None,):
23158
    self.success = success
23159
 
23160
  def read(self, iprot):
23161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23163
      return
23164
    iprot.readStructBegin()
23165
    while True:
23166
      (fname, ftype, fid) = iprot.readFieldBegin()
23167
      if ftype == TType.STOP:
23168
        break
23169
      if fid == 0:
23170
        if ftype == TType.LIST:
23171
          self.success = []
12567 amit.gupta 23172
          (_etype458, _size455) = iprot.readListBegin()
23173
          for _i459 in xrange(_size455):
23174
            _elem460 = Amazonlisted()
23175
            _elem460.read(iprot)
23176
            self.success.append(_elem460)
7291 vikram.rag 23177
          iprot.readListEnd()
23178
        else:
23179
          iprot.skip(ftype)
23180
      else:
23181
        iprot.skip(ftype)
23182
      iprot.readFieldEnd()
23183
    iprot.readStructEnd()
23184
 
23185
  def write(self, oprot):
23186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23188
      return
23189
    oprot.writeStructBegin('getAllFbaListedItems_result')
23190
    if self.success is not None:
23191
      oprot.writeFieldBegin('success', TType.LIST, 0)
23192
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23193
      for iter461 in self.success:
23194
        iter461.write(oprot)
7291 vikram.rag 23195
      oprot.writeListEnd()
23196
      oprot.writeFieldEnd()
23197
    oprot.writeFieldStop()
23198
    oprot.writeStructEnd()
23199
 
23200
  def validate(self):
23201
    return
23202
 
23203
 
23204
  def __repr__(self):
23205
    L = ['%s=%r' % (key, value)
23206
      for key, value in self.__dict__.iteritems()]
23207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23208
 
23209
  def __eq__(self, other):
23210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23211
 
23212
  def __ne__(self, other):
23213
    return not (self == other)
23214
 
23215
class getAllNonFbaListedItems_args:
23216
 
23217
  thrift_spec = (
23218
  )
23219
 
23220
  def read(self, iprot):
23221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23223
      return
23224
    iprot.readStructBegin()
23225
    while True:
23226
      (fname, ftype, fid) = iprot.readFieldBegin()
23227
      if ftype == TType.STOP:
23228
        break
23229
      else:
23230
        iprot.skip(ftype)
23231
      iprot.readFieldEnd()
23232
    iprot.readStructEnd()
23233
 
23234
  def write(self, oprot):
23235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23237
      return
23238
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23239
    oprot.writeFieldStop()
23240
    oprot.writeStructEnd()
23241
 
23242
  def validate(self):
23243
    return
23244
 
23245
 
23246
  def __repr__(self):
23247
    L = ['%s=%r' % (key, value)
23248
      for key, value in self.__dict__.iteritems()]
23249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23250
 
23251
  def __eq__(self, other):
23252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23253
 
23254
  def __ne__(self, other):
23255
    return not (self == other)
23256
 
23257
class getAllNonFbaListedItems_result:
23258
  """
23259
  Attributes:
23260
   - success
23261
  """
23262
 
23263
  thrift_spec = (
23264
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23265
  )
23266
 
23267
  def __init__(self, success=None,):
23268
    self.success = success
23269
 
23270
  def read(self, iprot):
23271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23273
      return
23274
    iprot.readStructBegin()
23275
    while True:
23276
      (fname, ftype, fid) = iprot.readFieldBegin()
23277
      if ftype == TType.STOP:
23278
        break
23279
      if fid == 0:
23280
        if ftype == TType.LIST:
23281
          self.success = []
12567 amit.gupta 23282
          (_etype465, _size462) = iprot.readListBegin()
23283
          for _i466 in xrange(_size462):
23284
            _elem467 = Amazonlisted()
23285
            _elem467.read(iprot)
23286
            self.success.append(_elem467)
7291 vikram.rag 23287
          iprot.readListEnd()
23288
        else:
23289
          iprot.skip(ftype)
23290
      else:
23291
        iprot.skip(ftype)
23292
      iprot.readFieldEnd()
23293
    iprot.readStructEnd()
23294
 
23295
  def write(self, oprot):
23296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23298
      return
23299
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23300
    if self.success is not None:
23301
      oprot.writeFieldBegin('success', TType.LIST, 0)
23302
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23303
      for iter468 in self.success:
23304
        iter468.write(oprot)
7291 vikram.rag 23305
      oprot.writeListEnd()
23306
      oprot.writeFieldEnd()
23307
    oprot.writeFieldStop()
23308
    oprot.writeStructEnd()
23309
 
23310
  def validate(self):
23311
    return
23312
 
23313
 
23314
  def __repr__(self):
23315
    L = ['%s=%r' % (key, value)
23316
      for key, value in self.__dict__.iteritems()]
23317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23318
 
23319
  def __eq__(self, other):
23320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23321
 
23322
  def __ne__(self, other):
23323
    return not (self == other)
7460 kshitij.so 23324
 
23325
class updateItemInventory_args:
23326
  """
23327
  Attributes:
23328
   - itemId
23329
   - holdInventory
23330
   - defaultInventory
23331
  """
23332
 
23333
  thrift_spec = (
23334
    None, # 0
23335
    (1, TType.I64, 'itemId', None, None, ), # 1
23336
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23337
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23338
  )
23339
 
23340
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23341
    self.itemId = itemId
23342
    self.holdInventory = holdInventory
23343
    self.defaultInventory = defaultInventory
23344
 
23345
  def read(self, iprot):
23346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23348
      return
23349
    iprot.readStructBegin()
23350
    while True:
23351
      (fname, ftype, fid) = iprot.readFieldBegin()
23352
      if ftype == TType.STOP:
23353
        break
23354
      if fid == 1:
23355
        if ftype == TType.I64:
23356
          self.itemId = iprot.readI64();
23357
        else:
23358
          iprot.skip(ftype)
23359
      elif fid == 2:
23360
        if ftype == TType.I64:
23361
          self.holdInventory = iprot.readI64();
23362
        else:
23363
          iprot.skip(ftype)
23364
      elif fid == 3:
23365
        if ftype == TType.I64:
23366
          self.defaultInventory = iprot.readI64();
23367
        else:
23368
          iprot.skip(ftype)
23369
      else:
23370
        iprot.skip(ftype)
23371
      iprot.readFieldEnd()
23372
    iprot.readStructEnd()
23373
 
23374
  def write(self, oprot):
23375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23377
      return
23378
    oprot.writeStructBegin('updateItemInventory_args')
23379
    if self.itemId is not None:
23380
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23381
      oprot.writeI64(self.itemId)
23382
      oprot.writeFieldEnd()
23383
    if self.holdInventory is not None:
23384
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23385
      oprot.writeI64(self.holdInventory)
23386
      oprot.writeFieldEnd()
23387
    if self.defaultInventory is not None:
23388
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23389
      oprot.writeI64(self.defaultInventory)
23390
      oprot.writeFieldEnd()
23391
    oprot.writeFieldStop()
23392
    oprot.writeStructEnd()
23393
 
23394
  def validate(self):
23395
    return
23396
 
23397
 
23398
  def __repr__(self):
23399
    L = ['%s=%r' % (key, value)
23400
      for key, value in self.__dict__.iteritems()]
23401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23402
 
23403
  def __eq__(self, other):
23404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23405
 
23406
  def __ne__(self, other):
23407
    return not (self == other)
23408
 
23409
class updateItemInventory_result:
23410
  """
23411
  Attributes:
23412
   - success
23413
  """
23414
 
23415
  thrift_spec = (
23416
    (0, TType.BOOL, 'success', None, None, ), # 0
23417
  )
23418
 
23419
  def __init__(self, success=None,):
23420
    self.success = success
23421
 
23422
  def read(self, iprot):
23423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23425
      return
23426
    iprot.readStructBegin()
23427
    while True:
23428
      (fname, ftype, fid) = iprot.readFieldBegin()
23429
      if ftype == TType.STOP:
23430
        break
23431
      if fid == 0:
23432
        if ftype == TType.BOOL:
23433
          self.success = iprot.readBool();
23434
        else:
23435
          iprot.skip(ftype)
23436
      else:
23437
        iprot.skip(ftype)
23438
      iprot.readFieldEnd()
23439
    iprot.readStructEnd()
23440
 
23441
  def write(self, oprot):
23442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23444
      return
23445
    oprot.writeStructBegin('updateItemInventory_result')
23446
    if self.success is not None:
23447
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23448
      oprot.writeBool(self.success)
23449
      oprot.writeFieldEnd()
23450
    oprot.writeFieldStop()
23451
    oprot.writeStructEnd()
23452
 
23453
  def validate(self):
23454
    return
23455
 
23456
 
23457
  def __repr__(self):
23458
    L = ['%s=%r' % (key, value)
23459
      for key, value in self.__dict__.iteritems()]
23460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23461
 
23462
  def __eq__(self, other):
23463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23464
 
23465
  def __ne__(self, other):
23466
    return not (self == other)
7770 kshitij.so 23467
 
23468
class updateTimestampForAmazonFeeds_args:
23469
  """
23470
  Attributes:
23471
   - type
23472
   - sku
23473
   - timestamp
23474
  """
23475
 
23476
  thrift_spec = (
23477
    None, # 0
23478
    (1, TType.STRING, 'type', None, None, ), # 1
23479
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23480
    (3, TType.I64, 'timestamp', None, None, ), # 3
23481
  )
23482
 
23483
  def __init__(self, type=None, sku=None, timestamp=None,):
23484
    self.type = type
23485
    self.sku = sku
23486
    self.timestamp = timestamp
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 == 1:
23498
        if ftype == TType.STRING:
23499
          self.type = iprot.readString();
23500
        else:
23501
          iprot.skip(ftype)
23502
      elif fid == 2:
23503
        if ftype == TType.LIST:
23504
          self.sku = []
12567 amit.gupta 23505
          (_etype472, _size469) = iprot.readListBegin()
23506
          for _i473 in xrange(_size469):
23507
            _elem474 = iprot.readI64();
23508
            self.sku.append(_elem474)
7770 kshitij.so 23509
          iprot.readListEnd()
23510
        else:
23511
          iprot.skip(ftype)
23512
      elif fid == 3:
23513
        if ftype == TType.I64:
23514
          self.timestamp = iprot.readI64();
23515
        else:
23516
          iprot.skip(ftype)
23517
      else:
23518
        iprot.skip(ftype)
23519
      iprot.readFieldEnd()
23520
    iprot.readStructEnd()
23521
 
23522
  def write(self, oprot):
23523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23525
      return
23526
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23527
    if self.type is not None:
23528
      oprot.writeFieldBegin('type', TType.STRING, 1)
23529
      oprot.writeString(self.type)
23530
      oprot.writeFieldEnd()
23531
    if self.sku is not None:
23532
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23533
      oprot.writeListBegin(TType.I64, len(self.sku))
12567 amit.gupta 23534
      for iter475 in self.sku:
23535
        oprot.writeI64(iter475)
7770 kshitij.so 23536
      oprot.writeListEnd()
23537
      oprot.writeFieldEnd()
23538
    if self.timestamp is not None:
23539
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23540
      oprot.writeI64(self.timestamp)
23541
      oprot.writeFieldEnd()
23542
    oprot.writeFieldStop()
23543
    oprot.writeStructEnd()
23544
 
23545
  def validate(self):
23546
    return
23547
 
23548
 
23549
  def __repr__(self):
23550
    L = ['%s=%r' % (key, value)
23551
      for key, value in self.__dict__.iteritems()]
23552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23553
 
23554
  def __eq__(self, other):
23555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23556
 
23557
  def __ne__(self, other):
23558
    return not (self == other)
23559
 
23560
class updateTimestampForAmazonFeeds_result:
23561
  """
23562
  Attributes:
23563
   - success
23564
  """
23565
 
23566
  thrift_spec = (
23567
    (0, TType.BOOL, 'success', None, None, ), # 0
23568
  )
23569
 
23570
  def __init__(self, success=None,):
23571
    self.success = success
23572
 
23573
  def read(self, iprot):
23574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23576
      return
23577
    iprot.readStructBegin()
23578
    while True:
23579
      (fname, ftype, fid) = iprot.readFieldBegin()
23580
      if ftype == TType.STOP:
23581
        break
23582
      if fid == 0:
23583
        if ftype == TType.BOOL:
23584
          self.success = iprot.readBool();
23585
        else:
23586
          iprot.skip(ftype)
23587
      else:
23588
        iprot.skip(ftype)
23589
      iprot.readFieldEnd()
23590
    iprot.readStructEnd()
23591
 
23592
  def write(self, oprot):
23593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23595
      return
23596
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23597
    if self.success is not None:
23598
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23599
      oprot.writeBool(self.success)
23600
      oprot.writeFieldEnd()
23601
    oprot.writeFieldStop()
23602
    oprot.writeStructEnd()
23603
 
23604
  def validate(self):
23605
    return
23606
 
23607
 
23608
  def __repr__(self):
23609
    L = ['%s=%r' % (key, value)
23610
      for key, value in self.__dict__.iteritems()]
23611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23612
 
23613
  def __eq__(self, other):
23614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23615
 
23616
  def __ne__(self, other):
23617
    return not (self == other)
7897 amar.kumar 23618
 
23619
class getAllParentCategories_args:
23620
 
23621
  thrift_spec = (
23622
  )
23623
 
23624
  def read(self, iprot):
23625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23627
      return
23628
    iprot.readStructBegin()
23629
    while True:
23630
      (fname, ftype, fid) = iprot.readFieldBegin()
23631
      if ftype == TType.STOP:
23632
        break
23633
      else:
23634
        iprot.skip(ftype)
23635
      iprot.readFieldEnd()
23636
    iprot.readStructEnd()
23637
 
23638
  def write(self, oprot):
23639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23641
      return
23642
    oprot.writeStructBegin('getAllParentCategories_args')
23643
    oprot.writeFieldStop()
23644
    oprot.writeStructEnd()
23645
 
23646
  def validate(self):
23647
    return
23648
 
23649
 
23650
  def __repr__(self):
23651
    L = ['%s=%r' % (key, value)
23652
      for key, value in self.__dict__.iteritems()]
23653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23654
 
23655
  def __eq__(self, other):
23656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23657
 
23658
  def __ne__(self, other):
23659
    return not (self == other)
23660
 
23661
class getAllParentCategories_result:
23662
  """
23663
  Attributes:
23664
   - success
23665
  """
23666
 
23667
  thrift_spec = (
23668
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23669
  )
23670
 
23671
  def __init__(self, success=None,):
23672
    self.success = success
23673
 
23674
  def read(self, iprot):
23675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23677
      return
23678
    iprot.readStructBegin()
23679
    while True:
23680
      (fname, ftype, fid) = iprot.readFieldBegin()
23681
      if ftype == TType.STOP:
23682
        break
23683
      if fid == 0:
23684
        if ftype == TType.LIST:
23685
          self.success = []
12567 amit.gupta 23686
          (_etype479, _size476) = iprot.readListBegin()
23687
          for _i480 in xrange(_size476):
23688
            _elem481 = Category()
23689
            _elem481.read(iprot)
23690
            self.success.append(_elem481)
7897 amar.kumar 23691
          iprot.readListEnd()
23692
        else:
23693
          iprot.skip(ftype)
23694
      else:
23695
        iprot.skip(ftype)
23696
      iprot.readFieldEnd()
23697
    iprot.readStructEnd()
23698
 
23699
  def write(self, oprot):
23700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23702
      return
23703
    oprot.writeStructBegin('getAllParentCategories_result')
23704
    if self.success is not None:
23705
      oprot.writeFieldBegin('success', TType.LIST, 0)
23706
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23707
      for iter482 in self.success:
23708
        iter482.write(oprot)
7897 amar.kumar 23709
      oprot.writeListEnd()
23710
      oprot.writeFieldEnd()
23711
    oprot.writeFieldStop()
23712
    oprot.writeStructEnd()
23713
 
23714
  def validate(self):
23715
    return
23716
 
23717
 
23718
  def __repr__(self):
23719
    L = ['%s=%r' % (key, value)
23720
      for key, value in self.__dict__.iteritems()]
23721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23722
 
23723
  def __eq__(self, other):
23724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23725
 
23726
  def __ne__(self, other):
23727
    return not (self == other)
7977 kshitij.so 23728
 
23729
class addPageViewEvent_args:
23730
  """
23731
  Attributes:
23732
   - pageViewEvents
23733
  """
23734
 
23735
  thrift_spec = (
23736
    None, # 0
23737
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23738
  )
23739
 
23740
  def __init__(self, pageViewEvents=None,):
23741
    self.pageViewEvents = pageViewEvents
23742
 
23743
  def read(self, iprot):
23744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23746
      return
23747
    iprot.readStructBegin()
23748
    while True:
23749
      (fname, ftype, fid) = iprot.readFieldBegin()
23750
      if ftype == TType.STOP:
23751
        break
23752
      if fid == 1:
23753
        if ftype == TType.STRUCT:
23754
          self.pageViewEvents = PageViewEvents()
23755
          self.pageViewEvents.read(iprot)
23756
        else:
23757
          iprot.skip(ftype)
23758
      else:
23759
        iprot.skip(ftype)
23760
      iprot.readFieldEnd()
23761
    iprot.readStructEnd()
23762
 
23763
  def write(self, oprot):
23764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23766
      return
23767
    oprot.writeStructBegin('addPageViewEvent_args')
23768
    if self.pageViewEvents is not None:
23769
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
23770
      self.pageViewEvents.write(oprot)
23771
      oprot.writeFieldEnd()
23772
    oprot.writeFieldStop()
23773
    oprot.writeStructEnd()
23774
 
23775
  def validate(self):
23776
    return
23777
 
23778
 
23779
  def __repr__(self):
23780
    L = ['%s=%r' % (key, value)
23781
      for key, value in self.__dict__.iteritems()]
23782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23783
 
23784
  def __eq__(self, other):
23785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23786
 
23787
  def __ne__(self, other):
23788
    return not (self == other)
23789
 
23790
class addPageViewEvent_result:
23791
 
23792
  thrift_spec = (
23793
  )
23794
 
23795
  def read(self, iprot):
23796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23798
      return
23799
    iprot.readStructBegin()
23800
    while True:
23801
      (fname, ftype, fid) = iprot.readFieldBegin()
23802
      if ftype == TType.STOP:
23803
        break
23804
      else:
23805
        iprot.skip(ftype)
23806
      iprot.readFieldEnd()
23807
    iprot.readStructEnd()
23808
 
23809
  def write(self, oprot):
23810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23812
      return
23813
    oprot.writeStructBegin('addPageViewEvent_result')
23814
    oprot.writeFieldStop()
23815
    oprot.writeStructEnd()
23816
 
23817
  def validate(self):
23818
    return
23819
 
23820
 
23821
  def __repr__(self):
23822
    L = ['%s=%r' % (key, value)
23823
      for key, value in self.__dict__.iteritems()]
23824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23825
 
23826
  def __eq__(self, other):
23827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23828
 
23829
  def __ne__(self, other):
23830
    return not (self == other)
23831
 
23832
class addCartEvent_args:
23833
  """
23834
  Attributes:
23835
   - cartEvents
23836
  """
23837
 
23838
  thrift_spec = (
23839
    None, # 0
23840
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
23841
  )
23842
 
23843
  def __init__(self, cartEvents=None,):
23844
    self.cartEvents = cartEvents
23845
 
23846
  def read(self, iprot):
23847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23849
      return
23850
    iprot.readStructBegin()
23851
    while True:
23852
      (fname, ftype, fid) = iprot.readFieldBegin()
23853
      if ftype == TType.STOP:
23854
        break
23855
      if fid == 1:
23856
        if ftype == TType.STRUCT:
23857
          self.cartEvents = CartEvents()
23858
          self.cartEvents.read(iprot)
23859
        else:
23860
          iprot.skip(ftype)
23861
      else:
23862
        iprot.skip(ftype)
23863
      iprot.readFieldEnd()
23864
    iprot.readStructEnd()
23865
 
23866
  def write(self, oprot):
23867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23869
      return
23870
    oprot.writeStructBegin('addCartEvent_args')
23871
    if self.cartEvents is not None:
23872
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
23873
      self.cartEvents.write(oprot)
23874
      oprot.writeFieldEnd()
23875
    oprot.writeFieldStop()
23876
    oprot.writeStructEnd()
23877
 
23878
  def validate(self):
23879
    return
23880
 
23881
 
23882
  def __repr__(self):
23883
    L = ['%s=%r' % (key, value)
23884
      for key, value in self.__dict__.iteritems()]
23885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23886
 
23887
  def __eq__(self, other):
23888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23889
 
23890
  def __ne__(self, other):
23891
    return not (self == other)
23892
 
23893
class addCartEvent_result:
23894
 
23895
  thrift_spec = (
23896
  )
23897
 
23898
  def read(self, iprot):
23899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23901
      return
23902
    iprot.readStructBegin()
23903
    while True:
23904
      (fname, ftype, fid) = iprot.readFieldBegin()
23905
      if ftype == TType.STOP:
23906
        break
23907
      else:
23908
        iprot.skip(ftype)
23909
      iprot.readFieldEnd()
23910
    iprot.readStructEnd()
23911
 
23912
  def write(self, oprot):
23913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23915
      return
23916
    oprot.writeStructBegin('addCartEvent_result')
23917
    oprot.writeFieldStop()
23918
    oprot.writeStructEnd()
23919
 
23920
  def validate(self):
23921
    return
23922
 
23923
 
23924
  def __repr__(self):
23925
    L = ['%s=%r' % (key, value)
23926
      for key, value in self.__dict__.iteritems()]
23927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23928
 
23929
  def __eq__(self, other):
23930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23931
 
23932
  def __ne__(self, other):
23933
    return not (self == other)
8139 kshitij.so 23934
 
8182 amar.kumar 23935
class addEbayItem_args:
23936
  """
23937
  Attributes:
23938
   - ebayItem
23939
  """
23940
 
23941
  thrift_spec = (
23942
    None, # 0
23943
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23944
  )
23945
 
23946
  def __init__(self, ebayItem=None,):
23947
    self.ebayItem = ebayItem
23948
 
23949
  def read(self, iprot):
23950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23952
      return
23953
    iprot.readStructBegin()
23954
    while True:
23955
      (fname, ftype, fid) = iprot.readFieldBegin()
23956
      if ftype == TType.STOP:
23957
        break
23958
      if fid == 1:
23959
        if ftype == TType.STRUCT:
23960
          self.ebayItem = EbayItem()
23961
          self.ebayItem.read(iprot)
23962
        else:
23963
          iprot.skip(ftype)
23964
      else:
23965
        iprot.skip(ftype)
23966
      iprot.readFieldEnd()
23967
    iprot.readStructEnd()
23968
 
23969
  def write(self, oprot):
23970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23972
      return
23973
    oprot.writeStructBegin('addEbayItem_args')
23974
    if self.ebayItem is not None:
23975
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
23976
      self.ebayItem.write(oprot)
23977
      oprot.writeFieldEnd()
23978
    oprot.writeFieldStop()
23979
    oprot.writeStructEnd()
23980
 
23981
  def validate(self):
23982
    return
23983
 
23984
 
23985
  def __repr__(self):
23986
    L = ['%s=%r' % (key, value)
23987
      for key, value in self.__dict__.iteritems()]
23988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23989
 
23990
  def __eq__(self, other):
23991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23992
 
23993
  def __ne__(self, other):
23994
    return not (self == other)
23995
 
23996
class addEbayItem_result:
23997
 
23998
  thrift_spec = (
23999
  )
24000
 
24001
  def read(self, iprot):
24002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24004
      return
24005
    iprot.readStructBegin()
24006
    while True:
24007
      (fname, ftype, fid) = iprot.readFieldBegin()
24008
      if ftype == TType.STOP:
24009
        break
24010
      else:
24011
        iprot.skip(ftype)
24012
      iprot.readFieldEnd()
24013
    iprot.readStructEnd()
24014
 
24015
  def write(self, oprot):
24016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24018
      return
24019
    oprot.writeStructBegin('addEbayItem_result')
24020
    oprot.writeFieldStop()
24021
    oprot.writeStructEnd()
24022
 
24023
  def validate(self):
24024
    return
24025
 
24026
 
24027
  def __repr__(self):
24028
    L = ['%s=%r' % (key, value)
24029
      for key, value in self.__dict__.iteritems()]
24030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24031
 
24032
  def __eq__(self, other):
24033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24034
 
24035
  def __ne__(self, other):
24036
    return not (self == other)
24037
 
24038
class getEbayItem_args:
24039
  """
24040
  Attributes:
24041
   - listingId
24042
  """
24043
 
24044
  thrift_spec = (
24045
    None, # 0
24046
    (1, TType.STRING, 'listingId', None, None, ), # 1
24047
  )
24048
 
24049
  def __init__(self, listingId=None,):
24050
    self.listingId = listingId
24051
 
24052
  def read(self, iprot):
24053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24055
      return
24056
    iprot.readStructBegin()
24057
    while True:
24058
      (fname, ftype, fid) = iprot.readFieldBegin()
24059
      if ftype == TType.STOP:
24060
        break
24061
      if fid == 1:
24062
        if ftype == TType.STRING:
24063
          self.listingId = iprot.readString();
24064
        else:
24065
          iprot.skip(ftype)
24066
      else:
24067
        iprot.skip(ftype)
24068
      iprot.readFieldEnd()
24069
    iprot.readStructEnd()
24070
 
24071
  def write(self, oprot):
24072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24074
      return
24075
    oprot.writeStructBegin('getEbayItem_args')
24076
    if self.listingId is not None:
24077
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
24078
      oprot.writeString(self.listingId)
24079
      oprot.writeFieldEnd()
24080
    oprot.writeFieldStop()
24081
    oprot.writeStructEnd()
24082
 
24083
  def validate(self):
24084
    return
24085
 
24086
 
24087
  def __repr__(self):
24088
    L = ['%s=%r' % (key, value)
24089
      for key, value in self.__dict__.iteritems()]
24090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24091
 
24092
  def __eq__(self, other):
24093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24094
 
24095
  def __ne__(self, other):
24096
    return not (self == other)
24097
 
24098
class getEbayItem_result:
24099
  """
24100
  Attributes:
24101
   - success
24102
  """
24103
 
24104
  thrift_spec = (
24105
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
24106
  )
24107
 
24108
  def __init__(self, success=None,):
24109
    self.success = success
24110
 
24111
  def read(self, iprot):
24112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24114
      return
24115
    iprot.readStructBegin()
24116
    while True:
24117
      (fname, ftype, fid) = iprot.readFieldBegin()
24118
      if ftype == TType.STOP:
24119
        break
24120
      if fid == 0:
24121
        if ftype == TType.STRUCT:
24122
          self.success = EbayItem()
24123
          self.success.read(iprot)
24124
        else:
24125
          iprot.skip(ftype)
24126
      else:
24127
        iprot.skip(ftype)
24128
      iprot.readFieldEnd()
24129
    iprot.readStructEnd()
24130
 
24131
  def write(self, oprot):
24132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24134
      return
24135
    oprot.writeStructBegin('getEbayItem_result')
24136
    if self.success is not None:
24137
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24138
      self.success.write(oprot)
24139
      oprot.writeFieldEnd()
24140
    oprot.writeFieldStop()
24141
    oprot.writeStructEnd()
24142
 
24143
  def validate(self):
24144
    return
24145
 
24146
 
24147
  def __repr__(self):
24148
    L = ['%s=%r' % (key, value)
24149
      for key, value in self.__dict__.iteritems()]
24150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24151
 
24152
  def __eq__(self, other):
24153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24154
 
24155
  def __ne__(self, other):
24156
    return not (self == other)
24157
 
24158
class updateEbayItem_args:
24159
  """
24160
  Attributes:
24161
   - ebayItem
24162
  """
24163
 
24164
  thrift_spec = (
24165
    None, # 0
24166
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24167
  )
24168
 
24169
  def __init__(self, ebayItem=None,):
24170
    self.ebayItem = ebayItem
24171
 
24172
  def read(self, iprot):
24173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24175
      return
24176
    iprot.readStructBegin()
24177
    while True:
24178
      (fname, ftype, fid) = iprot.readFieldBegin()
24179
      if ftype == TType.STOP:
24180
        break
24181
      if fid == 1:
24182
        if ftype == TType.STRUCT:
24183
          self.ebayItem = EbayItem()
24184
          self.ebayItem.read(iprot)
24185
        else:
24186
          iprot.skip(ftype)
24187
      else:
24188
        iprot.skip(ftype)
24189
      iprot.readFieldEnd()
24190
    iprot.readStructEnd()
24191
 
24192
  def write(self, oprot):
24193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24195
      return
24196
    oprot.writeStructBegin('updateEbayItem_args')
24197
    if self.ebayItem is not None:
24198
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24199
      self.ebayItem.write(oprot)
24200
      oprot.writeFieldEnd()
24201
    oprot.writeFieldStop()
24202
    oprot.writeStructEnd()
24203
 
24204
  def validate(self):
24205
    return
24206
 
24207
 
24208
  def __repr__(self):
24209
    L = ['%s=%r' % (key, value)
24210
      for key, value in self.__dict__.iteritems()]
24211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24212
 
24213
  def __eq__(self, other):
24214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24215
 
24216
  def __ne__(self, other):
24217
    return not (self == other)
24218
 
24219
class updateEbayItem_result:
24220
 
24221
  thrift_spec = (
24222
  )
24223
 
24224
  def read(self, iprot):
24225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24227
      return
24228
    iprot.readStructBegin()
24229
    while True:
24230
      (fname, ftype, fid) = iprot.readFieldBegin()
24231
      if ftype == TType.STOP:
24232
        break
24233
      else:
24234
        iprot.skip(ftype)
24235
      iprot.readFieldEnd()
24236
    iprot.readStructEnd()
24237
 
24238
  def write(self, oprot):
24239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24241
      return
24242
    oprot.writeStructBegin('updateEbayItem_result')
24243
    oprot.writeFieldStop()
24244
    oprot.writeStructEnd()
24245
 
24246
  def validate(self):
24247
    return
24248
 
24249
 
24250
  def __repr__(self):
24251
    L = ['%s=%r' % (key, value)
24252
      for key, value in self.__dict__.iteritems()]
24253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24254
 
24255
  def __eq__(self, other):
24256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24257
 
24258
  def __ne__(self, other):
24259
    return not (self == other)
24260
 
8139 kshitij.so 24261
class getAmazonListedItems_args:
24262
  """
24263
  Attributes:
24264
   - offset
24265
   - limit
24266
  """
24267
 
24268
  thrift_spec = (
24269
    None, # 0
24270
    (1, TType.I64, 'offset', None, None, ), # 1
24271
    (2, TType.I64, 'limit', None, None, ), # 2
24272
  )
24273
 
24274
  def __init__(self, offset=None, limit=None,):
24275
    self.offset = offset
24276
    self.limit = limit
24277
 
24278
  def read(self, iprot):
24279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24281
      return
24282
    iprot.readStructBegin()
24283
    while True:
24284
      (fname, ftype, fid) = iprot.readFieldBegin()
24285
      if ftype == TType.STOP:
24286
        break
24287
      if fid == 1:
24288
        if ftype == TType.I64:
24289
          self.offset = iprot.readI64();
24290
        else:
24291
          iprot.skip(ftype)
24292
      elif fid == 2:
24293
        if ftype == TType.I64:
24294
          self.limit = iprot.readI64();
24295
        else:
24296
          iprot.skip(ftype)
24297
      else:
24298
        iprot.skip(ftype)
24299
      iprot.readFieldEnd()
24300
    iprot.readStructEnd()
24301
 
24302
  def write(self, oprot):
24303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24305
      return
24306
    oprot.writeStructBegin('getAmazonListedItems_args')
24307
    if self.offset is not None:
24308
      oprot.writeFieldBegin('offset', TType.I64, 1)
24309
      oprot.writeI64(self.offset)
24310
      oprot.writeFieldEnd()
24311
    if self.limit is not None:
24312
      oprot.writeFieldBegin('limit', TType.I64, 2)
24313
      oprot.writeI64(self.limit)
24314
      oprot.writeFieldEnd()
24315
    oprot.writeFieldStop()
24316
    oprot.writeStructEnd()
24317
 
24318
  def validate(self):
24319
    return
24320
 
24321
 
24322
  def __repr__(self):
24323
    L = ['%s=%r' % (key, value)
24324
      for key, value in self.__dict__.iteritems()]
24325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24326
 
24327
  def __eq__(self, other):
24328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24329
 
24330
  def __ne__(self, other):
24331
    return not (self == other)
24332
 
24333
class getAmazonListedItems_result:
24334
  """
24335
  Attributes:
24336
   - success
24337
  """
24338
 
24339
  thrift_spec = (
24340
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24341
  )
24342
 
24343
  def __init__(self, success=None,):
24344
    self.success = success
24345
 
24346
  def read(self, iprot):
24347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24349
      return
24350
    iprot.readStructBegin()
24351
    while True:
24352
      (fname, ftype, fid) = iprot.readFieldBegin()
24353
      if ftype == TType.STOP:
24354
        break
24355
      if fid == 0:
24356
        if ftype == TType.LIST:
24357
          self.success = []
12567 amit.gupta 24358
          (_etype486, _size483) = iprot.readListBegin()
24359
          for _i487 in xrange(_size483):
24360
            _elem488 = Amazonlisted()
24361
            _elem488.read(iprot)
24362
            self.success.append(_elem488)
8139 kshitij.so 24363
          iprot.readListEnd()
24364
        else:
24365
          iprot.skip(ftype)
24366
      else:
24367
        iprot.skip(ftype)
24368
      iprot.readFieldEnd()
24369
    iprot.readStructEnd()
24370
 
24371
  def write(self, oprot):
24372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24374
      return
24375
    oprot.writeStructBegin('getAmazonListedItems_result')
24376
    if self.success is not None:
24377
      oprot.writeFieldBegin('success', TType.LIST, 0)
24378
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24379
      for iter489 in self.success:
24380
        iter489.write(oprot)
8139 kshitij.so 24381
      oprot.writeListEnd()
24382
      oprot.writeFieldEnd()
24383
    oprot.writeFieldStop()
24384
    oprot.writeStructEnd()
24385
 
24386
  def validate(self):
24387
    return
24388
 
24389
 
24390
  def __repr__(self):
24391
    L = ['%s=%r' % (key, value)
24392
      for key, value in self.__dict__.iteritems()]
24393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24394
 
24395
  def __eq__(self, other):
24396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24397
 
24398
  def __ne__(self, other):
24399
    return not (self == other)
8168 kshitij.so 24400
 
24401
class updateAmazonAttributesInBulk_args:
24402
  """
24403
  Attributes:
24404
   - amazonlisted
24405
  """
24406
 
24407
  thrift_spec = (
24408
    None, # 0
24409
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24410
  )
24411
 
24412
  def __init__(self, amazonlisted=None,):
24413
    self.amazonlisted = amazonlisted
24414
 
24415
  def read(self, iprot):
24416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24418
      return
24419
    iprot.readStructBegin()
24420
    while True:
24421
      (fname, ftype, fid) = iprot.readFieldBegin()
24422
      if ftype == TType.STOP:
24423
        break
24424
      if fid == 1:
24425
        if ftype == TType.MAP:
24426
          self.amazonlisted = {}
12567 amit.gupta 24427
          (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() 
24428
          for _i494 in xrange(_size490):
24429
            _key495 = iprot.readI64();
24430
            _val496 = Amazonlisted()
24431
            _val496.read(iprot)
24432
            self.amazonlisted[_key495] = _val496
8168 kshitij.so 24433
          iprot.readMapEnd()
24434
        else:
24435
          iprot.skip(ftype)
24436
      else:
24437
        iprot.skip(ftype)
24438
      iprot.readFieldEnd()
24439
    iprot.readStructEnd()
24440
 
24441
  def write(self, oprot):
24442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24444
      return
24445
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24446
    if self.amazonlisted is not None:
24447
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24448
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
12567 amit.gupta 24449
      for kiter497,viter498 in self.amazonlisted.items():
24450
        oprot.writeI64(kiter497)
24451
        viter498.write(oprot)
8168 kshitij.so 24452
      oprot.writeMapEnd()
24453
      oprot.writeFieldEnd()
24454
    oprot.writeFieldStop()
24455
    oprot.writeStructEnd()
24456
 
24457
  def validate(self):
24458
    return
24459
 
24460
 
24461
  def __repr__(self):
24462
    L = ['%s=%r' % (key, value)
24463
      for key, value in self.__dict__.iteritems()]
24464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24465
 
24466
  def __eq__(self, other):
24467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24468
 
24469
  def __ne__(self, other):
24470
    return not (self == other)
24471
 
24472
class updateAmazonAttributesInBulk_result:
24473
  """
24474
  Attributes:
24475
   - success
24476
  """
24477
 
24478
  thrift_spec = (
24479
    (0, TType.BOOL, 'success', None, None, ), # 0
24480
  )
24481
 
24482
  def __init__(self, success=None,):
24483
    self.success = success
24484
 
24485
  def read(self, iprot):
24486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24488
      return
24489
    iprot.readStructBegin()
24490
    while True:
24491
      (fname, ftype, fid) = iprot.readFieldBegin()
24492
      if ftype == TType.STOP:
24493
        break
24494
      if fid == 0:
24495
        if ftype == TType.BOOL:
24496
          self.success = iprot.readBool();
24497
        else:
24498
          iprot.skip(ftype)
24499
      else:
24500
        iprot.skip(ftype)
24501
      iprot.readFieldEnd()
24502
    iprot.readStructEnd()
24503
 
24504
  def write(self, oprot):
24505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24507
      return
24508
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24509
    if self.success is not None:
24510
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24511
      oprot.writeBool(self.success)
24512
      oprot.writeFieldEnd()
24513
    oprot.writeFieldStop()
24514
    oprot.writeStructEnd()
24515
 
24516
  def validate(self):
24517
    return
24518
 
24519
 
24520
  def __repr__(self):
24521
    L = ['%s=%r' % (key, value)
24522
      for key, value in self.__dict__.iteritems()]
24523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24524
 
24525
  def __eq__(self, other):
24526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24527
 
24528
  def __ne__(self, other):
24529
    return not (self == other)
8379 vikram.rag 24530
 
24531
class getAllItemstoListOnFba_args:
24532
 
24533
  thrift_spec = (
24534
  )
24535
 
24536
  def read(self, iprot):
24537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24539
      return
24540
    iprot.readStructBegin()
24541
    while True:
24542
      (fname, ftype, fid) = iprot.readFieldBegin()
24543
      if ftype == TType.STOP:
24544
        break
24545
      else:
24546
        iprot.skip(ftype)
24547
      iprot.readFieldEnd()
24548
    iprot.readStructEnd()
24549
 
24550
  def write(self, oprot):
24551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24553
      return
24554
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24555
    oprot.writeFieldStop()
24556
    oprot.writeStructEnd()
24557
 
24558
  def validate(self):
24559
    return
24560
 
24561
 
24562
  def __repr__(self):
24563
    L = ['%s=%r' % (key, value)
24564
      for key, value in self.__dict__.iteritems()]
24565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24566
 
24567
  def __eq__(self, other):
24568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24569
 
24570
  def __ne__(self, other):
24571
    return not (self == other)
24572
 
24573
class getAllItemstoListOnFba_result:
24574
  """
24575
  Attributes:
24576
   - success
24577
  """
24578
 
24579
  thrift_spec = (
24580
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24581
  )
24582
 
24583
  def __init__(self, success=None,):
24584
    self.success = success
24585
 
24586
  def read(self, iprot):
24587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24589
      return
24590
    iprot.readStructBegin()
24591
    while True:
24592
      (fname, ftype, fid) = iprot.readFieldBegin()
24593
      if ftype == TType.STOP:
24594
        break
24595
      if fid == 0:
24596
        if ftype == TType.LIST:
24597
          self.success = []
12567 amit.gupta 24598
          (_etype502, _size499) = iprot.readListBegin()
24599
          for _i503 in xrange(_size499):
24600
            _elem504 = Amazonlisted()
24601
            _elem504.read(iprot)
24602
            self.success.append(_elem504)
8379 vikram.rag 24603
          iprot.readListEnd()
24604
        else:
24605
          iprot.skip(ftype)
24606
      else:
24607
        iprot.skip(ftype)
24608
      iprot.readFieldEnd()
24609
    iprot.readStructEnd()
24610
 
24611
  def write(self, oprot):
24612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24614
      return
24615
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24616
    if self.success is not None:
24617
      oprot.writeFieldBegin('success', TType.LIST, 0)
24618
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24619
      for iter505 in self.success:
24620
        iter505.write(oprot)
8379 vikram.rag 24621
      oprot.writeListEnd()
24622
      oprot.writeFieldEnd()
24623
    oprot.writeFieldStop()
24624
    oprot.writeStructEnd()
24625
 
24626
  def validate(self):
24627
    return
24628
 
24629
 
24630
  def __repr__(self):
24631
    L = ['%s=%r' % (key, value)
24632
      for key, value in self.__dict__.iteritems()]
24633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24634
 
24635
  def __eq__(self, other):
24636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24637
 
24638
  def __ne__(self, other):
24639
    return not (self == other)
24640
 
24641
class getAllItemstoListOnNonFba_args:
24642
 
24643
  thrift_spec = (
24644
  )
24645
 
24646
  def read(self, iprot):
24647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24649
      return
24650
    iprot.readStructBegin()
24651
    while True:
24652
      (fname, ftype, fid) = iprot.readFieldBegin()
24653
      if ftype == TType.STOP:
24654
        break
24655
      else:
24656
        iprot.skip(ftype)
24657
      iprot.readFieldEnd()
24658
    iprot.readStructEnd()
24659
 
24660
  def write(self, oprot):
24661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24663
      return
24664
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24665
    oprot.writeFieldStop()
24666
    oprot.writeStructEnd()
24667
 
24668
  def validate(self):
24669
    return
24670
 
24671
 
24672
  def __repr__(self):
24673
    L = ['%s=%r' % (key, value)
24674
      for key, value in self.__dict__.iteritems()]
24675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24676
 
24677
  def __eq__(self, other):
24678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24679
 
24680
  def __ne__(self, other):
24681
    return not (self == other)
24682
 
24683
class getAllItemstoListOnNonFba_result:
24684
  """
24685
  Attributes:
24686
   - success
24687
  """
24688
 
24689
  thrift_spec = (
24690
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24691
  )
24692
 
24693
  def __init__(self, success=None,):
24694
    self.success = success
24695
 
24696
  def read(self, iprot):
24697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24699
      return
24700
    iprot.readStructBegin()
24701
    while True:
24702
      (fname, ftype, fid) = iprot.readFieldBegin()
24703
      if ftype == TType.STOP:
24704
        break
24705
      if fid == 0:
24706
        if ftype == TType.LIST:
24707
          self.success = []
12567 amit.gupta 24708
          (_etype509, _size506) = iprot.readListBegin()
24709
          for _i510 in xrange(_size506):
24710
            _elem511 = Amazonlisted()
24711
            _elem511.read(iprot)
24712
            self.success.append(_elem511)
8379 vikram.rag 24713
          iprot.readListEnd()
24714
        else:
24715
          iprot.skip(ftype)
24716
      else:
24717
        iprot.skip(ftype)
24718
      iprot.readFieldEnd()
24719
    iprot.readStructEnd()
24720
 
24721
  def write(self, oprot):
24722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24724
      return
24725
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24726
    if self.success is not None:
24727
      oprot.writeFieldBegin('success', TType.LIST, 0)
24728
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24729
      for iter512 in self.success:
24730
        iter512.write(oprot)
8379 vikram.rag 24731
      oprot.writeListEnd()
24732
      oprot.writeFieldEnd()
24733
    oprot.writeFieldStop()
24734
    oprot.writeStructEnd()
24735
 
24736
  def validate(self):
24737
    return
24738
 
24739
 
24740
  def __repr__(self):
24741
    L = ['%s=%r' % (key, value)
24742
      for key, value in self.__dict__.iteritems()]
24743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24744
 
24745
  def __eq__(self, other):
24746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24747
 
24748
  def __ne__(self, other):
24749
    return not (self == other)
8616 vikram.rag 24750
 
9242 kshitij.so 24751
class updateAsin_args:
24752
  """
24753
  Attributes:
24754
   - item
24755
  """
8616 vikram.rag 24756
 
24757
  thrift_spec = (
9242 kshitij.so 24758
    None, # 0
24759
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 24760
  )
24761
 
9242 kshitij.so 24762
  def __init__(self, item=None,):
24763
    self.item = item
24764
 
8616 vikram.rag 24765
  def read(self, iprot):
24766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24768
      return
24769
    iprot.readStructBegin()
24770
    while True:
24771
      (fname, ftype, fid) = iprot.readFieldBegin()
24772
      if ftype == TType.STOP:
24773
        break
9242 kshitij.so 24774
      if fid == 1:
24775
        if ftype == TType.MAP:
24776
          self.item = {}
12567 amit.gupta 24777
          (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() 
24778
          for _i517 in xrange(_size513):
24779
            _key518 = iprot.readI64();
24780
            _val519 = Item()
24781
            _val519.read(iprot)
24782
            self.item[_key518] = _val519
9242 kshitij.so 24783
          iprot.readMapEnd()
24784
        else:
24785
          iprot.skip(ftype)
8616 vikram.rag 24786
      else:
24787
        iprot.skip(ftype)
24788
      iprot.readFieldEnd()
24789
    iprot.readStructEnd()
24790
 
24791
  def write(self, oprot):
24792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24794
      return
9242 kshitij.so 24795
    oprot.writeStructBegin('updateAsin_args')
24796
    if self.item is not None:
24797
      oprot.writeFieldBegin('item', TType.MAP, 1)
24798
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
12567 amit.gupta 24799
      for kiter520,viter521 in self.item.items():
24800
        oprot.writeI64(kiter520)
24801
        viter521.write(oprot)
9242 kshitij.so 24802
      oprot.writeMapEnd()
24803
      oprot.writeFieldEnd()
8616 vikram.rag 24804
    oprot.writeFieldStop()
24805
    oprot.writeStructEnd()
24806
 
24807
  def validate(self):
24808
    return
24809
 
24810
 
24811
  def __repr__(self):
24812
    L = ['%s=%r' % (key, value)
24813
      for key, value in self.__dict__.iteritems()]
24814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24815
 
24816
  def __eq__(self, other):
24817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24818
 
24819
  def __ne__(self, other):
24820
    return not (self == other)
24821
 
9242 kshitij.so 24822
class updateAsin_result:
8616 vikram.rag 24823
 
24824
  thrift_spec = (
24825
  )
24826
 
24827
  def read(self, iprot):
24828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24830
      return
24831
    iprot.readStructBegin()
24832
    while True:
24833
      (fname, ftype, fid) = iprot.readFieldBegin()
24834
      if ftype == TType.STOP:
24835
        break
24836
      else:
24837
        iprot.skip(ftype)
24838
      iprot.readFieldEnd()
24839
    iprot.readStructEnd()
24840
 
24841
  def write(self, oprot):
24842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24844
      return
9242 kshitij.so 24845
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 24846
    oprot.writeFieldStop()
24847
    oprot.writeStructEnd()
24848
 
24849
  def validate(self):
24850
    return
24851
 
24852
 
24853
  def __repr__(self):
24854
    L = ['%s=%r' % (key, value)
24855
      for key, value in self.__dict__.iteritems()]
24856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24857
 
24858
  def __eq__(self, other):
24859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24860
 
24861
  def __ne__(self, other):
24862
    return not (self == other)
8619 kshitij.so 24863
 
9242 kshitij.so 24864
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 24865
  """
24866
  Attributes:
9242 kshitij.so 24867
   - snapdealitem
8619 kshitij.so 24868
  """
24869
 
9242 kshitij.so 24870
  thrift_spec = None
24871
  def __init__(self, snapdealitem=None,):
24872
    self.snapdealitem = snapdealitem
8619 kshitij.so 24873
 
24874
  def read(self, iprot):
24875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24877
      return
24878
    iprot.readStructBegin()
24879
    while True:
24880
      (fname, ftype, fid) = iprot.readFieldBegin()
24881
      if ftype == TType.STOP:
24882
        break
9242 kshitij.so 24883
      if fid == -1:
24884
        if ftype == TType.STRUCT:
24885
          self.snapdealitem = SnapdealItem()
24886
          self.snapdealitem.read(iprot)
8619 kshitij.so 24887
        else:
24888
          iprot.skip(ftype)
24889
      else:
24890
        iprot.skip(ftype)
24891
      iprot.readFieldEnd()
24892
    iprot.readStructEnd()
24893
 
24894
  def write(self, oprot):
24895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24897
      return
9242 kshitij.so 24898
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
24899
    if self.snapdealitem is not None:
24900
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
24901
      self.snapdealitem.write(oprot)
8619 kshitij.so 24902
      oprot.writeFieldEnd()
24903
    oprot.writeFieldStop()
24904
    oprot.writeStructEnd()
24905
 
24906
  def validate(self):
24907
    return
24908
 
24909
 
24910
  def __repr__(self):
24911
    L = ['%s=%r' % (key, value)
24912
      for key, value in self.__dict__.iteritems()]
24913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24914
 
24915
  def __eq__(self, other):
24916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24917
 
24918
  def __ne__(self, other):
24919
    return not (self == other)
24920
 
9242 kshitij.so 24921
class addOrUpdateSnapdealItem_result:
24922
  """
24923
  Attributes:
24924
   - success
24925
  """
8619 kshitij.so 24926
 
24927
  thrift_spec = (
9242 kshitij.so 24928
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 24929
  )
24930
 
9242 kshitij.so 24931
  def __init__(self, success=None,):
24932
    self.success = success
24933
 
8619 kshitij.so 24934
  def read(self, iprot):
24935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24937
      return
24938
    iprot.readStructBegin()
24939
    while True:
24940
      (fname, ftype, fid) = iprot.readFieldBegin()
24941
      if ftype == TType.STOP:
24942
        break
9242 kshitij.so 24943
      if fid == 0:
24944
        if ftype == TType.BOOL:
24945
          self.success = iprot.readBool();
24946
        else:
24947
          iprot.skip(ftype)
8619 kshitij.so 24948
      else:
24949
        iprot.skip(ftype)
24950
      iprot.readFieldEnd()
24951
    iprot.readStructEnd()
24952
 
24953
  def write(self, oprot):
24954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24956
      return
9242 kshitij.so 24957
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
24958
    if self.success is not None:
24959
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24960
      oprot.writeBool(self.success)
24961
      oprot.writeFieldEnd()
8619 kshitij.so 24962
    oprot.writeFieldStop()
24963
    oprot.writeStructEnd()
24964
 
24965
  def validate(self):
24966
    return
24967
 
24968
 
24969
  def __repr__(self):
24970
    L = ['%s=%r' % (key, value)
24971
      for key, value in self.__dict__.iteritems()]
24972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24973
 
24974
  def __eq__(self, other):
24975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24976
 
24977
  def __ne__(self, other):
24978
    return not (self == other)
8739 vikram.rag 24979
 
9242 kshitij.so 24980
class getSnapdealItem_args:
8739 vikram.rag 24981
  """
24982
  Attributes:
9242 kshitij.so 24983
   - item_id
8739 vikram.rag 24984
  """
24985
 
9242 kshitij.so 24986
  thrift_spec = (
24987
    None, # 0
24988
    (1, TType.I64, 'item_id', None, None, ), # 1
24989
  )
8739 vikram.rag 24990
 
9242 kshitij.so 24991
  def __init__(self, item_id=None,):
24992
    self.item_id = item_id
24993
 
8739 vikram.rag 24994
  def read(self, iprot):
24995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24997
      return
24998
    iprot.readStructBegin()
24999
    while True:
25000
      (fname, ftype, fid) = iprot.readFieldBegin()
25001
      if ftype == TType.STOP:
25002
        break
9242 kshitij.so 25003
      if fid == 1:
25004
        if ftype == TType.I64:
25005
          self.item_id = iprot.readI64();
8739 vikram.rag 25006
        else:
25007
          iprot.skip(ftype)
25008
      else:
25009
        iprot.skip(ftype)
25010
      iprot.readFieldEnd()
25011
    iprot.readStructEnd()
25012
 
25013
  def write(self, oprot):
25014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25016
      return
9242 kshitij.so 25017
    oprot.writeStructBegin('getSnapdealItem_args')
25018
    if self.item_id is not None:
25019
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25020
      oprot.writeI64(self.item_id)
8739 vikram.rag 25021
      oprot.writeFieldEnd()
25022
    oprot.writeFieldStop()
25023
    oprot.writeStructEnd()
25024
 
25025
  def validate(self):
25026
    return
25027
 
25028
 
25029
  def __repr__(self):
25030
    L = ['%s=%r' % (key, value)
25031
      for key, value in self.__dict__.iteritems()]
25032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25033
 
25034
  def __eq__(self, other):
25035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25036
 
25037
  def __ne__(self, other):
25038
    return not (self == other)
25039
 
9242 kshitij.so 25040
class getSnapdealItem_result:
8739 vikram.rag 25041
  """
25042
  Attributes:
25043
   - success
25044
  """
25045
 
25046
  thrift_spec = (
9242 kshitij.so 25047
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 25048
  )
25049
 
25050
  def __init__(self, success=None,):
25051
    self.success = success
25052
 
25053
  def read(self, iprot):
25054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25056
      return
25057
    iprot.readStructBegin()
25058
    while True:
25059
      (fname, ftype, fid) = iprot.readFieldBegin()
25060
      if ftype == TType.STOP:
25061
        break
25062
      if fid == 0:
9242 kshitij.so 25063
        if ftype == TType.STRUCT:
25064
          self.success = SnapdealItem()
25065
          self.success.read(iprot)
8739 vikram.rag 25066
        else:
25067
          iprot.skip(ftype)
25068
      else:
25069
        iprot.skip(ftype)
25070
      iprot.readFieldEnd()
25071
    iprot.readStructEnd()
25072
 
25073
  def write(self, oprot):
25074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25076
      return
9242 kshitij.so 25077
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 25078
    if self.success is not None:
9242 kshitij.so 25079
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25080
      self.success.write(oprot)
8739 vikram.rag 25081
      oprot.writeFieldEnd()
25082
    oprot.writeFieldStop()
25083
    oprot.writeStructEnd()
25084
 
25085
  def validate(self):
25086
    return
25087
 
25088
 
25089
  def __repr__(self):
25090
    L = ['%s=%r' % (key, value)
25091
      for key, value in self.__dict__.iteritems()]
25092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25093
 
25094
  def __eq__(self, other):
25095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25096
 
25097
  def __ne__(self, other):
25098
    return not (self == other)
25099
 
9242 kshitij.so 25100
class getSnapdealItemDetails_args:
8739 vikram.rag 25101
  """
25102
  Attributes:
25103
   - item_id
25104
  """
25105
 
25106
  thrift_spec = (
25107
    None, # 0
25108
    (1, TType.I64, 'item_id', None, None, ), # 1
25109
  )
25110
 
25111
  def __init__(self, item_id=None,):
25112
    self.item_id = item_id
25113
 
25114
  def read(self, iprot):
25115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25117
      return
25118
    iprot.readStructBegin()
25119
    while True:
25120
      (fname, ftype, fid) = iprot.readFieldBegin()
25121
      if ftype == TType.STOP:
25122
        break
25123
      if fid == 1:
25124
        if ftype == TType.I64:
25125
          self.item_id = iprot.readI64();
25126
        else:
25127
          iprot.skip(ftype)
25128
      else:
25129
        iprot.skip(ftype)
25130
      iprot.readFieldEnd()
25131
    iprot.readStructEnd()
25132
 
25133
  def write(self, oprot):
25134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25136
      return
9242 kshitij.so 25137
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25138
    if self.item_id is not None:
25139
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25140
      oprot.writeI64(self.item_id)
25141
      oprot.writeFieldEnd()
25142
    oprot.writeFieldStop()
25143
    oprot.writeStructEnd()
25144
 
25145
  def validate(self):
25146
    return
25147
 
25148
 
25149
  def __repr__(self):
25150
    L = ['%s=%r' % (key, value)
25151
      for key, value in self.__dict__.iteritems()]
25152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25153
 
25154
  def __eq__(self, other):
25155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25156
 
25157
  def __ne__(self, other):
25158
    return not (self == other)
25159
 
9242 kshitij.so 25160
class getSnapdealItemDetails_result:
8739 vikram.rag 25161
  """
25162
  Attributes:
25163
   - success
25164
  """
25165
 
25166
  thrift_spec = (
9242 kshitij.so 25167
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25168
  )
25169
 
25170
  def __init__(self, success=None,):
25171
    self.success = success
25172
 
25173
  def read(self, iprot):
25174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25176
      return
25177
    iprot.readStructBegin()
25178
    while True:
25179
      (fname, ftype, fid) = iprot.readFieldBegin()
25180
      if ftype == TType.STOP:
25181
        break
25182
      if fid == 0:
25183
        if ftype == TType.STRUCT:
9242 kshitij.so 25184
          self.success = SnapdealItemDetails()
8739 vikram.rag 25185
          self.success.read(iprot)
25186
        else:
25187
          iprot.skip(ftype)
25188
      else:
25189
        iprot.skip(ftype)
25190
      iprot.readFieldEnd()
25191
    iprot.readStructEnd()
25192
 
25193
  def write(self, oprot):
25194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25196
      return
9242 kshitij.so 25197
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25198
    if self.success is not None:
25199
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25200
      self.success.write(oprot)
25201
      oprot.writeFieldEnd()
25202
    oprot.writeFieldStop()
25203
    oprot.writeStructEnd()
25204
 
25205
  def validate(self):
25206
    return
25207
 
25208
 
25209
  def __repr__(self):
25210
    L = ['%s=%r' % (key, value)
25211
      for key, value in self.__dict__.iteritems()]
25212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25213
 
25214
  def __eq__(self, other):
25215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25216
 
25217
  def __ne__(self, other):
25218
    return not (self == other)
25219
 
25220
class getAllSnapdealItems_args:
25221
 
25222
  thrift_spec = (
25223
  )
25224
 
25225
  def read(self, iprot):
25226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25228
      return
25229
    iprot.readStructBegin()
25230
    while True:
25231
      (fname, ftype, fid) = iprot.readFieldBegin()
25232
      if ftype == TType.STOP:
25233
        break
25234
      else:
25235
        iprot.skip(ftype)
25236
      iprot.readFieldEnd()
25237
    iprot.readStructEnd()
25238
 
25239
  def write(self, oprot):
25240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25242
      return
25243
    oprot.writeStructBegin('getAllSnapdealItems_args')
25244
    oprot.writeFieldStop()
25245
    oprot.writeStructEnd()
25246
 
25247
  def validate(self):
25248
    return
25249
 
25250
 
25251
  def __repr__(self):
25252
    L = ['%s=%r' % (key, value)
25253
      for key, value in self.__dict__.iteritems()]
25254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25255
 
25256
  def __eq__(self, other):
25257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25258
 
25259
  def __ne__(self, other):
25260
    return not (self == other)
25261
 
25262
class getAllSnapdealItems_result:
25263
  """
25264
  Attributes:
25265
   - success
25266
  """
25267
 
25268
  thrift_spec = (
9242 kshitij.so 25269
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25270
  )
25271
 
25272
  def __init__(self, success=None,):
25273
    self.success = success
25274
 
25275
  def read(self, iprot):
25276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25278
      return
25279
    iprot.readStructBegin()
25280
    while True:
25281
      (fname, ftype, fid) = iprot.readFieldBegin()
25282
      if ftype == TType.STOP:
25283
        break
25284
      if fid == 0:
25285
        if ftype == TType.LIST:
25286
          self.success = []
12567 amit.gupta 25287
          (_etype525, _size522) = iprot.readListBegin()
25288
          for _i526 in xrange(_size522):
25289
            _elem527 = SnapdealItemDetails()
25290
            _elem527.read(iprot)
25291
            self.success.append(_elem527)
9242 kshitij.so 25292
          iprot.readListEnd()
25293
        else:
25294
          iprot.skip(ftype)
25295
      else:
25296
        iprot.skip(ftype)
25297
      iprot.readFieldEnd()
25298
    iprot.readStructEnd()
25299
 
25300
  def write(self, oprot):
25301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25303
      return
25304
    oprot.writeStructBegin('getAllSnapdealItems_result')
25305
    if self.success is not None:
25306
      oprot.writeFieldBegin('success', TType.LIST, 0)
25307
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25308
      for iter528 in self.success:
25309
        iter528.write(oprot)
9242 kshitij.so 25310
      oprot.writeListEnd()
25311
      oprot.writeFieldEnd()
25312
    oprot.writeFieldStop()
25313
    oprot.writeStructEnd()
25314
 
25315
  def validate(self):
25316
    return
25317
 
25318
 
25319
  def __repr__(self):
25320
    L = ['%s=%r' % (key, value)
25321
      for key, value in self.__dict__.iteritems()]
25322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25323
 
25324
  def __eq__(self, other):
25325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25326
 
25327
  def __ne__(self, other):
25328
    return not (self == other)
25329
 
25330
class getSnapdealItems_args:
25331
  """
25332
  Attributes:
25333
   - offset
25334
   - limit
25335
  """
25336
 
25337
  thrift_spec = (
25338
    None, # 0
25339
    (1, TType.I64, 'offset', None, None, ), # 1
25340
    (2, TType.I64, 'limit', None, None, ), # 2
25341
  )
25342
 
25343
  def __init__(self, offset=None, limit=None,):
25344
    self.offset = offset
25345
    self.limit = limit
25346
 
25347
  def read(self, iprot):
25348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25350
      return
25351
    iprot.readStructBegin()
25352
    while True:
25353
      (fname, ftype, fid) = iprot.readFieldBegin()
25354
      if ftype == TType.STOP:
25355
        break
25356
      if fid == 1:
25357
        if ftype == TType.I64:
25358
          self.offset = iprot.readI64();
25359
        else:
25360
          iprot.skip(ftype)
25361
      elif fid == 2:
25362
        if ftype == TType.I64:
25363
          self.limit = iprot.readI64();
25364
        else:
25365
          iprot.skip(ftype)
25366
      else:
25367
        iprot.skip(ftype)
25368
      iprot.readFieldEnd()
25369
    iprot.readStructEnd()
25370
 
25371
  def write(self, oprot):
25372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25374
      return
25375
    oprot.writeStructBegin('getSnapdealItems_args')
25376
    if self.offset is not None:
25377
      oprot.writeFieldBegin('offset', TType.I64, 1)
25378
      oprot.writeI64(self.offset)
25379
      oprot.writeFieldEnd()
25380
    if self.limit is not None:
25381
      oprot.writeFieldBegin('limit', TType.I64, 2)
25382
      oprot.writeI64(self.limit)
25383
      oprot.writeFieldEnd()
25384
    oprot.writeFieldStop()
25385
    oprot.writeStructEnd()
25386
 
25387
  def validate(self):
25388
    return
25389
 
25390
 
25391
  def __repr__(self):
25392
    L = ['%s=%r' % (key, value)
25393
      for key, value in self.__dict__.iteritems()]
25394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25395
 
25396
  def __eq__(self, other):
25397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25398
 
25399
  def __ne__(self, other):
25400
    return not (self == other)
25401
 
25402
class getSnapdealItems_result:
25403
  """
25404
  Attributes:
25405
   - success
25406
  """
25407
 
25408
  thrift_spec = (
25409
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25410
  )
25411
 
25412
  def __init__(self, success=None,):
25413
    self.success = success
25414
 
25415
  def read(self, iprot):
25416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25418
      return
25419
    iprot.readStructBegin()
25420
    while True:
25421
      (fname, ftype, fid) = iprot.readFieldBegin()
25422
      if ftype == TType.STOP:
25423
        break
25424
      if fid == 0:
25425
        if ftype == TType.LIST:
25426
          self.success = []
12567 amit.gupta 25427
          (_etype532, _size529) = iprot.readListBegin()
25428
          for _i533 in xrange(_size529):
25429
            _elem534 = SnapdealItemDetails()
25430
            _elem534.read(iprot)
25431
            self.success.append(_elem534)
8739 vikram.rag 25432
          iprot.readListEnd()
25433
        else:
25434
          iprot.skip(ftype)
25435
      else:
25436
        iprot.skip(ftype)
25437
      iprot.readFieldEnd()
25438
    iprot.readStructEnd()
25439
 
25440
  def write(self, oprot):
25441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25443
      return
9242 kshitij.so 25444
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25445
    if self.success is not None:
25446
      oprot.writeFieldBegin('success', TType.LIST, 0)
25447
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25448
      for iter535 in self.success:
25449
        iter535.write(oprot)
8739 vikram.rag 25450
      oprot.writeListEnd()
25451
      oprot.writeFieldEnd()
25452
    oprot.writeFieldStop()
25453
    oprot.writeStructEnd()
25454
 
25455
  def validate(self):
25456
    return
25457
 
25458
 
25459
  def __repr__(self):
25460
    L = ['%s=%r' % (key, value)
25461
      for key, value in self.__dict__.iteritems()]
25462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25463
 
25464
  def __eq__(self, other):
25465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25466
 
25467
  def __ne__(self, other):
25468
    return not (self == other)
9242 kshitij.so 25469
 
25470
class searchSnapdealItems_args:
25471
  """
25472
  Attributes:
25473
   - searchTerm
25474
   - offset
25475
   - limit
25476
  """
25477
 
25478
  thrift_spec = (
25479
    None, # 0
25480
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25481
    (2, TType.I64, 'offset', None, None, ), # 2
25482
    (3, TType.I64, 'limit', None, None, ), # 3
25483
  )
25484
 
25485
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25486
    self.searchTerm = searchTerm
25487
    self.offset = offset
25488
    self.limit = limit
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 == 1:
25500
        if ftype == TType.LIST:
25501
          self.searchTerm = []
12567 amit.gupta 25502
          (_etype539, _size536) = iprot.readListBegin()
25503
          for _i540 in xrange(_size536):
25504
            _elem541 = iprot.readString();
25505
            self.searchTerm.append(_elem541)
9242 kshitij.so 25506
          iprot.readListEnd()
25507
        else:
25508
          iprot.skip(ftype)
25509
      elif fid == 2:
25510
        if ftype == TType.I64:
25511
          self.offset = iprot.readI64();
25512
        else:
25513
          iprot.skip(ftype)
25514
      elif fid == 3:
25515
        if ftype == TType.I64:
25516
          self.limit = iprot.readI64();
25517
        else:
25518
          iprot.skip(ftype)
25519
      else:
25520
        iprot.skip(ftype)
25521
      iprot.readFieldEnd()
25522
    iprot.readStructEnd()
25523
 
25524
  def write(self, oprot):
25525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25527
      return
25528
    oprot.writeStructBegin('searchSnapdealItems_args')
25529
    if self.searchTerm is not None:
25530
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25531
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25532
      for iter542 in self.searchTerm:
25533
        oprot.writeString(iter542)
9242 kshitij.so 25534
      oprot.writeListEnd()
25535
      oprot.writeFieldEnd()
25536
    if self.offset is not None:
25537
      oprot.writeFieldBegin('offset', TType.I64, 2)
25538
      oprot.writeI64(self.offset)
25539
      oprot.writeFieldEnd()
25540
    if self.limit is not None:
25541
      oprot.writeFieldBegin('limit', TType.I64, 3)
25542
      oprot.writeI64(self.limit)
25543
      oprot.writeFieldEnd()
25544
    oprot.writeFieldStop()
25545
    oprot.writeStructEnd()
25546
 
25547
  def validate(self):
25548
    return
25549
 
25550
 
25551
  def __repr__(self):
25552
    L = ['%s=%r' % (key, value)
25553
      for key, value in self.__dict__.iteritems()]
25554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25555
 
25556
  def __eq__(self, other):
25557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25558
 
25559
  def __ne__(self, other):
25560
    return not (self == other)
25561
 
25562
class searchSnapdealItems_result:
25563
  """
25564
  Attributes:
25565
   - success
25566
  """
25567
 
25568
  thrift_spec = (
25569
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25570
  )
25571
 
25572
  def __init__(self, success=None,):
25573
    self.success = success
25574
 
25575
  def read(self, iprot):
25576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25578
      return
25579
    iprot.readStructBegin()
25580
    while True:
25581
      (fname, ftype, fid) = iprot.readFieldBegin()
25582
      if ftype == TType.STOP:
25583
        break
25584
      if fid == 0:
25585
        if ftype == TType.LIST:
25586
          self.success = []
12567 amit.gupta 25587
          (_etype546, _size543) = iprot.readListBegin()
25588
          for _i547 in xrange(_size543):
25589
            _elem548 = SnapdealItemDetails()
25590
            _elem548.read(iprot)
25591
            self.success.append(_elem548)
9242 kshitij.so 25592
          iprot.readListEnd()
25593
        else:
25594
          iprot.skip(ftype)
25595
      else:
25596
        iprot.skip(ftype)
25597
      iprot.readFieldEnd()
25598
    iprot.readStructEnd()
25599
 
25600
  def write(self, oprot):
25601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25603
      return
25604
    oprot.writeStructBegin('searchSnapdealItems_result')
25605
    if self.success is not None:
25606
      oprot.writeFieldBegin('success', TType.LIST, 0)
25607
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25608
      for iter549 in self.success:
25609
        iter549.write(oprot)
9242 kshitij.so 25610
      oprot.writeListEnd()
25611
      oprot.writeFieldEnd()
25612
    oprot.writeFieldStop()
25613
    oprot.writeStructEnd()
25614
 
25615
  def validate(self):
25616
    return
25617
 
25618
 
25619
  def __repr__(self):
25620
    L = ['%s=%r' % (key, value)
25621
      for key, value in self.__dict__.iteritems()]
25622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25623
 
25624
  def __eq__(self, other):
25625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25626
 
25627
  def __ne__(self, other):
25628
    return not (self == other)
25629
 
25630
class getCountForSnapdealItems_args:
25631
 
25632
  thrift_spec = (
25633
  )
25634
 
25635
  def read(self, iprot):
25636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25638
      return
25639
    iprot.readStructBegin()
25640
    while True:
25641
      (fname, ftype, fid) = iprot.readFieldBegin()
25642
      if ftype == TType.STOP:
25643
        break
25644
      else:
25645
        iprot.skip(ftype)
25646
      iprot.readFieldEnd()
25647
    iprot.readStructEnd()
25648
 
25649
  def write(self, oprot):
25650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25652
      return
25653
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25654
    oprot.writeFieldStop()
25655
    oprot.writeStructEnd()
25656
 
25657
  def validate(self):
25658
    return
25659
 
25660
 
25661
  def __repr__(self):
25662
    L = ['%s=%r' % (key, value)
25663
      for key, value in self.__dict__.iteritems()]
25664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25665
 
25666
  def __eq__(self, other):
25667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25668
 
25669
  def __ne__(self, other):
25670
    return not (self == other)
25671
 
25672
class getCountForSnapdealItems_result:
25673
  """
25674
  Attributes:
25675
   - success
25676
  """
25677
 
25678
  thrift_spec = (
25679
    (0, TType.I64, 'success', None, None, ), # 0
25680
  )
25681
 
25682
  def __init__(self, success=None,):
25683
    self.success = success
25684
 
25685
  def read(self, iprot):
25686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25688
      return
25689
    iprot.readStructBegin()
25690
    while True:
25691
      (fname, ftype, fid) = iprot.readFieldBegin()
25692
      if ftype == TType.STOP:
25693
        break
25694
      if fid == 0:
25695
        if ftype == TType.I64:
25696
          self.success = iprot.readI64();
25697
        else:
25698
          iprot.skip(ftype)
25699
      else:
25700
        iprot.skip(ftype)
25701
      iprot.readFieldEnd()
25702
    iprot.readStructEnd()
25703
 
25704
  def write(self, oprot):
25705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25707
      return
25708
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25709
    if self.success is not None:
25710
      oprot.writeFieldBegin('success', TType.I64, 0)
25711
      oprot.writeI64(self.success)
25712
      oprot.writeFieldEnd()
25713
    oprot.writeFieldStop()
25714
    oprot.writeStructEnd()
25715
 
25716
  def validate(self):
25717
    return
25718
 
25719
 
25720
  def __repr__(self):
25721
    L = ['%s=%r' % (key, value)
25722
      for key, value in self.__dict__.iteritems()]
25723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25724
 
25725
  def __eq__(self, other):
25726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25727
 
25728
  def __ne__(self, other):
25729
    return not (self == other)
25730
 
25731
class getSnapdealSearchResultCount_args:
25732
  """
25733
  Attributes:
25734
   - searchTerm
25735
  """
25736
 
25737
  thrift_spec = (
25738
    None, # 0
25739
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25740
  )
25741
 
25742
  def __init__(self, searchTerm=None,):
25743
    self.searchTerm = searchTerm
25744
 
25745
  def read(self, iprot):
25746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25748
      return
25749
    iprot.readStructBegin()
25750
    while True:
25751
      (fname, ftype, fid) = iprot.readFieldBegin()
25752
      if ftype == TType.STOP:
25753
        break
25754
      if fid == 1:
25755
        if ftype == TType.LIST:
25756
          self.searchTerm = []
12567 amit.gupta 25757
          (_etype553, _size550) = iprot.readListBegin()
25758
          for _i554 in xrange(_size550):
25759
            _elem555 = iprot.readString();
25760
            self.searchTerm.append(_elem555)
9242 kshitij.so 25761
          iprot.readListEnd()
25762
        else:
25763
          iprot.skip(ftype)
25764
      else:
25765
        iprot.skip(ftype)
25766
      iprot.readFieldEnd()
25767
    iprot.readStructEnd()
25768
 
25769
  def write(self, oprot):
25770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25772
      return
25773
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
25774
    if self.searchTerm is not None:
25775
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25776
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25777
      for iter556 in self.searchTerm:
25778
        oprot.writeString(iter556)
9242 kshitij.so 25779
      oprot.writeListEnd()
25780
      oprot.writeFieldEnd()
25781
    oprot.writeFieldStop()
25782
    oprot.writeStructEnd()
25783
 
25784
  def validate(self):
25785
    return
25786
 
25787
 
25788
  def __repr__(self):
25789
    L = ['%s=%r' % (key, value)
25790
      for key, value in self.__dict__.iteritems()]
25791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25792
 
25793
  def __eq__(self, other):
25794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25795
 
25796
  def __ne__(self, other):
25797
    return not (self == other)
25798
 
25799
class getSnapdealSearchResultCount_result:
25800
  """
25801
  Attributes:
25802
   - success
25803
  """
25804
 
25805
  thrift_spec = (
25806
    (0, TType.I64, 'success', None, None, ), # 0
25807
  )
25808
 
25809
  def __init__(self, success=None,):
25810
    self.success = success
25811
 
25812
  def read(self, iprot):
25813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25815
      return
25816
    iprot.readStructBegin()
25817
    while True:
25818
      (fname, ftype, fid) = iprot.readFieldBegin()
25819
      if ftype == TType.STOP:
25820
        break
25821
      if fid == 0:
25822
        if ftype == TType.I64:
25823
          self.success = iprot.readI64();
25824
        else:
25825
          iprot.skip(ftype)
25826
      else:
25827
        iprot.skip(ftype)
25828
      iprot.readFieldEnd()
25829
    iprot.readStructEnd()
25830
 
25831
  def write(self, oprot):
25832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25834
      return
25835
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
25836
    if self.success is not None:
25837
      oprot.writeFieldBegin('success', TType.I64, 0)
25838
      oprot.writeI64(self.success)
25839
      oprot.writeFieldEnd()
25840
    oprot.writeFieldStop()
25841
    oprot.writeStructEnd()
25842
 
25843
  def validate(self):
25844
    return
25845
 
25846
 
25847
  def __repr__(self):
25848
    L = ['%s=%r' % (key, value)
25849
      for key, value in self.__dict__.iteritems()]
25850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25851
 
25852
  def __eq__(self, other):
25853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25854
 
25855
  def __ne__(self, other):
25856
    return not (self == other)
9299 kshitij.so 25857
 
25858
class getPrefferedInsurerForItem_args:
25859
  """
25860
  Attributes:
25861
   - itemId
25862
   - insurerType
25863
  """
25864
 
25865
  thrift_spec = (
25866
    None, # 0
25867
    (1, TType.I64, 'itemId', None, None, ), # 1
25868
    (2, TType.I32, 'insurerType', None, None, ), # 2
25869
  )
25870
 
25871
  def __init__(self, itemId=None, insurerType=None,):
25872
    self.itemId = itemId
25873
    self.insurerType = insurerType
25874
 
25875
  def read(self, iprot):
25876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25878
      return
25879
    iprot.readStructBegin()
25880
    while True:
25881
      (fname, ftype, fid) = iprot.readFieldBegin()
25882
      if ftype == TType.STOP:
25883
        break
25884
      if fid == 1:
25885
        if ftype == TType.I64:
25886
          self.itemId = iprot.readI64();
25887
        else:
25888
          iprot.skip(ftype)
25889
      elif fid == 2:
25890
        if ftype == TType.I32:
25891
          self.insurerType = iprot.readI32();
25892
        else:
25893
          iprot.skip(ftype)
25894
      else:
25895
        iprot.skip(ftype)
25896
      iprot.readFieldEnd()
25897
    iprot.readStructEnd()
25898
 
25899
  def write(self, oprot):
25900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25902
      return
25903
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
25904
    if self.itemId is not None:
25905
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25906
      oprot.writeI64(self.itemId)
25907
      oprot.writeFieldEnd()
25908
    if self.insurerType is not None:
25909
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
25910
      oprot.writeI32(self.insurerType)
25911
      oprot.writeFieldEnd()
25912
    oprot.writeFieldStop()
25913
    oprot.writeStructEnd()
25914
 
25915
  def validate(self):
25916
    return
25917
 
25918
 
25919
  def __repr__(self):
25920
    L = ['%s=%r' % (key, value)
25921
      for key, value in self.__dict__.iteritems()]
25922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25923
 
25924
  def __eq__(self, other):
25925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25926
 
25927
  def __ne__(self, other):
25928
    return not (self == other)
25929
 
25930
class getPrefferedInsurerForItem_result:
25931
  """
25932
  Attributes:
25933
   - success
25934
  """
25935
 
25936
  thrift_spec = (
25937
    (0, TType.I64, 'success', None, None, ), # 0
25938
  )
25939
 
25940
  def __init__(self, success=None,):
25941
    self.success = success
25942
 
25943
  def read(self, iprot):
25944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25946
      return
25947
    iprot.readStructBegin()
25948
    while True:
25949
      (fname, ftype, fid) = iprot.readFieldBegin()
25950
      if ftype == TType.STOP:
25951
        break
25952
      if fid == 0:
25953
        if ftype == TType.I64:
25954
          self.success = iprot.readI64();
25955
        else:
25956
          iprot.skip(ftype)
25957
      else:
25958
        iprot.skip(ftype)
25959
      iprot.readFieldEnd()
25960
    iprot.readStructEnd()
25961
 
25962
  def write(self, oprot):
25963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25965
      return
25966
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
25967
    if self.success is not None:
25968
      oprot.writeFieldBegin('success', TType.I64, 0)
25969
      oprot.writeI64(self.success)
25970
      oprot.writeFieldEnd()
25971
    oprot.writeFieldStop()
25972
    oprot.writeStructEnd()
25973
 
25974
  def validate(self):
25975
    return
25976
 
25977
 
25978
  def __repr__(self):
25979
    L = ['%s=%r' % (key, value)
25980
      for key, value in self.__dict__.iteritems()]
25981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25982
 
25983
  def __eq__(self, other):
25984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25985
 
25986
  def __ne__(self, other):
25987
    return not (self == other)
9456 vikram.rag 25988
 
25989
class getSnapdealItembySkuAtSnapdeal_args:
25990
  """
25991
  Attributes:
25992
   - skuAtSnapdeal
25993
  """
25994
 
25995
  thrift_spec = None
25996
  def __init__(self, skuAtSnapdeal=None,):
25997
    self.skuAtSnapdeal = skuAtSnapdeal
25998
 
25999
  def read(self, iprot):
26000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26002
      return
26003
    iprot.readStructBegin()
26004
    while True:
26005
      (fname, ftype, fid) = iprot.readFieldBegin()
26006
      if ftype == TType.STOP:
26007
        break
26008
      if fid == -1:
26009
        if ftype == TType.STRING:
26010
          self.skuAtSnapdeal = iprot.readString();
26011
        else:
26012
          iprot.skip(ftype)
26013
      else:
26014
        iprot.skip(ftype)
26015
      iprot.readFieldEnd()
26016
    iprot.readStructEnd()
26017
 
26018
  def write(self, oprot):
26019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26021
      return
26022
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
26023
    if self.skuAtSnapdeal is not None:
26024
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
26025
      oprot.writeString(self.skuAtSnapdeal)
26026
      oprot.writeFieldEnd()
26027
    oprot.writeFieldStop()
26028
    oprot.writeStructEnd()
26029
 
26030
  def validate(self):
26031
    return
26032
 
26033
 
26034
  def __repr__(self):
26035
    L = ['%s=%r' % (key, value)
26036
      for key, value in self.__dict__.iteritems()]
26037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26038
 
26039
  def __eq__(self, other):
26040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26041
 
26042
  def __ne__(self, other):
26043
    return not (self == other)
26044
 
26045
class getSnapdealItembySkuAtSnapdeal_result:
26046
  """
26047
  Attributes:
26048
   - success
26049
  """
26050
 
26051
  thrift_spec = (
26052
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
26053
  )
26054
 
26055
  def __init__(self, success=None,):
26056
    self.success = success
26057
 
26058
  def read(self, iprot):
26059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26061
      return
26062
    iprot.readStructBegin()
26063
    while True:
26064
      (fname, ftype, fid) = iprot.readFieldBegin()
26065
      if ftype == TType.STOP:
26066
        break
26067
      if fid == 0:
26068
        if ftype == TType.STRUCT:
26069
          self.success = SnapdealItem()
26070
          self.success.read(iprot)
26071
        else:
26072
          iprot.skip(ftype)
26073
      else:
26074
        iprot.skip(ftype)
26075
      iprot.readFieldEnd()
26076
    iprot.readStructEnd()
26077
 
26078
  def write(self, oprot):
26079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26081
      return
26082
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
26083
    if self.success is not None:
26084
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26085
      self.success.write(oprot)
26086
      oprot.writeFieldEnd()
26087
    oprot.writeFieldStop()
26088
    oprot.writeStructEnd()
26089
 
26090
  def validate(self):
26091
    return
26092
 
26093
 
26094
  def __repr__(self):
26095
    L = ['%s=%r' % (key, value)
26096
      for key, value in self.__dict__.iteritems()]
26097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26098
 
26099
  def __eq__(self, other):
26100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26101
 
26102
  def __ne__(self, other):
26103
    return not (self == other)
9621 manish.sha 26104
 
26105
class getProductFeedSubmit_args:
26106
  """
26107
  Attributes:
26108
   - catalogItemId
26109
  """
26110
 
26111
  thrift_spec = (
26112
    None, # 0
26113
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26114
  )
26115
 
26116
  def __init__(self, catalogItemId=None,):
26117
    self.catalogItemId = catalogItemId
26118
 
26119
  def read(self, iprot):
26120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26122
      return
26123
    iprot.readStructBegin()
26124
    while True:
26125
      (fname, ftype, fid) = iprot.readFieldBegin()
26126
      if ftype == TType.STOP:
26127
        break
26128
      if fid == 1:
26129
        if ftype == TType.I64:
26130
          self.catalogItemId = iprot.readI64();
26131
        else:
26132
          iprot.skip(ftype)
26133
      else:
26134
        iprot.skip(ftype)
26135
      iprot.readFieldEnd()
26136
    iprot.readStructEnd()
26137
 
26138
  def write(self, oprot):
26139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26141
      return
26142
    oprot.writeStructBegin('getProductFeedSubmit_args')
26143
    if self.catalogItemId is not None:
26144
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26145
      oprot.writeI64(self.catalogItemId)
26146
      oprot.writeFieldEnd()
26147
    oprot.writeFieldStop()
26148
    oprot.writeStructEnd()
26149
 
26150
  def validate(self):
26151
    return
26152
 
26153
 
26154
  def __repr__(self):
26155
    L = ['%s=%r' % (key, value)
26156
      for key, value in self.__dict__.iteritems()]
26157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26158
 
26159
  def __eq__(self, other):
26160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26161
 
26162
  def __ne__(self, other):
26163
    return not (self == other)
26164
 
26165
class getProductFeedSubmit_result:
26166
  """
26167
  Attributes:
26168
   - success
26169
   - cex
26170
  """
26171
 
26172
  thrift_spec = (
26173
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26174
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26175
  )
26176
 
26177
  def __init__(self, success=None, cex=None,):
26178
    self.success = success
26179
    self.cex = cex
26180
 
26181
  def read(self, iprot):
26182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26184
      return
26185
    iprot.readStructBegin()
26186
    while True:
26187
      (fname, ftype, fid) = iprot.readFieldBegin()
26188
      if ftype == TType.STOP:
26189
        break
26190
      if fid == 0:
26191
        if ftype == TType.STRUCT:
26192
          self.success = ProductFeedSubmit()
26193
          self.success.read(iprot)
26194
        else:
26195
          iprot.skip(ftype)
26196
      elif fid == 1:
26197
        if ftype == TType.STRUCT:
26198
          self.cex = CatalogServiceException()
26199
          self.cex.read(iprot)
26200
        else:
26201
          iprot.skip(ftype)
26202
      else:
26203
        iprot.skip(ftype)
26204
      iprot.readFieldEnd()
26205
    iprot.readStructEnd()
26206
 
26207
  def write(self, oprot):
26208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26210
      return
26211
    oprot.writeStructBegin('getProductFeedSubmit_result')
26212
    if self.success is not None:
26213
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26214
      self.success.write(oprot)
26215
      oprot.writeFieldEnd()
26216
    if self.cex is not None:
26217
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26218
      self.cex.write(oprot)
26219
      oprot.writeFieldEnd()
26220
    oprot.writeFieldStop()
26221
    oprot.writeStructEnd()
26222
 
26223
  def validate(self):
26224
    return
26225
 
26226
 
26227
  def __repr__(self):
26228
    L = ['%s=%r' % (key, value)
26229
      for key, value in self.__dict__.iteritems()]
26230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26231
 
26232
  def __eq__(self, other):
26233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26234
 
26235
  def __ne__(self, other):
26236
    return not (self == other)
26237
 
26238
class addProductFeedSubmit_args:
26239
  """
26240
  Attributes:
26241
   - productFeedSubmit
26242
  """
26243
 
26244
  thrift_spec = (
26245
    None, # 0
26246
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26247
  )
26248
 
26249
  def __init__(self, productFeedSubmit=None,):
26250
    self.productFeedSubmit = productFeedSubmit
26251
 
26252
  def read(self, iprot):
26253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26255
      return
26256
    iprot.readStructBegin()
26257
    while True:
26258
      (fname, ftype, fid) = iprot.readFieldBegin()
26259
      if ftype == TType.STOP:
26260
        break
26261
      if fid == 1:
26262
        if ftype == TType.STRUCT:
26263
          self.productFeedSubmit = ProductFeedSubmit()
26264
          self.productFeedSubmit.read(iprot)
26265
        else:
26266
          iprot.skip(ftype)
26267
      else:
26268
        iprot.skip(ftype)
26269
      iprot.readFieldEnd()
26270
    iprot.readStructEnd()
26271
 
26272
  def write(self, oprot):
26273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26275
      return
26276
    oprot.writeStructBegin('addProductFeedSubmit_args')
26277
    if self.productFeedSubmit is not None:
26278
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26279
      self.productFeedSubmit.write(oprot)
26280
      oprot.writeFieldEnd()
26281
    oprot.writeFieldStop()
26282
    oprot.writeStructEnd()
26283
 
26284
  def validate(self):
26285
    return
26286
 
26287
 
26288
  def __repr__(self):
26289
    L = ['%s=%r' % (key, value)
26290
      for key, value in self.__dict__.iteritems()]
26291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26292
 
26293
  def __eq__(self, other):
26294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26295
 
26296
  def __ne__(self, other):
26297
    return not (self == other)
26298
 
26299
class addProductFeedSubmit_result:
26300
  """
26301
  Attributes:
26302
   - success
26303
   - cex
26304
  """
26305
 
26306
  thrift_spec = (
26307
    (0, TType.BOOL, 'success', None, None, ), # 0
26308
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26309
  )
26310
 
26311
  def __init__(self, success=None, cex=None,):
26312
    self.success = success
26313
    self.cex = cex
26314
 
26315
  def read(self, iprot):
26316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26318
      return
26319
    iprot.readStructBegin()
26320
    while True:
26321
      (fname, ftype, fid) = iprot.readFieldBegin()
26322
      if ftype == TType.STOP:
26323
        break
26324
      if fid == 0:
26325
        if ftype == TType.BOOL:
26326
          self.success = iprot.readBool();
26327
        else:
26328
          iprot.skip(ftype)
26329
      elif fid == 1:
26330
        if ftype == TType.STRUCT:
26331
          self.cex = CatalogServiceException()
26332
          self.cex.read(iprot)
26333
        else:
26334
          iprot.skip(ftype)
26335
      else:
26336
        iprot.skip(ftype)
26337
      iprot.readFieldEnd()
26338
    iprot.readStructEnd()
26339
 
26340
  def write(self, oprot):
26341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26343
      return
26344
    oprot.writeStructBegin('addProductFeedSubmit_result')
26345
    if self.success is not None:
26346
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26347
      oprot.writeBool(self.success)
26348
      oprot.writeFieldEnd()
26349
    if self.cex is not None:
26350
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26351
      self.cex.write(oprot)
26352
      oprot.writeFieldEnd()
26353
    oprot.writeFieldStop()
26354
    oprot.writeStructEnd()
26355
 
26356
  def validate(self):
26357
    return
26358
 
26359
 
26360
  def __repr__(self):
26361
    L = ['%s=%r' % (key, value)
26362
      for key, value in self.__dict__.iteritems()]
26363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26364
 
26365
  def __eq__(self, other):
26366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26367
 
26368
  def __ne__(self, other):
26369
    return not (self == other)
26370
 
26371
class updateProductFeedSubmit_args:
26372
  """
26373
  Attributes:
26374
   - productFeedSubmit
26375
  """
26376
 
26377
  thrift_spec = (
26378
    None, # 0
26379
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26380
  )
26381
 
26382
  def __init__(self, productFeedSubmit=None,):
26383
    self.productFeedSubmit = productFeedSubmit
26384
 
26385
  def read(self, iprot):
26386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26388
      return
26389
    iprot.readStructBegin()
26390
    while True:
26391
      (fname, ftype, fid) = iprot.readFieldBegin()
26392
      if ftype == TType.STOP:
26393
        break
26394
      if fid == 1:
26395
        if ftype == TType.STRUCT:
26396
          self.productFeedSubmit = ProductFeedSubmit()
26397
          self.productFeedSubmit.read(iprot)
26398
        else:
26399
          iprot.skip(ftype)
26400
      else:
26401
        iprot.skip(ftype)
26402
      iprot.readFieldEnd()
26403
    iprot.readStructEnd()
26404
 
26405
  def write(self, oprot):
26406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26408
      return
26409
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26410
    if self.productFeedSubmit is not None:
26411
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26412
      self.productFeedSubmit.write(oprot)
26413
      oprot.writeFieldEnd()
26414
    oprot.writeFieldStop()
26415
    oprot.writeStructEnd()
26416
 
26417
  def validate(self):
26418
    return
26419
 
26420
 
26421
  def __repr__(self):
26422
    L = ['%s=%r' % (key, value)
26423
      for key, value in self.__dict__.iteritems()]
26424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26425
 
26426
  def __eq__(self, other):
26427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26428
 
26429
  def __ne__(self, other):
26430
    return not (self == other)
26431
 
26432
class updateProductFeedSubmit_result:
26433
  """
26434
  Attributes:
26435
   - success
26436
   - cex
26437
  """
26438
 
26439
  thrift_spec = (
26440
    (0, TType.BOOL, 'success', None, None, ), # 0
26441
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26442
  )
26443
 
26444
  def __init__(self, success=None, cex=None,):
26445
    self.success = success
26446
    self.cex = cex
26447
 
26448
  def read(self, iprot):
26449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26451
      return
26452
    iprot.readStructBegin()
26453
    while True:
26454
      (fname, ftype, fid) = iprot.readFieldBegin()
26455
      if ftype == TType.STOP:
26456
        break
26457
      if fid == 0:
26458
        if ftype == TType.BOOL:
26459
          self.success = iprot.readBool();
26460
        else:
26461
          iprot.skip(ftype)
26462
      elif fid == 1:
26463
        if ftype == TType.STRUCT:
26464
          self.cex = CatalogServiceException()
26465
          self.cex.read(iprot)
26466
        else:
26467
          iprot.skip(ftype)
26468
      else:
26469
        iprot.skip(ftype)
26470
      iprot.readFieldEnd()
26471
    iprot.readStructEnd()
26472
 
26473
  def write(self, oprot):
26474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26476
      return
26477
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26478
    if self.success is not None:
26479
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26480
      oprot.writeBool(self.success)
26481
      oprot.writeFieldEnd()
26482
    if self.cex is not None:
26483
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26484
      self.cex.write(oprot)
26485
      oprot.writeFieldEnd()
26486
    oprot.writeFieldStop()
26487
    oprot.writeStructEnd()
26488
 
26489
  def validate(self):
26490
    return
26491
 
26492
 
26493
  def __repr__(self):
26494
    L = ['%s=%r' % (key, value)
26495
      for key, value in self.__dict__.iteritems()]
26496
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26497
 
26498
  def __eq__(self, other):
26499
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26500
 
26501
  def __ne__(self, other):
26502
    return not (self == other)
26503
 
26504
class deleteProductFeedSubmit_args:
26505
  """
26506
  Attributes:
26507
   - catalogItemId
26508
  """
26509
 
26510
  thrift_spec = (
26511
    None, # 0
26512
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26513
  )
26514
 
26515
  def __init__(self, catalogItemId=None,):
26516
    self.catalogItemId = catalogItemId
26517
 
26518
  def read(self, iprot):
26519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26521
      return
26522
    iprot.readStructBegin()
26523
    while True:
26524
      (fname, ftype, fid) = iprot.readFieldBegin()
26525
      if ftype == TType.STOP:
26526
        break
26527
      if fid == 1:
26528
        if ftype == TType.I64:
26529
          self.catalogItemId = iprot.readI64();
26530
        else:
26531
          iprot.skip(ftype)
26532
      else:
26533
        iprot.skip(ftype)
26534
      iprot.readFieldEnd()
26535
    iprot.readStructEnd()
26536
 
26537
  def write(self, oprot):
26538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26540
      return
26541
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26542
    if self.catalogItemId is not None:
26543
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26544
      oprot.writeI64(self.catalogItemId)
26545
      oprot.writeFieldEnd()
26546
    oprot.writeFieldStop()
26547
    oprot.writeStructEnd()
26548
 
26549
  def validate(self):
26550
    return
26551
 
26552
 
26553
  def __repr__(self):
26554
    L = ['%s=%r' % (key, value)
26555
      for key, value in self.__dict__.iteritems()]
26556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26557
 
26558
  def __eq__(self, other):
26559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26560
 
26561
  def __ne__(self, other):
26562
    return not (self == other)
26563
 
26564
class deleteProductFeedSubmit_result:
26565
  """
26566
  Attributes:
26567
   - success
26568
   - cex
26569
  """
26570
 
26571
  thrift_spec = (
26572
    (0, TType.BOOL, 'success', None, None, ), # 0
26573
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26574
  )
26575
 
26576
  def __init__(self, success=None, cex=None,):
26577
    self.success = success
26578
    self.cex = cex
26579
 
26580
  def read(self, iprot):
26581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26583
      return
26584
    iprot.readStructBegin()
26585
    while True:
26586
      (fname, ftype, fid) = iprot.readFieldBegin()
26587
      if ftype == TType.STOP:
26588
        break
26589
      if fid == 0:
26590
        if ftype == TType.BOOL:
26591
          self.success = iprot.readBool();
26592
        else:
26593
          iprot.skip(ftype)
26594
      elif fid == 1:
26595
        if ftype == TType.STRUCT:
26596
          self.cex = CatalogServiceException()
26597
          self.cex.read(iprot)
26598
        else:
26599
          iprot.skip(ftype)
26600
      else:
26601
        iprot.skip(ftype)
26602
      iprot.readFieldEnd()
26603
    iprot.readStructEnd()
26604
 
26605
  def write(self, oprot):
26606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26608
      return
26609
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26610
    if self.success is not None:
26611
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26612
      oprot.writeBool(self.success)
26613
      oprot.writeFieldEnd()
26614
    if self.cex is not None:
26615
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26616
      self.cex.write(oprot)
26617
      oprot.writeFieldEnd()
26618
    oprot.writeFieldStop()
26619
    oprot.writeStructEnd()
26620
 
26621
  def validate(self):
26622
    return
26623
 
26624
 
26625
  def __repr__(self):
26626
    L = ['%s=%r' % (key, value)
26627
      for key, value in self.__dict__.iteritems()]
26628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26629
 
26630
  def __eq__(self, other):
26631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26632
 
26633
  def __ne__(self, other):
26634
    return not (self == other)
26635
 
26636
class getAllProductFeedSubmit_args:
26637
 
26638
  thrift_spec = (
26639
  )
26640
 
26641
  def read(self, iprot):
26642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26644
      return
26645
    iprot.readStructBegin()
26646
    while True:
26647
      (fname, ftype, fid) = iprot.readFieldBegin()
26648
      if ftype == TType.STOP:
26649
        break
26650
      else:
26651
        iprot.skip(ftype)
26652
      iprot.readFieldEnd()
26653
    iprot.readStructEnd()
26654
 
26655
  def write(self, oprot):
26656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26658
      return
26659
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26660
    oprot.writeFieldStop()
26661
    oprot.writeStructEnd()
26662
 
26663
  def validate(self):
26664
    return
26665
 
26666
 
26667
  def __repr__(self):
26668
    L = ['%s=%r' % (key, value)
26669
      for key, value in self.__dict__.iteritems()]
26670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26671
 
26672
  def __eq__(self, other):
26673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26674
 
26675
  def __ne__(self, other):
26676
    return not (self == other)
26677
 
26678
class getAllProductFeedSubmit_result:
26679
  """
26680
  Attributes:
26681
   - success
26682
   - cex
26683
  """
26684
 
26685
  thrift_spec = (
26686
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26687
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26688
  )
26689
 
26690
  def __init__(self, success=None, cex=None,):
26691
    self.success = success
26692
    self.cex = cex
26693
 
26694
  def read(self, iprot):
26695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26697
      return
26698
    iprot.readStructBegin()
26699
    while True:
26700
      (fname, ftype, fid) = iprot.readFieldBegin()
26701
      if ftype == TType.STOP:
26702
        break
26703
      if fid == 0:
26704
        if ftype == TType.LIST:
26705
          self.success = []
12567 amit.gupta 26706
          (_etype560, _size557) = iprot.readListBegin()
26707
          for _i561 in xrange(_size557):
26708
            _elem562 = ProductFeedSubmit()
26709
            _elem562.read(iprot)
26710
            self.success.append(_elem562)
9621 manish.sha 26711
          iprot.readListEnd()
26712
        else:
26713
          iprot.skip(ftype)
26714
      elif fid == 1:
26715
        if ftype == TType.STRUCT:
26716
          self.cex = CatalogServiceException()
26717
          self.cex.read(iprot)
26718
        else:
26719
          iprot.skip(ftype)
26720
      else:
26721
        iprot.skip(ftype)
26722
      iprot.readFieldEnd()
26723
    iprot.readStructEnd()
26724
 
26725
  def write(self, oprot):
26726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26728
      return
26729
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26730
    if self.success is not None:
26731
      oprot.writeFieldBegin('success', TType.LIST, 0)
26732
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 26733
      for iter563 in self.success:
26734
        iter563.write(oprot)
9621 manish.sha 26735
      oprot.writeListEnd()
26736
      oprot.writeFieldEnd()
26737
    if self.cex is not None:
26738
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26739
      self.cex.write(oprot)
26740
      oprot.writeFieldEnd()
26741
    oprot.writeFieldStop()
26742
    oprot.writeStructEnd()
26743
 
26744
  def validate(self):
26745
    return
26746
 
26747
 
26748
  def __repr__(self):
26749
    L = ['%s=%r' % (key, value)
26750
      for key, value in self.__dict__.iteritems()]
26751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26752
 
26753
  def __eq__(self, other):
26754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26755
 
26756
  def __ne__(self, other):
26757
    return not (self == other)
9724 kshitij.so 26758
 
26759
class getMarketplacedetailsForItem_args:
26760
  """
26761
  Attributes:
26762
   - itemId
26763
   - sourceId
26764
  """
26765
 
26766
  thrift_spec = (
26767
    None, # 0
26768
    (1, TType.I64, 'itemId', None, None, ), # 1
26769
    (2, TType.I64, 'sourceId', None, None, ), # 2
26770
  )
26771
 
26772
  def __init__(self, itemId=None, sourceId=None,):
26773
    self.itemId = itemId
26774
    self.sourceId = sourceId
26775
 
26776
  def read(self, iprot):
26777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26779
      return
26780
    iprot.readStructBegin()
26781
    while True:
26782
      (fname, ftype, fid) = iprot.readFieldBegin()
26783
      if ftype == TType.STOP:
26784
        break
26785
      if fid == 1:
26786
        if ftype == TType.I64:
26787
          self.itemId = iprot.readI64();
26788
        else:
26789
          iprot.skip(ftype)
26790
      elif fid == 2:
26791
        if ftype == TType.I64:
26792
          self.sourceId = iprot.readI64();
26793
        else:
26794
          iprot.skip(ftype)
26795
      else:
26796
        iprot.skip(ftype)
26797
      iprot.readFieldEnd()
26798
    iprot.readStructEnd()
26799
 
26800
  def write(self, oprot):
26801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26803
      return
26804
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
26805
    if self.itemId is not None:
26806
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26807
      oprot.writeI64(self.itemId)
26808
      oprot.writeFieldEnd()
26809
    if self.sourceId is not None:
26810
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
26811
      oprot.writeI64(self.sourceId)
26812
      oprot.writeFieldEnd()
26813
    oprot.writeFieldStop()
26814
    oprot.writeStructEnd()
26815
 
26816
  def validate(self):
26817
    return
26818
 
26819
 
26820
  def __repr__(self):
26821
    L = ['%s=%r' % (key, value)
26822
      for key, value in self.__dict__.iteritems()]
26823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26824
 
26825
  def __eq__(self, other):
26826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26827
 
26828
  def __ne__(self, other):
26829
    return not (self == other)
26830
 
26831
class getMarketplacedetailsForItem_result:
26832
  """
26833
  Attributes:
26834
   - success
26835
  """
26836
 
26837
  thrift_spec = (
26838
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
26839
  )
26840
 
26841
  def __init__(self, success=None,):
26842
    self.success = success
26843
 
26844
  def read(self, iprot):
26845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26847
      return
26848
    iprot.readStructBegin()
26849
    while True:
26850
      (fname, ftype, fid) = iprot.readFieldBegin()
26851
      if ftype == TType.STOP:
26852
        break
26853
      if fid == 0:
26854
        if ftype == TType.STRUCT:
26855
          self.success = MarketplaceItems()
26856
          self.success.read(iprot)
26857
        else:
26858
          iprot.skip(ftype)
26859
      else:
26860
        iprot.skip(ftype)
26861
      iprot.readFieldEnd()
26862
    iprot.readStructEnd()
26863
 
26864
  def write(self, oprot):
26865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26867
      return
26868
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
26869
    if self.success is not None:
26870
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26871
      self.success.write(oprot)
26872
      oprot.writeFieldEnd()
26873
    oprot.writeFieldStop()
26874
    oprot.writeStructEnd()
26875
 
26876
  def validate(self):
26877
    return
26878
 
26879
 
26880
  def __repr__(self):
26881
    L = ['%s=%r' % (key, value)
26882
      for key, value in self.__dict__.iteritems()]
26883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26884
 
26885
  def __eq__(self, other):
26886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26887
 
26888
  def __ne__(self, other):
26889
    return not (self == other)
26890
 
26891
class updateMarketplaceAttributesForItem_args:
26892
  """
26893
  Attributes:
26894
   - marketPlaceItem
26895
  """
26896
 
26897
  thrift_spec = (
26898
    None, # 0
26899
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
26900
  )
26901
 
26902
  def __init__(self, marketPlaceItem=None,):
26903
    self.marketPlaceItem = marketPlaceItem
26904
 
26905
  def read(self, iprot):
26906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26908
      return
26909
    iprot.readStructBegin()
26910
    while True:
26911
      (fname, ftype, fid) = iprot.readFieldBegin()
26912
      if ftype == TType.STOP:
26913
        break
26914
      if fid == 1:
26915
        if ftype == TType.STRUCT:
26916
          self.marketPlaceItem = MarketplaceItems()
26917
          self.marketPlaceItem.read(iprot)
26918
        else:
26919
          iprot.skip(ftype)
26920
      else:
26921
        iprot.skip(ftype)
26922
      iprot.readFieldEnd()
26923
    iprot.readStructEnd()
26924
 
26925
  def write(self, oprot):
26926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26928
      return
26929
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
26930
    if self.marketPlaceItem is not None:
26931
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
26932
      self.marketPlaceItem.write(oprot)
26933
      oprot.writeFieldEnd()
26934
    oprot.writeFieldStop()
26935
    oprot.writeStructEnd()
26936
 
26937
  def validate(self):
26938
    return
26939
 
26940
 
26941
  def __repr__(self):
26942
    L = ['%s=%r' % (key, value)
26943
      for key, value in self.__dict__.iteritems()]
26944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26945
 
26946
  def __eq__(self, other):
26947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26948
 
26949
  def __ne__(self, other):
26950
    return not (self == other)
26951
 
26952
class updateMarketplaceAttributesForItem_result:
26953
  """
26954
  Attributes:
26955
   - success
26956
  """
26957
 
26958
  thrift_spec = (
26959
    (0, TType.BOOL, 'success', None, None, ), # 0
26960
  )
26961
 
26962
  def __init__(self, success=None,):
26963
    self.success = success
26964
 
26965
  def read(self, iprot):
26966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26968
      return
26969
    iprot.readStructBegin()
26970
    while True:
26971
      (fname, ftype, fid) = iprot.readFieldBegin()
26972
      if ftype == TType.STOP:
26973
        break
26974
      if fid == 0:
26975
        if ftype == TType.BOOL:
26976
          self.success = iprot.readBool();
26977
        else:
26978
          iprot.skip(ftype)
26979
      else:
26980
        iprot.skip(ftype)
26981
      iprot.readFieldEnd()
26982
    iprot.readStructEnd()
26983
 
26984
  def write(self, oprot):
26985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26987
      return
26988
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
26989
    if self.success is not None:
26990
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26991
      oprot.writeBool(self.success)
26992
      oprot.writeFieldEnd()
26993
    oprot.writeFieldStop()
26994
    oprot.writeStructEnd()
26995
 
26996
  def validate(self):
26997
    return
26998
 
26999
 
27000
  def __repr__(self):
27001
    L = ['%s=%r' % (key, value)
27002
      for key, value in self.__dict__.iteritems()]
27003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27004
 
27005
  def __eq__(self, other):
27006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27007
 
27008
  def __ne__(self, other):
27009
    return not (self == other)
9776 vikram.rag 27010
 
9779 kshitij.so 27011
class getCostingForMarketplace_args:
27012
  """
27013
  Attributes:
27014
   - source
27015
   - item_id
27016
  """
27017
 
27018
  thrift_spec = (
27019
    None, # 0
27020
    (1, TType.I64, 'source', None, None, ), # 1
27021
    (2, TType.I64, 'item_id', None, None, ), # 2
27022
  )
27023
 
27024
  def __init__(self, source=None, item_id=None,):
27025
    self.source = source
27026
    self.item_id = item_id
27027
 
27028
  def read(self, iprot):
27029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27031
      return
27032
    iprot.readStructBegin()
27033
    while True:
27034
      (fname, ftype, fid) = iprot.readFieldBegin()
27035
      if ftype == TType.STOP:
27036
        break
27037
      if fid == 1:
27038
        if ftype == TType.I64:
27039
          self.source = iprot.readI64();
27040
        else:
27041
          iprot.skip(ftype)
27042
      elif fid == 2:
27043
        if ftype == TType.I64:
27044
          self.item_id = iprot.readI64();
27045
        else:
27046
          iprot.skip(ftype)
27047
      else:
27048
        iprot.skip(ftype)
27049
      iprot.readFieldEnd()
27050
    iprot.readStructEnd()
27051
 
27052
  def write(self, oprot):
27053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27055
      return
27056
    oprot.writeStructBegin('getCostingForMarketplace_args')
27057
    if self.source is not None:
27058
      oprot.writeFieldBegin('source', TType.I64, 1)
27059
      oprot.writeI64(self.source)
27060
      oprot.writeFieldEnd()
27061
    if self.item_id is not None:
27062
      oprot.writeFieldBegin('item_id', TType.I64, 2)
27063
      oprot.writeI64(self.item_id)
27064
      oprot.writeFieldEnd()
27065
    oprot.writeFieldStop()
27066
    oprot.writeStructEnd()
27067
 
27068
  def validate(self):
27069
    return
27070
 
27071
 
27072
  def __repr__(self):
27073
    L = ['%s=%r' % (key, value)
27074
      for key, value in self.__dict__.iteritems()]
27075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27076
 
27077
  def __eq__(self, other):
27078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27079
 
27080
  def __ne__(self, other):
27081
    return not (self == other)
27082
 
27083
class getCostingForMarketplace_result:
27084
  """
27085
  Attributes:
27086
   - success
27087
  """
27088
 
27089
  thrift_spec = (
27090
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
27091
  )
27092
 
27093
  def __init__(self, success=None,):
27094
    self.success = success
27095
 
27096
  def read(self, iprot):
27097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27099
      return
27100
    iprot.readStructBegin()
27101
    while True:
27102
      (fname, ftype, fid) = iprot.readFieldBegin()
27103
      if ftype == TType.STOP:
27104
        break
27105
      if fid == 0:
27106
        if ftype == TType.STRUCT:
27107
          self.success = MarketplacePercentage()
27108
          self.success.read(iprot)
27109
        else:
27110
          iprot.skip(ftype)
27111
      else:
27112
        iprot.skip(ftype)
27113
      iprot.readFieldEnd()
27114
    iprot.readStructEnd()
27115
 
27116
  def write(self, oprot):
27117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27119
      return
27120
    oprot.writeStructBegin('getCostingForMarketplace_result')
27121
    if self.success is not None:
27122
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27123
      self.success.write(oprot)
27124
      oprot.writeFieldEnd()
27125
    oprot.writeFieldStop()
27126
    oprot.writeStructEnd()
27127
 
27128
  def validate(self):
27129
    return
27130
 
27131
 
27132
  def __repr__(self):
27133
    L = ['%s=%r' % (key, value)
27134
      for key, value in self.__dict__.iteritems()]
27135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27136
 
27137
  def __eq__(self, other):
27138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27139
 
27140
  def __ne__(self, other):
27141
    return not (self == other)
27142
 
9776 vikram.rag 27143
class getMarketPlaceItemsForPriceUpdate_args:
27144
  """
27145
  Attributes:
27146
   - source
27147
  """
27148
 
27149
  thrift_spec = (
27150
    None, # 0
27151
    (1, TType.I64, 'source', None, None, ), # 1
27152
  )
27153
 
27154
  def __init__(self, source=None,):
27155
    self.source = source
27156
 
27157
  def read(self, iprot):
27158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27160
      return
27161
    iprot.readStructBegin()
27162
    while True:
27163
      (fname, ftype, fid) = iprot.readFieldBegin()
27164
      if ftype == TType.STOP:
27165
        break
27166
      if fid == 1:
27167
        if ftype == TType.I64:
27168
          self.source = iprot.readI64();
27169
        else:
27170
          iprot.skip(ftype)
27171
      else:
27172
        iprot.skip(ftype)
27173
      iprot.readFieldEnd()
27174
    iprot.readStructEnd()
27175
 
27176
  def write(self, oprot):
27177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27179
      return
27180
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27181
    if self.source is not None:
27182
      oprot.writeFieldBegin('source', TType.I64, 1)
27183
      oprot.writeI64(self.source)
27184
      oprot.writeFieldEnd()
27185
    oprot.writeFieldStop()
27186
    oprot.writeStructEnd()
27187
 
27188
  def validate(self):
27189
    return
27190
 
27191
 
27192
  def __repr__(self):
27193
    L = ['%s=%r' % (key, value)
27194
      for key, value in self.__dict__.iteritems()]
27195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27196
 
27197
  def __eq__(self, other):
27198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27199
 
27200
  def __ne__(self, other):
27201
    return not (self == other)
27202
 
27203
class getMarketPlaceItemsForPriceUpdate_result:
27204
  """
27205
  Attributes:
27206
   - success
27207
  """
27208
 
27209
  thrift_spec = (
27210
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27211
  )
27212
 
27213
  def __init__(self, success=None,):
27214
    self.success = success
27215
 
27216
  def read(self, iprot):
27217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27219
      return
27220
    iprot.readStructBegin()
27221
    while True:
27222
      (fname, ftype, fid) = iprot.readFieldBegin()
27223
      if ftype == TType.STOP:
27224
        break
27225
      if fid == 0:
27226
        if ftype == TType.LIST:
27227
          self.success = []
12567 amit.gupta 27228
          (_etype567, _size564) = iprot.readListBegin()
27229
          for _i568 in xrange(_size564):
27230
            _elem569 = MarketPlaceItemPrice()
27231
            _elem569.read(iprot)
27232
            self.success.append(_elem569)
9776 vikram.rag 27233
          iprot.readListEnd()
27234
        else:
27235
          iprot.skip(ftype)
27236
      else:
27237
        iprot.skip(ftype)
27238
      iprot.readFieldEnd()
27239
    iprot.readStructEnd()
27240
 
27241
  def write(self, oprot):
27242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27244
      return
27245
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27246
    if self.success is not None:
27247
      oprot.writeFieldBegin('success', TType.LIST, 0)
27248
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27249
      for iter570 in self.success:
27250
        iter570.write(oprot)
9776 vikram.rag 27251
      oprot.writeListEnd()
27252
      oprot.writeFieldEnd()
27253
    oprot.writeFieldStop()
27254
    oprot.writeStructEnd()
27255
 
27256
  def validate(self):
27257
    return
27258
 
27259
 
27260
  def __repr__(self):
27261
    L = ['%s=%r' % (key, value)
27262
      for key, value in self.__dict__.iteritems()]
27263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27264
 
27265
  def __eq__(self, other):
27266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27267
 
27268
  def __ne__(self, other):
27269
    return not (self == other)
27270
 
27271
class updateMarketPlacePriceUpdateStatus_args:
27272
  """
27273
  Attributes:
27274
   - skulist
27275
   - timestamp
9816 kshitij.so 27276
   - source
9776 vikram.rag 27277
  """
27278
 
27279
  thrift_spec = (
27280
    None, # 0
27281
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27282
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27283
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27284
  )
27285
 
9816 kshitij.so 27286
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27287
    self.skulist = skulist
27288
    self.timestamp = timestamp
9816 kshitij.so 27289
    self.source = source
9776 vikram.rag 27290
 
27291
  def read(self, iprot):
27292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27294
      return
27295
    iprot.readStructBegin()
27296
    while True:
27297
      (fname, ftype, fid) = iprot.readFieldBegin()
27298
      if ftype == TType.STOP:
27299
        break
27300
      if fid == 1:
27301
        if ftype == TType.LIST:
27302
          self.skulist = []
12567 amit.gupta 27303
          (_etype574, _size571) = iprot.readListBegin()
27304
          for _i575 in xrange(_size571):
27305
            _elem576 = iprot.readI64();
27306
            self.skulist.append(_elem576)
9776 vikram.rag 27307
          iprot.readListEnd()
27308
        else:
27309
          iprot.skip(ftype)
27310
      elif fid == 2:
27311
        if ftype == TType.I64:
27312
          self.timestamp = iprot.readI64();
27313
        else:
27314
          iprot.skip(ftype)
9816 kshitij.so 27315
      elif fid == 3:
27316
        if ftype == TType.I64:
27317
          self.source = iprot.readI64();
27318
        else:
27319
          iprot.skip(ftype)
9776 vikram.rag 27320
      else:
27321
        iprot.skip(ftype)
27322
      iprot.readFieldEnd()
27323
    iprot.readStructEnd()
27324
 
27325
  def write(self, oprot):
27326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27328
      return
27329
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27330
    if self.skulist is not None:
27331
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27332
      oprot.writeListBegin(TType.I64, len(self.skulist))
12567 amit.gupta 27333
      for iter577 in self.skulist:
27334
        oprot.writeI64(iter577)
9776 vikram.rag 27335
      oprot.writeListEnd()
27336
      oprot.writeFieldEnd()
27337
    if self.timestamp is not None:
27338
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27339
      oprot.writeI64(self.timestamp)
27340
      oprot.writeFieldEnd()
9816 kshitij.so 27341
    if self.source is not None:
27342
      oprot.writeFieldBegin('source', TType.I64, 3)
27343
      oprot.writeI64(self.source)
27344
      oprot.writeFieldEnd()
9776 vikram.rag 27345
    oprot.writeFieldStop()
27346
    oprot.writeStructEnd()
27347
 
27348
  def validate(self):
27349
    return
27350
 
27351
 
27352
  def __repr__(self):
27353
    L = ['%s=%r' % (key, value)
27354
      for key, value in self.__dict__.iteritems()]
27355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27356
 
27357
  def __eq__(self, other):
27358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27359
 
27360
  def __ne__(self, other):
27361
    return not (self == other)
27362
 
27363
class updateMarketPlacePriceUpdateStatus_result:
27364
 
27365
  thrift_spec = (
27366
  )
27367
 
27368
  def read(self, iprot):
27369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27371
      return
27372
    iprot.readStructBegin()
27373
    while True:
27374
      (fname, ftype, fid) = iprot.readFieldBegin()
27375
      if ftype == TType.STOP:
27376
        break
27377
      else:
27378
        iprot.skip(ftype)
27379
      iprot.readFieldEnd()
27380
    iprot.readStructEnd()
27381
 
27382
  def write(self, oprot):
27383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27385
      return
27386
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27387
    oprot.writeFieldStop()
27388
    oprot.writeStructEnd()
27389
 
27390
  def validate(self):
27391
    return
27392
 
27393
 
27394
  def __repr__(self):
27395
    L = ['%s=%r' % (key, value)
27396
      for key, value in self.__dict__.iteritems()]
27397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27398
 
27399
  def __eq__(self, other):
27400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27401
 
27402
  def __ne__(self, other):
27403
    return not (self == other)
9861 rajveer 27404
 
27405
class updateItemHoldInventory_args:
27406
  """
27407
  Attributes:
27408
   - itemHoldMap
27409
  """
27410
 
27411
  thrift_spec = (
27412
    None, # 0
27413
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27414
  )
27415
 
27416
  def __init__(self, itemHoldMap=None,):
27417
    self.itemHoldMap = itemHoldMap
27418
 
27419
  def read(self, iprot):
27420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27422
      return
27423
    iprot.readStructBegin()
27424
    while True:
27425
      (fname, ftype, fid) = iprot.readFieldBegin()
27426
      if ftype == TType.STOP:
27427
        break
27428
      if fid == 1:
27429
        if ftype == TType.MAP:
27430
          self.itemHoldMap = {}
12567 amit.gupta 27431
          (_ktype579, _vtype580, _size578 ) = iprot.readMapBegin() 
27432
          for _i582 in xrange(_size578):
27433
            _key583 = iprot.readI64();
27434
            _val584 = iprot.readI64();
27435
            self.itemHoldMap[_key583] = _val584
9861 rajveer 27436
          iprot.readMapEnd()
27437
        else:
27438
          iprot.skip(ftype)
27439
      else:
27440
        iprot.skip(ftype)
27441
      iprot.readFieldEnd()
27442
    iprot.readStructEnd()
27443
 
27444
  def write(self, oprot):
27445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27447
      return
27448
    oprot.writeStructBegin('updateItemHoldInventory_args')
27449
    if self.itemHoldMap is not None:
27450
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27451
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
12567 amit.gupta 27452
      for kiter585,viter586 in self.itemHoldMap.items():
27453
        oprot.writeI64(kiter585)
27454
        oprot.writeI64(viter586)
9861 rajveer 27455
      oprot.writeMapEnd()
27456
      oprot.writeFieldEnd()
27457
    oprot.writeFieldStop()
27458
    oprot.writeStructEnd()
27459
 
27460
  def validate(self):
27461
    return
27462
 
27463
 
27464
  def __repr__(self):
27465
    L = ['%s=%r' % (key, value)
27466
      for key, value in self.__dict__.iteritems()]
27467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27468
 
27469
  def __eq__(self, other):
27470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27471
 
27472
  def __ne__(self, other):
27473
    return not (self == other)
27474
 
27475
class updateItemHoldInventory_result:
27476
 
27477
  thrift_spec = (
27478
  )
27479
 
27480
  def read(self, iprot):
27481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27483
      return
27484
    iprot.readStructBegin()
27485
    while True:
27486
      (fname, ftype, fid) = iprot.readFieldBegin()
27487
      if ftype == TType.STOP:
27488
        break
27489
      else:
27490
        iprot.skip(ftype)
27491
      iprot.readFieldEnd()
27492
    iprot.readStructEnd()
27493
 
27494
  def write(self, oprot):
27495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27497
      return
27498
    oprot.writeStructBegin('updateItemHoldInventory_result')
27499
    oprot.writeFieldStop()
27500
    oprot.writeStructEnd()
27501
 
27502
  def validate(self):
27503
    return
27504
 
27505
 
27506
  def __repr__(self):
27507
    L = ['%s=%r' % (key, value)
27508
      for key, value in self.__dict__.iteritems()]
27509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27510
 
27511
  def __eq__(self, other):
27512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27513
 
27514
  def __ne__(self, other):
27515
    return not (self == other)
9895 vikram.rag 27516
 
27517
class updateNlcAtMarketplaces_args:
27518
  """
27519
  Attributes:
27520
   - item_id
27521
   - vendor_id
27522
   - nlc
27523
  """
27524
 
27525
  thrift_spec = None
27526
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27527
    self.item_id = item_id
27528
    self.vendor_id = vendor_id
27529
    self.nlc = nlc
27530
 
27531
  def read(self, iprot):
27532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27534
      return
27535
    iprot.readStructBegin()
27536
    while True:
27537
      (fname, ftype, fid) = iprot.readFieldBegin()
27538
      if ftype == TType.STOP:
27539
        break
27540
      if fid == 1:
27541
        if ftype == TType.I64:
27542
          self.item_id = iprot.readI64();
27543
        else:
27544
          iprot.skip(ftype)
27545
      elif fid == 2:
27546
        if ftype == TType.I64:
27547
          self.vendor_id = iprot.readI64();
27548
        else:
27549
          iprot.skip(ftype)
27550
      elif fid == -1:
27551
        if ftype == TType.DOUBLE:
27552
          self.nlc = iprot.readDouble();
27553
        else:
27554
          iprot.skip(ftype)
27555
      else:
27556
        iprot.skip(ftype)
27557
      iprot.readFieldEnd()
27558
    iprot.readStructEnd()
27559
 
27560
  def write(self, oprot):
27561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27563
      return
27564
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27565
    if self.nlc is not None:
27566
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27567
      oprot.writeDouble(self.nlc)
27568
      oprot.writeFieldEnd()
27569
    if self.item_id is not None:
27570
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27571
      oprot.writeI64(self.item_id)
27572
      oprot.writeFieldEnd()
27573
    if self.vendor_id is not None:
27574
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27575
      oprot.writeI64(self.vendor_id)
27576
      oprot.writeFieldEnd()
27577
    oprot.writeFieldStop()
27578
    oprot.writeStructEnd()
27579
 
27580
  def validate(self):
27581
    return
27582
 
27583
 
27584
  def __repr__(self):
27585
    L = ['%s=%r' % (key, value)
27586
      for key, value in self.__dict__.iteritems()]
27587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27588
 
27589
  def __eq__(self, other):
27590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27591
 
27592
  def __ne__(self, other):
27593
    return not (self == other)
27594
 
27595
class updateNlcAtMarketplaces_result:
27596
 
27597
  thrift_spec = (
27598
  )
27599
 
27600
  def read(self, iprot):
27601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27603
      return
27604
    iprot.readStructBegin()
27605
    while True:
27606
      (fname, ftype, fid) = iprot.readFieldBegin()
27607
      if ftype == TType.STOP:
27608
        break
27609
      else:
27610
        iprot.skip(ftype)
27611
      iprot.readFieldEnd()
27612
    iprot.readStructEnd()
27613
 
27614
  def write(self, oprot):
27615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27617
      return
27618
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27619
    oprot.writeFieldStop()
27620
    oprot.writeStructEnd()
27621
 
27622
  def validate(self):
27623
    return
27624
 
27625
 
27626
  def __repr__(self):
27627
    L = ['%s=%r' % (key, value)
27628
      for key, value in self.__dict__.iteritems()]
27629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27630
 
27631
  def __eq__(self, other):
27632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27633
 
27634
  def __ne__(self, other):
27635
    return not (self == other)
9945 vikram.rag 27636
 
27637
class getAllFlipkartItems_args:
27638
 
27639
  thrift_spec = (
27640
  )
27641
 
27642
  def read(self, iprot):
27643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27645
      return
27646
    iprot.readStructBegin()
27647
    while True:
27648
      (fname, ftype, fid) = iprot.readFieldBegin()
27649
      if ftype == TType.STOP:
27650
        break
27651
      else:
27652
        iprot.skip(ftype)
27653
      iprot.readFieldEnd()
27654
    iprot.readStructEnd()
27655
 
27656
  def write(self, oprot):
27657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27659
      return
27660
    oprot.writeStructBegin('getAllFlipkartItems_args')
27661
    oprot.writeFieldStop()
27662
    oprot.writeStructEnd()
27663
 
27664
  def validate(self):
27665
    return
27666
 
27667
 
27668
  def __repr__(self):
27669
    L = ['%s=%r' % (key, value)
27670
      for key, value in self.__dict__.iteritems()]
27671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27672
 
27673
  def __eq__(self, other):
27674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27675
 
27676
  def __ne__(self, other):
27677
    return not (self == other)
27678
 
27679
class getAllFlipkartItems_result:
27680
  """
27681
  Attributes:
27682
   - success
27683
  """
27684
 
27685
  thrift_spec = (
27686
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27687
  )
27688
 
27689
  def __init__(self, success=None,):
27690
    self.success = success
27691
 
27692
  def read(self, iprot):
27693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27695
      return
27696
    iprot.readStructBegin()
27697
    while True:
27698
      (fname, ftype, fid) = iprot.readFieldBegin()
27699
      if ftype == TType.STOP:
27700
        break
27701
      if fid == 0:
27702
        if ftype == TType.LIST:
27703
          self.success = []
12567 amit.gupta 27704
          (_etype590, _size587) = iprot.readListBegin()
27705
          for _i591 in xrange(_size587):
27706
            _elem592 = FlipkartItem()
27707
            _elem592.read(iprot)
27708
            self.success.append(_elem592)
9945 vikram.rag 27709
          iprot.readListEnd()
27710
        else:
27711
          iprot.skip(ftype)
27712
      else:
27713
        iprot.skip(ftype)
27714
      iprot.readFieldEnd()
27715
    iprot.readStructEnd()
27716
 
27717
  def write(self, oprot):
27718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27720
      return
27721
    oprot.writeStructBegin('getAllFlipkartItems_result')
27722
    if self.success is not None:
27723
      oprot.writeFieldBegin('success', TType.LIST, 0)
27724
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27725
      for iter593 in self.success:
27726
        iter593.write(oprot)
9945 vikram.rag 27727
      oprot.writeListEnd()
27728
      oprot.writeFieldEnd()
27729
    oprot.writeFieldStop()
27730
    oprot.writeStructEnd()
27731
 
27732
  def validate(self):
27733
    return
27734
 
27735
 
27736
  def __repr__(self):
27737
    L = ['%s=%r' % (key, value)
27738
      for key, value in self.__dict__.iteritems()]
27739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27740
 
27741
  def __eq__(self, other):
27742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27743
 
27744
  def __ne__(self, other):
27745
    return not (self == other)
10097 kshitij.so 27746
 
27747
class addOrUpdateFlipkartItem_args:
27748
  """
27749
  Attributes:
27750
   - flipkartitem
27751
  """
27752
 
27753
  thrift_spec = None
27754
  def __init__(self, flipkartitem=None,):
27755
    self.flipkartitem = flipkartitem
27756
 
27757
  def read(self, iprot):
27758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27760
      return
27761
    iprot.readStructBegin()
27762
    while True:
27763
      (fname, ftype, fid) = iprot.readFieldBegin()
27764
      if ftype == TType.STOP:
27765
        break
27766
      if fid == -1:
27767
        if ftype == TType.STRUCT:
27768
          self.flipkartitem = FlipkartItem()
27769
          self.flipkartitem.read(iprot)
27770
        else:
27771
          iprot.skip(ftype)
27772
      else:
27773
        iprot.skip(ftype)
27774
      iprot.readFieldEnd()
27775
    iprot.readStructEnd()
27776
 
27777
  def write(self, oprot):
27778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27780
      return
27781
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
27782
    if self.flipkartitem is not None:
27783
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
27784
      self.flipkartitem.write(oprot)
27785
      oprot.writeFieldEnd()
27786
    oprot.writeFieldStop()
27787
    oprot.writeStructEnd()
27788
 
27789
  def validate(self):
27790
    return
27791
 
27792
 
27793
  def __repr__(self):
27794
    L = ['%s=%r' % (key, value)
27795
      for key, value in self.__dict__.iteritems()]
27796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27797
 
27798
  def __eq__(self, other):
27799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27800
 
27801
  def __ne__(self, other):
27802
    return not (self == other)
27803
 
27804
class addOrUpdateFlipkartItem_result:
27805
  """
27806
  Attributes:
27807
   - success
27808
  """
27809
 
27810
  thrift_spec = (
27811
    (0, TType.BOOL, 'success', None, None, ), # 0
27812
  )
27813
 
27814
  def __init__(self, success=None,):
27815
    self.success = success
27816
 
27817
  def read(self, iprot):
27818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27820
      return
27821
    iprot.readStructBegin()
27822
    while True:
27823
      (fname, ftype, fid) = iprot.readFieldBegin()
27824
      if ftype == TType.STOP:
27825
        break
27826
      if fid == 0:
27827
        if ftype == TType.BOOL:
27828
          self.success = iprot.readBool();
27829
        else:
27830
          iprot.skip(ftype)
27831
      else:
27832
        iprot.skip(ftype)
27833
      iprot.readFieldEnd()
27834
    iprot.readStructEnd()
27835
 
27836
  def write(self, oprot):
27837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27839
      return
27840
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
27841
    if self.success is not None:
27842
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27843
      oprot.writeBool(self.success)
27844
      oprot.writeFieldEnd()
27845
    oprot.writeFieldStop()
27846
    oprot.writeStructEnd()
27847
 
27848
  def validate(self):
27849
    return
27850
 
27851
 
27852
  def __repr__(self):
27853
    L = ['%s=%r' % (key, value)
27854
      for key, value in self.__dict__.iteritems()]
27855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27856
 
27857
  def __eq__(self, other):
27858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27859
 
27860
  def __ne__(self, other):
27861
    return not (self == other)
27862
 
27863
class getFlipkartItem_args:
27864
  """
27865
  Attributes:
27866
   - item_id
27867
  """
27868
 
27869
  thrift_spec = (
27870
    None, # 0
27871
    (1, TType.I64, 'item_id', None, None, ), # 1
27872
  )
27873
 
27874
  def __init__(self, item_id=None,):
27875
    self.item_id = item_id
27876
 
27877
  def read(self, iprot):
27878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27880
      return
27881
    iprot.readStructBegin()
27882
    while True:
27883
      (fname, ftype, fid) = iprot.readFieldBegin()
27884
      if ftype == TType.STOP:
27885
        break
27886
      if fid == 1:
27887
        if ftype == TType.I64:
27888
          self.item_id = iprot.readI64();
27889
        else:
27890
          iprot.skip(ftype)
27891
      else:
27892
        iprot.skip(ftype)
27893
      iprot.readFieldEnd()
27894
    iprot.readStructEnd()
27895
 
27896
  def write(self, oprot):
27897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27899
      return
27900
    oprot.writeStructBegin('getFlipkartItem_args')
27901
    if self.item_id is not None:
27902
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27903
      oprot.writeI64(self.item_id)
27904
      oprot.writeFieldEnd()
27905
    oprot.writeFieldStop()
27906
    oprot.writeStructEnd()
27907
 
27908
  def validate(self):
27909
    return
27910
 
27911
 
27912
  def __repr__(self):
27913
    L = ['%s=%r' % (key, value)
27914
      for key, value in self.__dict__.iteritems()]
27915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27916
 
27917
  def __eq__(self, other):
27918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27919
 
27920
  def __ne__(self, other):
27921
    return not (self == other)
27922
 
27923
class getFlipkartItem_result:
27924
  """
27925
  Attributes:
27926
   - success
27927
  """
27928
 
27929
  thrift_spec = (
27930
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27931
  )
27932
 
27933
  def __init__(self, success=None,):
27934
    self.success = success
27935
 
27936
  def read(self, iprot):
27937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27939
      return
27940
    iprot.readStructBegin()
27941
    while True:
27942
      (fname, ftype, fid) = iprot.readFieldBegin()
27943
      if ftype == TType.STOP:
27944
        break
27945
      if fid == 0:
27946
        if ftype == TType.STRUCT:
27947
          self.success = FlipkartItem()
27948
          self.success.read(iprot)
27949
        else:
27950
          iprot.skip(ftype)
27951
      else:
27952
        iprot.skip(ftype)
27953
      iprot.readFieldEnd()
27954
    iprot.readStructEnd()
27955
 
27956
  def write(self, oprot):
27957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27959
      return
27960
    oprot.writeStructBegin('getFlipkartItem_result')
27961
    if self.success is not None:
27962
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27963
      self.success.write(oprot)
27964
      oprot.writeFieldEnd()
27965
    oprot.writeFieldStop()
27966
    oprot.writeStructEnd()
27967
 
27968
  def validate(self):
27969
    return
27970
 
27971
 
27972
  def __repr__(self):
27973
    L = ['%s=%r' % (key, value)
27974
      for key, value in self.__dict__.iteritems()]
27975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27976
 
27977
  def __eq__(self, other):
27978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27979
 
27980
  def __ne__(self, other):
27981
    return not (self == other)
27982
 
27983
class getFlipkartItemDetails_args:
27984
  """
27985
  Attributes:
27986
   - item_id
27987
  """
27988
 
27989
  thrift_spec = (
27990
    None, # 0
27991
    (1, TType.I64, 'item_id', None, None, ), # 1
27992
  )
27993
 
27994
  def __init__(self, item_id=None,):
27995
    self.item_id = item_id
27996
 
27997
  def read(self, iprot):
27998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28000
      return
28001
    iprot.readStructBegin()
28002
    while True:
28003
      (fname, ftype, fid) = iprot.readFieldBegin()
28004
      if ftype == TType.STOP:
28005
        break
28006
      if fid == 1:
28007
        if ftype == TType.I64:
28008
          self.item_id = iprot.readI64();
28009
        else:
28010
          iprot.skip(ftype)
28011
      else:
28012
        iprot.skip(ftype)
28013
      iprot.readFieldEnd()
28014
    iprot.readStructEnd()
28015
 
28016
  def write(self, oprot):
28017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28019
      return
28020
    oprot.writeStructBegin('getFlipkartItemDetails_args')
28021
    if self.item_id is not None:
28022
      oprot.writeFieldBegin('item_id', TType.I64, 1)
28023
      oprot.writeI64(self.item_id)
28024
      oprot.writeFieldEnd()
28025
    oprot.writeFieldStop()
28026
    oprot.writeStructEnd()
28027
 
28028
  def validate(self):
28029
    return
28030
 
28031
 
28032
  def __repr__(self):
28033
    L = ['%s=%r' % (key, value)
28034
      for key, value in self.__dict__.iteritems()]
28035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28036
 
28037
  def __eq__(self, other):
28038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28039
 
28040
  def __ne__(self, other):
28041
    return not (self == other)
28042
 
28043
class getFlipkartItemDetails_result:
28044
  """
28045
  Attributes:
28046
   - success
28047
  """
28048
 
28049
  thrift_spec = (
28050
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
28051
  )
28052
 
28053
  def __init__(self, success=None,):
28054
    self.success = success
28055
 
28056
  def read(self, iprot):
28057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28059
      return
28060
    iprot.readStructBegin()
28061
    while True:
28062
      (fname, ftype, fid) = iprot.readFieldBegin()
28063
      if ftype == TType.STOP:
28064
        break
28065
      if fid == 0:
28066
        if ftype == TType.STRUCT:
28067
          self.success = FlipkartItemDetails()
28068
          self.success.read(iprot)
28069
        else:
28070
          iprot.skip(ftype)
28071
      else:
28072
        iprot.skip(ftype)
28073
      iprot.readFieldEnd()
28074
    iprot.readStructEnd()
28075
 
28076
  def write(self, oprot):
28077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28079
      return
28080
    oprot.writeStructBegin('getFlipkartItemDetails_result')
28081
    if self.success is not None:
28082
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28083
      self.success.write(oprot)
28084
      oprot.writeFieldEnd()
28085
    oprot.writeFieldStop()
28086
    oprot.writeStructEnd()
28087
 
28088
  def validate(self):
28089
    return
28090
 
28091
 
28092
  def __repr__(self):
28093
    L = ['%s=%r' % (key, value)
28094
      for key, value in self.__dict__.iteritems()]
28095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28096
 
28097
  def __eq__(self, other):
28098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28099
 
28100
  def __ne__(self, other):
28101
    return not (self == other)
28102
 
28103
class getFlipkartItems_args:
28104
  """
28105
  Attributes:
28106
   - offset
28107
   - limit
28108
  """
28109
 
28110
  thrift_spec = (
28111
    None, # 0
28112
    (1, TType.I64, 'offset', None, None, ), # 1
28113
    (2, TType.I64, 'limit', None, None, ), # 2
28114
  )
28115
 
28116
  def __init__(self, offset=None, limit=None,):
28117
    self.offset = offset
28118
    self.limit = limit
28119
 
28120
  def read(self, iprot):
28121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28123
      return
28124
    iprot.readStructBegin()
28125
    while True:
28126
      (fname, ftype, fid) = iprot.readFieldBegin()
28127
      if ftype == TType.STOP:
28128
        break
28129
      if fid == 1:
28130
        if ftype == TType.I64:
28131
          self.offset = iprot.readI64();
28132
        else:
28133
          iprot.skip(ftype)
28134
      elif fid == 2:
28135
        if ftype == TType.I64:
28136
          self.limit = iprot.readI64();
28137
        else:
28138
          iprot.skip(ftype)
28139
      else:
28140
        iprot.skip(ftype)
28141
      iprot.readFieldEnd()
28142
    iprot.readStructEnd()
28143
 
28144
  def write(self, oprot):
28145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28147
      return
28148
    oprot.writeStructBegin('getFlipkartItems_args')
28149
    if self.offset is not None:
28150
      oprot.writeFieldBegin('offset', TType.I64, 1)
28151
      oprot.writeI64(self.offset)
28152
      oprot.writeFieldEnd()
28153
    if self.limit is not None:
28154
      oprot.writeFieldBegin('limit', TType.I64, 2)
28155
      oprot.writeI64(self.limit)
28156
      oprot.writeFieldEnd()
28157
    oprot.writeFieldStop()
28158
    oprot.writeStructEnd()
28159
 
28160
  def validate(self):
28161
    return
28162
 
28163
 
28164
  def __repr__(self):
28165
    L = ['%s=%r' % (key, value)
28166
      for key, value in self.__dict__.iteritems()]
28167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28168
 
28169
  def __eq__(self, other):
28170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28171
 
28172
  def __ne__(self, other):
28173
    return not (self == other)
28174
 
28175
class getFlipkartItems_result:
28176
  """
28177
  Attributes:
28178
   - success
28179
  """
28180
 
28181
  thrift_spec = (
28182
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28183
  )
28184
 
28185
  def __init__(self, success=None,):
28186
    self.success = success
28187
 
28188
  def read(self, iprot):
28189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28191
      return
28192
    iprot.readStructBegin()
28193
    while True:
28194
      (fname, ftype, fid) = iprot.readFieldBegin()
28195
      if ftype == TType.STOP:
28196
        break
28197
      if fid == 0:
28198
        if ftype == TType.LIST:
28199
          self.success = []
12567 amit.gupta 28200
          (_etype597, _size594) = iprot.readListBegin()
28201
          for _i598 in xrange(_size594):
28202
            _elem599 = FlipkartItemDetails()
28203
            _elem599.read(iprot)
28204
            self.success.append(_elem599)
10097 kshitij.so 28205
          iprot.readListEnd()
28206
        else:
28207
          iprot.skip(ftype)
28208
      else:
28209
        iprot.skip(ftype)
28210
      iprot.readFieldEnd()
28211
    iprot.readStructEnd()
28212
 
28213
  def write(self, oprot):
28214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28216
      return
28217
    oprot.writeStructBegin('getFlipkartItems_result')
28218
    if self.success is not None:
28219
      oprot.writeFieldBegin('success', TType.LIST, 0)
28220
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28221
      for iter600 in self.success:
28222
        iter600.write(oprot)
10097 kshitij.so 28223
      oprot.writeListEnd()
28224
      oprot.writeFieldEnd()
28225
    oprot.writeFieldStop()
28226
    oprot.writeStructEnd()
28227
 
28228
  def validate(self):
28229
    return
28230
 
28231
 
28232
  def __repr__(self):
28233
    L = ['%s=%r' % (key, value)
28234
      for key, value in self.__dict__.iteritems()]
28235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28236
 
28237
  def __eq__(self, other):
28238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28239
 
28240
  def __ne__(self, other):
28241
    return not (self == other)
28242
 
28243
class searchFlipkartItems_args:
28244
  """
28245
  Attributes:
28246
   - searchTerm
28247
   - offset
28248
   - limit
28249
  """
28250
 
28251
  thrift_spec = (
28252
    None, # 0
28253
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28254
    (2, TType.I64, 'offset', None, None, ), # 2
28255
    (3, TType.I64, 'limit', None, None, ), # 3
28256
  )
28257
 
28258
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28259
    self.searchTerm = searchTerm
28260
    self.offset = offset
28261
    self.limit = limit
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 == 1:
28273
        if ftype == TType.LIST:
28274
          self.searchTerm = []
12567 amit.gupta 28275
          (_etype604, _size601) = iprot.readListBegin()
28276
          for _i605 in xrange(_size601):
28277
            _elem606 = iprot.readString();
28278
            self.searchTerm.append(_elem606)
10097 kshitij.so 28279
          iprot.readListEnd()
28280
        else:
28281
          iprot.skip(ftype)
28282
      elif fid == 2:
28283
        if ftype == TType.I64:
28284
          self.offset = iprot.readI64();
28285
        else:
28286
          iprot.skip(ftype)
28287
      elif fid == 3:
28288
        if ftype == TType.I64:
28289
          self.limit = iprot.readI64();
28290
        else:
28291
          iprot.skip(ftype)
28292
      else:
28293
        iprot.skip(ftype)
28294
      iprot.readFieldEnd()
28295
    iprot.readStructEnd()
28296
 
28297
  def write(self, oprot):
28298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28300
      return
28301
    oprot.writeStructBegin('searchFlipkartItems_args')
28302
    if self.searchTerm is not None:
28303
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28304
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28305
      for iter607 in self.searchTerm:
28306
        oprot.writeString(iter607)
10097 kshitij.so 28307
      oprot.writeListEnd()
28308
      oprot.writeFieldEnd()
28309
    if self.offset is not None:
28310
      oprot.writeFieldBegin('offset', TType.I64, 2)
28311
      oprot.writeI64(self.offset)
28312
      oprot.writeFieldEnd()
28313
    if self.limit is not None:
28314
      oprot.writeFieldBegin('limit', TType.I64, 3)
28315
      oprot.writeI64(self.limit)
28316
      oprot.writeFieldEnd()
28317
    oprot.writeFieldStop()
28318
    oprot.writeStructEnd()
28319
 
28320
  def validate(self):
28321
    return
28322
 
28323
 
28324
  def __repr__(self):
28325
    L = ['%s=%r' % (key, value)
28326
      for key, value in self.__dict__.iteritems()]
28327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28328
 
28329
  def __eq__(self, other):
28330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28331
 
28332
  def __ne__(self, other):
28333
    return not (self == other)
28334
 
28335
class searchFlipkartItems_result:
28336
  """
28337
  Attributes:
28338
   - success
28339
  """
28340
 
28341
  thrift_spec = (
28342
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28343
  )
28344
 
28345
  def __init__(self, success=None,):
28346
    self.success = success
28347
 
28348
  def read(self, iprot):
28349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28351
      return
28352
    iprot.readStructBegin()
28353
    while True:
28354
      (fname, ftype, fid) = iprot.readFieldBegin()
28355
      if ftype == TType.STOP:
28356
        break
28357
      if fid == 0:
28358
        if ftype == TType.LIST:
28359
          self.success = []
12567 amit.gupta 28360
          (_etype611, _size608) = iprot.readListBegin()
28361
          for _i612 in xrange(_size608):
28362
            _elem613 = FlipkartItemDetails()
28363
            _elem613.read(iprot)
28364
            self.success.append(_elem613)
10097 kshitij.so 28365
          iprot.readListEnd()
28366
        else:
28367
          iprot.skip(ftype)
28368
      else:
28369
        iprot.skip(ftype)
28370
      iprot.readFieldEnd()
28371
    iprot.readStructEnd()
28372
 
28373
  def write(self, oprot):
28374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28376
      return
28377
    oprot.writeStructBegin('searchFlipkartItems_result')
28378
    if self.success is not None:
28379
      oprot.writeFieldBegin('success', TType.LIST, 0)
28380
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28381
      for iter614 in self.success:
28382
        iter614.write(oprot)
10097 kshitij.so 28383
      oprot.writeListEnd()
28384
      oprot.writeFieldEnd()
28385
    oprot.writeFieldStop()
28386
    oprot.writeStructEnd()
28387
 
28388
  def validate(self):
28389
    return
28390
 
28391
 
28392
  def __repr__(self):
28393
    L = ['%s=%r' % (key, value)
28394
      for key, value in self.__dict__.iteritems()]
28395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28396
 
28397
  def __eq__(self, other):
28398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28399
 
28400
  def __ne__(self, other):
28401
    return not (self == other)
28402
 
28403
class getCountForFlipkartItems_args:
28404
 
28405
  thrift_spec = (
28406
  )
28407
 
28408
  def read(self, iprot):
28409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28411
      return
28412
    iprot.readStructBegin()
28413
    while True:
28414
      (fname, ftype, fid) = iprot.readFieldBegin()
28415
      if ftype == TType.STOP:
28416
        break
28417
      else:
28418
        iprot.skip(ftype)
28419
      iprot.readFieldEnd()
28420
    iprot.readStructEnd()
28421
 
28422
  def write(self, oprot):
28423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28425
      return
28426
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28427
    oprot.writeFieldStop()
28428
    oprot.writeStructEnd()
28429
 
28430
  def validate(self):
28431
    return
28432
 
28433
 
28434
  def __repr__(self):
28435
    L = ['%s=%r' % (key, value)
28436
      for key, value in self.__dict__.iteritems()]
28437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28438
 
28439
  def __eq__(self, other):
28440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28441
 
28442
  def __ne__(self, other):
28443
    return not (self == other)
28444
 
28445
class getCountForFlipkartItems_result:
28446
  """
28447
  Attributes:
28448
   - success
28449
  """
28450
 
28451
  thrift_spec = (
28452
    (0, TType.I64, 'success', None, None, ), # 0
28453
  )
28454
 
28455
  def __init__(self, success=None,):
28456
    self.success = success
28457
 
28458
  def read(self, iprot):
28459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28461
      return
28462
    iprot.readStructBegin()
28463
    while True:
28464
      (fname, ftype, fid) = iprot.readFieldBegin()
28465
      if ftype == TType.STOP:
28466
        break
28467
      if fid == 0:
28468
        if ftype == TType.I64:
28469
          self.success = iprot.readI64();
28470
        else:
28471
          iprot.skip(ftype)
28472
      else:
28473
        iprot.skip(ftype)
28474
      iprot.readFieldEnd()
28475
    iprot.readStructEnd()
28476
 
28477
  def write(self, oprot):
28478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28480
      return
28481
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28482
    if self.success is not None:
28483
      oprot.writeFieldBegin('success', TType.I64, 0)
28484
      oprot.writeI64(self.success)
28485
      oprot.writeFieldEnd()
28486
    oprot.writeFieldStop()
28487
    oprot.writeStructEnd()
28488
 
28489
  def validate(self):
28490
    return
28491
 
28492
 
28493
  def __repr__(self):
28494
    L = ['%s=%r' % (key, value)
28495
      for key, value in self.__dict__.iteritems()]
28496
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28497
 
28498
  def __eq__(self, other):
28499
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28500
 
28501
  def __ne__(self, other):
28502
    return not (self == other)
28503
 
28504
class getFlipkartSearchResultCount_args:
28505
  """
28506
  Attributes:
28507
   - searchTerm
28508
  """
28509
 
28510
  thrift_spec = (
28511
    None, # 0
28512
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28513
  )
28514
 
28515
  def __init__(self, searchTerm=None,):
28516
    self.searchTerm = searchTerm
28517
 
28518
  def read(self, iprot):
28519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28521
      return
28522
    iprot.readStructBegin()
28523
    while True:
28524
      (fname, ftype, fid) = iprot.readFieldBegin()
28525
      if ftype == TType.STOP:
28526
        break
28527
      if fid == 1:
28528
        if ftype == TType.LIST:
28529
          self.searchTerm = []
12567 amit.gupta 28530
          (_etype618, _size615) = iprot.readListBegin()
28531
          for _i619 in xrange(_size615):
28532
            _elem620 = iprot.readString();
28533
            self.searchTerm.append(_elem620)
10097 kshitij.so 28534
          iprot.readListEnd()
28535
        else:
28536
          iprot.skip(ftype)
28537
      else:
28538
        iprot.skip(ftype)
28539
      iprot.readFieldEnd()
28540
    iprot.readStructEnd()
28541
 
28542
  def write(self, oprot):
28543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28545
      return
28546
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28547
    if self.searchTerm is not None:
28548
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28549
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28550
      for iter621 in self.searchTerm:
28551
        oprot.writeString(iter621)
10097 kshitij.so 28552
      oprot.writeListEnd()
28553
      oprot.writeFieldEnd()
28554
    oprot.writeFieldStop()
28555
    oprot.writeStructEnd()
28556
 
28557
  def validate(self):
28558
    return
28559
 
28560
 
28561
  def __repr__(self):
28562
    L = ['%s=%r' % (key, value)
28563
      for key, value in self.__dict__.iteritems()]
28564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28565
 
28566
  def __eq__(self, other):
28567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28568
 
28569
  def __ne__(self, other):
28570
    return not (self == other)
28571
 
28572
class getFlipkartSearchResultCount_result:
28573
  """
28574
  Attributes:
28575
   - success
28576
  """
28577
 
28578
  thrift_spec = (
28579
    (0, TType.I64, 'success', None, None, ), # 0
28580
  )
28581
 
28582
  def __init__(self, success=None,):
28583
    self.success = success
28584
 
28585
  def read(self, iprot):
28586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28588
      return
28589
    iprot.readStructBegin()
28590
    while True:
28591
      (fname, ftype, fid) = iprot.readFieldBegin()
28592
      if ftype == TType.STOP:
28593
        break
28594
      if fid == 0:
28595
        if ftype == TType.I64:
28596
          self.success = iprot.readI64();
28597
        else:
28598
          iprot.skip(ftype)
28599
      else:
28600
        iprot.skip(ftype)
28601
      iprot.readFieldEnd()
28602
    iprot.readStructEnd()
28603
 
28604
  def write(self, oprot):
28605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28607
      return
28608
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28609
    if self.success is not None:
28610
      oprot.writeFieldBegin('success', TType.I64, 0)
28611
      oprot.writeI64(self.success)
28612
      oprot.writeFieldEnd()
28613
    oprot.writeFieldStop()
28614
    oprot.writeStructEnd()
28615
 
28616
  def validate(self):
28617
    return
28618
 
28619
 
28620
  def __repr__(self):
28621
    L = ['%s=%r' % (key, value)
28622
      for key, value in self.__dict__.iteritems()]
28623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28624
 
28625
  def __eq__(self, other):
28626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28627
 
28628
  def __ne__(self, other):
28629
    return not (self == other)
28630
 
28631
class getAllFkItems_args:
28632
 
28633
  thrift_spec = (
28634
  )
28635
 
28636
  def read(self, iprot):
28637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28639
      return
28640
    iprot.readStructBegin()
28641
    while True:
28642
      (fname, ftype, fid) = iprot.readFieldBegin()
28643
      if ftype == TType.STOP:
28644
        break
28645
      else:
28646
        iprot.skip(ftype)
28647
      iprot.readFieldEnd()
28648
    iprot.readStructEnd()
28649
 
28650
  def write(self, oprot):
28651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28653
      return
28654
    oprot.writeStructBegin('getAllFkItems_args')
28655
    oprot.writeFieldStop()
28656
    oprot.writeStructEnd()
28657
 
28658
  def validate(self):
28659
    return
28660
 
28661
 
28662
  def __repr__(self):
28663
    L = ['%s=%r' % (key, value)
28664
      for key, value in self.__dict__.iteritems()]
28665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28666
 
28667
  def __eq__(self, other):
28668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28669
 
28670
  def __ne__(self, other):
28671
    return not (self == other)
28672
 
28673
class getAllFkItems_result:
28674
  """
28675
  Attributes:
28676
   - success
28677
  """
28678
 
28679
  thrift_spec = (
28680
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28681
  )
28682
 
28683
  def __init__(self, success=None,):
28684
    self.success = success
28685
 
28686
  def read(self, iprot):
28687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28689
      return
28690
    iprot.readStructBegin()
28691
    while True:
28692
      (fname, ftype, fid) = iprot.readFieldBegin()
28693
      if ftype == TType.STOP:
28694
        break
28695
      if fid == 0:
28696
        if ftype == TType.LIST:
28697
          self.success = []
12567 amit.gupta 28698
          (_etype625, _size622) = iprot.readListBegin()
28699
          for _i626 in xrange(_size622):
28700
            _elem627 = FlipkartItemDetails()
28701
            _elem627.read(iprot)
28702
            self.success.append(_elem627)
10097 kshitij.so 28703
          iprot.readListEnd()
28704
        else:
28705
          iprot.skip(ftype)
28706
      else:
28707
        iprot.skip(ftype)
28708
      iprot.readFieldEnd()
28709
    iprot.readStructEnd()
28710
 
28711
  def write(self, oprot):
28712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28714
      return
28715
    oprot.writeStructBegin('getAllFkItems_result')
28716
    if self.success is not None:
28717
      oprot.writeFieldBegin('success', TType.LIST, 0)
28718
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28719
      for iter628 in self.success:
28720
        iter628.write(oprot)
10097 kshitij.so 28721
      oprot.writeListEnd()
28722
      oprot.writeFieldEnd()
28723
    oprot.writeFieldStop()
28724
    oprot.writeStructEnd()
28725
 
28726
  def validate(self):
28727
    return
28728
 
28729
 
28730
  def __repr__(self):
28731
    L = ['%s=%r' % (key, value)
28732
      for key, value in self.__dict__.iteritems()]
28733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28734
 
28735
  def __eq__(self, other):
28736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28737
 
28738
  def __ne__(self, other):
28739
    return not (self == other)
10140 vikram.rag 28740
 
28741
class getFlipkartItemBySkyAtFlipkart_args:
28742
  """
28743
  Attributes:
28744
   - sku
28745
  """
28746
 
11531 vikram.rag 28747
  thrift_spec = None
10140 vikram.rag 28748
  def __init__(self, sku=None,):
28749
    self.sku = sku
28750
 
28751
  def read(self, iprot):
28752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28754
      return
28755
    iprot.readStructBegin()
28756
    while True:
28757
      (fname, ftype, fid) = iprot.readFieldBegin()
28758
      if ftype == TType.STOP:
28759
        break
11531 vikram.rag 28760
      if fid == -1:
10140 vikram.rag 28761
        if ftype == TType.STRING:
28762
          self.sku = iprot.readString();
28763
        else:
28764
          iprot.skip(ftype)
28765
      else:
28766
        iprot.skip(ftype)
28767
      iprot.readFieldEnd()
28768
    iprot.readStructEnd()
28769
 
28770
  def write(self, oprot):
28771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28773
      return
28774
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
28775
    if self.sku is not None:
11531 vikram.rag 28776
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 28777
      oprot.writeString(self.sku)
28778
      oprot.writeFieldEnd()
28779
    oprot.writeFieldStop()
28780
    oprot.writeStructEnd()
28781
 
28782
  def validate(self):
28783
    return
28784
 
28785
 
28786
  def __repr__(self):
28787
    L = ['%s=%r' % (key, value)
28788
      for key, value in self.__dict__.iteritems()]
28789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28790
 
28791
  def __eq__(self, other):
28792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28793
 
28794
  def __ne__(self, other):
28795
    return not (self == other)
28796
 
28797
class getFlipkartItemBySkyAtFlipkart_result:
28798
  """
28799
  Attributes:
28800
   - success
28801
  """
28802
 
28803
  thrift_spec = (
28804
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28805
  )
28806
 
28807
  def __init__(self, success=None,):
28808
    self.success = success
28809
 
28810
  def read(self, iprot):
28811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28813
      return
28814
    iprot.readStructBegin()
28815
    while True:
28816
      (fname, ftype, fid) = iprot.readFieldBegin()
28817
      if ftype == TType.STOP:
28818
        break
28819
      if fid == 0:
28820
        if ftype == TType.STRUCT:
28821
          self.success = FlipkartItem()
28822
          self.success.read(iprot)
28823
        else:
28824
          iprot.skip(ftype)
28825
      else:
28826
        iprot.skip(ftype)
28827
      iprot.readFieldEnd()
28828
    iprot.readStructEnd()
28829
 
28830
  def write(self, oprot):
28831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28833
      return
28834
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
28835
    if self.success is not None:
28836
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28837
      self.success.write(oprot)
28838
      oprot.writeFieldEnd()
28839
    oprot.writeFieldStop()
28840
    oprot.writeStructEnd()
28841
 
28842
  def validate(self):
28843
    return
28844
 
28845
 
28846
  def __repr__(self):
28847
    L = ['%s=%r' % (key, value)
28848
      for key, value in self.__dict__.iteritems()]
28849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28850
 
28851
  def __eq__(self, other):
28852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28853
 
28854
  def __ne__(self, other):
28855
    return not (self == other)
10909 vikram.rag 28856
 
11015 kshitij.so 28857
class getMarketplaceHistory_args:
28858
  """
28859
  Attributes:
28860
   - source
28861
   - offset
28862
   - itemId
28863
  """
10909 vikram.rag 28864
 
28865
  thrift_spec = (
11015 kshitij.so 28866
    None, # 0
28867
    (1, TType.I64, 'source', None, None, ), # 1
28868
    (2, TType.I64, 'offset', None, None, ), # 2
28869
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 28870
  )
28871
 
11015 kshitij.so 28872
  def __init__(self, source=None, offset=None, itemId=None,):
28873
    self.source = source
28874
    self.offset = offset
28875
    self.itemId = itemId
28876
 
10909 vikram.rag 28877
  def read(self, iprot):
28878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28880
      return
28881
    iprot.readStructBegin()
28882
    while True:
28883
      (fname, ftype, fid) = iprot.readFieldBegin()
28884
      if ftype == TType.STOP:
28885
        break
11015 kshitij.so 28886
      if fid == 1:
28887
        if ftype == TType.I64:
28888
          self.source = iprot.readI64();
28889
        else:
28890
          iprot.skip(ftype)
28891
      elif fid == 2:
28892
        if ftype == TType.I64:
28893
          self.offset = iprot.readI64();
28894
        else:
28895
          iprot.skip(ftype)
28896
      elif fid == 3:
28897
        if ftype == TType.I64:
28898
          self.itemId = iprot.readI64();
28899
        else:
28900
          iprot.skip(ftype)
10909 vikram.rag 28901
      else:
28902
        iprot.skip(ftype)
28903
      iprot.readFieldEnd()
28904
    iprot.readStructEnd()
28905
 
28906
  def write(self, oprot):
28907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28909
      return
11015 kshitij.so 28910
    oprot.writeStructBegin('getMarketplaceHistory_args')
28911
    if self.source is not None:
28912
      oprot.writeFieldBegin('source', TType.I64, 1)
28913
      oprot.writeI64(self.source)
28914
      oprot.writeFieldEnd()
28915
    if self.offset is not None:
28916
      oprot.writeFieldBegin('offset', TType.I64, 2)
28917
      oprot.writeI64(self.offset)
28918
      oprot.writeFieldEnd()
28919
    if self.itemId is not None:
28920
      oprot.writeFieldBegin('itemId', TType.I64, 3)
28921
      oprot.writeI64(self.itemId)
28922
      oprot.writeFieldEnd()
10909 vikram.rag 28923
    oprot.writeFieldStop()
28924
    oprot.writeStructEnd()
28925
 
28926
  def validate(self):
28927
    return
28928
 
28929
 
28930
  def __repr__(self):
28931
    L = ['%s=%r' % (key, value)
28932
      for key, value in self.__dict__.iteritems()]
28933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28934
 
28935
  def __eq__(self, other):
28936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28937
 
28938
  def __ne__(self, other):
28939
    return not (self == other)
28940
 
11015 kshitij.so 28941
class getMarketplaceHistory_result:
10909 vikram.rag 28942
  """
28943
  Attributes:
28944
   - success
28945
  """
28946
 
28947
  thrift_spec = (
11015 kshitij.so 28948
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 28949
  )
28950
 
28951
  def __init__(self, success=None,):
28952
    self.success = success
28953
 
28954
  def read(self, iprot):
28955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28957
      return
28958
    iprot.readStructBegin()
28959
    while True:
28960
      (fname, ftype, fid) = iprot.readFieldBegin()
28961
      if ftype == TType.STOP:
28962
        break
28963
      if fid == 0:
28964
        if ftype == TType.LIST:
28965
          self.success = []
12567 amit.gupta 28966
          (_etype632, _size629) = iprot.readListBegin()
28967
          for _i633 in xrange(_size629):
28968
            _elem634 = MarketplaceHistory()
28969
            _elem634.read(iprot)
28970
            self.success.append(_elem634)
10909 vikram.rag 28971
          iprot.readListEnd()
28972
        else:
28973
          iprot.skip(ftype)
28974
      else:
28975
        iprot.skip(ftype)
28976
      iprot.readFieldEnd()
28977
    iprot.readStructEnd()
28978
 
28979
  def write(self, oprot):
28980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28982
      return
11015 kshitij.so 28983
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 28984
    if self.success is not None:
28985
      oprot.writeFieldBegin('success', TType.LIST, 0)
28986
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28987
      for iter635 in self.success:
28988
        iter635.write(oprot)
10909 vikram.rag 28989
      oprot.writeListEnd()
28990
      oprot.writeFieldEnd()
28991
    oprot.writeFieldStop()
28992
    oprot.writeStructEnd()
28993
 
28994
  def validate(self):
28995
    return
28996
 
28997
 
28998
  def __repr__(self):
28999
    L = ['%s=%r' % (key, value)
29000
      for key, value in self.__dict__.iteritems()]
29001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29002
 
29003
  def __eq__(self, other):
29004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29005
 
29006
  def __ne__(self, other):
29007
    return not (self == other)
10924 vikram.rag 29008
 
11015 kshitij.so 29009
class getAllFbbListedItems_args:
10924 vikram.rag 29010
 
29011
  thrift_spec = (
29012
  )
29013
 
29014
  def read(self, iprot):
29015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29017
      return
29018
    iprot.readStructBegin()
29019
    while True:
29020
      (fname, ftype, fid) = iprot.readFieldBegin()
29021
      if ftype == TType.STOP:
29022
        break
29023
      else:
29024
        iprot.skip(ftype)
29025
      iprot.readFieldEnd()
29026
    iprot.readStructEnd()
29027
 
29028
  def write(self, oprot):
29029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29031
      return
11015 kshitij.so 29032
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 29033
    oprot.writeFieldStop()
29034
    oprot.writeStructEnd()
29035
 
29036
  def validate(self):
29037
    return
29038
 
29039
 
29040
  def __repr__(self):
29041
    L = ['%s=%r' % (key, value)
29042
      for key, value in self.__dict__.iteritems()]
29043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29044
 
29045
  def __eq__(self, other):
29046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29047
 
29048
  def __ne__(self, other):
29049
    return not (self == other)
29050
 
11015 kshitij.so 29051
class getAllFbbListedItems_result:
10924 vikram.rag 29052
  """
29053
  Attributes:
29054
   - success
29055
  """
29056
 
29057
  thrift_spec = (
29058
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29059
  )
29060
 
29061
  def __init__(self, success=None,):
29062
    self.success = success
29063
 
29064
  def read(self, iprot):
29065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29067
      return
29068
    iprot.readStructBegin()
29069
    while True:
29070
      (fname, ftype, fid) = iprot.readFieldBegin()
29071
      if ftype == TType.STOP:
29072
        break
29073
      if fid == 0:
29074
        if ftype == TType.LIST:
29075
          self.success = []
12567 amit.gupta 29076
          (_etype639, _size636) = iprot.readListBegin()
29077
          for _i640 in xrange(_size636):
29078
            _elem641 = Amazonlisted()
29079
            _elem641.read(iprot)
29080
            self.success.append(_elem641)
10924 vikram.rag 29081
          iprot.readListEnd()
29082
        else:
29083
          iprot.skip(ftype)
29084
      else:
29085
        iprot.skip(ftype)
29086
      iprot.readFieldEnd()
29087
    iprot.readStructEnd()
29088
 
29089
  def write(self, oprot):
29090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29092
      return
11015 kshitij.so 29093
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 29094
    if self.success is not None:
29095
      oprot.writeFieldBegin('success', TType.LIST, 0)
29096
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29097
      for iter642 in self.success:
29098
        iter642.write(oprot)
10924 vikram.rag 29099
      oprot.writeListEnd()
29100
      oprot.writeFieldEnd()
29101
    oprot.writeFieldStop()
29102
    oprot.writeStructEnd()
29103
 
29104
  def validate(self):
29105
    return
29106
 
29107
 
29108
  def __repr__(self):
29109
    L = ['%s=%r' % (key, value)
29110
      for key, value in self.__dict__.iteritems()]
29111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29112
 
29113
  def __eq__(self, other):
29114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29115
 
29116
  def __ne__(self, other):
29117
    return not (self == other)
11015 kshitij.so 29118
 
29119
class getAllFbbPricingItems_args:
29120
 
29121
  thrift_spec = (
29122
  )
29123
 
29124
  def read(self, iprot):
29125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29127
      return
29128
    iprot.readStructBegin()
29129
    while True:
29130
      (fname, ftype, fid) = iprot.readFieldBegin()
29131
      if ftype == TType.STOP:
29132
        break
29133
      else:
29134
        iprot.skip(ftype)
29135
      iprot.readFieldEnd()
29136
    iprot.readStructEnd()
29137
 
29138
  def write(self, oprot):
29139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29141
      return
29142
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29143
    oprot.writeFieldStop()
29144
    oprot.writeStructEnd()
29145
 
29146
  def validate(self):
29147
    return
29148
 
29149
 
29150
  def __repr__(self):
29151
    L = ['%s=%r' % (key, value)
29152
      for key, value in self.__dict__.iteritems()]
29153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29154
 
29155
  def __eq__(self, other):
29156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29157
 
29158
  def __ne__(self, other):
29159
    return not (self == other)
29160
 
29161
class getAllFbbPricingItems_result:
29162
  """
29163
  Attributes:
29164
   - success
29165
  """
29166
 
29167
  thrift_spec = (
29168
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29169
  )
29170
 
29171
  def __init__(self, success=None,):
29172
    self.success = success
29173
 
29174
  def read(self, iprot):
29175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29177
      return
29178
    iprot.readStructBegin()
29179
    while True:
29180
      (fname, ftype, fid) = iprot.readFieldBegin()
29181
      if ftype == TType.STOP:
29182
        break
29183
      if fid == 0:
29184
        if ftype == TType.LIST:
29185
          self.success = []
12567 amit.gupta 29186
          (_etype646, _size643) = iprot.readListBegin()
29187
          for _i647 in xrange(_size643):
29188
            _elem648 = Amazonlisted()
29189
            _elem648.read(iprot)
29190
            self.success.append(_elem648)
11015 kshitij.so 29191
          iprot.readListEnd()
29192
        else:
29193
          iprot.skip(ftype)
29194
      else:
29195
        iprot.skip(ftype)
29196
      iprot.readFieldEnd()
29197
    iprot.readStructEnd()
29198
 
29199
  def write(self, oprot):
29200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29202
      return
29203
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29204
    if self.success is not None:
29205
      oprot.writeFieldBegin('success', TType.LIST, 0)
29206
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29207
      for iter649 in self.success:
29208
        iter649.write(oprot)
11015 kshitij.so 29209
      oprot.writeListEnd()
29210
      oprot.writeFieldEnd()
29211
    oprot.writeFieldStop()
29212
    oprot.writeStructEnd()
29213
 
29214
  def validate(self):
29215
    return
29216
 
29217
 
29218
  def __repr__(self):
29219
    L = ['%s=%r' % (key, value)
29220
      for key, value in self.__dict__.iteritems()]
29221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29222
 
29223
  def __eq__(self, other):
29224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29225
 
29226
  def __ne__(self, other):
29227
    return not (self == other)
29228
 
29229
class getCountForMarketplaceHistory_args:
29230
  """
29231
  Attributes:
29232
   - source
29233
   - itemId
29234
  """
29235
 
29236
  thrift_spec = (
29237
    None, # 0
29238
    (1, TType.I64, 'source', None, None, ), # 1
29239
    (2, TType.I64, 'itemId', None, None, ), # 2
29240
  )
29241
 
29242
  def __init__(self, source=None, itemId=None,):
29243
    self.source = source
29244
    self.itemId = itemId
29245
 
29246
  def read(self, iprot):
29247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29249
      return
29250
    iprot.readStructBegin()
29251
    while True:
29252
      (fname, ftype, fid) = iprot.readFieldBegin()
29253
      if ftype == TType.STOP:
29254
        break
29255
      if fid == 1:
29256
        if ftype == TType.I64:
29257
          self.source = iprot.readI64();
29258
        else:
29259
          iprot.skip(ftype)
29260
      elif fid == 2:
29261
        if ftype == TType.I64:
29262
          self.itemId = iprot.readI64();
29263
        else:
29264
          iprot.skip(ftype)
29265
      else:
29266
        iprot.skip(ftype)
29267
      iprot.readFieldEnd()
29268
    iprot.readStructEnd()
29269
 
29270
  def write(self, oprot):
29271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29273
      return
29274
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29275
    if self.source is not None:
29276
      oprot.writeFieldBegin('source', TType.I64, 1)
29277
      oprot.writeI64(self.source)
29278
      oprot.writeFieldEnd()
29279
    if self.itemId is not None:
29280
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29281
      oprot.writeI64(self.itemId)
29282
      oprot.writeFieldEnd()
29283
    oprot.writeFieldStop()
29284
    oprot.writeStructEnd()
29285
 
29286
  def validate(self):
29287
    return
29288
 
29289
 
29290
  def __repr__(self):
29291
    L = ['%s=%r' % (key, value)
29292
      for key, value in self.__dict__.iteritems()]
29293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29294
 
29295
  def __eq__(self, other):
29296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29297
 
29298
  def __ne__(self, other):
29299
    return not (self == other)
29300
 
29301
class getCountForMarketplaceHistory_result:
29302
  """
29303
  Attributes:
29304
   - success
29305
  """
29306
 
29307
  thrift_spec = (
29308
    (0, TType.I64, 'success', None, None, ), # 0
29309
  )
29310
 
29311
  def __init__(self, success=None,):
29312
    self.success = success
29313
 
29314
  def read(self, iprot):
29315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29317
      return
29318
    iprot.readStructBegin()
29319
    while True:
29320
      (fname, ftype, fid) = iprot.readFieldBegin()
29321
      if ftype == TType.STOP:
29322
        break
29323
      if fid == 0:
29324
        if ftype == TType.I64:
29325
          self.success = iprot.readI64();
29326
        else:
29327
          iprot.skip(ftype)
29328
      else:
29329
        iprot.skip(ftype)
29330
      iprot.readFieldEnd()
29331
    iprot.readStructEnd()
29332
 
29333
  def write(self, oprot):
29334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29336
      return
29337
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29338
    if self.success is not None:
29339
      oprot.writeFieldBegin('success', TType.I64, 0)
29340
      oprot.writeI64(self.success)
29341
      oprot.writeFieldEnd()
29342
    oprot.writeFieldStop()
29343
    oprot.writeStructEnd()
29344
 
29345
  def validate(self):
29346
    return
29347
 
29348
 
29349
  def __repr__(self):
29350
    L = ['%s=%r' % (key, value)
29351
      for key, value in self.__dict__.iteritems()]
29352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29353
 
29354
  def __eq__(self, other):
29355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29356
 
29357
  def __ne__(self, other):
29358
    return not (self == other)
29359
 
29360
class getMarketplaceHistoryByDate_args:
29361
  """
29362
  Attributes:
29363
   - source
29364
   - startDate
29365
   - endDate
29366
   - offset
29367
   - limit
29368
   - itemId
29369
  """
29370
 
29371
  thrift_spec = (
29372
    None, # 0
29373
    (1, TType.I64, 'source', None, None, ), # 1
29374
    (2, TType.I64, 'startDate', None, None, ), # 2
29375
    (3, TType.I64, 'endDate', None, None, ), # 3
29376
    (4, TType.I64, 'offset', None, None, ), # 4
29377
    (5, TType.I64, 'limit', None, None, ), # 5
29378
    (6, TType.I64, 'itemId', None, None, ), # 6
29379
  )
29380
 
29381
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29382
    self.source = source
29383
    self.startDate = startDate
29384
    self.endDate = endDate
29385
    self.offset = offset
29386
    self.limit = limit
29387
    self.itemId = itemId
29388
 
29389
  def read(self, iprot):
29390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29392
      return
29393
    iprot.readStructBegin()
29394
    while True:
29395
      (fname, ftype, fid) = iprot.readFieldBegin()
29396
      if ftype == TType.STOP:
29397
        break
29398
      if fid == 1:
29399
        if ftype == TType.I64:
29400
          self.source = iprot.readI64();
29401
        else:
29402
          iprot.skip(ftype)
29403
      elif fid == 2:
29404
        if ftype == TType.I64:
29405
          self.startDate = iprot.readI64();
29406
        else:
29407
          iprot.skip(ftype)
29408
      elif fid == 3:
29409
        if ftype == TType.I64:
29410
          self.endDate = iprot.readI64();
29411
        else:
29412
          iprot.skip(ftype)
29413
      elif fid == 4:
29414
        if ftype == TType.I64:
29415
          self.offset = iprot.readI64();
29416
        else:
29417
          iprot.skip(ftype)
29418
      elif fid == 5:
29419
        if ftype == TType.I64:
29420
          self.limit = iprot.readI64();
29421
        else:
29422
          iprot.skip(ftype)
29423
      elif fid == 6:
29424
        if ftype == TType.I64:
29425
          self.itemId = iprot.readI64();
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_args')
29438
    if self.source is not None:
29439
      oprot.writeFieldBegin('source', TType.I64, 1)
29440
      oprot.writeI64(self.source)
29441
      oprot.writeFieldEnd()
29442
    if self.startDate is not None:
29443
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29444
      oprot.writeI64(self.startDate)
29445
      oprot.writeFieldEnd()
29446
    if self.endDate is not None:
29447
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29448
      oprot.writeI64(self.endDate)
29449
      oprot.writeFieldEnd()
29450
    if self.offset is not None:
29451
      oprot.writeFieldBegin('offset', TType.I64, 4)
29452
      oprot.writeI64(self.offset)
29453
      oprot.writeFieldEnd()
29454
    if self.limit is not None:
29455
      oprot.writeFieldBegin('limit', TType.I64, 5)
29456
      oprot.writeI64(self.limit)
29457
      oprot.writeFieldEnd()
29458
    if self.itemId is not None:
29459
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29460
      oprot.writeI64(self.itemId)
29461
      oprot.writeFieldEnd()
29462
    oprot.writeFieldStop()
29463
    oprot.writeStructEnd()
29464
 
29465
  def validate(self):
29466
    return
29467
 
29468
 
29469
  def __repr__(self):
29470
    L = ['%s=%r' % (key, value)
29471
      for key, value in self.__dict__.iteritems()]
29472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29473
 
29474
  def __eq__(self, other):
29475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29476
 
29477
  def __ne__(self, other):
29478
    return not (self == other)
29479
 
29480
class getMarketplaceHistoryByDate_result:
29481
  """
29482
  Attributes:
29483
   - success
29484
  """
29485
 
29486
  thrift_spec = (
29487
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29488
  )
29489
 
29490
  def __init__(self, success=None,):
29491
    self.success = success
29492
 
29493
  def read(self, iprot):
29494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29496
      return
29497
    iprot.readStructBegin()
29498
    while True:
29499
      (fname, ftype, fid) = iprot.readFieldBegin()
29500
      if ftype == TType.STOP:
29501
        break
29502
      if fid == 0:
29503
        if ftype == TType.LIST:
29504
          self.success = []
12567 amit.gupta 29505
          (_etype653, _size650) = iprot.readListBegin()
29506
          for _i654 in xrange(_size650):
29507
            _elem655 = MarketplaceHistory()
29508
            _elem655.read(iprot)
29509
            self.success.append(_elem655)
11015 kshitij.so 29510
          iprot.readListEnd()
29511
        else:
29512
          iprot.skip(ftype)
29513
      else:
29514
        iprot.skip(ftype)
29515
      iprot.readFieldEnd()
29516
    iprot.readStructEnd()
29517
 
29518
  def write(self, oprot):
29519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29521
      return
29522
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29523
    if self.success is not None:
29524
      oprot.writeFieldBegin('success', TType.LIST, 0)
29525
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29526
      for iter656 in self.success:
29527
        iter656.write(oprot)
11015 kshitij.so 29528
      oprot.writeListEnd()
29529
      oprot.writeFieldEnd()
29530
    oprot.writeFieldStop()
29531
    oprot.writeStructEnd()
29532
 
29533
  def validate(self):
29534
    return
29535
 
29536
 
29537
  def __repr__(self):
29538
    L = ['%s=%r' % (key, value)
29539
      for key, value in self.__dict__.iteritems()]
29540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29541
 
29542
  def __eq__(self, other):
29543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29544
 
29545
  def __ne__(self, other):
29546
    return not (self == other)
11531 vikram.rag 29547
 
29548
class getPrivateDealDetails_args:
29549
  """
29550
  Attributes:
29551
   - item_id
29552
  """
29553
 
29554
  thrift_spec = (
29555
    None, # 0
29556
    (1, TType.I64, 'item_id', None, None, ), # 1
29557
  )
29558
 
29559
  def __init__(self, item_id=None,):
29560
    self.item_id = item_id
29561
 
29562
  def read(self, iprot):
29563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29565
      return
29566
    iprot.readStructBegin()
29567
    while True:
29568
      (fname, ftype, fid) = iprot.readFieldBegin()
29569
      if ftype == TType.STOP:
29570
        break
29571
      if fid == 1:
29572
        if ftype == TType.I64:
29573
          self.item_id = iprot.readI64();
29574
        else:
29575
          iprot.skip(ftype)
29576
      else:
29577
        iprot.skip(ftype)
29578
      iprot.readFieldEnd()
29579
    iprot.readStructEnd()
29580
 
29581
  def write(self, oprot):
29582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29584
      return
29585
    oprot.writeStructBegin('getPrivateDealDetails_args')
29586
    if self.item_id is not None:
29587
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29588
      oprot.writeI64(self.item_id)
29589
      oprot.writeFieldEnd()
29590
    oprot.writeFieldStop()
29591
    oprot.writeStructEnd()
29592
 
29593
  def validate(self):
29594
    return
29595
 
29596
 
29597
  def __repr__(self):
29598
    L = ['%s=%r' % (key, value)
29599
      for key, value in self.__dict__.iteritems()]
29600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29601
 
29602
  def __eq__(self, other):
29603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29604
 
29605
  def __ne__(self, other):
29606
    return not (self == other)
29607
 
29608
class getPrivateDealDetails_result:
29609
  """
29610
  Attributes:
29611
   - success
29612
  """
29613
 
29614
  thrift_spec = (
29615
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29616
  )
29617
 
29618
  def __init__(self, success=None,):
29619
    self.success = success
29620
 
29621
  def read(self, iprot):
29622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29624
      return
29625
    iprot.readStructBegin()
29626
    while True:
29627
      (fname, ftype, fid) = iprot.readFieldBegin()
29628
      if ftype == TType.STOP:
29629
        break
29630
      if fid == 0:
29631
        if ftype == TType.STRUCT:
29632
          self.success = PrivateDeal()
29633
          self.success.read(iprot)
29634
        else:
29635
          iprot.skip(ftype)
29636
      else:
29637
        iprot.skip(ftype)
29638
      iprot.readFieldEnd()
29639
    iprot.readStructEnd()
29640
 
29641
  def write(self, oprot):
29642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29644
      return
29645
    oprot.writeStructBegin('getPrivateDealDetails_result')
29646
    if self.success is not None:
29647
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29648
      self.success.write(oprot)
29649
      oprot.writeFieldEnd()
29650
    oprot.writeFieldStop()
29651
    oprot.writeStructEnd()
29652
 
29653
  def validate(self):
29654
    return
29655
 
29656
 
29657
  def __repr__(self):
29658
    L = ['%s=%r' % (key, value)
29659
      for key, value in self.__dict__.iteritems()]
29660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29661
 
29662
  def __eq__(self, other):
29663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29664
 
29665
  def __ne__(self, other):
29666
    return not (self == other)
29667
 
29668
class getPrivateDealItems_args:
29669
  """
29670
  Attributes:
29671
   - offset
29672
   - limit
29673
  """
29674
 
29675
  thrift_spec = (
29676
    None, # 0
29677
    (1, TType.I64, 'offset', None, None, ), # 1
29678
    (2, TType.I64, 'limit', None, None, ), # 2
29679
  )
29680
 
29681
  def __init__(self, offset=None, limit=None,):
29682
    self.offset = offset
29683
    self.limit = limit
29684
 
29685
  def read(self, iprot):
29686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29688
      return
29689
    iprot.readStructBegin()
29690
    while True:
29691
      (fname, ftype, fid) = iprot.readFieldBegin()
29692
      if ftype == TType.STOP:
29693
        break
29694
      if fid == 1:
29695
        if ftype == TType.I64:
29696
          self.offset = iprot.readI64();
29697
        else:
29698
          iprot.skip(ftype)
29699
      elif fid == 2:
29700
        if ftype == TType.I64:
29701
          self.limit = iprot.readI64();
29702
        else:
29703
          iprot.skip(ftype)
29704
      else:
29705
        iprot.skip(ftype)
29706
      iprot.readFieldEnd()
29707
    iprot.readStructEnd()
29708
 
29709
  def write(self, oprot):
29710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29712
      return
29713
    oprot.writeStructBegin('getPrivateDealItems_args')
29714
    if self.offset is not None:
29715
      oprot.writeFieldBegin('offset', TType.I64, 1)
29716
      oprot.writeI64(self.offset)
29717
      oprot.writeFieldEnd()
29718
    if self.limit is not None:
29719
      oprot.writeFieldBegin('limit', TType.I64, 2)
29720
      oprot.writeI64(self.limit)
29721
      oprot.writeFieldEnd()
29722
    oprot.writeFieldStop()
29723
    oprot.writeStructEnd()
29724
 
29725
  def validate(self):
29726
    return
29727
 
29728
 
29729
  def __repr__(self):
29730
    L = ['%s=%r' % (key, value)
29731
      for key, value in self.__dict__.iteritems()]
29732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29733
 
29734
  def __eq__(self, other):
29735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29736
 
29737
  def __ne__(self, other):
29738
    return not (self == other)
29739
 
29740
class getPrivateDealItems_result:
29741
  """
29742
  Attributes:
29743
   - success
29744
  """
29745
 
29746
  thrift_spec = (
29747
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
29748
  )
29749
 
29750
  def __init__(self, success=None,):
29751
    self.success = success
29752
 
29753
  def read(self, iprot):
29754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29756
      return
29757
    iprot.readStructBegin()
29758
    while True:
29759
      (fname, ftype, fid) = iprot.readFieldBegin()
29760
      if ftype == TType.STOP:
29761
        break
29762
      if fid == 0:
29763
        if ftype == TType.LIST:
29764
          self.success = []
12567 amit.gupta 29765
          (_etype660, _size657) = iprot.readListBegin()
29766
          for _i661 in xrange(_size657):
29767
            _elem662 = Item()
29768
            _elem662.read(iprot)
29769
            self.success.append(_elem662)
11531 vikram.rag 29770
          iprot.readListEnd()
29771
        else:
29772
          iprot.skip(ftype)
29773
      else:
29774
        iprot.skip(ftype)
29775
      iprot.readFieldEnd()
29776
    iprot.readStructEnd()
29777
 
29778
  def write(self, oprot):
29779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29781
      return
29782
    oprot.writeStructBegin('getPrivateDealItems_result')
29783
    if self.success is not None:
29784
      oprot.writeFieldBegin('success', TType.LIST, 0)
29785
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29786
      for iter663 in self.success:
29787
        iter663.write(oprot)
11531 vikram.rag 29788
      oprot.writeListEnd()
29789
      oprot.writeFieldEnd()
29790
    oprot.writeFieldStop()
29791
    oprot.writeStructEnd()
29792
 
29793
  def validate(self):
29794
    return
29795
 
29796
 
29797
  def __repr__(self):
29798
    L = ['%s=%r' % (key, value)
29799
      for key, value in self.__dict__.iteritems()]
29800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29801
 
29802
  def __eq__(self, other):
29803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29804
 
29805
  def __ne__(self, other):
29806
    return not (self == other)
29807
 
11592 amit.gupta 29808
class getAllActivePrivateDeals_args:
11653 amit.gupta 29809
  """
29810
  Attributes:
29811
   - itemIds
29812
   - daysDelta
29813
  """
11592 amit.gupta 29814
 
29815
  thrift_spec = (
11653 amit.gupta 29816
    None, # 0
29817
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
29818
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 29819
  )
29820
 
11653 amit.gupta 29821
  def __init__(self, itemIds=None, daysDelta=None,):
29822
    self.itemIds = itemIds
29823
    self.daysDelta = daysDelta
29824
 
11592 amit.gupta 29825
  def read(self, iprot):
29826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29828
      return
29829
    iprot.readStructBegin()
29830
    while True:
29831
      (fname, ftype, fid) = iprot.readFieldBegin()
29832
      if ftype == TType.STOP:
29833
        break
11653 amit.gupta 29834
      if fid == 1:
29835
        if ftype == TType.LIST:
29836
          self.itemIds = []
12567 amit.gupta 29837
          (_etype667, _size664) = iprot.readListBegin()
29838
          for _i668 in xrange(_size664):
29839
            _elem669 = iprot.readI64();
29840
            self.itemIds.append(_elem669)
11653 amit.gupta 29841
          iprot.readListEnd()
29842
        else:
29843
          iprot.skip(ftype)
29844
      elif fid == 2:
29845
        if ftype == TType.I64:
29846
          self.daysDelta = iprot.readI64();
29847
        else:
29848
          iprot.skip(ftype)
11592 amit.gupta 29849
      else:
29850
        iprot.skip(ftype)
29851
      iprot.readFieldEnd()
29852
    iprot.readStructEnd()
29853
 
29854
  def write(self, oprot):
29855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29857
      return
29858
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 29859
    if self.itemIds is not None:
29860
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
29861
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 29862
      for iter670 in self.itemIds:
29863
        oprot.writeI64(iter670)
11653 amit.gupta 29864
      oprot.writeListEnd()
29865
      oprot.writeFieldEnd()
29866
    if self.daysDelta is not None:
29867
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
29868
      oprot.writeI64(self.daysDelta)
29869
      oprot.writeFieldEnd()
11592 amit.gupta 29870
    oprot.writeFieldStop()
29871
    oprot.writeStructEnd()
29872
 
29873
  def validate(self):
29874
    return
29875
 
29876
 
29877
  def __repr__(self):
29878
    L = ['%s=%r' % (key, value)
29879
      for key, value in self.__dict__.iteritems()]
29880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29881
 
29882
  def __eq__(self, other):
29883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29884
 
29885
  def __ne__(self, other):
29886
    return not (self == other)
29887
 
29888
class getAllActivePrivateDeals_result:
29889
  """
29890
  Attributes:
29891
   - success
29892
  """
29893
 
29894
  thrift_spec = (
29895
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
29896
  )
29897
 
29898
  def __init__(self, success=None,):
29899
    self.success = success
29900
 
29901
  def read(self, iprot):
29902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29904
      return
29905
    iprot.readStructBegin()
29906
    while True:
29907
      (fname, ftype, fid) = iprot.readFieldBegin()
29908
      if ftype == TType.STOP:
29909
        break
29910
      if fid == 0:
29911
        if ftype == TType.MAP:
29912
          self.success = {}
12567 amit.gupta 29913
          (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() 
29914
          for _i675 in xrange(_size671):
29915
            _key676 = iprot.readI64();
29916
            _val677 = PrivateDeal()
29917
            _val677.read(iprot)
29918
            self.success[_key676] = _val677
11592 amit.gupta 29919
          iprot.readMapEnd()
29920
        else:
29921
          iprot.skip(ftype)
29922
      else:
29923
        iprot.skip(ftype)
29924
      iprot.readFieldEnd()
29925
    iprot.readStructEnd()
29926
 
29927
  def write(self, oprot):
29928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29930
      return
29931
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
29932
    if self.success is not None:
29933
      oprot.writeFieldBegin('success', TType.MAP, 0)
29934
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12567 amit.gupta 29935
      for kiter678,viter679 in self.success.items():
29936
        oprot.writeI64(kiter678)
29937
        viter679.write(oprot)
11592 amit.gupta 29938
      oprot.writeMapEnd()
29939
      oprot.writeFieldEnd()
29940
    oprot.writeFieldStop()
29941
    oprot.writeStructEnd()
29942
 
29943
  def validate(self):
29944
    return
29945
 
29946
 
29947
  def __repr__(self):
29948
    L = ['%s=%r' % (key, value)
29949
      for key, value in self.__dict__.iteritems()]
29950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29951
 
29952
  def __eq__(self, other):
29953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29954
 
29955
  def __ne__(self, other):
29956
    return not (self == other)
29957
 
11531 vikram.rag 29958
class addOrUpdatePrivateDeal_args:
29959
  """
29960
  Attributes:
29961
   - privateDeal
29962
  """
29963
 
29964
  thrift_spec = (
29965
    None, # 0
29966
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
29967
  )
29968
 
29969
  def __init__(self, privateDeal=None,):
29970
    self.privateDeal = privateDeal
29971
 
29972
  def read(self, iprot):
29973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29975
      return
29976
    iprot.readStructBegin()
29977
    while True:
29978
      (fname, ftype, fid) = iprot.readFieldBegin()
29979
      if ftype == TType.STOP:
29980
        break
29981
      if fid == 1:
29982
        if ftype == TType.STRUCT:
29983
          self.privateDeal = PrivateDeal()
29984
          self.privateDeal.read(iprot)
29985
        else:
29986
          iprot.skip(ftype)
29987
      else:
29988
        iprot.skip(ftype)
29989
      iprot.readFieldEnd()
29990
    iprot.readStructEnd()
29991
 
29992
  def write(self, oprot):
29993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29995
      return
29996
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
29997
    if self.privateDeal is not None:
29998
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
29999
      self.privateDeal.write(oprot)
30000
      oprot.writeFieldEnd()
30001
    oprot.writeFieldStop()
30002
    oprot.writeStructEnd()
30003
 
30004
  def validate(self):
30005
    return
30006
 
30007
 
30008
  def __repr__(self):
30009
    L = ['%s=%r' % (key, value)
30010
      for key, value in self.__dict__.iteritems()]
30011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30012
 
30013
  def __eq__(self, other):
30014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30015
 
30016
  def __ne__(self, other):
30017
    return not (self == other)
30018
 
30019
class addOrUpdatePrivateDeal_result:
30020
  """
30021
  Attributes:
30022
   - success
30023
  """
30024
 
30025
  thrift_spec = (
30026
    (0, TType.BOOL, 'success', None, None, ), # 0
30027
  )
30028
 
30029
  def __init__(self, success=None,):
30030
    self.success = success
30031
 
30032
  def read(self, iprot):
30033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30035
      return
30036
    iprot.readStructBegin()
30037
    while True:
30038
      (fname, ftype, fid) = iprot.readFieldBegin()
30039
      if ftype == TType.STOP:
30040
        break
30041
      if fid == 0:
30042
        if ftype == TType.BOOL:
30043
          self.success = iprot.readBool();
30044
        else:
30045
          iprot.skip(ftype)
30046
      else:
30047
        iprot.skip(ftype)
30048
      iprot.readFieldEnd()
30049
    iprot.readStructEnd()
30050
 
30051
  def write(self, oprot):
30052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30054
      return
30055
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
30056
    if self.success is not None:
30057
      oprot.writeFieldBegin('success', TType.BOOL, 0)
30058
      oprot.writeBool(self.success)
30059
      oprot.writeFieldEnd()
30060
    oprot.writeFieldStop()
30061
    oprot.writeStructEnd()
30062
 
30063
  def validate(self):
30064
    return
30065
 
30066
 
30067
  def __repr__(self):
30068
    L = ['%s=%r' % (key, value)
30069
      for key, value in self.__dict__.iteritems()]
30070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30071
 
30072
  def __eq__(self, other):
30073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30074
 
30075
  def __ne__(self, other):
30076
    return not (self == other)
11635 vikram.rag 30077
 
30078
class getPrivateDealsCatalogIds_args:
30079
  """
30080
  Attributes:
30081
   - beginIndex
30082
   - totalItems
30083
  """
30084
 
30085
  thrift_spec = (
30086
    None, # 0
30087
    (1, TType.I64, 'beginIndex', None, None, ), # 1
30088
    (2, TType.I64, 'totalItems', None, None, ), # 2
30089
  )
30090
 
30091
  def __init__(self, beginIndex=None, totalItems=None,):
30092
    self.beginIndex = beginIndex
30093
    self.totalItems = totalItems
30094
 
30095
  def read(self, iprot):
30096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30098
      return
30099
    iprot.readStructBegin()
30100
    while True:
30101
      (fname, ftype, fid) = iprot.readFieldBegin()
30102
      if ftype == TType.STOP:
30103
        break
30104
      if fid == 1:
30105
        if ftype == TType.I64:
30106
          self.beginIndex = iprot.readI64();
30107
        else:
30108
          iprot.skip(ftype)
30109
      elif fid == 2:
30110
        if ftype == TType.I64:
30111
          self.totalItems = iprot.readI64();
30112
        else:
30113
          iprot.skip(ftype)
30114
      else:
30115
        iprot.skip(ftype)
30116
      iprot.readFieldEnd()
30117
    iprot.readStructEnd()
30118
 
30119
  def write(self, oprot):
30120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30122
      return
30123
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
30124
    if self.beginIndex is not None:
30125
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30126
      oprot.writeI64(self.beginIndex)
30127
      oprot.writeFieldEnd()
30128
    if self.totalItems is not None:
30129
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30130
      oprot.writeI64(self.totalItems)
30131
      oprot.writeFieldEnd()
30132
    oprot.writeFieldStop()
30133
    oprot.writeStructEnd()
30134
 
30135
  def validate(self):
30136
    return
30137
 
30138
 
30139
  def __repr__(self):
30140
    L = ['%s=%r' % (key, value)
30141
      for key, value in self.__dict__.iteritems()]
30142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30143
 
30144
  def __eq__(self, other):
30145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30146
 
30147
  def __ne__(self, other):
30148
    return not (self == other)
30149
 
30150
class getPrivateDealsCatalogIds_result:
30151
  """
30152
  Attributes:
30153
   - success
30154
   - cex
30155
  """
30156
 
30157
  thrift_spec = (
30158
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30159
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30160
  )
30161
 
30162
  def __init__(self, success=None, cex=None,):
30163
    self.success = success
30164
    self.cex = cex
30165
 
30166
  def read(self, iprot):
30167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30169
      return
30170
    iprot.readStructBegin()
30171
    while True:
30172
      (fname, ftype, fid) = iprot.readFieldBegin()
30173
      if ftype == TType.STOP:
30174
        break
30175
      if fid == 0:
30176
        if ftype == TType.LIST:
30177
          self.success = []
12567 amit.gupta 30178
          (_etype683, _size680) = iprot.readListBegin()
30179
          for _i684 in xrange(_size680):
30180
            _elem685 = iprot.readI64();
30181
            self.success.append(_elem685)
11635 vikram.rag 30182
          iprot.readListEnd()
30183
        else:
30184
          iprot.skip(ftype)
30185
      elif fid == 1:
30186
        if ftype == TType.STRUCT:
30187
          self.cex = CatalogServiceException()
30188
          self.cex.read(iprot)
30189
        else:
30190
          iprot.skip(ftype)
30191
      else:
30192
        iprot.skip(ftype)
30193
      iprot.readFieldEnd()
30194
    iprot.readStructEnd()
30195
 
30196
  def write(self, oprot):
30197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30199
      return
30200
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30201
    if self.success is not None:
30202
      oprot.writeFieldBegin('success', TType.LIST, 0)
30203
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 30204
      for iter686 in self.success:
30205
        oprot.writeI64(iter686)
11635 vikram.rag 30206
      oprot.writeListEnd()
30207
      oprot.writeFieldEnd()
30208
    if self.cex is not None:
30209
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30210
      self.cex.write(oprot)
30211
      oprot.writeFieldEnd()
30212
    oprot.writeFieldStop()
30213
    oprot.writeStructEnd()
30214
 
30215
  def validate(self):
30216
    return
30217
 
30218
 
30219
  def __repr__(self):
30220
    L = ['%s=%r' % (key, value)
30221
      for key, value in self.__dict__.iteritems()]
30222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30223
 
30224
  def __eq__(self, other):
30225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30226
 
30227
  def __ne__(self, other):
30228
    return not (self == other)
11645 amit.gupta 30229
 
30230
class getPrivateDealsCount_args:
30231
 
30232
  thrift_spec = (
30233
  )
30234
 
30235
  def read(self, iprot):
30236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30238
      return
30239
    iprot.readStructBegin()
30240
    while True:
30241
      (fname, ftype, fid) = iprot.readFieldBegin()
30242
      if ftype == TType.STOP:
30243
        break
30244
      else:
30245
        iprot.skip(ftype)
30246
      iprot.readFieldEnd()
30247
    iprot.readStructEnd()
30248
 
30249
  def write(self, oprot):
30250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30252
      return
30253
    oprot.writeStructBegin('getPrivateDealsCount_args')
30254
    oprot.writeFieldStop()
30255
    oprot.writeStructEnd()
30256
 
30257
  def validate(self):
30258
    return
30259
 
30260
 
30261
  def __repr__(self):
30262
    L = ['%s=%r' % (key, value)
30263
      for key, value in self.__dict__.iteritems()]
30264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30265
 
30266
  def __eq__(self, other):
30267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30268
 
30269
  def __ne__(self, other):
30270
    return not (self == other)
30271
 
30272
class getPrivateDealsCount_result:
30273
  """
30274
  Attributes:
30275
   - success
30276
  """
30277
 
30278
  thrift_spec = (
30279
    (0, TType.I32, 'success', None, None, ), # 0
30280
  )
30281
 
30282
  def __init__(self, success=None,):
30283
    self.success = success
30284
 
30285
  def read(self, iprot):
30286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30288
      return
30289
    iprot.readStructBegin()
30290
    while True:
30291
      (fname, ftype, fid) = iprot.readFieldBegin()
30292
      if ftype == TType.STOP:
30293
        break
30294
      if fid == 0:
30295
        if ftype == TType.I32:
30296
          self.success = iprot.readI32();
30297
        else:
30298
          iprot.skip(ftype)
30299
      else:
30300
        iprot.skip(ftype)
30301
      iprot.readFieldEnd()
30302
    iprot.readStructEnd()
30303
 
30304
  def write(self, oprot):
30305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30307
      return
30308
    oprot.writeStructBegin('getPrivateDealsCount_result')
30309
    if self.success is not None:
30310
      oprot.writeFieldBegin('success', TType.I32, 0)
30311
      oprot.writeI32(self.success)
30312
      oprot.writeFieldEnd()
30313
    oprot.writeFieldStop()
30314
    oprot.writeStructEnd()
30315
 
30316
  def validate(self):
30317
    return
30318
 
30319
 
30320
  def __repr__(self):
30321
    L = ['%s=%r' % (key, value)
30322
      for key, value in self.__dict__.iteritems()]
30323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30324
 
30325
  def __eq__(self, other):
30326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30327
 
30328
  def __ne__(self, other):
30329
    return not (self == other)
11905 kshitij.so 30330
 
30331
class getAmazonOutSyncItems_args:
30332
  """
30333
  Attributes:
30334
   - item_id
30335
  """
30336
 
30337
  thrift_spec = (
30338
    None, # 0
30339
    (1, TType.I64, 'item_id', None, None, ), # 1
30340
  )
30341
 
30342
  def __init__(self, item_id=None,):
30343
    self.item_id = item_id
30344
 
30345
  def read(self, iprot):
30346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30348
      return
30349
    iprot.readStructBegin()
30350
    while True:
30351
      (fname, ftype, fid) = iprot.readFieldBegin()
30352
      if ftype == TType.STOP:
30353
        break
30354
      if fid == 1:
30355
        if ftype == TType.I64:
30356
          self.item_id = iprot.readI64();
30357
        else:
30358
          iprot.skip(ftype)
30359
      else:
30360
        iprot.skip(ftype)
30361
      iprot.readFieldEnd()
30362
    iprot.readStructEnd()
30363
 
30364
  def write(self, oprot):
30365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30367
      return
30368
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30369
    if self.item_id is not None:
30370
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30371
      oprot.writeI64(self.item_id)
30372
      oprot.writeFieldEnd()
30373
    oprot.writeFieldStop()
30374
    oprot.writeStructEnd()
30375
 
30376
  def validate(self):
30377
    return
30378
 
30379
 
30380
  def __repr__(self):
30381
    L = ['%s=%r' % (key, value)
30382
      for key, value in self.__dict__.iteritems()]
30383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30384
 
30385
  def __eq__(self, other):
30386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30387
 
30388
  def __ne__(self, other):
30389
    return not (self == other)
30390
 
30391
class getAmazonOutSyncItems_result:
30392
  """
30393
  Attributes:
30394
   - success
30395
  """
30396
 
30397
  thrift_spec = (
30398
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30399
  )
30400
 
30401
  def __init__(self, success=None,):
30402
    self.success = success
30403
 
30404
  def read(self, iprot):
30405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30407
      return
30408
    iprot.readStructBegin()
30409
    while True:
30410
      (fname, ftype, fid) = iprot.readFieldBegin()
30411
      if ftype == TType.STOP:
30412
        break
30413
      if fid == 0:
30414
        if ftype == TType.STRUCT:
30415
          self.success = AmazonOutOfSync()
30416
          self.success.read(iprot)
30417
        else:
30418
          iprot.skip(ftype)
30419
      else:
30420
        iprot.skip(ftype)
30421
      iprot.readFieldEnd()
30422
    iprot.readStructEnd()
30423
 
30424
  def write(self, oprot):
30425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30427
      return
30428
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30429
    if self.success is not None:
30430
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30431
      self.success.write(oprot)
30432
      oprot.writeFieldEnd()
30433
    oprot.writeFieldStop()
30434
    oprot.writeStructEnd()
30435
 
30436
  def validate(self):
30437
    return
30438
 
30439
 
30440
  def __repr__(self):
30441
    L = ['%s=%r' % (key, value)
30442
      for key, value in self.__dict__.iteritems()]
30443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30444
 
30445
  def __eq__(self, other):
30446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30447
 
30448
  def __ne__(self, other):
30449
    return not (self == other)
30450
 
30451
class getAllPrivateDealsComparison_args:
30452
 
30453
  thrift_spec = (
30454
  )
30455
 
30456
  def read(self, iprot):
30457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30459
      return
30460
    iprot.readStructBegin()
30461
    while True:
30462
      (fname, ftype, fid) = iprot.readFieldBegin()
30463
      if ftype == TType.STOP:
30464
        break
30465
      else:
30466
        iprot.skip(ftype)
30467
      iprot.readFieldEnd()
30468
    iprot.readStructEnd()
30469
 
30470
  def write(self, oprot):
30471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30473
      return
30474
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30475
    oprot.writeFieldStop()
30476
    oprot.writeStructEnd()
30477
 
30478
  def validate(self):
30479
    return
30480
 
30481
 
30482
  def __repr__(self):
30483
    L = ['%s=%r' % (key, value)
30484
      for key, value in self.__dict__.iteritems()]
30485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30486
 
30487
  def __eq__(self, other):
30488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30489
 
30490
  def __ne__(self, other):
30491
    return not (self == other)
30492
 
30493
class getAllPrivateDealsComparison_result:
30494
  """
30495
  Attributes:
30496
   - success
30497
  """
30498
 
30499
  thrift_spec = (
30500
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30501
  )
30502
 
30503
  def __init__(self, success=None,):
30504
    self.success = success
30505
 
30506
  def read(self, iprot):
30507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30509
      return
30510
    iprot.readStructBegin()
30511
    while True:
30512
      (fname, ftype, fid) = iprot.readFieldBegin()
30513
      if ftype == TType.STOP:
30514
        break
30515
      if fid == 0:
30516
        if ftype == TType.LIST:
30517
          self.success = []
12567 amit.gupta 30518
          (_etype690, _size687) = iprot.readListBegin()
30519
          for _i691 in xrange(_size687):
30520
            _elem692 = PdPriceComp()
30521
            _elem692.read(iprot)
30522
            self.success.append(_elem692)
11905 kshitij.so 30523
          iprot.readListEnd()
30524
        else:
30525
          iprot.skip(ftype)
30526
      else:
30527
        iprot.skip(ftype)
30528
      iprot.readFieldEnd()
30529
    iprot.readStructEnd()
30530
 
30531
  def write(self, oprot):
30532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30534
      return
30535
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30536
    if self.success is not None:
30537
      oprot.writeFieldBegin('success', TType.LIST, 0)
30538
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30539
      for iter693 in self.success:
30540
        iter693.write(oprot)
11905 kshitij.so 30541
      oprot.writeListEnd()
30542
      oprot.writeFieldEnd()
30543
    oprot.writeFieldStop()
30544
    oprot.writeStructEnd()
30545
 
30546
  def validate(self):
30547
    return
30548
 
30549
 
30550
  def __repr__(self):
30551
    L = ['%s=%r' % (key, value)
30552
      for key, value in self.__dict__.iteritems()]
30553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30554
 
30555
  def __eq__(self, other):
30556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30557
 
30558
  def __ne__(self, other):
30559
    return not (self == other)
12133 kshitij.so 30560
 
30561
class getAllSnapdealMarketplaceItem_args:
30562
 
30563
  thrift_spec = (
30564
  )
30565
 
30566
  def read(self, iprot):
30567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30569
      return
30570
    iprot.readStructBegin()
30571
    while True:
30572
      (fname, ftype, fid) = iprot.readFieldBegin()
30573
      if ftype == TType.STOP:
30574
        break
30575
      else:
30576
        iprot.skip(ftype)
30577
      iprot.readFieldEnd()
30578
    iprot.readStructEnd()
30579
 
30580
  def write(self, oprot):
30581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30583
      return
30584
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30585
    oprot.writeFieldStop()
30586
    oprot.writeStructEnd()
30587
 
30588
  def validate(self):
30589
    return
30590
 
30591
 
30592
  def __repr__(self):
30593
    L = ['%s=%r' % (key, value)
30594
      for key, value in self.__dict__.iteritems()]
30595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30596
 
30597
  def __eq__(self, other):
30598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30599
 
30600
  def __ne__(self, other):
30601
    return not (self == other)
30602
 
30603
class getAllSnapdealMarketplaceItem_result:
30604
  """
30605
  Attributes:
30606
   - success
30607
  """
30608
 
30609
  thrift_spec = (
30610
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30611
  )
30612
 
30613
  def __init__(self, success=None,):
30614
    self.success = success
30615
 
30616
  def read(self, iprot):
30617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30619
      return
30620
    iprot.readStructBegin()
30621
    while True:
30622
      (fname, ftype, fid) = iprot.readFieldBegin()
30623
      if ftype == TType.STOP:
30624
        break
30625
      if fid == 0:
30626
        if ftype == TType.LIST:
30627
          self.success = []
12567 amit.gupta 30628
          (_etype697, _size694) = iprot.readListBegin()
30629
          for _i698 in xrange(_size694):
30630
            _elem699 = SnapdealItem()
30631
            _elem699.read(iprot)
30632
            self.success.append(_elem699)
12133 kshitij.so 30633
          iprot.readListEnd()
30634
        else:
30635
          iprot.skip(ftype)
30636
      else:
30637
        iprot.skip(ftype)
30638
      iprot.readFieldEnd()
30639
    iprot.readStructEnd()
30640
 
30641
  def write(self, oprot):
30642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30644
      return
30645
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30646
    if self.success is not None:
30647
      oprot.writeFieldBegin('success', TType.LIST, 0)
30648
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30649
      for iter700 in self.success:
30650
        iter700.write(oprot)
12133 kshitij.so 30651
      oprot.writeListEnd()
30652
      oprot.writeFieldEnd()
30653
    oprot.writeFieldStop()
30654
    oprot.writeStructEnd()
30655
 
30656
  def validate(self):
30657
    return
30658
 
30659
 
30660
  def __repr__(self):
30661
    L = ['%s=%r' % (key, value)
30662
      for key, value in self.__dict__.iteritems()]
30663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30664
 
30665
  def __eq__(self, other):
30666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30667
 
30668
  def __ne__(self, other):
30669
    return not (self == other)
30670
 
30671
class getAllFlipkartMarketplaceItem_args:
30672
 
30673
  thrift_spec = (
30674
  )
30675
 
30676
  def read(self, iprot):
30677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30679
      return
30680
    iprot.readStructBegin()
30681
    while True:
30682
      (fname, ftype, fid) = iprot.readFieldBegin()
30683
      if ftype == TType.STOP:
30684
        break
30685
      else:
30686
        iprot.skip(ftype)
30687
      iprot.readFieldEnd()
30688
    iprot.readStructEnd()
30689
 
30690
  def write(self, oprot):
30691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30693
      return
30694
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30695
    oprot.writeFieldStop()
30696
    oprot.writeStructEnd()
30697
 
30698
  def validate(self):
30699
    return
30700
 
30701
 
30702
  def __repr__(self):
30703
    L = ['%s=%r' % (key, value)
30704
      for key, value in self.__dict__.iteritems()]
30705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30706
 
30707
  def __eq__(self, other):
30708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30709
 
30710
  def __ne__(self, other):
30711
    return not (self == other)
30712
 
30713
class getAllFlipkartMarketplaceItem_result:
30714
  """
30715
  Attributes:
30716
   - success
30717
  """
30718
 
30719
  thrift_spec = (
30720
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30721
  )
30722
 
30723
  def __init__(self, success=None,):
30724
    self.success = success
30725
 
30726
  def read(self, iprot):
30727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30729
      return
30730
    iprot.readStructBegin()
30731
    while True:
30732
      (fname, ftype, fid) = iprot.readFieldBegin()
30733
      if ftype == TType.STOP:
30734
        break
30735
      if fid == 0:
30736
        if ftype == TType.LIST:
30737
          self.success = []
12567 amit.gupta 30738
          (_etype704, _size701) = iprot.readListBegin()
30739
          for _i705 in xrange(_size701):
30740
            _elem706 = FlipkartItem()
30741
            _elem706.read(iprot)
30742
            self.success.append(_elem706)
12133 kshitij.so 30743
          iprot.readListEnd()
30744
        else:
30745
          iprot.skip(ftype)
30746
      else:
30747
        iprot.skip(ftype)
30748
      iprot.readFieldEnd()
30749
    iprot.readStructEnd()
30750
 
30751
  def write(self, oprot):
30752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30754
      return
30755
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
30756
    if self.success is not None:
30757
      oprot.writeFieldBegin('success', TType.LIST, 0)
30758
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30759
      for iter707 in self.success:
30760
        iter707.write(oprot)
12133 kshitij.so 30761
      oprot.writeListEnd()
30762
      oprot.writeFieldEnd()
30763
    oprot.writeFieldStop()
30764
    oprot.writeStructEnd()
30765
 
30766
  def validate(self):
30767
    return
30768
 
30769
 
30770
  def __repr__(self):
30771
    L = ['%s=%r' % (key, value)
30772
      for key, value in self.__dict__.iteritems()]
30773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30774
 
30775
  def __eq__(self, other):
30776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30777
 
30778
  def __ne__(self, other):
30779
    return not (self == other)
12243 kshitij.so 30780
 
30781
class addCompetitorScraping_args:
30782
  """
30783
  Attributes:
30784
   - competitorPricingMap
30785
  """
30786
 
30787
  thrift_spec = (
30788
    None, # 0
30789
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
30790
  )
30791
 
30792
  def __init__(self, competitorPricingMap=None,):
30793
    self.competitorPricingMap = competitorPricingMap
30794
 
30795
  def read(self, iprot):
30796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30798
      return
30799
    iprot.readStructBegin()
30800
    while True:
30801
      (fname, ftype, fid) = iprot.readFieldBegin()
30802
      if ftype == TType.STOP:
30803
        break
30804
      if fid == 1:
30805
        if ftype == TType.MAP:
30806
          self.competitorPricingMap = {}
12567 amit.gupta 30807
          (_ktype709, _vtype710, _size708 ) = iprot.readMapBegin() 
30808
          for _i712 in xrange(_size708):
30809
            _key713 = iprot.readI64();
30810
            _val714 = CompetitorPricing()
30811
            _val714.read(iprot)
30812
            self.competitorPricingMap[_key713] = _val714
12243 kshitij.so 30813
          iprot.readMapEnd()
30814
        else:
30815
          iprot.skip(ftype)
30816
      else:
30817
        iprot.skip(ftype)
30818
      iprot.readFieldEnd()
30819
    iprot.readStructEnd()
30820
 
30821
  def write(self, oprot):
30822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30824
      return
30825
    oprot.writeStructBegin('addCompetitorScraping_args')
30826
    if self.competitorPricingMap is not None:
30827
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
30828
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
12567 amit.gupta 30829
      for kiter715,viter716 in self.competitorPricingMap.items():
30830
        oprot.writeI64(kiter715)
30831
        viter716.write(oprot)
12243 kshitij.so 30832
      oprot.writeMapEnd()
30833
      oprot.writeFieldEnd()
30834
    oprot.writeFieldStop()
30835
    oprot.writeStructEnd()
30836
 
30837
  def validate(self):
30838
    return
30839
 
30840
 
30841
  def __repr__(self):
30842
    L = ['%s=%r' % (key, value)
30843
      for key, value in self.__dict__.iteritems()]
30844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30845
 
30846
  def __eq__(self, other):
30847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30848
 
30849
  def __ne__(self, other):
30850
    return not (self == other)
30851
 
30852
class addCompetitorScraping_result:
30853
 
30854
  thrift_spec = (
30855
  )
30856
 
30857
  def read(self, iprot):
30858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30860
      return
30861
    iprot.readStructBegin()
30862
    while True:
30863
      (fname, ftype, fid) = iprot.readFieldBegin()
30864
      if ftype == TType.STOP:
30865
        break
30866
      else:
30867
        iprot.skip(ftype)
30868
      iprot.readFieldEnd()
30869
    iprot.readStructEnd()
30870
 
30871
  def write(self, oprot):
30872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30874
      return
30875
    oprot.writeStructBegin('addCompetitorScraping_result')
30876
    oprot.writeFieldStop()
30877
    oprot.writeStructEnd()
30878
 
30879
  def validate(self):
30880
    return
30881
 
30882
 
30883
  def __repr__(self):
30884
    L = ['%s=%r' % (key, value)
30885
      for key, value in self.__dict__.iteritems()]
30886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30887
 
30888
  def __eq__(self, other):
30889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30890
 
30891
  def __ne__(self, other):
30892
    return not (self == other)
30893
 
30894
class getPreviousCompetitorScraping_args:
30895
  """
30896
  Attributes:
30897
   - delta
30898
  """
30899
 
30900
  thrift_spec = (
30901
    None, # 0
30902
    (1, TType.I64, 'delta', None, None, ), # 1
30903
  )
30904
 
30905
  def __init__(self, delta=None,):
30906
    self.delta = delta
30907
 
30908
  def read(self, iprot):
30909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30911
      return
30912
    iprot.readStructBegin()
30913
    while True:
30914
      (fname, ftype, fid) = iprot.readFieldBegin()
30915
      if ftype == TType.STOP:
30916
        break
30917
      if fid == 1:
30918
        if ftype == TType.I64:
30919
          self.delta = iprot.readI64();
30920
        else:
30921
          iprot.skip(ftype)
30922
      else:
30923
        iprot.skip(ftype)
30924
      iprot.readFieldEnd()
30925
    iprot.readStructEnd()
30926
 
30927
  def write(self, oprot):
30928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30930
      return
30931
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
30932
    if self.delta is not None:
30933
      oprot.writeFieldBegin('delta', TType.I64, 1)
30934
      oprot.writeI64(self.delta)
30935
      oprot.writeFieldEnd()
30936
    oprot.writeFieldStop()
30937
    oprot.writeStructEnd()
30938
 
30939
  def validate(self):
30940
    return
30941
 
30942
 
30943
  def __repr__(self):
30944
    L = ['%s=%r' % (key, value)
30945
      for key, value in self.__dict__.iteritems()]
30946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30947
 
30948
  def __eq__(self, other):
30949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30950
 
30951
  def __ne__(self, other):
30952
    return not (self == other)
30953
 
30954
class getPreviousCompetitorScraping_result:
30955
  """
30956
  Attributes:
30957
   - success
30958
  """
30959
 
30960
  thrift_spec = (
30961
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30962
  )
30963
 
30964
  def __init__(self, success=None,):
30965
    self.success = success
30966
 
30967
  def read(self, iprot):
30968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30970
      return
30971
    iprot.readStructBegin()
30972
    while True:
30973
      (fname, ftype, fid) = iprot.readFieldBegin()
30974
      if ftype == TType.STOP:
30975
        break
30976
      if fid == 0:
30977
        if ftype == TType.LIST:
30978
          self.success = []
12567 amit.gupta 30979
          (_etype720, _size717) = iprot.readListBegin()
30980
          for _i721 in xrange(_size717):
30981
            _elem722 = CompetitorPricing()
30982
            _elem722.read(iprot)
30983
            self.success.append(_elem722)
12243 kshitij.so 30984
          iprot.readListEnd()
30985
        else:
30986
          iprot.skip(ftype)
30987
      else:
30988
        iprot.skip(ftype)
30989
      iprot.readFieldEnd()
30990
    iprot.readStructEnd()
30991
 
30992
  def write(self, oprot):
30993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30995
      return
30996
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
30997
    if self.success is not None:
30998
      oprot.writeFieldBegin('success', TType.LIST, 0)
30999
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31000
      for iter723 in self.success:
31001
        iter723.write(oprot)
12243 kshitij.so 31002
      oprot.writeListEnd()
31003
      oprot.writeFieldEnd()
31004
    oprot.writeFieldStop()
31005
    oprot.writeStructEnd()
31006
 
31007
  def validate(self):
31008
    return
31009
 
31010
 
31011
  def __repr__(self):
31012
    L = ['%s=%r' % (key, value)
31013
      for key, value in self.__dict__.iteritems()]
31014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31015
 
31016
  def __eq__(self, other):
31017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31018
 
31019
  def __ne__(self, other):
31020
    return not (self == other)
12256 kshitij.so 31021
 
31022
class getUploadResultById_args:
31023
  """
31024
  Attributes:
31025
   - uploadId
31026
  """
31027
 
31028
  thrift_spec = (
31029
    None, # 0
31030
    (1, TType.I64, 'uploadId', None, None, ), # 1
31031
  )
31032
 
31033
  def __init__(self, uploadId=None,):
31034
    self.uploadId = uploadId
31035
 
31036
  def read(self, iprot):
31037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31039
      return
31040
    iprot.readStructBegin()
31041
    while True:
31042
      (fname, ftype, fid) = iprot.readFieldBegin()
31043
      if ftype == TType.STOP:
31044
        break
31045
      if fid == 1:
31046
        if ftype == TType.I64:
31047
          self.uploadId = iprot.readI64();
31048
        else:
31049
          iprot.skip(ftype)
31050
      else:
31051
        iprot.skip(ftype)
31052
      iprot.readFieldEnd()
31053
    iprot.readStructEnd()
31054
 
31055
  def write(self, oprot):
31056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31058
      return
31059
    oprot.writeStructBegin('getUploadResultById_args')
31060
    if self.uploadId is not None:
31061
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
31062
      oprot.writeI64(self.uploadId)
31063
      oprot.writeFieldEnd()
31064
    oprot.writeFieldStop()
31065
    oprot.writeStructEnd()
31066
 
31067
  def validate(self):
31068
    return
31069
 
31070
 
31071
  def __repr__(self):
31072
    L = ['%s=%r' % (key, value)
31073
      for key, value in self.__dict__.iteritems()]
31074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31075
 
31076
  def __eq__(self, other):
31077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31078
 
31079
  def __ne__(self, other):
31080
    return not (self == other)
31081
 
31082
class getUploadResultById_result:
31083
  """
31084
  Attributes:
31085
   - success
31086
  """
31087
 
31088
  thrift_spec = (
31089
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31090
  )
31091
 
31092
  def __init__(self, success=None,):
31093
    self.success = success
31094
 
31095
  def read(self, iprot):
31096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31098
      return
31099
    iprot.readStructBegin()
31100
    while True:
31101
      (fname, ftype, fid) = iprot.readFieldBegin()
31102
      if ftype == TType.STOP:
31103
        break
31104
      if fid == 0:
31105
        if ftype == TType.LIST:
31106
          self.success = []
12567 amit.gupta 31107
          (_etype727, _size724) = iprot.readListBegin()
31108
          for _i728 in xrange(_size724):
31109
            _elem729 = CompetitorPricing()
31110
            _elem729.read(iprot)
31111
            self.success.append(_elem729)
12256 kshitij.so 31112
          iprot.readListEnd()
31113
        else:
31114
          iprot.skip(ftype)
31115
      else:
31116
        iprot.skip(ftype)
31117
      iprot.readFieldEnd()
31118
    iprot.readStructEnd()
31119
 
31120
  def write(self, oprot):
31121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31123
      return
31124
    oprot.writeStructBegin('getUploadResultById_result')
31125
    if self.success is not None:
31126
      oprot.writeFieldBegin('success', TType.LIST, 0)
31127
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31128
      for iter730 in self.success:
31129
        iter730.write(oprot)
12256 kshitij.so 31130
      oprot.writeListEnd()
31131
      oprot.writeFieldEnd()
31132
    oprot.writeFieldStop()
31133
    oprot.writeStructEnd()
31134
 
31135
  def validate(self):
31136
    return
31137
 
31138
 
31139
  def __repr__(self):
31140
    L = ['%s=%r' % (key, value)
31141
      for key, value in self.__dict__.iteritems()]
31142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31143
 
31144
  def __eq__(self, other):
31145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31146
 
31147
  def __ne__(self, other):
31148
    return not (self == other)
12363 kshitij.so 31149
 
31150
class addAmazonPromotion_args:
31151
  """
31152
  Attributes:
31153
   - amazonPromotions
31154
  """
31155
 
31156
  thrift_spec = (
31157
    None, # 0
31158
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31159
  )
31160
 
31161
  def __init__(self, amazonPromotions=None,):
31162
    self.amazonPromotions = amazonPromotions
31163
 
31164
  def read(self, iprot):
31165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31167
      return
31168
    iprot.readStructBegin()
31169
    while True:
31170
      (fname, ftype, fid) = iprot.readFieldBegin()
31171
      if ftype == TType.STOP:
31172
        break
31173
      if fid == 1:
31174
        if ftype == TType.MAP:
31175
          self.amazonPromotions = {}
12567 amit.gupta 31176
          (_ktype732, _vtype733, _size731 ) = iprot.readMapBegin() 
31177
          for _i735 in xrange(_size731):
31178
            _key736 = iprot.readString();
31179
            _val737 = AmazonPromotion()
31180
            _val737.read(iprot)
31181
            self.amazonPromotions[_key736] = _val737
12363 kshitij.so 31182
          iprot.readMapEnd()
31183
        else:
31184
          iprot.skip(ftype)
31185
      else:
31186
        iprot.skip(ftype)
31187
      iprot.readFieldEnd()
31188
    iprot.readStructEnd()
31189
 
31190
  def write(self, oprot):
31191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31193
      return
31194
    oprot.writeStructBegin('addAmazonPromotion_args')
31195
    if self.amazonPromotions is not None:
31196
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31197
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31198
      for kiter738,viter739 in self.amazonPromotions.items():
31199
        oprot.writeString(kiter738)
31200
        viter739.write(oprot)
12363 kshitij.so 31201
      oprot.writeMapEnd()
31202
      oprot.writeFieldEnd()
31203
    oprot.writeFieldStop()
31204
    oprot.writeStructEnd()
31205
 
31206
  def validate(self):
31207
    return
31208
 
31209
 
31210
  def __repr__(self):
31211
    L = ['%s=%r' % (key, value)
31212
      for key, value in self.__dict__.iteritems()]
31213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31214
 
31215
  def __eq__(self, other):
31216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31217
 
31218
  def __ne__(self, other):
31219
    return not (self == other)
31220
 
31221
class addAmazonPromotion_result:
31222
  """
31223
  Attributes:
31224
   - success
12947 kshitij.so 31225
   - cex
12363 kshitij.so 31226
  """
31227
 
31228
  thrift_spec = (
12947 kshitij.so 31229
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
31230
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12363 kshitij.so 31231
  )
31232
 
12947 kshitij.so 31233
  def __init__(self, success=None, cex=None,):
12363 kshitij.so 31234
    self.success = success
12947 kshitij.so 31235
    self.cex = cex
12363 kshitij.so 31236
 
31237
  def read(self, iprot):
31238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31240
      return
31241
    iprot.readStructBegin()
31242
    while True:
31243
      (fname, ftype, fid) = iprot.readFieldBegin()
31244
      if ftype == TType.STOP:
31245
        break
31246
      if fid == 0:
12947 kshitij.so 31247
        if ftype == TType.LIST:
31248
          self.success = []
31249
          (_etype743, _size740) = iprot.readListBegin()
31250
          for _i744 in xrange(_size740):
31251
            _elem745 = iprot.readString();
31252
            self.success.append(_elem745)
31253
          iprot.readListEnd()
12363 kshitij.so 31254
        else:
31255
          iprot.skip(ftype)
12947 kshitij.so 31256
      elif fid == 1:
31257
        if ftype == TType.STRUCT:
31258
          self.cex = CatalogServiceException()
31259
          self.cex.read(iprot)
31260
        else:
31261
          iprot.skip(ftype)
12363 kshitij.so 31262
      else:
31263
        iprot.skip(ftype)
31264
      iprot.readFieldEnd()
31265
    iprot.readStructEnd()
31266
 
31267
  def write(self, oprot):
31268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31270
      return
31271
    oprot.writeStructBegin('addAmazonPromotion_result')
31272
    if self.success is not None:
12947 kshitij.so 31273
      oprot.writeFieldBegin('success', TType.LIST, 0)
31274
      oprot.writeListBegin(TType.STRING, len(self.success))
31275
      for iter746 in self.success:
31276
        oprot.writeString(iter746)
31277
      oprot.writeListEnd()
12363 kshitij.so 31278
      oprot.writeFieldEnd()
12947 kshitij.so 31279
    if self.cex is not None:
31280
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
31281
      self.cex.write(oprot)
31282
      oprot.writeFieldEnd()
12363 kshitij.so 31283
    oprot.writeFieldStop()
31284
    oprot.writeStructEnd()
31285
 
31286
  def validate(self):
31287
    return
31288
 
31289
 
31290
  def __repr__(self):
31291
    L = ['%s=%r' % (key, value)
31292
      for key, value in self.__dict__.iteritems()]
31293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31294
 
31295
  def __eq__(self, other):
31296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31297
 
31298
  def __ne__(self, other):
31299
    return not (self == other)
31300
 
31301
class getAmazonPromotion_args:
31302
  """
31303
  Attributes:
31304
   - startDate
31305
   - endDate
31306
  """
31307
 
31308
  thrift_spec = (
31309
    None, # 0
31310
    (1, TType.I64, 'startDate', None, None, ), # 1
31311
    (2, TType.I64, 'endDate', None, None, ), # 2
31312
  )
31313
 
31314
  def __init__(self, startDate=None, endDate=None,):
31315
    self.startDate = startDate
31316
    self.endDate = endDate
31317
 
31318
  def read(self, iprot):
31319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31321
      return
31322
    iprot.readStructBegin()
31323
    while True:
31324
      (fname, ftype, fid) = iprot.readFieldBegin()
31325
      if ftype == TType.STOP:
31326
        break
31327
      if fid == 1:
31328
        if ftype == TType.I64:
31329
          self.startDate = iprot.readI64();
31330
        else:
31331
          iprot.skip(ftype)
31332
      elif fid == 2:
31333
        if ftype == TType.I64:
31334
          self.endDate = iprot.readI64();
31335
        else:
31336
          iprot.skip(ftype)
31337
      else:
31338
        iprot.skip(ftype)
31339
      iprot.readFieldEnd()
31340
    iprot.readStructEnd()
31341
 
31342
  def write(self, oprot):
31343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31345
      return
31346
    oprot.writeStructBegin('getAmazonPromotion_args')
31347
    if self.startDate is not None:
31348
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31349
      oprot.writeI64(self.startDate)
31350
      oprot.writeFieldEnd()
31351
    if self.endDate is not None:
31352
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31353
      oprot.writeI64(self.endDate)
31354
      oprot.writeFieldEnd()
31355
    oprot.writeFieldStop()
31356
    oprot.writeStructEnd()
31357
 
31358
  def validate(self):
31359
    return
31360
 
31361
 
31362
  def __repr__(self):
31363
    L = ['%s=%r' % (key, value)
31364
      for key, value in self.__dict__.iteritems()]
31365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31366
 
31367
  def __eq__(self, other):
31368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31369
 
31370
  def __ne__(self, other):
31371
    return not (self == other)
31372
 
31373
class getAmazonPromotion_result:
31374
  """
31375
  Attributes:
31376
   - success
31377
  """
31378
 
31379
  thrift_spec = (
31380
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31381
  )
31382
 
31383
  def __init__(self, success=None,):
31384
    self.success = success
31385
 
31386
  def read(self, iprot):
31387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31389
      return
31390
    iprot.readStructBegin()
31391
    while True:
31392
      (fname, ftype, fid) = iprot.readFieldBegin()
31393
      if ftype == TType.STOP:
31394
        break
31395
      if fid == 0:
31396
        if ftype == TType.LIST:
31397
          self.success = []
12947 kshitij.so 31398
          (_etype750, _size747) = iprot.readListBegin()
31399
          for _i751 in xrange(_size747):
31400
            _elem752 = AmazonPromotion()
31401
            _elem752.read(iprot)
31402
            self.success.append(_elem752)
12363 kshitij.so 31403
          iprot.readListEnd()
31404
        else:
31405
          iprot.skip(ftype)
31406
      else:
31407
        iprot.skip(ftype)
31408
      iprot.readFieldEnd()
31409
    iprot.readStructEnd()
31410
 
31411
  def write(self, oprot):
31412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31414
      return
31415
    oprot.writeStructBegin('getAmazonPromotion_result')
31416
    if self.success is not None:
31417
      oprot.writeFieldBegin('success', TType.LIST, 0)
31418
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12947 kshitij.so 31419
      for iter753 in self.success:
31420
        iter753.write(oprot)
12363 kshitij.so 31421
      oprot.writeListEnd()
31422
      oprot.writeFieldEnd()
31423
    oprot.writeFieldStop()
31424
    oprot.writeStructEnd()
31425
 
31426
  def validate(self):
31427
    return
31428
 
31429
 
31430
  def __repr__(self):
31431
    L = ['%s=%r' % (key, value)
31432
      for key, value in self.__dict__.iteritems()]
31433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31434
 
31435
  def __eq__(self, other):
31436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31437
 
31438
  def __ne__(self, other):
31439
    return not (self == other)
31440
 
31441
class updateAmazonPromotion_args:
31442
  """
31443
  Attributes:
31444
   - amazonPromotions
31445
  """
31446
 
31447
  thrift_spec = (
31448
    None, # 0
31449
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31450
  )
31451
 
31452
  def __init__(self, amazonPromotions=None,):
31453
    self.amazonPromotions = amazonPromotions
31454
 
31455
  def read(self, iprot):
31456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31458
      return
31459
    iprot.readStructBegin()
31460
    while True:
31461
      (fname, ftype, fid) = iprot.readFieldBegin()
31462
      if ftype == TType.STOP:
31463
        break
31464
      if fid == 1:
31465
        if ftype == TType.LIST:
31466
          self.amazonPromotions = []
12947 kshitij.so 31467
          (_etype757, _size754) = iprot.readListBegin()
31468
          for _i758 in xrange(_size754):
31469
            _elem759 = AmazonPromotion()
31470
            _elem759.read(iprot)
31471
            self.amazonPromotions.append(_elem759)
12363 kshitij.so 31472
          iprot.readListEnd()
31473
        else:
31474
          iprot.skip(ftype)
31475
      else:
31476
        iprot.skip(ftype)
31477
      iprot.readFieldEnd()
31478
    iprot.readStructEnd()
31479
 
31480
  def write(self, oprot):
31481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31483
      return
31484
    oprot.writeStructBegin('updateAmazonPromotion_args')
31485
    if self.amazonPromotions is not None:
31486
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31487
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
12947 kshitij.so 31488
      for iter760 in self.amazonPromotions:
31489
        iter760.write(oprot)
12363 kshitij.so 31490
      oprot.writeListEnd()
31491
      oprot.writeFieldEnd()
31492
    oprot.writeFieldStop()
31493
    oprot.writeStructEnd()
31494
 
31495
  def validate(self):
31496
    return
31497
 
31498
 
31499
  def __repr__(self):
31500
    L = ['%s=%r' % (key, value)
31501
      for key, value in self.__dict__.iteritems()]
31502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31503
 
31504
  def __eq__(self, other):
31505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31506
 
31507
  def __ne__(self, other):
31508
    return not (self == other)
31509
 
31510
class updateAmazonPromotion_result:
31511
  """
31512
  Attributes:
31513
   - success
31514
  """
31515
 
31516
  thrift_spec = (
31517
    (0, TType.BOOL, 'success', None, None, ), # 0
31518
  )
31519
 
31520
  def __init__(self, success=None,):
31521
    self.success = success
31522
 
31523
  def read(self, iprot):
31524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31526
      return
31527
    iprot.readStructBegin()
31528
    while True:
31529
      (fname, ftype, fid) = iprot.readFieldBegin()
31530
      if ftype == TType.STOP:
31531
        break
31532
      if fid == 0:
31533
        if ftype == TType.BOOL:
31534
          self.success = iprot.readBool();
31535
        else:
31536
          iprot.skip(ftype)
31537
      else:
31538
        iprot.skip(ftype)
31539
      iprot.readFieldEnd()
31540
    iprot.readStructEnd()
31541
 
31542
  def write(self, oprot):
31543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31545
      return
31546
    oprot.writeStructBegin('updateAmazonPromotion_result')
31547
    if self.success is not None:
31548
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31549
      oprot.writeBool(self.success)
31550
      oprot.writeFieldEnd()
31551
    oprot.writeFieldStop()
31552
    oprot.writeStructEnd()
31553
 
31554
  def validate(self):
31555
    return
31556
 
31557
 
31558
  def __repr__(self):
31559
    L = ['%s=%r' % (key, value)
31560
      for key, value in self.__dict__.iteritems()]
31561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31562
 
31563
  def __eq__(self, other):
31564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31565
 
31566
  def __ne__(self, other):
31567
    return not (self == other)
12567 amit.gupta 31568
 
31569
class markPartiallyActive_args:
31570
  """
31571
  Attributes:
31572
   - itemId
31573
   - categoryId
31574
  """
31575
 
31576
  thrift_spec = (
31577
    None, # 0
31578
    (1, TType.I64, 'itemId', None, None, ), # 1
31579
    (2, TType.I64, 'categoryId', None, None, ), # 2
31580
  )
31581
 
31582
  def __init__(self, itemId=None, categoryId=None,):
31583
    self.itemId = itemId
31584
    self.categoryId = categoryId
31585
 
31586
  def read(self, iprot):
31587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31589
      return
31590
    iprot.readStructBegin()
31591
    while True:
31592
      (fname, ftype, fid) = iprot.readFieldBegin()
31593
      if ftype == TType.STOP:
31594
        break
31595
      if fid == 1:
31596
        if ftype == TType.I64:
31597
          self.itemId = iprot.readI64();
31598
        else:
31599
          iprot.skip(ftype)
31600
      elif fid == 2:
31601
        if ftype == TType.I64:
31602
          self.categoryId = iprot.readI64();
31603
        else:
31604
          iprot.skip(ftype)
31605
      else:
31606
        iprot.skip(ftype)
31607
      iprot.readFieldEnd()
31608
    iprot.readStructEnd()
31609
 
31610
  def write(self, oprot):
31611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31613
      return
31614
    oprot.writeStructBegin('markPartiallyActive_args')
31615
    if self.itemId is not None:
31616
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31617
      oprot.writeI64(self.itemId)
31618
      oprot.writeFieldEnd()
31619
    if self.categoryId is not None:
31620
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
31621
      oprot.writeI64(self.categoryId)
31622
      oprot.writeFieldEnd()
31623
    oprot.writeFieldStop()
31624
    oprot.writeStructEnd()
31625
 
31626
  def validate(self):
31627
    return
31628
 
31629
 
31630
  def __repr__(self):
31631
    L = ['%s=%r' % (key, value)
31632
      for key, value in self.__dict__.iteritems()]
31633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31634
 
31635
  def __eq__(self, other):
31636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31637
 
31638
  def __ne__(self, other):
31639
    return not (self == other)
31640
 
31641
class markPartiallyActive_result:
31642
  """
31643
  Attributes:
31644
   - success
31645
  """
31646
 
31647
  thrift_spec = (
31648
    (0, TType.BOOL, 'success', None, None, ), # 0
31649
  )
31650
 
31651
  def __init__(self, success=None,):
31652
    self.success = success
31653
 
31654
  def read(self, iprot):
31655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31657
      return
31658
    iprot.readStructBegin()
31659
    while True:
31660
      (fname, ftype, fid) = iprot.readFieldBegin()
31661
      if ftype == TType.STOP:
31662
        break
31663
      if fid == 0:
31664
        if ftype == TType.BOOL:
31665
          self.success = iprot.readBool();
31666
        else:
31667
          iprot.skip(ftype)
31668
      else:
31669
        iprot.skip(ftype)
31670
      iprot.readFieldEnd()
31671
    iprot.readStructEnd()
31672
 
31673
  def write(self, oprot):
31674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31676
      return
31677
    oprot.writeStructBegin('markPartiallyActive_result')
31678
    if self.success is not None:
31679
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31680
      oprot.writeBool(self.success)
31681
      oprot.writeFieldEnd()
31682
    oprot.writeFieldStop()
31683
    oprot.writeStructEnd()
31684
 
31685
  def validate(self):
31686
    return
31687
 
31688
 
31689
  def __repr__(self):
31690
    L = ['%s=%r' % (key, value)
31691
      for key, value in self.__dict__.iteritems()]
31692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31693
 
31694
  def __eq__(self, other):
31695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31696
 
31697
  def __ne__(self, other):
31698
    return not (self == other)
31699
 
31700
class updateItemStateVat_args:
31701
  """
31702
  Attributes:
31703
   - itemId
31704
   - statevat
31705
  """
31706
 
31707
  thrift_spec = (
31708
    None, # 0
31709
    (1, TType.I64, 'itemId', None, None, ), # 1
31710
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
31711
  )
31712
 
31713
  def __init__(self, itemId=None, statevat=None,):
31714
    self.itemId = itemId
31715
    self.statevat = statevat
31716
 
31717
  def read(self, iprot):
31718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31720
      return
31721
    iprot.readStructBegin()
31722
    while True:
31723
      (fname, ftype, fid) = iprot.readFieldBegin()
31724
      if ftype == TType.STOP:
31725
        break
31726
      if fid == 1:
31727
        if ftype == TType.I64:
31728
          self.itemId = iprot.readI64();
31729
        else:
31730
          iprot.skip(ftype)
31731
      elif fid == 2:
31732
        if ftype == TType.MAP:
31733
          self.statevat = {}
12947 kshitij.so 31734
          (_ktype762, _vtype763, _size761 ) = iprot.readMapBegin() 
31735
          for _i765 in xrange(_size761):
31736
            _key766 = iprot.readI64();
31737
            _val767 = iprot.readDouble();
31738
            self.statevat[_key766] = _val767
12567 amit.gupta 31739
          iprot.readMapEnd()
31740
        else:
31741
          iprot.skip(ftype)
31742
      else:
31743
        iprot.skip(ftype)
31744
      iprot.readFieldEnd()
31745
    iprot.readStructEnd()
31746
 
31747
  def write(self, oprot):
31748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31750
      return
31751
    oprot.writeStructBegin('updateItemStateVat_args')
31752
    if self.itemId is not None:
31753
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31754
      oprot.writeI64(self.itemId)
31755
      oprot.writeFieldEnd()
31756
    if self.statevat is not None:
31757
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
31758
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
12947 kshitij.so 31759
      for kiter768,viter769 in self.statevat.items():
31760
        oprot.writeI64(kiter768)
31761
        oprot.writeDouble(viter769)
12567 amit.gupta 31762
      oprot.writeMapEnd()
31763
      oprot.writeFieldEnd()
31764
    oprot.writeFieldStop()
31765
    oprot.writeStructEnd()
31766
 
31767
  def validate(self):
31768
    return
31769
 
31770
 
31771
  def __repr__(self):
31772
    L = ['%s=%r' % (key, value)
31773
      for key, value in self.__dict__.iteritems()]
31774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31775
 
31776
  def __eq__(self, other):
31777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31778
 
31779
  def __ne__(self, other):
31780
    return not (self == other)
31781
 
31782
class updateItemStateVat_result:
31783
  """
31784
  Attributes:
31785
   - success
31786
  """
31787
 
31788
  thrift_spec = (
31789
    (0, TType.BOOL, 'success', None, None, ), # 0
31790
  )
31791
 
31792
  def __init__(self, success=None,):
31793
    self.success = success
31794
 
31795
  def read(self, iprot):
31796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31798
      return
31799
    iprot.readStructBegin()
31800
    while True:
31801
      (fname, ftype, fid) = iprot.readFieldBegin()
31802
      if ftype == TType.STOP:
31803
        break
31804
      if fid == 0:
31805
        if ftype == TType.BOOL:
31806
          self.success = iprot.readBool();
31807
        else:
31808
          iprot.skip(ftype)
31809
      else:
31810
        iprot.skip(ftype)
31811
      iprot.readFieldEnd()
31812
    iprot.readStructEnd()
31813
 
31814
  def write(self, oprot):
31815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31817
      return
31818
    oprot.writeStructBegin('updateItemStateVat_result')
31819
    if self.success is not None:
31820
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31821
      oprot.writeBool(self.success)
31822
      oprot.writeFieldEnd()
31823
    oprot.writeFieldStop()
31824
    oprot.writeStructEnd()
31825
 
31826
  def validate(self):
31827
    return
31828
 
31829
 
31830
  def __repr__(self):
31831
    L = ['%s=%r' % (key, value)
31832
      for key, value in self.__dict__.iteritems()]
31833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31834
 
31835
  def __eq__(self, other):
31836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31837
 
31838
  def __ne__(self, other):
31839
    return not (self == other)
12620 amit.gupta 31840
 
31841
class getExAffiliateItemInfo_args:
31842
 
31843
  thrift_spec = (
31844
  )
31845
 
31846
  def read(self, iprot):
31847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31849
      return
31850
    iprot.readStructBegin()
31851
    while True:
31852
      (fname, ftype, fid) = iprot.readFieldBegin()
31853
      if ftype == TType.STOP:
31854
        break
31855
      else:
31856
        iprot.skip(ftype)
31857
      iprot.readFieldEnd()
31858
    iprot.readStructEnd()
31859
 
31860
  def write(self, oprot):
31861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31863
      return
31864
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
31865
    oprot.writeFieldStop()
31866
    oprot.writeStructEnd()
31867
 
31868
  def validate(self):
31869
    return
31870
 
31871
 
31872
  def __repr__(self):
31873
    L = ['%s=%r' % (key, value)
31874
      for key, value in self.__dict__.iteritems()]
31875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31876
 
31877
  def __eq__(self, other):
31878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31879
 
31880
  def __ne__(self, other):
31881
    return not (self == other)
31882
 
31883
class getExAffiliateItemInfo_result:
31884
  """
31885
  Attributes:
31886
   - success
31887
  """
31888
 
31889
  thrift_spec = (
31890
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
31891
  )
31892
 
31893
  def __init__(self, success=None,):
31894
    self.success = success
31895
 
31896
  def read(self, iprot):
31897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31899
      return
31900
    iprot.readStructBegin()
31901
    while True:
31902
      (fname, ftype, fid) = iprot.readFieldBegin()
31903
      if ftype == TType.STOP:
31904
        break
31905
      if fid == 0:
31906
        if ftype == TType.MAP:
31907
          self.success = {}
12947 kshitij.so 31908
          (_ktype771, _vtype772, _size770 ) = iprot.readMapBegin() 
31909
          for _i774 in xrange(_size770):
31910
            _key775 = iprot.readI64();
31911
            _val776 = ExclusiveAffiliateItemInfo()
31912
            _val776.read(iprot)
31913
            self.success[_key775] = _val776
12620 amit.gupta 31914
          iprot.readMapEnd()
31915
        else:
31916
          iprot.skip(ftype)
31917
      else:
31918
        iprot.skip(ftype)
31919
      iprot.readFieldEnd()
31920
    iprot.readStructEnd()
31921
 
31922
  def write(self, oprot):
31923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31925
      return
31926
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
31927
    if self.success is not None:
31928
      oprot.writeFieldBegin('success', TType.MAP, 0)
31929
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12947 kshitij.so 31930
      for kiter777,viter778 in self.success.items():
31931
        oprot.writeI64(kiter777)
31932
        viter778.write(oprot)
12620 amit.gupta 31933
      oprot.writeMapEnd()
31934
      oprot.writeFieldEnd()
31935
    oprot.writeFieldStop()
31936
    oprot.writeStructEnd()
31937
 
31938
  def validate(self):
31939
    return
31940
 
31941
 
31942
  def __repr__(self):
31943
    L = ['%s=%r' % (key, value)
31944
      for key, value in self.__dict__.iteritems()]
31945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31946
 
31947
  def __eq__(self, other):
31948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31949
 
31950
  def __ne__(self, other):
31951
    return not (self == other)
12888 kshitij.so 31952
 
31953
class getAllItemstoListOnFbg_args:
31954
 
31955
  thrift_spec = (
31956
  )
31957
 
31958
  def read(self, iprot):
31959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31961
      return
31962
    iprot.readStructBegin()
31963
    while True:
31964
      (fname, ftype, fid) = iprot.readFieldBegin()
31965
      if ftype == TType.STOP:
31966
        break
31967
      else:
31968
        iprot.skip(ftype)
31969
      iprot.readFieldEnd()
31970
    iprot.readStructEnd()
31971
 
31972
  def write(self, oprot):
31973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31975
      return
31976
    oprot.writeStructBegin('getAllItemstoListOnFbg_args')
31977
    oprot.writeFieldStop()
31978
    oprot.writeStructEnd()
31979
 
31980
  def validate(self):
31981
    return
31982
 
31983
 
31984
  def __repr__(self):
31985
    L = ['%s=%r' % (key, value)
31986
      for key, value in self.__dict__.iteritems()]
31987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31988
 
31989
  def __eq__(self, other):
31990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31991
 
31992
  def __ne__(self, other):
31993
    return not (self == other)
31994
 
31995
class getAllItemstoListOnFbg_result:
31996
  """
31997
  Attributes:
31998
   - success
31999
  """
32000
 
32001
  thrift_spec = (
32002
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32003
  )
32004
 
32005
  def __init__(self, success=None,):
32006
    self.success = success
32007
 
32008
  def read(self, iprot):
32009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32011
      return
32012
    iprot.readStructBegin()
32013
    while True:
32014
      (fname, ftype, fid) = iprot.readFieldBegin()
32015
      if ftype == TType.STOP:
32016
        break
32017
      if fid == 0:
32018
        if ftype == TType.LIST:
32019
          self.success = []
12947 kshitij.so 32020
          (_etype782, _size779) = iprot.readListBegin()
32021
          for _i783 in xrange(_size779):
32022
            _elem784 = Amazonlisted()
32023
            _elem784.read(iprot)
32024
            self.success.append(_elem784)
12888 kshitij.so 32025
          iprot.readListEnd()
32026
        else:
32027
          iprot.skip(ftype)
32028
      else:
32029
        iprot.skip(ftype)
32030
      iprot.readFieldEnd()
32031
    iprot.readStructEnd()
32032
 
32033
  def write(self, oprot):
32034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32036
      return
32037
    oprot.writeStructBegin('getAllItemstoListOnFbg_result')
32038
    if self.success is not None:
32039
      oprot.writeFieldBegin('success', TType.LIST, 0)
32040
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12947 kshitij.so 32041
      for iter785 in self.success:
32042
        iter785.write(oprot)
12888 kshitij.so 32043
      oprot.writeListEnd()
32044
      oprot.writeFieldEnd()
32045
    oprot.writeFieldStop()
32046
    oprot.writeStructEnd()
32047
 
32048
  def validate(self):
32049
    return
32050
 
32051
 
32052
  def __repr__(self):
32053
    L = ['%s=%r' % (key, value)
32054
      for key, value in self.__dict__.iteritems()]
32055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32056
 
32057
  def __eq__(self, other):
32058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32059
 
32060
  def __ne__(self, other):
32061
    return not (self == other)
12892 kshitij.so 32062
 
32063
class getAllFbgListedItems_args:
32064
 
32065
  thrift_spec = (
32066
  )
32067
 
32068
  def read(self, iprot):
32069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32071
      return
32072
    iprot.readStructBegin()
32073
    while True:
32074
      (fname, ftype, fid) = iprot.readFieldBegin()
32075
      if ftype == TType.STOP:
32076
        break
32077
      else:
32078
        iprot.skip(ftype)
32079
      iprot.readFieldEnd()
32080
    iprot.readStructEnd()
32081
 
32082
  def write(self, oprot):
32083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32085
      return
32086
    oprot.writeStructBegin('getAllFbgListedItems_args')
32087
    oprot.writeFieldStop()
32088
    oprot.writeStructEnd()
32089
 
32090
  def validate(self):
32091
    return
32092
 
32093
 
32094
  def __repr__(self):
32095
    L = ['%s=%r' % (key, value)
32096
      for key, value in self.__dict__.iteritems()]
32097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32098
 
32099
  def __eq__(self, other):
32100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32101
 
32102
  def __ne__(self, other):
32103
    return not (self == other)
32104
 
32105
class getAllFbgListedItems_result:
32106
  """
32107
  Attributes:
32108
   - success
32109
  """
32110
 
32111
  thrift_spec = (
32112
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32113
  )
32114
 
32115
  def __init__(self, success=None,):
32116
    self.success = success
32117
 
32118
  def read(self, iprot):
32119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32121
      return
32122
    iprot.readStructBegin()
32123
    while True:
32124
      (fname, ftype, fid) = iprot.readFieldBegin()
32125
      if ftype == TType.STOP:
32126
        break
32127
      if fid == 0:
32128
        if ftype == TType.LIST:
32129
          self.success = []
12947 kshitij.so 32130
          (_etype789, _size786) = iprot.readListBegin()
32131
          for _i790 in xrange(_size786):
32132
            _elem791 = Amazonlisted()
32133
            _elem791.read(iprot)
32134
            self.success.append(_elem791)
12892 kshitij.so 32135
          iprot.readListEnd()
32136
        else:
32137
          iprot.skip(ftype)
32138
      else:
32139
        iprot.skip(ftype)
32140
      iprot.readFieldEnd()
32141
    iprot.readStructEnd()
32142
 
32143
  def write(self, oprot):
32144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32146
      return
32147
    oprot.writeStructBegin('getAllFbgListedItems_result')
32148
    if self.success is not None:
32149
      oprot.writeFieldBegin('success', TType.LIST, 0)
32150
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12947 kshitij.so 32151
      for iter792 in self.success:
32152
        iter792.write(oprot)
12892 kshitij.so 32153
      oprot.writeListEnd()
32154
      oprot.writeFieldEnd()
32155
    oprot.writeFieldStop()
32156
    oprot.writeStructEnd()
32157
 
32158
  def validate(self):
32159
    return
32160
 
32161
 
32162
  def __repr__(self):
32163
    L = ['%s=%r' % (key, value)
32164
      for key, value in self.__dict__.iteritems()]
32165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32166
 
32167
  def __eq__(self, other):
32168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32169
 
32170
  def __ne__(self, other):
32171
    return not (self == other)