Subversion Repositories SmartDukaan

Rev

Rev 10140 | Rev 10924 | 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
 
132
  def getAllItemsInRange(self, offset, limit):
133
    """
134
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
135
 
136
    Parameters:
137
     - offset
138
     - limit
139
    """
140
    pass
141
 
142
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
143
    """
144
    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.
145
 
146
    Parameters:
147
     - itemStatus
148
     - offset
149
     - limit
150
    """
151
    pass
152
 
153
  def getItemCountByStatus(self, useStatus, itemStatus):
154
    """
155
    Gets a count of all items by status
156
 
157
    Parameters:
158
     - useStatus
159
     - itemStatus
160
    """
161
    pass
162
 
163
  def getBestSellers(self, ):
164
    pass
165
 
166
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
167
    """
168
    Parameters:
169
     - beginIndex
170
     - totalItems
171
     - brand
172
     - category
173
    """
174
    pass
175
 
176
  def getBestSellersCount(self, ):
177
    pass
178
 
179
  def getBestDeals(self, ):
180
    pass
181
 
182
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
183
    """
184
    Parameters:
185
     - beginIndex
186
     - totalItems
187
     - brand
188
     - category
189
    """
190
    pass
191
 
192
  def getBestDealsCount(self, ):
193
    pass
194
 
195
  def getComingSoon(self, ):
196
    pass
197
 
198
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
199
    """
200
    Parameters:
201
     - beginIndex
202
     - totalItems
203
     - brand
204
     - category
205
    """
206
    pass
207
 
208
  def getComingSoonCount(self, ):
209
    pass
210
 
211
  def getLatestArrivals(self, ):
212
    """
213
    Returns a list of items sorted in the descending order by start date.
214
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
215
    """
216
    pass
217
 
218
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
219
    """
220
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
221
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
222
 
223
    Parameters:
224
     - beginIndex
225
     - totalItems
226
     - brand
227
     - categories
228
    """
229
    pass
230
 
231
  def getLatestArrivalsCount(self, ):
232
    """
233
    Get the total number of latest arrivals we are willing to show.
234
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
235
    """
236
    pass
237
 
238
  def generateNewEntityID(self, ):
239
    pass
240
 
241
  def addCategory(self, category):
242
    """
243
    All category related functions
244
 
245
    Parameters:
246
     - category
247
    """
248
    pass
249
 
250
  def getCategory(self, id):
251
    """
252
    Parameters:
253
     - id
254
    """
255
    pass
256
 
257
  def getAllCategories(self, ):
258
    pass
259
 
260
  def getAllSimilarItems(self, itemId):
261
    """
262
    Returns the list of similar items.
263
 
264
    Parameters:
265
     - itemId
266
    """
267
    pass
268
 
269
  def addSimilarItem(self, itemId, catalogItemId):
270
    """
271
    Adds similar item.
272
 
273
    Parameters:
274
     - itemId
275
     - catalogItemId
276
    """
277
    pass
278
 
6512 kshitij.so 279
  def addTag(self, displayName, itemId):
280
    """
281
    Tag Related
282
 
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteEntityTag(self, displayName, itemId):
290
    """
291
    Parameters:
292
     - displayName
293
     - itemId
294
    """
295
    pass
296
 
297
  def deleteTag(self, displayName):
298
    """
299
    Parameters:
300
     - displayName
301
    """
302
    pass
303
 
304
  def getAllTags(self, ):
305
    pass
306
 
307
  def getAllEntitiesByTagName(self, displayName):
308
    """
309
    Parameters:
310
     - displayName
311
    """
312
    pass
313
 
6845 amit.gupta 314
  def getAllEntityTags(self, ):
315
    pass
316
 
8590 kshitij.so 317
  def addBanner(self, bannerCongregate):
6850 kshitij.so 318
    """
8579 kshitij.so 319
    Banner Related
320
 
6850 kshitij.so 321
    Parameters:
8590 kshitij.so 322
     - bannerCongregate
6850 kshitij.so 323
    """
324
    pass
325
 
8579 kshitij.so 326
  def updateBanner(self, banner):
327
    """
328
    Parameters:
329
     - banner
330
    """
331
    pass
332
 
6850 kshitij.so 333
  def getAllBanners(self, ):
334
    pass
335
 
9155 kshitij.so 336
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 337
    """
338
    Parameters:
339
     - bannerName
9155 kshitij.so 340
     - bannerType
6850 kshitij.so 341
    """
342
    pass
343
 
9155 kshitij.so 344
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 345
    """
346
    Parameters:
347
     - bannerName
9155 kshitij.so 348
     - bannerType
6850 kshitij.so 349
    """
350
    pass
351
 
352
  def getActiveBanners(self, ):
353
    pass
354
 
8579 kshitij.so 355
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 356
    """
357
    Parameters:
8579 kshitij.so 358
     - bannerMaps
6849 kshitij.so 359
    """
360
    pass
361
 
8579 kshitij.so 362
  def updateBannerMap(self, bannerMap):
363
    """
364
    Parameters:
365
     - bannerMap
366
    """
367
    pass
368
 
6849 kshitij.so 369
  def deleteBannerMap(self, bannerName):
370
    """
371
    Parameters:
372
     - bannerName
373
    """
374
    pass
375
 
9155 kshitij.so 376
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 377
    """
378
    Parameters:
379
     - bannerName
9155 kshitij.so 380
     - bannerType
6849 kshitij.so 381
    """
382
    pass
383
 
8579 kshitij.so 384
  def addBannerUri(self, bannerUriMappings):
385
    """
386
    Parameters:
387
     - bannerUriMappings
388
    """
389
    pass
390
 
9155 kshitij.so 391
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 392
    """
393
    Parameters:
394
     - bannerName
9155 kshitij.so 395
     - bannerType
8579 kshitij.so 396
    """
397
    pass
398
 
399
  def addCampaign(self, campaign):
400
    """
401
    Parameters:
402
     - campaign
403
    """
404
    pass
405
 
406
  def getCampaigns(self, campaignName):
407
    """
408
    Parameters:
409
     - campaignName
410
    """
411
    pass
412
 
413
  def deleteCampaign(self, campaignId):
414
    """
415
    Parameters:
416
     - campaignId
417
    """
418
    pass
419
 
420
  def getAllCampaigns(self, ):
421
    pass
422
 
9155 kshitij.so 423
  def getActiveBannersForMobileSite(self, ):
424
    pass
425
 
5944 mandeep.dh 426
  def deleteSimilarItem(self, itemId, catalogItemId):
427
    """
428
    Delete similar item.
429
 
430
    Parameters:
431
     - itemId
432
     - catalogItemId
433
    """
434
    pass
435
 
436
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
437
    """
438
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
439
    If yes, returns the itemId else returns 0
440
 
441
    Parameters:
442
     - brand
443
     - modelNumber
444
     - modelName
445
     - color
446
    """
447
    pass
448
 
449
  def validateRiskyStatus(self, itemId):
450
    """
451
    Check wether item is risky and change status if inventory is not available for risky items
452
 
453
    Parameters:
454
     - itemId
455
    """
456
    pass
457
 
458
  def changeItemRiskyFlag(self, itemId, risky):
459
    """
460
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
461
 
462
    Parameters:
463
     - itemId
464
     - risky
465
    """
466
    pass
467
 
468
  def getItemsByRiskyFlag(self, ):
469
    """
470
    Returns list of items marked as risky.
471
    """
472
    pass
473
 
474
  def getItemsForMasterSheet(self, category, brand):
475
    """
476
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
477
 
478
    Parameters:
479
     - category
480
     - brand
481
    """
482
    pass
483
 
484
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
485
    """
486
    Returns list of catalog ids of items with same similarity index as of the given itemId
487
 
488
    Parameters:
489
     - beginIndex
490
     - totalItems
491
     - itemId
492
    """
493
    pass
494
 
495
  def addProductNotification(self, itemId, email):
496
    """
497
    Add user requests for out of stock items. Once user will ask for notify me an entry will
498
 
499
    Parameters:
500
     - itemId
501
     - email
502
    """
503
    pass
504
 
505
  def sendProductNotifications(self, ):
506
    """
507
    Send the product notifications to the users for items which has stock.
508
    """
509
    pass
510
 
511
  def getAllBrandsByCategory(self, categoryId):
512
    """
513
    Returns list of brand names for a given category Id
514
 
515
    Parameters:
516
     - categoryId
517
    """
518
    pass
519
 
520
  def getAllBrands(self, ):
521
    """
522
    Returns list of brand names
523
    """
524
    pass
525
 
526
  def getAllSources(self, ):
527
    """
528
    Return list of all sources
529
    """
530
    pass
531
 
532
  def getItemPricingBySource(self, itemId, sourceId):
533
    """
534
    Returns the pricing information of an item. If no information is found, exception will be thrown.
535
 
536
    Parameters:
537
     - itemId
538
     - sourceId
539
    """
540
    pass
541
 
542
  def addSourceItemPricing(self, sourceItemPricing):
543
    """
544
    Adds prices to be displayed corresponding to the item if user comes from a source.
545
    If item is not found or source is not found, it will throw exception.
546
 
547
    Parameters:
548
     - sourceItemPricing
549
    """
550
    pass
551
 
552
  def getAllSourcePricing(self, itemId):
553
    """
554
    Returns the list of source pricing information of an item.
555
    Raises an exception if item not found corresponding to itemId
556
 
557
    Parameters:
558
     - itemId
559
    """
560
    pass
561
 
562
  def getItemForSource(self, item_id, sourceId):
563
    """
564
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
565
 
566
    Parameters:
567
     - item_id
568
     - sourceId
569
    """
570
    pass
571
 
572
  def searchItemsInRange(self, searchTerms, offset, limit):
573
    """
574
    Searches items matching the the given terms in the catalog and returns results within the specified range.
575
 
576
    Parameters:
577
     - searchTerms
578
     - offset
579
     - limit
580
    """
581
    pass
582
 
583
  def getSearchResultCount(self, searchTerms):
584
    """
585
    Gets the count of search results for the given search terms so that the user can go through all the pages.
586
 
587
    Parameters:
588
     - searchTerms
589
    """
590
    pass
591
 
592
  def getProductNotifications(self, startDateTime):
593
    """
594
    Returns a list of product notifications added after a supplied datetime
595
 
596
    Parameters:
597
     - startDateTime
598
    """
599
    pass
600
 
7897 amar.kumar 601
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 602
    """
603
    Returns a list of count of requests for product notification against each item
604
 
605
    Parameters:
606
     - startDateTime
7897 amar.kumar 607
     - categoryId
5944 mandeep.dh 608
    """
609
    pass
610
 
611
  def addAuthorizationLog(self, itemId, username, reason):
612
    """
613
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
614
 
615
    Parameters:
616
     - itemId
617
     - username
618
     - reason
619
    """
620
    pass
621
 
622
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
623
    """
624
    Parameters:
625
     - catalog_item_id
626
     - voucherType
627
     - voucherAmount
628
    """
629
    pass
630
 
631
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
632
    """
633
    Parameters:
634
     - catalog_item_id
635
     - voucherType
636
    """
637
    pass
638
 
639
  def getVoucherAmount(self, itemId, voucherType):
640
    """
641
    Parameters:
642
     - itemId
643
     - voucherType
644
    """
645
    pass
646
 
647
  def getAllItemVouchers(self, itemId):
648
    """
649
    Parameters:
650
     - itemId
651
    """
652
    pass
653
 
654
  def isValidCatalogItemId(self, catalog_item_id):
655
    """
656
    Parameters:
657
     - catalog_item_id
658
    """
659
    pass
660
 
7330 amit.gupta 661
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 662
    """
663
    Parameters:
664
     - itemId
7330 amit.gupta 665
     - stateId
6039 amit.gupta 666
     - price
667
    """
668
    pass
5944 mandeep.dh 669
 
6039 amit.gupta 670
  def getVatAmountForItem(self, itemId, price):
671
    """
672
    Parameters:
673
     - itemId
674
     - price
675
    """
676
    pass
677
 
6531 vikram.rag 678
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
679
    """
680
    Parameters:
681
     - offset
682
     - limit
683
    """
684
    pass
6039 amit.gupta 685
 
6821 amar.kumar 686
  def getAllAliveItems(self, ):
687
    pass
688
 
6921 anupam.sin 689
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 690
    """
691
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 692
 
6805 anupam.sin 693
    Parameters:
694
     - itemId
6921 anupam.sin 695
     - price
6805 anupam.sin 696
     - insurerId
697
     - quantity
698
    """
699
    pass
700
 
701
  def getInsurer(self, insurerId):
702
    """
703
    Parameters:
704
     - insurerId
705
    """
706
    pass
707
 
6838 vikram.rag 708
  def getAllInsurers(self, ):
709
    pass
6805 anupam.sin 710
 
6962 rajveer 711
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
712
    """
713
    Parameters:
714
     - insurerId
715
     - amount
716
    """
717
    pass
6838 vikram.rag 718
 
7190 amar.kumar 719
  def getFreebieForItem(self, itemId):
720
    """
721
    Parameters:
722
     - itemId
723
    """
724
    pass
6962 rajveer 725
 
7190 amar.kumar 726
  def addOrUpdateFreebieForItem(self, freebieItem):
727
    """
728
    Parameters:
729
     - freebieItem
730
    """
731
    pass
732
 
7272 amit.gupta 733
  def addOrUpdateBrandInfo(self, brandInfo):
734
    """
735
    Parameters:
736
     - brandInfo
737
    """
738
    pass
739
 
740
  def getBrandInfo(self, ):
741
    pass
742
 
7256 rajveer 743
  def getStorePricing(self, itemId):
744
    """
745
    Parameters:
746
     - itemId
747
    """
748
    pass
7190 amar.kumar 749
 
7306 rajveer 750
  def getStorePricings(self, itemIds):
751
    """
752
    Parameters:
753
     - itemIds
754
    """
755
    pass
756
 
7382 rajveer 757
  def updateStorePricing(self, sp, allColors):
7265 rajveer 758
    """
759
    Parameters:
760
     - sp
7382 rajveer 761
     - allColors
7265 rajveer 762
    """
763
    pass
7256 rajveer 764
 
7281 kshitij.so 765
  def getAllAmazonListedItems(self, ):
766
    pass
7265 rajveer 767
 
8619 kshitij.so 768
  def searchAmazonItems(self, searchTerm, offset, limit):
769
    """
770
    Parameters:
771
     - searchTerm
772
     - offset
773
     - limit
774
    """
775
    pass
776
 
777
  def getAmazonSearchResultCount(self, searchTerm):
778
    """
779
    Parameters:
780
     - searchTerm
781
    """
782
    pass
783
 
784
  def getCountForAmazonlistedItems(self, ):
785
    pass
786
 
7281 kshitij.so 787
  def getAmazonItemDetails(self, itemId):
788
    """
789
    Parameters:
790
     - itemId
791
    """
792
    pass
793
 
8168 kshitij.so 794
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 795
    """
796
    Parameters:
8168 kshitij.so 797
     - amazonlisted
7281 kshitij.so 798
    """
799
    pass
800
 
801
  def addAmazonItem(self, amazonlisted):
802
    """
803
    Parameters:
804
     - amazonlisted
805
    """
806
    pass
807
 
7291 vikram.rag 808
  def getAsinItems(self, ):
809
    pass
7281 kshitij.so 810
 
7291 vikram.rag 811
  def getAllFbaListedItems(self, ):
812
    pass
813
 
814
  def getAllNonFbaListedItems(self, ):
815
    pass
816
 
7460 kshitij.so 817
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
818
    """
819
    Parameters:
820
     - itemId
821
     - holdInventory
822
     - defaultInventory
823
    """
824
    pass
7291 vikram.rag 825
 
7770 kshitij.so 826
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
827
    """
828
    Parameters:
829
     - type
830
     - sku
831
     - timestamp
832
    """
833
    pass
7460 kshitij.so 834
 
7897 amar.kumar 835
  def getAllParentCategories(self, ):
836
    pass
7770 kshitij.so 837
 
7977 kshitij.so 838
  def addPageViewEvent(self, pageViewEvents):
839
    """
840
    Parameters:
841
     - pageViewEvents
842
    """
843
    pass
7897 amar.kumar 844
 
7977 kshitij.so 845
  def addCartEvent(self, cartEvents):
846
    """
847
    Parameters:
848
     - cartEvents
849
    """
850
    pass
851
 
8182 amar.kumar 852
  def addEbayItem(self, ebayItem):
853
    """
854
    Parameters:
855
     - ebayItem
856
    """
857
    pass
858
 
859
  def getEbayItem(self, listingId):
860
    """
861
    Parameters:
862
     - listingId
863
    """
864
    pass
865
 
866
  def updateEbayItem(self, ebayItem):
867
    """
868
    Parameters:
869
     - ebayItem
870
    """
871
    pass
872
 
8139 kshitij.so 873
  def getAmazonListedItems(self, offset, limit):
874
    """
875
    Parameters:
876
     - offset
877
     - limit
878
    """
879
    pass
7977 kshitij.so 880
 
8168 kshitij.so 881
  def updateAmazonAttributesInBulk(self, amazonlisted):
882
    """
883
    Parameters:
884
     - amazonlisted
885
    """
886
    pass
8139 kshitij.so 887
 
8379 vikram.rag 888
  def getAllItemstoListOnFba(self, ):
889
    pass
8168 kshitij.so 890
 
8379 vikram.rag 891
  def getAllItemstoListOnNonFba(self, ):
892
    pass
893
 
8619 kshitij.so 894
  def updateAsin(self, item):
895
    """
896
    Parameters:
897
     - item
898
    """
899
    pass
8616 vikram.rag 900
 
8739 vikram.rag 901
  def addOrUpdateSnapdealItem(self, snapdealitem):
902
    """
903
    Parameters:
904
     - snapdealitem
905
    """
906
    pass
8619 kshitij.so 907
 
8739 vikram.rag 908
  def getSnapdealItem(self, item_id):
909
    """
910
    Parameters:
911
     - item_id
912
    """
913
    pass
914
 
9242 kshitij.so 915
  def getSnapdealItemDetails(self, item_id):
916
    """
917
    Parameters:
918
     - item_id
919
    """
920
    pass
921
 
8739 vikram.rag 922
  def getAllSnapdealItems(self, ):
923
    pass
924
 
9242 kshitij.so 925
  def getSnapdealItems(self, offset, limit):
926
    """
927
    Parameters:
928
     - offset
929
     - limit
930
    """
931
    pass
8739 vikram.rag 932
 
9242 kshitij.so 933
  def searchSnapdealItems(self, searchTerm, offset, limit):
934
    """
935
    Parameters:
936
     - searchTerm
937
     - offset
938
     - limit
939
    """
940
    pass
941
 
942
  def getCountForSnapdealItems(self, ):
943
    pass
944
 
945
  def getSnapdealSearchResultCount(self, searchTerm):
946
    """
947
    Parameters:
948
     - searchTerm
949
    """
950
    pass
951
 
9299 kshitij.so 952
  def getPrefferedInsurerForItem(self, itemId, insurerType):
953
    """
954
    Parameters:
955
     - itemId
956
     - insurerType
957
    """
958
    pass
9242 kshitij.so 959
 
9456 vikram.rag 960
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
961
    """
962
    Parameters:
963
     - skuAtSnapdeal
964
    """
965
    pass
9299 kshitij.so 966
 
9621 manish.sha 967
  def getProductFeedSubmit(self, catalogItemId):
968
    """
969
    Parameters:
970
     - catalogItemId
971
    """
972
    pass
9456 vikram.rag 973
 
9621 manish.sha 974
  def addProductFeedSubmit(self, productFeedSubmit):
975
    """
976
    Parameters:
977
     - productFeedSubmit
978
    """
979
    pass
980
 
981
  def updateProductFeedSubmit(self, productFeedSubmit):
982
    """
983
    Parameters:
984
     - productFeedSubmit
985
    """
986
    pass
987
 
988
  def deleteProductFeedSubmit(self, catalogItemId):
989
    """
990
    Parameters:
991
     - catalogItemId
992
    """
993
    pass
994
 
995
  def getAllProductFeedSubmit(self, ):
996
    pass
997
 
9724 kshitij.so 998
  def getMarketplacedetailsForItem(self, itemId, sourceId):
999
    """
1000
    Parameters:
1001
     - itemId
1002
     - sourceId
1003
    """
1004
    pass
9621 manish.sha 1005
 
9724 kshitij.so 1006
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1007
    """
1008
    Parameters:
1009
     - marketPlaceItem
1010
    """
1011
    pass
1012
 
9779 kshitij.so 1013
  def getCostingForMarketplace(self, source, item_id):
1014
    """
1015
    Parameters:
1016
     - source
1017
     - item_id
1018
    """
1019
    pass
1020
 
9776 vikram.rag 1021
  def getMarketPlaceItemsForPriceUpdate(self, source):
1022
    """
1023
    Parameters:
1024
     - source
1025
    """
1026
    pass
9724 kshitij.so 1027
 
9816 kshitij.so 1028
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 1029
    """
1030
    Parameters:
1031
     - skulist
1032
     - timestamp
9816 kshitij.so 1033
     - source
9776 vikram.rag 1034
    """
1035
    pass
1036
 
9861 rajveer 1037
  def updateItemHoldInventory(self, itemHoldMap):
1038
    """
1039
    Parameters:
1040
     - itemHoldMap
1041
    """
1042
    pass
9776 vikram.rag 1043
 
9895 vikram.rag 1044
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
1045
    """
1046
    Parameters:
1047
     - item_id
1048
     - vendor_id
1049
     - nlc
1050
    """
1051
    pass
9861 rajveer 1052
 
9945 vikram.rag 1053
  def getAllFlipkartItems(self, ):
1054
    pass
9895 vikram.rag 1055
 
10097 kshitij.so 1056
  def addOrUpdateFlipkartItem(self, flipkartitem):
1057
    """
1058
    Parameters:
1059
     - flipkartitem
1060
    """
1061
    pass
9945 vikram.rag 1062
 
10097 kshitij.so 1063
  def getFlipkartItem(self, item_id):
1064
    """
1065
    Parameters:
1066
     - item_id
1067
    """
1068
    pass
1069
 
1070
  def getFlipkartItemDetails(self, item_id):
1071
    """
1072
    Parameters:
1073
     - item_id
1074
    """
1075
    pass
1076
 
1077
  def getFlipkartItems(self, offset, limit):
1078
    """
1079
    Parameters:
1080
     - offset
1081
     - limit
1082
    """
1083
    pass
1084
 
1085
  def searchFlipkartItems(self, searchTerm, offset, limit):
1086
    """
1087
    Parameters:
1088
     - searchTerm
1089
     - offset
1090
     - limit
1091
    """
1092
    pass
1093
 
1094
  def getCountForFlipkartItems(self, ):
1095
    pass
1096
 
1097
  def getFlipkartSearchResultCount(self, searchTerm):
1098
    """
1099
    Parameters:
1100
     - searchTerm
1101
    """
1102
    pass
1103
 
1104
  def getAllFkItems(self, ):
1105
    pass
1106
 
10140 vikram.rag 1107
  def getFlipkartItemBySkyAtFlipkart(self, sku):
1108
    """
1109
    Parameters:
1110
     - sku
1111
    """
1112
    pass
10097 kshitij.so 1113
 
10909 vikram.rag 1114
  def getAllFbbListedItems(self, ):
1115
    pass
10140 vikram.rag 1116
 
10909 vikram.rag 1117
 
5944 mandeep.dh 1118
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1119
  def __init__(self, iprot, oprot=None):
1120
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1121
 
1122
  def addItem(self, item):
1123
    """
1124
    Availability and inventory attributes
1125
 
1126
    Parameters:
1127
     - item
1128
    """
1129
    self.send_addItem(item)
1130
    return self.recv_addItem()
1131
 
1132
  def send_addItem(self, item):
1133
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1134
    args = addItem_args()
1135
    args.item = item
1136
    args.write(self._oprot)
1137
    self._oprot.writeMessageEnd()
1138
    self._oprot.trans.flush()
1139
 
1140
  def recv_addItem(self, ):
1141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1142
    if mtype == TMessageType.EXCEPTION:
1143
      x = TApplicationException()
1144
      x.read(self._iprot)
1145
      self._iprot.readMessageEnd()
1146
      raise x
1147
    result = addItem_result()
1148
    result.read(self._iprot)
1149
    self._iprot.readMessageEnd()
1150
    if result.success is not None:
1151
      return result.success
1152
    if result.cex is not None:
1153
      raise result.cex
1154
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1155
 
1156
  def updateItem(self, item):
1157
    """
1158
    Parameters:
1159
     - item
1160
    """
1161
    self.send_updateItem(item)
1162
    return self.recv_updateItem()
1163
 
1164
  def send_updateItem(self, item):
1165
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1166
    args = updateItem_args()
1167
    args.item = item
1168
    args.write(self._oprot)
1169
    self._oprot.writeMessageEnd()
1170
    self._oprot.trans.flush()
1171
 
1172
  def recv_updateItem(self, ):
1173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1174
    if mtype == TMessageType.EXCEPTION:
1175
      x = TApplicationException()
1176
      x.read(self._iprot)
1177
      self._iprot.readMessageEnd()
1178
      raise x
1179
    result = updateItem_result()
1180
    result.read(self._iprot)
1181
    self._iprot.readMessageEnd()
1182
    if result.success is not None:
1183
      return result.success
1184
    if result.cex is not None:
1185
      raise result.cex
1186
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1187
 
1188
  def isActive(self, itemId):
1189
    """
1190
    Checks if the item given to the corresponding itemId is active. If it's active,
1191
    whether it's risky and if it's risky, its inventory position.
1192
 
1193
    Parameters:
1194
     - itemId
1195
    """
1196
    self.send_isActive(itemId)
1197
    return self.recv_isActive()
1198
 
1199
  def send_isActive(self, itemId):
1200
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1201
    args = isActive_args()
1202
    args.itemId = itemId
1203
    args.write(self._oprot)
1204
    self._oprot.writeMessageEnd()
1205
    self._oprot.trans.flush()
1206
 
1207
  def recv_isActive(self, ):
1208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1209
    if mtype == TMessageType.EXCEPTION:
1210
      x = TApplicationException()
1211
      x.read(self._iprot)
1212
      self._iprot.readMessageEnd()
1213
      raise x
1214
    result = isActive_result()
1215
    result.read(self._iprot)
1216
    self._iprot.readMessageEnd()
1217
    if result.success is not None:
1218
      return result.success
1219
    if result.isex is not None:
1220
      raise result.isex
1221
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1222
 
7438 amit.gupta 1223
  def getItemsStatus(self, itemIds):
1224
    """
1225
    Parameters:
1226
     - itemIds
1227
    """
1228
    self.send_getItemsStatus(itemIds)
1229
    return self.recv_getItemsStatus()
1230
 
1231
  def send_getItemsStatus(self, itemIds):
1232
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1233
    args = getItemsStatus_args()
1234
    args.itemIds = itemIds
1235
    args.write(self._oprot)
1236
    self._oprot.writeMessageEnd()
1237
    self._oprot.trans.flush()
1238
 
1239
  def recv_getItemsStatus(self, ):
1240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1241
    if mtype == TMessageType.EXCEPTION:
1242
      x = TApplicationException()
1243
      x.read(self._iprot)
1244
      self._iprot.readMessageEnd()
1245
      raise x
1246
    result = getItemsStatus_result()
1247
    result.read(self._iprot)
1248
    self._iprot.readMessageEnd()
1249
    if result.success is not None:
1250
      return result.success
1251
    if result.isex is not None:
1252
      raise result.isex
1253
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1254
 
5944 mandeep.dh 1255
  def getItemStatusDescription(self, itemId):
1256
    """
1257
    Parameters:
1258
     - itemId
1259
    """
1260
    self.send_getItemStatusDescription(itemId)
1261
    return self.recv_getItemStatusDescription()
1262
 
1263
  def send_getItemStatusDescription(self, itemId):
1264
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1265
    args = getItemStatusDescription_args()
1266
    args.itemId = itemId
1267
    args.write(self._oprot)
1268
    self._oprot.writeMessageEnd()
1269
    self._oprot.trans.flush()
1270
 
1271
  def recv_getItemStatusDescription(self, ):
1272
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1273
    if mtype == TMessageType.EXCEPTION:
1274
      x = TApplicationException()
1275
      x.read(self._iprot)
1276
      self._iprot.readMessageEnd()
1277
      raise x
1278
    result = getItemStatusDescription_result()
1279
    result.read(self._iprot)
1280
    self._iprot.readMessageEnd()
1281
    if result.success is not None:
1282
      return result.success
1283
    if result.isex is not None:
1284
      raise result.isex
1285
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1286
 
1287
  def startItemOn(self, item_id, timestamp):
1288
    """
1289
    Parameters:
1290
     - item_id
1291
     - timestamp
1292
    """
1293
    self.send_startItemOn(item_id, timestamp)
1294
    self.recv_startItemOn()
1295
 
1296
  def send_startItemOn(self, item_id, timestamp):
1297
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1298
    args = startItemOn_args()
1299
    args.item_id = item_id
1300
    args.timestamp = timestamp
1301
    args.write(self._oprot)
1302
    self._oprot.writeMessageEnd()
1303
    self._oprot.trans.flush()
1304
 
1305
  def recv_startItemOn(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 = startItemOn_result()
1313
    result.read(self._iprot)
1314
    self._iprot.readMessageEnd()
1315
    if result.cex is not None:
1316
      raise result.cex
1317
    return
1318
 
1319
  def retireItemOn(self, item_id, timestamp):
1320
    """
1321
    Parameters:
1322
     - item_id
1323
     - timestamp
1324
    """
1325
    self.send_retireItemOn(item_id, timestamp)
1326
    self.recv_retireItemOn()
1327
 
1328
  def send_retireItemOn(self, item_id, timestamp):
1329
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1330
    args = retireItemOn_args()
1331
    args.item_id = item_id
1332
    args.timestamp = timestamp
1333
    args.write(self._oprot)
1334
    self._oprot.writeMessageEnd()
1335
    self._oprot.trans.flush()
1336
 
1337
  def recv_retireItemOn(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 = retireItemOn_result()
1345
    result.read(self._iprot)
1346
    self._iprot.readMessageEnd()
1347
    if result.cex is not None:
1348
      raise result.cex
1349
    return
1350
 
1351
  def changeItemStatus(self, item_id, timestamp, newstatus):
1352
    """
1353
    Parameters:
1354
     - item_id
1355
     - timestamp
1356
     - newstatus
1357
    """
1358
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1359
    self.recv_changeItemStatus()
1360
 
1361
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1362
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1363
    args = changeItemStatus_args()
1364
    args.item_id = item_id
1365
    args.timestamp = timestamp
1366
    args.newstatus = newstatus
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_changeItemStatus(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = changeItemStatus_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
1381
    if result.cex is not None:
1382
      raise result.cex
1383
    return
1384
 
1385
  def getItem(self, item_id):
1386
    """
1387
    Parameters:
1388
     - item_id
1389
    """
1390
    self.send_getItem(item_id)
1391
    return self.recv_getItem()
1392
 
1393
  def send_getItem(self, item_id):
1394
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1395
    args = getItem_args()
1396
    args.item_id = item_id
1397
    args.write(self._oprot)
1398
    self._oprot.writeMessageEnd()
1399
    self._oprot.trans.flush()
1400
 
1401
  def recv_getItem(self, ):
1402
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1403
    if mtype == TMessageType.EXCEPTION:
1404
      x = TApplicationException()
1405
      x.read(self._iprot)
1406
      self._iprot.readMessageEnd()
1407
      raise x
1408
    result = getItem_result()
1409
    result.read(self._iprot)
1410
    self._iprot.readMessageEnd()
1411
    if result.success is not None:
1412
      return result.success
1413
    if result.cex is not None:
1414
      raise result.cex
1415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1416
 
1417
  def getItemsByCatalogId(self, catalog_item_id):
1418
    """
1419
    Parameters:
1420
     - catalog_item_id
1421
    """
1422
    self.send_getItemsByCatalogId(catalog_item_id)
1423
    return self.recv_getItemsByCatalogId()
1424
 
1425
  def send_getItemsByCatalogId(self, catalog_item_id):
1426
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1427
    args = getItemsByCatalogId_args()
1428
    args.catalog_item_id = catalog_item_id
1429
    args.write(self._oprot)
1430
    self._oprot.writeMessageEnd()
1431
    self._oprot.trans.flush()
1432
 
1433
  def recv_getItemsByCatalogId(self, ):
1434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1435
    if mtype == TMessageType.EXCEPTION:
1436
      x = TApplicationException()
1437
      x.read(self._iprot)
1438
      self._iprot.readMessageEnd()
1439
      raise x
1440
    result = getItemsByCatalogId_result()
1441
    result.read(self._iprot)
1442
    self._iprot.readMessageEnd()
1443
    if result.success is not None:
1444
      return result.success
1445
    if result.cex is not None:
1446
      raise result.cex
1447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1448
 
1449
  def getValidItemsByCatalogId(self, catalog_item_id):
1450
    """
1451
    Parameters:
1452
     - catalog_item_id
1453
    """
1454
    self.send_getValidItemsByCatalogId(catalog_item_id)
1455
    return self.recv_getValidItemsByCatalogId()
1456
 
1457
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1458
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1459
    args = getValidItemsByCatalogId_args()
1460
    args.catalog_item_id = catalog_item_id
1461
    args.write(self._oprot)
1462
    self._oprot.writeMessageEnd()
1463
    self._oprot.trans.flush()
1464
 
1465
  def recv_getValidItemsByCatalogId(self, ):
1466
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1467
    if mtype == TMessageType.EXCEPTION:
1468
      x = TApplicationException()
1469
      x.read(self._iprot)
1470
      self._iprot.readMessageEnd()
1471
      raise x
1472
    result = getValidItemsByCatalogId_result()
1473
    result.read(self._iprot)
1474
    self._iprot.readMessageEnd()
1475
    if result.success is not None:
1476
      return result.success
1477
    if result.cex is not None:
1478
      raise result.cex
1479
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1480
 
1481
  def getAllItems(self, isActive):
1482
    """
1483
    Parameters:
1484
     - isActive
1485
    """
1486
    self.send_getAllItems(isActive)
1487
    return self.recv_getAllItems()
1488
 
1489
  def send_getAllItems(self, isActive):
1490
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1491
    args = getAllItems_args()
1492
    args.isActive = isActive
1493
    args.write(self._oprot)
1494
    self._oprot.writeMessageEnd()
1495
    self._oprot.trans.flush()
1496
 
1497
  def recv_getAllItems(self, ):
1498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1499
    if mtype == TMessageType.EXCEPTION:
1500
      x = TApplicationException()
1501
      x.read(self._iprot)
1502
      self._iprot.readMessageEnd()
1503
      raise x
1504
    result = getAllItems_result()
1505
    result.read(self._iprot)
1506
    self._iprot.readMessageEnd()
1507
    if result.success is not None:
1508
      return result.success
1509
    if result.cex is not None:
1510
      raise result.cex
1511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1512
 
1513
  def getAllItemsByStatus(self, itemStatus):
1514
    """
1515
    Parameters:
1516
     - itemStatus
1517
    """
1518
    self.send_getAllItemsByStatus(itemStatus)
1519
    return self.recv_getAllItemsByStatus()
1520
 
1521
  def send_getAllItemsByStatus(self, itemStatus):
1522
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1523
    args = getAllItemsByStatus_args()
1524
    args.itemStatus = itemStatus
1525
    args.write(self._oprot)
1526
    self._oprot.writeMessageEnd()
1527
    self._oprot.trans.flush()
1528
 
1529
  def recv_getAllItemsByStatus(self, ):
1530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1531
    if mtype == TMessageType.EXCEPTION:
1532
      x = TApplicationException()
1533
      x.read(self._iprot)
1534
      self._iprot.readMessageEnd()
1535
      raise x
1536
    result = getAllItemsByStatus_result()
1537
    result.read(self._iprot)
1538
    self._iprot.readMessageEnd()
1539
    if result.success is not None:
1540
      return result.success
1541
    if result.cex is not None:
1542
      raise result.cex
1543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1544
 
9253 rajveer 1545
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1546
    """
1547
    Parameters:
1548
     - entityId
1549
     - category
1550
     - brand
1551
     - modelName
1552
     - modelNumber
9253 rajveer 1553
     - isAndroid
5944 mandeep.dh 1554
    """
9253 rajveer 1555
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1556
    return self.recv_markItemAsContentComplete()
1557
 
9253 rajveer 1558
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1559
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1560
    args = markItemAsContentComplete_args()
1561
    args.entityId = entityId
1562
    args.category = category
1563
    args.brand = brand
1564
    args.modelName = modelName
1565
    args.modelNumber = modelNumber
9253 rajveer 1566
    args.isAndroid = isAndroid
5944 mandeep.dh 1567
    args.write(self._oprot)
1568
    self._oprot.writeMessageEnd()
1569
    self._oprot.trans.flush()
1570
 
1571
  def recv_markItemAsContentComplete(self, ):
1572
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1573
    if mtype == TMessageType.EXCEPTION:
1574
      x = TApplicationException()
1575
      x.read(self._iprot)
1576
      self._iprot.readMessageEnd()
1577
      raise x
1578
    result = markItemAsContentComplete_result()
1579
    result.read(self._iprot)
1580
    self._iprot.readMessageEnd()
1581
    if result.success is not None:
1582
      return result.success
1583
    if result.cex is not None:
1584
      raise result.cex
1585
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1586
 
1587
  def getAllItemsInRange(self, offset, limit):
1588
    """
1589
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1590
 
1591
    Parameters:
1592
     - offset
1593
     - limit
1594
    """
1595
    self.send_getAllItemsInRange(offset, limit)
1596
    return self.recv_getAllItemsInRange()
1597
 
1598
  def send_getAllItemsInRange(self, offset, limit):
1599
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1600
    args = getAllItemsInRange_args()
1601
    args.offset = offset
1602
    args.limit = limit
1603
    args.write(self._oprot)
1604
    self._oprot.writeMessageEnd()
1605
    self._oprot.trans.flush()
1606
 
1607
  def recv_getAllItemsInRange(self, ):
1608
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1609
    if mtype == TMessageType.EXCEPTION:
1610
      x = TApplicationException()
1611
      x.read(self._iprot)
1612
      self._iprot.readMessageEnd()
1613
      raise x
1614
    result = getAllItemsInRange_result()
1615
    result.read(self._iprot)
1616
    self._iprot.readMessageEnd()
1617
    if result.success is not None:
1618
      return result.success
1619
    if result.cex is not None:
1620
      raise result.cex
1621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1622
 
1623
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1624
    """
1625
    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.
1626
 
1627
    Parameters:
1628
     - itemStatus
1629
     - offset
1630
     - limit
1631
    """
1632
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1633
    return self.recv_getAllItemsByStatusInRange()
1634
 
1635
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1636
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1637
    args = getAllItemsByStatusInRange_args()
1638
    args.itemStatus = itemStatus
1639
    args.offset = offset
1640
    args.limit = limit
1641
    args.write(self._oprot)
1642
    self._oprot.writeMessageEnd()
1643
    self._oprot.trans.flush()
1644
 
1645
  def recv_getAllItemsByStatusInRange(self, ):
1646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1647
    if mtype == TMessageType.EXCEPTION:
1648
      x = TApplicationException()
1649
      x.read(self._iprot)
1650
      self._iprot.readMessageEnd()
1651
      raise x
1652
    result = getAllItemsByStatusInRange_result()
1653
    result.read(self._iprot)
1654
    self._iprot.readMessageEnd()
1655
    if result.success is not None:
1656
      return result.success
1657
    if result.cex is not None:
1658
      raise result.cex
1659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1660
 
1661
  def getItemCountByStatus(self, useStatus, itemStatus):
1662
    """
1663
    Gets a count of all items by status
1664
 
1665
    Parameters:
1666
     - useStatus
1667
     - itemStatus
1668
    """
1669
    self.send_getItemCountByStatus(useStatus, itemStatus)
1670
    return self.recv_getItemCountByStatus()
1671
 
1672
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1673
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1674
    args = getItemCountByStatus_args()
1675
    args.useStatus = useStatus
1676
    args.itemStatus = itemStatus
1677
    args.write(self._oprot)
1678
    self._oprot.writeMessageEnd()
1679
    self._oprot.trans.flush()
1680
 
1681
  def recv_getItemCountByStatus(self, ):
1682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1683
    if mtype == TMessageType.EXCEPTION:
1684
      x = TApplicationException()
1685
      x.read(self._iprot)
1686
      self._iprot.readMessageEnd()
1687
      raise x
1688
    result = getItemCountByStatus_result()
1689
    result.read(self._iprot)
1690
    self._iprot.readMessageEnd()
1691
    if result.success is not None:
1692
      return result.success
1693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1694
 
1695
  def getBestSellers(self, ):
1696
    self.send_getBestSellers()
1697
    return self.recv_getBestSellers()
1698
 
1699
  def send_getBestSellers(self, ):
1700
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1701
    args = getBestSellers_args()
1702
    args.write(self._oprot)
1703
    self._oprot.writeMessageEnd()
1704
    self._oprot.trans.flush()
1705
 
1706
  def recv_getBestSellers(self, ):
1707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1708
    if mtype == TMessageType.EXCEPTION:
1709
      x = TApplicationException()
1710
      x.read(self._iprot)
1711
      self._iprot.readMessageEnd()
1712
      raise x
1713
    result = getBestSellers_result()
1714
    result.read(self._iprot)
1715
    self._iprot.readMessageEnd()
1716
    if result.success is not None:
1717
      return result.success
1718
    if result.isex is not None:
1719
      raise result.isex
1720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1721
 
1722
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1723
    """
1724
    Parameters:
1725
     - beginIndex
1726
     - totalItems
1727
     - brand
1728
     - category
1729
    """
1730
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1731
    return self.recv_getBestSellersCatalogIds()
1732
 
1733
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1734
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1735
    args = getBestSellersCatalogIds_args()
1736
    args.beginIndex = beginIndex
1737
    args.totalItems = totalItems
1738
    args.brand = brand
1739
    args.category = category
1740
    args.write(self._oprot)
1741
    self._oprot.writeMessageEnd()
1742
    self._oprot.trans.flush()
1743
 
1744
  def recv_getBestSellersCatalogIds(self, ):
1745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1746
    if mtype == TMessageType.EXCEPTION:
1747
      x = TApplicationException()
1748
      x.read(self._iprot)
1749
      self._iprot.readMessageEnd()
1750
      raise x
1751
    result = getBestSellersCatalogIds_result()
1752
    result.read(self._iprot)
1753
    self._iprot.readMessageEnd()
1754
    if result.success is not None:
1755
      return result.success
1756
    if result.cex is not None:
1757
      raise result.cex
1758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1759
 
1760
  def getBestSellersCount(self, ):
1761
    self.send_getBestSellersCount()
1762
    return self.recv_getBestSellersCount()
1763
 
1764
  def send_getBestSellersCount(self, ):
1765
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1766
    args = getBestSellersCount_args()
1767
    args.write(self._oprot)
1768
    self._oprot.writeMessageEnd()
1769
    self._oprot.trans.flush()
1770
 
1771
  def recv_getBestSellersCount(self, ):
1772
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1773
    if mtype == TMessageType.EXCEPTION:
1774
      x = TApplicationException()
1775
      x.read(self._iprot)
1776
      self._iprot.readMessageEnd()
1777
      raise x
1778
    result = getBestSellersCount_result()
1779
    result.read(self._iprot)
1780
    self._iprot.readMessageEnd()
1781
    if result.success is not None:
1782
      return result.success
1783
    if result.cex is not None:
1784
      raise result.cex
1785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1786
 
1787
  def getBestDeals(self, ):
1788
    self.send_getBestDeals()
1789
    return self.recv_getBestDeals()
1790
 
1791
  def send_getBestDeals(self, ):
1792
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1793
    args = getBestDeals_args()
1794
    args.write(self._oprot)
1795
    self._oprot.writeMessageEnd()
1796
    self._oprot.trans.flush()
1797
 
1798
  def recv_getBestDeals(self, ):
1799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1800
    if mtype == TMessageType.EXCEPTION:
1801
      x = TApplicationException()
1802
      x.read(self._iprot)
1803
      self._iprot.readMessageEnd()
1804
      raise x
1805
    result = getBestDeals_result()
1806
    result.read(self._iprot)
1807
    self._iprot.readMessageEnd()
1808
    if result.success is not None:
1809
      return result.success
1810
    if result.isex is not None:
1811
      raise result.isex
1812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1813
 
1814
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1815
    """
1816
    Parameters:
1817
     - beginIndex
1818
     - totalItems
1819
     - brand
1820
     - category
1821
    """
1822
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1823
    return self.recv_getBestDealsCatalogIds()
1824
 
1825
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1826
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1827
    args = getBestDealsCatalogIds_args()
1828
    args.beginIndex = beginIndex
1829
    args.totalItems = totalItems
1830
    args.brand = brand
1831
    args.category = category
1832
    args.write(self._oprot)
1833
    self._oprot.writeMessageEnd()
1834
    self._oprot.trans.flush()
1835
 
1836
  def recv_getBestDealsCatalogIds(self, ):
1837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1838
    if mtype == TMessageType.EXCEPTION:
1839
      x = TApplicationException()
1840
      x.read(self._iprot)
1841
      self._iprot.readMessageEnd()
1842
      raise x
1843
    result = getBestDealsCatalogIds_result()
1844
    result.read(self._iprot)
1845
    self._iprot.readMessageEnd()
1846
    if result.success is not None:
1847
      return result.success
1848
    if result.cex is not None:
1849
      raise result.cex
1850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1851
 
1852
  def getBestDealsCount(self, ):
1853
    self.send_getBestDealsCount()
1854
    return self.recv_getBestDealsCount()
1855
 
1856
  def send_getBestDealsCount(self, ):
1857
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1858
    args = getBestDealsCount_args()
1859
    args.write(self._oprot)
1860
    self._oprot.writeMessageEnd()
1861
    self._oprot.trans.flush()
1862
 
1863
  def recv_getBestDealsCount(self, ):
1864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1865
    if mtype == TMessageType.EXCEPTION:
1866
      x = TApplicationException()
1867
      x.read(self._iprot)
1868
      self._iprot.readMessageEnd()
1869
      raise x
1870
    result = getBestDealsCount_result()
1871
    result.read(self._iprot)
1872
    self._iprot.readMessageEnd()
1873
    if result.success is not None:
1874
      return result.success
1875
    if result.cex is not None:
1876
      raise result.cex
1877
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1878
 
1879
  def getComingSoon(self, ):
1880
    self.send_getComingSoon()
1881
    return self.recv_getComingSoon()
1882
 
1883
  def send_getComingSoon(self, ):
1884
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1885
    args = getComingSoon_args()
1886
    args.write(self._oprot)
1887
    self._oprot.writeMessageEnd()
1888
    self._oprot.trans.flush()
1889
 
1890
  def recv_getComingSoon(self, ):
1891
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1892
    if mtype == TMessageType.EXCEPTION:
1893
      x = TApplicationException()
1894
      x.read(self._iprot)
1895
      self._iprot.readMessageEnd()
1896
      raise x
1897
    result = getComingSoon_result()
1898
    result.read(self._iprot)
1899
    self._iprot.readMessageEnd()
1900
    if result.success is not None:
1901
      return result.success
1902
    if result.isex is not None:
1903
      raise result.isex
1904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1905
 
1906
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1907
    """
1908
    Parameters:
1909
     - beginIndex
1910
     - totalItems
1911
     - brand
1912
     - category
1913
    """
1914
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1915
    return self.recv_getComingSoonCatalogIds()
1916
 
1917
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1918
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1919
    args = getComingSoonCatalogIds_args()
1920
    args.beginIndex = beginIndex
1921
    args.totalItems = totalItems
1922
    args.brand = brand
1923
    args.category = category
1924
    args.write(self._oprot)
1925
    self._oprot.writeMessageEnd()
1926
    self._oprot.trans.flush()
1927
 
1928
  def recv_getComingSoonCatalogIds(self, ):
1929
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1930
    if mtype == TMessageType.EXCEPTION:
1931
      x = TApplicationException()
1932
      x.read(self._iprot)
1933
      self._iprot.readMessageEnd()
1934
      raise x
1935
    result = getComingSoonCatalogIds_result()
1936
    result.read(self._iprot)
1937
    self._iprot.readMessageEnd()
1938
    if result.success is not None:
1939
      return result.success
1940
    if result.cex is not None:
1941
      raise result.cex
1942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1943
 
1944
  def getComingSoonCount(self, ):
1945
    self.send_getComingSoonCount()
1946
    return self.recv_getComingSoonCount()
1947
 
1948
  def send_getComingSoonCount(self, ):
1949
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1950
    args = getComingSoonCount_args()
1951
    args.write(self._oprot)
1952
    self._oprot.writeMessageEnd()
1953
    self._oprot.trans.flush()
1954
 
1955
  def recv_getComingSoonCount(self, ):
1956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1957
    if mtype == TMessageType.EXCEPTION:
1958
      x = TApplicationException()
1959
      x.read(self._iprot)
1960
      self._iprot.readMessageEnd()
1961
      raise x
1962
    result = getComingSoonCount_result()
1963
    result.read(self._iprot)
1964
    self._iprot.readMessageEnd()
1965
    if result.success is not None:
1966
      return result.success
1967
    if result.cex is not None:
1968
      raise result.cex
1969
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1970
 
1971
  def getLatestArrivals(self, ):
1972
    """
1973
    Returns a list of items sorted in the descending order by start date.
1974
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1975
    """
1976
    self.send_getLatestArrivals()
1977
    return self.recv_getLatestArrivals()
1978
 
1979
  def send_getLatestArrivals(self, ):
1980
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1981
    args = getLatestArrivals_args()
1982
    args.write(self._oprot)
1983
    self._oprot.writeMessageEnd()
1984
    self._oprot.trans.flush()
1985
 
1986
  def recv_getLatestArrivals(self, ):
1987
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1988
    if mtype == TMessageType.EXCEPTION:
1989
      x = TApplicationException()
1990
      x.read(self._iprot)
1991
      self._iprot.readMessageEnd()
1992
      raise x
1993
    result = getLatestArrivals_result()
1994
    result.read(self._iprot)
1995
    self._iprot.readMessageEnd()
1996
    if result.success is not None:
1997
      return result.success
1998
    if result.isex is not None:
1999
      raise result.isex
2000
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2001
 
2002
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2003
    """
2004
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2005
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2006
 
2007
    Parameters:
2008
     - beginIndex
2009
     - totalItems
2010
     - brand
2011
     - categories
2012
    """
2013
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2014
    return self.recv_getLatestArrivalsCatalogIds()
2015
 
2016
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2017
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2018
    args = getLatestArrivalsCatalogIds_args()
2019
    args.beginIndex = beginIndex
2020
    args.totalItems = totalItems
2021
    args.brand = brand
2022
    args.categories = categories
2023
    args.write(self._oprot)
2024
    self._oprot.writeMessageEnd()
2025
    self._oprot.trans.flush()
2026
 
2027
  def recv_getLatestArrivalsCatalogIds(self, ):
2028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2029
    if mtype == TMessageType.EXCEPTION:
2030
      x = TApplicationException()
2031
      x.read(self._iprot)
2032
      self._iprot.readMessageEnd()
2033
      raise x
2034
    result = getLatestArrivalsCatalogIds_result()
2035
    result.read(self._iprot)
2036
    self._iprot.readMessageEnd()
2037
    if result.success is not None:
2038
      return result.success
2039
    if result.cex is not None:
2040
      raise result.cex
2041
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2042
 
2043
  def getLatestArrivalsCount(self, ):
2044
    """
2045
    Get the total number of latest arrivals we are willing to show.
2046
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2047
    """
2048
    self.send_getLatestArrivalsCount()
2049
    return self.recv_getLatestArrivalsCount()
2050
 
2051
  def send_getLatestArrivalsCount(self, ):
2052
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2053
    args = getLatestArrivalsCount_args()
2054
    args.write(self._oprot)
2055
    self._oprot.writeMessageEnd()
2056
    self._oprot.trans.flush()
2057
 
2058
  def recv_getLatestArrivalsCount(self, ):
2059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2060
    if mtype == TMessageType.EXCEPTION:
2061
      x = TApplicationException()
2062
      x.read(self._iprot)
2063
      self._iprot.readMessageEnd()
2064
      raise x
2065
    result = getLatestArrivalsCount_result()
2066
    result.read(self._iprot)
2067
    self._iprot.readMessageEnd()
2068
    if result.success is not None:
2069
      return result.success
2070
    if result.cex is not None:
2071
      raise result.cex
2072
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2073
 
2074
  def generateNewEntityID(self, ):
2075
    self.send_generateNewEntityID()
2076
    return self.recv_generateNewEntityID()
2077
 
2078
  def send_generateNewEntityID(self, ):
2079
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2080
    args = generateNewEntityID_args()
2081
    args.write(self._oprot)
2082
    self._oprot.writeMessageEnd()
2083
    self._oprot.trans.flush()
2084
 
2085
  def recv_generateNewEntityID(self, ):
2086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2087
    if mtype == TMessageType.EXCEPTION:
2088
      x = TApplicationException()
2089
      x.read(self._iprot)
2090
      self._iprot.readMessageEnd()
2091
      raise x
2092
    result = generateNewEntityID_result()
2093
    result.read(self._iprot)
2094
    self._iprot.readMessageEnd()
2095
    if result.success is not None:
2096
      return result.success
2097
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2098
 
2099
  def addCategory(self, category):
2100
    """
2101
    All category related functions
2102
 
2103
    Parameters:
2104
     - category
2105
    """
2106
    self.send_addCategory(category)
2107
    return self.recv_addCategory()
2108
 
2109
  def send_addCategory(self, category):
2110
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2111
    args = addCategory_args()
2112
    args.category = category
2113
    args.write(self._oprot)
2114
    self._oprot.writeMessageEnd()
2115
    self._oprot.trans.flush()
2116
 
2117
  def recv_addCategory(self, ):
2118
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2119
    if mtype == TMessageType.EXCEPTION:
2120
      x = TApplicationException()
2121
      x.read(self._iprot)
2122
      self._iprot.readMessageEnd()
2123
      raise x
2124
    result = addCategory_result()
2125
    result.read(self._iprot)
2126
    self._iprot.readMessageEnd()
2127
    if result.success is not None:
2128
      return result.success
2129
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2130
 
2131
  def getCategory(self, id):
2132
    """
2133
    Parameters:
2134
     - id
2135
    """
2136
    self.send_getCategory(id)
2137
    return self.recv_getCategory()
2138
 
2139
  def send_getCategory(self, id):
2140
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2141
    args = getCategory_args()
2142
    args.id = id
2143
    args.write(self._oprot)
2144
    self._oprot.writeMessageEnd()
2145
    self._oprot.trans.flush()
2146
 
2147
  def recv_getCategory(self, ):
2148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2149
    if mtype == TMessageType.EXCEPTION:
2150
      x = TApplicationException()
2151
      x.read(self._iprot)
2152
      self._iprot.readMessageEnd()
2153
      raise x
2154
    result = getCategory_result()
2155
    result.read(self._iprot)
2156
    self._iprot.readMessageEnd()
2157
    if result.success is not None:
2158
      return result.success
2159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2160
 
2161
  def getAllCategories(self, ):
2162
    self.send_getAllCategories()
2163
    return self.recv_getAllCategories()
2164
 
2165
  def send_getAllCategories(self, ):
2166
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2167
    args = getAllCategories_args()
2168
    args.write(self._oprot)
2169
    self._oprot.writeMessageEnd()
2170
    self._oprot.trans.flush()
2171
 
2172
  def recv_getAllCategories(self, ):
2173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2174
    if mtype == TMessageType.EXCEPTION:
2175
      x = TApplicationException()
2176
      x.read(self._iprot)
2177
      self._iprot.readMessageEnd()
2178
      raise x
2179
    result = getAllCategories_result()
2180
    result.read(self._iprot)
2181
    self._iprot.readMessageEnd()
2182
    if result.success is not None:
2183
      return result.success
2184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2185
 
2186
  def getAllSimilarItems(self, itemId):
2187
    """
2188
    Returns the list of similar items.
2189
 
2190
    Parameters:
2191
     - itemId
2192
    """
2193
    self.send_getAllSimilarItems(itemId)
2194
    return self.recv_getAllSimilarItems()
2195
 
2196
  def send_getAllSimilarItems(self, itemId):
2197
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2198
    args = getAllSimilarItems_args()
2199
    args.itemId = itemId
2200
    args.write(self._oprot)
2201
    self._oprot.writeMessageEnd()
2202
    self._oprot.trans.flush()
2203
 
2204
  def recv_getAllSimilarItems(self, ):
2205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2206
    if mtype == TMessageType.EXCEPTION:
2207
      x = TApplicationException()
2208
      x.read(self._iprot)
2209
      self._iprot.readMessageEnd()
2210
      raise x
2211
    result = getAllSimilarItems_result()
2212
    result.read(self._iprot)
2213
    self._iprot.readMessageEnd()
2214
    if result.success is not None:
2215
      return result.success
2216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2217
 
2218
  def addSimilarItem(self, itemId, catalogItemId):
2219
    """
2220
    Adds similar item.
2221
 
2222
    Parameters:
2223
     - itemId
2224
     - catalogItemId
2225
    """
2226
    self.send_addSimilarItem(itemId, catalogItemId)
2227
    return self.recv_addSimilarItem()
2228
 
2229
  def send_addSimilarItem(self, itemId, catalogItemId):
2230
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2231
    args = addSimilarItem_args()
2232
    args.itemId = itemId
2233
    args.catalogItemId = catalogItemId
2234
    args.write(self._oprot)
2235
    self._oprot.writeMessageEnd()
2236
    self._oprot.trans.flush()
2237
 
2238
  def recv_addSimilarItem(self, ):
2239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2240
    if mtype == TMessageType.EXCEPTION:
2241
      x = TApplicationException()
2242
      x.read(self._iprot)
2243
      self._iprot.readMessageEnd()
2244
      raise x
2245
    result = addSimilarItem_result()
2246
    result.read(self._iprot)
2247
    self._iprot.readMessageEnd()
2248
    if result.success is not None:
2249
      return result.success
2250
    if result.cex is not None:
2251
      raise result.cex
2252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2253
 
6512 kshitij.so 2254
  def addTag(self, displayName, itemId):
2255
    """
2256
    Tag Related
2257
 
2258
    Parameters:
2259
     - displayName
2260
     - itemId
2261
    """
2262
    self.send_addTag(displayName, itemId)
2263
    return self.recv_addTag()
2264
 
2265
  def send_addTag(self, displayName, itemId):
2266
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2267
    args = addTag_args()
2268
    args.displayName = displayName
2269
    args.itemId = itemId
2270
    args.write(self._oprot)
2271
    self._oprot.writeMessageEnd()
2272
    self._oprot.trans.flush()
2273
 
2274
  def recv_addTag(self, ):
2275
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2276
    if mtype == TMessageType.EXCEPTION:
2277
      x = TApplicationException()
2278
      x.read(self._iprot)
2279
      self._iprot.readMessageEnd()
2280
      raise x
2281
    result = addTag_result()
2282
    result.read(self._iprot)
2283
    self._iprot.readMessageEnd()
2284
    if result.success is not None:
2285
      return result.success
2286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2287
 
2288
  def deleteEntityTag(self, displayName, itemId):
2289
    """
2290
    Parameters:
2291
     - displayName
2292
     - itemId
2293
    """
2294
    self.send_deleteEntityTag(displayName, itemId)
2295
    return self.recv_deleteEntityTag()
2296
 
2297
  def send_deleteEntityTag(self, displayName, itemId):
2298
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2299
    args = deleteEntityTag_args()
2300
    args.displayName = displayName
2301
    args.itemId = itemId
2302
    args.write(self._oprot)
2303
    self._oprot.writeMessageEnd()
2304
    self._oprot.trans.flush()
2305
 
2306
  def recv_deleteEntityTag(self, ):
2307
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2308
    if mtype == TMessageType.EXCEPTION:
2309
      x = TApplicationException()
2310
      x.read(self._iprot)
2311
      self._iprot.readMessageEnd()
2312
      raise x
2313
    result = deleteEntityTag_result()
2314
    result.read(self._iprot)
2315
    self._iprot.readMessageEnd()
2316
    if result.success is not None:
2317
      return result.success
2318
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2319
 
2320
  def deleteTag(self, displayName):
2321
    """
2322
    Parameters:
2323
     - displayName
2324
    """
2325
    self.send_deleteTag(displayName)
2326
    return self.recv_deleteTag()
2327
 
2328
  def send_deleteTag(self, displayName):
2329
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2330
    args = deleteTag_args()
2331
    args.displayName = displayName
2332
    args.write(self._oprot)
2333
    self._oprot.writeMessageEnd()
2334
    self._oprot.trans.flush()
2335
 
2336
  def recv_deleteTag(self, ):
2337
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2338
    if mtype == TMessageType.EXCEPTION:
2339
      x = TApplicationException()
2340
      x.read(self._iprot)
2341
      self._iprot.readMessageEnd()
2342
      raise x
2343
    result = deleteTag_result()
2344
    result.read(self._iprot)
2345
    self._iprot.readMessageEnd()
2346
    if result.success is not None:
2347
      return result.success
2348
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2349
 
2350
  def getAllTags(self, ):
2351
    self.send_getAllTags()
2352
    return self.recv_getAllTags()
2353
 
2354
  def send_getAllTags(self, ):
2355
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2356
    args = getAllTags_args()
2357
    args.write(self._oprot)
2358
    self._oprot.writeMessageEnd()
2359
    self._oprot.trans.flush()
2360
 
2361
  def recv_getAllTags(self, ):
2362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2363
    if mtype == TMessageType.EXCEPTION:
2364
      x = TApplicationException()
2365
      x.read(self._iprot)
2366
      self._iprot.readMessageEnd()
2367
      raise x
2368
    result = getAllTags_result()
2369
    result.read(self._iprot)
2370
    self._iprot.readMessageEnd()
2371
    if result.success is not None:
2372
      return result.success
2373
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2374
 
2375
  def getAllEntitiesByTagName(self, displayName):
2376
    """
2377
    Parameters:
2378
     - displayName
2379
    """
2380
    self.send_getAllEntitiesByTagName(displayName)
2381
    return self.recv_getAllEntitiesByTagName()
2382
 
2383
  def send_getAllEntitiesByTagName(self, displayName):
2384
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2385
    args = getAllEntitiesByTagName_args()
2386
    args.displayName = displayName
2387
    args.write(self._oprot)
2388
    self._oprot.writeMessageEnd()
2389
    self._oprot.trans.flush()
2390
 
2391
  def recv_getAllEntitiesByTagName(self, ):
2392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2393
    if mtype == TMessageType.EXCEPTION:
2394
      x = TApplicationException()
2395
      x.read(self._iprot)
2396
      self._iprot.readMessageEnd()
2397
      raise x
2398
    result = getAllEntitiesByTagName_result()
2399
    result.read(self._iprot)
2400
    self._iprot.readMessageEnd()
2401
    if result.success is not None:
2402
      return result.success
2403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2404
 
6845 amit.gupta 2405
  def getAllEntityTags(self, ):
2406
    self.send_getAllEntityTags()
2407
    return self.recv_getAllEntityTags()
2408
 
2409
  def send_getAllEntityTags(self, ):
2410
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2411
    args = getAllEntityTags_args()
2412
    args.write(self._oprot)
2413
    self._oprot.writeMessageEnd()
2414
    self._oprot.trans.flush()
2415
 
2416
  def recv_getAllEntityTags(self, ):
2417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2418
    if mtype == TMessageType.EXCEPTION:
2419
      x = TApplicationException()
2420
      x.read(self._iprot)
2421
      self._iprot.readMessageEnd()
2422
      raise x
2423
    result = getAllEntityTags_result()
2424
    result.read(self._iprot)
2425
    self._iprot.readMessageEnd()
2426
    if result.success is not None:
2427
      return result.success
2428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2429
 
8590 kshitij.so 2430
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2431
    """
8579 kshitij.so 2432
    Banner Related
2433
 
6850 kshitij.so 2434
    Parameters:
8590 kshitij.so 2435
     - bannerCongregate
6850 kshitij.so 2436
    """
8590 kshitij.so 2437
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2438
    return self.recv_addBanner()
6850 kshitij.so 2439
 
8590 kshitij.so 2440
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2441
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2442
    args = addBanner_args()
8590 kshitij.so 2443
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2444
    args.write(self._oprot)
2445
    self._oprot.writeMessageEnd()
2446
    self._oprot.trans.flush()
2447
 
2448
  def recv_addBanner(self, ):
2449
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2450
    if mtype == TMessageType.EXCEPTION:
2451
      x = TApplicationException()
2452
      x.read(self._iprot)
2453
      self._iprot.readMessageEnd()
2454
      raise x
2455
    result = addBanner_result()
2456
    result.read(self._iprot)
2457
    self._iprot.readMessageEnd()
10097 kshitij.so 2458
    if result.success is not None:
2459
      return result.success
2460
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2461
 
8579 kshitij.so 2462
  def updateBanner(self, banner):
2463
    """
2464
    Parameters:
2465
     - banner
2466
    """
2467
    self.send_updateBanner(banner)
2468
    return self.recv_updateBanner()
2469
 
2470
  def send_updateBanner(self, banner):
2471
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2472
    args = updateBanner_args()
2473
    args.banner = banner
2474
    args.write(self._oprot)
2475
    self._oprot.writeMessageEnd()
2476
    self._oprot.trans.flush()
2477
 
2478
  def recv_updateBanner(self, ):
2479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2480
    if mtype == TMessageType.EXCEPTION:
2481
      x = TApplicationException()
2482
      x.read(self._iprot)
2483
      self._iprot.readMessageEnd()
2484
      raise x
2485
    result = updateBanner_result()
2486
    result.read(self._iprot)
2487
    self._iprot.readMessageEnd()
2488
    if result.success is not None:
2489
      return result.success
2490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2491
 
6850 kshitij.so 2492
  def getAllBanners(self, ):
2493
    self.send_getAllBanners()
2494
    return self.recv_getAllBanners()
2495
 
2496
  def send_getAllBanners(self, ):
2497
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2498
    args = getAllBanners_args()
2499
    args.write(self._oprot)
2500
    self._oprot.writeMessageEnd()
2501
    self._oprot.trans.flush()
2502
 
2503
  def recv_getAllBanners(self, ):
2504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2505
    if mtype == TMessageType.EXCEPTION:
2506
      x = TApplicationException()
2507
      x.read(self._iprot)
2508
      self._iprot.readMessageEnd()
2509
      raise x
2510
    result = getAllBanners_result()
2511
    result.read(self._iprot)
2512
    self._iprot.readMessageEnd()
2513
    if result.success is not None:
2514
      return result.success
2515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2516
 
9155 kshitij.so 2517
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2518
    """
2519
    Parameters:
2520
     - bannerName
9155 kshitij.so 2521
     - bannerType
6850 kshitij.so 2522
    """
9155 kshitij.so 2523
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2524
    return self.recv_deleteBanner()
2525
 
9155 kshitij.so 2526
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2527
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2528
    args = deleteBanner_args()
2529
    args.bannerName = bannerName
9155 kshitij.so 2530
    args.bannerType = bannerType
6850 kshitij.so 2531
    args.write(self._oprot)
2532
    self._oprot.writeMessageEnd()
2533
    self._oprot.trans.flush()
2534
 
2535
  def recv_deleteBanner(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 = deleteBanner_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, "deleteBanner failed: unknown result");
2548
 
9155 kshitij.so 2549
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2550
    """
2551
    Parameters:
2552
     - bannerName
9155 kshitij.so 2553
     - bannerType
6850 kshitij.so 2554
    """
9155 kshitij.so 2555
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2556
    return self.recv_getBannerDetails()
2557
 
9155 kshitij.so 2558
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2559
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2560
    args = getBannerDetails_args()
2561
    args.bannerName = bannerName
9155 kshitij.so 2562
    args.bannerType = bannerType
6850 kshitij.so 2563
    args.write(self._oprot)
2564
    self._oprot.writeMessageEnd()
2565
    self._oprot.trans.flush()
2566
 
2567
  def recv_getBannerDetails(self, ):
2568
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2569
    if mtype == TMessageType.EXCEPTION:
2570
      x = TApplicationException()
2571
      x.read(self._iprot)
2572
      self._iprot.readMessageEnd()
2573
      raise x
2574
    result = getBannerDetails_result()
2575
    result.read(self._iprot)
2576
    self._iprot.readMessageEnd()
2577
    if result.success is not None:
2578
      return result.success
2579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2580
 
2581
  def getActiveBanners(self, ):
2582
    self.send_getActiveBanners()
2583
    return self.recv_getActiveBanners()
2584
 
2585
  def send_getActiveBanners(self, ):
2586
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2587
    args = getActiveBanners_args()
2588
    args.write(self._oprot)
2589
    self._oprot.writeMessageEnd()
2590
    self._oprot.trans.flush()
2591
 
2592
  def recv_getActiveBanners(self, ):
2593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2594
    if mtype == TMessageType.EXCEPTION:
2595
      x = TApplicationException()
2596
      x.read(self._iprot)
2597
      self._iprot.readMessageEnd()
2598
      raise x
2599
    result = getActiveBanners_result()
2600
    result.read(self._iprot)
2601
    self._iprot.readMessageEnd()
2602
    if result.success is not None:
2603
      return result.success
2604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2605
 
8579 kshitij.so 2606
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2607
    """
2608
    Parameters:
8579 kshitij.so 2609
     - bannerMaps
6849 kshitij.so 2610
    """
8579 kshitij.so 2611
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2612
    return self.recv_addBannerMap()
2613
 
8579 kshitij.so 2614
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2615
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2616
    args = addBannerMap_args()
8579 kshitij.so 2617
    args.bannerMaps = bannerMaps
6849 kshitij.so 2618
    args.write(self._oprot)
2619
    self._oprot.writeMessageEnd()
2620
    self._oprot.trans.flush()
2621
 
2622
  def recv_addBannerMap(self, ):
2623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2624
    if mtype == TMessageType.EXCEPTION:
2625
      x = TApplicationException()
2626
      x.read(self._iprot)
2627
      self._iprot.readMessageEnd()
2628
      raise x
2629
    result = addBannerMap_result()
2630
    result.read(self._iprot)
2631
    self._iprot.readMessageEnd()
2632
    if result.success is not None:
2633
      return result.success
2634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2635
 
8579 kshitij.so 2636
  def updateBannerMap(self, bannerMap):
2637
    """
2638
    Parameters:
2639
     - bannerMap
2640
    """
2641
    self.send_updateBannerMap(bannerMap)
2642
    return self.recv_updateBannerMap()
2643
 
2644
  def send_updateBannerMap(self, bannerMap):
2645
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2646
    args = updateBannerMap_args()
2647
    args.bannerMap = bannerMap
2648
    args.write(self._oprot)
2649
    self._oprot.writeMessageEnd()
2650
    self._oprot.trans.flush()
2651
 
2652
  def recv_updateBannerMap(self, ):
2653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2654
    if mtype == TMessageType.EXCEPTION:
2655
      x = TApplicationException()
2656
      x.read(self._iprot)
2657
      self._iprot.readMessageEnd()
2658
      raise x
2659
    result = updateBannerMap_result()
2660
    result.read(self._iprot)
2661
    self._iprot.readMessageEnd()
2662
    if result.success is not None:
2663
      return result.success
2664
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2665
 
6849 kshitij.so 2666
  def deleteBannerMap(self, bannerName):
2667
    """
2668
    Parameters:
2669
     - bannerName
2670
    """
2671
    self.send_deleteBannerMap(bannerName)
2672
    return self.recv_deleteBannerMap()
2673
 
2674
  def send_deleteBannerMap(self, bannerName):
2675
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2676
    args = deleteBannerMap_args()
2677
    args.bannerName = bannerName
2678
    args.write(self._oprot)
2679
    self._oprot.writeMessageEnd()
2680
    self._oprot.trans.flush()
2681
 
2682
  def recv_deleteBannerMap(self, ):
2683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2684
    if mtype == TMessageType.EXCEPTION:
2685
      x = TApplicationException()
2686
      x.read(self._iprot)
2687
      self._iprot.readMessageEnd()
2688
      raise x
2689
    result = deleteBannerMap_result()
2690
    result.read(self._iprot)
2691
    self._iprot.readMessageEnd()
2692
    if result.success is not None:
2693
      return result.success
2694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2695
 
9155 kshitij.so 2696
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2697
    """
2698
    Parameters:
2699
     - bannerName
9155 kshitij.so 2700
     - bannerType
6849 kshitij.so 2701
    """
9155 kshitij.so 2702
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2703
    return self.recv_getBannerMapDetails()
2704
 
9155 kshitij.so 2705
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2706
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2707
    args = getBannerMapDetails_args()
2708
    args.bannerName = bannerName
9155 kshitij.so 2709
    args.bannerType = bannerType
6849 kshitij.so 2710
    args.write(self._oprot)
2711
    self._oprot.writeMessageEnd()
2712
    self._oprot.trans.flush()
2713
 
2714
  def recv_getBannerMapDetails(self, ):
2715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2716
    if mtype == TMessageType.EXCEPTION:
2717
      x = TApplicationException()
2718
      x.read(self._iprot)
2719
      self._iprot.readMessageEnd()
2720
      raise x
2721
    result = getBannerMapDetails_result()
2722
    result.read(self._iprot)
2723
    self._iprot.readMessageEnd()
2724
    if result.success is not None:
2725
      return result.success
2726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2727
 
8579 kshitij.so 2728
  def addBannerUri(self, bannerUriMappings):
2729
    """
2730
    Parameters:
2731
     - bannerUriMappings
2732
    """
2733
    self.send_addBannerUri(bannerUriMappings)
2734
    self.recv_addBannerUri()
2735
 
2736
  def send_addBannerUri(self, bannerUriMappings):
2737
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2738
    args = addBannerUri_args()
2739
    args.bannerUriMappings = bannerUriMappings
2740
    args.write(self._oprot)
2741
    self._oprot.writeMessageEnd()
2742
    self._oprot.trans.flush()
2743
 
2744
  def recv_addBannerUri(self, ):
2745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2746
    if mtype == TMessageType.EXCEPTION:
2747
      x = TApplicationException()
2748
      x.read(self._iprot)
2749
      self._iprot.readMessageEnd()
2750
      raise x
2751
    result = addBannerUri_result()
2752
    result.read(self._iprot)
2753
    self._iprot.readMessageEnd()
2754
    return
2755
 
9155 kshitij.so 2756
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2757
    """
2758
    Parameters:
2759
     - bannerName
9155 kshitij.so 2760
     - bannerType
8579 kshitij.so 2761
    """
9155 kshitij.so 2762
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2763
    return self.recv_getUriMapping()
2764
 
9155 kshitij.so 2765
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2766
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2767
    args = getUriMapping_args()
2768
    args.bannerName = bannerName
9155 kshitij.so 2769
    args.bannerType = bannerType
8579 kshitij.so 2770
    args.write(self._oprot)
2771
    self._oprot.writeMessageEnd()
2772
    self._oprot.trans.flush()
2773
 
2774
  def recv_getUriMapping(self, ):
2775
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2776
    if mtype == TMessageType.EXCEPTION:
2777
      x = TApplicationException()
2778
      x.read(self._iprot)
2779
      self._iprot.readMessageEnd()
2780
      raise x
2781
    result = getUriMapping_result()
2782
    result.read(self._iprot)
2783
    self._iprot.readMessageEnd()
2784
    if result.success is not None:
2785
      return result.success
2786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2787
 
2788
  def addCampaign(self, campaign):
2789
    """
2790
    Parameters:
2791
     - campaign
2792
    """
2793
    self.send_addCampaign(campaign)
2794
    self.recv_addCampaign()
2795
 
2796
  def send_addCampaign(self, campaign):
2797
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2798
    args = addCampaign_args()
2799
    args.campaign = campaign
2800
    args.write(self._oprot)
2801
    self._oprot.writeMessageEnd()
2802
    self._oprot.trans.flush()
2803
 
2804
  def recv_addCampaign(self, ):
2805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2806
    if mtype == TMessageType.EXCEPTION:
2807
      x = TApplicationException()
2808
      x.read(self._iprot)
2809
      self._iprot.readMessageEnd()
2810
      raise x
2811
    result = addCampaign_result()
2812
    result.read(self._iprot)
2813
    self._iprot.readMessageEnd()
2814
    return
2815
 
2816
  def getCampaigns(self, campaignName):
2817
    """
2818
    Parameters:
2819
     - campaignName
2820
    """
2821
    self.send_getCampaigns(campaignName)
2822
    return self.recv_getCampaigns()
2823
 
2824
  def send_getCampaigns(self, campaignName):
2825
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
2826
    args = getCampaigns_args()
2827
    args.campaignName = campaignName
2828
    args.write(self._oprot)
2829
    self._oprot.writeMessageEnd()
2830
    self._oprot.trans.flush()
2831
 
2832
  def recv_getCampaigns(self, ):
2833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2834
    if mtype == TMessageType.EXCEPTION:
2835
      x = TApplicationException()
2836
      x.read(self._iprot)
2837
      self._iprot.readMessageEnd()
2838
      raise x
2839
    result = getCampaigns_result()
2840
    result.read(self._iprot)
2841
    self._iprot.readMessageEnd()
2842
    if result.success is not None:
2843
      return result.success
2844
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
2845
 
2846
  def deleteCampaign(self, campaignId):
2847
    """
2848
    Parameters:
2849
     - campaignId
2850
    """
2851
    self.send_deleteCampaign(campaignId)
2852
    self.recv_deleteCampaign()
2853
 
2854
  def send_deleteCampaign(self, campaignId):
2855
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
2856
    args = deleteCampaign_args()
2857
    args.campaignId = campaignId
2858
    args.write(self._oprot)
2859
    self._oprot.writeMessageEnd()
2860
    self._oprot.trans.flush()
2861
 
2862
  def recv_deleteCampaign(self, ):
2863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2864
    if mtype == TMessageType.EXCEPTION:
2865
      x = TApplicationException()
2866
      x.read(self._iprot)
2867
      self._iprot.readMessageEnd()
2868
      raise x
2869
    result = deleteCampaign_result()
2870
    result.read(self._iprot)
2871
    self._iprot.readMessageEnd()
2872
    return
2873
 
2874
  def getAllCampaigns(self, ):
2875
    self.send_getAllCampaigns()
2876
    return self.recv_getAllCampaigns()
2877
 
2878
  def send_getAllCampaigns(self, ):
2879
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
2880
    args = getAllCampaigns_args()
2881
    args.write(self._oprot)
2882
    self._oprot.writeMessageEnd()
2883
    self._oprot.trans.flush()
2884
 
2885
  def recv_getAllCampaigns(self, ):
2886
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2887
    if mtype == TMessageType.EXCEPTION:
2888
      x = TApplicationException()
2889
      x.read(self._iprot)
2890
      self._iprot.readMessageEnd()
2891
      raise x
2892
    result = getAllCampaigns_result()
2893
    result.read(self._iprot)
2894
    self._iprot.readMessageEnd()
2895
    if result.success is not None:
2896
      return result.success
2897
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
2898
 
9155 kshitij.so 2899
  def getActiveBannersForMobileSite(self, ):
2900
    self.send_getActiveBannersForMobileSite()
2901
    return self.recv_getActiveBannersForMobileSite()
2902
 
2903
  def send_getActiveBannersForMobileSite(self, ):
2904
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
2905
    args = getActiveBannersForMobileSite_args()
2906
    args.write(self._oprot)
2907
    self._oprot.writeMessageEnd()
2908
    self._oprot.trans.flush()
2909
 
2910
  def recv_getActiveBannersForMobileSite(self, ):
2911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2912
    if mtype == TMessageType.EXCEPTION:
2913
      x = TApplicationException()
2914
      x.read(self._iprot)
2915
      self._iprot.readMessageEnd()
2916
      raise x
2917
    result = getActiveBannersForMobileSite_result()
2918
    result.read(self._iprot)
2919
    self._iprot.readMessageEnd()
2920
    if result.success is not None:
2921
      return result.success
2922
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
2923
 
5944 mandeep.dh 2924
  def deleteSimilarItem(self, itemId, catalogItemId):
2925
    """
2926
    Delete similar item.
2927
 
2928
    Parameters:
2929
     - itemId
2930
     - catalogItemId
2931
    """
2932
    self.send_deleteSimilarItem(itemId, catalogItemId)
2933
    return self.recv_deleteSimilarItem()
2934
 
2935
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2936
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2937
    args = deleteSimilarItem_args()
2938
    args.itemId = itemId
2939
    args.catalogItemId = catalogItemId
2940
    args.write(self._oprot)
2941
    self._oprot.writeMessageEnd()
2942
    self._oprot.trans.flush()
2943
 
2944
  def recv_deleteSimilarItem(self, ):
2945
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2946
    if mtype == TMessageType.EXCEPTION:
2947
      x = TApplicationException()
2948
      x.read(self._iprot)
2949
      self._iprot.readMessageEnd()
2950
      raise x
2951
    result = deleteSimilarItem_result()
2952
    result.read(self._iprot)
2953
    self._iprot.readMessageEnd()
2954
    if result.success is not None:
2955
      return result.success
2956
    if result.cex is not None:
2957
      raise result.cex
2958
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2959
 
2960
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2961
    """
2962
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2963
    If yes, returns the itemId else returns 0
2964
 
2965
    Parameters:
2966
     - brand
2967
     - modelNumber
2968
     - modelName
2969
     - color
2970
    """
2971
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2972
    return self.recv_checkSimilarItem()
2973
 
2974
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2975
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2976
    args = checkSimilarItem_args()
2977
    args.brand = brand
2978
    args.modelNumber = modelNumber
2979
    args.modelName = modelName
2980
    args.color = color
2981
    args.write(self._oprot)
2982
    self._oprot.writeMessageEnd()
2983
    self._oprot.trans.flush()
2984
 
2985
  def recv_checkSimilarItem(self, ):
2986
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2987
    if mtype == TMessageType.EXCEPTION:
2988
      x = TApplicationException()
2989
      x.read(self._iprot)
2990
      self._iprot.readMessageEnd()
2991
      raise x
2992
    result = checkSimilarItem_result()
2993
    result.read(self._iprot)
2994
    self._iprot.readMessageEnd()
2995
    if result.success is not None:
2996
      return result.success
2997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2998
 
2999
  def validateRiskyStatus(self, itemId):
3000
    """
3001
    Check wether item is risky and change status if inventory is not available for risky items
3002
 
3003
    Parameters:
3004
     - itemId
3005
    """
3006
    self.send_validateRiskyStatus(itemId)
3007
    self.recv_validateRiskyStatus()
3008
 
3009
  def send_validateRiskyStatus(self, itemId):
3010
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3011
    args = validateRiskyStatus_args()
3012
    args.itemId = itemId
3013
    args.write(self._oprot)
3014
    self._oprot.writeMessageEnd()
3015
    self._oprot.trans.flush()
3016
 
3017
  def recv_validateRiskyStatus(self, ):
3018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3019
    if mtype == TMessageType.EXCEPTION:
3020
      x = TApplicationException()
3021
      x.read(self._iprot)
3022
      self._iprot.readMessageEnd()
3023
      raise x
3024
    result = validateRiskyStatus_result()
3025
    result.read(self._iprot)
3026
    self._iprot.readMessageEnd()
3027
    return
3028
 
3029
  def changeItemRiskyFlag(self, itemId, risky):
3030
    """
3031
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3032
 
3033
    Parameters:
3034
     - itemId
3035
     - risky
3036
    """
3037
    self.send_changeItemRiskyFlag(itemId, risky)
3038
    self.recv_changeItemRiskyFlag()
3039
 
3040
  def send_changeItemRiskyFlag(self, itemId, risky):
3041
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3042
    args = changeItemRiskyFlag_args()
3043
    args.itemId = itemId
3044
    args.risky = risky
3045
    args.write(self._oprot)
3046
    self._oprot.writeMessageEnd()
3047
    self._oprot.trans.flush()
3048
 
3049
  def recv_changeItemRiskyFlag(self, ):
3050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3051
    if mtype == TMessageType.EXCEPTION:
3052
      x = TApplicationException()
3053
      x.read(self._iprot)
3054
      self._iprot.readMessageEnd()
3055
      raise x
3056
    result = changeItemRiskyFlag_result()
3057
    result.read(self._iprot)
3058
    self._iprot.readMessageEnd()
3059
    return
3060
 
3061
  def getItemsByRiskyFlag(self, ):
3062
    """
3063
    Returns list of items marked as risky.
3064
    """
3065
    self.send_getItemsByRiskyFlag()
3066
    return self.recv_getItemsByRiskyFlag()
3067
 
3068
  def send_getItemsByRiskyFlag(self, ):
3069
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3070
    args = getItemsByRiskyFlag_args()
3071
    args.write(self._oprot)
3072
    self._oprot.writeMessageEnd()
3073
    self._oprot.trans.flush()
3074
 
3075
  def recv_getItemsByRiskyFlag(self, ):
3076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3077
    if mtype == TMessageType.EXCEPTION:
3078
      x = TApplicationException()
3079
      x.read(self._iprot)
3080
      self._iprot.readMessageEnd()
3081
      raise x
3082
    result = getItemsByRiskyFlag_result()
3083
    result.read(self._iprot)
3084
    self._iprot.readMessageEnd()
3085
    if result.success is not None:
3086
      return result.success
3087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3088
 
3089
  def getItemsForMasterSheet(self, category, brand):
3090
    """
3091
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3092
 
3093
    Parameters:
3094
     - category
3095
     - brand
3096
    """
3097
    self.send_getItemsForMasterSheet(category, brand)
3098
    return self.recv_getItemsForMasterSheet()
3099
 
3100
  def send_getItemsForMasterSheet(self, category, brand):
3101
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3102
    args = getItemsForMasterSheet_args()
3103
    args.category = category
3104
    args.brand = brand
3105
    args.write(self._oprot)
3106
    self._oprot.writeMessageEnd()
3107
    self._oprot.trans.flush()
3108
 
3109
  def recv_getItemsForMasterSheet(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 = getItemsForMasterSheet_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, "getItemsForMasterSheet failed: unknown result");
3122
 
3123
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3124
    """
3125
    Returns list of catalog ids of items with same similarity index as of the given itemId
3126
 
3127
    Parameters:
3128
     - beginIndex
3129
     - totalItems
3130
     - itemId
3131
    """
3132
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3133
    return self.recv_getSimilarItemsCatalogIds()
3134
 
3135
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3136
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3137
    args = getSimilarItemsCatalogIds_args()
3138
    args.beginIndex = beginIndex
3139
    args.totalItems = totalItems
3140
    args.itemId = itemId
3141
    args.write(self._oprot)
3142
    self._oprot.writeMessageEnd()
3143
    self._oprot.trans.flush()
3144
 
3145
  def recv_getSimilarItemsCatalogIds(self, ):
3146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3147
    if mtype == TMessageType.EXCEPTION:
3148
      x = TApplicationException()
3149
      x.read(self._iprot)
3150
      self._iprot.readMessageEnd()
3151
      raise x
3152
    result = getSimilarItemsCatalogIds_result()
3153
    result.read(self._iprot)
3154
    self._iprot.readMessageEnd()
3155
    if result.success is not None:
3156
      return result.success
3157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3158
 
3159
  def addProductNotification(self, itemId, email):
3160
    """
3161
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3162
 
3163
    Parameters:
3164
     - itemId
3165
     - email
3166
    """
3167
    self.send_addProductNotification(itemId, email)
3168
    return self.recv_addProductNotification()
3169
 
3170
  def send_addProductNotification(self, itemId, email):
3171
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3172
    args = addProductNotification_args()
3173
    args.itemId = itemId
3174
    args.email = email
3175
    args.write(self._oprot)
3176
    self._oprot.writeMessageEnd()
3177
    self._oprot.trans.flush()
3178
 
3179
  def recv_addProductNotification(self, ):
3180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3181
    if mtype == TMessageType.EXCEPTION:
3182
      x = TApplicationException()
3183
      x.read(self._iprot)
3184
      self._iprot.readMessageEnd()
3185
      raise x
3186
    result = addProductNotification_result()
3187
    result.read(self._iprot)
3188
    self._iprot.readMessageEnd()
3189
    if result.success is not None:
3190
      return result.success
3191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3192
 
3193
  def sendProductNotifications(self, ):
3194
    """
3195
    Send the product notifications to the users for items which has stock.
3196
    """
3197
    self.send_sendProductNotifications()
3198
    return self.recv_sendProductNotifications()
3199
 
3200
  def send_sendProductNotifications(self, ):
3201
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3202
    args = sendProductNotifications_args()
3203
    args.write(self._oprot)
3204
    self._oprot.writeMessageEnd()
3205
    self._oprot.trans.flush()
3206
 
3207
  def recv_sendProductNotifications(self, ):
3208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3209
    if mtype == TMessageType.EXCEPTION:
3210
      x = TApplicationException()
3211
      x.read(self._iprot)
3212
      self._iprot.readMessageEnd()
3213
      raise x
3214
    result = sendProductNotifications_result()
3215
    result.read(self._iprot)
3216
    self._iprot.readMessageEnd()
3217
    if result.success is not None:
3218
      return result.success
3219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3220
 
3221
  def getAllBrandsByCategory(self, categoryId):
3222
    """
3223
    Returns list of brand names for a given category Id
3224
 
3225
    Parameters:
3226
     - categoryId
3227
    """
3228
    self.send_getAllBrandsByCategory(categoryId)
3229
    return self.recv_getAllBrandsByCategory()
3230
 
3231
  def send_getAllBrandsByCategory(self, categoryId):
3232
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3233
    args = getAllBrandsByCategory_args()
3234
    args.categoryId = categoryId
3235
    args.write(self._oprot)
3236
    self._oprot.writeMessageEnd()
3237
    self._oprot.trans.flush()
3238
 
3239
  def recv_getAllBrandsByCategory(self, ):
3240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3241
    if mtype == TMessageType.EXCEPTION:
3242
      x = TApplicationException()
3243
      x.read(self._iprot)
3244
      self._iprot.readMessageEnd()
3245
      raise x
3246
    result = getAllBrandsByCategory_result()
3247
    result.read(self._iprot)
3248
    self._iprot.readMessageEnd()
3249
    if result.success is not None:
3250
      return result.success
3251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3252
 
3253
  def getAllBrands(self, ):
3254
    """
3255
    Returns list of brand names
3256
    """
3257
    self.send_getAllBrands()
3258
    return self.recv_getAllBrands()
3259
 
3260
  def send_getAllBrands(self, ):
3261
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3262
    args = getAllBrands_args()
3263
    args.write(self._oprot)
3264
    self._oprot.writeMessageEnd()
3265
    self._oprot.trans.flush()
3266
 
3267
  def recv_getAllBrands(self, ):
3268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3269
    if mtype == TMessageType.EXCEPTION:
3270
      x = TApplicationException()
3271
      x.read(self._iprot)
3272
      self._iprot.readMessageEnd()
3273
      raise x
3274
    result = getAllBrands_result()
3275
    result.read(self._iprot)
3276
    self._iprot.readMessageEnd()
3277
    if result.success is not None:
3278
      return result.success
3279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3280
 
3281
  def getAllSources(self, ):
3282
    """
3283
    Return list of all sources
3284
    """
3285
    self.send_getAllSources()
3286
    return self.recv_getAllSources()
3287
 
3288
  def send_getAllSources(self, ):
3289
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3290
    args = getAllSources_args()
3291
    args.write(self._oprot)
3292
    self._oprot.writeMessageEnd()
3293
    self._oprot.trans.flush()
3294
 
3295
  def recv_getAllSources(self, ):
3296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3297
    if mtype == TMessageType.EXCEPTION:
3298
      x = TApplicationException()
3299
      x.read(self._iprot)
3300
      self._iprot.readMessageEnd()
3301
      raise x
3302
    result = getAllSources_result()
3303
    result.read(self._iprot)
3304
    self._iprot.readMessageEnd()
3305
    if result.success is not None:
3306
      return result.success
3307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3308
 
3309
  def getItemPricingBySource(self, itemId, sourceId):
3310
    """
3311
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3312
 
3313
    Parameters:
3314
     - itemId
3315
     - sourceId
3316
    """
3317
    self.send_getItemPricingBySource(itemId, sourceId)
3318
    return self.recv_getItemPricingBySource()
3319
 
3320
  def send_getItemPricingBySource(self, itemId, sourceId):
3321
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3322
    args = getItemPricingBySource_args()
3323
    args.itemId = itemId
3324
    args.sourceId = sourceId
3325
    args.write(self._oprot)
3326
    self._oprot.writeMessageEnd()
3327
    self._oprot.trans.flush()
3328
 
3329
  def recv_getItemPricingBySource(self, ):
3330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3331
    if mtype == TMessageType.EXCEPTION:
3332
      x = TApplicationException()
3333
      x.read(self._iprot)
3334
      self._iprot.readMessageEnd()
3335
      raise x
3336
    result = getItemPricingBySource_result()
3337
    result.read(self._iprot)
3338
    self._iprot.readMessageEnd()
3339
    if result.success is not None:
3340
      return result.success
3341
    if result.cex is not None:
3342
      raise result.cex
3343
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3344
 
3345
  def addSourceItemPricing(self, sourceItemPricing):
3346
    """
3347
    Adds prices to be displayed corresponding to the item if user comes from a source.
3348
    If item is not found or source is not found, it will throw exception.
3349
 
3350
    Parameters:
3351
     - sourceItemPricing
3352
    """
3353
    self.send_addSourceItemPricing(sourceItemPricing)
3354
    self.recv_addSourceItemPricing()
3355
 
3356
  def send_addSourceItemPricing(self, sourceItemPricing):
3357
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3358
    args = addSourceItemPricing_args()
3359
    args.sourceItemPricing = sourceItemPricing
3360
    args.write(self._oprot)
3361
    self._oprot.writeMessageEnd()
3362
    self._oprot.trans.flush()
3363
 
3364
  def recv_addSourceItemPricing(self, ):
3365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3366
    if mtype == TMessageType.EXCEPTION:
3367
      x = TApplicationException()
3368
      x.read(self._iprot)
3369
      self._iprot.readMessageEnd()
3370
      raise x
3371
    result = addSourceItemPricing_result()
3372
    result.read(self._iprot)
3373
    self._iprot.readMessageEnd()
3374
    if result.cex is not None:
3375
      raise result.cex
3376
    return
3377
 
3378
  def getAllSourcePricing(self, itemId):
3379
    """
3380
    Returns the list of source pricing information of an item.
3381
    Raises an exception if item not found corresponding to itemId
3382
 
3383
    Parameters:
3384
     - itemId
3385
    """
3386
    self.send_getAllSourcePricing(itemId)
3387
    return self.recv_getAllSourcePricing()
3388
 
3389
  def send_getAllSourcePricing(self, itemId):
3390
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3391
    args = getAllSourcePricing_args()
3392
    args.itemId = itemId
3393
    args.write(self._oprot)
3394
    self._oprot.writeMessageEnd()
3395
    self._oprot.trans.flush()
3396
 
3397
  def recv_getAllSourcePricing(self, ):
3398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3399
    if mtype == TMessageType.EXCEPTION:
3400
      x = TApplicationException()
3401
      x.read(self._iprot)
3402
      self._iprot.readMessageEnd()
3403
      raise x
3404
    result = getAllSourcePricing_result()
3405
    result.read(self._iprot)
3406
    self._iprot.readMessageEnd()
3407
    if result.success is not None:
3408
      return result.success
3409
    if result.cex is not None:
3410
      raise result.cex
3411
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3412
 
3413
  def getItemForSource(self, item_id, sourceId):
3414
    """
3415
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3416
 
3417
    Parameters:
3418
     - item_id
3419
     - sourceId
3420
    """
3421
    self.send_getItemForSource(item_id, sourceId)
3422
    return self.recv_getItemForSource()
3423
 
3424
  def send_getItemForSource(self, item_id, sourceId):
3425
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3426
    args = getItemForSource_args()
3427
    args.item_id = item_id
3428
    args.sourceId = sourceId
3429
    args.write(self._oprot)
3430
    self._oprot.writeMessageEnd()
3431
    self._oprot.trans.flush()
3432
 
3433
  def recv_getItemForSource(self, ):
3434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3435
    if mtype == TMessageType.EXCEPTION:
3436
      x = TApplicationException()
3437
      x.read(self._iprot)
3438
      self._iprot.readMessageEnd()
3439
      raise x
3440
    result = getItemForSource_result()
3441
    result.read(self._iprot)
3442
    self._iprot.readMessageEnd()
3443
    if result.success is not None:
3444
      return result.success
3445
    if result.cex is not None:
3446
      raise result.cex
3447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3448
 
3449
  def searchItemsInRange(self, searchTerms, offset, limit):
3450
    """
3451
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3452
 
3453
    Parameters:
3454
     - searchTerms
3455
     - offset
3456
     - limit
3457
    """
3458
    self.send_searchItemsInRange(searchTerms, offset, limit)
3459
    return self.recv_searchItemsInRange()
3460
 
3461
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3462
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3463
    args = searchItemsInRange_args()
3464
    args.searchTerms = searchTerms
3465
    args.offset = offset
3466
    args.limit = limit
3467
    args.write(self._oprot)
3468
    self._oprot.writeMessageEnd()
3469
    self._oprot.trans.flush()
3470
 
3471
  def recv_searchItemsInRange(self, ):
3472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3473
    if mtype == TMessageType.EXCEPTION:
3474
      x = TApplicationException()
3475
      x.read(self._iprot)
3476
      self._iprot.readMessageEnd()
3477
      raise x
3478
    result = searchItemsInRange_result()
3479
    result.read(self._iprot)
3480
    self._iprot.readMessageEnd()
3481
    if result.success is not None:
3482
      return result.success
3483
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3484
 
3485
  def getSearchResultCount(self, searchTerms):
3486
    """
3487
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3488
 
3489
    Parameters:
3490
     - searchTerms
3491
    """
3492
    self.send_getSearchResultCount(searchTerms)
3493
    return self.recv_getSearchResultCount()
3494
 
3495
  def send_getSearchResultCount(self, searchTerms):
3496
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3497
    args = getSearchResultCount_args()
3498
    args.searchTerms = searchTerms
3499
    args.write(self._oprot)
3500
    self._oprot.writeMessageEnd()
3501
    self._oprot.trans.flush()
3502
 
3503
  def recv_getSearchResultCount(self, ):
3504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3505
    if mtype == TMessageType.EXCEPTION:
3506
      x = TApplicationException()
3507
      x.read(self._iprot)
3508
      self._iprot.readMessageEnd()
3509
      raise x
3510
    result = getSearchResultCount_result()
3511
    result.read(self._iprot)
3512
    self._iprot.readMessageEnd()
3513
    if result.success is not None:
3514
      return result.success
3515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3516
 
3517
  def getProductNotifications(self, startDateTime):
3518
    """
3519
    Returns a list of product notifications added after a supplied datetime
3520
 
3521
    Parameters:
3522
     - startDateTime
3523
    """
3524
    self.send_getProductNotifications(startDateTime)
3525
    return self.recv_getProductNotifications()
3526
 
3527
  def send_getProductNotifications(self, startDateTime):
3528
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3529
    args = getProductNotifications_args()
3530
    args.startDateTime = startDateTime
3531
    args.write(self._oprot)
3532
    self._oprot.writeMessageEnd()
3533
    self._oprot.trans.flush()
3534
 
3535
  def recv_getProductNotifications(self, ):
3536
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3537
    if mtype == TMessageType.EXCEPTION:
3538
      x = TApplicationException()
3539
      x.read(self._iprot)
3540
      self._iprot.readMessageEnd()
3541
      raise x
3542
    result = getProductNotifications_result()
3543
    result.read(self._iprot)
3544
    self._iprot.readMessageEnd()
3545
    if result.success is not None:
3546
      return result.success
3547
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3548
 
7897 amar.kumar 3549
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3550
    """
3551
    Returns a list of count of requests for product notification against each item
3552
 
3553
    Parameters:
3554
     - startDateTime
7897 amar.kumar 3555
     - categoryId
5944 mandeep.dh 3556
    """
7897 amar.kumar 3557
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3558
    return self.recv_getProductNotificationRequestCount()
3559
 
7897 amar.kumar 3560
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3561
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3562
    args = getProductNotificationRequestCount_args()
3563
    args.startDateTime = startDateTime
7897 amar.kumar 3564
    args.categoryId = categoryId
5944 mandeep.dh 3565
    args.write(self._oprot)
3566
    self._oprot.writeMessageEnd()
3567
    self._oprot.trans.flush()
3568
 
3569
  def recv_getProductNotificationRequestCount(self, ):
3570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3571
    if mtype == TMessageType.EXCEPTION:
3572
      x = TApplicationException()
3573
      x.read(self._iprot)
3574
      self._iprot.readMessageEnd()
3575
      raise x
3576
    result = getProductNotificationRequestCount_result()
3577
    result.read(self._iprot)
3578
    self._iprot.readMessageEnd()
3579
    if result.success is not None:
3580
      return result.success
3581
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3582
 
3583
  def addAuthorizationLog(self, itemId, username, reason):
3584
    """
3585
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3586
 
3587
    Parameters:
3588
     - itemId
3589
     - username
3590
     - reason
3591
    """
3592
    self.send_addAuthorizationLog(itemId, username, reason)
3593
    return self.recv_addAuthorizationLog()
3594
 
3595
  def send_addAuthorizationLog(self, itemId, username, reason):
3596
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3597
    args = addAuthorizationLog_args()
3598
    args.itemId = itemId
3599
    args.username = username
3600
    args.reason = reason
3601
    args.write(self._oprot)
3602
    self._oprot.writeMessageEnd()
3603
    self._oprot.trans.flush()
3604
 
3605
  def recv_addAuthorizationLog(self, ):
3606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3607
    if mtype == TMessageType.EXCEPTION:
3608
      x = TApplicationException()
3609
      x.read(self._iprot)
3610
      self._iprot.readMessageEnd()
3611
      raise x
3612
    result = addAuthorizationLog_result()
3613
    result.read(self._iprot)
3614
    self._iprot.readMessageEnd()
3615
    if result.success is not None:
3616
      return result.success
3617
    if result.cex is not None:
3618
      raise result.cex
3619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3620
 
3621
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3622
    """
3623
    Parameters:
3624
     - catalog_item_id
3625
     - voucherType
3626
     - voucherAmount
3627
    """
3628
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3629
    return self.recv_addupdateVoucherForItem()
3630
 
3631
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3632
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3633
    args = addupdateVoucherForItem_args()
3634
    args.catalog_item_id = catalog_item_id
3635
    args.voucherType = voucherType
3636
    args.voucherAmount = voucherAmount
3637
    args.write(self._oprot)
3638
    self._oprot.writeMessageEnd()
3639
    self._oprot.trans.flush()
3640
 
3641
  def recv_addupdateVoucherForItem(self, ):
3642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3643
    if mtype == TMessageType.EXCEPTION:
3644
      x = TApplicationException()
3645
      x.read(self._iprot)
3646
      self._iprot.readMessageEnd()
3647
      raise x
3648
    result = addupdateVoucherForItem_result()
3649
    result.read(self._iprot)
3650
    self._iprot.readMessageEnd()
3651
    if result.success is not None:
3652
      return result.success
3653
    if result.cex is not None:
3654
      raise result.cex
3655
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3656
 
3657
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3658
    """
3659
    Parameters:
3660
     - catalog_item_id
3661
     - voucherType
3662
    """
3663
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3664
    return self.recv_deleteVoucherForItem()
3665
 
3666
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3667
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3668
    args = deleteVoucherForItem_args()
3669
    args.catalog_item_id = catalog_item_id
3670
    args.voucherType = voucherType
3671
    args.write(self._oprot)
3672
    self._oprot.writeMessageEnd()
3673
    self._oprot.trans.flush()
3674
 
3675
  def recv_deleteVoucherForItem(self, ):
3676
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3677
    if mtype == TMessageType.EXCEPTION:
3678
      x = TApplicationException()
3679
      x.read(self._iprot)
3680
      self._iprot.readMessageEnd()
3681
      raise x
3682
    result = deleteVoucherForItem_result()
3683
    result.read(self._iprot)
3684
    self._iprot.readMessageEnd()
3685
    if result.success is not None:
3686
      return result.success
3687
    if result.cex is not None:
3688
      raise result.cex
3689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3690
 
3691
  def getVoucherAmount(self, itemId, voucherType):
3692
    """
3693
    Parameters:
3694
     - itemId
3695
     - voucherType
3696
    """
3697
    self.send_getVoucherAmount(itemId, voucherType)
3698
    return self.recv_getVoucherAmount()
3699
 
3700
  def send_getVoucherAmount(self, itemId, voucherType):
3701
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3702
    args = getVoucherAmount_args()
3703
    args.itemId = itemId
3704
    args.voucherType = voucherType
3705
    args.write(self._oprot)
3706
    self._oprot.writeMessageEnd()
3707
    self._oprot.trans.flush()
3708
 
3709
  def recv_getVoucherAmount(self, ):
3710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3711
    if mtype == TMessageType.EXCEPTION:
3712
      x = TApplicationException()
3713
      x.read(self._iprot)
3714
      self._iprot.readMessageEnd()
3715
      raise x
3716
    result = getVoucherAmount_result()
3717
    result.read(self._iprot)
3718
    self._iprot.readMessageEnd()
3719
    if result.success is not None:
3720
      return result.success
3721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3722
 
3723
  def getAllItemVouchers(self, itemId):
3724
    """
3725
    Parameters:
3726
     - itemId
3727
    """
3728
    self.send_getAllItemVouchers(itemId)
3729
    return self.recv_getAllItemVouchers()
3730
 
3731
  def send_getAllItemVouchers(self, itemId):
3732
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3733
    args = getAllItemVouchers_args()
3734
    args.itemId = itemId
3735
    args.write(self._oprot)
3736
    self._oprot.writeMessageEnd()
3737
    self._oprot.trans.flush()
3738
 
3739
  def recv_getAllItemVouchers(self, ):
3740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3741
    if mtype == TMessageType.EXCEPTION:
3742
      x = TApplicationException()
3743
      x.read(self._iprot)
3744
      self._iprot.readMessageEnd()
3745
      raise x
3746
    result = getAllItemVouchers_result()
3747
    result.read(self._iprot)
3748
    self._iprot.readMessageEnd()
3749
    if result.success is not None:
3750
      return result.success
3751
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3752
 
3753
  def isValidCatalogItemId(self, catalog_item_id):
3754
    """
3755
    Parameters:
3756
     - catalog_item_id
3757
    """
3758
    self.send_isValidCatalogItemId(catalog_item_id)
3759
    return self.recv_isValidCatalogItemId()
3760
 
3761
  def send_isValidCatalogItemId(self, catalog_item_id):
3762
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3763
    args = isValidCatalogItemId_args()
3764
    args.catalog_item_id = catalog_item_id
3765
    args.write(self._oprot)
3766
    self._oprot.writeMessageEnd()
3767
    self._oprot.trans.flush()
3768
 
3769
  def recv_isValidCatalogItemId(self, ):
3770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3771
    if mtype == TMessageType.EXCEPTION:
3772
      x = TApplicationException()
3773
      x.read(self._iprot)
3774
      self._iprot.readMessageEnd()
3775
      raise x
3776
    result = isValidCatalogItemId_result()
3777
    result.read(self._iprot)
3778
    self._iprot.readMessageEnd()
3779
    if result.success is not None:
3780
      return result.success
3781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3782
 
7330 amit.gupta 3783
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3784
    """
3785
    Parameters:
3786
     - itemId
7330 amit.gupta 3787
     - stateId
6039 amit.gupta 3788
     - price
3789
    """
7330 amit.gupta 3790
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3791
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3792
 
7330 amit.gupta 3793
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3794
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3795
    args = getVatPercentageForItem_args()
3796
    args.itemId = itemId
7330 amit.gupta 3797
    args.stateId = stateId
6039 amit.gupta 3798
    args.price = price
3799
    args.write(self._oprot)
3800
    self._oprot.writeMessageEnd()
3801
    self._oprot.trans.flush()
3802
 
3803
  def recv_getVatPercentageForItem(self, ):
3804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3805
    if mtype == TMessageType.EXCEPTION:
3806
      x = TApplicationException()
3807
      x.read(self._iprot)
3808
      self._iprot.readMessageEnd()
3809
      raise x
3810
    result = getVatPercentageForItem_result()
3811
    result.read(self._iprot)
3812
    self._iprot.readMessageEnd()
3813
    if result.success is not None:
3814
      return result.success
7340 amit.gupta 3815
    if result.cex is not None:
3816
      raise result.cex
6039 amit.gupta 3817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3818
 
3819
  def getVatAmountForItem(self, itemId, price):
3820
    """
3821
    Parameters:
3822
     - itemId
3823
     - price
3824
    """
3825
    self.send_getVatAmountForItem(itemId, price)
3826
    return self.recv_getVatAmountForItem()
3827
 
3828
  def send_getVatAmountForItem(self, itemId, price):
3829
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3830
    args = getVatAmountForItem_args()
3831
    args.itemId = itemId
3832
    args.price = price
3833
    args.write(self._oprot)
3834
    self._oprot.writeMessageEnd()
3835
    self._oprot.trans.flush()
3836
 
3837
  def recv_getVatAmountForItem(self, ):
3838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3839
    if mtype == TMessageType.EXCEPTION:
3840
      x = TApplicationException()
3841
      x.read(self._iprot)
3842
      self._iprot.readMessageEnd()
3843
      raise x
3844
    result = getVatAmountForItem_result()
3845
    result.read(self._iprot)
3846
    self._iprot.readMessageEnd()
3847
    if result.success is not None:
3848
      return result.success
3849
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3850
 
6531 vikram.rag 3851
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3852
    """
3853
    Parameters:
3854
     - offset
3855
     - limit
3856
    """
3857
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3858
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3859
 
6531 vikram.rag 3860
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3861
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3862
    args = getAllIgnoredInventoryUpdateItemsList_args()
3863
    args.offset = offset
3864
    args.limit = limit
3865
    args.write(self._oprot)
3866
    self._oprot.writeMessageEnd()
3867
    self._oprot.trans.flush()
3868
 
3869
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3871
    if mtype == TMessageType.EXCEPTION:
3872
      x = TApplicationException()
3873
      x.read(self._iprot)
3874
      self._iprot.readMessageEnd()
3875
      raise x
3876
    result = getAllIgnoredInventoryUpdateItemsList_result()
3877
    result.read(self._iprot)
3878
    self._iprot.readMessageEnd()
3879
    if result.success is not None:
3880
      return result.success
3881
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3882
 
6821 amar.kumar 3883
  def getAllAliveItems(self, ):
3884
    self.send_getAllAliveItems()
3885
    return self.recv_getAllAliveItems()
3886
 
3887
  def send_getAllAliveItems(self, ):
3888
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3889
    args = getAllAliveItems_args()
3890
    args.write(self._oprot)
3891
    self._oprot.writeMessageEnd()
3892
    self._oprot.trans.flush()
3893
 
3894
  def recv_getAllAliveItems(self, ):
3895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3896
    if mtype == TMessageType.EXCEPTION:
3897
      x = TApplicationException()
3898
      x.read(self._iprot)
3899
      self._iprot.readMessageEnd()
3900
      raise x
3901
    result = getAllAliveItems_result()
3902
    result.read(self._iprot)
3903
    self._iprot.readMessageEnd()
3904
    if result.success is not None:
3905
      return result.success
3906
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3907
 
6921 anupam.sin 3908
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3909
    """
3910
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3911
 
6805 anupam.sin 3912
    Parameters:
3913
     - itemId
6921 anupam.sin 3914
     - price
6805 anupam.sin 3915
     - insurerId
3916
     - quantity
3917
    """
6921 anupam.sin 3918
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3919
    return self.recv_getInsuranceAmount()
3920
 
6921 anupam.sin 3921
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3922
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3923
    args = getInsuranceAmount_args()
3924
    args.itemId = itemId
6921 anupam.sin 3925
    args.price = price
6805 anupam.sin 3926
    args.insurerId = insurerId
3927
    args.quantity = quantity
3928
    args.write(self._oprot)
3929
    self._oprot.writeMessageEnd()
3930
    self._oprot.trans.flush()
3931
 
3932
  def recv_getInsuranceAmount(self, ):
3933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3934
    if mtype == TMessageType.EXCEPTION:
3935
      x = TApplicationException()
3936
      x.read(self._iprot)
3937
      self._iprot.readMessageEnd()
3938
      raise x
3939
    result = getInsuranceAmount_result()
3940
    result.read(self._iprot)
3941
    self._iprot.readMessageEnd()
3942
    if result.success is not None:
3943
      return result.success
3944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3945
 
3946
  def getInsurer(self, insurerId):
3947
    """
3948
    Parameters:
3949
     - insurerId
3950
    """
3951
    self.send_getInsurer(insurerId)
3952
    return self.recv_getInsurer()
3953
 
3954
  def send_getInsurer(self, insurerId):
3955
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3956
    args = getInsurer_args()
3957
    args.insurerId = insurerId
3958
    args.write(self._oprot)
3959
    self._oprot.writeMessageEnd()
3960
    self._oprot.trans.flush()
3961
 
3962
  def recv_getInsurer(self, ):
3963
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3964
    if mtype == TMessageType.EXCEPTION:
3965
      x = TApplicationException()
3966
      x.read(self._iprot)
3967
      self._iprot.readMessageEnd()
3968
      raise x
3969
    result = getInsurer_result()
3970
    result.read(self._iprot)
3971
    self._iprot.readMessageEnd()
3972
    if result.success is not None:
3973
      return result.success
3974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3975
 
6838 vikram.rag 3976
  def getAllInsurers(self, ):
3977
    self.send_getAllInsurers()
3978
    return self.recv_getAllInsurers()
6805 anupam.sin 3979
 
6838 vikram.rag 3980
  def send_getAllInsurers(self, ):
3981
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3982
    args = getAllInsurers_args()
3983
    args.write(self._oprot)
3984
    self._oprot.writeMessageEnd()
3985
    self._oprot.trans.flush()
3986
 
3987
  def recv_getAllInsurers(self, ):
3988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3989
    if mtype == TMessageType.EXCEPTION:
3990
      x = TApplicationException()
3991
      x.read(self._iprot)
3992
      self._iprot.readMessageEnd()
3993
      raise x
3994
    result = getAllInsurers_result()
3995
    result.read(self._iprot)
3996
    self._iprot.readMessageEnd()
3997
    if result.success is not None:
3998
      return result.success
3999
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4000
 
6962 rajveer 4001
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4002
    """
4003
    Parameters:
4004
     - insurerId
4005
     - amount
4006
    """
4007
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4008
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4009
 
6962 rajveer 4010
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4011
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4012
    args = updateInsuranceDeclaredAmount_args()
4013
    args.insurerId = insurerId
4014
    args.amount = amount
4015
    args.write(self._oprot)
4016
    self._oprot.writeMessageEnd()
4017
    self._oprot.trans.flush()
4018
 
4019
  def recv_updateInsuranceDeclaredAmount(self, ):
4020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4021
    if mtype == TMessageType.EXCEPTION:
4022
      x = TApplicationException()
4023
      x.read(self._iprot)
4024
      self._iprot.readMessageEnd()
4025
      raise x
4026
    result = updateInsuranceDeclaredAmount_result()
4027
    result.read(self._iprot)
4028
    self._iprot.readMessageEnd()
4029
    return
4030
 
7190 amar.kumar 4031
  def getFreebieForItem(self, itemId):
4032
    """
4033
    Parameters:
4034
     - itemId
4035
    """
4036
    self.send_getFreebieForItem(itemId)
4037
    return self.recv_getFreebieForItem()
6962 rajveer 4038
 
7190 amar.kumar 4039
  def send_getFreebieForItem(self, itemId):
4040
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4041
    args = getFreebieForItem_args()
4042
    args.itemId = itemId
4043
    args.write(self._oprot)
4044
    self._oprot.writeMessageEnd()
4045
    self._oprot.trans.flush()
4046
 
4047
  def recv_getFreebieForItem(self, ):
4048
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4049
    if mtype == TMessageType.EXCEPTION:
4050
      x = TApplicationException()
4051
      x.read(self._iprot)
4052
      self._iprot.readMessageEnd()
4053
      raise x
4054
    result = getFreebieForItem_result()
4055
    result.read(self._iprot)
4056
    self._iprot.readMessageEnd()
4057
    if result.success is not None:
4058
      return result.success
4059
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4060
 
4061
  def addOrUpdateFreebieForItem(self, freebieItem):
4062
    """
4063
    Parameters:
4064
     - freebieItem
4065
    """
4066
    self.send_addOrUpdateFreebieForItem(freebieItem)
4067
    self.recv_addOrUpdateFreebieForItem()
4068
 
4069
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4070
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4071
    args = addOrUpdateFreebieForItem_args()
4072
    args.freebieItem = freebieItem
4073
    args.write(self._oprot)
4074
    self._oprot.writeMessageEnd()
4075
    self._oprot.trans.flush()
4076
 
4077
  def recv_addOrUpdateFreebieForItem(self, ):
4078
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4079
    if mtype == TMessageType.EXCEPTION:
4080
      x = TApplicationException()
4081
      x.read(self._iprot)
4082
      self._iprot.readMessageEnd()
4083
      raise x
4084
    result = addOrUpdateFreebieForItem_result()
4085
    result.read(self._iprot)
4086
    self._iprot.readMessageEnd()
4087
    return
4088
 
7272 amit.gupta 4089
  def addOrUpdateBrandInfo(self, brandInfo):
4090
    """
4091
    Parameters:
4092
     - brandInfo
4093
    """
4094
    self.send_addOrUpdateBrandInfo(brandInfo)
4095
    self.recv_addOrUpdateBrandInfo()
4096
 
4097
  def send_addOrUpdateBrandInfo(self, brandInfo):
4098
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4099
    args = addOrUpdateBrandInfo_args()
4100
    args.brandInfo = brandInfo
4101
    args.write(self._oprot)
4102
    self._oprot.writeMessageEnd()
4103
    self._oprot.trans.flush()
4104
 
4105
  def recv_addOrUpdateBrandInfo(self, ):
4106
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4107
    if mtype == TMessageType.EXCEPTION:
4108
      x = TApplicationException()
4109
      x.read(self._iprot)
4110
      self._iprot.readMessageEnd()
4111
      raise x
4112
    result = addOrUpdateBrandInfo_result()
4113
    result.read(self._iprot)
4114
    self._iprot.readMessageEnd()
4115
    return
4116
 
4117
  def getBrandInfo(self, ):
4118
    self.send_getBrandInfo()
4119
    return self.recv_getBrandInfo()
4120
 
4121
  def send_getBrandInfo(self, ):
4122
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4123
    args = getBrandInfo_args()
4124
    args.write(self._oprot)
4125
    self._oprot.writeMessageEnd()
4126
    self._oprot.trans.flush()
4127
 
4128
  def recv_getBrandInfo(self, ):
4129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4130
    if mtype == TMessageType.EXCEPTION:
4131
      x = TApplicationException()
4132
      x.read(self._iprot)
4133
      self._iprot.readMessageEnd()
4134
      raise x
4135
    result = getBrandInfo_result()
4136
    result.read(self._iprot)
4137
    self._iprot.readMessageEnd()
4138
    if result.success is not None:
4139
      return result.success
4140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4141
 
7256 rajveer 4142
  def getStorePricing(self, itemId):
4143
    """
4144
    Parameters:
4145
     - itemId
4146
    """
4147
    self.send_getStorePricing(itemId)
4148
    return self.recv_getStorePricing()
7190 amar.kumar 4149
 
7256 rajveer 4150
  def send_getStorePricing(self, itemId):
4151
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4152
    args = getStorePricing_args()
4153
    args.itemId = itemId
4154
    args.write(self._oprot)
4155
    self._oprot.writeMessageEnd()
4156
    self._oprot.trans.flush()
4157
 
4158
  def recv_getStorePricing(self, ):
4159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4160
    if mtype == TMessageType.EXCEPTION:
4161
      x = TApplicationException()
4162
      x.read(self._iprot)
4163
      self._iprot.readMessageEnd()
4164
      raise x
4165
    result = getStorePricing_result()
4166
    result.read(self._iprot)
4167
    self._iprot.readMessageEnd()
4168
    if result.success is not None:
4169
      return result.success
4170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4171
 
7306 rajveer 4172
  def getStorePricings(self, itemIds):
4173
    """
4174
    Parameters:
4175
     - itemIds
4176
    """
4177
    self.send_getStorePricings(itemIds)
4178
    return self.recv_getStorePricings()
4179
 
4180
  def send_getStorePricings(self, itemIds):
4181
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4182
    args = getStorePricings_args()
4183
    args.itemIds = itemIds
4184
    args.write(self._oprot)
4185
    self._oprot.writeMessageEnd()
4186
    self._oprot.trans.flush()
4187
 
4188
  def recv_getStorePricings(self, ):
4189
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4190
    if mtype == TMessageType.EXCEPTION:
4191
      x = TApplicationException()
4192
      x.read(self._iprot)
4193
      self._iprot.readMessageEnd()
4194
      raise x
4195
    result = getStorePricings_result()
4196
    result.read(self._iprot)
4197
    self._iprot.readMessageEnd()
4198
    if result.success is not None:
4199
      return result.success
4200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4201
 
7382 rajveer 4202
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4203
    """
4204
    Parameters:
4205
     - sp
7382 rajveer 4206
     - allColors
7265 rajveer 4207
    """
7382 rajveer 4208
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4209
    self.recv_updateStorePricing()
7256 rajveer 4210
 
7382 rajveer 4211
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4212
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4213
    args = updateStorePricing_args()
4214
    args.sp = sp
7382 rajveer 4215
    args.allColors = allColors
7265 rajveer 4216
    args.write(self._oprot)
4217
    self._oprot.writeMessageEnd()
4218
    self._oprot.trans.flush()
4219
 
4220
  def recv_updateStorePricing(self, ):
4221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4222
    if mtype == TMessageType.EXCEPTION:
4223
      x = TApplicationException()
4224
      x.read(self._iprot)
4225
      self._iprot.readMessageEnd()
4226
      raise x
4227
    result = updateStorePricing_result()
4228
    result.read(self._iprot)
4229
    self._iprot.readMessageEnd()
4230
    return
4231
 
7281 kshitij.so 4232
  def getAllAmazonListedItems(self, ):
4233
    self.send_getAllAmazonListedItems()
4234
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4235
 
7281 kshitij.so 4236
  def send_getAllAmazonListedItems(self, ):
4237
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4238
    args = getAllAmazonListedItems_args()
4239
    args.write(self._oprot)
4240
    self._oprot.writeMessageEnd()
4241
    self._oprot.trans.flush()
4242
 
4243
  def recv_getAllAmazonListedItems(self, ):
4244
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4245
    if mtype == TMessageType.EXCEPTION:
4246
      x = TApplicationException()
4247
      x.read(self._iprot)
4248
      self._iprot.readMessageEnd()
4249
      raise x
4250
    result = getAllAmazonListedItems_result()
4251
    result.read(self._iprot)
4252
    self._iprot.readMessageEnd()
4253
    if result.success is not None:
4254
      return result.success
4255
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4256
 
8619 kshitij.so 4257
  def searchAmazonItems(self, searchTerm, offset, limit):
4258
    """
4259
    Parameters:
4260
     - searchTerm
4261
     - offset
4262
     - limit
4263
    """
4264
    self.send_searchAmazonItems(searchTerm, offset, limit)
4265
    return self.recv_searchAmazonItems()
4266
 
4267
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4268
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4269
    args = searchAmazonItems_args()
4270
    args.searchTerm = searchTerm
4271
    args.offset = offset
4272
    args.limit = limit
4273
    args.write(self._oprot)
4274
    self._oprot.writeMessageEnd()
4275
    self._oprot.trans.flush()
4276
 
4277
  def recv_searchAmazonItems(self, ):
4278
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4279
    if mtype == TMessageType.EXCEPTION:
4280
      x = TApplicationException()
4281
      x.read(self._iprot)
4282
      self._iprot.readMessageEnd()
4283
      raise x
4284
    result = searchAmazonItems_result()
4285
    result.read(self._iprot)
4286
    self._iprot.readMessageEnd()
4287
    if result.success is not None:
4288
      return result.success
4289
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4290
 
4291
  def getAmazonSearchResultCount(self, searchTerm):
4292
    """
4293
    Parameters:
4294
     - searchTerm
4295
    """
4296
    self.send_getAmazonSearchResultCount(searchTerm)
4297
    return self.recv_getAmazonSearchResultCount()
4298
 
4299
  def send_getAmazonSearchResultCount(self, searchTerm):
4300
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4301
    args = getAmazonSearchResultCount_args()
4302
    args.searchTerm = searchTerm
4303
    args.write(self._oprot)
4304
    self._oprot.writeMessageEnd()
4305
    self._oprot.trans.flush()
4306
 
4307
  def recv_getAmazonSearchResultCount(self, ):
4308
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4309
    if mtype == TMessageType.EXCEPTION:
4310
      x = TApplicationException()
4311
      x.read(self._iprot)
4312
      self._iprot.readMessageEnd()
4313
      raise x
4314
    result = getAmazonSearchResultCount_result()
4315
    result.read(self._iprot)
4316
    self._iprot.readMessageEnd()
4317
    if result.success is not None:
4318
      return result.success
4319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4320
 
4321
  def getCountForAmazonlistedItems(self, ):
4322
    self.send_getCountForAmazonlistedItems()
4323
    return self.recv_getCountForAmazonlistedItems()
4324
 
4325
  def send_getCountForAmazonlistedItems(self, ):
4326
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4327
    args = getCountForAmazonlistedItems_args()
4328
    args.write(self._oprot)
4329
    self._oprot.writeMessageEnd()
4330
    self._oprot.trans.flush()
4331
 
4332
  def recv_getCountForAmazonlistedItems(self, ):
4333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4334
    if mtype == TMessageType.EXCEPTION:
4335
      x = TApplicationException()
4336
      x.read(self._iprot)
4337
      self._iprot.readMessageEnd()
4338
      raise x
4339
    result = getCountForAmazonlistedItems_result()
4340
    result.read(self._iprot)
4341
    self._iprot.readMessageEnd()
4342
    if result.success is not None:
4343
      return result.success
4344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4345
 
7281 kshitij.so 4346
  def getAmazonItemDetails(self, itemId):
4347
    """
4348
    Parameters:
4349
     - itemId
4350
    """
4351
    self.send_getAmazonItemDetails(itemId)
4352
    return self.recv_getAmazonItemDetails()
4353
 
4354
  def send_getAmazonItemDetails(self, itemId):
4355
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4356
    args = getAmazonItemDetails_args()
4357
    args.itemId = itemId
4358
    args.write(self._oprot)
4359
    self._oprot.writeMessageEnd()
4360
    self._oprot.trans.flush()
4361
 
4362
  def recv_getAmazonItemDetails(self, ):
4363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4364
    if mtype == TMessageType.EXCEPTION:
4365
      x = TApplicationException()
4366
      x.read(self._iprot)
4367
      self._iprot.readMessageEnd()
4368
      raise x
4369
    result = getAmazonItemDetails_result()
4370
    result.read(self._iprot)
4371
    self._iprot.readMessageEnd()
4372
    if result.success is not None:
4373
      return result.success
4374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4375
 
8168 kshitij.so 4376
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4377
    """
4378
    Parameters:
8168 kshitij.so 4379
     - amazonlisted
7281 kshitij.so 4380
    """
8168 kshitij.so 4381
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4382
    self.recv_updateAmazonItemDetails()
4383
 
8168 kshitij.so 4384
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4385
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4386
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4387
    args.amazonlisted = amazonlisted
7281 kshitij.so 4388
    args.write(self._oprot)
4389
    self._oprot.writeMessageEnd()
4390
    self._oprot.trans.flush()
4391
 
4392
  def recv_updateAmazonItemDetails(self, ):
4393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4394
    if mtype == TMessageType.EXCEPTION:
4395
      x = TApplicationException()
4396
      x.read(self._iprot)
4397
      self._iprot.readMessageEnd()
4398
      raise x
4399
    result = updateAmazonItemDetails_result()
4400
    result.read(self._iprot)
4401
    self._iprot.readMessageEnd()
4402
    return
4403
 
4404
  def addAmazonItem(self, amazonlisted):
4405
    """
4406
    Parameters:
4407
     - amazonlisted
4408
    """
4409
    self.send_addAmazonItem(amazonlisted)
4410
    self.recv_addAmazonItem()
4411
 
4412
  def send_addAmazonItem(self, amazonlisted):
4413
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4414
    args = addAmazonItem_args()
4415
    args.amazonlisted = amazonlisted
4416
    args.write(self._oprot)
4417
    self._oprot.writeMessageEnd()
4418
    self._oprot.trans.flush()
4419
 
4420
  def recv_addAmazonItem(self, ):
4421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4422
    if mtype == TMessageType.EXCEPTION:
4423
      x = TApplicationException()
4424
      x.read(self._iprot)
4425
      self._iprot.readMessageEnd()
4426
      raise x
4427
    result = addAmazonItem_result()
4428
    result.read(self._iprot)
4429
    self._iprot.readMessageEnd()
4430
    return
4431
 
7291 vikram.rag 4432
  def getAsinItems(self, ):
4433
    self.send_getAsinItems()
4434
    return self.recv_getAsinItems()
7281 kshitij.so 4435
 
7291 vikram.rag 4436
  def send_getAsinItems(self, ):
4437
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4438
    args = getAsinItems_args()
4439
    args.write(self._oprot)
4440
    self._oprot.writeMessageEnd()
4441
    self._oprot.trans.flush()
4442
 
4443
  def recv_getAsinItems(self, ):
4444
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4445
    if mtype == TMessageType.EXCEPTION:
4446
      x = TApplicationException()
4447
      x.read(self._iprot)
4448
      self._iprot.readMessageEnd()
4449
      raise x
4450
    result = getAsinItems_result()
4451
    result.read(self._iprot)
4452
    self._iprot.readMessageEnd()
4453
    if result.success is not None:
4454
      return result.success
4455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4456
 
4457
  def getAllFbaListedItems(self, ):
4458
    self.send_getAllFbaListedItems()
4459
    return self.recv_getAllFbaListedItems()
4460
 
4461
  def send_getAllFbaListedItems(self, ):
4462
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4463
    args = getAllFbaListedItems_args()
4464
    args.write(self._oprot)
4465
    self._oprot.writeMessageEnd()
4466
    self._oprot.trans.flush()
4467
 
4468
  def recv_getAllFbaListedItems(self, ):
4469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4470
    if mtype == TMessageType.EXCEPTION:
4471
      x = TApplicationException()
4472
      x.read(self._iprot)
4473
      self._iprot.readMessageEnd()
4474
      raise x
4475
    result = getAllFbaListedItems_result()
4476
    result.read(self._iprot)
4477
    self._iprot.readMessageEnd()
4478
    if result.success is not None:
4479
      return result.success
4480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4481
 
4482
  def getAllNonFbaListedItems(self, ):
4483
    self.send_getAllNonFbaListedItems()
4484
    return self.recv_getAllNonFbaListedItems()
4485
 
4486
  def send_getAllNonFbaListedItems(self, ):
4487
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4488
    args = getAllNonFbaListedItems_args()
4489
    args.write(self._oprot)
4490
    self._oprot.writeMessageEnd()
4491
    self._oprot.trans.flush()
4492
 
4493
  def recv_getAllNonFbaListedItems(self, ):
4494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4495
    if mtype == TMessageType.EXCEPTION:
4496
      x = TApplicationException()
4497
      x.read(self._iprot)
4498
      self._iprot.readMessageEnd()
4499
      raise x
4500
    result = getAllNonFbaListedItems_result()
4501
    result.read(self._iprot)
4502
    self._iprot.readMessageEnd()
4503
    if result.success is not None:
4504
      return result.success
4505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4506
 
7460 kshitij.so 4507
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4508
    """
4509
    Parameters:
4510
     - itemId
4511
     - holdInventory
4512
     - defaultInventory
4513
    """
4514
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4515
    return self.recv_updateItemInventory()
7291 vikram.rag 4516
 
7460 kshitij.so 4517
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4518
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4519
    args = updateItemInventory_args()
4520
    args.itemId = itemId
4521
    args.holdInventory = holdInventory
4522
    args.defaultInventory = defaultInventory
4523
    args.write(self._oprot)
4524
    self._oprot.writeMessageEnd()
4525
    self._oprot.trans.flush()
4526
 
4527
  def recv_updateItemInventory(self, ):
4528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4529
    if mtype == TMessageType.EXCEPTION:
4530
      x = TApplicationException()
4531
      x.read(self._iprot)
4532
      self._iprot.readMessageEnd()
4533
      raise x
4534
    result = updateItemInventory_result()
4535
    result.read(self._iprot)
4536
    self._iprot.readMessageEnd()
4537
    if result.success is not None:
4538
      return result.success
4539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4540
 
7770 kshitij.so 4541
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4542
    """
4543
    Parameters:
4544
     - type
4545
     - sku
4546
     - timestamp
4547
    """
4548
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4549
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4550
 
7770 kshitij.so 4551
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4552
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4553
    args = updateTimestampForAmazonFeeds_args()
4554
    args.type = type
4555
    args.sku = sku
4556
    args.timestamp = timestamp
4557
    args.write(self._oprot)
4558
    self._oprot.writeMessageEnd()
4559
    self._oprot.trans.flush()
4560
 
4561
  def recv_updateTimestampForAmazonFeeds(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 = updateTimestampForAmazonFeeds_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, "updateTimestampForAmazonFeeds failed: unknown result");
4574
 
7897 amar.kumar 4575
  def getAllParentCategories(self, ):
4576
    self.send_getAllParentCategories()
4577
    return self.recv_getAllParentCategories()
7770 kshitij.so 4578
 
7897 amar.kumar 4579
  def send_getAllParentCategories(self, ):
4580
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4581
    args = getAllParentCategories_args()
4582
    args.write(self._oprot)
4583
    self._oprot.writeMessageEnd()
4584
    self._oprot.trans.flush()
4585
 
4586
  def recv_getAllParentCategories(self, ):
4587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4588
    if mtype == TMessageType.EXCEPTION:
4589
      x = TApplicationException()
4590
      x.read(self._iprot)
4591
      self._iprot.readMessageEnd()
4592
      raise x
4593
    result = getAllParentCategories_result()
4594
    result.read(self._iprot)
4595
    self._iprot.readMessageEnd()
4596
    if result.success is not None:
4597
      return result.success
4598
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4599
 
7977 kshitij.so 4600
  def addPageViewEvent(self, pageViewEvents):
4601
    """
4602
    Parameters:
4603
     - pageViewEvents
4604
    """
4605
    self.send_addPageViewEvent(pageViewEvents)
4606
    self.recv_addPageViewEvent()
7897 amar.kumar 4607
 
7977 kshitij.so 4608
  def send_addPageViewEvent(self, pageViewEvents):
4609
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4610
    args = addPageViewEvent_args()
4611
    args.pageViewEvents = pageViewEvents
4612
    args.write(self._oprot)
4613
    self._oprot.writeMessageEnd()
4614
    self._oprot.trans.flush()
4615
 
4616
  def recv_addPageViewEvent(self, ):
4617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4618
    if mtype == TMessageType.EXCEPTION:
4619
      x = TApplicationException()
4620
      x.read(self._iprot)
4621
      self._iprot.readMessageEnd()
4622
      raise x
4623
    result = addPageViewEvent_result()
4624
    result.read(self._iprot)
4625
    self._iprot.readMessageEnd()
4626
    return
4627
 
4628
  def addCartEvent(self, cartEvents):
4629
    """
4630
    Parameters:
4631
     - cartEvents
4632
    """
4633
    self.send_addCartEvent(cartEvents)
4634
    self.recv_addCartEvent()
4635
 
4636
  def send_addCartEvent(self, cartEvents):
4637
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4638
    args = addCartEvent_args()
4639
    args.cartEvents = cartEvents
4640
    args.write(self._oprot)
4641
    self._oprot.writeMessageEnd()
4642
    self._oprot.trans.flush()
4643
 
4644
  def recv_addCartEvent(self, ):
4645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4646
    if mtype == TMessageType.EXCEPTION:
4647
      x = TApplicationException()
4648
      x.read(self._iprot)
4649
      self._iprot.readMessageEnd()
4650
      raise x
4651
    result = addCartEvent_result()
4652
    result.read(self._iprot)
4653
    self._iprot.readMessageEnd()
4654
    return
4655
 
8182 amar.kumar 4656
  def addEbayItem(self, ebayItem):
4657
    """
4658
    Parameters:
4659
     - ebayItem
4660
    """
4661
    self.send_addEbayItem(ebayItem)
4662
    self.recv_addEbayItem()
4663
 
4664
  def send_addEbayItem(self, ebayItem):
4665
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4666
    args = addEbayItem_args()
4667
    args.ebayItem = ebayItem
4668
    args.write(self._oprot)
4669
    self._oprot.writeMessageEnd()
4670
    self._oprot.trans.flush()
4671
 
4672
  def recv_addEbayItem(self, ):
4673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4674
    if mtype == TMessageType.EXCEPTION:
4675
      x = TApplicationException()
4676
      x.read(self._iprot)
4677
      self._iprot.readMessageEnd()
4678
      raise x
4679
    result = addEbayItem_result()
4680
    result.read(self._iprot)
4681
    self._iprot.readMessageEnd()
4682
    return
4683
 
4684
  def getEbayItem(self, listingId):
4685
    """
4686
    Parameters:
4687
     - listingId
4688
    """
4689
    self.send_getEbayItem(listingId)
4690
    return self.recv_getEbayItem()
4691
 
4692
  def send_getEbayItem(self, listingId):
4693
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4694
    args = getEbayItem_args()
4695
    args.listingId = listingId
4696
    args.write(self._oprot)
4697
    self._oprot.writeMessageEnd()
4698
    self._oprot.trans.flush()
4699
 
4700
  def recv_getEbayItem(self, ):
4701
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4702
    if mtype == TMessageType.EXCEPTION:
4703
      x = TApplicationException()
4704
      x.read(self._iprot)
4705
      self._iprot.readMessageEnd()
4706
      raise x
4707
    result = getEbayItem_result()
4708
    result.read(self._iprot)
4709
    self._iprot.readMessageEnd()
4710
    if result.success is not None:
4711
      return result.success
4712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4713
 
4714
  def updateEbayItem(self, ebayItem):
4715
    """
4716
    Parameters:
4717
     - ebayItem
4718
    """
4719
    self.send_updateEbayItem(ebayItem)
4720
    self.recv_updateEbayItem()
4721
 
4722
  def send_updateEbayItem(self, ebayItem):
4723
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4724
    args = updateEbayItem_args()
4725
    args.ebayItem = ebayItem
4726
    args.write(self._oprot)
4727
    self._oprot.writeMessageEnd()
4728
    self._oprot.trans.flush()
4729
 
4730
  def recv_updateEbayItem(self, ):
4731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4732
    if mtype == TMessageType.EXCEPTION:
4733
      x = TApplicationException()
4734
      x.read(self._iprot)
4735
      self._iprot.readMessageEnd()
4736
      raise x
4737
    result = updateEbayItem_result()
4738
    result.read(self._iprot)
4739
    self._iprot.readMessageEnd()
4740
    return
4741
 
8139 kshitij.so 4742
  def getAmazonListedItems(self, offset, limit):
4743
    """
4744
    Parameters:
4745
     - offset
4746
     - limit
4747
    """
4748
    self.send_getAmazonListedItems(offset, limit)
4749
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4750
 
8139 kshitij.so 4751
  def send_getAmazonListedItems(self, offset, limit):
4752
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4753
    args = getAmazonListedItems_args()
4754
    args.offset = offset
4755
    args.limit = limit
4756
    args.write(self._oprot)
4757
    self._oprot.writeMessageEnd()
4758
    self._oprot.trans.flush()
4759
 
4760
  def recv_getAmazonListedItems(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 = getAmazonListedItems_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, "getAmazonListedItems failed: unknown result");
4773
 
8168 kshitij.so 4774
  def updateAmazonAttributesInBulk(self, amazonlisted):
4775
    """
4776
    Parameters:
4777
     - amazonlisted
4778
    """
4779
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4780
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4781
 
8168 kshitij.so 4782
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4783
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4784
    args = updateAmazonAttributesInBulk_args()
4785
    args.amazonlisted = amazonlisted
4786
    args.write(self._oprot)
4787
    self._oprot.writeMessageEnd()
4788
    self._oprot.trans.flush()
4789
 
4790
  def recv_updateAmazonAttributesInBulk(self, ):
4791
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4792
    if mtype == TMessageType.EXCEPTION:
4793
      x = TApplicationException()
4794
      x.read(self._iprot)
4795
      self._iprot.readMessageEnd()
4796
      raise x
4797
    result = updateAmazonAttributesInBulk_result()
4798
    result.read(self._iprot)
4799
    self._iprot.readMessageEnd()
4800
    if result.success is not None:
4801
      return result.success
4802
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4803
 
8379 vikram.rag 4804
  def getAllItemstoListOnFba(self, ):
4805
    self.send_getAllItemstoListOnFba()
4806
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4807
 
8379 vikram.rag 4808
  def send_getAllItemstoListOnFba(self, ):
4809
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
4810
    args = getAllItemstoListOnFba_args()
4811
    args.write(self._oprot)
4812
    self._oprot.writeMessageEnd()
4813
    self._oprot.trans.flush()
4814
 
4815
  def recv_getAllItemstoListOnFba(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 = getAllItemstoListOnFba_result()
4823
    result.read(self._iprot)
4824
    self._iprot.readMessageEnd()
4825
    if result.success is not None:
4826
      return result.success
4827
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
4828
 
4829
  def getAllItemstoListOnNonFba(self, ):
4830
    self.send_getAllItemstoListOnNonFba()
4831
    return self.recv_getAllItemstoListOnNonFba()
4832
 
4833
  def send_getAllItemstoListOnNonFba(self, ):
4834
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
4835
    args = getAllItemstoListOnNonFba_args()
4836
    args.write(self._oprot)
4837
    self._oprot.writeMessageEnd()
4838
    self._oprot.trans.flush()
4839
 
4840
  def recv_getAllItemstoListOnNonFba(self, ):
4841
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4842
    if mtype == TMessageType.EXCEPTION:
4843
      x = TApplicationException()
4844
      x.read(self._iprot)
4845
      self._iprot.readMessageEnd()
4846
      raise x
4847
    result = getAllItemstoListOnNonFba_result()
4848
    result.read(self._iprot)
4849
    self._iprot.readMessageEnd()
4850
    if result.success is not None:
4851
      return result.success
4852
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4853
 
8619 kshitij.so 4854
  def updateAsin(self, item):
4855
    """
4856
    Parameters:
4857
     - item
4858
    """
4859
    self.send_updateAsin(item)
4860
    self.recv_updateAsin()
8616 vikram.rag 4861
 
8619 kshitij.so 4862
  def send_updateAsin(self, item):
4863
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
4864
    args = updateAsin_args()
4865
    args.item = item
4866
    args.write(self._oprot)
4867
    self._oprot.writeMessageEnd()
4868
    self._oprot.trans.flush()
4869
 
4870
  def recv_updateAsin(self, ):
4871
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4872
    if mtype == TMessageType.EXCEPTION:
4873
      x = TApplicationException()
4874
      x.read(self._iprot)
4875
      self._iprot.readMessageEnd()
4876
      raise x
4877
    result = updateAsin_result()
4878
    result.read(self._iprot)
4879
    self._iprot.readMessageEnd()
4880
    return
4881
 
8739 vikram.rag 4882
  def addOrUpdateSnapdealItem(self, snapdealitem):
4883
    """
4884
    Parameters:
4885
     - snapdealitem
4886
    """
4887
    self.send_addOrUpdateSnapdealItem(snapdealitem)
4888
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 4889
 
8739 vikram.rag 4890
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
4891
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
4892
    args = addOrUpdateSnapdealItem_args()
4893
    args.snapdealitem = snapdealitem
4894
    args.write(self._oprot)
4895
    self._oprot.writeMessageEnd()
4896
    self._oprot.trans.flush()
4897
 
4898
  def recv_addOrUpdateSnapdealItem(self, ):
4899
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4900
    if mtype == TMessageType.EXCEPTION:
4901
      x = TApplicationException()
4902
      x.read(self._iprot)
4903
      self._iprot.readMessageEnd()
4904
      raise x
4905
    result = addOrUpdateSnapdealItem_result()
4906
    result.read(self._iprot)
4907
    self._iprot.readMessageEnd()
4908
    if result.success is not None:
4909
      return result.success
4910
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
4911
 
4912
  def getSnapdealItem(self, item_id):
4913
    """
4914
    Parameters:
4915
     - item_id
4916
    """
4917
    self.send_getSnapdealItem(item_id)
4918
    return self.recv_getSnapdealItem()
4919
 
4920
  def send_getSnapdealItem(self, item_id):
4921
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
4922
    args = getSnapdealItem_args()
4923
    args.item_id = item_id
4924
    args.write(self._oprot)
4925
    self._oprot.writeMessageEnd()
4926
    self._oprot.trans.flush()
4927
 
4928
  def recv_getSnapdealItem(self, ):
4929
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4930
    if mtype == TMessageType.EXCEPTION:
4931
      x = TApplicationException()
4932
      x.read(self._iprot)
4933
      self._iprot.readMessageEnd()
4934
      raise x
4935
    result = getSnapdealItem_result()
4936
    result.read(self._iprot)
4937
    self._iprot.readMessageEnd()
4938
    if result.success is not None:
4939
      return result.success
4940
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4941
 
9242 kshitij.so 4942
  def getSnapdealItemDetails(self, item_id):
4943
    """
4944
    Parameters:
4945
     - item_id
4946
    """
4947
    self.send_getSnapdealItemDetails(item_id)
4948
    return self.recv_getSnapdealItemDetails()
4949
 
4950
  def send_getSnapdealItemDetails(self, item_id):
4951
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
4952
    args = getSnapdealItemDetails_args()
4953
    args.item_id = item_id
4954
    args.write(self._oprot)
4955
    self._oprot.writeMessageEnd()
4956
    self._oprot.trans.flush()
4957
 
4958
  def recv_getSnapdealItemDetails(self, ):
4959
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4960
    if mtype == TMessageType.EXCEPTION:
4961
      x = TApplicationException()
4962
      x.read(self._iprot)
4963
      self._iprot.readMessageEnd()
4964
      raise x
4965
    result = getSnapdealItemDetails_result()
4966
    result.read(self._iprot)
4967
    self._iprot.readMessageEnd()
4968
    if result.success is not None:
4969
      return result.success
4970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
4971
 
8739 vikram.rag 4972
  def getAllSnapdealItems(self, ):
4973
    self.send_getAllSnapdealItems()
4974
    return self.recv_getAllSnapdealItems()
4975
 
4976
  def send_getAllSnapdealItems(self, ):
4977
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
4978
    args = getAllSnapdealItems_args()
4979
    args.write(self._oprot)
4980
    self._oprot.writeMessageEnd()
4981
    self._oprot.trans.flush()
4982
 
4983
  def recv_getAllSnapdealItems(self, ):
4984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4985
    if mtype == TMessageType.EXCEPTION:
4986
      x = TApplicationException()
4987
      x.read(self._iprot)
4988
      self._iprot.readMessageEnd()
4989
      raise x
4990
    result = getAllSnapdealItems_result()
4991
    result.read(self._iprot)
4992
    self._iprot.readMessageEnd()
4993
    if result.success is not None:
4994
      return result.success
4995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4996
 
9242 kshitij.so 4997
  def getSnapdealItems(self, offset, limit):
4998
    """
4999
    Parameters:
5000
     - offset
5001
     - limit
5002
    """
5003
    self.send_getSnapdealItems(offset, limit)
5004
    return self.recv_getSnapdealItems()
8739 vikram.rag 5005
 
9242 kshitij.so 5006
  def send_getSnapdealItems(self, offset, limit):
5007
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5008
    args = getSnapdealItems_args()
5009
    args.offset = offset
5010
    args.limit = limit
5011
    args.write(self._oprot)
5012
    self._oprot.writeMessageEnd()
5013
    self._oprot.trans.flush()
5014
 
5015
  def recv_getSnapdealItems(self, ):
5016
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5017
    if mtype == TMessageType.EXCEPTION:
5018
      x = TApplicationException()
5019
      x.read(self._iprot)
5020
      self._iprot.readMessageEnd()
5021
      raise x
5022
    result = getSnapdealItems_result()
5023
    result.read(self._iprot)
5024
    self._iprot.readMessageEnd()
5025
    if result.success is not None:
5026
      return result.success
5027
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5028
 
5029
  def searchSnapdealItems(self, searchTerm, offset, limit):
5030
    """
5031
    Parameters:
5032
     - searchTerm
5033
     - offset
5034
     - limit
5035
    """
5036
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5037
    return self.recv_searchSnapdealItems()
5038
 
5039
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5040
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5041
    args = searchSnapdealItems_args()
5042
    args.searchTerm = searchTerm
5043
    args.offset = offset
5044
    args.limit = limit
5045
    args.write(self._oprot)
5046
    self._oprot.writeMessageEnd()
5047
    self._oprot.trans.flush()
5048
 
5049
  def recv_searchSnapdealItems(self, ):
5050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5051
    if mtype == TMessageType.EXCEPTION:
5052
      x = TApplicationException()
5053
      x.read(self._iprot)
5054
      self._iprot.readMessageEnd()
5055
      raise x
5056
    result = searchSnapdealItems_result()
5057
    result.read(self._iprot)
5058
    self._iprot.readMessageEnd()
5059
    if result.success is not None:
5060
      return result.success
5061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5062
 
5063
  def getCountForSnapdealItems(self, ):
5064
    self.send_getCountForSnapdealItems()
5065
    return self.recv_getCountForSnapdealItems()
5066
 
5067
  def send_getCountForSnapdealItems(self, ):
5068
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5069
    args = getCountForSnapdealItems_args()
5070
    args.write(self._oprot)
5071
    self._oprot.writeMessageEnd()
5072
    self._oprot.trans.flush()
5073
 
5074
  def recv_getCountForSnapdealItems(self, ):
5075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5076
    if mtype == TMessageType.EXCEPTION:
5077
      x = TApplicationException()
5078
      x.read(self._iprot)
5079
      self._iprot.readMessageEnd()
5080
      raise x
5081
    result = getCountForSnapdealItems_result()
5082
    result.read(self._iprot)
5083
    self._iprot.readMessageEnd()
5084
    if result.success is not None:
5085
      return result.success
5086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5087
 
5088
  def getSnapdealSearchResultCount(self, searchTerm):
5089
    """
5090
    Parameters:
5091
     - searchTerm
5092
    """
5093
    self.send_getSnapdealSearchResultCount(searchTerm)
5094
    return self.recv_getSnapdealSearchResultCount()
5095
 
5096
  def send_getSnapdealSearchResultCount(self, searchTerm):
5097
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5098
    args = getSnapdealSearchResultCount_args()
5099
    args.searchTerm = searchTerm
5100
    args.write(self._oprot)
5101
    self._oprot.writeMessageEnd()
5102
    self._oprot.trans.flush()
5103
 
5104
  def recv_getSnapdealSearchResultCount(self, ):
5105
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5106
    if mtype == TMessageType.EXCEPTION:
5107
      x = TApplicationException()
5108
      x.read(self._iprot)
5109
      self._iprot.readMessageEnd()
5110
      raise x
5111
    result = getSnapdealSearchResultCount_result()
5112
    result.read(self._iprot)
5113
    self._iprot.readMessageEnd()
5114
    if result.success is not None:
5115
      return result.success
5116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5117
 
9299 kshitij.so 5118
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5119
    """
5120
    Parameters:
5121
     - itemId
5122
     - insurerType
5123
    """
5124
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5125
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5126
 
9299 kshitij.so 5127
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5128
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5129
    args = getPrefferedInsurerForItem_args()
5130
    args.itemId = itemId
5131
    args.insurerType = insurerType
5132
    args.write(self._oprot)
5133
    self._oprot.writeMessageEnd()
5134
    self._oprot.trans.flush()
5135
 
5136
  def recv_getPrefferedInsurerForItem(self, ):
5137
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5138
    if mtype == TMessageType.EXCEPTION:
5139
      x = TApplicationException()
5140
      x.read(self._iprot)
5141
      self._iprot.readMessageEnd()
5142
      raise x
5143
    result = getPrefferedInsurerForItem_result()
5144
    result.read(self._iprot)
5145
    self._iprot.readMessageEnd()
5146
    if result.success is not None:
5147
      return result.success
5148
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5149
 
9456 vikram.rag 5150
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5151
    """
5152
    Parameters:
5153
     - skuAtSnapdeal
5154
    """
5155
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5156
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5157
 
9456 vikram.rag 5158
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5159
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5160
    args = getSnapdealItembySkuAtSnapdeal_args()
5161
    args.skuAtSnapdeal = skuAtSnapdeal
5162
    args.write(self._oprot)
5163
    self._oprot.writeMessageEnd()
5164
    self._oprot.trans.flush()
5165
 
5166
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5168
    if mtype == TMessageType.EXCEPTION:
5169
      x = TApplicationException()
5170
      x.read(self._iprot)
5171
      self._iprot.readMessageEnd()
5172
      raise x
5173
    result = getSnapdealItembySkuAtSnapdeal_result()
5174
    result.read(self._iprot)
5175
    self._iprot.readMessageEnd()
5176
    if result.success is not None:
5177
      return result.success
5178
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5179
 
9621 manish.sha 5180
  def getProductFeedSubmit(self, catalogItemId):
5181
    """
5182
    Parameters:
5183
     - catalogItemId
5184
    """
5185
    self.send_getProductFeedSubmit(catalogItemId)
5186
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5187
 
9621 manish.sha 5188
  def send_getProductFeedSubmit(self, catalogItemId):
5189
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5190
    args = getProductFeedSubmit_args()
5191
    args.catalogItemId = catalogItemId
5192
    args.write(self._oprot)
5193
    self._oprot.writeMessageEnd()
5194
    self._oprot.trans.flush()
5195
 
5196
  def recv_getProductFeedSubmit(self, ):
5197
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5198
    if mtype == TMessageType.EXCEPTION:
5199
      x = TApplicationException()
5200
      x.read(self._iprot)
5201
      self._iprot.readMessageEnd()
5202
      raise x
5203
    result = getProductFeedSubmit_result()
5204
    result.read(self._iprot)
5205
    self._iprot.readMessageEnd()
5206
    if result.success is not None:
5207
      return result.success
5208
    if result.cex is not None:
5209
      raise result.cex
5210
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5211
 
5212
  def addProductFeedSubmit(self, productFeedSubmit):
5213
    """
5214
    Parameters:
5215
     - productFeedSubmit
5216
    """
5217
    self.send_addProductFeedSubmit(productFeedSubmit)
5218
    return self.recv_addProductFeedSubmit()
5219
 
5220
  def send_addProductFeedSubmit(self, productFeedSubmit):
5221
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5222
    args = addProductFeedSubmit_args()
5223
    args.productFeedSubmit = productFeedSubmit
5224
    args.write(self._oprot)
5225
    self._oprot.writeMessageEnd()
5226
    self._oprot.trans.flush()
5227
 
5228
  def recv_addProductFeedSubmit(self, ):
5229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5230
    if mtype == TMessageType.EXCEPTION:
5231
      x = TApplicationException()
5232
      x.read(self._iprot)
5233
      self._iprot.readMessageEnd()
5234
      raise x
5235
    result = addProductFeedSubmit_result()
5236
    result.read(self._iprot)
5237
    self._iprot.readMessageEnd()
5238
    if result.success is not None:
5239
      return result.success
5240
    if result.cex is not None:
5241
      raise result.cex
5242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5243
 
5244
  def updateProductFeedSubmit(self, productFeedSubmit):
5245
    """
5246
    Parameters:
5247
     - productFeedSubmit
5248
    """
5249
    self.send_updateProductFeedSubmit(productFeedSubmit)
5250
    return self.recv_updateProductFeedSubmit()
5251
 
5252
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5253
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5254
    args = updateProductFeedSubmit_args()
5255
    args.productFeedSubmit = productFeedSubmit
5256
    args.write(self._oprot)
5257
    self._oprot.writeMessageEnd()
5258
    self._oprot.trans.flush()
5259
 
5260
  def recv_updateProductFeedSubmit(self, ):
5261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5262
    if mtype == TMessageType.EXCEPTION:
5263
      x = TApplicationException()
5264
      x.read(self._iprot)
5265
      self._iprot.readMessageEnd()
5266
      raise x
5267
    result = updateProductFeedSubmit_result()
5268
    result.read(self._iprot)
5269
    self._iprot.readMessageEnd()
5270
    if result.success is not None:
5271
      return result.success
5272
    if result.cex is not None:
5273
      raise result.cex
5274
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5275
 
5276
  def deleteProductFeedSubmit(self, catalogItemId):
5277
    """
5278
    Parameters:
5279
     - catalogItemId
5280
    """
5281
    self.send_deleteProductFeedSubmit(catalogItemId)
5282
    return self.recv_deleteProductFeedSubmit()
5283
 
5284
  def send_deleteProductFeedSubmit(self, catalogItemId):
5285
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5286
    args = deleteProductFeedSubmit_args()
5287
    args.catalogItemId = catalogItemId
5288
    args.write(self._oprot)
5289
    self._oprot.writeMessageEnd()
5290
    self._oprot.trans.flush()
5291
 
5292
  def recv_deleteProductFeedSubmit(self, ):
5293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5294
    if mtype == TMessageType.EXCEPTION:
5295
      x = TApplicationException()
5296
      x.read(self._iprot)
5297
      self._iprot.readMessageEnd()
5298
      raise x
5299
    result = deleteProductFeedSubmit_result()
5300
    result.read(self._iprot)
5301
    self._iprot.readMessageEnd()
5302
    if result.success is not None:
5303
      return result.success
5304
    if result.cex is not None:
5305
      raise result.cex
5306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5307
 
5308
  def getAllProductFeedSubmit(self, ):
5309
    self.send_getAllProductFeedSubmit()
5310
    return self.recv_getAllProductFeedSubmit()
5311
 
5312
  def send_getAllProductFeedSubmit(self, ):
5313
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5314
    args = getAllProductFeedSubmit_args()
5315
    args.write(self._oprot)
5316
    self._oprot.writeMessageEnd()
5317
    self._oprot.trans.flush()
5318
 
5319
  def recv_getAllProductFeedSubmit(self, ):
5320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5321
    if mtype == TMessageType.EXCEPTION:
5322
      x = TApplicationException()
5323
      x.read(self._iprot)
5324
      self._iprot.readMessageEnd()
5325
      raise x
5326
    result = getAllProductFeedSubmit_result()
5327
    result.read(self._iprot)
5328
    self._iprot.readMessageEnd()
5329
    if result.success is not None:
5330
      return result.success
5331
    if result.cex is not None:
5332
      raise result.cex
5333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5334
 
9724 kshitij.so 5335
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5336
    """
5337
    Parameters:
5338
     - itemId
5339
     - sourceId
5340
    """
5341
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5342
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5343
 
9724 kshitij.so 5344
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5345
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5346
    args = getMarketplacedetailsForItem_args()
5347
    args.itemId = itemId
5348
    args.sourceId = sourceId
5349
    args.write(self._oprot)
5350
    self._oprot.writeMessageEnd()
5351
    self._oprot.trans.flush()
5352
 
5353
  def recv_getMarketplacedetailsForItem(self, ):
5354
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5355
    if mtype == TMessageType.EXCEPTION:
5356
      x = TApplicationException()
5357
      x.read(self._iprot)
5358
      self._iprot.readMessageEnd()
5359
      raise x
5360
    result = getMarketplacedetailsForItem_result()
5361
    result.read(self._iprot)
5362
    self._iprot.readMessageEnd()
5363
    if result.success is not None:
5364
      return result.success
5365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5366
 
5367
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5368
    """
5369
    Parameters:
5370
     - marketPlaceItem
5371
    """
5372
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5373
    return self.recv_updateMarketplaceAttributesForItem()
5374
 
5375
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5376
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5377
    args = updateMarketplaceAttributesForItem_args()
5378
    args.marketPlaceItem = marketPlaceItem
5379
    args.write(self._oprot)
5380
    self._oprot.writeMessageEnd()
5381
    self._oprot.trans.flush()
5382
 
5383
  def recv_updateMarketplaceAttributesForItem(self, ):
5384
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5385
    if mtype == TMessageType.EXCEPTION:
5386
      x = TApplicationException()
5387
      x.read(self._iprot)
5388
      self._iprot.readMessageEnd()
5389
      raise x
5390
    result = updateMarketplaceAttributesForItem_result()
5391
    result.read(self._iprot)
5392
    self._iprot.readMessageEnd()
5393
    if result.success is not None:
5394
      return result.success
5395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5396
 
9779 kshitij.so 5397
  def getCostingForMarketplace(self, source, item_id):
5398
    """
5399
    Parameters:
5400
     - source
5401
     - item_id
5402
    """
5403
    self.send_getCostingForMarketplace(source, item_id)
5404
    return self.recv_getCostingForMarketplace()
5405
 
5406
  def send_getCostingForMarketplace(self, source, item_id):
5407
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5408
    args = getCostingForMarketplace_args()
5409
    args.source = source
5410
    args.item_id = item_id
5411
    args.write(self._oprot)
5412
    self._oprot.writeMessageEnd()
5413
    self._oprot.trans.flush()
5414
 
5415
  def recv_getCostingForMarketplace(self, ):
5416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5417
    if mtype == TMessageType.EXCEPTION:
5418
      x = TApplicationException()
5419
      x.read(self._iprot)
5420
      self._iprot.readMessageEnd()
5421
      raise x
5422
    result = getCostingForMarketplace_result()
5423
    result.read(self._iprot)
5424
    self._iprot.readMessageEnd()
5425
    if result.success is not None:
5426
      return result.success
5427
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5428
 
9776 vikram.rag 5429
  def getMarketPlaceItemsForPriceUpdate(self, source):
5430
    """
5431
    Parameters:
5432
     - source
5433
    """
5434
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5435
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5436
 
9776 vikram.rag 5437
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5438
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5439
    args = getMarketPlaceItemsForPriceUpdate_args()
5440
    args.source = source
5441
    args.write(self._oprot)
5442
    self._oprot.writeMessageEnd()
5443
    self._oprot.trans.flush()
5444
 
5445
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5447
    if mtype == TMessageType.EXCEPTION:
5448
      x = TApplicationException()
5449
      x.read(self._iprot)
5450
      self._iprot.readMessageEnd()
5451
      raise x
5452
    result = getMarketPlaceItemsForPriceUpdate_result()
5453
    result.read(self._iprot)
5454
    self._iprot.readMessageEnd()
5455
    if result.success is not None:
5456
      return result.success
5457
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5458
 
9816 kshitij.so 5459
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5460
    """
5461
    Parameters:
5462
     - skulist
5463
     - timestamp
9816 kshitij.so 5464
     - source
9776 vikram.rag 5465
    """
9816 kshitij.so 5466
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5467
    self.recv_updateMarketPlacePriceUpdateStatus()
5468
 
9816 kshitij.so 5469
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5470
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5471
    args = updateMarketPlacePriceUpdateStatus_args()
5472
    args.skulist = skulist
5473
    args.timestamp = timestamp
9816 kshitij.so 5474
    args.source = source
9776 vikram.rag 5475
    args.write(self._oprot)
5476
    self._oprot.writeMessageEnd()
5477
    self._oprot.trans.flush()
5478
 
5479
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5480
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5481
    if mtype == TMessageType.EXCEPTION:
5482
      x = TApplicationException()
5483
      x.read(self._iprot)
5484
      self._iprot.readMessageEnd()
5485
      raise x
5486
    result = updateMarketPlacePriceUpdateStatus_result()
5487
    result.read(self._iprot)
5488
    self._iprot.readMessageEnd()
5489
    return
5490
 
9861 rajveer 5491
  def updateItemHoldInventory(self, itemHoldMap):
5492
    """
5493
    Parameters:
5494
     - itemHoldMap
5495
    """
5496
    self.send_updateItemHoldInventory(itemHoldMap)
5497
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5498
 
9861 rajveer 5499
  def send_updateItemHoldInventory(self, itemHoldMap):
5500
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5501
    args = updateItemHoldInventory_args()
5502
    args.itemHoldMap = itemHoldMap
5503
    args.write(self._oprot)
5504
    self._oprot.writeMessageEnd()
5505
    self._oprot.trans.flush()
5506
 
5507
  def recv_updateItemHoldInventory(self, ):
5508
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5509
    if mtype == TMessageType.EXCEPTION:
5510
      x = TApplicationException()
5511
      x.read(self._iprot)
5512
      self._iprot.readMessageEnd()
5513
      raise x
5514
    result = updateItemHoldInventory_result()
5515
    result.read(self._iprot)
5516
    self._iprot.readMessageEnd()
5517
    return
5518
 
9895 vikram.rag 5519
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5520
    """
5521
    Parameters:
5522
     - item_id
5523
     - vendor_id
5524
     - nlc
5525
    """
5526
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5527
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5528
 
9895 vikram.rag 5529
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5530
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5531
    args = updateNlcAtMarketplaces_args()
5532
    args.item_id = item_id
5533
    args.vendor_id = vendor_id
5534
    args.nlc = nlc
5535
    args.write(self._oprot)
5536
    self._oprot.writeMessageEnd()
5537
    self._oprot.trans.flush()
5538
 
5539
  def recv_updateNlcAtMarketplaces(self, ):
5540
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5541
    if mtype == TMessageType.EXCEPTION:
5542
      x = TApplicationException()
5543
      x.read(self._iprot)
5544
      self._iprot.readMessageEnd()
5545
      raise x
5546
    result = updateNlcAtMarketplaces_result()
5547
    result.read(self._iprot)
5548
    self._iprot.readMessageEnd()
5549
    return
5550
 
9945 vikram.rag 5551
  def getAllFlipkartItems(self, ):
5552
    self.send_getAllFlipkartItems()
5553
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5554
 
9945 vikram.rag 5555
  def send_getAllFlipkartItems(self, ):
5556
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5557
    args = getAllFlipkartItems_args()
5558
    args.write(self._oprot)
5559
    self._oprot.writeMessageEnd()
5560
    self._oprot.trans.flush()
5561
 
5562
  def recv_getAllFlipkartItems(self, ):
5563
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5564
    if mtype == TMessageType.EXCEPTION:
5565
      x = TApplicationException()
5566
      x.read(self._iprot)
5567
      self._iprot.readMessageEnd()
5568
      raise x
5569
    result = getAllFlipkartItems_result()
5570
    result.read(self._iprot)
5571
    self._iprot.readMessageEnd()
5572
    if result.success is not None:
5573
      return result.success
5574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5575
 
10097 kshitij.so 5576
  def addOrUpdateFlipkartItem(self, flipkartitem):
5577
    """
5578
    Parameters:
5579
     - flipkartitem
5580
    """
5581
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5582
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5583
 
10097 kshitij.so 5584
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5585
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5586
    args = addOrUpdateFlipkartItem_args()
5587
    args.flipkartitem = flipkartitem
5588
    args.write(self._oprot)
5589
    self._oprot.writeMessageEnd()
5590
    self._oprot.trans.flush()
5591
 
5592
  def recv_addOrUpdateFlipkartItem(self, ):
5593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5594
    if mtype == TMessageType.EXCEPTION:
5595
      x = TApplicationException()
5596
      x.read(self._iprot)
5597
      self._iprot.readMessageEnd()
5598
      raise x
5599
    result = addOrUpdateFlipkartItem_result()
5600
    result.read(self._iprot)
5601
    self._iprot.readMessageEnd()
5602
    if result.success is not None:
5603
      return result.success
5604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5605
 
5606
  def getFlipkartItem(self, item_id):
5607
    """
5608
    Parameters:
5609
     - item_id
5610
    """
5611
    self.send_getFlipkartItem(item_id)
5612
    return self.recv_getFlipkartItem()
5613
 
5614
  def send_getFlipkartItem(self, item_id):
5615
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5616
    args = getFlipkartItem_args()
5617
    args.item_id = item_id
5618
    args.write(self._oprot)
5619
    self._oprot.writeMessageEnd()
5620
    self._oprot.trans.flush()
5621
 
5622
  def recv_getFlipkartItem(self, ):
5623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5624
    if mtype == TMessageType.EXCEPTION:
5625
      x = TApplicationException()
5626
      x.read(self._iprot)
5627
      self._iprot.readMessageEnd()
5628
      raise x
5629
    result = getFlipkartItem_result()
5630
    result.read(self._iprot)
5631
    self._iprot.readMessageEnd()
5632
    if result.success is not None:
5633
      return result.success
5634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5635
 
5636
  def getFlipkartItemDetails(self, item_id):
5637
    """
5638
    Parameters:
5639
     - item_id
5640
    """
5641
    self.send_getFlipkartItemDetails(item_id)
5642
    return self.recv_getFlipkartItemDetails()
5643
 
5644
  def send_getFlipkartItemDetails(self, item_id):
5645
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5646
    args = getFlipkartItemDetails_args()
5647
    args.item_id = item_id
5648
    args.write(self._oprot)
5649
    self._oprot.writeMessageEnd()
5650
    self._oprot.trans.flush()
5651
 
5652
  def recv_getFlipkartItemDetails(self, ):
5653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5654
    if mtype == TMessageType.EXCEPTION:
5655
      x = TApplicationException()
5656
      x.read(self._iprot)
5657
      self._iprot.readMessageEnd()
5658
      raise x
5659
    result = getFlipkartItemDetails_result()
5660
    result.read(self._iprot)
5661
    self._iprot.readMessageEnd()
5662
    if result.success is not None:
5663
      return result.success
5664
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5665
 
5666
  def getFlipkartItems(self, offset, limit):
5667
    """
5668
    Parameters:
5669
     - offset
5670
     - limit
5671
    """
5672
    self.send_getFlipkartItems(offset, limit)
5673
    return self.recv_getFlipkartItems()
5674
 
5675
  def send_getFlipkartItems(self, offset, limit):
5676
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5677
    args = getFlipkartItems_args()
5678
    args.offset = offset
5679
    args.limit = limit
5680
    args.write(self._oprot)
5681
    self._oprot.writeMessageEnd()
5682
    self._oprot.trans.flush()
5683
 
5684
  def recv_getFlipkartItems(self, ):
5685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5686
    if mtype == TMessageType.EXCEPTION:
5687
      x = TApplicationException()
5688
      x.read(self._iprot)
5689
      self._iprot.readMessageEnd()
5690
      raise x
5691
    result = getFlipkartItems_result()
5692
    result.read(self._iprot)
5693
    self._iprot.readMessageEnd()
5694
    if result.success is not None:
5695
      return result.success
5696
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5697
 
5698
  def searchFlipkartItems(self, searchTerm, offset, limit):
5699
    """
5700
    Parameters:
5701
     - searchTerm
5702
     - offset
5703
     - limit
5704
    """
5705
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5706
    return self.recv_searchFlipkartItems()
5707
 
5708
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5709
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5710
    args = searchFlipkartItems_args()
5711
    args.searchTerm = searchTerm
5712
    args.offset = offset
5713
    args.limit = limit
5714
    args.write(self._oprot)
5715
    self._oprot.writeMessageEnd()
5716
    self._oprot.trans.flush()
5717
 
5718
  def recv_searchFlipkartItems(self, ):
5719
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5720
    if mtype == TMessageType.EXCEPTION:
5721
      x = TApplicationException()
5722
      x.read(self._iprot)
5723
      self._iprot.readMessageEnd()
5724
      raise x
5725
    result = searchFlipkartItems_result()
5726
    result.read(self._iprot)
5727
    self._iprot.readMessageEnd()
5728
    if result.success is not None:
5729
      return result.success
5730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5731
 
5732
  def getCountForFlipkartItems(self, ):
5733
    self.send_getCountForFlipkartItems()
5734
    return self.recv_getCountForFlipkartItems()
5735
 
5736
  def send_getCountForFlipkartItems(self, ):
5737
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5738
    args = getCountForFlipkartItems_args()
5739
    args.write(self._oprot)
5740
    self._oprot.writeMessageEnd()
5741
    self._oprot.trans.flush()
5742
 
5743
  def recv_getCountForFlipkartItems(self, ):
5744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5745
    if mtype == TMessageType.EXCEPTION:
5746
      x = TApplicationException()
5747
      x.read(self._iprot)
5748
      self._iprot.readMessageEnd()
5749
      raise x
5750
    result = getCountForFlipkartItems_result()
5751
    result.read(self._iprot)
5752
    self._iprot.readMessageEnd()
5753
    if result.success is not None:
5754
      return result.success
5755
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5756
 
5757
  def getFlipkartSearchResultCount(self, searchTerm):
5758
    """
5759
    Parameters:
5760
     - searchTerm
5761
    """
5762
    self.send_getFlipkartSearchResultCount(searchTerm)
5763
    return self.recv_getFlipkartSearchResultCount()
5764
 
5765
  def send_getFlipkartSearchResultCount(self, searchTerm):
5766
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5767
    args = getFlipkartSearchResultCount_args()
5768
    args.searchTerm = searchTerm
5769
    args.write(self._oprot)
5770
    self._oprot.writeMessageEnd()
5771
    self._oprot.trans.flush()
5772
 
5773
  def recv_getFlipkartSearchResultCount(self, ):
5774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5775
    if mtype == TMessageType.EXCEPTION:
5776
      x = TApplicationException()
5777
      x.read(self._iprot)
5778
      self._iprot.readMessageEnd()
5779
      raise x
5780
    result = getFlipkartSearchResultCount_result()
5781
    result.read(self._iprot)
5782
    self._iprot.readMessageEnd()
5783
    if result.success is not None:
5784
      return result.success
5785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5786
 
5787
  def getAllFkItems(self, ):
5788
    self.send_getAllFkItems()
5789
    return self.recv_getAllFkItems()
5790
 
5791
  def send_getAllFkItems(self, ):
5792
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5793
    args = getAllFkItems_args()
5794
    args.write(self._oprot)
5795
    self._oprot.writeMessageEnd()
5796
    self._oprot.trans.flush()
5797
 
5798
  def recv_getAllFkItems(self, ):
5799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5800
    if mtype == TMessageType.EXCEPTION:
5801
      x = TApplicationException()
5802
      x.read(self._iprot)
5803
      self._iprot.readMessageEnd()
5804
      raise x
5805
    result = getAllFkItems_result()
5806
    result.read(self._iprot)
5807
    self._iprot.readMessageEnd()
5808
    if result.success is not None:
5809
      return result.success
5810
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
5811
 
10140 vikram.rag 5812
  def getFlipkartItemBySkyAtFlipkart(self, sku):
5813
    """
5814
    Parameters:
5815
     - sku
5816
    """
5817
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
5818
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 5819
 
10140 vikram.rag 5820
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
5821
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
5822
    args = getFlipkartItemBySkyAtFlipkart_args()
5823
    args.sku = sku
5824
    args.write(self._oprot)
5825
    self._oprot.writeMessageEnd()
5826
    self._oprot.trans.flush()
5827
 
5828
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
5829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5830
    if mtype == TMessageType.EXCEPTION:
5831
      x = TApplicationException()
5832
      x.read(self._iprot)
5833
      self._iprot.readMessageEnd()
5834
      raise x
5835
    result = getFlipkartItemBySkyAtFlipkart_result()
5836
    result.read(self._iprot)
5837
    self._iprot.readMessageEnd()
5838
    if result.success is not None:
5839
      return result.success
5840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
5841
 
10909 vikram.rag 5842
  def getAllFbbListedItems(self, ):
5843
    self.send_getAllFbbListedItems()
5844
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 5845
 
10909 vikram.rag 5846
  def send_getAllFbbListedItems(self, ):
5847
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
5848
    args = getAllFbbListedItems_args()
5849
    args.write(self._oprot)
5850
    self._oprot.writeMessageEnd()
5851
    self._oprot.trans.flush()
5852
 
5853
  def recv_getAllFbbListedItems(self, ):
5854
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5855
    if mtype == TMessageType.EXCEPTION:
5856
      x = TApplicationException()
5857
      x.read(self._iprot)
5858
      self._iprot.readMessageEnd()
5859
      raise x
5860
    result = getAllFbbListedItems_result()
5861
    result.read(self._iprot)
5862
    self._iprot.readMessageEnd()
5863
    if result.success is not None:
5864
      return result.success
5865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
5866
 
5867
 
5944 mandeep.dh 5868
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5869
  def __init__(self, handler):
5870
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5871
    self._processMap["addItem"] = Processor.process_addItem
5872
    self._processMap["updateItem"] = Processor.process_updateItem
5873
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 5874
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 5875
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
5876
    self._processMap["startItemOn"] = Processor.process_startItemOn
5877
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
5878
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
5879
    self._processMap["getItem"] = Processor.process_getItem
5880
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
5881
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
5882
    self._processMap["getAllItems"] = Processor.process_getAllItems
5883
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
5884
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
5885
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
5886
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
5887
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
5888
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
5889
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
5890
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
5891
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
5892
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
5893
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
5894
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
5895
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
5896
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
5897
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
5898
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
5899
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
5900
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
5901
    self._processMap["addCategory"] = Processor.process_addCategory
5902
    self._processMap["getCategory"] = Processor.process_getCategory
5903
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
5904
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
5905
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 5906
    self._processMap["addTag"] = Processor.process_addTag
5907
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
5908
    self._processMap["deleteTag"] = Processor.process_deleteTag
5909
    self._processMap["getAllTags"] = Processor.process_getAllTags
5910
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 5911
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 5912
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 5913
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 5914
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
5915
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
5916
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
5917
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 5918
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 5919
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 5920
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
5921
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 5922
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
5923
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
5924
    self._processMap["addCampaign"] = Processor.process_addCampaign
5925
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
5926
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
5927
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 5928
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 5929
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
5930
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
5931
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
5932
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
5933
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
5934
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
5935
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
5936
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
5937
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
5938
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
5939
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
5940
    self._processMap["getAllSources"] = Processor.process_getAllSources
5941
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
5942
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
5943
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
5944
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
5945
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
5946
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
5947
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
5948
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
5949
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
5950
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
5951
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
5952
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
5953
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
5954
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 5955
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
5956
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 5957
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 5958
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 5959
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
5960
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 5961
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 5962
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 5963
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
5964
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 5965
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
5966
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 5967
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 5968
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 5969
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 5970
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 5971
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
5972
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
5973
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 5974
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
5975
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
5976
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 5977
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
5978
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
5979
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 5980
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 5981
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 5982
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 5983
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
5984
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 5985
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
5986
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
5987
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 5988
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 5989
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 5990
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
5991
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 5992
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 5993
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
5994
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 5995
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 5996
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 5997
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
5998
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
5999
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6000
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6001
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6002
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6003
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6004
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6005
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6006
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6007
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6008
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6009
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6010
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6011
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6012
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6013
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6014
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6015
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6016
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6017
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6018
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6019
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6020
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6021
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6022
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6023
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 6024
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
10909 vikram.rag 6025
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
5944 mandeep.dh 6026
 
6027
  def process(self, iprot, oprot):
6028
    (name, type, seqid) = iprot.readMessageBegin()
6029
    if name not in self._processMap:
6030
      iprot.skip(TType.STRUCT)
6031
      iprot.readMessageEnd()
6032
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
6033
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
6034
      x.write(oprot)
6035
      oprot.writeMessageEnd()
6036
      oprot.trans.flush()
6037
      return
6038
    else:
6039
      self._processMap[name](self, seqid, iprot, oprot)
6040
    return True
6041
 
6042
  def process_addItem(self, seqid, iprot, oprot):
6043
    args = addItem_args()
6044
    args.read(iprot)
6045
    iprot.readMessageEnd()
6046
    result = addItem_result()
6047
    try:
6048
      result.success = self._handler.addItem(args.item)
6049
    except CatalogServiceException, cex:
6050
      result.cex = cex
6051
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
6052
    result.write(oprot)
6053
    oprot.writeMessageEnd()
6054
    oprot.trans.flush()
6055
 
6056
  def process_updateItem(self, seqid, iprot, oprot):
6057
    args = updateItem_args()
6058
    args.read(iprot)
6059
    iprot.readMessageEnd()
6060
    result = updateItem_result()
6061
    try:
6062
      result.success = self._handler.updateItem(args.item)
6063
    except CatalogServiceException, cex:
6064
      result.cex = cex
6065
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
6066
    result.write(oprot)
6067
    oprot.writeMessageEnd()
6068
    oprot.trans.flush()
6069
 
6070
  def process_isActive(self, seqid, iprot, oprot):
6071
    args = isActive_args()
6072
    args.read(iprot)
6073
    iprot.readMessageEnd()
6074
    result = isActive_result()
6075
    try:
6076
      result.success = self._handler.isActive(args.itemId)
6077
    except CatalogServiceException, isex:
6078
      result.isex = isex
6079
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
6080
    result.write(oprot)
6081
    oprot.writeMessageEnd()
6082
    oprot.trans.flush()
6083
 
7438 amit.gupta 6084
  def process_getItemsStatus(self, seqid, iprot, oprot):
6085
    args = getItemsStatus_args()
6086
    args.read(iprot)
6087
    iprot.readMessageEnd()
6088
    result = getItemsStatus_result()
6089
    try:
6090
      result.success = self._handler.getItemsStatus(args.itemIds)
6091
    except CatalogServiceException, isex:
6092
      result.isex = isex
6093
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
6094
    result.write(oprot)
6095
    oprot.writeMessageEnd()
6096
    oprot.trans.flush()
6097
 
5944 mandeep.dh 6098
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
6099
    args = getItemStatusDescription_args()
6100
    args.read(iprot)
6101
    iprot.readMessageEnd()
6102
    result = getItemStatusDescription_result()
6103
    try:
6104
      result.success = self._handler.getItemStatusDescription(args.itemId)
6105
    except CatalogServiceException, isex:
6106
      result.isex = isex
6107
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
6108
    result.write(oprot)
6109
    oprot.writeMessageEnd()
6110
    oprot.trans.flush()
6111
 
6112
  def process_startItemOn(self, seqid, iprot, oprot):
6113
    args = startItemOn_args()
6114
    args.read(iprot)
6115
    iprot.readMessageEnd()
6116
    result = startItemOn_result()
6117
    try:
6118
      self._handler.startItemOn(args.item_id, args.timestamp)
6119
    except CatalogServiceException, cex:
6120
      result.cex = cex
6121
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
6122
    result.write(oprot)
6123
    oprot.writeMessageEnd()
6124
    oprot.trans.flush()
6125
 
6126
  def process_retireItemOn(self, seqid, iprot, oprot):
6127
    args = retireItemOn_args()
6128
    args.read(iprot)
6129
    iprot.readMessageEnd()
6130
    result = retireItemOn_result()
6131
    try:
6132
      self._handler.retireItemOn(args.item_id, args.timestamp)
6133
    except CatalogServiceException, cex:
6134
      result.cex = cex
6135
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
6136
    result.write(oprot)
6137
    oprot.writeMessageEnd()
6138
    oprot.trans.flush()
6139
 
6140
  def process_changeItemStatus(self, seqid, iprot, oprot):
6141
    args = changeItemStatus_args()
6142
    args.read(iprot)
6143
    iprot.readMessageEnd()
6144
    result = changeItemStatus_result()
6145
    try:
6146
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
6147
    except CatalogServiceException, cex:
6148
      result.cex = cex
6149
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
6150
    result.write(oprot)
6151
    oprot.writeMessageEnd()
6152
    oprot.trans.flush()
6153
 
6154
  def process_getItem(self, seqid, iprot, oprot):
6155
    args = getItem_args()
6156
    args.read(iprot)
6157
    iprot.readMessageEnd()
6158
    result = getItem_result()
6159
    try:
6160
      result.success = self._handler.getItem(args.item_id)
6161
    except CatalogServiceException, cex:
6162
      result.cex = cex
6163
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
6164
    result.write(oprot)
6165
    oprot.writeMessageEnd()
6166
    oprot.trans.flush()
6167
 
6168
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
6169
    args = getItemsByCatalogId_args()
6170
    args.read(iprot)
6171
    iprot.readMessageEnd()
6172
    result = getItemsByCatalogId_result()
6173
    try:
6174
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
6175
    except CatalogServiceException, cex:
6176
      result.cex = cex
6177
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
6178
    result.write(oprot)
6179
    oprot.writeMessageEnd()
6180
    oprot.trans.flush()
6181
 
6182
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
6183
    args = getValidItemsByCatalogId_args()
6184
    args.read(iprot)
6185
    iprot.readMessageEnd()
6186
    result = getValidItemsByCatalogId_result()
6187
    try:
6188
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
6189
    except CatalogServiceException, cex:
6190
      result.cex = cex
6191
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
6192
    result.write(oprot)
6193
    oprot.writeMessageEnd()
6194
    oprot.trans.flush()
6195
 
6196
  def process_getAllItems(self, seqid, iprot, oprot):
6197
    args = getAllItems_args()
6198
    args.read(iprot)
6199
    iprot.readMessageEnd()
6200
    result = getAllItems_result()
6201
    try:
6202
      result.success = self._handler.getAllItems(args.isActive)
6203
    except CatalogServiceException, cex:
6204
      result.cex = cex
6205
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
6206
    result.write(oprot)
6207
    oprot.writeMessageEnd()
6208
    oprot.trans.flush()
6209
 
6210
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
6211
    args = getAllItemsByStatus_args()
6212
    args.read(iprot)
6213
    iprot.readMessageEnd()
6214
    result = getAllItemsByStatus_result()
6215
    try:
6216
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
6217
    except CatalogServiceException, cex:
6218
      result.cex = cex
6219
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
6220
    result.write(oprot)
6221
    oprot.writeMessageEnd()
6222
    oprot.trans.flush()
6223
 
6224
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
6225
    args = markItemAsContentComplete_args()
6226
    args.read(iprot)
6227
    iprot.readMessageEnd()
6228
    result = markItemAsContentComplete_result()
6229
    try:
9253 rajveer 6230
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 6231
    except CatalogServiceException, cex:
6232
      result.cex = cex
6233
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
6234
    result.write(oprot)
6235
    oprot.writeMessageEnd()
6236
    oprot.trans.flush()
6237
 
6238
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
6239
    args = getAllItemsInRange_args()
6240
    args.read(iprot)
6241
    iprot.readMessageEnd()
6242
    result = getAllItemsInRange_result()
6243
    try:
6244
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
6245
    except CatalogServiceException, cex:
6246
      result.cex = cex
6247
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
6248
    result.write(oprot)
6249
    oprot.writeMessageEnd()
6250
    oprot.trans.flush()
6251
 
6252
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
6253
    args = getAllItemsByStatusInRange_args()
6254
    args.read(iprot)
6255
    iprot.readMessageEnd()
6256
    result = getAllItemsByStatusInRange_result()
6257
    try:
6258
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
6259
    except CatalogServiceException, cex:
6260
      result.cex = cex
6261
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
6262
    result.write(oprot)
6263
    oprot.writeMessageEnd()
6264
    oprot.trans.flush()
6265
 
6266
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
6267
    args = getItemCountByStatus_args()
6268
    args.read(iprot)
6269
    iprot.readMessageEnd()
6270
    result = getItemCountByStatus_result()
6271
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
6272
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
6273
    result.write(oprot)
6274
    oprot.writeMessageEnd()
6275
    oprot.trans.flush()
6276
 
6277
  def process_getBestSellers(self, seqid, iprot, oprot):
6278
    args = getBestSellers_args()
6279
    args.read(iprot)
6280
    iprot.readMessageEnd()
6281
    result = getBestSellers_result()
6282
    try:
6283
      result.success = self._handler.getBestSellers()
6284
    except CatalogServiceException, isex:
6285
      result.isex = isex
6286
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
6287
    result.write(oprot)
6288
    oprot.writeMessageEnd()
6289
    oprot.trans.flush()
6290
 
6291
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
6292
    args = getBestSellersCatalogIds_args()
6293
    args.read(iprot)
6294
    iprot.readMessageEnd()
6295
    result = getBestSellersCatalogIds_result()
6296
    try:
6297
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
6298
    except CatalogServiceException, cex:
6299
      result.cex = cex
6300
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
6301
    result.write(oprot)
6302
    oprot.writeMessageEnd()
6303
    oprot.trans.flush()
6304
 
6305
  def process_getBestSellersCount(self, seqid, iprot, oprot):
6306
    args = getBestSellersCount_args()
6307
    args.read(iprot)
6308
    iprot.readMessageEnd()
6309
    result = getBestSellersCount_result()
6310
    try:
6311
      result.success = self._handler.getBestSellersCount()
6312
    except CatalogServiceException, cex:
6313
      result.cex = cex
6314
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
6315
    result.write(oprot)
6316
    oprot.writeMessageEnd()
6317
    oprot.trans.flush()
6318
 
6319
  def process_getBestDeals(self, seqid, iprot, oprot):
6320
    args = getBestDeals_args()
6321
    args.read(iprot)
6322
    iprot.readMessageEnd()
6323
    result = getBestDeals_result()
6324
    try:
6325
      result.success = self._handler.getBestDeals()
6326
    except CatalogServiceException, isex:
6327
      result.isex = isex
6328
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
6329
    result.write(oprot)
6330
    oprot.writeMessageEnd()
6331
    oprot.trans.flush()
6332
 
6333
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
6334
    args = getBestDealsCatalogIds_args()
6335
    args.read(iprot)
6336
    iprot.readMessageEnd()
6337
    result = getBestDealsCatalogIds_result()
6338
    try:
6339
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
6340
    except CatalogServiceException, cex:
6341
      result.cex = cex
6342
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
6343
    result.write(oprot)
6344
    oprot.writeMessageEnd()
6345
    oprot.trans.flush()
6346
 
6347
  def process_getBestDealsCount(self, seqid, iprot, oprot):
6348
    args = getBestDealsCount_args()
6349
    args.read(iprot)
6350
    iprot.readMessageEnd()
6351
    result = getBestDealsCount_result()
6352
    try:
6353
      result.success = self._handler.getBestDealsCount()
6354
    except CatalogServiceException, cex:
6355
      result.cex = cex
6356
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
6357
    result.write(oprot)
6358
    oprot.writeMessageEnd()
6359
    oprot.trans.flush()
6360
 
6361
  def process_getComingSoon(self, seqid, iprot, oprot):
6362
    args = getComingSoon_args()
6363
    args.read(iprot)
6364
    iprot.readMessageEnd()
6365
    result = getComingSoon_result()
6366
    try:
6367
      result.success = self._handler.getComingSoon()
6368
    except CatalogServiceException, isex:
6369
      result.isex = isex
6370
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
6371
    result.write(oprot)
6372
    oprot.writeMessageEnd()
6373
    oprot.trans.flush()
6374
 
6375
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
6376
    args = getComingSoonCatalogIds_args()
6377
    args.read(iprot)
6378
    iprot.readMessageEnd()
6379
    result = getComingSoonCatalogIds_result()
6380
    try:
6381
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
6382
    except CatalogServiceException, cex:
6383
      result.cex = cex
6384
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
6385
    result.write(oprot)
6386
    oprot.writeMessageEnd()
6387
    oprot.trans.flush()
6388
 
6389
  def process_getComingSoonCount(self, seqid, iprot, oprot):
6390
    args = getComingSoonCount_args()
6391
    args.read(iprot)
6392
    iprot.readMessageEnd()
6393
    result = getComingSoonCount_result()
6394
    try:
6395
      result.success = self._handler.getComingSoonCount()
6396
    except CatalogServiceException, cex:
6397
      result.cex = cex
6398
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
6399
    result.write(oprot)
6400
    oprot.writeMessageEnd()
6401
    oprot.trans.flush()
6402
 
6403
  def process_getLatestArrivals(self, seqid, iprot, oprot):
6404
    args = getLatestArrivals_args()
6405
    args.read(iprot)
6406
    iprot.readMessageEnd()
6407
    result = getLatestArrivals_result()
6408
    try:
6409
      result.success = self._handler.getLatestArrivals()
6410
    except CatalogServiceException, isex:
6411
      result.isex = isex
6412
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
6413
    result.write(oprot)
6414
    oprot.writeMessageEnd()
6415
    oprot.trans.flush()
6416
 
6417
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
6418
    args = getLatestArrivalsCatalogIds_args()
6419
    args.read(iprot)
6420
    iprot.readMessageEnd()
6421
    result = getLatestArrivalsCatalogIds_result()
6422
    try:
6423
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
6424
    except CatalogServiceException, cex:
6425
      result.cex = cex
6426
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
6427
    result.write(oprot)
6428
    oprot.writeMessageEnd()
6429
    oprot.trans.flush()
6430
 
6431
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
6432
    args = getLatestArrivalsCount_args()
6433
    args.read(iprot)
6434
    iprot.readMessageEnd()
6435
    result = getLatestArrivalsCount_result()
6436
    try:
6437
      result.success = self._handler.getLatestArrivalsCount()
6438
    except CatalogServiceException, cex:
6439
      result.cex = cex
6440
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
6441
    result.write(oprot)
6442
    oprot.writeMessageEnd()
6443
    oprot.trans.flush()
6444
 
6445
  def process_generateNewEntityID(self, seqid, iprot, oprot):
6446
    args = generateNewEntityID_args()
6447
    args.read(iprot)
6448
    iprot.readMessageEnd()
6449
    result = generateNewEntityID_result()
6450
    result.success = self._handler.generateNewEntityID()
6451
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
6452
    result.write(oprot)
6453
    oprot.writeMessageEnd()
6454
    oprot.trans.flush()
6455
 
6456
  def process_addCategory(self, seqid, iprot, oprot):
6457
    args = addCategory_args()
6458
    args.read(iprot)
6459
    iprot.readMessageEnd()
6460
    result = addCategory_result()
6461
    result.success = self._handler.addCategory(args.category)
6462
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
6463
    result.write(oprot)
6464
    oprot.writeMessageEnd()
6465
    oprot.trans.flush()
6466
 
6467
  def process_getCategory(self, seqid, iprot, oprot):
6468
    args = getCategory_args()
6469
    args.read(iprot)
6470
    iprot.readMessageEnd()
6471
    result = getCategory_result()
6472
    result.success = self._handler.getCategory(args.id)
6473
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
6474
    result.write(oprot)
6475
    oprot.writeMessageEnd()
6476
    oprot.trans.flush()
6477
 
6478
  def process_getAllCategories(self, seqid, iprot, oprot):
6479
    args = getAllCategories_args()
6480
    args.read(iprot)
6481
    iprot.readMessageEnd()
6482
    result = getAllCategories_result()
6483
    result.success = self._handler.getAllCategories()
6484
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
6485
    result.write(oprot)
6486
    oprot.writeMessageEnd()
6487
    oprot.trans.flush()
6488
 
6489
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
6490
    args = getAllSimilarItems_args()
6491
    args.read(iprot)
6492
    iprot.readMessageEnd()
6493
    result = getAllSimilarItems_result()
6494
    result.success = self._handler.getAllSimilarItems(args.itemId)
6495
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
6496
    result.write(oprot)
6497
    oprot.writeMessageEnd()
6498
    oprot.trans.flush()
6499
 
6500
  def process_addSimilarItem(self, seqid, iprot, oprot):
6501
    args = addSimilarItem_args()
6502
    args.read(iprot)
6503
    iprot.readMessageEnd()
6504
    result = addSimilarItem_result()
6505
    try:
6506
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
6507
    except CatalogServiceException, cex:
6508
      result.cex = cex
6509
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
6510
    result.write(oprot)
6511
    oprot.writeMessageEnd()
6512
    oprot.trans.flush()
6513
 
6512 kshitij.so 6514
  def process_addTag(self, seqid, iprot, oprot):
6515
    args = addTag_args()
6516
    args.read(iprot)
6517
    iprot.readMessageEnd()
6518
    result = addTag_result()
6519
    result.success = self._handler.addTag(args.displayName, args.itemId)
6520
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
6521
    result.write(oprot)
6522
    oprot.writeMessageEnd()
6523
    oprot.trans.flush()
6524
 
6525
  def process_deleteEntityTag(self, seqid, iprot, oprot):
6526
    args = deleteEntityTag_args()
6527
    args.read(iprot)
6528
    iprot.readMessageEnd()
6529
    result = deleteEntityTag_result()
6530
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
6531
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
6532
    result.write(oprot)
6533
    oprot.writeMessageEnd()
6534
    oprot.trans.flush()
6535
 
6536
  def process_deleteTag(self, seqid, iprot, oprot):
6537
    args = deleteTag_args()
6538
    args.read(iprot)
6539
    iprot.readMessageEnd()
6540
    result = deleteTag_result()
6541
    result.success = self._handler.deleteTag(args.displayName)
6542
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
6543
    result.write(oprot)
6544
    oprot.writeMessageEnd()
6545
    oprot.trans.flush()
6546
 
6547
  def process_getAllTags(self, seqid, iprot, oprot):
6548
    args = getAllTags_args()
6549
    args.read(iprot)
6550
    iprot.readMessageEnd()
6551
    result = getAllTags_result()
6552
    result.success = self._handler.getAllTags()
6553
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
6554
    result.write(oprot)
6555
    oprot.writeMessageEnd()
6556
    oprot.trans.flush()
6557
 
6558
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
6559
    args = getAllEntitiesByTagName_args()
6560
    args.read(iprot)
6561
    iprot.readMessageEnd()
6562
    result = getAllEntitiesByTagName_result()
6563
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
6564
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
6565
    result.write(oprot)
6566
    oprot.writeMessageEnd()
6567
    oprot.trans.flush()
6568
 
6845 amit.gupta 6569
  def process_getAllEntityTags(self, seqid, iprot, oprot):
6570
    args = getAllEntityTags_args()
6571
    args.read(iprot)
6572
    iprot.readMessageEnd()
6573
    result = getAllEntityTags_result()
6574
    result.success = self._handler.getAllEntityTags()
6575
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
6576
    result.write(oprot)
6577
    oprot.writeMessageEnd()
6578
    oprot.trans.flush()
6579
 
6850 kshitij.so 6580
  def process_addBanner(self, seqid, iprot, oprot):
6581
    args = addBanner_args()
6582
    args.read(iprot)
6583
    iprot.readMessageEnd()
6584
    result = addBanner_result()
10097 kshitij.so 6585
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 6586
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
6587
    result.write(oprot)
6588
    oprot.writeMessageEnd()
6589
    oprot.trans.flush()
6590
 
8579 kshitij.so 6591
  def process_updateBanner(self, seqid, iprot, oprot):
6592
    args = updateBanner_args()
6593
    args.read(iprot)
6594
    iprot.readMessageEnd()
6595
    result = updateBanner_result()
6596
    result.success = self._handler.updateBanner(args.banner)
6597
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
6598
    result.write(oprot)
6599
    oprot.writeMessageEnd()
6600
    oprot.trans.flush()
6601
 
6850 kshitij.so 6602
  def process_getAllBanners(self, seqid, iprot, oprot):
6603
    args = getAllBanners_args()
6604
    args.read(iprot)
6605
    iprot.readMessageEnd()
6606
    result = getAllBanners_result()
6607
    result.success = self._handler.getAllBanners()
6608
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
6609
    result.write(oprot)
6610
    oprot.writeMessageEnd()
6611
    oprot.trans.flush()
6612
 
6613
  def process_deleteBanner(self, seqid, iprot, oprot):
6614
    args = deleteBanner_args()
6615
    args.read(iprot)
6616
    iprot.readMessageEnd()
6617
    result = deleteBanner_result()
9155 kshitij.so 6618
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 6619
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
6620
    result.write(oprot)
6621
    oprot.writeMessageEnd()
6622
    oprot.trans.flush()
6623
 
6624
  def process_getBannerDetails(self, seqid, iprot, oprot):
6625
    args = getBannerDetails_args()
6626
    args.read(iprot)
6627
    iprot.readMessageEnd()
6628
    result = getBannerDetails_result()
9155 kshitij.so 6629
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 6630
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
6631
    result.write(oprot)
6632
    oprot.writeMessageEnd()
6633
    oprot.trans.flush()
6634
 
6635
  def process_getActiveBanners(self, seqid, iprot, oprot):
6636
    args = getActiveBanners_args()
6637
    args.read(iprot)
6638
    iprot.readMessageEnd()
6639
    result = getActiveBanners_result()
6640
    result.success = self._handler.getActiveBanners()
6641
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
6642
    result.write(oprot)
6643
    oprot.writeMessageEnd()
6644
    oprot.trans.flush()
6645
 
6849 kshitij.so 6646
  def process_addBannerMap(self, seqid, iprot, oprot):
6647
    args = addBannerMap_args()
6648
    args.read(iprot)
6649
    iprot.readMessageEnd()
6650
    result = addBannerMap_result()
8579 kshitij.so 6651
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 6652
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
6653
    result.write(oprot)
6654
    oprot.writeMessageEnd()
6655
    oprot.trans.flush()
6656
 
8579 kshitij.so 6657
  def process_updateBannerMap(self, seqid, iprot, oprot):
6658
    args = updateBannerMap_args()
6659
    args.read(iprot)
6660
    iprot.readMessageEnd()
6661
    result = updateBannerMap_result()
6662
    result.success = self._handler.updateBannerMap(args.bannerMap)
6663
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
6664
    result.write(oprot)
6665
    oprot.writeMessageEnd()
6666
    oprot.trans.flush()
6667
 
6849 kshitij.so 6668
  def process_deleteBannerMap(self, seqid, iprot, oprot):
6669
    args = deleteBannerMap_args()
6670
    args.read(iprot)
6671
    iprot.readMessageEnd()
6672
    result = deleteBannerMap_result()
6673
    result.success = self._handler.deleteBannerMap(args.bannerName)
6674
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
6675
    result.write(oprot)
6676
    oprot.writeMessageEnd()
6677
    oprot.trans.flush()
6678
 
6679
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
6680
    args = getBannerMapDetails_args()
6681
    args.read(iprot)
6682
    iprot.readMessageEnd()
6683
    result = getBannerMapDetails_result()
9155 kshitij.so 6684
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 6685
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
6686
    result.write(oprot)
6687
    oprot.writeMessageEnd()
6688
    oprot.trans.flush()
6689
 
8579 kshitij.so 6690
  def process_addBannerUri(self, seqid, iprot, oprot):
6691
    args = addBannerUri_args()
6692
    args.read(iprot)
6693
    iprot.readMessageEnd()
6694
    result = addBannerUri_result()
6695
    self._handler.addBannerUri(args.bannerUriMappings)
6696
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
6697
    result.write(oprot)
6698
    oprot.writeMessageEnd()
6699
    oprot.trans.flush()
6700
 
6701
  def process_getUriMapping(self, seqid, iprot, oprot):
6702
    args = getUriMapping_args()
6703
    args.read(iprot)
6704
    iprot.readMessageEnd()
6705
    result = getUriMapping_result()
9155 kshitij.so 6706
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 6707
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
6708
    result.write(oprot)
6709
    oprot.writeMessageEnd()
6710
    oprot.trans.flush()
6711
 
6712
  def process_addCampaign(self, seqid, iprot, oprot):
6713
    args = addCampaign_args()
6714
    args.read(iprot)
6715
    iprot.readMessageEnd()
6716
    result = addCampaign_result()
6717
    self._handler.addCampaign(args.campaign)
6718
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
6719
    result.write(oprot)
6720
    oprot.writeMessageEnd()
6721
    oprot.trans.flush()
6722
 
6723
  def process_getCampaigns(self, seqid, iprot, oprot):
6724
    args = getCampaigns_args()
6725
    args.read(iprot)
6726
    iprot.readMessageEnd()
6727
    result = getCampaigns_result()
6728
    result.success = self._handler.getCampaigns(args.campaignName)
6729
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
6730
    result.write(oprot)
6731
    oprot.writeMessageEnd()
6732
    oprot.trans.flush()
6733
 
6734
  def process_deleteCampaign(self, seqid, iprot, oprot):
6735
    args = deleteCampaign_args()
6736
    args.read(iprot)
6737
    iprot.readMessageEnd()
6738
    result = deleteCampaign_result()
6739
    self._handler.deleteCampaign(args.campaignId)
6740
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
6741
    result.write(oprot)
6742
    oprot.writeMessageEnd()
6743
    oprot.trans.flush()
6744
 
6745
  def process_getAllCampaigns(self, seqid, iprot, oprot):
6746
    args = getAllCampaigns_args()
6747
    args.read(iprot)
6748
    iprot.readMessageEnd()
6749
    result = getAllCampaigns_result()
6750
    result.success = self._handler.getAllCampaigns()
6751
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
6752
    result.write(oprot)
6753
    oprot.writeMessageEnd()
6754
    oprot.trans.flush()
6755
 
9155 kshitij.so 6756
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
6757
    args = getActiveBannersForMobileSite_args()
6758
    args.read(iprot)
6759
    iprot.readMessageEnd()
6760
    result = getActiveBannersForMobileSite_result()
6761
    result.success = self._handler.getActiveBannersForMobileSite()
6762
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
6763
    result.write(oprot)
6764
    oprot.writeMessageEnd()
6765
    oprot.trans.flush()
6766
 
5944 mandeep.dh 6767
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
6768
    args = deleteSimilarItem_args()
6769
    args.read(iprot)
6770
    iprot.readMessageEnd()
6771
    result = deleteSimilarItem_result()
6772
    try:
6773
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
6774
    except CatalogServiceException, cex:
6775
      result.cex = cex
6776
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
6777
    result.write(oprot)
6778
    oprot.writeMessageEnd()
6779
    oprot.trans.flush()
6780
 
6781
  def process_checkSimilarItem(self, seqid, iprot, oprot):
6782
    args = checkSimilarItem_args()
6783
    args.read(iprot)
6784
    iprot.readMessageEnd()
6785
    result = checkSimilarItem_result()
6786
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
6787
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
6788
    result.write(oprot)
6789
    oprot.writeMessageEnd()
6790
    oprot.trans.flush()
6791
 
6792
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
6793
    args = validateRiskyStatus_args()
6794
    args.read(iprot)
6795
    iprot.readMessageEnd()
6796
    result = validateRiskyStatus_result()
6797
    self._handler.validateRiskyStatus(args.itemId)
6798
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
6799
    result.write(oprot)
6800
    oprot.writeMessageEnd()
6801
    oprot.trans.flush()
6802
 
6803
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
6804
    args = changeItemRiskyFlag_args()
6805
    args.read(iprot)
6806
    iprot.readMessageEnd()
6807
    result = changeItemRiskyFlag_result()
6808
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
6809
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
6810
    result.write(oprot)
6811
    oprot.writeMessageEnd()
6812
    oprot.trans.flush()
6813
 
6814
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
6815
    args = getItemsByRiskyFlag_args()
6816
    args.read(iprot)
6817
    iprot.readMessageEnd()
6818
    result = getItemsByRiskyFlag_result()
6819
    result.success = self._handler.getItemsByRiskyFlag()
6820
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
6821
    result.write(oprot)
6822
    oprot.writeMessageEnd()
6823
    oprot.trans.flush()
6824
 
6825
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
6826
    args = getItemsForMasterSheet_args()
6827
    args.read(iprot)
6828
    iprot.readMessageEnd()
6829
    result = getItemsForMasterSheet_result()
6830
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
6831
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
6832
    result.write(oprot)
6833
    oprot.writeMessageEnd()
6834
    oprot.trans.flush()
6835
 
6836
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
6837
    args = getSimilarItemsCatalogIds_args()
6838
    args.read(iprot)
6839
    iprot.readMessageEnd()
6840
    result = getSimilarItemsCatalogIds_result()
6841
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
6842
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
6843
    result.write(oprot)
6844
    oprot.writeMessageEnd()
6845
    oprot.trans.flush()
6846
 
6847
  def process_addProductNotification(self, seqid, iprot, oprot):
6848
    args = addProductNotification_args()
6849
    args.read(iprot)
6850
    iprot.readMessageEnd()
6851
    result = addProductNotification_result()
6852
    result.success = self._handler.addProductNotification(args.itemId, args.email)
6853
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
6854
    result.write(oprot)
6855
    oprot.writeMessageEnd()
6856
    oprot.trans.flush()
6857
 
6858
  def process_sendProductNotifications(self, seqid, iprot, oprot):
6859
    args = sendProductNotifications_args()
6860
    args.read(iprot)
6861
    iprot.readMessageEnd()
6862
    result = sendProductNotifications_result()
6863
    result.success = self._handler.sendProductNotifications()
6864
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
6865
    result.write(oprot)
6866
    oprot.writeMessageEnd()
6867
    oprot.trans.flush()
6868
 
6869
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
6870
    args = getAllBrandsByCategory_args()
6871
    args.read(iprot)
6872
    iprot.readMessageEnd()
6873
    result = getAllBrandsByCategory_result()
6874
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
6875
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
6876
    result.write(oprot)
6877
    oprot.writeMessageEnd()
6878
    oprot.trans.flush()
6879
 
6880
  def process_getAllBrands(self, seqid, iprot, oprot):
6881
    args = getAllBrands_args()
6882
    args.read(iprot)
6883
    iprot.readMessageEnd()
6884
    result = getAllBrands_result()
6885
    result.success = self._handler.getAllBrands()
6886
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
6887
    result.write(oprot)
6888
    oprot.writeMessageEnd()
6889
    oprot.trans.flush()
6890
 
6891
  def process_getAllSources(self, seqid, iprot, oprot):
6892
    args = getAllSources_args()
6893
    args.read(iprot)
6894
    iprot.readMessageEnd()
6895
    result = getAllSources_result()
6896
    result.success = self._handler.getAllSources()
6897
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
6898
    result.write(oprot)
6899
    oprot.writeMessageEnd()
6900
    oprot.trans.flush()
6901
 
6902
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
6903
    args = getItemPricingBySource_args()
6904
    args.read(iprot)
6905
    iprot.readMessageEnd()
6906
    result = getItemPricingBySource_result()
6907
    try:
6908
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
6909
    except CatalogServiceException, cex:
6910
      result.cex = cex
6911
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
6912
    result.write(oprot)
6913
    oprot.writeMessageEnd()
6914
    oprot.trans.flush()
6915
 
6916
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
6917
    args = addSourceItemPricing_args()
6918
    args.read(iprot)
6919
    iprot.readMessageEnd()
6920
    result = addSourceItemPricing_result()
6921
    try:
6922
      self._handler.addSourceItemPricing(args.sourceItemPricing)
6923
    except CatalogServiceException, cex:
6924
      result.cex = cex
6925
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
6926
    result.write(oprot)
6927
    oprot.writeMessageEnd()
6928
    oprot.trans.flush()
6929
 
6930
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
6931
    args = getAllSourcePricing_args()
6932
    args.read(iprot)
6933
    iprot.readMessageEnd()
6934
    result = getAllSourcePricing_result()
6935
    try:
6936
      result.success = self._handler.getAllSourcePricing(args.itemId)
6937
    except CatalogServiceException, cex:
6938
      result.cex = cex
6939
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
6940
    result.write(oprot)
6941
    oprot.writeMessageEnd()
6942
    oprot.trans.flush()
6943
 
6944
  def process_getItemForSource(self, seqid, iprot, oprot):
6945
    args = getItemForSource_args()
6946
    args.read(iprot)
6947
    iprot.readMessageEnd()
6948
    result = getItemForSource_result()
6949
    try:
6950
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
6951
    except CatalogServiceException, cex:
6952
      result.cex = cex
6953
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
6954
    result.write(oprot)
6955
    oprot.writeMessageEnd()
6956
    oprot.trans.flush()
6957
 
6958
  def process_searchItemsInRange(self, seqid, iprot, oprot):
6959
    args = searchItemsInRange_args()
6960
    args.read(iprot)
6961
    iprot.readMessageEnd()
6962
    result = searchItemsInRange_result()
6963
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
6964
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
6965
    result.write(oprot)
6966
    oprot.writeMessageEnd()
6967
    oprot.trans.flush()
6968
 
6969
  def process_getSearchResultCount(self, seqid, iprot, oprot):
6970
    args = getSearchResultCount_args()
6971
    args.read(iprot)
6972
    iprot.readMessageEnd()
6973
    result = getSearchResultCount_result()
6974
    result.success = self._handler.getSearchResultCount(args.searchTerms)
6975
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
6976
    result.write(oprot)
6977
    oprot.writeMessageEnd()
6978
    oprot.trans.flush()
6979
 
6980
  def process_getProductNotifications(self, seqid, iprot, oprot):
6981
    args = getProductNotifications_args()
6982
    args.read(iprot)
6983
    iprot.readMessageEnd()
6984
    result = getProductNotifications_result()
6985
    result.success = self._handler.getProductNotifications(args.startDateTime)
6986
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
6987
    result.write(oprot)
6988
    oprot.writeMessageEnd()
6989
    oprot.trans.flush()
6990
 
6991
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
6992
    args = getProductNotificationRequestCount_args()
6993
    args.read(iprot)
6994
    iprot.readMessageEnd()
6995
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 6996
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 6997
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
6998
    result.write(oprot)
6999
    oprot.writeMessageEnd()
7000
    oprot.trans.flush()
7001
 
7002
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
7003
    args = addAuthorizationLog_args()
7004
    args.read(iprot)
7005
    iprot.readMessageEnd()
7006
    result = addAuthorizationLog_result()
7007
    try:
7008
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
7009
    except CatalogServiceException, cex:
7010
      result.cex = cex
7011
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
7012
    result.write(oprot)
7013
    oprot.writeMessageEnd()
7014
    oprot.trans.flush()
7015
 
7016
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
7017
    args = addupdateVoucherForItem_args()
7018
    args.read(iprot)
7019
    iprot.readMessageEnd()
7020
    result = addupdateVoucherForItem_result()
7021
    try:
7022
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
7023
    except CatalogServiceException, cex:
7024
      result.cex = cex
7025
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
7026
    result.write(oprot)
7027
    oprot.writeMessageEnd()
7028
    oprot.trans.flush()
7029
 
7030
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
7031
    args = deleteVoucherForItem_args()
7032
    args.read(iprot)
7033
    iprot.readMessageEnd()
7034
    result = deleteVoucherForItem_result()
7035
    try:
7036
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
7037
    except CatalogServiceException, cex:
7038
      result.cex = cex
7039
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
7040
    result.write(oprot)
7041
    oprot.writeMessageEnd()
7042
    oprot.trans.flush()
7043
 
7044
  def process_getVoucherAmount(self, seqid, iprot, oprot):
7045
    args = getVoucherAmount_args()
7046
    args.read(iprot)
7047
    iprot.readMessageEnd()
7048
    result = getVoucherAmount_result()
7049
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
7050
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
7051
    result.write(oprot)
7052
    oprot.writeMessageEnd()
7053
    oprot.trans.flush()
7054
 
7055
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
7056
    args = getAllItemVouchers_args()
7057
    args.read(iprot)
7058
    iprot.readMessageEnd()
7059
    result = getAllItemVouchers_result()
7060
    result.success = self._handler.getAllItemVouchers(args.itemId)
7061
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
7062
    result.write(oprot)
7063
    oprot.writeMessageEnd()
7064
    oprot.trans.flush()
7065
 
7066
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
7067
    args = isValidCatalogItemId_args()
7068
    args.read(iprot)
7069
    iprot.readMessageEnd()
7070
    result = isValidCatalogItemId_result()
7071
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
7072
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
7073
    result.write(oprot)
7074
    oprot.writeMessageEnd()
7075
    oprot.trans.flush()
7076
 
6039 amit.gupta 7077
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
7078
    args = getVatPercentageForItem_args()
7079
    args.read(iprot)
7080
    iprot.readMessageEnd()
7081
    result = getVatPercentageForItem_result()
7340 amit.gupta 7082
    try:
7083
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
7084
    except CatalogServiceException, cex:
7085
      result.cex = cex
6039 amit.gupta 7086
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
7087
    result.write(oprot)
7088
    oprot.writeMessageEnd()
7089
    oprot.trans.flush()
5944 mandeep.dh 7090
 
6039 amit.gupta 7091
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
7092
    args = getVatAmountForItem_args()
7093
    args.read(iprot)
7094
    iprot.readMessageEnd()
7095
    result = getVatAmountForItem_result()
7096
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
7097
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
7098
    result.write(oprot)
7099
    oprot.writeMessageEnd()
7100
    oprot.trans.flush()
7101
 
6531 vikram.rag 7102
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
7103
    args = getAllIgnoredInventoryUpdateItemsList_args()
7104
    args.read(iprot)
7105
    iprot.readMessageEnd()
7106
    result = getAllIgnoredInventoryUpdateItemsList_result()
7107
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
7108
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
7109
    result.write(oprot)
7110
    oprot.writeMessageEnd()
7111
    oprot.trans.flush()
6039 amit.gupta 7112
 
6821 amar.kumar 7113
  def process_getAllAliveItems(self, seqid, iprot, oprot):
7114
    args = getAllAliveItems_args()
7115
    args.read(iprot)
7116
    iprot.readMessageEnd()
7117
    result = getAllAliveItems_result()
7118
    result.success = self._handler.getAllAliveItems()
7119
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
7120
    result.write(oprot)
7121
    oprot.writeMessageEnd()
7122
    oprot.trans.flush()
7123
 
6805 anupam.sin 7124
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
7125
    args = getInsuranceAmount_args()
7126
    args.read(iprot)
7127
    iprot.readMessageEnd()
7128
    result = getInsuranceAmount_result()
6921 anupam.sin 7129
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 7130
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
7131
    result.write(oprot)
7132
    oprot.writeMessageEnd()
7133
    oprot.trans.flush()
6531 vikram.rag 7134
 
6805 anupam.sin 7135
  def process_getInsurer(self, seqid, iprot, oprot):
7136
    args = getInsurer_args()
7137
    args.read(iprot)
7138
    iprot.readMessageEnd()
7139
    result = getInsurer_result()
7140
    result.success = self._handler.getInsurer(args.insurerId)
7141
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
7142
    result.write(oprot)
7143
    oprot.writeMessageEnd()
7144
    oprot.trans.flush()
7145
 
6838 vikram.rag 7146
  def process_getAllInsurers(self, seqid, iprot, oprot):
7147
    args = getAllInsurers_args()
7148
    args.read(iprot)
7149
    iprot.readMessageEnd()
7150
    result = getAllInsurers_result()
7151
    result.success = self._handler.getAllInsurers()
7152
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
7153
    result.write(oprot)
7154
    oprot.writeMessageEnd()
7155
    oprot.trans.flush()
6805 anupam.sin 7156
 
6962 rajveer 7157
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
7158
    args = updateInsuranceDeclaredAmount_args()
7159
    args.read(iprot)
7160
    iprot.readMessageEnd()
7161
    result = updateInsuranceDeclaredAmount_result()
7162
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
7163
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
7164
    result.write(oprot)
7165
    oprot.writeMessageEnd()
7166
    oprot.trans.flush()
6838 vikram.rag 7167
 
7190 amar.kumar 7168
  def process_getFreebieForItem(self, seqid, iprot, oprot):
7169
    args = getFreebieForItem_args()
7170
    args.read(iprot)
7171
    iprot.readMessageEnd()
7172
    result = getFreebieForItem_result()
7173
    result.success = self._handler.getFreebieForItem(args.itemId)
7174
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
7175
    result.write(oprot)
7176
    oprot.writeMessageEnd()
7177
    oprot.trans.flush()
6962 rajveer 7178
 
7190 amar.kumar 7179
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
7180
    args = addOrUpdateFreebieForItem_args()
7181
    args.read(iprot)
7182
    iprot.readMessageEnd()
7183
    result = addOrUpdateFreebieForItem_result()
7184
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
7185
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
7186
    result.write(oprot)
7187
    oprot.writeMessageEnd()
7188
    oprot.trans.flush()
7189
 
7272 amit.gupta 7190
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
7191
    args = addOrUpdateBrandInfo_args()
7192
    args.read(iprot)
7193
    iprot.readMessageEnd()
7194
    result = addOrUpdateBrandInfo_result()
7195
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
7196
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
7197
    result.write(oprot)
7198
    oprot.writeMessageEnd()
7199
    oprot.trans.flush()
7200
 
7201
  def process_getBrandInfo(self, seqid, iprot, oprot):
7202
    args = getBrandInfo_args()
7203
    args.read(iprot)
7204
    iprot.readMessageEnd()
7205
    result = getBrandInfo_result()
7206
    result.success = self._handler.getBrandInfo()
7207
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
7208
    result.write(oprot)
7209
    oprot.writeMessageEnd()
7210
    oprot.trans.flush()
7211
 
7256 rajveer 7212
  def process_getStorePricing(self, seqid, iprot, oprot):
7213
    args = getStorePricing_args()
7214
    args.read(iprot)
7215
    iprot.readMessageEnd()
7216
    result = getStorePricing_result()
7217
    result.success = self._handler.getStorePricing(args.itemId)
7218
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
7219
    result.write(oprot)
7220
    oprot.writeMessageEnd()
7221
    oprot.trans.flush()
7190 amar.kumar 7222
 
7306 rajveer 7223
  def process_getStorePricings(self, seqid, iprot, oprot):
7224
    args = getStorePricings_args()
7225
    args.read(iprot)
7226
    iprot.readMessageEnd()
7227
    result = getStorePricings_result()
7228
    result.success = self._handler.getStorePricings(args.itemIds)
7229
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
7230
    result.write(oprot)
7231
    oprot.writeMessageEnd()
7232
    oprot.trans.flush()
7233
 
7265 rajveer 7234
  def process_updateStorePricing(self, seqid, iprot, oprot):
7235
    args = updateStorePricing_args()
7236
    args.read(iprot)
7237
    iprot.readMessageEnd()
7238
    result = updateStorePricing_result()
7382 rajveer 7239
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 7240
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
7241
    result.write(oprot)
7242
    oprot.writeMessageEnd()
7243
    oprot.trans.flush()
7256 rajveer 7244
 
7281 kshitij.so 7245
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
7246
    args = getAllAmazonListedItems_args()
7247
    args.read(iprot)
7248
    iprot.readMessageEnd()
7249
    result = getAllAmazonListedItems_result()
7250
    result.success = self._handler.getAllAmazonListedItems()
7251
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
7252
    result.write(oprot)
7253
    oprot.writeMessageEnd()
7254
    oprot.trans.flush()
7265 rajveer 7255
 
8619 kshitij.so 7256
  def process_searchAmazonItems(self, seqid, iprot, oprot):
7257
    args = searchAmazonItems_args()
7258
    args.read(iprot)
7259
    iprot.readMessageEnd()
7260
    result = searchAmazonItems_result()
7261
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
7262
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
7263
    result.write(oprot)
7264
    oprot.writeMessageEnd()
7265
    oprot.trans.flush()
7266
 
7267
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
7268
    args = getAmazonSearchResultCount_args()
7269
    args.read(iprot)
7270
    iprot.readMessageEnd()
7271
    result = getAmazonSearchResultCount_result()
7272
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
7273
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
7274
    result.write(oprot)
7275
    oprot.writeMessageEnd()
7276
    oprot.trans.flush()
7277
 
7278
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
7279
    args = getCountForAmazonlistedItems_args()
7280
    args.read(iprot)
7281
    iprot.readMessageEnd()
7282
    result = getCountForAmazonlistedItems_result()
7283
    result.success = self._handler.getCountForAmazonlistedItems()
7284
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
7285
    result.write(oprot)
7286
    oprot.writeMessageEnd()
7287
    oprot.trans.flush()
7288
 
7281 kshitij.so 7289
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
7290
    args = getAmazonItemDetails_args()
7291
    args.read(iprot)
7292
    iprot.readMessageEnd()
7293
    result = getAmazonItemDetails_result()
7294
    result.success = self._handler.getAmazonItemDetails(args.itemId)
7295
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
7296
    result.write(oprot)
7297
    oprot.writeMessageEnd()
7298
    oprot.trans.flush()
7299
 
7300
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
7301
    args = updateAmazonItemDetails_args()
7302
    args.read(iprot)
7303
    iprot.readMessageEnd()
7304
    result = updateAmazonItemDetails_result()
8168 kshitij.so 7305
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 7306
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
7307
    result.write(oprot)
7308
    oprot.writeMessageEnd()
7309
    oprot.trans.flush()
7310
 
7311
  def process_addAmazonItem(self, seqid, iprot, oprot):
7312
    args = addAmazonItem_args()
7313
    args.read(iprot)
7314
    iprot.readMessageEnd()
7315
    result = addAmazonItem_result()
7316
    self._handler.addAmazonItem(args.amazonlisted)
7317
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
7318
    result.write(oprot)
7319
    oprot.writeMessageEnd()
7320
    oprot.trans.flush()
7321
 
7291 vikram.rag 7322
  def process_getAsinItems(self, seqid, iprot, oprot):
7323
    args = getAsinItems_args()
7324
    args.read(iprot)
7325
    iprot.readMessageEnd()
7326
    result = getAsinItems_result()
7327
    result.success = self._handler.getAsinItems()
7328
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
7329
    result.write(oprot)
7330
    oprot.writeMessageEnd()
7331
    oprot.trans.flush()
7281 kshitij.so 7332
 
7291 vikram.rag 7333
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
7334
    args = getAllFbaListedItems_args()
7335
    args.read(iprot)
7336
    iprot.readMessageEnd()
7337
    result = getAllFbaListedItems_result()
7338
    result.success = self._handler.getAllFbaListedItems()
7339
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
7340
    result.write(oprot)
7341
    oprot.writeMessageEnd()
7342
    oprot.trans.flush()
7343
 
7344
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
7345
    args = getAllNonFbaListedItems_args()
7346
    args.read(iprot)
7347
    iprot.readMessageEnd()
7348
    result = getAllNonFbaListedItems_result()
7349
    result.success = self._handler.getAllNonFbaListedItems()
7350
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
7351
    result.write(oprot)
7352
    oprot.writeMessageEnd()
7353
    oprot.trans.flush()
7354
 
7460 kshitij.so 7355
  def process_updateItemInventory(self, seqid, iprot, oprot):
7356
    args = updateItemInventory_args()
7357
    args.read(iprot)
7358
    iprot.readMessageEnd()
7359
    result = updateItemInventory_result()
7360
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
7361
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
7362
    result.write(oprot)
7363
    oprot.writeMessageEnd()
7364
    oprot.trans.flush()
7291 vikram.rag 7365
 
7770 kshitij.so 7366
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
7367
    args = updateTimestampForAmazonFeeds_args()
7368
    args.read(iprot)
7369
    iprot.readMessageEnd()
7370
    result = updateTimestampForAmazonFeeds_result()
7371
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
7372
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
7373
    result.write(oprot)
7374
    oprot.writeMessageEnd()
7375
    oprot.trans.flush()
7460 kshitij.so 7376
 
7897 amar.kumar 7377
  def process_getAllParentCategories(self, seqid, iprot, oprot):
7378
    args = getAllParentCategories_args()
7379
    args.read(iprot)
7380
    iprot.readMessageEnd()
7381
    result = getAllParentCategories_result()
7382
    result.success = self._handler.getAllParentCategories()
7383
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
7384
    result.write(oprot)
7385
    oprot.writeMessageEnd()
7386
    oprot.trans.flush()
7770 kshitij.so 7387
 
7977 kshitij.so 7388
  def process_addPageViewEvent(self, seqid, iprot, oprot):
7389
    args = addPageViewEvent_args()
7390
    args.read(iprot)
7391
    iprot.readMessageEnd()
7392
    result = addPageViewEvent_result()
7393
    self._handler.addPageViewEvent(args.pageViewEvents)
7394
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
7395
    result.write(oprot)
7396
    oprot.writeMessageEnd()
7397
    oprot.trans.flush()
7897 amar.kumar 7398
 
7977 kshitij.so 7399
  def process_addCartEvent(self, seqid, iprot, oprot):
7400
    args = addCartEvent_args()
7401
    args.read(iprot)
7402
    iprot.readMessageEnd()
7403
    result = addCartEvent_result()
7404
    self._handler.addCartEvent(args.cartEvents)
7405
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
7406
    result.write(oprot)
7407
    oprot.writeMessageEnd()
7408
    oprot.trans.flush()
7409
 
8182 amar.kumar 7410
  def process_addEbayItem(self, seqid, iprot, oprot):
7411
    args = addEbayItem_args()
7412
    args.read(iprot)
7413
    iprot.readMessageEnd()
7414
    result = addEbayItem_result()
7415
    self._handler.addEbayItem(args.ebayItem)
7416
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
7417
    result.write(oprot)
7418
    oprot.writeMessageEnd()
7419
    oprot.trans.flush()
7420
 
7421
  def process_getEbayItem(self, seqid, iprot, oprot):
7422
    args = getEbayItem_args()
7423
    args.read(iprot)
7424
    iprot.readMessageEnd()
7425
    result = getEbayItem_result()
7426
    result.success = self._handler.getEbayItem(args.listingId)
7427
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
7428
    result.write(oprot)
7429
    oprot.writeMessageEnd()
7430
    oprot.trans.flush()
7431
 
7432
  def process_updateEbayItem(self, seqid, iprot, oprot):
7433
    args = updateEbayItem_args()
7434
    args.read(iprot)
7435
    iprot.readMessageEnd()
7436
    result = updateEbayItem_result()
7437
    self._handler.updateEbayItem(args.ebayItem)
7438
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
7439
    result.write(oprot)
7440
    oprot.writeMessageEnd()
7441
    oprot.trans.flush()
7442
 
8139 kshitij.so 7443
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
7444
    args = getAmazonListedItems_args()
7445
    args.read(iprot)
7446
    iprot.readMessageEnd()
7447
    result = getAmazonListedItems_result()
7448
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
7449
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
7450
    result.write(oprot)
7451
    oprot.writeMessageEnd()
7452
    oprot.trans.flush()
7977 kshitij.so 7453
 
8168 kshitij.so 7454
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
7455
    args = updateAmazonAttributesInBulk_args()
7456
    args.read(iprot)
7457
    iprot.readMessageEnd()
7458
    result = updateAmazonAttributesInBulk_result()
7459
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
7460
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
7461
    result.write(oprot)
7462
    oprot.writeMessageEnd()
7463
    oprot.trans.flush()
8139 kshitij.so 7464
 
8379 vikram.rag 7465
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
7466
    args = getAllItemstoListOnFba_args()
7467
    args.read(iprot)
7468
    iprot.readMessageEnd()
7469
    result = getAllItemstoListOnFba_result()
7470
    result.success = self._handler.getAllItemstoListOnFba()
7471
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
7472
    result.write(oprot)
7473
    oprot.writeMessageEnd()
7474
    oprot.trans.flush()
8168 kshitij.so 7475
 
8379 vikram.rag 7476
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
7477
    args = getAllItemstoListOnNonFba_args()
7478
    args.read(iprot)
7479
    iprot.readMessageEnd()
7480
    result = getAllItemstoListOnNonFba_result()
7481
    result.success = self._handler.getAllItemstoListOnNonFba()
7482
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
7483
    result.write(oprot)
7484
    oprot.writeMessageEnd()
7485
    oprot.trans.flush()
7486
 
8619 kshitij.so 7487
  def process_updateAsin(self, seqid, iprot, oprot):
7488
    args = updateAsin_args()
7489
    args.read(iprot)
7490
    iprot.readMessageEnd()
7491
    result = updateAsin_result()
7492
    self._handler.updateAsin(args.item)
7493
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
7494
    result.write(oprot)
7495
    oprot.writeMessageEnd()
7496
    oprot.trans.flush()
8616 vikram.rag 7497
 
8739 vikram.rag 7498
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
7499
    args = addOrUpdateSnapdealItem_args()
7500
    args.read(iprot)
7501
    iprot.readMessageEnd()
7502
    result = addOrUpdateSnapdealItem_result()
7503
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
7504
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
7505
    result.write(oprot)
7506
    oprot.writeMessageEnd()
7507
    oprot.trans.flush()
8619 kshitij.so 7508
 
8739 vikram.rag 7509
  def process_getSnapdealItem(self, seqid, iprot, oprot):
7510
    args = getSnapdealItem_args()
7511
    args.read(iprot)
7512
    iprot.readMessageEnd()
7513
    result = getSnapdealItem_result()
7514
    result.success = self._handler.getSnapdealItem(args.item_id)
7515
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
7516
    result.write(oprot)
7517
    oprot.writeMessageEnd()
7518
    oprot.trans.flush()
7519
 
9242 kshitij.so 7520
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
7521
    args = getSnapdealItemDetails_args()
7522
    args.read(iprot)
7523
    iprot.readMessageEnd()
7524
    result = getSnapdealItemDetails_result()
7525
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
7526
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
7527
    result.write(oprot)
7528
    oprot.writeMessageEnd()
7529
    oprot.trans.flush()
7530
 
8739 vikram.rag 7531
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
7532
    args = getAllSnapdealItems_args()
7533
    args.read(iprot)
7534
    iprot.readMessageEnd()
7535
    result = getAllSnapdealItems_result()
7536
    result.success = self._handler.getAllSnapdealItems()
7537
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
7538
    result.write(oprot)
7539
    oprot.writeMessageEnd()
7540
    oprot.trans.flush()
7541
 
9242 kshitij.so 7542
  def process_getSnapdealItems(self, seqid, iprot, oprot):
7543
    args = getSnapdealItems_args()
7544
    args.read(iprot)
7545
    iprot.readMessageEnd()
7546
    result = getSnapdealItems_result()
7547
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
7548
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
7549
    result.write(oprot)
7550
    oprot.writeMessageEnd()
7551
    oprot.trans.flush()
8739 vikram.rag 7552
 
9242 kshitij.so 7553
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
7554
    args = searchSnapdealItems_args()
7555
    args.read(iprot)
7556
    iprot.readMessageEnd()
7557
    result = searchSnapdealItems_result()
7558
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
7559
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
7560
    result.write(oprot)
7561
    oprot.writeMessageEnd()
7562
    oprot.trans.flush()
7563
 
7564
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
7565
    args = getCountForSnapdealItems_args()
7566
    args.read(iprot)
7567
    iprot.readMessageEnd()
7568
    result = getCountForSnapdealItems_result()
7569
    result.success = self._handler.getCountForSnapdealItems()
7570
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
7571
    result.write(oprot)
7572
    oprot.writeMessageEnd()
7573
    oprot.trans.flush()
7574
 
7575
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
7576
    args = getSnapdealSearchResultCount_args()
7577
    args.read(iprot)
7578
    iprot.readMessageEnd()
7579
    result = getSnapdealSearchResultCount_result()
7580
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
7581
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
7582
    result.write(oprot)
7583
    oprot.writeMessageEnd()
7584
    oprot.trans.flush()
7585
 
9299 kshitij.so 7586
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
7587
    args = getPrefferedInsurerForItem_args()
7588
    args.read(iprot)
7589
    iprot.readMessageEnd()
7590
    result = getPrefferedInsurerForItem_result()
7591
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
7592
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
7593
    result.write(oprot)
7594
    oprot.writeMessageEnd()
7595
    oprot.trans.flush()
9242 kshitij.so 7596
 
9456 vikram.rag 7597
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
7598
    args = getSnapdealItembySkuAtSnapdeal_args()
7599
    args.read(iprot)
7600
    iprot.readMessageEnd()
7601
    result = getSnapdealItembySkuAtSnapdeal_result()
7602
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
7603
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
7604
    result.write(oprot)
7605
    oprot.writeMessageEnd()
7606
    oprot.trans.flush()
9299 kshitij.so 7607
 
9621 manish.sha 7608
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
7609
    args = getProductFeedSubmit_args()
7610
    args.read(iprot)
7611
    iprot.readMessageEnd()
7612
    result = getProductFeedSubmit_result()
7613
    try:
7614
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
7615
    except CatalogServiceException, cex:
7616
      result.cex = cex
7617
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
7618
    result.write(oprot)
7619
    oprot.writeMessageEnd()
7620
    oprot.trans.flush()
9456 vikram.rag 7621
 
9621 manish.sha 7622
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
7623
    args = addProductFeedSubmit_args()
7624
    args.read(iprot)
7625
    iprot.readMessageEnd()
7626
    result = addProductFeedSubmit_result()
7627
    try:
7628
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
7629
    except CatalogServiceException, cex:
7630
      result.cex = cex
7631
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
7632
    result.write(oprot)
7633
    oprot.writeMessageEnd()
7634
    oprot.trans.flush()
7635
 
7636
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
7637
    args = updateProductFeedSubmit_args()
7638
    args.read(iprot)
7639
    iprot.readMessageEnd()
7640
    result = updateProductFeedSubmit_result()
7641
    try:
7642
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
7643
    except CatalogServiceException, cex:
7644
      result.cex = cex
7645
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
7646
    result.write(oprot)
7647
    oprot.writeMessageEnd()
7648
    oprot.trans.flush()
7649
 
7650
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
7651
    args = deleteProductFeedSubmit_args()
7652
    args.read(iprot)
7653
    iprot.readMessageEnd()
7654
    result = deleteProductFeedSubmit_result()
7655
    try:
7656
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
7657
    except CatalogServiceException, cex:
7658
      result.cex = cex
7659
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
7660
    result.write(oprot)
7661
    oprot.writeMessageEnd()
7662
    oprot.trans.flush()
7663
 
7664
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
7665
    args = getAllProductFeedSubmit_args()
7666
    args.read(iprot)
7667
    iprot.readMessageEnd()
7668
    result = getAllProductFeedSubmit_result()
7669
    try:
7670
      result.success = self._handler.getAllProductFeedSubmit()
7671
    except CatalogServiceException, cex:
7672
      result.cex = cex
7673
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
7674
    result.write(oprot)
7675
    oprot.writeMessageEnd()
7676
    oprot.trans.flush()
7677
 
9724 kshitij.so 7678
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
7679
    args = getMarketplacedetailsForItem_args()
7680
    args.read(iprot)
7681
    iprot.readMessageEnd()
7682
    result = getMarketplacedetailsForItem_result()
7683
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
7684
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
7685
    result.write(oprot)
7686
    oprot.writeMessageEnd()
7687
    oprot.trans.flush()
9621 manish.sha 7688
 
9724 kshitij.so 7689
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
7690
    args = updateMarketplaceAttributesForItem_args()
7691
    args.read(iprot)
7692
    iprot.readMessageEnd()
7693
    result = updateMarketplaceAttributesForItem_result()
7694
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
7695
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
7696
    result.write(oprot)
7697
    oprot.writeMessageEnd()
7698
    oprot.trans.flush()
7699
 
9779 kshitij.so 7700
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
7701
    args = getCostingForMarketplace_args()
7702
    args.read(iprot)
7703
    iprot.readMessageEnd()
7704
    result = getCostingForMarketplace_result()
7705
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
7706
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
7707
    result.write(oprot)
7708
    oprot.writeMessageEnd()
7709
    oprot.trans.flush()
7710
 
9776 vikram.rag 7711
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
7712
    args = getMarketPlaceItemsForPriceUpdate_args()
7713
    args.read(iprot)
7714
    iprot.readMessageEnd()
7715
    result = getMarketPlaceItemsForPriceUpdate_result()
7716
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
7717
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
7718
    result.write(oprot)
7719
    oprot.writeMessageEnd()
7720
    oprot.trans.flush()
9724 kshitij.so 7721
 
9776 vikram.rag 7722
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
7723
    args = updateMarketPlacePriceUpdateStatus_args()
7724
    args.read(iprot)
7725
    iprot.readMessageEnd()
7726
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 7727
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 7728
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
7729
    result.write(oprot)
7730
    oprot.writeMessageEnd()
7731
    oprot.trans.flush()
7732
 
9861 rajveer 7733
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
7734
    args = updateItemHoldInventory_args()
7735
    args.read(iprot)
7736
    iprot.readMessageEnd()
7737
    result = updateItemHoldInventory_result()
7738
    self._handler.updateItemHoldInventory(args.itemHoldMap)
7739
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
7740
    result.write(oprot)
7741
    oprot.writeMessageEnd()
7742
    oprot.trans.flush()
9776 vikram.rag 7743
 
9895 vikram.rag 7744
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
7745
    args = updateNlcAtMarketplaces_args()
7746
    args.read(iprot)
7747
    iprot.readMessageEnd()
7748
    result = updateNlcAtMarketplaces_result()
7749
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
7750
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
7751
    result.write(oprot)
7752
    oprot.writeMessageEnd()
7753
    oprot.trans.flush()
9861 rajveer 7754
 
9945 vikram.rag 7755
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
7756
    args = getAllFlipkartItems_args()
7757
    args.read(iprot)
7758
    iprot.readMessageEnd()
7759
    result = getAllFlipkartItems_result()
7760
    result.success = self._handler.getAllFlipkartItems()
7761
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
7762
    result.write(oprot)
7763
    oprot.writeMessageEnd()
7764
    oprot.trans.flush()
9895 vikram.rag 7765
 
10097 kshitij.so 7766
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
7767
    args = addOrUpdateFlipkartItem_args()
7768
    args.read(iprot)
7769
    iprot.readMessageEnd()
7770
    result = addOrUpdateFlipkartItem_result()
7771
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
7772
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
7773
    result.write(oprot)
7774
    oprot.writeMessageEnd()
7775
    oprot.trans.flush()
9945 vikram.rag 7776
 
10097 kshitij.so 7777
  def process_getFlipkartItem(self, seqid, iprot, oprot):
7778
    args = getFlipkartItem_args()
7779
    args.read(iprot)
7780
    iprot.readMessageEnd()
7781
    result = getFlipkartItem_result()
7782
    result.success = self._handler.getFlipkartItem(args.item_id)
7783
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
7784
    result.write(oprot)
7785
    oprot.writeMessageEnd()
7786
    oprot.trans.flush()
7787
 
7788
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
7789
    args = getFlipkartItemDetails_args()
7790
    args.read(iprot)
7791
    iprot.readMessageEnd()
7792
    result = getFlipkartItemDetails_result()
7793
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
7794
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
7795
    result.write(oprot)
7796
    oprot.writeMessageEnd()
7797
    oprot.trans.flush()
7798
 
7799
  def process_getFlipkartItems(self, seqid, iprot, oprot):
7800
    args = getFlipkartItems_args()
7801
    args.read(iprot)
7802
    iprot.readMessageEnd()
7803
    result = getFlipkartItems_result()
7804
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
7805
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
7806
    result.write(oprot)
7807
    oprot.writeMessageEnd()
7808
    oprot.trans.flush()
7809
 
7810
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
7811
    args = searchFlipkartItems_args()
7812
    args.read(iprot)
7813
    iprot.readMessageEnd()
7814
    result = searchFlipkartItems_result()
7815
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
7816
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
7817
    result.write(oprot)
7818
    oprot.writeMessageEnd()
7819
    oprot.trans.flush()
7820
 
7821
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
7822
    args = getCountForFlipkartItems_args()
7823
    args.read(iprot)
7824
    iprot.readMessageEnd()
7825
    result = getCountForFlipkartItems_result()
7826
    result.success = self._handler.getCountForFlipkartItems()
7827
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
7828
    result.write(oprot)
7829
    oprot.writeMessageEnd()
7830
    oprot.trans.flush()
7831
 
7832
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
7833
    args = getFlipkartSearchResultCount_args()
7834
    args.read(iprot)
7835
    iprot.readMessageEnd()
7836
    result = getFlipkartSearchResultCount_result()
7837
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
7838
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
7839
    result.write(oprot)
7840
    oprot.writeMessageEnd()
7841
    oprot.trans.flush()
7842
 
7843
  def process_getAllFkItems(self, seqid, iprot, oprot):
7844
    args = getAllFkItems_args()
7845
    args.read(iprot)
7846
    iprot.readMessageEnd()
7847
    result = getAllFkItems_result()
7848
    result.success = self._handler.getAllFkItems()
7849
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
7850
    result.write(oprot)
7851
    oprot.writeMessageEnd()
7852
    oprot.trans.flush()
7853
 
10140 vikram.rag 7854
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
7855
    args = getFlipkartItemBySkyAtFlipkart_args()
7856
    args.read(iprot)
7857
    iprot.readMessageEnd()
7858
    result = getFlipkartItemBySkyAtFlipkart_result()
7859
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
7860
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
7861
    result.write(oprot)
7862
    oprot.writeMessageEnd()
7863
    oprot.trans.flush()
10097 kshitij.so 7864
 
10909 vikram.rag 7865
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
7866
    args = getAllFbbListedItems_args()
7867
    args.read(iprot)
7868
    iprot.readMessageEnd()
7869
    result = getAllFbbListedItems_result()
7870
    result.success = self._handler.getAllFbbListedItems()
7871
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
7872
    result.write(oprot)
7873
    oprot.writeMessageEnd()
7874
    oprot.trans.flush()
10140 vikram.rag 7875
 
10909 vikram.rag 7876
 
5944 mandeep.dh 7877
# HELPER FUNCTIONS AND STRUCTURES
7878
 
7879
class addItem_args:
7880
  """
7881
  Attributes:
7882
   - item
7883
  """
7884
 
7885
  thrift_spec = (
7886
    None, # 0
7887
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7888
  )
7889
 
7890
  def __init__(self, item=None,):
7891
    self.item = item
7892
 
7893
  def read(self, iprot):
7894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7896
      return
7897
    iprot.readStructBegin()
7898
    while True:
7899
      (fname, ftype, fid) = iprot.readFieldBegin()
7900
      if ftype == TType.STOP:
7901
        break
7902
      if fid == 1:
7903
        if ftype == TType.STRUCT:
7904
          self.item = Item()
7905
          self.item.read(iprot)
7906
        else:
7907
          iprot.skip(ftype)
7908
      else:
7909
        iprot.skip(ftype)
7910
      iprot.readFieldEnd()
7911
    iprot.readStructEnd()
7912
 
7913
  def write(self, oprot):
7914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7916
      return
7917
    oprot.writeStructBegin('addItem_args')
7918
    if self.item is not None:
7919
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7920
      self.item.write(oprot)
7921
      oprot.writeFieldEnd()
7922
    oprot.writeFieldStop()
7923
    oprot.writeStructEnd()
7924
 
7925
  def validate(self):
7926
    return
7927
 
7928
 
7929
  def __repr__(self):
7930
    L = ['%s=%r' % (key, value)
7931
      for key, value in self.__dict__.iteritems()]
7932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7933
 
7934
  def __eq__(self, other):
7935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7936
 
7937
  def __ne__(self, other):
7938
    return not (self == other)
7939
 
7940
class addItem_result:
7941
  """
7942
  Attributes:
7943
   - success
7944
   - cex
7945
  """
7946
 
7947
  thrift_spec = (
7948
    (0, TType.I64, 'success', None, None, ), # 0
7949
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7950
  )
7951
 
7952
  def __init__(self, success=None, cex=None,):
7953
    self.success = success
7954
    self.cex = cex
7955
 
7956
  def read(self, iprot):
7957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7959
      return
7960
    iprot.readStructBegin()
7961
    while True:
7962
      (fname, ftype, fid) = iprot.readFieldBegin()
7963
      if ftype == TType.STOP:
7964
        break
7965
      if fid == 0:
7966
        if ftype == TType.I64:
7967
          self.success = iprot.readI64();
7968
        else:
7969
          iprot.skip(ftype)
7970
      elif fid == 1:
7971
        if ftype == TType.STRUCT:
7972
          self.cex = CatalogServiceException()
7973
          self.cex.read(iprot)
7974
        else:
7975
          iprot.skip(ftype)
7976
      else:
7977
        iprot.skip(ftype)
7978
      iprot.readFieldEnd()
7979
    iprot.readStructEnd()
7980
 
7981
  def write(self, oprot):
7982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7984
      return
7985
    oprot.writeStructBegin('addItem_result')
7986
    if self.success is not None:
7987
      oprot.writeFieldBegin('success', TType.I64, 0)
7988
      oprot.writeI64(self.success)
7989
      oprot.writeFieldEnd()
7990
    if self.cex is not None:
7991
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7992
      self.cex.write(oprot)
7993
      oprot.writeFieldEnd()
7994
    oprot.writeFieldStop()
7995
    oprot.writeStructEnd()
7996
 
7997
  def validate(self):
7998
    return
7999
 
8000
 
8001
  def __repr__(self):
8002
    L = ['%s=%r' % (key, value)
8003
      for key, value in self.__dict__.iteritems()]
8004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8005
 
8006
  def __eq__(self, other):
8007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8008
 
8009
  def __ne__(self, other):
8010
    return not (self == other)
8011
 
8012
class updateItem_args:
8013
  """
8014
  Attributes:
8015
   - item
8016
  """
8017
 
8018
  thrift_spec = (
8019
    None, # 0
8020
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
8021
  )
8022
 
8023
  def __init__(self, item=None,):
8024
    self.item = item
8025
 
8026
  def read(self, iprot):
8027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8029
      return
8030
    iprot.readStructBegin()
8031
    while True:
8032
      (fname, ftype, fid) = iprot.readFieldBegin()
8033
      if ftype == TType.STOP:
8034
        break
8035
      if fid == 1:
8036
        if ftype == TType.STRUCT:
8037
          self.item = Item()
8038
          self.item.read(iprot)
8039
        else:
8040
          iprot.skip(ftype)
8041
      else:
8042
        iprot.skip(ftype)
8043
      iprot.readFieldEnd()
8044
    iprot.readStructEnd()
8045
 
8046
  def write(self, oprot):
8047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8049
      return
8050
    oprot.writeStructBegin('updateItem_args')
8051
    if self.item is not None:
8052
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
8053
      self.item.write(oprot)
8054
      oprot.writeFieldEnd()
8055
    oprot.writeFieldStop()
8056
    oprot.writeStructEnd()
8057
 
8058
  def validate(self):
8059
    return
8060
 
8061
 
8062
  def __repr__(self):
8063
    L = ['%s=%r' % (key, value)
8064
      for key, value in self.__dict__.iteritems()]
8065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8066
 
8067
  def __eq__(self, other):
8068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8069
 
8070
  def __ne__(self, other):
8071
    return not (self == other)
8072
 
8073
class updateItem_result:
8074
  """
8075
  Attributes:
8076
   - success
8077
   - cex
8078
  """
8079
 
8080
  thrift_spec = (
8081
    (0, TType.I64, 'success', None, None, ), # 0
8082
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8083
  )
8084
 
8085
  def __init__(self, success=None, cex=None,):
8086
    self.success = success
8087
    self.cex = cex
8088
 
8089
  def read(self, iprot):
8090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8092
      return
8093
    iprot.readStructBegin()
8094
    while True:
8095
      (fname, ftype, fid) = iprot.readFieldBegin()
8096
      if ftype == TType.STOP:
8097
        break
8098
      if fid == 0:
8099
        if ftype == TType.I64:
8100
          self.success = iprot.readI64();
8101
        else:
8102
          iprot.skip(ftype)
8103
      elif fid == 1:
8104
        if ftype == TType.STRUCT:
8105
          self.cex = CatalogServiceException()
8106
          self.cex.read(iprot)
8107
        else:
8108
          iprot.skip(ftype)
8109
      else:
8110
        iprot.skip(ftype)
8111
      iprot.readFieldEnd()
8112
    iprot.readStructEnd()
8113
 
8114
  def write(self, oprot):
8115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8117
      return
8118
    oprot.writeStructBegin('updateItem_result')
8119
    if self.success is not None:
8120
      oprot.writeFieldBegin('success', TType.I64, 0)
8121
      oprot.writeI64(self.success)
8122
      oprot.writeFieldEnd()
8123
    if self.cex is not None:
8124
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8125
      self.cex.write(oprot)
8126
      oprot.writeFieldEnd()
8127
    oprot.writeFieldStop()
8128
    oprot.writeStructEnd()
8129
 
8130
  def validate(self):
8131
    return
8132
 
8133
 
8134
  def __repr__(self):
8135
    L = ['%s=%r' % (key, value)
8136
      for key, value in self.__dict__.iteritems()]
8137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8138
 
8139
  def __eq__(self, other):
8140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8141
 
8142
  def __ne__(self, other):
8143
    return not (self == other)
8144
 
8145
class isActive_args:
8146
  """
8147
  Attributes:
8148
   - itemId
8149
  """
8150
 
8151
  thrift_spec = (
8152
    None, # 0
8153
    (1, TType.I64, 'itemId', None, None, ), # 1
8154
  )
8155
 
8156
  def __init__(self, itemId=None,):
8157
    self.itemId = itemId
8158
 
8159
  def read(self, iprot):
8160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8162
      return
8163
    iprot.readStructBegin()
8164
    while True:
8165
      (fname, ftype, fid) = iprot.readFieldBegin()
8166
      if ftype == TType.STOP:
8167
        break
8168
      if fid == 1:
8169
        if ftype == TType.I64:
8170
          self.itemId = iprot.readI64();
8171
        else:
8172
          iprot.skip(ftype)
8173
      else:
8174
        iprot.skip(ftype)
8175
      iprot.readFieldEnd()
8176
    iprot.readStructEnd()
8177
 
8178
  def write(self, oprot):
8179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8181
      return
8182
    oprot.writeStructBegin('isActive_args')
8183
    if self.itemId is not None:
8184
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8185
      oprot.writeI64(self.itemId)
8186
      oprot.writeFieldEnd()
8187
    oprot.writeFieldStop()
8188
    oprot.writeStructEnd()
8189
 
8190
  def validate(self):
8191
    return
8192
 
8193
 
8194
  def __repr__(self):
8195
    L = ['%s=%r' % (key, value)
8196
      for key, value in self.__dict__.iteritems()]
8197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8198
 
8199
  def __eq__(self, other):
8200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8201
 
8202
  def __ne__(self, other):
8203
    return not (self == other)
8204
 
8205
class isActive_result:
8206
  """
8207
  Attributes:
8208
   - success
8209
   - isex
8210
  """
8211
 
8212
  thrift_spec = (
8213
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
8214
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8215
  )
8216
 
8217
  def __init__(self, success=None, isex=None,):
8218
    self.success = success
8219
    self.isex = isex
8220
 
8221
  def read(self, iprot):
8222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8224
      return
8225
    iprot.readStructBegin()
8226
    while True:
8227
      (fname, ftype, fid) = iprot.readFieldBegin()
8228
      if ftype == TType.STOP:
8229
        break
8230
      if fid == 0:
8231
        if ftype == TType.STRUCT:
8232
          self.success = ItemShippingInfo()
8233
          self.success.read(iprot)
8234
        else:
8235
          iprot.skip(ftype)
8236
      elif fid == 1:
8237
        if ftype == TType.STRUCT:
8238
          self.isex = CatalogServiceException()
8239
          self.isex.read(iprot)
8240
        else:
8241
          iprot.skip(ftype)
8242
      else:
8243
        iprot.skip(ftype)
8244
      iprot.readFieldEnd()
8245
    iprot.readStructEnd()
8246
 
8247
  def write(self, oprot):
8248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8250
      return
8251
    oprot.writeStructBegin('isActive_result')
8252
    if self.success is not None:
8253
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8254
      self.success.write(oprot)
8255
      oprot.writeFieldEnd()
8256
    if self.isex is not None:
8257
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8258
      self.isex.write(oprot)
8259
      oprot.writeFieldEnd()
8260
    oprot.writeFieldStop()
8261
    oprot.writeStructEnd()
8262
 
8263
  def validate(self):
8264
    return
8265
 
8266
 
8267
  def __repr__(self):
8268
    L = ['%s=%r' % (key, value)
8269
      for key, value in self.__dict__.iteritems()]
8270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8271
 
8272
  def __eq__(self, other):
8273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8274
 
8275
  def __ne__(self, other):
8276
    return not (self == other)
8277
 
7438 amit.gupta 8278
class getItemsStatus_args:
8279
  """
8280
  Attributes:
8281
   - itemIds
8282
  """
8283
 
8284
  thrift_spec = (
8285
    None, # 0
8286
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
8287
  )
8288
 
8289
  def __init__(self, itemIds=None,):
8290
    self.itemIds = itemIds
8291
 
8292
  def read(self, iprot):
8293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8295
      return
8296
    iprot.readStructBegin()
8297
    while True:
8298
      (fname, ftype, fid) = iprot.readFieldBegin()
8299
      if ftype == TType.STOP:
8300
        break
8301
      if fid == 1:
8302
        if ftype == TType.LIST:
8303
          self.itemIds = []
8590 kshitij.so 8304
          (_etype33, _size30) = iprot.readListBegin()
8305
          for _i34 in xrange(_size30):
8306
            _elem35 = iprot.readI64();
8307
            self.itemIds.append(_elem35)
7438 amit.gupta 8308
          iprot.readListEnd()
8309
        else:
8310
          iprot.skip(ftype)
8311
      else:
8312
        iprot.skip(ftype)
8313
      iprot.readFieldEnd()
8314
    iprot.readStructEnd()
8315
 
8316
  def write(self, oprot):
8317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8319
      return
8320
    oprot.writeStructBegin('getItemsStatus_args')
8321
    if self.itemIds is not None:
8322
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
8323
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 8324
      for iter36 in self.itemIds:
8325
        oprot.writeI64(iter36)
7438 amit.gupta 8326
      oprot.writeListEnd()
8327
      oprot.writeFieldEnd()
8328
    oprot.writeFieldStop()
8329
    oprot.writeStructEnd()
8330
 
8331
  def validate(self):
8332
    return
8333
 
8334
 
8335
  def __repr__(self):
8336
    L = ['%s=%r' % (key, value)
8337
      for key, value in self.__dict__.iteritems()]
8338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8339
 
8340
  def __eq__(self, other):
8341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8342
 
8343
  def __ne__(self, other):
8344
    return not (self == other)
8345
 
8346
class getItemsStatus_result:
8347
  """
8348
  Attributes:
8349
   - success
8350
   - isex
8351
  """
8352
 
8353
  thrift_spec = (
8354
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
8355
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8356
  )
8357
 
8358
  def __init__(self, success=None, isex=None,):
8359
    self.success = success
8360
    self.isex = isex
8361
 
8362
  def read(self, iprot):
8363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8365
      return
8366
    iprot.readStructBegin()
8367
    while True:
8368
      (fname, ftype, fid) = iprot.readFieldBegin()
8369
      if ftype == TType.STOP:
8370
        break
8371
      if fid == 0:
8372
        if ftype == TType.MAP:
8373
          self.success = {}
8590 kshitij.so 8374
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
8375
          for _i41 in xrange(_size37):
8376
            _key42 = iprot.readI64();
8377
            _val43 = iprot.readBool();
8378
            self.success[_key42] = _val43
7438 amit.gupta 8379
          iprot.readMapEnd()
8380
        else:
8381
          iprot.skip(ftype)
8382
      elif fid == 1:
8383
        if ftype == TType.STRUCT:
8384
          self.isex = CatalogServiceException()
8385
          self.isex.read(iprot)
8386
        else:
8387
          iprot.skip(ftype)
8388
      else:
8389
        iprot.skip(ftype)
8390
      iprot.readFieldEnd()
8391
    iprot.readStructEnd()
8392
 
8393
  def write(self, oprot):
8394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8396
      return
8397
    oprot.writeStructBegin('getItemsStatus_result')
8398
    if self.success is not None:
8399
      oprot.writeFieldBegin('success', TType.MAP, 0)
8400
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 8401
      for kiter44,viter45 in self.success.items():
8402
        oprot.writeI64(kiter44)
8403
        oprot.writeBool(viter45)
7438 amit.gupta 8404
      oprot.writeMapEnd()
8405
      oprot.writeFieldEnd()
8406
    if self.isex is not None:
8407
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8408
      self.isex.write(oprot)
8409
      oprot.writeFieldEnd()
8410
    oprot.writeFieldStop()
8411
    oprot.writeStructEnd()
8412
 
8413
  def validate(self):
8414
    return
8415
 
8416
 
8417
  def __repr__(self):
8418
    L = ['%s=%r' % (key, value)
8419
      for key, value in self.__dict__.iteritems()]
8420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8421
 
8422
  def __eq__(self, other):
8423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8424
 
8425
  def __ne__(self, other):
8426
    return not (self == other)
8427
 
5944 mandeep.dh 8428
class getItemStatusDescription_args:
8429
  """
8430
  Attributes:
8431
   - itemId
8432
  """
8433
 
8434
  thrift_spec = (
8435
    None, # 0
8436
    (1, TType.I64, 'itemId', None, None, ), # 1
8437
  )
8438
 
8439
  def __init__(self, itemId=None,):
8440
    self.itemId = itemId
8441
 
8442
  def read(self, iprot):
8443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8445
      return
8446
    iprot.readStructBegin()
8447
    while True:
8448
      (fname, ftype, fid) = iprot.readFieldBegin()
8449
      if ftype == TType.STOP:
8450
        break
8451
      if fid == 1:
8452
        if ftype == TType.I64:
8453
          self.itemId = iprot.readI64();
8454
        else:
8455
          iprot.skip(ftype)
8456
      else:
8457
        iprot.skip(ftype)
8458
      iprot.readFieldEnd()
8459
    iprot.readStructEnd()
8460
 
8461
  def write(self, oprot):
8462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8464
      return
8465
    oprot.writeStructBegin('getItemStatusDescription_args')
8466
    if self.itemId is not None:
8467
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8468
      oprot.writeI64(self.itemId)
8469
      oprot.writeFieldEnd()
8470
    oprot.writeFieldStop()
8471
    oprot.writeStructEnd()
8472
 
8473
  def validate(self):
8474
    return
8475
 
8476
 
8477
  def __repr__(self):
8478
    L = ['%s=%r' % (key, value)
8479
      for key, value in self.__dict__.iteritems()]
8480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8481
 
8482
  def __eq__(self, other):
8483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8484
 
8485
  def __ne__(self, other):
8486
    return not (self == other)
8487
 
8488
class getItemStatusDescription_result:
8489
  """
8490
  Attributes:
8491
   - success
8492
   - isex
8493
  """
8494
 
8495
  thrift_spec = (
8496
    (0, TType.STRING, 'success', None, None, ), # 0
8497
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8498
  )
8499
 
8500
  def __init__(self, success=None, isex=None,):
8501
    self.success = success
8502
    self.isex = isex
8503
 
8504
  def read(self, iprot):
8505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8507
      return
8508
    iprot.readStructBegin()
8509
    while True:
8510
      (fname, ftype, fid) = iprot.readFieldBegin()
8511
      if ftype == TType.STOP:
8512
        break
8513
      if fid == 0:
8514
        if ftype == TType.STRING:
8515
          self.success = iprot.readString();
8516
        else:
8517
          iprot.skip(ftype)
8518
      elif fid == 1:
8519
        if ftype == TType.STRUCT:
8520
          self.isex = CatalogServiceException()
8521
          self.isex.read(iprot)
8522
        else:
8523
          iprot.skip(ftype)
8524
      else:
8525
        iprot.skip(ftype)
8526
      iprot.readFieldEnd()
8527
    iprot.readStructEnd()
8528
 
8529
  def write(self, oprot):
8530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8532
      return
8533
    oprot.writeStructBegin('getItemStatusDescription_result')
8534
    if self.success is not None:
8535
      oprot.writeFieldBegin('success', TType.STRING, 0)
8536
      oprot.writeString(self.success)
8537
      oprot.writeFieldEnd()
8538
    if self.isex is not None:
8539
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8540
      self.isex.write(oprot)
8541
      oprot.writeFieldEnd()
8542
    oprot.writeFieldStop()
8543
    oprot.writeStructEnd()
8544
 
8545
  def validate(self):
8546
    return
8547
 
8548
 
8549
  def __repr__(self):
8550
    L = ['%s=%r' % (key, value)
8551
      for key, value in self.__dict__.iteritems()]
8552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8553
 
8554
  def __eq__(self, other):
8555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8556
 
8557
  def __ne__(self, other):
8558
    return not (self == other)
8559
 
8560
class startItemOn_args:
8561
  """
8562
  Attributes:
8563
   - item_id
8564
   - timestamp
8565
  """
8566
 
8567
  thrift_spec = (
8568
    None, # 0
8569
    (1, TType.I64, 'item_id', None, None, ), # 1
8570
    (2, TType.I64, 'timestamp', None, None, ), # 2
8571
  )
8572
 
8573
  def __init__(self, item_id=None, timestamp=None,):
8574
    self.item_id = item_id
8575
    self.timestamp = timestamp
8576
 
8577
  def read(self, iprot):
8578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8580
      return
8581
    iprot.readStructBegin()
8582
    while True:
8583
      (fname, ftype, fid) = iprot.readFieldBegin()
8584
      if ftype == TType.STOP:
8585
        break
8586
      if fid == 1:
8587
        if ftype == TType.I64:
8588
          self.item_id = iprot.readI64();
8589
        else:
8590
          iprot.skip(ftype)
8591
      elif fid == 2:
8592
        if ftype == TType.I64:
8593
          self.timestamp = iprot.readI64();
8594
        else:
8595
          iprot.skip(ftype)
8596
      else:
8597
        iprot.skip(ftype)
8598
      iprot.readFieldEnd()
8599
    iprot.readStructEnd()
8600
 
8601
  def write(self, oprot):
8602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8604
      return
8605
    oprot.writeStructBegin('startItemOn_args')
8606
    if self.item_id is not None:
8607
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8608
      oprot.writeI64(self.item_id)
8609
      oprot.writeFieldEnd()
8610
    if self.timestamp is not None:
8611
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8612
      oprot.writeI64(self.timestamp)
8613
      oprot.writeFieldEnd()
8614
    oprot.writeFieldStop()
8615
    oprot.writeStructEnd()
8616
 
8617
  def validate(self):
8618
    return
8619
 
8620
 
8621
  def __repr__(self):
8622
    L = ['%s=%r' % (key, value)
8623
      for key, value in self.__dict__.iteritems()]
8624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8625
 
8626
  def __eq__(self, other):
8627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8628
 
8629
  def __ne__(self, other):
8630
    return not (self == other)
8631
 
8632
class startItemOn_result:
8633
  """
8634
  Attributes:
8635
   - cex
8636
  """
8637
 
8638
  thrift_spec = (
8639
    None, # 0
8640
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8641
  )
8642
 
8643
  def __init__(self, cex=None,):
8644
    self.cex = cex
8645
 
8646
  def read(self, iprot):
8647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8649
      return
8650
    iprot.readStructBegin()
8651
    while True:
8652
      (fname, ftype, fid) = iprot.readFieldBegin()
8653
      if ftype == TType.STOP:
8654
        break
8655
      if fid == 1:
8656
        if ftype == TType.STRUCT:
8657
          self.cex = CatalogServiceException()
8658
          self.cex.read(iprot)
8659
        else:
8660
          iprot.skip(ftype)
8661
      else:
8662
        iprot.skip(ftype)
8663
      iprot.readFieldEnd()
8664
    iprot.readStructEnd()
8665
 
8666
  def write(self, oprot):
8667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8669
      return
8670
    oprot.writeStructBegin('startItemOn_result')
8671
    if self.cex is not None:
8672
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8673
      self.cex.write(oprot)
8674
      oprot.writeFieldEnd()
8675
    oprot.writeFieldStop()
8676
    oprot.writeStructEnd()
8677
 
8678
  def validate(self):
8679
    return
8680
 
8681
 
8682
  def __repr__(self):
8683
    L = ['%s=%r' % (key, value)
8684
      for key, value in self.__dict__.iteritems()]
8685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8686
 
8687
  def __eq__(self, other):
8688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8689
 
8690
  def __ne__(self, other):
8691
    return not (self == other)
8692
 
8693
class retireItemOn_args:
8694
  """
8695
  Attributes:
8696
   - item_id
8697
   - timestamp
8698
  """
8699
 
8700
  thrift_spec = (
8701
    None, # 0
8702
    (1, TType.I64, 'item_id', None, None, ), # 1
8703
    (2, TType.I64, 'timestamp', None, None, ), # 2
8704
  )
8705
 
8706
  def __init__(self, item_id=None, timestamp=None,):
8707
    self.item_id = item_id
8708
    self.timestamp = timestamp
8709
 
8710
  def read(self, iprot):
8711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8713
      return
8714
    iprot.readStructBegin()
8715
    while True:
8716
      (fname, ftype, fid) = iprot.readFieldBegin()
8717
      if ftype == TType.STOP:
8718
        break
8719
      if fid == 1:
8720
        if ftype == TType.I64:
8721
          self.item_id = iprot.readI64();
8722
        else:
8723
          iprot.skip(ftype)
8724
      elif fid == 2:
8725
        if ftype == TType.I64:
8726
          self.timestamp = iprot.readI64();
8727
        else:
8728
          iprot.skip(ftype)
8729
      else:
8730
        iprot.skip(ftype)
8731
      iprot.readFieldEnd()
8732
    iprot.readStructEnd()
8733
 
8734
  def write(self, oprot):
8735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8737
      return
8738
    oprot.writeStructBegin('retireItemOn_args')
8739
    if self.item_id is not None:
8740
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8741
      oprot.writeI64(self.item_id)
8742
      oprot.writeFieldEnd()
8743
    if self.timestamp is not None:
8744
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8745
      oprot.writeI64(self.timestamp)
8746
      oprot.writeFieldEnd()
8747
    oprot.writeFieldStop()
8748
    oprot.writeStructEnd()
8749
 
8750
  def validate(self):
8751
    return
8752
 
8753
 
8754
  def __repr__(self):
8755
    L = ['%s=%r' % (key, value)
8756
      for key, value in self.__dict__.iteritems()]
8757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8758
 
8759
  def __eq__(self, other):
8760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8761
 
8762
  def __ne__(self, other):
8763
    return not (self == other)
8764
 
8765
class retireItemOn_result:
8766
  """
8767
  Attributes:
8768
   - cex
8769
  """
8770
 
8771
  thrift_spec = (
8772
    None, # 0
8773
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8774
  )
8775
 
8776
  def __init__(self, cex=None,):
8777
    self.cex = cex
8778
 
8779
  def read(self, iprot):
8780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8782
      return
8783
    iprot.readStructBegin()
8784
    while True:
8785
      (fname, ftype, fid) = iprot.readFieldBegin()
8786
      if ftype == TType.STOP:
8787
        break
8788
      if fid == 1:
8789
        if ftype == TType.STRUCT:
8790
          self.cex = CatalogServiceException()
8791
          self.cex.read(iprot)
8792
        else:
8793
          iprot.skip(ftype)
8794
      else:
8795
        iprot.skip(ftype)
8796
      iprot.readFieldEnd()
8797
    iprot.readStructEnd()
8798
 
8799
  def write(self, oprot):
8800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8802
      return
8803
    oprot.writeStructBegin('retireItemOn_result')
8804
    if self.cex is not None:
8805
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8806
      self.cex.write(oprot)
8807
      oprot.writeFieldEnd()
8808
    oprot.writeFieldStop()
8809
    oprot.writeStructEnd()
8810
 
8811
  def validate(self):
8812
    return
8813
 
8814
 
8815
  def __repr__(self):
8816
    L = ['%s=%r' % (key, value)
8817
      for key, value in self.__dict__.iteritems()]
8818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8819
 
8820
  def __eq__(self, other):
8821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8822
 
8823
  def __ne__(self, other):
8824
    return not (self == other)
8825
 
8826
class changeItemStatus_args:
8827
  """
8828
  Attributes:
8829
   - item_id
8830
   - timestamp
8831
   - newstatus
8832
  """
8833
 
8834
  thrift_spec = (
8835
    None, # 0
8836
    (1, TType.I64, 'item_id', None, None, ), # 1
8837
    (2, TType.I64, 'timestamp', None, None, ), # 2
8838
    (3, TType.I32, 'newstatus', None, None, ), # 3
8839
  )
8840
 
8841
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
8842
    self.item_id = item_id
8843
    self.timestamp = timestamp
8844
    self.newstatus = newstatus
8845
 
8846
  def read(self, iprot):
8847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8849
      return
8850
    iprot.readStructBegin()
8851
    while True:
8852
      (fname, ftype, fid) = iprot.readFieldBegin()
8853
      if ftype == TType.STOP:
8854
        break
8855
      if fid == 1:
8856
        if ftype == TType.I64:
8857
          self.item_id = iprot.readI64();
8858
        else:
8859
          iprot.skip(ftype)
8860
      elif fid == 2:
8861
        if ftype == TType.I64:
8862
          self.timestamp = iprot.readI64();
8863
        else:
8864
          iprot.skip(ftype)
8865
      elif fid == 3:
8866
        if ftype == TType.I32:
8867
          self.newstatus = iprot.readI32();
8868
        else:
8869
          iprot.skip(ftype)
8870
      else:
8871
        iprot.skip(ftype)
8872
      iprot.readFieldEnd()
8873
    iprot.readStructEnd()
8874
 
8875
  def write(self, oprot):
8876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8878
      return
8879
    oprot.writeStructBegin('changeItemStatus_args')
8880
    if self.item_id is not None:
8881
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8882
      oprot.writeI64(self.item_id)
8883
      oprot.writeFieldEnd()
8884
    if self.timestamp is not None:
8885
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8886
      oprot.writeI64(self.timestamp)
8887
      oprot.writeFieldEnd()
8888
    if self.newstatus is not None:
8889
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
8890
      oprot.writeI32(self.newstatus)
8891
      oprot.writeFieldEnd()
8892
    oprot.writeFieldStop()
8893
    oprot.writeStructEnd()
8894
 
8895
  def validate(self):
8896
    return
8897
 
8898
 
8899
  def __repr__(self):
8900
    L = ['%s=%r' % (key, value)
8901
      for key, value in self.__dict__.iteritems()]
8902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8903
 
8904
  def __eq__(self, other):
8905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8906
 
8907
  def __ne__(self, other):
8908
    return not (self == other)
8909
 
8910
class changeItemStatus_result:
8911
  """
8912
  Attributes:
8913
   - cex
8914
  """
8915
 
8916
  thrift_spec = (
8917
    None, # 0
8918
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8919
  )
8920
 
8921
  def __init__(self, cex=None,):
8922
    self.cex = cex
8923
 
8924
  def read(self, iprot):
8925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8927
      return
8928
    iprot.readStructBegin()
8929
    while True:
8930
      (fname, ftype, fid) = iprot.readFieldBegin()
8931
      if ftype == TType.STOP:
8932
        break
8933
      if fid == 1:
8934
        if ftype == TType.STRUCT:
8935
          self.cex = CatalogServiceException()
8936
          self.cex.read(iprot)
8937
        else:
8938
          iprot.skip(ftype)
8939
      else:
8940
        iprot.skip(ftype)
8941
      iprot.readFieldEnd()
8942
    iprot.readStructEnd()
8943
 
8944
  def write(self, oprot):
8945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8947
      return
8948
    oprot.writeStructBegin('changeItemStatus_result')
8949
    if self.cex is not None:
8950
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8951
      self.cex.write(oprot)
8952
      oprot.writeFieldEnd()
8953
    oprot.writeFieldStop()
8954
    oprot.writeStructEnd()
8955
 
8956
  def validate(self):
8957
    return
8958
 
8959
 
8960
  def __repr__(self):
8961
    L = ['%s=%r' % (key, value)
8962
      for key, value in self.__dict__.iteritems()]
8963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8964
 
8965
  def __eq__(self, other):
8966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8967
 
8968
  def __ne__(self, other):
8969
    return not (self == other)
8970
 
8971
class getItem_args:
8972
  """
8973
  Attributes:
8974
   - item_id
8975
  """
8976
 
8977
  thrift_spec = (
8978
    None, # 0
8979
    (1, TType.I64, 'item_id', None, None, ), # 1
8980
  )
8981
 
8982
  def __init__(self, item_id=None,):
8983
    self.item_id = item_id
8984
 
8985
  def read(self, iprot):
8986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8988
      return
8989
    iprot.readStructBegin()
8990
    while True:
8991
      (fname, ftype, fid) = iprot.readFieldBegin()
8992
      if ftype == TType.STOP:
8993
        break
8994
      if fid == 1:
8995
        if ftype == TType.I64:
8996
          self.item_id = iprot.readI64();
8997
        else:
8998
          iprot.skip(ftype)
8999
      else:
9000
        iprot.skip(ftype)
9001
      iprot.readFieldEnd()
9002
    iprot.readStructEnd()
9003
 
9004
  def write(self, oprot):
9005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9007
      return
9008
    oprot.writeStructBegin('getItem_args')
9009
    if self.item_id is not None:
9010
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9011
      oprot.writeI64(self.item_id)
9012
      oprot.writeFieldEnd()
9013
    oprot.writeFieldStop()
9014
    oprot.writeStructEnd()
9015
 
9016
  def validate(self):
9017
    return
9018
 
9019
 
9020
  def __repr__(self):
9021
    L = ['%s=%r' % (key, value)
9022
      for key, value in self.__dict__.iteritems()]
9023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9024
 
9025
  def __eq__(self, other):
9026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9027
 
9028
  def __ne__(self, other):
9029
    return not (self == other)
9030
 
9031
class getItem_result:
9032
  """
9033
  Attributes:
9034
   - success
9035
   - cex
9036
  """
9037
 
9038
  thrift_spec = (
9039
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
9040
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9041
  )
9042
 
9043
  def __init__(self, success=None, cex=None,):
9044
    self.success = success
9045
    self.cex = cex
9046
 
9047
  def read(self, iprot):
9048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9050
      return
9051
    iprot.readStructBegin()
9052
    while True:
9053
      (fname, ftype, fid) = iprot.readFieldBegin()
9054
      if ftype == TType.STOP:
9055
        break
9056
      if fid == 0:
9057
        if ftype == TType.STRUCT:
9058
          self.success = Item()
9059
          self.success.read(iprot)
9060
        else:
9061
          iprot.skip(ftype)
9062
      elif fid == 1:
9063
        if ftype == TType.STRUCT:
9064
          self.cex = CatalogServiceException()
9065
          self.cex.read(iprot)
9066
        else:
9067
          iprot.skip(ftype)
9068
      else:
9069
        iprot.skip(ftype)
9070
      iprot.readFieldEnd()
9071
    iprot.readStructEnd()
9072
 
9073
  def write(self, oprot):
9074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9076
      return
9077
    oprot.writeStructBegin('getItem_result')
9078
    if self.success is not None:
9079
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9080
      self.success.write(oprot)
9081
      oprot.writeFieldEnd()
9082
    if self.cex is not None:
9083
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9084
      self.cex.write(oprot)
9085
      oprot.writeFieldEnd()
9086
    oprot.writeFieldStop()
9087
    oprot.writeStructEnd()
9088
 
9089
  def validate(self):
9090
    return
9091
 
9092
 
9093
  def __repr__(self):
9094
    L = ['%s=%r' % (key, value)
9095
      for key, value in self.__dict__.iteritems()]
9096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9097
 
9098
  def __eq__(self, other):
9099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9100
 
9101
  def __ne__(self, other):
9102
    return not (self == other)
9103
 
9104
class getItemsByCatalogId_args:
9105
  """
9106
  Attributes:
9107
   - catalog_item_id
9108
  """
9109
 
9110
  thrift_spec = (
9111
    None, # 0
9112
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
9113
  )
9114
 
9115
  def __init__(self, catalog_item_id=None,):
9116
    self.catalog_item_id = catalog_item_id
9117
 
9118
  def read(self, iprot):
9119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9121
      return
9122
    iprot.readStructBegin()
9123
    while True:
9124
      (fname, ftype, fid) = iprot.readFieldBegin()
9125
      if ftype == TType.STOP:
9126
        break
9127
      if fid == 1:
9128
        if ftype == TType.I64:
9129
          self.catalog_item_id = iprot.readI64();
9130
        else:
9131
          iprot.skip(ftype)
9132
      else:
9133
        iprot.skip(ftype)
9134
      iprot.readFieldEnd()
9135
    iprot.readStructEnd()
9136
 
9137
  def write(self, oprot):
9138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9140
      return
9141
    oprot.writeStructBegin('getItemsByCatalogId_args')
9142
    if self.catalog_item_id is not None:
9143
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
9144
      oprot.writeI64(self.catalog_item_id)
9145
      oprot.writeFieldEnd()
9146
    oprot.writeFieldStop()
9147
    oprot.writeStructEnd()
9148
 
9149
  def validate(self):
9150
    return
9151
 
9152
 
9153
  def __repr__(self):
9154
    L = ['%s=%r' % (key, value)
9155
      for key, value in self.__dict__.iteritems()]
9156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9157
 
9158
  def __eq__(self, other):
9159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9160
 
9161
  def __ne__(self, other):
9162
    return not (self == other)
9163
 
9164
class getItemsByCatalogId_result:
9165
  """
9166
  Attributes:
9167
   - success
9168
   - cex
9169
  """
9170
 
9171
  thrift_spec = (
9172
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9173
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9174
  )
9175
 
9176
  def __init__(self, success=None, cex=None,):
9177
    self.success = success
9178
    self.cex = cex
9179
 
9180
  def read(self, iprot):
9181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9183
      return
9184
    iprot.readStructBegin()
9185
    while True:
9186
      (fname, ftype, fid) = iprot.readFieldBegin()
9187
      if ftype == TType.STOP:
9188
        break
9189
      if fid == 0:
9190
        if ftype == TType.LIST:
9191
          self.success = []
8590 kshitij.so 9192
          (_etype49, _size46) = iprot.readListBegin()
9193
          for _i50 in xrange(_size46):
9194
            _elem51 = Item()
9195
            _elem51.read(iprot)
9196
            self.success.append(_elem51)
5944 mandeep.dh 9197
          iprot.readListEnd()
9198
        else:
9199
          iprot.skip(ftype)
9200
      elif fid == 1:
9201
        if ftype == TType.STRUCT:
9202
          self.cex = CatalogServiceException()
9203
          self.cex.read(iprot)
9204
        else:
9205
          iprot.skip(ftype)
9206
      else:
9207
        iprot.skip(ftype)
9208
      iprot.readFieldEnd()
9209
    iprot.readStructEnd()
9210
 
9211
  def write(self, oprot):
9212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9214
      return
9215
    oprot.writeStructBegin('getItemsByCatalogId_result')
9216
    if self.success is not None:
9217
      oprot.writeFieldBegin('success', TType.LIST, 0)
9218
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9219
      for iter52 in self.success:
9220
        iter52.write(oprot)
5944 mandeep.dh 9221
      oprot.writeListEnd()
9222
      oprot.writeFieldEnd()
9223
    if self.cex is not None:
9224
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9225
      self.cex.write(oprot)
9226
      oprot.writeFieldEnd()
9227
    oprot.writeFieldStop()
9228
    oprot.writeStructEnd()
9229
 
9230
  def validate(self):
9231
    return
9232
 
9233
 
9234
  def __repr__(self):
9235
    L = ['%s=%r' % (key, value)
9236
      for key, value in self.__dict__.iteritems()]
9237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9238
 
9239
  def __eq__(self, other):
9240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9241
 
9242
  def __ne__(self, other):
9243
    return not (self == other)
9244
 
9245
class getValidItemsByCatalogId_args:
9246
  """
9247
  Attributes:
9248
   - catalog_item_id
9249
  """
9250
 
9251
  thrift_spec = (
9252
    None, # 0
9253
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
9254
  )
9255
 
9256
  def __init__(self, catalog_item_id=None,):
9257
    self.catalog_item_id = catalog_item_id
9258
 
9259
  def read(self, iprot):
9260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9262
      return
9263
    iprot.readStructBegin()
9264
    while True:
9265
      (fname, ftype, fid) = iprot.readFieldBegin()
9266
      if ftype == TType.STOP:
9267
        break
9268
      if fid == 1:
9269
        if ftype == TType.I64:
9270
          self.catalog_item_id = iprot.readI64();
9271
        else:
9272
          iprot.skip(ftype)
9273
      else:
9274
        iprot.skip(ftype)
9275
      iprot.readFieldEnd()
9276
    iprot.readStructEnd()
9277
 
9278
  def write(self, oprot):
9279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9281
      return
9282
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
9283
    if self.catalog_item_id is not None:
9284
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
9285
      oprot.writeI64(self.catalog_item_id)
9286
      oprot.writeFieldEnd()
9287
    oprot.writeFieldStop()
9288
    oprot.writeStructEnd()
9289
 
9290
  def validate(self):
9291
    return
9292
 
9293
 
9294
  def __repr__(self):
9295
    L = ['%s=%r' % (key, value)
9296
      for key, value in self.__dict__.iteritems()]
9297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9298
 
9299
  def __eq__(self, other):
9300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9301
 
9302
  def __ne__(self, other):
9303
    return not (self == other)
9304
 
9305
class getValidItemsByCatalogId_result:
9306
  """
9307
  Attributes:
9308
   - success
9309
   - cex
9310
  """
9311
 
9312
  thrift_spec = (
9313
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9314
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9315
  )
9316
 
9317
  def __init__(self, success=None, cex=None,):
9318
    self.success = success
9319
    self.cex = cex
9320
 
9321
  def read(self, iprot):
9322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9324
      return
9325
    iprot.readStructBegin()
9326
    while True:
9327
      (fname, ftype, fid) = iprot.readFieldBegin()
9328
      if ftype == TType.STOP:
9329
        break
9330
      if fid == 0:
9331
        if ftype == TType.LIST:
9332
          self.success = []
8590 kshitij.so 9333
          (_etype56, _size53) = iprot.readListBegin()
9334
          for _i57 in xrange(_size53):
9335
            _elem58 = Item()
9336
            _elem58.read(iprot)
9337
            self.success.append(_elem58)
5944 mandeep.dh 9338
          iprot.readListEnd()
9339
        else:
9340
          iprot.skip(ftype)
9341
      elif fid == 1:
9342
        if ftype == TType.STRUCT:
9343
          self.cex = CatalogServiceException()
9344
          self.cex.read(iprot)
9345
        else:
9346
          iprot.skip(ftype)
9347
      else:
9348
        iprot.skip(ftype)
9349
      iprot.readFieldEnd()
9350
    iprot.readStructEnd()
9351
 
9352
  def write(self, oprot):
9353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9355
      return
9356
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
9357
    if self.success is not None:
9358
      oprot.writeFieldBegin('success', TType.LIST, 0)
9359
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9360
      for iter59 in self.success:
9361
        iter59.write(oprot)
5944 mandeep.dh 9362
      oprot.writeListEnd()
9363
      oprot.writeFieldEnd()
9364
    if self.cex is not None:
9365
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9366
      self.cex.write(oprot)
9367
      oprot.writeFieldEnd()
9368
    oprot.writeFieldStop()
9369
    oprot.writeStructEnd()
9370
 
9371
  def validate(self):
9372
    return
9373
 
9374
 
9375
  def __repr__(self):
9376
    L = ['%s=%r' % (key, value)
9377
      for key, value in self.__dict__.iteritems()]
9378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9379
 
9380
  def __eq__(self, other):
9381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9382
 
9383
  def __ne__(self, other):
9384
    return not (self == other)
9385
 
9386
class getAllItems_args:
9387
  """
9388
  Attributes:
9389
   - isActive
9390
  """
9391
 
9392
  thrift_spec = (
9393
    None, # 0
9394
    (1, TType.BOOL, 'isActive', None, None, ), # 1
9395
  )
9396
 
9397
  def __init__(self, isActive=None,):
9398
    self.isActive = isActive
9399
 
9400
  def read(self, iprot):
9401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9403
      return
9404
    iprot.readStructBegin()
9405
    while True:
9406
      (fname, ftype, fid) = iprot.readFieldBegin()
9407
      if ftype == TType.STOP:
9408
        break
9409
      if fid == 1:
9410
        if ftype == TType.BOOL:
9411
          self.isActive = iprot.readBool();
9412
        else:
9413
          iprot.skip(ftype)
9414
      else:
9415
        iprot.skip(ftype)
9416
      iprot.readFieldEnd()
9417
    iprot.readStructEnd()
9418
 
9419
  def write(self, oprot):
9420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9422
      return
9423
    oprot.writeStructBegin('getAllItems_args')
9424
    if self.isActive is not None:
9425
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
9426
      oprot.writeBool(self.isActive)
9427
      oprot.writeFieldEnd()
9428
    oprot.writeFieldStop()
9429
    oprot.writeStructEnd()
9430
 
9431
  def validate(self):
9432
    return
9433
 
9434
 
9435
  def __repr__(self):
9436
    L = ['%s=%r' % (key, value)
9437
      for key, value in self.__dict__.iteritems()]
9438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9439
 
9440
  def __eq__(self, other):
9441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9442
 
9443
  def __ne__(self, other):
9444
    return not (self == other)
9445
 
9446
class getAllItems_result:
9447
  """
9448
  Attributes:
9449
   - success
9450
   - cex
9451
  """
9452
 
9453
  thrift_spec = (
9454
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9455
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9456
  )
9457
 
9458
  def __init__(self, success=None, cex=None,):
9459
    self.success = success
9460
    self.cex = cex
9461
 
9462
  def read(self, iprot):
9463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9465
      return
9466
    iprot.readStructBegin()
9467
    while True:
9468
      (fname, ftype, fid) = iprot.readFieldBegin()
9469
      if ftype == TType.STOP:
9470
        break
9471
      if fid == 0:
9472
        if ftype == TType.LIST:
9473
          self.success = []
8590 kshitij.so 9474
          (_etype63, _size60) = iprot.readListBegin()
9475
          for _i64 in xrange(_size60):
9476
            _elem65 = Item()
9477
            _elem65.read(iprot)
9478
            self.success.append(_elem65)
5944 mandeep.dh 9479
          iprot.readListEnd()
9480
        else:
9481
          iprot.skip(ftype)
9482
      elif fid == 1:
9483
        if ftype == TType.STRUCT:
9484
          self.cex = CatalogServiceException()
9485
          self.cex.read(iprot)
9486
        else:
9487
          iprot.skip(ftype)
9488
      else:
9489
        iprot.skip(ftype)
9490
      iprot.readFieldEnd()
9491
    iprot.readStructEnd()
9492
 
9493
  def write(self, oprot):
9494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9496
      return
9497
    oprot.writeStructBegin('getAllItems_result')
9498
    if self.success is not None:
9499
      oprot.writeFieldBegin('success', TType.LIST, 0)
9500
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9501
      for iter66 in self.success:
9502
        iter66.write(oprot)
5944 mandeep.dh 9503
      oprot.writeListEnd()
9504
      oprot.writeFieldEnd()
9505
    if self.cex is not None:
9506
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9507
      self.cex.write(oprot)
9508
      oprot.writeFieldEnd()
9509
    oprot.writeFieldStop()
9510
    oprot.writeStructEnd()
9511
 
9512
  def validate(self):
9513
    return
9514
 
9515
 
9516
  def __repr__(self):
9517
    L = ['%s=%r' % (key, value)
9518
      for key, value in self.__dict__.iteritems()]
9519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9520
 
9521
  def __eq__(self, other):
9522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9523
 
9524
  def __ne__(self, other):
9525
    return not (self == other)
9526
 
9527
class getAllItemsByStatus_args:
9528
  """
9529
  Attributes:
9530
   - itemStatus
9531
  """
9532
 
9533
  thrift_spec = (
9534
    None, # 0
9535
    (1, TType.I32, 'itemStatus', None, None, ), # 1
9536
  )
9537
 
9538
  def __init__(self, itemStatus=None,):
9539
    self.itemStatus = itemStatus
9540
 
9541
  def read(self, iprot):
9542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9544
      return
9545
    iprot.readStructBegin()
9546
    while True:
9547
      (fname, ftype, fid) = iprot.readFieldBegin()
9548
      if ftype == TType.STOP:
9549
        break
9550
      if fid == 1:
9551
        if ftype == TType.I32:
9552
          self.itemStatus = iprot.readI32();
9553
        else:
9554
          iprot.skip(ftype)
9555
      else:
9556
        iprot.skip(ftype)
9557
      iprot.readFieldEnd()
9558
    iprot.readStructEnd()
9559
 
9560
  def write(self, oprot):
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9563
      return
9564
    oprot.writeStructBegin('getAllItemsByStatus_args')
9565
    if self.itemStatus is not None:
9566
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
9567
      oprot.writeI32(self.itemStatus)
9568
      oprot.writeFieldEnd()
9569
    oprot.writeFieldStop()
9570
    oprot.writeStructEnd()
9571
 
9572
  def validate(self):
9573
    return
9574
 
9575
 
9576
  def __repr__(self):
9577
    L = ['%s=%r' % (key, value)
9578
      for key, value in self.__dict__.iteritems()]
9579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9580
 
9581
  def __eq__(self, other):
9582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9583
 
9584
  def __ne__(self, other):
9585
    return not (self == other)
9586
 
9587
class getAllItemsByStatus_result:
9588
  """
9589
  Attributes:
9590
   - success
9591
   - cex
9592
  """
9593
 
9594
  thrift_spec = (
9595
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9596
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9597
  )
9598
 
9599
  def __init__(self, success=None, cex=None,):
9600
    self.success = success
9601
    self.cex = cex
9602
 
9603
  def read(self, iprot):
9604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9606
      return
9607
    iprot.readStructBegin()
9608
    while True:
9609
      (fname, ftype, fid) = iprot.readFieldBegin()
9610
      if ftype == TType.STOP:
9611
        break
9612
      if fid == 0:
9613
        if ftype == TType.LIST:
9614
          self.success = []
8590 kshitij.so 9615
          (_etype70, _size67) = iprot.readListBegin()
9616
          for _i71 in xrange(_size67):
9617
            _elem72 = Item()
9618
            _elem72.read(iprot)
9619
            self.success.append(_elem72)
5944 mandeep.dh 9620
          iprot.readListEnd()
9621
        else:
9622
          iprot.skip(ftype)
9623
      elif fid == 1:
9624
        if ftype == TType.STRUCT:
9625
          self.cex = CatalogServiceException()
9626
          self.cex.read(iprot)
9627
        else:
9628
          iprot.skip(ftype)
9629
      else:
9630
        iprot.skip(ftype)
9631
      iprot.readFieldEnd()
9632
    iprot.readStructEnd()
9633
 
9634
  def write(self, oprot):
9635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9637
      return
9638
    oprot.writeStructBegin('getAllItemsByStatus_result')
9639
    if self.success is not None:
9640
      oprot.writeFieldBegin('success', TType.LIST, 0)
9641
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9642
      for iter73 in self.success:
9643
        iter73.write(oprot)
5944 mandeep.dh 9644
      oprot.writeListEnd()
9645
      oprot.writeFieldEnd()
9646
    if self.cex is not None:
9647
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9648
      self.cex.write(oprot)
9649
      oprot.writeFieldEnd()
9650
    oprot.writeFieldStop()
9651
    oprot.writeStructEnd()
9652
 
9653
  def validate(self):
9654
    return
9655
 
9656
 
9657
  def __repr__(self):
9658
    L = ['%s=%r' % (key, value)
9659
      for key, value in self.__dict__.iteritems()]
9660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9661
 
9662
  def __eq__(self, other):
9663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9664
 
9665
  def __ne__(self, other):
9666
    return not (self == other)
9667
 
9668
class markItemAsContentComplete_args:
9669
  """
9670
  Attributes:
9671
   - entityId
9672
   - category
9673
   - brand
9674
   - modelName
9675
   - modelNumber
9253 rajveer 9676
   - isAndroid
5944 mandeep.dh 9677
  """
9678
 
9679
  thrift_spec = (
9680
    None, # 0
9681
    (1, TType.I64, 'entityId', None, None, ), # 1
9682
    (2, TType.I64, 'category', None, None, ), # 2
9683
    (3, TType.STRING, 'brand', None, None, ), # 3
9684
    (4, TType.STRING, 'modelName', None, None, ), # 4
9685
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 9686
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 9687
  )
9688
 
9253 rajveer 9689
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 9690
    self.entityId = entityId
9691
    self.category = category
9692
    self.brand = brand
9693
    self.modelName = modelName
9694
    self.modelNumber = modelNumber
9253 rajveer 9695
    self.isAndroid = isAndroid
5944 mandeep.dh 9696
 
9697
  def read(self, iprot):
9698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9700
      return
9701
    iprot.readStructBegin()
9702
    while True:
9703
      (fname, ftype, fid) = iprot.readFieldBegin()
9704
      if ftype == TType.STOP:
9705
        break
9706
      if fid == 1:
9707
        if ftype == TType.I64:
9708
          self.entityId = iprot.readI64();
9709
        else:
9710
          iprot.skip(ftype)
9711
      elif fid == 2:
9712
        if ftype == TType.I64:
9713
          self.category = iprot.readI64();
9714
        else:
9715
          iprot.skip(ftype)
9716
      elif fid == 3:
9717
        if ftype == TType.STRING:
9718
          self.brand = iprot.readString();
9719
        else:
9720
          iprot.skip(ftype)
9721
      elif fid == 4:
9722
        if ftype == TType.STRING:
9723
          self.modelName = iprot.readString();
9724
        else:
9725
          iprot.skip(ftype)
9726
      elif fid == 5:
9727
        if ftype == TType.STRING:
9728
          self.modelNumber = iprot.readString();
9729
        else:
9730
          iprot.skip(ftype)
9253 rajveer 9731
      elif fid == 6:
9732
        if ftype == TType.BOOL:
9733
          self.isAndroid = iprot.readBool();
9734
        else:
9735
          iprot.skip(ftype)
5944 mandeep.dh 9736
      else:
9737
        iprot.skip(ftype)
9738
      iprot.readFieldEnd()
9739
    iprot.readStructEnd()
9740
 
9741
  def write(self, oprot):
9742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9744
      return
9745
    oprot.writeStructBegin('markItemAsContentComplete_args')
9746
    if self.entityId is not None:
9747
      oprot.writeFieldBegin('entityId', TType.I64, 1)
9748
      oprot.writeI64(self.entityId)
9749
      oprot.writeFieldEnd()
9750
    if self.category is not None:
9751
      oprot.writeFieldBegin('category', TType.I64, 2)
9752
      oprot.writeI64(self.category)
9753
      oprot.writeFieldEnd()
9754
    if self.brand is not None:
9755
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9756
      oprot.writeString(self.brand)
9757
      oprot.writeFieldEnd()
9758
    if self.modelName is not None:
9759
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
9760
      oprot.writeString(self.modelName)
9761
      oprot.writeFieldEnd()
9762
    if self.modelNumber is not None:
9763
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
9764
      oprot.writeString(self.modelNumber)
9765
      oprot.writeFieldEnd()
9253 rajveer 9766
    if self.isAndroid is not None:
9767
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
9768
      oprot.writeBool(self.isAndroid)
9769
      oprot.writeFieldEnd()
5944 mandeep.dh 9770
    oprot.writeFieldStop()
9771
    oprot.writeStructEnd()
9772
 
9773
  def validate(self):
9774
    return
9775
 
9776
 
9777
  def __repr__(self):
9778
    L = ['%s=%r' % (key, value)
9779
      for key, value in self.__dict__.iteritems()]
9780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9781
 
9782
  def __eq__(self, other):
9783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9784
 
9785
  def __ne__(self, other):
9786
    return not (self == other)
9787
 
9788
class markItemAsContentComplete_result:
9789
  """
9790
  Attributes:
9791
   - success
9792
   - cex
9793
  """
9794
 
9795
  thrift_spec = (
9796
    (0, TType.BOOL, 'success', None, None, ), # 0
9797
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9798
  )
9799
 
9800
  def __init__(self, success=None, cex=None,):
9801
    self.success = success
9802
    self.cex = cex
9803
 
9804
  def read(self, iprot):
9805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9807
      return
9808
    iprot.readStructBegin()
9809
    while True:
9810
      (fname, ftype, fid) = iprot.readFieldBegin()
9811
      if ftype == TType.STOP:
9812
        break
9813
      if fid == 0:
9814
        if ftype == TType.BOOL:
9815
          self.success = iprot.readBool();
9816
        else:
9817
          iprot.skip(ftype)
9818
      elif fid == 1:
9819
        if ftype == TType.STRUCT:
9820
          self.cex = CatalogServiceException()
9821
          self.cex.read(iprot)
9822
        else:
9823
          iprot.skip(ftype)
9824
      else:
9825
        iprot.skip(ftype)
9826
      iprot.readFieldEnd()
9827
    iprot.readStructEnd()
9828
 
9829
  def write(self, oprot):
9830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9832
      return
9833
    oprot.writeStructBegin('markItemAsContentComplete_result')
9834
    if self.success is not None:
9835
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9836
      oprot.writeBool(self.success)
9837
      oprot.writeFieldEnd()
9838
    if self.cex is not None:
9839
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9840
      self.cex.write(oprot)
9841
      oprot.writeFieldEnd()
9842
    oprot.writeFieldStop()
9843
    oprot.writeStructEnd()
9844
 
9845
  def validate(self):
9846
    return
9847
 
9848
 
9849
  def __repr__(self):
9850
    L = ['%s=%r' % (key, value)
9851
      for key, value in self.__dict__.iteritems()]
9852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9853
 
9854
  def __eq__(self, other):
9855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9856
 
9857
  def __ne__(self, other):
9858
    return not (self == other)
9859
 
9860
class getAllItemsInRange_args:
9861
  """
9862
  Attributes:
9863
   - offset
9864
   - limit
9865
  """
9866
 
9867
  thrift_spec = (
9868
    None, # 0
9869
    (1, TType.I64, 'offset', None, None, ), # 1
9870
    (2, TType.I64, 'limit', None, None, ), # 2
9871
  )
9872
 
9873
  def __init__(self, offset=None, limit=None,):
9874
    self.offset = offset
9875
    self.limit = limit
9876
 
9877
  def read(self, iprot):
9878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9880
      return
9881
    iprot.readStructBegin()
9882
    while True:
9883
      (fname, ftype, fid) = iprot.readFieldBegin()
9884
      if ftype == TType.STOP:
9885
        break
9886
      if fid == 1:
9887
        if ftype == TType.I64:
9888
          self.offset = iprot.readI64();
9889
        else:
9890
          iprot.skip(ftype)
9891
      elif fid == 2:
9892
        if ftype == TType.I64:
9893
          self.limit = iprot.readI64();
9894
        else:
9895
          iprot.skip(ftype)
9896
      else:
9897
        iprot.skip(ftype)
9898
      iprot.readFieldEnd()
9899
    iprot.readStructEnd()
9900
 
9901
  def write(self, oprot):
9902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9904
      return
9905
    oprot.writeStructBegin('getAllItemsInRange_args')
9906
    if self.offset is not None:
9907
      oprot.writeFieldBegin('offset', TType.I64, 1)
9908
      oprot.writeI64(self.offset)
9909
      oprot.writeFieldEnd()
9910
    if self.limit is not None:
9911
      oprot.writeFieldBegin('limit', TType.I64, 2)
9912
      oprot.writeI64(self.limit)
9913
      oprot.writeFieldEnd()
9914
    oprot.writeFieldStop()
9915
    oprot.writeStructEnd()
9916
 
9917
  def validate(self):
9918
    return
9919
 
9920
 
9921
  def __repr__(self):
9922
    L = ['%s=%r' % (key, value)
9923
      for key, value in self.__dict__.iteritems()]
9924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9925
 
9926
  def __eq__(self, other):
9927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9928
 
9929
  def __ne__(self, other):
9930
    return not (self == other)
9931
 
9932
class getAllItemsInRange_result:
9933
  """
9934
  Attributes:
9935
   - success
9936
   - cex
9937
  """
9938
 
9939
  thrift_spec = (
9940
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9941
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9942
  )
9943
 
9944
  def __init__(self, success=None, cex=None,):
9945
    self.success = success
9946
    self.cex = cex
9947
 
9948
  def read(self, iprot):
9949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9951
      return
9952
    iprot.readStructBegin()
9953
    while True:
9954
      (fname, ftype, fid) = iprot.readFieldBegin()
9955
      if ftype == TType.STOP:
9956
        break
9957
      if fid == 0:
9958
        if ftype == TType.LIST:
9959
          self.success = []
8590 kshitij.so 9960
          (_etype77, _size74) = iprot.readListBegin()
9961
          for _i78 in xrange(_size74):
9962
            _elem79 = Item()
9963
            _elem79.read(iprot)
9964
            self.success.append(_elem79)
5944 mandeep.dh 9965
          iprot.readListEnd()
9966
        else:
9967
          iprot.skip(ftype)
9968
      elif fid == 1:
9969
        if ftype == TType.STRUCT:
9970
          self.cex = CatalogServiceException()
9971
          self.cex.read(iprot)
9972
        else:
9973
          iprot.skip(ftype)
9974
      else:
9975
        iprot.skip(ftype)
9976
      iprot.readFieldEnd()
9977
    iprot.readStructEnd()
9978
 
9979
  def write(self, oprot):
9980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9982
      return
9983
    oprot.writeStructBegin('getAllItemsInRange_result')
9984
    if self.success is not None:
9985
      oprot.writeFieldBegin('success', TType.LIST, 0)
9986
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9987
      for iter80 in self.success:
9988
        iter80.write(oprot)
5944 mandeep.dh 9989
      oprot.writeListEnd()
9990
      oprot.writeFieldEnd()
9991
    if self.cex is not None:
9992
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9993
      self.cex.write(oprot)
9994
      oprot.writeFieldEnd()
9995
    oprot.writeFieldStop()
9996
    oprot.writeStructEnd()
9997
 
9998
  def validate(self):
9999
    return
10000
 
10001
 
10002
  def __repr__(self):
10003
    L = ['%s=%r' % (key, value)
10004
      for key, value in self.__dict__.iteritems()]
10005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10006
 
10007
  def __eq__(self, other):
10008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10009
 
10010
  def __ne__(self, other):
10011
    return not (self == other)
10012
 
10013
class getAllItemsByStatusInRange_args:
10014
  """
10015
  Attributes:
10016
   - itemStatus
10017
   - offset
10018
   - limit
10019
  """
10020
 
10021
  thrift_spec = (
10022
    None, # 0
10023
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10024
    (2, TType.I64, 'offset', None, None, ), # 2
10025
    (3, TType.I64, 'limit', None, None, ), # 3
10026
  )
10027
 
10028
  def __init__(self, itemStatus=None, offset=None, limit=None,):
10029
    self.itemStatus = itemStatus
10030
    self.offset = offset
10031
    self.limit = limit
10032
 
10033
  def read(self, iprot):
10034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10036
      return
10037
    iprot.readStructBegin()
10038
    while True:
10039
      (fname, ftype, fid) = iprot.readFieldBegin()
10040
      if ftype == TType.STOP:
10041
        break
10042
      if fid == 1:
10043
        if ftype == TType.I32:
10044
          self.itemStatus = iprot.readI32();
10045
        else:
10046
          iprot.skip(ftype)
10047
      elif fid == 2:
10048
        if ftype == TType.I64:
10049
          self.offset = iprot.readI64();
10050
        else:
10051
          iprot.skip(ftype)
10052
      elif fid == 3:
10053
        if ftype == TType.I64:
10054
          self.limit = iprot.readI64();
10055
        else:
10056
          iprot.skip(ftype)
10057
      else:
10058
        iprot.skip(ftype)
10059
      iprot.readFieldEnd()
10060
    iprot.readStructEnd()
10061
 
10062
  def write(self, oprot):
10063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10065
      return
10066
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
10067
    if self.itemStatus is not None:
10068
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10069
      oprot.writeI32(self.itemStatus)
10070
      oprot.writeFieldEnd()
10071
    if self.offset is not None:
10072
      oprot.writeFieldBegin('offset', TType.I64, 2)
10073
      oprot.writeI64(self.offset)
10074
      oprot.writeFieldEnd()
10075
    if self.limit is not None:
10076
      oprot.writeFieldBegin('limit', TType.I64, 3)
10077
      oprot.writeI64(self.limit)
10078
      oprot.writeFieldEnd()
10079
    oprot.writeFieldStop()
10080
    oprot.writeStructEnd()
10081
 
10082
  def validate(self):
10083
    return
10084
 
10085
 
10086
  def __repr__(self):
10087
    L = ['%s=%r' % (key, value)
10088
      for key, value in self.__dict__.iteritems()]
10089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10090
 
10091
  def __eq__(self, other):
10092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10093
 
10094
  def __ne__(self, other):
10095
    return not (self == other)
10096
 
10097
class getAllItemsByStatusInRange_result:
10098
  """
10099
  Attributes:
10100
   - success
10101
   - cex
10102
  """
10103
 
10104
  thrift_spec = (
10105
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10106
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10107
  )
10108
 
10109
  def __init__(self, success=None, cex=None,):
10110
    self.success = success
10111
    self.cex = cex
10112
 
10113
  def read(self, iprot):
10114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10116
      return
10117
    iprot.readStructBegin()
10118
    while True:
10119
      (fname, ftype, fid) = iprot.readFieldBegin()
10120
      if ftype == TType.STOP:
10121
        break
10122
      if fid == 0:
10123
        if ftype == TType.LIST:
10124
          self.success = []
8590 kshitij.so 10125
          (_etype84, _size81) = iprot.readListBegin()
10126
          for _i85 in xrange(_size81):
10127
            _elem86 = Item()
10128
            _elem86.read(iprot)
10129
            self.success.append(_elem86)
5944 mandeep.dh 10130
          iprot.readListEnd()
10131
        else:
10132
          iprot.skip(ftype)
10133
      elif fid == 1:
10134
        if ftype == TType.STRUCT:
10135
          self.cex = CatalogServiceException()
10136
          self.cex.read(iprot)
10137
        else:
10138
          iprot.skip(ftype)
10139
      else:
10140
        iprot.skip(ftype)
10141
      iprot.readFieldEnd()
10142
    iprot.readStructEnd()
10143
 
10144
  def write(self, oprot):
10145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10147
      return
10148
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
10149
    if self.success is not None:
10150
      oprot.writeFieldBegin('success', TType.LIST, 0)
10151
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10152
      for iter87 in self.success:
10153
        iter87.write(oprot)
5944 mandeep.dh 10154
      oprot.writeListEnd()
10155
      oprot.writeFieldEnd()
10156
    if self.cex is not None:
10157
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10158
      self.cex.write(oprot)
10159
      oprot.writeFieldEnd()
10160
    oprot.writeFieldStop()
10161
    oprot.writeStructEnd()
10162
 
10163
  def validate(self):
10164
    return
10165
 
10166
 
10167
  def __repr__(self):
10168
    L = ['%s=%r' % (key, value)
10169
      for key, value in self.__dict__.iteritems()]
10170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10171
 
10172
  def __eq__(self, other):
10173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10174
 
10175
  def __ne__(self, other):
10176
    return not (self == other)
10177
 
10178
class getItemCountByStatus_args:
10179
  """
10180
  Attributes:
10181
   - useStatus
10182
   - itemStatus
10183
  """
10184
 
10185
  thrift_spec = (
10186
    None, # 0
10187
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
10188
    (2, TType.I32, 'itemStatus', None, None, ), # 2
10189
  )
10190
 
10191
  def __init__(self, useStatus=None, itemStatus=None,):
10192
    self.useStatus = useStatus
10193
    self.itemStatus = itemStatus
10194
 
10195
  def read(self, iprot):
10196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10198
      return
10199
    iprot.readStructBegin()
10200
    while True:
10201
      (fname, ftype, fid) = iprot.readFieldBegin()
10202
      if ftype == TType.STOP:
10203
        break
10204
      if fid == 1:
10205
        if ftype == TType.BOOL:
10206
          self.useStatus = iprot.readBool();
10207
        else:
10208
          iprot.skip(ftype)
10209
      elif fid == 2:
10210
        if ftype == TType.I32:
10211
          self.itemStatus = iprot.readI32();
10212
        else:
10213
          iprot.skip(ftype)
10214
      else:
10215
        iprot.skip(ftype)
10216
      iprot.readFieldEnd()
10217
    iprot.readStructEnd()
10218
 
10219
  def write(self, oprot):
10220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10222
      return
10223
    oprot.writeStructBegin('getItemCountByStatus_args')
10224
    if self.useStatus is not None:
10225
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
10226
      oprot.writeBool(self.useStatus)
10227
      oprot.writeFieldEnd()
10228
    if self.itemStatus is not None:
10229
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
10230
      oprot.writeI32(self.itemStatus)
10231
      oprot.writeFieldEnd()
10232
    oprot.writeFieldStop()
10233
    oprot.writeStructEnd()
10234
 
10235
  def validate(self):
10236
    return
10237
 
10238
 
10239
  def __repr__(self):
10240
    L = ['%s=%r' % (key, value)
10241
      for key, value in self.__dict__.iteritems()]
10242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10243
 
10244
  def __eq__(self, other):
10245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10246
 
10247
  def __ne__(self, other):
10248
    return not (self == other)
10249
 
10250
class getItemCountByStatus_result:
10251
  """
10252
  Attributes:
10253
   - success
10254
  """
10255
 
10256
  thrift_spec = (
10257
    (0, TType.I32, 'success', None, None, ), # 0
10258
  )
10259
 
10260
  def __init__(self, success=None,):
10261
    self.success = success
10262
 
10263
  def read(self, iprot):
10264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10266
      return
10267
    iprot.readStructBegin()
10268
    while True:
10269
      (fname, ftype, fid) = iprot.readFieldBegin()
10270
      if ftype == TType.STOP:
10271
        break
10272
      if fid == 0:
10273
        if ftype == TType.I32:
10274
          self.success = iprot.readI32();
10275
        else:
10276
          iprot.skip(ftype)
10277
      else:
10278
        iprot.skip(ftype)
10279
      iprot.readFieldEnd()
10280
    iprot.readStructEnd()
10281
 
10282
  def write(self, oprot):
10283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10285
      return
10286
    oprot.writeStructBegin('getItemCountByStatus_result')
10287
    if self.success is not None:
10288
      oprot.writeFieldBegin('success', TType.I32, 0)
10289
      oprot.writeI32(self.success)
10290
      oprot.writeFieldEnd()
10291
    oprot.writeFieldStop()
10292
    oprot.writeStructEnd()
10293
 
10294
  def validate(self):
10295
    return
10296
 
10297
 
10298
  def __repr__(self):
10299
    L = ['%s=%r' % (key, value)
10300
      for key, value in self.__dict__.iteritems()]
10301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10302
 
10303
  def __eq__(self, other):
10304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10305
 
10306
  def __ne__(self, other):
10307
    return not (self == other)
10308
 
10309
class getBestSellers_args:
10310
 
10311
  thrift_spec = (
10312
  )
10313
 
10314
  def read(self, iprot):
10315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10317
      return
10318
    iprot.readStructBegin()
10319
    while True:
10320
      (fname, ftype, fid) = iprot.readFieldBegin()
10321
      if ftype == TType.STOP:
10322
        break
10323
      else:
10324
        iprot.skip(ftype)
10325
      iprot.readFieldEnd()
10326
    iprot.readStructEnd()
10327
 
10328
  def write(self, oprot):
10329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10331
      return
10332
    oprot.writeStructBegin('getBestSellers_args')
10333
    oprot.writeFieldStop()
10334
    oprot.writeStructEnd()
10335
 
10336
  def validate(self):
10337
    return
10338
 
10339
 
10340
  def __repr__(self):
10341
    L = ['%s=%r' % (key, value)
10342
      for key, value in self.__dict__.iteritems()]
10343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10344
 
10345
  def __eq__(self, other):
10346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10347
 
10348
  def __ne__(self, other):
10349
    return not (self == other)
10350
 
10351
class getBestSellers_result:
10352
  """
10353
  Attributes:
10354
   - success
10355
   - isex
10356
  """
10357
 
10358
  thrift_spec = (
10359
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10360
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10361
  )
10362
 
10363
  def __init__(self, success=None, isex=None,):
10364
    self.success = success
10365
    self.isex = isex
10366
 
10367
  def read(self, iprot):
10368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10370
      return
10371
    iprot.readStructBegin()
10372
    while True:
10373
      (fname, ftype, fid) = iprot.readFieldBegin()
10374
      if ftype == TType.STOP:
10375
        break
10376
      if fid == 0:
10377
        if ftype == TType.LIST:
10378
          self.success = []
8590 kshitij.so 10379
          (_etype91, _size88) = iprot.readListBegin()
10380
          for _i92 in xrange(_size88):
10381
            _elem93 = Item()
10382
            _elem93.read(iprot)
10383
            self.success.append(_elem93)
5944 mandeep.dh 10384
          iprot.readListEnd()
10385
        else:
10386
          iprot.skip(ftype)
10387
      elif fid == 1:
10388
        if ftype == TType.STRUCT:
10389
          self.isex = CatalogServiceException()
10390
          self.isex.read(iprot)
10391
        else:
10392
          iprot.skip(ftype)
10393
      else:
10394
        iprot.skip(ftype)
10395
      iprot.readFieldEnd()
10396
    iprot.readStructEnd()
10397
 
10398
  def write(self, oprot):
10399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10401
      return
10402
    oprot.writeStructBegin('getBestSellers_result')
10403
    if self.success is not None:
10404
      oprot.writeFieldBegin('success', TType.LIST, 0)
10405
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10406
      for iter94 in self.success:
10407
        iter94.write(oprot)
5944 mandeep.dh 10408
      oprot.writeListEnd()
10409
      oprot.writeFieldEnd()
10410
    if self.isex is not None:
10411
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10412
      self.isex.write(oprot)
10413
      oprot.writeFieldEnd()
10414
    oprot.writeFieldStop()
10415
    oprot.writeStructEnd()
10416
 
10417
  def validate(self):
10418
    return
10419
 
10420
 
10421
  def __repr__(self):
10422
    L = ['%s=%r' % (key, value)
10423
      for key, value in self.__dict__.iteritems()]
10424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10425
 
10426
  def __eq__(self, other):
10427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10428
 
10429
  def __ne__(self, other):
10430
    return not (self == other)
10431
 
10432
class getBestSellersCatalogIds_args:
10433
  """
10434
  Attributes:
10435
   - beginIndex
10436
   - totalItems
10437
   - brand
10438
   - category
10439
  """
10440
 
10441
  thrift_spec = (
10442
    None, # 0
10443
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10444
    (2, TType.I64, 'totalItems', None, None, ), # 2
10445
    (3, TType.STRING, 'brand', None, None, ), # 3
10446
    (4, TType.I64, 'category', None, None, ), # 4
10447
  )
10448
 
10449
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10450
    self.beginIndex = beginIndex
10451
    self.totalItems = totalItems
10452
    self.brand = brand
10453
    self.category = category
10454
 
10455
  def read(self, iprot):
10456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10458
      return
10459
    iprot.readStructBegin()
10460
    while True:
10461
      (fname, ftype, fid) = iprot.readFieldBegin()
10462
      if ftype == TType.STOP:
10463
        break
10464
      if fid == 1:
10465
        if ftype == TType.I64:
10466
          self.beginIndex = iprot.readI64();
10467
        else:
10468
          iprot.skip(ftype)
10469
      elif fid == 2:
10470
        if ftype == TType.I64:
10471
          self.totalItems = iprot.readI64();
10472
        else:
10473
          iprot.skip(ftype)
10474
      elif fid == 3:
10475
        if ftype == TType.STRING:
10476
          self.brand = iprot.readString();
10477
        else:
10478
          iprot.skip(ftype)
10479
      elif fid == 4:
10480
        if ftype == TType.I64:
10481
          self.category = iprot.readI64();
10482
        else:
10483
          iprot.skip(ftype)
10484
      else:
10485
        iprot.skip(ftype)
10486
      iprot.readFieldEnd()
10487
    iprot.readStructEnd()
10488
 
10489
  def write(self, oprot):
10490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10492
      return
10493
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
10494
    if self.beginIndex is not None:
10495
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10496
      oprot.writeI64(self.beginIndex)
10497
      oprot.writeFieldEnd()
10498
    if self.totalItems is not None:
10499
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10500
      oprot.writeI64(self.totalItems)
10501
      oprot.writeFieldEnd()
10502
    if self.brand is not None:
10503
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10504
      oprot.writeString(self.brand)
10505
      oprot.writeFieldEnd()
10506
    if self.category is not None:
10507
      oprot.writeFieldBegin('category', TType.I64, 4)
10508
      oprot.writeI64(self.category)
10509
      oprot.writeFieldEnd()
10510
    oprot.writeFieldStop()
10511
    oprot.writeStructEnd()
10512
 
10513
  def validate(self):
10514
    return
10515
 
10516
 
10517
  def __repr__(self):
10518
    L = ['%s=%r' % (key, value)
10519
      for key, value in self.__dict__.iteritems()]
10520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10521
 
10522
  def __eq__(self, other):
10523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10524
 
10525
  def __ne__(self, other):
10526
    return not (self == other)
10527
 
10528
class getBestSellersCatalogIds_result:
10529
  """
10530
  Attributes:
10531
   - success
10532
   - cex
10533
  """
10534
 
10535
  thrift_spec = (
10536
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10537
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10538
  )
10539
 
10540
  def __init__(self, success=None, cex=None,):
10541
    self.success = success
10542
    self.cex = cex
10543
 
10544
  def read(self, iprot):
10545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10547
      return
10548
    iprot.readStructBegin()
10549
    while True:
10550
      (fname, ftype, fid) = iprot.readFieldBegin()
10551
      if ftype == TType.STOP:
10552
        break
10553
      if fid == 0:
10554
        if ftype == TType.LIST:
10555
          self.success = []
8590 kshitij.so 10556
          (_etype98, _size95) = iprot.readListBegin()
10557
          for _i99 in xrange(_size95):
10558
            _elem100 = iprot.readI64();
10559
            self.success.append(_elem100)
5944 mandeep.dh 10560
          iprot.readListEnd()
10561
        else:
10562
          iprot.skip(ftype)
10563
      elif fid == 1:
10564
        if ftype == TType.STRUCT:
10565
          self.cex = CatalogServiceException()
10566
          self.cex.read(iprot)
10567
        else:
10568
          iprot.skip(ftype)
10569
      else:
10570
        iprot.skip(ftype)
10571
      iprot.readFieldEnd()
10572
    iprot.readStructEnd()
10573
 
10574
  def write(self, oprot):
10575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10577
      return
10578
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
10579
    if self.success is not None:
10580
      oprot.writeFieldBegin('success', TType.LIST, 0)
10581
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10582
      for iter101 in self.success:
10583
        oprot.writeI64(iter101)
5944 mandeep.dh 10584
      oprot.writeListEnd()
10585
      oprot.writeFieldEnd()
10586
    if self.cex is not None:
10587
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10588
      self.cex.write(oprot)
10589
      oprot.writeFieldEnd()
10590
    oprot.writeFieldStop()
10591
    oprot.writeStructEnd()
10592
 
10593
  def validate(self):
10594
    return
10595
 
10596
 
10597
  def __repr__(self):
10598
    L = ['%s=%r' % (key, value)
10599
      for key, value in self.__dict__.iteritems()]
10600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10601
 
10602
  def __eq__(self, other):
10603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10604
 
10605
  def __ne__(self, other):
10606
    return not (self == other)
10607
 
10608
class getBestSellersCount_args:
10609
 
10610
  thrift_spec = (
10611
  )
10612
 
10613
  def read(self, iprot):
10614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10616
      return
10617
    iprot.readStructBegin()
10618
    while True:
10619
      (fname, ftype, fid) = iprot.readFieldBegin()
10620
      if ftype == TType.STOP:
10621
        break
10622
      else:
10623
        iprot.skip(ftype)
10624
      iprot.readFieldEnd()
10625
    iprot.readStructEnd()
10626
 
10627
  def write(self, oprot):
10628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10630
      return
10631
    oprot.writeStructBegin('getBestSellersCount_args')
10632
    oprot.writeFieldStop()
10633
    oprot.writeStructEnd()
10634
 
10635
  def validate(self):
10636
    return
10637
 
10638
 
10639
  def __repr__(self):
10640
    L = ['%s=%r' % (key, value)
10641
      for key, value in self.__dict__.iteritems()]
10642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10643
 
10644
  def __eq__(self, other):
10645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10646
 
10647
  def __ne__(self, other):
10648
    return not (self == other)
10649
 
10650
class getBestSellersCount_result:
10651
  """
10652
  Attributes:
10653
   - success
10654
   - cex
10655
  """
10656
 
10657
  thrift_spec = (
10658
    (0, TType.I64, 'success', None, None, ), # 0
10659
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10660
  )
10661
 
10662
  def __init__(self, success=None, cex=None,):
10663
    self.success = success
10664
    self.cex = cex
10665
 
10666
  def read(self, iprot):
10667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10669
      return
10670
    iprot.readStructBegin()
10671
    while True:
10672
      (fname, ftype, fid) = iprot.readFieldBegin()
10673
      if ftype == TType.STOP:
10674
        break
10675
      if fid == 0:
10676
        if ftype == TType.I64:
10677
          self.success = iprot.readI64();
10678
        else:
10679
          iprot.skip(ftype)
10680
      elif fid == 1:
10681
        if ftype == TType.STRUCT:
10682
          self.cex = CatalogServiceException()
10683
          self.cex.read(iprot)
10684
        else:
10685
          iprot.skip(ftype)
10686
      else:
10687
        iprot.skip(ftype)
10688
      iprot.readFieldEnd()
10689
    iprot.readStructEnd()
10690
 
10691
  def write(self, oprot):
10692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10694
      return
10695
    oprot.writeStructBegin('getBestSellersCount_result')
10696
    if self.success is not None:
10697
      oprot.writeFieldBegin('success', TType.I64, 0)
10698
      oprot.writeI64(self.success)
10699
      oprot.writeFieldEnd()
10700
    if self.cex is not None:
10701
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10702
      self.cex.write(oprot)
10703
      oprot.writeFieldEnd()
10704
    oprot.writeFieldStop()
10705
    oprot.writeStructEnd()
10706
 
10707
  def validate(self):
10708
    return
10709
 
10710
 
10711
  def __repr__(self):
10712
    L = ['%s=%r' % (key, value)
10713
      for key, value in self.__dict__.iteritems()]
10714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10715
 
10716
  def __eq__(self, other):
10717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10718
 
10719
  def __ne__(self, other):
10720
    return not (self == other)
10721
 
10722
class getBestDeals_args:
10723
 
10724
  thrift_spec = (
10725
  )
10726
 
10727
  def read(self, iprot):
10728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10730
      return
10731
    iprot.readStructBegin()
10732
    while True:
10733
      (fname, ftype, fid) = iprot.readFieldBegin()
10734
      if ftype == TType.STOP:
10735
        break
10736
      else:
10737
        iprot.skip(ftype)
10738
      iprot.readFieldEnd()
10739
    iprot.readStructEnd()
10740
 
10741
  def write(self, oprot):
10742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10744
      return
10745
    oprot.writeStructBegin('getBestDeals_args')
10746
    oprot.writeFieldStop()
10747
    oprot.writeStructEnd()
10748
 
10749
  def validate(self):
10750
    return
10751
 
10752
 
10753
  def __repr__(self):
10754
    L = ['%s=%r' % (key, value)
10755
      for key, value in self.__dict__.iteritems()]
10756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10757
 
10758
  def __eq__(self, other):
10759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10760
 
10761
  def __ne__(self, other):
10762
    return not (self == other)
10763
 
10764
class getBestDeals_result:
10765
  """
10766
  Attributes:
10767
   - success
10768
   - isex
10769
  """
10770
 
10771
  thrift_spec = (
10772
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10773
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10774
  )
10775
 
10776
  def __init__(self, success=None, isex=None,):
10777
    self.success = success
10778
    self.isex = isex
10779
 
10780
  def read(self, iprot):
10781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10783
      return
10784
    iprot.readStructBegin()
10785
    while True:
10786
      (fname, ftype, fid) = iprot.readFieldBegin()
10787
      if ftype == TType.STOP:
10788
        break
10789
      if fid == 0:
10790
        if ftype == TType.LIST:
10791
          self.success = []
8590 kshitij.so 10792
          (_etype105, _size102) = iprot.readListBegin()
10793
          for _i106 in xrange(_size102):
10794
            _elem107 = Item()
10795
            _elem107.read(iprot)
10796
            self.success.append(_elem107)
5944 mandeep.dh 10797
          iprot.readListEnd()
10798
        else:
10799
          iprot.skip(ftype)
10800
      elif fid == 1:
10801
        if ftype == TType.STRUCT:
10802
          self.isex = CatalogServiceException()
10803
          self.isex.read(iprot)
10804
        else:
10805
          iprot.skip(ftype)
10806
      else:
10807
        iprot.skip(ftype)
10808
      iprot.readFieldEnd()
10809
    iprot.readStructEnd()
10810
 
10811
  def write(self, oprot):
10812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10814
      return
10815
    oprot.writeStructBegin('getBestDeals_result')
10816
    if self.success is not None:
10817
      oprot.writeFieldBegin('success', TType.LIST, 0)
10818
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10819
      for iter108 in self.success:
10820
        iter108.write(oprot)
5944 mandeep.dh 10821
      oprot.writeListEnd()
10822
      oprot.writeFieldEnd()
10823
    if self.isex is not None:
10824
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10825
      self.isex.write(oprot)
10826
      oprot.writeFieldEnd()
10827
    oprot.writeFieldStop()
10828
    oprot.writeStructEnd()
10829
 
10830
  def validate(self):
10831
    return
10832
 
10833
 
10834
  def __repr__(self):
10835
    L = ['%s=%r' % (key, value)
10836
      for key, value in self.__dict__.iteritems()]
10837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10838
 
10839
  def __eq__(self, other):
10840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10841
 
10842
  def __ne__(self, other):
10843
    return not (self == other)
10844
 
10845
class getBestDealsCatalogIds_args:
10846
  """
10847
  Attributes:
10848
   - beginIndex
10849
   - totalItems
10850
   - brand
10851
   - category
10852
  """
10853
 
10854
  thrift_spec = (
10855
    None, # 0
10856
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10857
    (2, TType.I64, 'totalItems', None, None, ), # 2
10858
    (3, TType.STRING, 'brand', None, None, ), # 3
10859
    (4, TType.I64, 'category', None, None, ), # 4
10860
  )
10861
 
10862
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10863
    self.beginIndex = beginIndex
10864
    self.totalItems = totalItems
10865
    self.brand = brand
10866
    self.category = category
10867
 
10868
  def read(self, iprot):
10869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10871
      return
10872
    iprot.readStructBegin()
10873
    while True:
10874
      (fname, ftype, fid) = iprot.readFieldBegin()
10875
      if ftype == TType.STOP:
10876
        break
10877
      if fid == 1:
10878
        if ftype == TType.I64:
10879
          self.beginIndex = iprot.readI64();
10880
        else:
10881
          iprot.skip(ftype)
10882
      elif fid == 2:
10883
        if ftype == TType.I64:
10884
          self.totalItems = iprot.readI64();
10885
        else:
10886
          iprot.skip(ftype)
10887
      elif fid == 3:
10888
        if ftype == TType.STRING:
10889
          self.brand = iprot.readString();
10890
        else:
10891
          iprot.skip(ftype)
10892
      elif fid == 4:
10893
        if ftype == TType.I64:
10894
          self.category = iprot.readI64();
10895
        else:
10896
          iprot.skip(ftype)
10897
      else:
10898
        iprot.skip(ftype)
10899
      iprot.readFieldEnd()
10900
    iprot.readStructEnd()
10901
 
10902
  def write(self, oprot):
10903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10905
      return
10906
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
10907
    if self.beginIndex is not None:
10908
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10909
      oprot.writeI64(self.beginIndex)
10910
      oprot.writeFieldEnd()
10911
    if self.totalItems is not None:
10912
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10913
      oprot.writeI64(self.totalItems)
10914
      oprot.writeFieldEnd()
10915
    if self.brand is not None:
10916
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10917
      oprot.writeString(self.brand)
10918
      oprot.writeFieldEnd()
10919
    if self.category is not None:
10920
      oprot.writeFieldBegin('category', TType.I64, 4)
10921
      oprot.writeI64(self.category)
10922
      oprot.writeFieldEnd()
10923
    oprot.writeFieldStop()
10924
    oprot.writeStructEnd()
10925
 
10926
  def validate(self):
10927
    return
10928
 
10929
 
10930
  def __repr__(self):
10931
    L = ['%s=%r' % (key, value)
10932
      for key, value in self.__dict__.iteritems()]
10933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10934
 
10935
  def __eq__(self, other):
10936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10937
 
10938
  def __ne__(self, other):
10939
    return not (self == other)
10940
 
10941
class getBestDealsCatalogIds_result:
10942
  """
10943
  Attributes:
10944
   - success
10945
   - cex
10946
  """
10947
 
10948
  thrift_spec = (
10949
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10950
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10951
  )
10952
 
10953
  def __init__(self, success=None, cex=None,):
10954
    self.success = success
10955
    self.cex = cex
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 == 0:
10967
        if ftype == TType.LIST:
10968
          self.success = []
8590 kshitij.so 10969
          (_etype112, _size109) = iprot.readListBegin()
10970
          for _i113 in xrange(_size109):
10971
            _elem114 = iprot.readI64();
10972
            self.success.append(_elem114)
5944 mandeep.dh 10973
          iprot.readListEnd()
10974
        else:
10975
          iprot.skip(ftype)
10976
      elif fid == 1:
10977
        if ftype == TType.STRUCT:
10978
          self.cex = CatalogServiceException()
10979
          self.cex.read(iprot)
10980
        else:
10981
          iprot.skip(ftype)
10982
      else:
10983
        iprot.skip(ftype)
10984
      iprot.readFieldEnd()
10985
    iprot.readStructEnd()
10986
 
10987
  def write(self, oprot):
10988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10990
      return
10991
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
10992
    if self.success is not None:
10993
      oprot.writeFieldBegin('success', TType.LIST, 0)
10994
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10995
      for iter115 in self.success:
10996
        oprot.writeI64(iter115)
5944 mandeep.dh 10997
      oprot.writeListEnd()
10998
      oprot.writeFieldEnd()
10999
    if self.cex is not None:
11000
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11001
      self.cex.write(oprot)
11002
      oprot.writeFieldEnd()
11003
    oprot.writeFieldStop()
11004
    oprot.writeStructEnd()
11005
 
11006
  def validate(self):
11007
    return
11008
 
11009
 
11010
  def __repr__(self):
11011
    L = ['%s=%r' % (key, value)
11012
      for key, value in self.__dict__.iteritems()]
11013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11014
 
11015
  def __eq__(self, other):
11016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11017
 
11018
  def __ne__(self, other):
11019
    return not (self == other)
11020
 
11021
class getBestDealsCount_args:
11022
 
11023
  thrift_spec = (
11024
  )
11025
 
11026
  def read(self, iprot):
11027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11029
      return
11030
    iprot.readStructBegin()
11031
    while True:
11032
      (fname, ftype, fid) = iprot.readFieldBegin()
11033
      if ftype == TType.STOP:
11034
        break
11035
      else:
11036
        iprot.skip(ftype)
11037
      iprot.readFieldEnd()
11038
    iprot.readStructEnd()
11039
 
11040
  def write(self, oprot):
11041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11043
      return
11044
    oprot.writeStructBegin('getBestDealsCount_args')
11045
    oprot.writeFieldStop()
11046
    oprot.writeStructEnd()
11047
 
11048
  def validate(self):
11049
    return
11050
 
11051
 
11052
  def __repr__(self):
11053
    L = ['%s=%r' % (key, value)
11054
      for key, value in self.__dict__.iteritems()]
11055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11056
 
11057
  def __eq__(self, other):
11058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11059
 
11060
  def __ne__(self, other):
11061
    return not (self == other)
11062
 
11063
class getBestDealsCount_result:
11064
  """
11065
  Attributes:
11066
   - success
11067
   - cex
11068
  """
11069
 
11070
  thrift_spec = (
11071
    (0, TType.I64, 'success', None, None, ), # 0
11072
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11073
  )
11074
 
11075
  def __init__(self, success=None, cex=None,):
11076
    self.success = success
11077
    self.cex = cex
11078
 
11079
  def read(self, iprot):
11080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11082
      return
11083
    iprot.readStructBegin()
11084
    while True:
11085
      (fname, ftype, fid) = iprot.readFieldBegin()
11086
      if ftype == TType.STOP:
11087
        break
11088
      if fid == 0:
11089
        if ftype == TType.I64:
11090
          self.success = iprot.readI64();
11091
        else:
11092
          iprot.skip(ftype)
11093
      elif fid == 1:
11094
        if ftype == TType.STRUCT:
11095
          self.cex = CatalogServiceException()
11096
          self.cex.read(iprot)
11097
        else:
11098
          iprot.skip(ftype)
11099
      else:
11100
        iprot.skip(ftype)
11101
      iprot.readFieldEnd()
11102
    iprot.readStructEnd()
11103
 
11104
  def write(self, oprot):
11105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11107
      return
11108
    oprot.writeStructBegin('getBestDealsCount_result')
11109
    if self.success is not None:
11110
      oprot.writeFieldBegin('success', TType.I64, 0)
11111
      oprot.writeI64(self.success)
11112
      oprot.writeFieldEnd()
11113
    if self.cex is not None:
11114
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11115
      self.cex.write(oprot)
11116
      oprot.writeFieldEnd()
11117
    oprot.writeFieldStop()
11118
    oprot.writeStructEnd()
11119
 
11120
  def validate(self):
11121
    return
11122
 
11123
 
11124
  def __repr__(self):
11125
    L = ['%s=%r' % (key, value)
11126
      for key, value in self.__dict__.iteritems()]
11127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11128
 
11129
  def __eq__(self, other):
11130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11131
 
11132
  def __ne__(self, other):
11133
    return not (self == other)
11134
 
11135
class getComingSoon_args:
11136
 
11137
  thrift_spec = (
11138
  )
11139
 
11140
  def read(self, iprot):
11141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11143
      return
11144
    iprot.readStructBegin()
11145
    while True:
11146
      (fname, ftype, fid) = iprot.readFieldBegin()
11147
      if ftype == TType.STOP:
11148
        break
11149
      else:
11150
        iprot.skip(ftype)
11151
      iprot.readFieldEnd()
11152
    iprot.readStructEnd()
11153
 
11154
  def write(self, oprot):
11155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11157
      return
11158
    oprot.writeStructBegin('getComingSoon_args')
11159
    oprot.writeFieldStop()
11160
    oprot.writeStructEnd()
11161
 
11162
  def validate(self):
11163
    return
11164
 
11165
 
11166
  def __repr__(self):
11167
    L = ['%s=%r' % (key, value)
11168
      for key, value in self.__dict__.iteritems()]
11169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11170
 
11171
  def __eq__(self, other):
11172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11173
 
11174
  def __ne__(self, other):
11175
    return not (self == other)
11176
 
11177
class getComingSoon_result:
11178
  """
11179
  Attributes:
11180
   - success
11181
   - isex
11182
  """
11183
 
11184
  thrift_spec = (
11185
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11186
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11187
  )
11188
 
11189
  def __init__(self, success=None, isex=None,):
11190
    self.success = success
11191
    self.isex = isex
11192
 
11193
  def read(self, iprot):
11194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11196
      return
11197
    iprot.readStructBegin()
11198
    while True:
11199
      (fname, ftype, fid) = iprot.readFieldBegin()
11200
      if ftype == TType.STOP:
11201
        break
11202
      if fid == 0:
11203
        if ftype == TType.LIST:
11204
          self.success = []
8590 kshitij.so 11205
          (_etype119, _size116) = iprot.readListBegin()
11206
          for _i120 in xrange(_size116):
11207
            _elem121 = Item()
11208
            _elem121.read(iprot)
11209
            self.success.append(_elem121)
5944 mandeep.dh 11210
          iprot.readListEnd()
11211
        else:
11212
          iprot.skip(ftype)
11213
      elif fid == 1:
11214
        if ftype == TType.STRUCT:
11215
          self.isex = CatalogServiceException()
11216
          self.isex.read(iprot)
11217
        else:
11218
          iprot.skip(ftype)
11219
      else:
11220
        iprot.skip(ftype)
11221
      iprot.readFieldEnd()
11222
    iprot.readStructEnd()
11223
 
11224
  def write(self, oprot):
11225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11227
      return
11228
    oprot.writeStructBegin('getComingSoon_result')
11229
    if self.success is not None:
11230
      oprot.writeFieldBegin('success', TType.LIST, 0)
11231
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11232
      for iter122 in self.success:
11233
        iter122.write(oprot)
5944 mandeep.dh 11234
      oprot.writeListEnd()
11235
      oprot.writeFieldEnd()
11236
    if self.isex is not None:
11237
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11238
      self.isex.write(oprot)
11239
      oprot.writeFieldEnd()
11240
    oprot.writeFieldStop()
11241
    oprot.writeStructEnd()
11242
 
11243
  def validate(self):
11244
    return
11245
 
11246
 
11247
  def __repr__(self):
11248
    L = ['%s=%r' % (key, value)
11249
      for key, value in self.__dict__.iteritems()]
11250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11251
 
11252
  def __eq__(self, other):
11253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11254
 
11255
  def __ne__(self, other):
11256
    return not (self == other)
11257
 
11258
class getComingSoonCatalogIds_args:
11259
  """
11260
  Attributes:
11261
   - beginIndex
11262
   - totalItems
11263
   - brand
11264
   - category
11265
  """
11266
 
11267
  thrift_spec = (
11268
    None, # 0
11269
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11270
    (2, TType.I64, 'totalItems', None, None, ), # 2
11271
    (3, TType.STRING, 'brand', None, None, ), # 3
11272
    (4, TType.I64, 'category', None, None, ), # 4
11273
  )
11274
 
11275
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11276
    self.beginIndex = beginIndex
11277
    self.totalItems = totalItems
11278
    self.brand = brand
11279
    self.category = category
11280
 
11281
  def read(self, iprot):
11282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11284
      return
11285
    iprot.readStructBegin()
11286
    while True:
11287
      (fname, ftype, fid) = iprot.readFieldBegin()
11288
      if ftype == TType.STOP:
11289
        break
11290
      if fid == 1:
11291
        if ftype == TType.I64:
11292
          self.beginIndex = iprot.readI64();
11293
        else:
11294
          iprot.skip(ftype)
11295
      elif fid == 2:
11296
        if ftype == TType.I64:
11297
          self.totalItems = iprot.readI64();
11298
        else:
11299
          iprot.skip(ftype)
11300
      elif fid == 3:
11301
        if ftype == TType.STRING:
11302
          self.brand = iprot.readString();
11303
        else:
11304
          iprot.skip(ftype)
11305
      elif fid == 4:
11306
        if ftype == TType.I64:
11307
          self.category = 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('getComingSoonCatalogIds_args')
11320
    if self.beginIndex is not None:
11321
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11322
      oprot.writeI64(self.beginIndex)
11323
      oprot.writeFieldEnd()
11324
    if self.totalItems is not None:
11325
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11326
      oprot.writeI64(self.totalItems)
11327
      oprot.writeFieldEnd()
11328
    if self.brand is not None:
11329
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11330
      oprot.writeString(self.brand)
11331
      oprot.writeFieldEnd()
11332
    if self.category is not None:
11333
      oprot.writeFieldBegin('category', TType.I64, 4)
11334
      oprot.writeI64(self.category)
11335
      oprot.writeFieldEnd()
11336
    oprot.writeFieldStop()
11337
    oprot.writeStructEnd()
11338
 
11339
  def validate(self):
11340
    return
11341
 
11342
 
11343
  def __repr__(self):
11344
    L = ['%s=%r' % (key, value)
11345
      for key, value in self.__dict__.iteritems()]
11346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11347
 
11348
  def __eq__(self, other):
11349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11350
 
11351
  def __ne__(self, other):
11352
    return not (self == other)
11353
 
11354
class getComingSoonCatalogIds_result:
11355
  """
11356
  Attributes:
11357
   - success
11358
   - cex
11359
  """
11360
 
11361
  thrift_spec = (
11362
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11363
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11364
  )
11365
 
11366
  def __init__(self, success=None, cex=None,):
11367
    self.success = success
11368
    self.cex = cex
11369
 
11370
  def read(self, iprot):
11371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11373
      return
11374
    iprot.readStructBegin()
11375
    while True:
11376
      (fname, ftype, fid) = iprot.readFieldBegin()
11377
      if ftype == TType.STOP:
11378
        break
11379
      if fid == 0:
11380
        if ftype == TType.LIST:
11381
          self.success = []
8590 kshitij.so 11382
          (_etype126, _size123) = iprot.readListBegin()
11383
          for _i127 in xrange(_size123):
11384
            _elem128 = iprot.readI64();
11385
            self.success.append(_elem128)
5944 mandeep.dh 11386
          iprot.readListEnd()
11387
        else:
11388
          iprot.skip(ftype)
11389
      elif fid == 1:
11390
        if ftype == TType.STRUCT:
11391
          self.cex = CatalogServiceException()
11392
          self.cex.read(iprot)
11393
        else:
11394
          iprot.skip(ftype)
11395
      else:
11396
        iprot.skip(ftype)
11397
      iprot.readFieldEnd()
11398
    iprot.readStructEnd()
11399
 
11400
  def write(self, oprot):
11401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11403
      return
11404
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
11405
    if self.success is not None:
11406
      oprot.writeFieldBegin('success', TType.LIST, 0)
11407
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11408
      for iter129 in self.success:
11409
        oprot.writeI64(iter129)
5944 mandeep.dh 11410
      oprot.writeListEnd()
11411
      oprot.writeFieldEnd()
11412
    if self.cex is not None:
11413
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11414
      self.cex.write(oprot)
11415
      oprot.writeFieldEnd()
11416
    oprot.writeFieldStop()
11417
    oprot.writeStructEnd()
11418
 
11419
  def validate(self):
11420
    return
11421
 
11422
 
11423
  def __repr__(self):
11424
    L = ['%s=%r' % (key, value)
11425
      for key, value in self.__dict__.iteritems()]
11426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11427
 
11428
  def __eq__(self, other):
11429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11430
 
11431
  def __ne__(self, other):
11432
    return not (self == other)
11433
 
11434
class getComingSoonCount_args:
11435
 
11436
  thrift_spec = (
11437
  )
11438
 
11439
  def read(self, iprot):
11440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11442
      return
11443
    iprot.readStructBegin()
11444
    while True:
11445
      (fname, ftype, fid) = iprot.readFieldBegin()
11446
      if ftype == TType.STOP:
11447
        break
11448
      else:
11449
        iprot.skip(ftype)
11450
      iprot.readFieldEnd()
11451
    iprot.readStructEnd()
11452
 
11453
  def write(self, oprot):
11454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11456
      return
11457
    oprot.writeStructBegin('getComingSoonCount_args')
11458
    oprot.writeFieldStop()
11459
    oprot.writeStructEnd()
11460
 
11461
  def validate(self):
11462
    return
11463
 
11464
 
11465
  def __repr__(self):
11466
    L = ['%s=%r' % (key, value)
11467
      for key, value in self.__dict__.iteritems()]
11468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11469
 
11470
  def __eq__(self, other):
11471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11472
 
11473
  def __ne__(self, other):
11474
    return not (self == other)
11475
 
11476
class getComingSoonCount_result:
11477
  """
11478
  Attributes:
11479
   - success
11480
   - cex
11481
  """
11482
 
11483
  thrift_spec = (
11484
    (0, TType.I64, 'success', None, None, ), # 0
11485
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11486
  )
11487
 
11488
  def __init__(self, success=None, cex=None,):
11489
    self.success = success
11490
    self.cex = cex
11491
 
11492
  def read(self, iprot):
11493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11495
      return
11496
    iprot.readStructBegin()
11497
    while True:
11498
      (fname, ftype, fid) = iprot.readFieldBegin()
11499
      if ftype == TType.STOP:
11500
        break
11501
      if fid == 0:
11502
        if ftype == TType.I64:
11503
          self.success = iprot.readI64();
11504
        else:
11505
          iprot.skip(ftype)
11506
      elif fid == 1:
11507
        if ftype == TType.STRUCT:
11508
          self.cex = CatalogServiceException()
11509
          self.cex.read(iprot)
11510
        else:
11511
          iprot.skip(ftype)
11512
      else:
11513
        iprot.skip(ftype)
11514
      iprot.readFieldEnd()
11515
    iprot.readStructEnd()
11516
 
11517
  def write(self, oprot):
11518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11520
      return
11521
    oprot.writeStructBegin('getComingSoonCount_result')
11522
    if self.success is not None:
11523
      oprot.writeFieldBegin('success', TType.I64, 0)
11524
      oprot.writeI64(self.success)
11525
      oprot.writeFieldEnd()
11526
    if self.cex is not None:
11527
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11528
      self.cex.write(oprot)
11529
      oprot.writeFieldEnd()
11530
    oprot.writeFieldStop()
11531
    oprot.writeStructEnd()
11532
 
11533
  def validate(self):
11534
    return
11535
 
11536
 
11537
  def __repr__(self):
11538
    L = ['%s=%r' % (key, value)
11539
      for key, value in self.__dict__.iteritems()]
11540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11541
 
11542
  def __eq__(self, other):
11543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11544
 
11545
  def __ne__(self, other):
11546
    return not (self == other)
11547
 
11548
class getLatestArrivals_args:
11549
 
11550
  thrift_spec = (
11551
  )
11552
 
11553
  def read(self, iprot):
11554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11556
      return
11557
    iprot.readStructBegin()
11558
    while True:
11559
      (fname, ftype, fid) = iprot.readFieldBegin()
11560
      if ftype == TType.STOP:
11561
        break
11562
      else:
11563
        iprot.skip(ftype)
11564
      iprot.readFieldEnd()
11565
    iprot.readStructEnd()
11566
 
11567
  def write(self, oprot):
11568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11570
      return
11571
    oprot.writeStructBegin('getLatestArrivals_args')
11572
    oprot.writeFieldStop()
11573
    oprot.writeStructEnd()
11574
 
11575
  def validate(self):
11576
    return
11577
 
11578
 
11579
  def __repr__(self):
11580
    L = ['%s=%r' % (key, value)
11581
      for key, value in self.__dict__.iteritems()]
11582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11583
 
11584
  def __eq__(self, other):
11585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11586
 
11587
  def __ne__(self, other):
11588
    return not (self == other)
11589
 
11590
class getLatestArrivals_result:
11591
  """
11592
  Attributes:
11593
   - success
11594
   - isex
11595
  """
11596
 
11597
  thrift_spec = (
11598
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11599
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11600
  )
11601
 
11602
  def __init__(self, success=None, isex=None,):
11603
    self.success = success
11604
    self.isex = isex
11605
 
11606
  def read(self, iprot):
11607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11609
      return
11610
    iprot.readStructBegin()
11611
    while True:
11612
      (fname, ftype, fid) = iprot.readFieldBegin()
11613
      if ftype == TType.STOP:
11614
        break
11615
      if fid == 0:
11616
        if ftype == TType.LIST:
11617
          self.success = []
8590 kshitij.so 11618
          (_etype133, _size130) = iprot.readListBegin()
11619
          for _i134 in xrange(_size130):
11620
            _elem135 = Item()
11621
            _elem135.read(iprot)
11622
            self.success.append(_elem135)
5944 mandeep.dh 11623
          iprot.readListEnd()
11624
        else:
11625
          iprot.skip(ftype)
11626
      elif fid == 1:
11627
        if ftype == TType.STRUCT:
11628
          self.isex = CatalogServiceException()
11629
          self.isex.read(iprot)
11630
        else:
11631
          iprot.skip(ftype)
11632
      else:
11633
        iprot.skip(ftype)
11634
      iprot.readFieldEnd()
11635
    iprot.readStructEnd()
11636
 
11637
  def write(self, oprot):
11638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11640
      return
11641
    oprot.writeStructBegin('getLatestArrivals_result')
11642
    if self.success is not None:
11643
      oprot.writeFieldBegin('success', TType.LIST, 0)
11644
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11645
      for iter136 in self.success:
11646
        iter136.write(oprot)
5944 mandeep.dh 11647
      oprot.writeListEnd()
11648
      oprot.writeFieldEnd()
11649
    if self.isex is not None:
11650
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11651
      self.isex.write(oprot)
11652
      oprot.writeFieldEnd()
11653
    oprot.writeFieldStop()
11654
    oprot.writeStructEnd()
11655
 
11656
  def validate(self):
11657
    return
11658
 
11659
 
11660
  def __repr__(self):
11661
    L = ['%s=%r' % (key, value)
11662
      for key, value in self.__dict__.iteritems()]
11663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11664
 
11665
  def __eq__(self, other):
11666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11667
 
11668
  def __ne__(self, other):
11669
    return not (self == other)
11670
 
11671
class getLatestArrivalsCatalogIds_args:
11672
  """
11673
  Attributes:
11674
   - beginIndex
11675
   - totalItems
11676
   - brand
11677
   - categories
11678
  """
11679
 
11680
  thrift_spec = (
11681
    None, # 0
11682
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11683
    (2, TType.I64, 'totalItems', None, None, ), # 2
11684
    (3, TType.STRING, 'brand', None, None, ), # 3
11685
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
11686
  )
11687
 
11688
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
11689
    self.beginIndex = beginIndex
11690
    self.totalItems = totalItems
11691
    self.brand = brand
11692
    self.categories = categories
11693
 
11694
  def read(self, iprot):
11695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11697
      return
11698
    iprot.readStructBegin()
11699
    while True:
11700
      (fname, ftype, fid) = iprot.readFieldBegin()
11701
      if ftype == TType.STOP:
11702
        break
11703
      if fid == 1:
11704
        if ftype == TType.I64:
11705
          self.beginIndex = iprot.readI64();
11706
        else:
11707
          iprot.skip(ftype)
11708
      elif fid == 2:
11709
        if ftype == TType.I64:
11710
          self.totalItems = iprot.readI64();
11711
        else:
11712
          iprot.skip(ftype)
11713
      elif fid == 3:
11714
        if ftype == TType.STRING:
11715
          self.brand = iprot.readString();
11716
        else:
11717
          iprot.skip(ftype)
11718
      elif fid == 4:
11719
        if ftype == TType.LIST:
11720
          self.categories = []
8590 kshitij.so 11721
          (_etype140, _size137) = iprot.readListBegin()
11722
          for _i141 in xrange(_size137):
11723
            _elem142 = iprot.readI64();
11724
            self.categories.append(_elem142)
5944 mandeep.dh 11725
          iprot.readListEnd()
11726
        else:
11727
          iprot.skip(ftype)
11728
      else:
11729
        iprot.skip(ftype)
11730
      iprot.readFieldEnd()
11731
    iprot.readStructEnd()
11732
 
11733
  def write(self, oprot):
11734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11736
      return
11737
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
11738
    if self.beginIndex is not None:
11739
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11740
      oprot.writeI64(self.beginIndex)
11741
      oprot.writeFieldEnd()
11742
    if self.totalItems is not None:
11743
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11744
      oprot.writeI64(self.totalItems)
11745
      oprot.writeFieldEnd()
11746
    if self.brand is not None:
11747
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11748
      oprot.writeString(self.brand)
11749
      oprot.writeFieldEnd()
11750
    if self.categories is not None:
11751
      oprot.writeFieldBegin('categories', TType.LIST, 4)
11752
      oprot.writeListBegin(TType.I64, len(self.categories))
8590 kshitij.so 11753
      for iter143 in self.categories:
11754
        oprot.writeI64(iter143)
5944 mandeep.dh 11755
      oprot.writeListEnd()
11756
      oprot.writeFieldEnd()
11757
    oprot.writeFieldStop()
11758
    oprot.writeStructEnd()
11759
 
11760
  def validate(self):
11761
    return
11762
 
11763
 
11764
  def __repr__(self):
11765
    L = ['%s=%r' % (key, value)
11766
      for key, value in self.__dict__.iteritems()]
11767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11768
 
11769
  def __eq__(self, other):
11770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11771
 
11772
  def __ne__(self, other):
11773
    return not (self == other)
11774
 
11775
class getLatestArrivalsCatalogIds_result:
11776
  """
11777
  Attributes:
11778
   - success
11779
   - cex
11780
  """
11781
 
11782
  thrift_spec = (
11783
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11784
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11785
  )
11786
 
11787
  def __init__(self, success=None, cex=None,):
11788
    self.success = success
11789
    self.cex = cex
11790
 
11791
  def read(self, iprot):
11792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11794
      return
11795
    iprot.readStructBegin()
11796
    while True:
11797
      (fname, ftype, fid) = iprot.readFieldBegin()
11798
      if ftype == TType.STOP:
11799
        break
11800
      if fid == 0:
11801
        if ftype == TType.LIST:
11802
          self.success = []
8590 kshitij.so 11803
          (_etype147, _size144) = iprot.readListBegin()
11804
          for _i148 in xrange(_size144):
11805
            _elem149 = iprot.readI64();
11806
            self.success.append(_elem149)
5944 mandeep.dh 11807
          iprot.readListEnd()
11808
        else:
11809
          iprot.skip(ftype)
11810
      elif fid == 1:
11811
        if ftype == TType.STRUCT:
11812
          self.cex = CatalogServiceException()
11813
          self.cex.read(iprot)
11814
        else:
11815
          iprot.skip(ftype)
11816
      else:
11817
        iprot.skip(ftype)
11818
      iprot.readFieldEnd()
11819
    iprot.readStructEnd()
11820
 
11821
  def write(self, oprot):
11822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11824
      return
11825
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
11826
    if self.success is not None:
11827
      oprot.writeFieldBegin('success', TType.LIST, 0)
11828
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11829
      for iter150 in self.success:
11830
        oprot.writeI64(iter150)
5944 mandeep.dh 11831
      oprot.writeListEnd()
11832
      oprot.writeFieldEnd()
11833
    if self.cex is not None:
11834
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11835
      self.cex.write(oprot)
11836
      oprot.writeFieldEnd()
11837
    oprot.writeFieldStop()
11838
    oprot.writeStructEnd()
11839
 
11840
  def validate(self):
11841
    return
11842
 
11843
 
11844
  def __repr__(self):
11845
    L = ['%s=%r' % (key, value)
11846
      for key, value in self.__dict__.iteritems()]
11847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11848
 
11849
  def __eq__(self, other):
11850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11851
 
11852
  def __ne__(self, other):
11853
    return not (self == other)
11854
 
11855
class getLatestArrivalsCount_args:
11856
 
11857
  thrift_spec = (
11858
  )
11859
 
11860
  def read(self, iprot):
11861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11863
      return
11864
    iprot.readStructBegin()
11865
    while True:
11866
      (fname, ftype, fid) = iprot.readFieldBegin()
11867
      if ftype == TType.STOP:
11868
        break
11869
      else:
11870
        iprot.skip(ftype)
11871
      iprot.readFieldEnd()
11872
    iprot.readStructEnd()
11873
 
11874
  def write(self, oprot):
11875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11877
      return
11878
    oprot.writeStructBegin('getLatestArrivalsCount_args')
11879
    oprot.writeFieldStop()
11880
    oprot.writeStructEnd()
11881
 
11882
  def validate(self):
11883
    return
11884
 
11885
 
11886
  def __repr__(self):
11887
    L = ['%s=%r' % (key, value)
11888
      for key, value in self.__dict__.iteritems()]
11889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11890
 
11891
  def __eq__(self, other):
11892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11893
 
11894
  def __ne__(self, other):
11895
    return not (self == other)
11896
 
11897
class getLatestArrivalsCount_result:
11898
  """
11899
  Attributes:
11900
   - success
11901
   - cex
11902
  """
11903
 
11904
  thrift_spec = (
11905
    (0, TType.I64, 'success', None, None, ), # 0
11906
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11907
  )
11908
 
11909
  def __init__(self, success=None, cex=None,):
11910
    self.success = success
11911
    self.cex = cex
11912
 
11913
  def read(self, iprot):
11914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11916
      return
11917
    iprot.readStructBegin()
11918
    while True:
11919
      (fname, ftype, fid) = iprot.readFieldBegin()
11920
      if ftype == TType.STOP:
11921
        break
11922
      if fid == 0:
11923
        if ftype == TType.I64:
11924
          self.success = iprot.readI64();
11925
        else:
11926
          iprot.skip(ftype)
11927
      elif fid == 1:
11928
        if ftype == TType.STRUCT:
11929
          self.cex = CatalogServiceException()
11930
          self.cex.read(iprot)
11931
        else:
11932
          iprot.skip(ftype)
11933
      else:
11934
        iprot.skip(ftype)
11935
      iprot.readFieldEnd()
11936
    iprot.readStructEnd()
11937
 
11938
  def write(self, oprot):
11939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11941
      return
11942
    oprot.writeStructBegin('getLatestArrivalsCount_result')
11943
    if self.success is not None:
11944
      oprot.writeFieldBegin('success', TType.I64, 0)
11945
      oprot.writeI64(self.success)
11946
      oprot.writeFieldEnd()
11947
    if self.cex is not None:
11948
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11949
      self.cex.write(oprot)
11950
      oprot.writeFieldEnd()
11951
    oprot.writeFieldStop()
11952
    oprot.writeStructEnd()
11953
 
11954
  def validate(self):
11955
    return
11956
 
11957
 
11958
  def __repr__(self):
11959
    L = ['%s=%r' % (key, value)
11960
      for key, value in self.__dict__.iteritems()]
11961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11962
 
11963
  def __eq__(self, other):
11964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11965
 
11966
  def __ne__(self, other):
11967
    return not (self == other)
11968
 
11969
class generateNewEntityID_args:
11970
 
11971
  thrift_spec = (
11972
  )
11973
 
11974
  def read(self, iprot):
11975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11977
      return
11978
    iprot.readStructBegin()
11979
    while True:
11980
      (fname, ftype, fid) = iprot.readFieldBegin()
11981
      if ftype == TType.STOP:
11982
        break
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('generateNewEntityID_args')
11993
    oprot.writeFieldStop()
11994
    oprot.writeStructEnd()
11995
 
11996
  def validate(self):
11997
    return
11998
 
11999
 
12000
  def __repr__(self):
12001
    L = ['%s=%r' % (key, value)
12002
      for key, value in self.__dict__.iteritems()]
12003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12004
 
12005
  def __eq__(self, other):
12006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12007
 
12008
  def __ne__(self, other):
12009
    return not (self == other)
12010
 
12011
class generateNewEntityID_result:
12012
  """
12013
  Attributes:
12014
   - success
12015
  """
12016
 
12017
  thrift_spec = (
12018
    (0, TType.I64, 'success', None, None, ), # 0
12019
  )
12020
 
12021
  def __init__(self, success=None,):
12022
    self.success = success
12023
 
12024
  def read(self, iprot):
12025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12027
      return
12028
    iprot.readStructBegin()
12029
    while True:
12030
      (fname, ftype, fid) = iprot.readFieldBegin()
12031
      if ftype == TType.STOP:
12032
        break
12033
      if fid == 0:
12034
        if ftype == TType.I64:
12035
          self.success = iprot.readI64();
12036
        else:
12037
          iprot.skip(ftype)
12038
      else:
12039
        iprot.skip(ftype)
12040
      iprot.readFieldEnd()
12041
    iprot.readStructEnd()
12042
 
12043
  def write(self, oprot):
12044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12046
      return
12047
    oprot.writeStructBegin('generateNewEntityID_result')
12048
    if self.success is not None:
12049
      oprot.writeFieldBegin('success', TType.I64, 0)
12050
      oprot.writeI64(self.success)
12051
      oprot.writeFieldEnd()
12052
    oprot.writeFieldStop()
12053
    oprot.writeStructEnd()
12054
 
12055
  def validate(self):
12056
    return
12057
 
12058
 
12059
  def __repr__(self):
12060
    L = ['%s=%r' % (key, value)
12061
      for key, value in self.__dict__.iteritems()]
12062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12063
 
12064
  def __eq__(self, other):
12065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12066
 
12067
  def __ne__(self, other):
12068
    return not (self == other)
12069
 
12070
class addCategory_args:
12071
  """
12072
  Attributes:
12073
   - category
12074
  """
12075
 
12076
  thrift_spec = (
12077
    None, # 0
12078
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
12079
  )
12080
 
12081
  def __init__(self, category=None,):
12082
    self.category = category
12083
 
12084
  def read(self, iprot):
12085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12087
      return
12088
    iprot.readStructBegin()
12089
    while True:
12090
      (fname, ftype, fid) = iprot.readFieldBegin()
12091
      if ftype == TType.STOP:
12092
        break
12093
      if fid == 1:
12094
        if ftype == TType.STRUCT:
12095
          self.category = Category()
12096
          self.category.read(iprot)
12097
        else:
12098
          iprot.skip(ftype)
12099
      else:
12100
        iprot.skip(ftype)
12101
      iprot.readFieldEnd()
12102
    iprot.readStructEnd()
12103
 
12104
  def write(self, oprot):
12105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12107
      return
12108
    oprot.writeStructBegin('addCategory_args')
12109
    if self.category is not None:
12110
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
12111
      self.category.write(oprot)
12112
      oprot.writeFieldEnd()
12113
    oprot.writeFieldStop()
12114
    oprot.writeStructEnd()
12115
 
12116
  def validate(self):
12117
    return
12118
 
12119
 
12120
  def __repr__(self):
12121
    L = ['%s=%r' % (key, value)
12122
      for key, value in self.__dict__.iteritems()]
12123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12124
 
12125
  def __eq__(self, other):
12126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12127
 
12128
  def __ne__(self, other):
12129
    return not (self == other)
12130
 
12131
class addCategory_result:
12132
  """
12133
  Attributes:
12134
   - success
12135
  """
12136
 
12137
  thrift_spec = (
12138
    (0, TType.BOOL, 'success', None, None, ), # 0
12139
  )
12140
 
12141
  def __init__(self, success=None,):
12142
    self.success = success
12143
 
12144
  def read(self, iprot):
12145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12147
      return
12148
    iprot.readStructBegin()
12149
    while True:
12150
      (fname, ftype, fid) = iprot.readFieldBegin()
12151
      if ftype == TType.STOP:
12152
        break
12153
      if fid == 0:
12154
        if ftype == TType.BOOL:
12155
          self.success = iprot.readBool();
12156
        else:
12157
          iprot.skip(ftype)
12158
      else:
12159
        iprot.skip(ftype)
12160
      iprot.readFieldEnd()
12161
    iprot.readStructEnd()
12162
 
12163
  def write(self, oprot):
12164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12166
      return
12167
    oprot.writeStructBegin('addCategory_result')
12168
    if self.success is not None:
12169
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12170
      oprot.writeBool(self.success)
12171
      oprot.writeFieldEnd()
12172
    oprot.writeFieldStop()
12173
    oprot.writeStructEnd()
12174
 
12175
  def validate(self):
12176
    return
12177
 
12178
 
12179
  def __repr__(self):
12180
    L = ['%s=%r' % (key, value)
12181
      for key, value in self.__dict__.iteritems()]
12182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12183
 
12184
  def __eq__(self, other):
12185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12186
 
12187
  def __ne__(self, other):
12188
    return not (self == other)
12189
 
12190
class getCategory_args:
12191
  """
12192
  Attributes:
12193
   - id
12194
  """
12195
 
12196
  thrift_spec = (
12197
    None, # 0
12198
    (1, TType.I64, 'id', None, None, ), # 1
12199
  )
12200
 
12201
  def __init__(self, id=None,):
12202
    self.id = id
12203
 
12204
  def read(self, iprot):
12205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12207
      return
12208
    iprot.readStructBegin()
12209
    while True:
12210
      (fname, ftype, fid) = iprot.readFieldBegin()
12211
      if ftype == TType.STOP:
12212
        break
12213
      if fid == 1:
12214
        if ftype == TType.I64:
12215
          self.id = iprot.readI64();
12216
        else:
12217
          iprot.skip(ftype)
12218
      else:
12219
        iprot.skip(ftype)
12220
      iprot.readFieldEnd()
12221
    iprot.readStructEnd()
12222
 
12223
  def write(self, oprot):
12224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12226
      return
12227
    oprot.writeStructBegin('getCategory_args')
12228
    if self.id is not None:
12229
      oprot.writeFieldBegin('id', TType.I64, 1)
12230
      oprot.writeI64(self.id)
12231
      oprot.writeFieldEnd()
12232
    oprot.writeFieldStop()
12233
    oprot.writeStructEnd()
12234
 
12235
  def validate(self):
12236
    return
12237
 
12238
 
12239
  def __repr__(self):
12240
    L = ['%s=%r' % (key, value)
12241
      for key, value in self.__dict__.iteritems()]
12242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12243
 
12244
  def __eq__(self, other):
12245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12246
 
12247
  def __ne__(self, other):
12248
    return not (self == other)
12249
 
12250
class getCategory_result:
12251
  """
12252
  Attributes:
12253
   - success
12254
  """
12255
 
12256
  thrift_spec = (
12257
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
12258
  )
12259
 
12260
  def __init__(self, success=None,):
12261
    self.success = success
12262
 
12263
  def read(self, iprot):
12264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12266
      return
12267
    iprot.readStructBegin()
12268
    while True:
12269
      (fname, ftype, fid) = iprot.readFieldBegin()
12270
      if ftype == TType.STOP:
12271
        break
12272
      if fid == 0:
12273
        if ftype == TType.STRUCT:
12274
          self.success = Category()
12275
          self.success.read(iprot)
12276
        else:
12277
          iprot.skip(ftype)
12278
      else:
12279
        iprot.skip(ftype)
12280
      iprot.readFieldEnd()
12281
    iprot.readStructEnd()
12282
 
12283
  def write(self, oprot):
12284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12286
      return
12287
    oprot.writeStructBegin('getCategory_result')
12288
    if self.success is not None:
12289
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12290
      self.success.write(oprot)
12291
      oprot.writeFieldEnd()
12292
    oprot.writeFieldStop()
12293
    oprot.writeStructEnd()
12294
 
12295
  def validate(self):
12296
    return
12297
 
12298
 
12299
  def __repr__(self):
12300
    L = ['%s=%r' % (key, value)
12301
      for key, value in self.__dict__.iteritems()]
12302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12303
 
12304
  def __eq__(self, other):
12305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12306
 
12307
  def __ne__(self, other):
12308
    return not (self == other)
12309
 
12310
class getAllCategories_args:
12311
 
12312
  thrift_spec = (
12313
  )
12314
 
12315
  def read(self, iprot):
12316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12318
      return
12319
    iprot.readStructBegin()
12320
    while True:
12321
      (fname, ftype, fid) = iprot.readFieldBegin()
12322
      if ftype == TType.STOP:
12323
        break
12324
      else:
12325
        iprot.skip(ftype)
12326
      iprot.readFieldEnd()
12327
    iprot.readStructEnd()
12328
 
12329
  def write(self, oprot):
12330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12332
      return
12333
    oprot.writeStructBegin('getAllCategories_args')
12334
    oprot.writeFieldStop()
12335
    oprot.writeStructEnd()
12336
 
12337
  def validate(self):
12338
    return
12339
 
12340
 
12341
  def __repr__(self):
12342
    L = ['%s=%r' % (key, value)
12343
      for key, value in self.__dict__.iteritems()]
12344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12345
 
12346
  def __eq__(self, other):
12347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12348
 
12349
  def __ne__(self, other):
12350
    return not (self == other)
12351
 
12352
class getAllCategories_result:
12353
  """
12354
  Attributes:
12355
   - success
12356
  """
12357
 
12358
  thrift_spec = (
12359
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
12360
  )
12361
 
12362
  def __init__(self, success=None,):
12363
    self.success = success
12364
 
12365
  def read(self, iprot):
12366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12368
      return
12369
    iprot.readStructBegin()
12370
    while True:
12371
      (fname, ftype, fid) = iprot.readFieldBegin()
12372
      if ftype == TType.STOP:
12373
        break
12374
      if fid == 0:
12375
        if ftype == TType.LIST:
12376
          self.success = []
8590 kshitij.so 12377
          (_etype154, _size151) = iprot.readListBegin()
12378
          for _i155 in xrange(_size151):
12379
            _elem156 = Category()
12380
            _elem156.read(iprot)
12381
            self.success.append(_elem156)
5944 mandeep.dh 12382
          iprot.readListEnd()
12383
        else:
12384
          iprot.skip(ftype)
12385
      else:
12386
        iprot.skip(ftype)
12387
      iprot.readFieldEnd()
12388
    iprot.readStructEnd()
12389
 
12390
  def write(self, oprot):
12391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12393
      return
12394
    oprot.writeStructBegin('getAllCategories_result')
12395
    if self.success is not None:
12396
      oprot.writeFieldBegin('success', TType.LIST, 0)
12397
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12398
      for iter157 in self.success:
12399
        iter157.write(oprot)
5944 mandeep.dh 12400
      oprot.writeListEnd()
12401
      oprot.writeFieldEnd()
12402
    oprot.writeFieldStop()
12403
    oprot.writeStructEnd()
12404
 
12405
  def validate(self):
12406
    return
12407
 
12408
 
12409
  def __repr__(self):
12410
    L = ['%s=%r' % (key, value)
12411
      for key, value in self.__dict__.iteritems()]
12412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12413
 
12414
  def __eq__(self, other):
12415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12416
 
12417
  def __ne__(self, other):
12418
    return not (self == other)
12419
 
12420
class getAllSimilarItems_args:
12421
  """
12422
  Attributes:
12423
   - itemId
12424
  """
12425
 
12426
  thrift_spec = (
12427
    None, # 0
12428
    (1, TType.I64, 'itemId', None, None, ), # 1
12429
  )
12430
 
12431
  def __init__(self, itemId=None,):
12432
    self.itemId = itemId
12433
 
12434
  def read(self, iprot):
12435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12437
      return
12438
    iprot.readStructBegin()
12439
    while True:
12440
      (fname, ftype, fid) = iprot.readFieldBegin()
12441
      if ftype == TType.STOP:
12442
        break
12443
      if fid == 1:
12444
        if ftype == TType.I64:
12445
          self.itemId = iprot.readI64();
12446
        else:
12447
          iprot.skip(ftype)
12448
      else:
12449
        iprot.skip(ftype)
12450
      iprot.readFieldEnd()
12451
    iprot.readStructEnd()
12452
 
12453
  def write(self, oprot):
12454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12456
      return
12457
    oprot.writeStructBegin('getAllSimilarItems_args')
12458
    if self.itemId is not None:
12459
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12460
      oprot.writeI64(self.itemId)
12461
      oprot.writeFieldEnd()
12462
    oprot.writeFieldStop()
12463
    oprot.writeStructEnd()
12464
 
12465
  def validate(self):
12466
    return
12467
 
12468
 
12469
  def __repr__(self):
12470
    L = ['%s=%r' % (key, value)
12471
      for key, value in self.__dict__.iteritems()]
12472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12473
 
12474
  def __eq__(self, other):
12475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12476
 
12477
  def __ne__(self, other):
12478
    return not (self == other)
12479
 
12480
class getAllSimilarItems_result:
12481
  """
12482
  Attributes:
12483
   - success
12484
  """
12485
 
12486
  thrift_spec = (
12487
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12488
  )
12489
 
12490
  def __init__(self, success=None,):
12491
    self.success = success
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.LIST:
12504
          self.success = []
8590 kshitij.so 12505
          (_etype161, _size158) = iprot.readListBegin()
12506
          for _i162 in xrange(_size158):
12507
            _elem163 = Item()
12508
            _elem163.read(iprot)
12509
            self.success.append(_elem163)
5944 mandeep.dh 12510
          iprot.readListEnd()
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('getAllSimilarItems_result')
12523
    if self.success is not None:
12524
      oprot.writeFieldBegin('success', TType.LIST, 0)
12525
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12526
      for iter164 in self.success:
12527
        iter164.write(oprot)
5944 mandeep.dh 12528
      oprot.writeListEnd()
12529
      oprot.writeFieldEnd()
12530
    oprot.writeFieldStop()
12531
    oprot.writeStructEnd()
12532
 
12533
  def validate(self):
12534
    return
12535
 
12536
 
12537
  def __repr__(self):
12538
    L = ['%s=%r' % (key, value)
12539
      for key, value in self.__dict__.iteritems()]
12540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12541
 
12542
  def __eq__(self, other):
12543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12544
 
12545
  def __ne__(self, other):
12546
    return not (self == other)
12547
 
12548
class addSimilarItem_args:
12549
  """
12550
  Attributes:
12551
   - itemId
12552
   - catalogItemId
12553
  """
12554
 
12555
  thrift_spec = (
12556
    None, # 0
12557
    (1, TType.I64, 'itemId', None, None, ), # 1
12558
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
12559
  )
12560
 
12561
  def __init__(self, itemId=None, catalogItemId=None,):
12562
    self.itemId = itemId
12563
    self.catalogItemId = catalogItemId
12564
 
12565
  def read(self, iprot):
12566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12568
      return
12569
    iprot.readStructBegin()
12570
    while True:
12571
      (fname, ftype, fid) = iprot.readFieldBegin()
12572
      if ftype == TType.STOP:
12573
        break
12574
      if fid == 1:
12575
        if ftype == TType.I64:
12576
          self.itemId = iprot.readI64();
12577
        else:
12578
          iprot.skip(ftype)
12579
      elif fid == 2:
12580
        if ftype == TType.I64:
12581
          self.catalogItemId = iprot.readI64();
12582
        else:
12583
          iprot.skip(ftype)
12584
      else:
12585
        iprot.skip(ftype)
12586
      iprot.readFieldEnd()
12587
    iprot.readStructEnd()
12588
 
12589
  def write(self, oprot):
12590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12592
      return
12593
    oprot.writeStructBegin('addSimilarItem_args')
12594
    if self.itemId is not None:
12595
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12596
      oprot.writeI64(self.itemId)
12597
      oprot.writeFieldEnd()
12598
    if self.catalogItemId is not None:
12599
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
12600
      oprot.writeI64(self.catalogItemId)
12601
      oprot.writeFieldEnd()
12602
    oprot.writeFieldStop()
12603
    oprot.writeStructEnd()
12604
 
12605
  def validate(self):
12606
    return
12607
 
12608
 
12609
  def __repr__(self):
12610
    L = ['%s=%r' % (key, value)
12611
      for key, value in self.__dict__.iteritems()]
12612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12613
 
12614
  def __eq__(self, other):
12615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12616
 
12617
  def __ne__(self, other):
12618
    return not (self == other)
12619
 
12620
class addSimilarItem_result:
12621
  """
12622
  Attributes:
12623
   - success
12624
   - cex
12625
  """
12626
 
12627
  thrift_spec = (
12628
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12629
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12630
  )
12631
 
12632
  def __init__(self, success=None, cex=None,):
12633
    self.success = success
12634
    self.cex = cex
12635
 
12636
  def read(self, iprot):
12637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12639
      return
12640
    iprot.readStructBegin()
12641
    while True:
12642
      (fname, ftype, fid) = iprot.readFieldBegin()
12643
      if ftype == TType.STOP:
12644
        break
12645
      if fid == 0:
12646
        if ftype == TType.STRUCT:
12647
          self.success = Item()
12648
          self.success.read(iprot)
12649
        else:
12650
          iprot.skip(ftype)
12651
      elif fid == 1:
12652
        if ftype == TType.STRUCT:
12653
          self.cex = CatalogServiceException()
12654
          self.cex.read(iprot)
12655
        else:
12656
          iprot.skip(ftype)
12657
      else:
12658
        iprot.skip(ftype)
12659
      iprot.readFieldEnd()
12660
    iprot.readStructEnd()
12661
 
12662
  def write(self, oprot):
12663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12665
      return
12666
    oprot.writeStructBegin('addSimilarItem_result')
12667
    if self.success is not None:
12668
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12669
      self.success.write(oprot)
12670
      oprot.writeFieldEnd()
12671
    if self.cex is not None:
12672
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12673
      self.cex.write(oprot)
12674
      oprot.writeFieldEnd()
12675
    oprot.writeFieldStop()
12676
    oprot.writeStructEnd()
12677
 
12678
  def validate(self):
12679
    return
12680
 
12681
 
12682
  def __repr__(self):
12683
    L = ['%s=%r' % (key, value)
12684
      for key, value in self.__dict__.iteritems()]
12685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12686
 
12687
  def __eq__(self, other):
12688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12689
 
12690
  def __ne__(self, other):
12691
    return not (self == other)
12692
 
6512 kshitij.so 12693
class addTag_args:
12694
  """
12695
  Attributes:
12696
   - displayName
12697
   - itemId
12698
  """
12699
 
12700
  thrift_spec = (
12701
    None, # 0
12702
    (1, TType.STRING, 'displayName', None, None, ), # 1
12703
    (2, TType.I64, 'itemId', None, None, ), # 2
12704
  )
12705
 
12706
  def __init__(self, displayName=None, itemId=None,):
12707
    self.displayName = displayName
12708
    self.itemId = itemId
12709
 
12710
  def read(self, iprot):
12711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12713
      return
12714
    iprot.readStructBegin()
12715
    while True:
12716
      (fname, ftype, fid) = iprot.readFieldBegin()
12717
      if ftype == TType.STOP:
12718
        break
12719
      if fid == 1:
12720
        if ftype == TType.STRING:
12721
          self.displayName = iprot.readString();
12722
        else:
12723
          iprot.skip(ftype)
12724
      elif fid == 2:
12725
        if ftype == TType.I64:
12726
          self.itemId = iprot.readI64();
12727
        else:
12728
          iprot.skip(ftype)
12729
      else:
12730
        iprot.skip(ftype)
12731
      iprot.readFieldEnd()
12732
    iprot.readStructEnd()
12733
 
12734
  def write(self, oprot):
12735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12737
      return
12738
    oprot.writeStructBegin('addTag_args')
12739
    if self.displayName is not None:
12740
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12741
      oprot.writeString(self.displayName)
12742
      oprot.writeFieldEnd()
12743
    if self.itemId is not None:
12744
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12745
      oprot.writeI64(self.itemId)
12746
      oprot.writeFieldEnd()
12747
    oprot.writeFieldStop()
12748
    oprot.writeStructEnd()
12749
 
12750
  def validate(self):
12751
    return
12752
 
12753
 
12754
  def __repr__(self):
12755
    L = ['%s=%r' % (key, value)
12756
      for key, value in self.__dict__.iteritems()]
12757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12758
 
12759
  def __eq__(self, other):
12760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12761
 
12762
  def __ne__(self, other):
12763
    return not (self == other)
12764
 
12765
class addTag_result:
12766
  """
12767
  Attributes:
12768
   - success
12769
  """
12770
 
12771
  thrift_spec = (
12772
    (0, TType.BOOL, 'success', None, None, ), # 0
12773
  )
12774
 
12775
  def __init__(self, success=None,):
12776
    self.success = success
12777
 
12778
  def read(self, iprot):
12779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12781
      return
12782
    iprot.readStructBegin()
12783
    while True:
12784
      (fname, ftype, fid) = iprot.readFieldBegin()
12785
      if ftype == TType.STOP:
12786
        break
12787
      if fid == 0:
12788
        if ftype == TType.BOOL:
12789
          self.success = iprot.readBool();
12790
        else:
12791
          iprot.skip(ftype)
12792
      else:
12793
        iprot.skip(ftype)
12794
      iprot.readFieldEnd()
12795
    iprot.readStructEnd()
12796
 
12797
  def write(self, oprot):
12798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12800
      return
12801
    oprot.writeStructBegin('addTag_result')
12802
    if self.success is not None:
12803
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12804
      oprot.writeBool(self.success)
12805
      oprot.writeFieldEnd()
12806
    oprot.writeFieldStop()
12807
    oprot.writeStructEnd()
12808
 
12809
  def validate(self):
12810
    return
12811
 
12812
 
12813
  def __repr__(self):
12814
    L = ['%s=%r' % (key, value)
12815
      for key, value in self.__dict__.iteritems()]
12816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12817
 
12818
  def __eq__(self, other):
12819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12820
 
12821
  def __ne__(self, other):
12822
    return not (self == other)
12823
 
12824
class deleteEntityTag_args:
12825
  """
12826
  Attributes:
12827
   - displayName
12828
   - itemId
12829
  """
12830
 
12831
  thrift_spec = (
12832
    None, # 0
12833
    (1, TType.STRING, 'displayName', None, None, ), # 1
12834
    (2, TType.I64, 'itemId', None, None, ), # 2
12835
  )
12836
 
12837
  def __init__(self, displayName=None, itemId=None,):
12838
    self.displayName = displayName
12839
    self.itemId = itemId
12840
 
12841
  def read(self, iprot):
12842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12844
      return
12845
    iprot.readStructBegin()
12846
    while True:
12847
      (fname, ftype, fid) = iprot.readFieldBegin()
12848
      if ftype == TType.STOP:
12849
        break
12850
      if fid == 1:
12851
        if ftype == TType.STRING:
12852
          self.displayName = iprot.readString();
12853
        else:
12854
          iprot.skip(ftype)
12855
      elif fid == 2:
12856
        if ftype == TType.I64:
12857
          self.itemId = iprot.readI64();
12858
        else:
12859
          iprot.skip(ftype)
12860
      else:
12861
        iprot.skip(ftype)
12862
      iprot.readFieldEnd()
12863
    iprot.readStructEnd()
12864
 
12865
  def write(self, oprot):
12866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12868
      return
12869
    oprot.writeStructBegin('deleteEntityTag_args')
12870
    if self.displayName is not None:
12871
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12872
      oprot.writeString(self.displayName)
12873
      oprot.writeFieldEnd()
12874
    if self.itemId is not None:
12875
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12876
      oprot.writeI64(self.itemId)
12877
      oprot.writeFieldEnd()
12878
    oprot.writeFieldStop()
12879
    oprot.writeStructEnd()
12880
 
12881
  def validate(self):
12882
    return
12883
 
12884
 
12885
  def __repr__(self):
12886
    L = ['%s=%r' % (key, value)
12887
      for key, value in self.__dict__.iteritems()]
12888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12889
 
12890
  def __eq__(self, other):
12891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12892
 
12893
  def __ne__(self, other):
12894
    return not (self == other)
12895
 
12896
class deleteEntityTag_result:
12897
  """
12898
  Attributes:
12899
   - success
12900
  """
12901
 
12902
  thrift_spec = (
12903
    (0, TType.BOOL, 'success', None, None, ), # 0
12904
  )
12905
 
12906
  def __init__(self, success=None,):
12907
    self.success = success
12908
 
12909
  def read(self, iprot):
12910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12912
      return
12913
    iprot.readStructBegin()
12914
    while True:
12915
      (fname, ftype, fid) = iprot.readFieldBegin()
12916
      if ftype == TType.STOP:
12917
        break
12918
      if fid == 0:
12919
        if ftype == TType.BOOL:
12920
          self.success = iprot.readBool();
12921
        else:
12922
          iprot.skip(ftype)
12923
      else:
12924
        iprot.skip(ftype)
12925
      iprot.readFieldEnd()
12926
    iprot.readStructEnd()
12927
 
12928
  def write(self, oprot):
12929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12931
      return
12932
    oprot.writeStructBegin('deleteEntityTag_result')
12933
    if self.success is not None:
12934
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12935
      oprot.writeBool(self.success)
12936
      oprot.writeFieldEnd()
12937
    oprot.writeFieldStop()
12938
    oprot.writeStructEnd()
12939
 
12940
  def validate(self):
12941
    return
12942
 
12943
 
12944
  def __repr__(self):
12945
    L = ['%s=%r' % (key, value)
12946
      for key, value in self.__dict__.iteritems()]
12947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12948
 
12949
  def __eq__(self, other):
12950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12951
 
12952
  def __ne__(self, other):
12953
    return not (self == other)
12954
 
12955
class deleteTag_args:
12956
  """
12957
  Attributes:
12958
   - displayName
12959
  """
12960
 
12961
  thrift_spec = (
12962
    None, # 0
12963
    (1, TType.STRING, 'displayName', None, None, ), # 1
12964
  )
12965
 
12966
  def __init__(self, displayName=None,):
12967
    self.displayName = displayName
12968
 
12969
  def read(self, iprot):
12970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12972
      return
12973
    iprot.readStructBegin()
12974
    while True:
12975
      (fname, ftype, fid) = iprot.readFieldBegin()
12976
      if ftype == TType.STOP:
12977
        break
12978
      if fid == 1:
12979
        if ftype == TType.STRING:
12980
          self.displayName = iprot.readString();
12981
        else:
12982
          iprot.skip(ftype)
12983
      else:
12984
        iprot.skip(ftype)
12985
      iprot.readFieldEnd()
12986
    iprot.readStructEnd()
12987
 
12988
  def write(self, oprot):
12989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12991
      return
12992
    oprot.writeStructBegin('deleteTag_args')
12993
    if self.displayName is not None:
12994
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12995
      oprot.writeString(self.displayName)
12996
      oprot.writeFieldEnd()
12997
    oprot.writeFieldStop()
12998
    oprot.writeStructEnd()
12999
 
13000
  def validate(self):
13001
    return
13002
 
13003
 
13004
  def __repr__(self):
13005
    L = ['%s=%r' % (key, value)
13006
      for key, value in self.__dict__.iteritems()]
13007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13008
 
13009
  def __eq__(self, other):
13010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13011
 
13012
  def __ne__(self, other):
13013
    return not (self == other)
13014
 
13015
class deleteTag_result:
13016
  """
13017
  Attributes:
13018
   - success
13019
  """
13020
 
13021
  thrift_spec = (
13022
    (0, TType.BOOL, 'success', None, None, ), # 0
13023
  )
13024
 
13025
  def __init__(self, success=None,):
13026
    self.success = success
13027
 
13028
  def read(self, iprot):
13029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13031
      return
13032
    iprot.readStructBegin()
13033
    while True:
13034
      (fname, ftype, fid) = iprot.readFieldBegin()
13035
      if ftype == TType.STOP:
13036
        break
13037
      if fid == 0:
13038
        if ftype == TType.BOOL:
13039
          self.success = iprot.readBool();
13040
        else:
13041
          iprot.skip(ftype)
13042
      else:
13043
        iprot.skip(ftype)
13044
      iprot.readFieldEnd()
13045
    iprot.readStructEnd()
13046
 
13047
  def write(self, oprot):
13048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13050
      return
13051
    oprot.writeStructBegin('deleteTag_result')
13052
    if self.success is not None:
13053
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13054
      oprot.writeBool(self.success)
13055
      oprot.writeFieldEnd()
13056
    oprot.writeFieldStop()
13057
    oprot.writeStructEnd()
13058
 
13059
  def validate(self):
13060
    return
13061
 
13062
 
13063
  def __repr__(self):
13064
    L = ['%s=%r' % (key, value)
13065
      for key, value in self.__dict__.iteritems()]
13066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13067
 
13068
  def __eq__(self, other):
13069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13070
 
13071
  def __ne__(self, other):
13072
    return not (self == other)
13073
 
13074
class getAllTags_args:
13075
 
13076
  thrift_spec = (
13077
  )
13078
 
13079
  def read(self, iprot):
13080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13082
      return
13083
    iprot.readStructBegin()
13084
    while True:
13085
      (fname, ftype, fid) = iprot.readFieldBegin()
13086
      if ftype == TType.STOP:
13087
        break
13088
      else:
13089
        iprot.skip(ftype)
13090
      iprot.readFieldEnd()
13091
    iprot.readStructEnd()
13092
 
13093
  def write(self, oprot):
13094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13096
      return
13097
    oprot.writeStructBegin('getAllTags_args')
13098
    oprot.writeFieldStop()
13099
    oprot.writeStructEnd()
13100
 
13101
  def validate(self):
13102
    return
13103
 
13104
 
13105
  def __repr__(self):
13106
    L = ['%s=%r' % (key, value)
13107
      for key, value in self.__dict__.iteritems()]
13108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13109
 
13110
  def __eq__(self, other):
13111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13112
 
13113
  def __ne__(self, other):
13114
    return not (self == other)
13115
 
13116
class getAllTags_result:
13117
  """
13118
  Attributes:
13119
   - success
13120
  """
13121
 
13122
  thrift_spec = (
13123
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13124
  )
13125
 
13126
  def __init__(self, success=None,):
13127
    self.success = success
13128
 
13129
  def read(self, iprot):
13130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13132
      return
13133
    iprot.readStructBegin()
13134
    while True:
13135
      (fname, ftype, fid) = iprot.readFieldBegin()
13136
      if ftype == TType.STOP:
13137
        break
13138
      if fid == 0:
13139
        if ftype == TType.LIST:
13140
          self.success = []
8590 kshitij.so 13141
          (_etype168, _size165) = iprot.readListBegin()
13142
          for _i169 in xrange(_size165):
13143
            _elem170 = iprot.readString();
13144
            self.success.append(_elem170)
6512 kshitij.so 13145
          iprot.readListEnd()
13146
        else:
13147
          iprot.skip(ftype)
13148
      else:
13149
        iprot.skip(ftype)
13150
      iprot.readFieldEnd()
13151
    iprot.readStructEnd()
13152
 
13153
  def write(self, oprot):
13154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13156
      return
13157
    oprot.writeStructBegin('getAllTags_result')
13158
    if self.success is not None:
13159
      oprot.writeFieldBegin('success', TType.LIST, 0)
13160
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 13161
      for iter171 in self.success:
13162
        oprot.writeString(iter171)
6512 kshitij.so 13163
      oprot.writeListEnd()
13164
      oprot.writeFieldEnd()
13165
    oprot.writeFieldStop()
13166
    oprot.writeStructEnd()
13167
 
13168
  def validate(self):
13169
    return
13170
 
13171
 
13172
  def __repr__(self):
13173
    L = ['%s=%r' % (key, value)
13174
      for key, value in self.__dict__.iteritems()]
13175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13176
 
13177
  def __eq__(self, other):
13178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13179
 
13180
  def __ne__(self, other):
13181
    return not (self == other)
13182
 
13183
class getAllEntitiesByTagName_args:
13184
  """
13185
  Attributes:
13186
   - displayName
13187
  """
13188
 
13189
  thrift_spec = (
13190
    None, # 0
13191
    (1, TType.STRING, 'displayName', None, None, ), # 1
13192
  )
13193
 
13194
  def __init__(self, displayName=None,):
13195
    self.displayName = displayName
13196
 
13197
  def read(self, iprot):
13198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13200
      return
13201
    iprot.readStructBegin()
13202
    while True:
13203
      (fname, ftype, fid) = iprot.readFieldBegin()
13204
      if ftype == TType.STOP:
13205
        break
13206
      if fid == 1:
13207
        if ftype == TType.STRING:
13208
          self.displayName = iprot.readString();
13209
        else:
13210
          iprot.skip(ftype)
13211
      else:
13212
        iprot.skip(ftype)
13213
      iprot.readFieldEnd()
13214
    iprot.readStructEnd()
13215
 
13216
  def write(self, oprot):
13217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13219
      return
13220
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
13221
    if self.displayName is not None:
13222
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
13223
      oprot.writeString(self.displayName)
13224
      oprot.writeFieldEnd()
13225
    oprot.writeFieldStop()
13226
    oprot.writeStructEnd()
13227
 
13228
  def validate(self):
13229
    return
13230
 
13231
 
13232
  def __repr__(self):
13233
    L = ['%s=%r' % (key, value)
13234
      for key, value in self.__dict__.iteritems()]
13235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13236
 
13237
  def __eq__(self, other):
13238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13239
 
13240
  def __ne__(self, other):
13241
    return not (self == other)
13242
 
13243
class getAllEntitiesByTagName_result:
13244
  """
13245
  Attributes:
13246
   - success
13247
  """
13248
 
13249
  thrift_spec = (
13250
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13251
  )
13252
 
13253
  def __init__(self, success=None,):
13254
    self.success = success
13255
 
13256
  def read(self, iprot):
13257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13259
      return
13260
    iprot.readStructBegin()
13261
    while True:
13262
      (fname, ftype, fid) = iprot.readFieldBegin()
13263
      if ftype == TType.STOP:
13264
        break
13265
      if fid == 0:
13266
        if ftype == TType.LIST:
13267
          self.success = []
8590 kshitij.so 13268
          (_etype175, _size172) = iprot.readListBegin()
13269
          for _i176 in xrange(_size172):
13270
            _elem177 = iprot.readI64();
13271
            self.success.append(_elem177)
6512 kshitij.so 13272
          iprot.readListEnd()
13273
        else:
13274
          iprot.skip(ftype)
13275
      else:
13276
        iprot.skip(ftype)
13277
      iprot.readFieldEnd()
13278
    iprot.readStructEnd()
13279
 
13280
  def write(self, oprot):
13281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13283
      return
13284
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
13285
    if self.success is not None:
13286
      oprot.writeFieldBegin('success', TType.LIST, 0)
13287
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 13288
      for iter178 in self.success:
13289
        oprot.writeI64(iter178)
6512 kshitij.so 13290
      oprot.writeListEnd()
13291
      oprot.writeFieldEnd()
13292
    oprot.writeFieldStop()
13293
    oprot.writeStructEnd()
13294
 
13295
  def validate(self):
13296
    return
13297
 
13298
 
13299
  def __repr__(self):
13300
    L = ['%s=%r' % (key, value)
13301
      for key, value in self.__dict__.iteritems()]
13302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13303
 
13304
  def __eq__(self, other):
13305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13306
 
13307
  def __ne__(self, other):
13308
    return not (self == other)
13309
 
6845 amit.gupta 13310
class getAllEntityTags_args:
13311
 
13312
  thrift_spec = (
13313
  )
13314
 
13315
  def read(self, iprot):
13316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13318
      return
13319
    iprot.readStructBegin()
13320
    while True:
13321
      (fname, ftype, fid) = iprot.readFieldBegin()
13322
      if ftype == TType.STOP:
13323
        break
13324
      else:
13325
        iprot.skip(ftype)
13326
      iprot.readFieldEnd()
13327
    iprot.readStructEnd()
13328
 
13329
  def write(self, oprot):
13330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13332
      return
13333
    oprot.writeStructBegin('getAllEntityTags_args')
13334
    oprot.writeFieldStop()
13335
    oprot.writeStructEnd()
13336
 
13337
  def validate(self):
13338
    return
13339
 
13340
 
13341
  def __repr__(self):
13342
    L = ['%s=%r' % (key, value)
13343
      for key, value in self.__dict__.iteritems()]
13344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13345
 
13346
  def __eq__(self, other):
13347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13348
 
13349
  def __ne__(self, other):
13350
    return not (self == other)
13351
 
13352
class getAllEntityTags_result:
13353
  """
13354
  Attributes:
13355
   - success
13356
  """
13357
 
13358
  thrift_spec = (
13359
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
13360
  )
13361
 
13362
  def __init__(self, success=None,):
13363
    self.success = success
13364
 
13365
  def read(self, iprot):
13366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13368
      return
13369
    iprot.readStructBegin()
13370
    while True:
13371
      (fname, ftype, fid) = iprot.readFieldBegin()
13372
      if ftype == TType.STOP:
13373
        break
13374
      if fid == 0:
13375
        if ftype == TType.MAP:
13376
          self.success = {}
8590 kshitij.so 13377
          (_ktype180, _vtype181, _size179 ) = iprot.readMapBegin() 
13378
          for _i183 in xrange(_size179):
13379
            _key184 = iprot.readI64();
13380
            _val185 = []
13381
            (_etype189, _size186) = iprot.readListBegin()
13382
            for _i190 in xrange(_size186):
13383
              _elem191 = iprot.readString();
13384
              _val185.append(_elem191)
6845 amit.gupta 13385
            iprot.readListEnd()
8590 kshitij.so 13386
            self.success[_key184] = _val185
6845 amit.gupta 13387
          iprot.readMapEnd()
13388
        else:
13389
          iprot.skip(ftype)
13390
      else:
13391
        iprot.skip(ftype)
13392
      iprot.readFieldEnd()
13393
    iprot.readStructEnd()
13394
 
13395
  def write(self, oprot):
13396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13398
      return
13399
    oprot.writeStructBegin('getAllEntityTags_result')
13400
    if self.success is not None:
13401
      oprot.writeFieldBegin('success', TType.MAP, 0)
13402
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
8590 kshitij.so 13403
      for kiter192,viter193 in self.success.items():
13404
        oprot.writeI64(kiter192)
13405
        oprot.writeListBegin(TType.STRING, len(viter193))
13406
        for iter194 in viter193:
13407
          oprot.writeString(iter194)
6845 amit.gupta 13408
        oprot.writeListEnd()
13409
      oprot.writeMapEnd()
13410
      oprot.writeFieldEnd()
13411
    oprot.writeFieldStop()
13412
    oprot.writeStructEnd()
13413
 
13414
  def validate(self):
13415
    return
13416
 
13417
 
13418
  def __repr__(self):
13419
    L = ['%s=%r' % (key, value)
13420
      for key, value in self.__dict__.iteritems()]
13421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13422
 
13423
  def __eq__(self, other):
13424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13425
 
13426
  def __ne__(self, other):
13427
    return not (self == other)
13428
 
6850 kshitij.so 13429
class addBanner_args:
13430
  """
13431
  Attributes:
8590 kshitij.so 13432
   - bannerCongregate
6850 kshitij.so 13433
  """
13434
 
13435
  thrift_spec = (
13436
    None, # 0
8590 kshitij.so 13437
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 13438
  )
13439
 
8590 kshitij.so 13440
  def __init__(self, bannerCongregate=None,):
13441
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 13442
 
13443
  def read(self, iprot):
13444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13446
      return
13447
    iprot.readStructBegin()
13448
    while True:
13449
      (fname, ftype, fid) = iprot.readFieldBegin()
13450
      if ftype == TType.STOP:
13451
        break
13452
      if fid == 1:
8579 kshitij.so 13453
        if ftype == TType.STRUCT:
8590 kshitij.so 13454
          self.bannerCongregate = BannerCongregate()
13455
          self.bannerCongregate.read(iprot)
6850 kshitij.so 13456
        else:
13457
          iprot.skip(ftype)
8579 kshitij.so 13458
      else:
13459
        iprot.skip(ftype)
13460
      iprot.readFieldEnd()
13461
    iprot.readStructEnd()
13462
 
13463
  def write(self, oprot):
13464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13466
      return
13467
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 13468
    if self.bannerCongregate is not None:
13469
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
13470
      self.bannerCongregate.write(oprot)
8579 kshitij.so 13471
      oprot.writeFieldEnd()
13472
    oprot.writeFieldStop()
13473
    oprot.writeStructEnd()
13474
 
13475
  def validate(self):
13476
    return
13477
 
13478
 
13479
  def __repr__(self):
13480
    L = ['%s=%r' % (key, value)
13481
      for key, value in self.__dict__.iteritems()]
13482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13483
 
13484
  def __eq__(self, other):
13485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13486
 
13487
  def __ne__(self, other):
13488
    return not (self == other)
13489
 
13490
class addBanner_result:
10097 kshitij.so 13491
  """
13492
  Attributes:
13493
   - success
13494
  """
8579 kshitij.so 13495
 
13496
  thrift_spec = (
10097 kshitij.so 13497
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 13498
  )
13499
 
10097 kshitij.so 13500
  def __init__(self, success=None,):
13501
    self.success = success
13502
 
8579 kshitij.so 13503
  def read(self, iprot):
13504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13506
      return
13507
    iprot.readStructBegin()
13508
    while True:
13509
      (fname, ftype, fid) = iprot.readFieldBegin()
13510
      if ftype == TType.STOP:
13511
        break
10097 kshitij.so 13512
      if fid == 0:
13513
        if ftype == TType.BOOL:
13514
          self.success = iprot.readBool();
13515
        else:
13516
          iprot.skip(ftype)
8579 kshitij.so 13517
      else:
13518
        iprot.skip(ftype)
13519
      iprot.readFieldEnd()
13520
    iprot.readStructEnd()
13521
 
13522
  def write(self, oprot):
13523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13525
      return
13526
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 13527
    if self.success is not None:
13528
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13529
      oprot.writeBool(self.success)
13530
      oprot.writeFieldEnd()
8579 kshitij.so 13531
    oprot.writeFieldStop()
13532
    oprot.writeStructEnd()
13533
 
13534
  def validate(self):
13535
    return
13536
 
13537
 
13538
  def __repr__(self):
13539
    L = ['%s=%r' % (key, value)
13540
      for key, value in self.__dict__.iteritems()]
13541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13542
 
13543
  def __eq__(self, other):
13544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13545
 
13546
  def __ne__(self, other):
13547
    return not (self == other)
13548
 
13549
class updateBanner_args:
13550
  """
13551
  Attributes:
13552
   - banner
13553
  """
13554
 
13555
  thrift_spec = (
13556
    None, # 0
13557
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
13558
  )
13559
 
13560
  def __init__(self, banner=None,):
13561
    self.banner = banner
13562
 
13563
  def read(self, iprot):
13564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13566
      return
13567
    iprot.readStructBegin()
13568
    while True:
13569
      (fname, ftype, fid) = iprot.readFieldBegin()
13570
      if ftype == TType.STOP:
13571
        break
13572
      if fid == 1:
13573
        if ftype == TType.STRUCT:
13574
          self.banner = Banner()
13575
          self.banner.read(iprot)
6850 kshitij.so 13576
        else:
13577
          iprot.skip(ftype)
13578
      else:
13579
        iprot.skip(ftype)
13580
      iprot.readFieldEnd()
13581
    iprot.readStructEnd()
13582
 
13583
  def write(self, oprot):
13584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13586
      return
8579 kshitij.so 13587
    oprot.writeStructBegin('updateBanner_args')
13588
    if self.banner is not None:
13589
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
13590
      self.banner.write(oprot)
6850 kshitij.so 13591
      oprot.writeFieldEnd()
13592
    oprot.writeFieldStop()
13593
    oprot.writeStructEnd()
13594
 
13595
  def validate(self):
13596
    return
13597
 
13598
 
13599
  def __repr__(self):
13600
    L = ['%s=%r' % (key, value)
13601
      for key, value in self.__dict__.iteritems()]
13602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13603
 
13604
  def __eq__(self, other):
13605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13606
 
13607
  def __ne__(self, other):
13608
    return not (self == other)
13609
 
8579 kshitij.so 13610
class updateBanner_result:
6850 kshitij.so 13611
  """
13612
  Attributes:
13613
   - success
13614
  """
13615
 
13616
  thrift_spec = (
13617
    (0, TType.BOOL, 'success', None, None, ), # 0
13618
  )
13619
 
13620
  def __init__(self, success=None,):
13621
    self.success = success
13622
 
13623
  def read(self, iprot):
13624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13626
      return
13627
    iprot.readStructBegin()
13628
    while True:
13629
      (fname, ftype, fid) = iprot.readFieldBegin()
13630
      if ftype == TType.STOP:
13631
        break
13632
      if fid == 0:
13633
        if ftype == TType.BOOL:
13634
          self.success = iprot.readBool();
13635
        else:
13636
          iprot.skip(ftype)
13637
      else:
13638
        iprot.skip(ftype)
13639
      iprot.readFieldEnd()
13640
    iprot.readStructEnd()
13641
 
13642
  def write(self, oprot):
13643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13645
      return
8579 kshitij.so 13646
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 13647
    if self.success is not None:
13648
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13649
      oprot.writeBool(self.success)
13650
      oprot.writeFieldEnd()
13651
    oprot.writeFieldStop()
13652
    oprot.writeStructEnd()
13653
 
13654
  def validate(self):
13655
    return
13656
 
13657
 
13658
  def __repr__(self):
13659
    L = ['%s=%r' % (key, value)
13660
      for key, value in self.__dict__.iteritems()]
13661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13662
 
13663
  def __eq__(self, other):
13664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13665
 
13666
  def __ne__(self, other):
13667
    return not (self == other)
13668
 
13669
class getAllBanners_args:
13670
 
13671
  thrift_spec = (
13672
  )
13673
 
13674
  def read(self, iprot):
13675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13677
      return
13678
    iprot.readStructBegin()
13679
    while True:
13680
      (fname, ftype, fid) = iprot.readFieldBegin()
13681
      if ftype == TType.STOP:
13682
        break
13683
      else:
13684
        iprot.skip(ftype)
13685
      iprot.readFieldEnd()
13686
    iprot.readStructEnd()
13687
 
13688
  def write(self, oprot):
13689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13691
      return
13692
    oprot.writeStructBegin('getAllBanners_args')
13693
    oprot.writeFieldStop()
13694
    oprot.writeStructEnd()
13695
 
13696
  def validate(self):
13697
    return
13698
 
13699
 
13700
  def __repr__(self):
13701
    L = ['%s=%r' % (key, value)
13702
      for key, value in self.__dict__.iteritems()]
13703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13704
 
13705
  def __eq__(self, other):
13706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13707
 
13708
  def __ne__(self, other):
13709
    return not (self == other)
13710
 
13711
class getAllBanners_result:
13712
  """
13713
  Attributes:
13714
   - success
13715
  """
13716
 
13717
  thrift_spec = (
8579 kshitij.so 13718
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 13719
  )
13720
 
13721
  def __init__(self, success=None,):
13722
    self.success = success
13723
 
13724
  def read(self, iprot):
13725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13727
      return
13728
    iprot.readStructBegin()
13729
    while True:
13730
      (fname, ftype, fid) = iprot.readFieldBegin()
13731
      if ftype == TType.STOP:
13732
        break
13733
      if fid == 0:
13734
        if ftype == TType.LIST:
13735
          self.success = []
8590 kshitij.so 13736
          (_etype198, _size195) = iprot.readListBegin()
13737
          for _i199 in xrange(_size195):
13738
            _elem200 = Banner()
13739
            _elem200.read(iprot)
13740
            self.success.append(_elem200)
6850 kshitij.so 13741
          iprot.readListEnd()
13742
        else:
13743
          iprot.skip(ftype)
13744
      else:
13745
        iprot.skip(ftype)
13746
      iprot.readFieldEnd()
13747
    iprot.readStructEnd()
13748
 
13749
  def write(self, oprot):
13750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13752
      return
13753
    oprot.writeStructBegin('getAllBanners_result')
13754
    if self.success is not None:
13755
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 13756
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13757
      for iter201 in self.success:
13758
        iter201.write(oprot)
6850 kshitij.so 13759
      oprot.writeListEnd()
13760
      oprot.writeFieldEnd()
13761
    oprot.writeFieldStop()
13762
    oprot.writeStructEnd()
13763
 
13764
  def validate(self):
13765
    return
13766
 
13767
 
13768
  def __repr__(self):
13769
    L = ['%s=%r' % (key, value)
13770
      for key, value in self.__dict__.iteritems()]
13771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13772
 
13773
  def __eq__(self, other):
13774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13775
 
13776
  def __ne__(self, other):
13777
    return not (self == other)
13778
 
13779
class deleteBanner_args:
13780
  """
13781
  Attributes:
13782
   - bannerName
9155 kshitij.so 13783
   - bannerType
6850 kshitij.so 13784
  """
13785
 
13786
  thrift_spec = (
13787
    None, # 0
13788
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13789
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13790
  )
13791
 
9155 kshitij.so 13792
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13793
    self.bannerName = bannerName
9155 kshitij.so 13794
    self.bannerType = bannerType
6850 kshitij.so 13795
 
13796
  def read(self, iprot):
13797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13799
      return
13800
    iprot.readStructBegin()
13801
    while True:
13802
      (fname, ftype, fid) = iprot.readFieldBegin()
13803
      if ftype == TType.STOP:
13804
        break
13805
      if fid == 1:
13806
        if ftype == TType.STRING:
13807
          self.bannerName = iprot.readString();
13808
        else:
13809
          iprot.skip(ftype)
9155 kshitij.so 13810
      elif fid == 2:
13811
        if ftype == TType.I32:
13812
          self.bannerType = iprot.readI32();
13813
        else:
13814
          iprot.skip(ftype)
6850 kshitij.so 13815
      else:
13816
        iprot.skip(ftype)
13817
      iprot.readFieldEnd()
13818
    iprot.readStructEnd()
13819
 
13820
  def write(self, oprot):
13821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13823
      return
13824
    oprot.writeStructBegin('deleteBanner_args')
13825
    if self.bannerName is not None:
13826
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13827
      oprot.writeString(self.bannerName)
13828
      oprot.writeFieldEnd()
9155 kshitij.so 13829
    if self.bannerType is not None:
13830
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13831
      oprot.writeI32(self.bannerType)
13832
      oprot.writeFieldEnd()
6850 kshitij.so 13833
    oprot.writeFieldStop()
13834
    oprot.writeStructEnd()
13835
 
13836
  def validate(self):
13837
    return
13838
 
13839
 
13840
  def __repr__(self):
13841
    L = ['%s=%r' % (key, value)
13842
      for key, value in self.__dict__.iteritems()]
13843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13844
 
13845
  def __eq__(self, other):
13846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13847
 
13848
  def __ne__(self, other):
13849
    return not (self == other)
13850
 
13851
class deleteBanner_result:
13852
  """
13853
  Attributes:
13854
   - success
13855
  """
13856
 
13857
  thrift_spec = (
13858
    (0, TType.BOOL, 'success', None, None, ), # 0
13859
  )
13860
 
13861
  def __init__(self, success=None,):
13862
    self.success = success
13863
 
13864
  def read(self, iprot):
13865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13867
      return
13868
    iprot.readStructBegin()
13869
    while True:
13870
      (fname, ftype, fid) = iprot.readFieldBegin()
13871
      if ftype == TType.STOP:
13872
        break
13873
      if fid == 0:
13874
        if ftype == TType.BOOL:
13875
          self.success = iprot.readBool();
13876
        else:
13877
          iprot.skip(ftype)
13878
      else:
13879
        iprot.skip(ftype)
13880
      iprot.readFieldEnd()
13881
    iprot.readStructEnd()
13882
 
13883
  def write(self, oprot):
13884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13886
      return
13887
    oprot.writeStructBegin('deleteBanner_result')
13888
    if self.success is not None:
13889
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13890
      oprot.writeBool(self.success)
13891
      oprot.writeFieldEnd()
13892
    oprot.writeFieldStop()
13893
    oprot.writeStructEnd()
13894
 
13895
  def validate(self):
13896
    return
13897
 
13898
 
13899
  def __repr__(self):
13900
    L = ['%s=%r' % (key, value)
13901
      for key, value in self.__dict__.iteritems()]
13902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13903
 
13904
  def __eq__(self, other):
13905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13906
 
13907
  def __ne__(self, other):
13908
    return not (self == other)
13909
 
13910
class getBannerDetails_args:
13911
  """
13912
  Attributes:
13913
   - bannerName
9155 kshitij.so 13914
   - bannerType
6850 kshitij.so 13915
  """
13916
 
13917
  thrift_spec = (
13918
    None, # 0
13919
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13920
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13921
  )
13922
 
9155 kshitij.so 13923
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13924
    self.bannerName = bannerName
9155 kshitij.so 13925
    self.bannerType = bannerType
6850 kshitij.so 13926
 
13927
  def read(self, iprot):
13928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13930
      return
13931
    iprot.readStructBegin()
13932
    while True:
13933
      (fname, ftype, fid) = iprot.readFieldBegin()
13934
      if ftype == TType.STOP:
13935
        break
13936
      if fid == 1:
13937
        if ftype == TType.STRING:
13938
          self.bannerName = iprot.readString();
13939
        else:
13940
          iprot.skip(ftype)
9155 kshitij.so 13941
      elif fid == 2:
13942
        if ftype == TType.I32:
13943
          self.bannerType = iprot.readI32();
13944
        else:
13945
          iprot.skip(ftype)
6850 kshitij.so 13946
      else:
13947
        iprot.skip(ftype)
13948
      iprot.readFieldEnd()
13949
    iprot.readStructEnd()
13950
 
13951
  def write(self, oprot):
13952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13954
      return
13955
    oprot.writeStructBegin('getBannerDetails_args')
13956
    if self.bannerName is not None:
13957
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13958
      oprot.writeString(self.bannerName)
13959
      oprot.writeFieldEnd()
9155 kshitij.so 13960
    if self.bannerType is not None:
13961
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13962
      oprot.writeI32(self.bannerType)
13963
      oprot.writeFieldEnd()
6850 kshitij.so 13964
    oprot.writeFieldStop()
13965
    oprot.writeStructEnd()
13966
 
13967
  def validate(self):
13968
    return
13969
 
13970
 
13971
  def __repr__(self):
13972
    L = ['%s=%r' % (key, value)
13973
      for key, value in self.__dict__.iteritems()]
13974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13975
 
13976
  def __eq__(self, other):
13977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13978
 
13979
  def __ne__(self, other):
13980
    return not (self == other)
13981
 
13982
class getBannerDetails_result:
13983
  """
13984
  Attributes:
13985
   - success
13986
  """
13987
 
13988
  thrift_spec = (
13989
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
13990
  )
13991
 
13992
  def __init__(self, success=None,):
13993
    self.success = success
13994
 
13995
  def read(self, iprot):
13996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13998
      return
13999
    iprot.readStructBegin()
14000
    while True:
14001
      (fname, ftype, fid) = iprot.readFieldBegin()
14002
      if ftype == TType.STOP:
14003
        break
14004
      if fid == 0:
14005
        if ftype == TType.STRUCT:
14006
          self.success = Banner()
14007
          self.success.read(iprot)
14008
        else:
14009
          iprot.skip(ftype)
14010
      else:
14011
        iprot.skip(ftype)
14012
      iprot.readFieldEnd()
14013
    iprot.readStructEnd()
14014
 
14015
  def write(self, oprot):
14016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14018
      return
14019
    oprot.writeStructBegin('getBannerDetails_result')
14020
    if self.success is not None:
14021
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14022
      self.success.write(oprot)
14023
      oprot.writeFieldEnd()
14024
    oprot.writeFieldStop()
14025
    oprot.writeStructEnd()
14026
 
14027
  def validate(self):
14028
    return
14029
 
14030
 
14031
  def __repr__(self):
14032
    L = ['%s=%r' % (key, value)
14033
      for key, value in self.__dict__.iteritems()]
14034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14035
 
14036
  def __eq__(self, other):
14037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14038
 
14039
  def __ne__(self, other):
14040
    return not (self == other)
14041
 
14042
class getActiveBanners_args:
14043
 
14044
  thrift_spec = (
14045
  )
14046
 
14047
  def read(self, iprot):
14048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14050
      return
14051
    iprot.readStructBegin()
14052
    while True:
14053
      (fname, ftype, fid) = iprot.readFieldBegin()
14054
      if ftype == TType.STOP:
14055
        break
14056
      else:
14057
        iprot.skip(ftype)
14058
      iprot.readFieldEnd()
14059
    iprot.readStructEnd()
14060
 
14061
  def write(self, oprot):
14062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14064
      return
14065
    oprot.writeStructBegin('getActiveBanners_args')
14066
    oprot.writeFieldStop()
14067
    oprot.writeStructEnd()
14068
 
14069
  def validate(self):
14070
    return
14071
 
14072
 
14073
  def __repr__(self):
14074
    L = ['%s=%r' % (key, value)
14075
      for key, value in self.__dict__.iteritems()]
14076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14077
 
14078
  def __eq__(self, other):
14079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14080
 
14081
  def __ne__(self, other):
14082
    return not (self == other)
14083
 
14084
class getActiveBanners_result:
14085
  """
14086
  Attributes:
14087
   - success
14088
  """
14089
 
14090
  thrift_spec = (
8579 kshitij.so 14091
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 14092
  )
14093
 
14094
  def __init__(self, success=None,):
14095
    self.success = success
14096
 
14097
  def read(self, iprot):
14098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14100
      return
14101
    iprot.readStructBegin()
14102
    while True:
14103
      (fname, ftype, fid) = iprot.readFieldBegin()
14104
      if ftype == TType.STOP:
14105
        break
14106
      if fid == 0:
8579 kshitij.so 14107
        if ftype == TType.MAP:
14108
          self.success = {}
8590 kshitij.so 14109
          (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() 
14110
          for _i206 in xrange(_size202):
14111
            _key207 = iprot.readString();
14112
            _val208 = []
14113
            (_etype212, _size209) = iprot.readListBegin()
14114
            for _i213 in xrange(_size209):
14115
              _elem214 = Banner()
14116
              _elem214.read(iprot)
14117
              _val208.append(_elem214)
8579 kshitij.so 14118
            iprot.readListEnd()
8590 kshitij.so 14119
            self.success[_key207] = _val208
8579 kshitij.so 14120
          iprot.readMapEnd()
6850 kshitij.so 14121
        else:
14122
          iprot.skip(ftype)
14123
      else:
14124
        iprot.skip(ftype)
14125
      iprot.readFieldEnd()
14126
    iprot.readStructEnd()
14127
 
14128
  def write(self, oprot):
14129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14131
      return
14132
    oprot.writeStructBegin('getActiveBanners_result')
14133
    if self.success is not None:
8579 kshitij.so 14134
      oprot.writeFieldBegin('success', TType.MAP, 0)
14135
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
8590 kshitij.so 14136
      for kiter215,viter216 in self.success.items():
14137
        oprot.writeString(kiter215)
14138
        oprot.writeListBegin(TType.STRUCT, len(viter216))
14139
        for iter217 in viter216:
14140
          iter217.write(oprot)
8579 kshitij.so 14141
        oprot.writeListEnd()
14142
      oprot.writeMapEnd()
6850 kshitij.so 14143
      oprot.writeFieldEnd()
14144
    oprot.writeFieldStop()
14145
    oprot.writeStructEnd()
14146
 
14147
  def validate(self):
14148
    return
14149
 
14150
 
14151
  def __repr__(self):
14152
    L = ['%s=%r' % (key, value)
14153
      for key, value in self.__dict__.iteritems()]
14154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14155
 
14156
  def __eq__(self, other):
14157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14158
 
14159
  def __ne__(self, other):
14160
    return not (self == other)
14161
 
6849 kshitij.so 14162
class addBannerMap_args:
14163
  """
14164
  Attributes:
8579 kshitij.so 14165
   - bannerMaps
6849 kshitij.so 14166
  """
14167
 
14168
  thrift_spec = (
14169
    None, # 0
8579 kshitij.so 14170
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 14171
  )
14172
 
8579 kshitij.so 14173
  def __init__(self, bannerMaps=None,):
14174
    self.bannerMaps = bannerMaps
6849 kshitij.so 14175
 
14176
  def read(self, iprot):
14177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14179
      return
14180
    iprot.readStructBegin()
14181
    while True:
14182
      (fname, ftype, fid) = iprot.readFieldBegin()
14183
      if ftype == TType.STOP:
14184
        break
14185
      if fid == 1:
8579 kshitij.so 14186
        if ftype == TType.LIST:
14187
          self.bannerMaps = []
8590 kshitij.so 14188
          (_etype221, _size218) = iprot.readListBegin()
14189
          for _i222 in xrange(_size218):
14190
            _elem223 = BannerMap()
14191
            _elem223.read(iprot)
14192
            self.bannerMaps.append(_elem223)
8579 kshitij.so 14193
          iprot.readListEnd()
6849 kshitij.so 14194
        else:
14195
          iprot.skip(ftype)
8579 kshitij.so 14196
      else:
14197
        iprot.skip(ftype)
14198
      iprot.readFieldEnd()
14199
    iprot.readStructEnd()
14200
 
14201
  def write(self, oprot):
14202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14204
      return
14205
    oprot.writeStructBegin('addBannerMap_args')
14206
    if self.bannerMaps is not None:
14207
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
14208
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
8590 kshitij.so 14209
      for iter224 in self.bannerMaps:
14210
        iter224.write(oprot)
8579 kshitij.so 14211
      oprot.writeListEnd()
14212
      oprot.writeFieldEnd()
14213
    oprot.writeFieldStop()
14214
    oprot.writeStructEnd()
14215
 
14216
  def validate(self):
14217
    return
14218
 
14219
 
14220
  def __repr__(self):
14221
    L = ['%s=%r' % (key, value)
14222
      for key, value in self.__dict__.iteritems()]
14223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14224
 
14225
  def __eq__(self, other):
14226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14227
 
14228
  def __ne__(self, other):
14229
    return not (self == other)
14230
 
14231
class addBannerMap_result:
14232
  """
14233
  Attributes:
14234
   - success
14235
  """
14236
 
14237
  thrift_spec = (
14238
    (0, TType.BOOL, 'success', None, None, ), # 0
14239
  )
14240
 
14241
  def __init__(self, success=None,):
14242
    self.success = success
14243
 
14244
  def read(self, iprot):
14245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14247
      return
14248
    iprot.readStructBegin()
14249
    while True:
14250
      (fname, ftype, fid) = iprot.readFieldBegin()
14251
      if ftype == TType.STOP:
14252
        break
14253
      if fid == 0:
14254
        if ftype == TType.BOOL:
14255
          self.success = iprot.readBool();
6849 kshitij.so 14256
        else:
14257
          iprot.skip(ftype)
8579 kshitij.so 14258
      else:
14259
        iprot.skip(ftype)
14260
      iprot.readFieldEnd()
14261
    iprot.readStructEnd()
14262
 
14263
  def write(self, oprot):
14264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14266
      return
14267
    oprot.writeStructBegin('addBannerMap_result')
14268
    if self.success is not None:
14269
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14270
      oprot.writeBool(self.success)
14271
      oprot.writeFieldEnd()
14272
    oprot.writeFieldStop()
14273
    oprot.writeStructEnd()
14274
 
14275
  def validate(self):
14276
    return
14277
 
14278
 
14279
  def __repr__(self):
14280
    L = ['%s=%r' % (key, value)
14281
      for key, value in self.__dict__.iteritems()]
14282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14283
 
14284
  def __eq__(self, other):
14285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14286
 
14287
  def __ne__(self, other):
14288
    return not (self == other)
14289
 
14290
class updateBannerMap_args:
14291
  """
14292
  Attributes:
14293
   - bannerMap
14294
  """
14295
 
14296
  thrift_spec = (
14297
    None, # 0
14298
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
14299
  )
14300
 
14301
  def __init__(self, bannerMap=None,):
14302
    self.bannerMap = bannerMap
14303
 
14304
  def read(self, iprot):
14305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14307
      return
14308
    iprot.readStructBegin()
14309
    while True:
14310
      (fname, ftype, fid) = iprot.readFieldBegin()
14311
      if ftype == TType.STOP:
14312
        break
14313
      if fid == 1:
14314
        if ftype == TType.STRUCT:
14315
          self.bannerMap = BannerMap()
14316
          self.bannerMap.read(iprot)
6849 kshitij.so 14317
        else:
14318
          iprot.skip(ftype)
14319
      else:
14320
        iprot.skip(ftype)
14321
      iprot.readFieldEnd()
14322
    iprot.readStructEnd()
14323
 
14324
  def write(self, oprot):
14325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14327
      return
8579 kshitij.so 14328
    oprot.writeStructBegin('updateBannerMap_args')
14329
    if self.bannerMap is not None:
14330
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
14331
      self.bannerMap.write(oprot)
6849 kshitij.so 14332
      oprot.writeFieldEnd()
14333
    oprot.writeFieldStop()
14334
    oprot.writeStructEnd()
14335
 
14336
  def validate(self):
14337
    return
14338
 
14339
 
14340
  def __repr__(self):
14341
    L = ['%s=%r' % (key, value)
14342
      for key, value in self.__dict__.iteritems()]
14343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14344
 
14345
  def __eq__(self, other):
14346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14347
 
14348
  def __ne__(self, other):
14349
    return not (self == other)
14350
 
8579 kshitij.so 14351
class updateBannerMap_result:
6849 kshitij.so 14352
  """
14353
  Attributes:
14354
   - success
14355
  """
14356
 
14357
  thrift_spec = (
14358
    (0, TType.BOOL, 'success', None, None, ), # 0
14359
  )
14360
 
14361
  def __init__(self, success=None,):
14362
    self.success = success
14363
 
14364
  def read(self, iprot):
14365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14367
      return
14368
    iprot.readStructBegin()
14369
    while True:
14370
      (fname, ftype, fid) = iprot.readFieldBegin()
14371
      if ftype == TType.STOP:
14372
        break
14373
      if fid == 0:
14374
        if ftype == TType.BOOL:
14375
          self.success = iprot.readBool();
14376
        else:
14377
          iprot.skip(ftype)
14378
      else:
14379
        iprot.skip(ftype)
14380
      iprot.readFieldEnd()
14381
    iprot.readStructEnd()
14382
 
14383
  def write(self, oprot):
14384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14386
      return
8579 kshitij.so 14387
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 14388
    if self.success is not None:
14389
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14390
      oprot.writeBool(self.success)
14391
      oprot.writeFieldEnd()
14392
    oprot.writeFieldStop()
14393
    oprot.writeStructEnd()
14394
 
14395
  def validate(self):
14396
    return
14397
 
14398
 
14399
  def __repr__(self):
14400
    L = ['%s=%r' % (key, value)
14401
      for key, value in self.__dict__.iteritems()]
14402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14403
 
14404
  def __eq__(self, other):
14405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14406
 
14407
  def __ne__(self, other):
14408
    return not (self == other)
14409
 
14410
class deleteBannerMap_args:
14411
  """
14412
  Attributes:
14413
   - bannerName
14414
  """
14415
 
14416
  thrift_spec = (
14417
    None, # 0
14418
    (1, TType.STRING, 'bannerName', None, None, ), # 1
14419
  )
14420
 
14421
  def __init__(self, bannerName=None,):
14422
    self.bannerName = bannerName
14423
 
14424
  def read(self, iprot):
14425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14427
      return
14428
    iprot.readStructBegin()
14429
    while True:
14430
      (fname, ftype, fid) = iprot.readFieldBegin()
14431
      if ftype == TType.STOP:
14432
        break
14433
      if fid == 1:
14434
        if ftype == TType.STRING:
14435
          self.bannerName = iprot.readString();
14436
        else:
14437
          iprot.skip(ftype)
14438
      else:
14439
        iprot.skip(ftype)
14440
      iprot.readFieldEnd()
14441
    iprot.readStructEnd()
14442
 
14443
  def write(self, oprot):
14444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14446
      return
14447
    oprot.writeStructBegin('deleteBannerMap_args')
14448
    if self.bannerName is not None:
14449
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14450
      oprot.writeString(self.bannerName)
14451
      oprot.writeFieldEnd()
14452
    oprot.writeFieldStop()
14453
    oprot.writeStructEnd()
14454
 
14455
  def validate(self):
14456
    return
14457
 
14458
 
14459
  def __repr__(self):
14460
    L = ['%s=%r' % (key, value)
14461
      for key, value in self.__dict__.iteritems()]
14462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14463
 
14464
  def __eq__(self, other):
14465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14466
 
14467
  def __ne__(self, other):
14468
    return not (self == other)
14469
 
14470
class deleteBannerMap_result:
14471
  """
14472
  Attributes:
14473
   - success
14474
  """
14475
 
14476
  thrift_spec = (
14477
    (0, TType.BOOL, 'success', None, None, ), # 0
14478
  )
14479
 
14480
  def __init__(self, success=None,):
14481
    self.success = success
14482
 
14483
  def read(self, iprot):
14484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14486
      return
14487
    iprot.readStructBegin()
14488
    while True:
14489
      (fname, ftype, fid) = iprot.readFieldBegin()
14490
      if ftype == TType.STOP:
14491
        break
14492
      if fid == 0:
14493
        if ftype == TType.BOOL:
14494
          self.success = iprot.readBool();
14495
        else:
14496
          iprot.skip(ftype)
14497
      else:
14498
        iprot.skip(ftype)
14499
      iprot.readFieldEnd()
14500
    iprot.readStructEnd()
14501
 
14502
  def write(self, oprot):
14503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14505
      return
14506
    oprot.writeStructBegin('deleteBannerMap_result')
14507
    if self.success is not None:
14508
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14509
      oprot.writeBool(self.success)
14510
      oprot.writeFieldEnd()
14511
    oprot.writeFieldStop()
14512
    oprot.writeStructEnd()
14513
 
14514
  def validate(self):
14515
    return
14516
 
14517
 
14518
  def __repr__(self):
14519
    L = ['%s=%r' % (key, value)
14520
      for key, value in self.__dict__.iteritems()]
14521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14522
 
14523
  def __eq__(self, other):
14524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14525
 
14526
  def __ne__(self, other):
14527
    return not (self == other)
14528
 
14529
class getBannerMapDetails_args:
14530
  """
14531
  Attributes:
14532
   - bannerName
9155 kshitij.so 14533
   - bannerType
6849 kshitij.so 14534
  """
14535
 
14536
  thrift_spec = (
14537
    None, # 0
14538
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14539
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 14540
  )
14541
 
9155 kshitij.so 14542
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 14543
    self.bannerName = bannerName
9155 kshitij.so 14544
    self.bannerType = bannerType
6849 kshitij.so 14545
 
14546
  def read(self, iprot):
14547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14549
      return
14550
    iprot.readStructBegin()
14551
    while True:
14552
      (fname, ftype, fid) = iprot.readFieldBegin()
14553
      if ftype == TType.STOP:
14554
        break
14555
      if fid == 1:
14556
        if ftype == TType.STRING:
14557
          self.bannerName = iprot.readString();
14558
        else:
14559
          iprot.skip(ftype)
9155 kshitij.so 14560
      elif fid == 2:
14561
        if ftype == TType.I32:
14562
          self.bannerType = iprot.readI32();
14563
        else:
14564
          iprot.skip(ftype)
6849 kshitij.so 14565
      else:
14566
        iprot.skip(ftype)
14567
      iprot.readFieldEnd()
14568
    iprot.readStructEnd()
14569
 
14570
  def write(self, oprot):
14571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14573
      return
14574
    oprot.writeStructBegin('getBannerMapDetails_args')
14575
    if self.bannerName is not None:
14576
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14577
      oprot.writeString(self.bannerName)
14578
      oprot.writeFieldEnd()
9155 kshitij.so 14579
    if self.bannerType is not None:
14580
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14581
      oprot.writeI32(self.bannerType)
14582
      oprot.writeFieldEnd()
6849 kshitij.so 14583
    oprot.writeFieldStop()
14584
    oprot.writeStructEnd()
14585
 
14586
  def validate(self):
14587
    return
14588
 
14589
 
14590
  def __repr__(self):
14591
    L = ['%s=%r' % (key, value)
14592
      for key, value in self.__dict__.iteritems()]
14593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14594
 
14595
  def __eq__(self, other):
14596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14597
 
14598
  def __ne__(self, other):
14599
    return not (self == other)
14600
 
14601
class getBannerMapDetails_result:
14602
  """
14603
  Attributes:
14604
   - success
14605
  """
14606
 
14607
  thrift_spec = (
14608
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
14609
  )
14610
 
14611
  def __init__(self, success=None,):
14612
    self.success = success
14613
 
14614
  def read(self, iprot):
14615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14617
      return
14618
    iprot.readStructBegin()
14619
    while True:
14620
      (fname, ftype, fid) = iprot.readFieldBegin()
14621
      if ftype == TType.STOP:
14622
        break
14623
      if fid == 0:
14624
        if ftype == TType.LIST:
14625
          self.success = []
8590 kshitij.so 14626
          (_etype228, _size225) = iprot.readListBegin()
14627
          for _i229 in xrange(_size225):
14628
            _elem230 = BannerMap()
14629
            _elem230.read(iprot)
14630
            self.success.append(_elem230)
6849 kshitij.so 14631
          iprot.readListEnd()
14632
        else:
14633
          iprot.skip(ftype)
14634
      else:
14635
        iprot.skip(ftype)
14636
      iprot.readFieldEnd()
14637
    iprot.readStructEnd()
14638
 
14639
  def write(self, oprot):
14640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14642
      return
14643
    oprot.writeStructBegin('getBannerMapDetails_result')
14644
    if self.success is not None:
14645
      oprot.writeFieldBegin('success', TType.LIST, 0)
14646
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14647
      for iter231 in self.success:
14648
        iter231.write(oprot)
6849 kshitij.so 14649
      oprot.writeListEnd()
14650
      oprot.writeFieldEnd()
14651
    oprot.writeFieldStop()
14652
    oprot.writeStructEnd()
14653
 
14654
  def validate(self):
14655
    return
14656
 
14657
 
14658
  def __repr__(self):
14659
    L = ['%s=%r' % (key, value)
14660
      for key, value in self.__dict__.iteritems()]
14661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14662
 
14663
  def __eq__(self, other):
14664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14665
 
14666
  def __ne__(self, other):
14667
    return not (self == other)
14668
 
8579 kshitij.so 14669
class addBannerUri_args:
14670
  """
14671
  Attributes:
14672
   - bannerUriMappings
14673
  """
14674
 
14675
  thrift_spec = (
14676
    None, # 0
14677
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
14678
  )
14679
 
14680
  def __init__(self, bannerUriMappings=None,):
14681
    self.bannerUriMappings = bannerUriMappings
14682
 
14683
  def read(self, iprot):
14684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14686
      return
14687
    iprot.readStructBegin()
14688
    while True:
14689
      (fname, ftype, fid) = iprot.readFieldBegin()
14690
      if ftype == TType.STOP:
14691
        break
14692
      if fid == 1:
14693
        if ftype == TType.LIST:
14694
          self.bannerUriMappings = []
8590 kshitij.so 14695
          (_etype235, _size232) = iprot.readListBegin()
14696
          for _i236 in xrange(_size232):
14697
            _elem237 = BannerUriMapping()
14698
            _elem237.read(iprot)
14699
            self.bannerUriMappings.append(_elem237)
8579 kshitij.so 14700
          iprot.readListEnd()
14701
        else:
14702
          iprot.skip(ftype)
14703
      else:
14704
        iprot.skip(ftype)
14705
      iprot.readFieldEnd()
14706
    iprot.readStructEnd()
14707
 
14708
  def write(self, oprot):
14709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14711
      return
14712
    oprot.writeStructBegin('addBannerUri_args')
14713
    if self.bannerUriMappings is not None:
14714
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
14715
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
8590 kshitij.so 14716
      for iter238 in self.bannerUriMappings:
14717
        iter238.write(oprot)
8579 kshitij.so 14718
      oprot.writeListEnd()
14719
      oprot.writeFieldEnd()
14720
    oprot.writeFieldStop()
14721
    oprot.writeStructEnd()
14722
 
14723
  def validate(self):
14724
    return
14725
 
14726
 
14727
  def __repr__(self):
14728
    L = ['%s=%r' % (key, value)
14729
      for key, value in self.__dict__.iteritems()]
14730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14731
 
14732
  def __eq__(self, other):
14733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14734
 
14735
  def __ne__(self, other):
14736
    return not (self == other)
14737
 
14738
class addBannerUri_result:
14739
 
14740
  thrift_spec = (
14741
  )
14742
 
14743
  def read(self, iprot):
14744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14746
      return
14747
    iprot.readStructBegin()
14748
    while True:
14749
      (fname, ftype, fid) = iprot.readFieldBegin()
14750
      if ftype == TType.STOP:
14751
        break
14752
      else:
14753
        iprot.skip(ftype)
14754
      iprot.readFieldEnd()
14755
    iprot.readStructEnd()
14756
 
14757
  def write(self, oprot):
14758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14760
      return
14761
    oprot.writeStructBegin('addBannerUri_result')
14762
    oprot.writeFieldStop()
14763
    oprot.writeStructEnd()
14764
 
14765
  def validate(self):
14766
    return
14767
 
14768
 
14769
  def __repr__(self):
14770
    L = ['%s=%r' % (key, value)
14771
      for key, value in self.__dict__.iteritems()]
14772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14773
 
14774
  def __eq__(self, other):
14775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14776
 
14777
  def __ne__(self, other):
14778
    return not (self == other)
14779
 
14780
class getUriMapping_args:
14781
  """
14782
  Attributes:
14783
   - bannerName
9155 kshitij.so 14784
   - bannerType
8579 kshitij.so 14785
  """
14786
 
14787
  thrift_spec = (
14788
    None, # 0
14789
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14790
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 14791
  )
14792
 
9155 kshitij.so 14793
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 14794
    self.bannerName = bannerName
9155 kshitij.so 14795
    self.bannerType = bannerType
8579 kshitij.so 14796
 
14797
  def read(self, iprot):
14798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14800
      return
14801
    iprot.readStructBegin()
14802
    while True:
14803
      (fname, ftype, fid) = iprot.readFieldBegin()
14804
      if ftype == TType.STOP:
14805
        break
14806
      if fid == 1:
14807
        if ftype == TType.STRING:
14808
          self.bannerName = iprot.readString();
14809
        else:
14810
          iprot.skip(ftype)
9155 kshitij.so 14811
      elif fid == 2:
14812
        if ftype == TType.I32:
14813
          self.bannerType = iprot.readI32();
14814
        else:
14815
          iprot.skip(ftype)
8579 kshitij.so 14816
      else:
14817
        iprot.skip(ftype)
14818
      iprot.readFieldEnd()
14819
    iprot.readStructEnd()
14820
 
14821
  def write(self, oprot):
14822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14824
      return
14825
    oprot.writeStructBegin('getUriMapping_args')
14826
    if self.bannerName is not None:
14827
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14828
      oprot.writeString(self.bannerName)
14829
      oprot.writeFieldEnd()
9155 kshitij.so 14830
    if self.bannerType is not None:
14831
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14832
      oprot.writeI32(self.bannerType)
14833
      oprot.writeFieldEnd()
8579 kshitij.so 14834
    oprot.writeFieldStop()
14835
    oprot.writeStructEnd()
14836
 
14837
  def validate(self):
14838
    return
14839
 
14840
 
14841
  def __repr__(self):
14842
    L = ['%s=%r' % (key, value)
14843
      for key, value in self.__dict__.iteritems()]
14844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14845
 
14846
  def __eq__(self, other):
14847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14848
 
14849
  def __ne__(self, other):
14850
    return not (self == other)
14851
 
14852
class getUriMapping_result:
14853
  """
14854
  Attributes:
14855
   - success
14856
  """
14857
 
14858
  thrift_spec = (
14859
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
14860
  )
14861
 
14862
  def __init__(self, success=None,):
14863
    self.success = success
14864
 
14865
  def read(self, iprot):
14866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14868
      return
14869
    iprot.readStructBegin()
14870
    while True:
14871
      (fname, ftype, fid) = iprot.readFieldBegin()
14872
      if ftype == TType.STOP:
14873
        break
14874
      if fid == 0:
14875
        if ftype == TType.LIST:
14876
          self.success = []
8590 kshitij.so 14877
          (_etype242, _size239) = iprot.readListBegin()
14878
          for _i243 in xrange(_size239):
14879
            _elem244 = BannerUriMapping()
14880
            _elem244.read(iprot)
14881
            self.success.append(_elem244)
8579 kshitij.so 14882
          iprot.readListEnd()
14883
        else:
14884
          iprot.skip(ftype)
14885
      else:
14886
        iprot.skip(ftype)
14887
      iprot.readFieldEnd()
14888
    iprot.readStructEnd()
14889
 
14890
  def write(self, oprot):
14891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14893
      return
14894
    oprot.writeStructBegin('getUriMapping_result')
14895
    if self.success is not None:
14896
      oprot.writeFieldBegin('success', TType.LIST, 0)
14897
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14898
      for iter245 in self.success:
14899
        iter245.write(oprot)
8579 kshitij.so 14900
      oprot.writeListEnd()
14901
      oprot.writeFieldEnd()
14902
    oprot.writeFieldStop()
14903
    oprot.writeStructEnd()
14904
 
14905
  def validate(self):
14906
    return
14907
 
14908
 
14909
  def __repr__(self):
14910
    L = ['%s=%r' % (key, value)
14911
      for key, value in self.__dict__.iteritems()]
14912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14913
 
14914
  def __eq__(self, other):
14915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14916
 
14917
  def __ne__(self, other):
14918
    return not (self == other)
14919
 
14920
class addCampaign_args:
14921
  """
14922
  Attributes:
14923
   - campaign
14924
  """
14925
 
14926
  thrift_spec = (
14927
    None, # 0
14928
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
14929
  )
14930
 
14931
  def __init__(self, campaign=None,):
14932
    self.campaign = campaign
14933
 
14934
  def read(self, iprot):
14935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14937
      return
14938
    iprot.readStructBegin()
14939
    while True:
14940
      (fname, ftype, fid) = iprot.readFieldBegin()
14941
      if ftype == TType.STOP:
14942
        break
14943
      if fid == 1:
14944
        if ftype == TType.STRUCT:
14945
          self.campaign = Campaign()
14946
          self.campaign.read(iprot)
14947
        else:
14948
          iprot.skip(ftype)
14949
      else:
14950
        iprot.skip(ftype)
14951
      iprot.readFieldEnd()
14952
    iprot.readStructEnd()
14953
 
14954
  def write(self, oprot):
14955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14957
      return
14958
    oprot.writeStructBegin('addCampaign_args')
14959
    if self.campaign is not None:
14960
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
14961
      self.campaign.write(oprot)
14962
      oprot.writeFieldEnd()
14963
    oprot.writeFieldStop()
14964
    oprot.writeStructEnd()
14965
 
14966
  def validate(self):
14967
    return
14968
 
14969
 
14970
  def __repr__(self):
14971
    L = ['%s=%r' % (key, value)
14972
      for key, value in self.__dict__.iteritems()]
14973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14974
 
14975
  def __eq__(self, other):
14976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14977
 
14978
  def __ne__(self, other):
14979
    return not (self == other)
14980
 
14981
class addCampaign_result:
14982
 
14983
  thrift_spec = (
14984
  )
14985
 
14986
  def read(self, iprot):
14987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14989
      return
14990
    iprot.readStructBegin()
14991
    while True:
14992
      (fname, ftype, fid) = iprot.readFieldBegin()
14993
      if ftype == TType.STOP:
14994
        break
14995
      else:
14996
        iprot.skip(ftype)
14997
      iprot.readFieldEnd()
14998
    iprot.readStructEnd()
14999
 
15000
  def write(self, oprot):
15001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15003
      return
15004
    oprot.writeStructBegin('addCampaign_result')
15005
    oprot.writeFieldStop()
15006
    oprot.writeStructEnd()
15007
 
15008
  def validate(self):
15009
    return
15010
 
15011
 
15012
  def __repr__(self):
15013
    L = ['%s=%r' % (key, value)
15014
      for key, value in self.__dict__.iteritems()]
15015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15016
 
15017
  def __eq__(self, other):
15018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15019
 
15020
  def __ne__(self, other):
15021
    return not (self == other)
15022
 
15023
class getCampaigns_args:
15024
  """
15025
  Attributes:
15026
   - campaignName
15027
  """
15028
 
15029
  thrift_spec = (
15030
    None, # 0
15031
    (1, TType.STRING, 'campaignName', None, None, ), # 1
15032
  )
15033
 
15034
  def __init__(self, campaignName=None,):
15035
    self.campaignName = campaignName
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 == 1:
15047
        if ftype == TType.STRING:
15048
          self.campaignName = iprot.readString();
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
15060
    oprot.writeStructBegin('getCampaigns_args')
15061
    if self.campaignName is not None:
15062
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
15063
      oprot.writeString(self.campaignName)
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 getCampaigns_result:
15084
  """
15085
  Attributes:
15086
   - success
15087
  """
15088
 
15089
  thrift_spec = (
15090
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
15091
  )
15092
 
15093
  def __init__(self, success=None,):
15094
    self.success = success
15095
 
15096
  def read(self, iprot):
15097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15099
      return
15100
    iprot.readStructBegin()
15101
    while True:
15102
      (fname, ftype, fid) = iprot.readFieldBegin()
15103
      if ftype == TType.STOP:
15104
        break
15105
      if fid == 0:
15106
        if ftype == TType.LIST:
15107
          self.success = []
8590 kshitij.so 15108
          (_etype249, _size246) = iprot.readListBegin()
15109
          for _i250 in xrange(_size246):
15110
            _elem251 = Campaign()
15111
            _elem251.read(iprot)
15112
            self.success.append(_elem251)
8579 kshitij.so 15113
          iprot.readListEnd()
15114
        else:
15115
          iprot.skip(ftype)
15116
      else:
15117
        iprot.skip(ftype)
15118
      iprot.readFieldEnd()
15119
    iprot.readStructEnd()
15120
 
15121
  def write(self, oprot):
15122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15124
      return
15125
    oprot.writeStructBegin('getCampaigns_result')
15126
    if self.success is not None:
15127
      oprot.writeFieldBegin('success', TType.LIST, 0)
15128
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 15129
      for iter252 in self.success:
15130
        iter252.write(oprot)
8579 kshitij.so 15131
      oprot.writeListEnd()
15132
      oprot.writeFieldEnd()
15133
    oprot.writeFieldStop()
15134
    oprot.writeStructEnd()
15135
 
15136
  def validate(self):
15137
    return
15138
 
15139
 
15140
  def __repr__(self):
15141
    L = ['%s=%r' % (key, value)
15142
      for key, value in self.__dict__.iteritems()]
15143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15144
 
15145
  def __eq__(self, other):
15146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15147
 
15148
  def __ne__(self, other):
15149
    return not (self == other)
15150
 
15151
class deleteCampaign_args:
15152
  """
15153
  Attributes:
15154
   - campaignId
15155
  """
15156
 
15157
  thrift_spec = (
15158
    None, # 0
15159
    (1, TType.I64, 'campaignId', None, None, ), # 1
15160
  )
15161
 
15162
  def __init__(self, campaignId=None,):
15163
    self.campaignId = campaignId
15164
 
15165
  def read(self, iprot):
15166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15168
      return
15169
    iprot.readStructBegin()
15170
    while True:
15171
      (fname, ftype, fid) = iprot.readFieldBegin()
15172
      if ftype == TType.STOP:
15173
        break
15174
      if fid == 1:
15175
        if ftype == TType.I64:
15176
          self.campaignId = iprot.readI64();
15177
        else:
15178
          iprot.skip(ftype)
15179
      else:
15180
        iprot.skip(ftype)
15181
      iprot.readFieldEnd()
15182
    iprot.readStructEnd()
15183
 
15184
  def write(self, oprot):
15185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15187
      return
15188
    oprot.writeStructBegin('deleteCampaign_args')
15189
    if self.campaignId is not None:
15190
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
15191
      oprot.writeI64(self.campaignId)
15192
      oprot.writeFieldEnd()
15193
    oprot.writeFieldStop()
15194
    oprot.writeStructEnd()
15195
 
15196
  def validate(self):
15197
    return
15198
 
15199
 
15200
  def __repr__(self):
15201
    L = ['%s=%r' % (key, value)
15202
      for key, value in self.__dict__.iteritems()]
15203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15204
 
15205
  def __eq__(self, other):
15206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15207
 
15208
  def __ne__(self, other):
15209
    return not (self == other)
15210
 
15211
class deleteCampaign_result:
15212
 
15213
  thrift_spec = (
15214
  )
15215
 
15216
  def read(self, iprot):
15217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15219
      return
15220
    iprot.readStructBegin()
15221
    while True:
15222
      (fname, ftype, fid) = iprot.readFieldBegin()
15223
      if ftype == TType.STOP:
15224
        break
15225
      else:
15226
        iprot.skip(ftype)
15227
      iprot.readFieldEnd()
15228
    iprot.readStructEnd()
15229
 
15230
  def write(self, oprot):
15231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15233
      return
15234
    oprot.writeStructBegin('deleteCampaign_result')
15235
    oprot.writeFieldStop()
15236
    oprot.writeStructEnd()
15237
 
15238
  def validate(self):
15239
    return
15240
 
15241
 
15242
  def __repr__(self):
15243
    L = ['%s=%r' % (key, value)
15244
      for key, value in self.__dict__.iteritems()]
15245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15246
 
15247
  def __eq__(self, other):
15248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15249
 
15250
  def __ne__(self, other):
15251
    return not (self == other)
15252
 
15253
class getAllCampaigns_args:
15254
 
15255
  thrift_spec = (
15256
  )
15257
 
15258
  def read(self, iprot):
15259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15261
      return
15262
    iprot.readStructBegin()
15263
    while True:
15264
      (fname, ftype, fid) = iprot.readFieldBegin()
15265
      if ftype == TType.STOP:
15266
        break
15267
      else:
15268
        iprot.skip(ftype)
15269
      iprot.readFieldEnd()
15270
    iprot.readStructEnd()
15271
 
15272
  def write(self, oprot):
15273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15275
      return
15276
    oprot.writeStructBegin('getAllCampaigns_args')
15277
    oprot.writeFieldStop()
15278
    oprot.writeStructEnd()
15279
 
15280
  def validate(self):
15281
    return
15282
 
15283
 
15284
  def __repr__(self):
15285
    L = ['%s=%r' % (key, value)
15286
      for key, value in self.__dict__.iteritems()]
15287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15288
 
15289
  def __eq__(self, other):
15290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15291
 
15292
  def __ne__(self, other):
15293
    return not (self == other)
15294
 
15295
class getAllCampaigns_result:
15296
  """
15297
  Attributes:
15298
   - success
15299
  """
15300
 
15301
  thrift_spec = (
15302
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
15303
  )
15304
 
15305
  def __init__(self, success=None,):
15306
    self.success = success
15307
 
15308
  def read(self, iprot):
15309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15311
      return
15312
    iprot.readStructBegin()
15313
    while True:
15314
      (fname, ftype, fid) = iprot.readFieldBegin()
15315
      if ftype == TType.STOP:
15316
        break
15317
      if fid == 0:
15318
        if ftype == TType.LIST:
15319
          self.success = []
8590 kshitij.so 15320
          (_etype256, _size253) = iprot.readListBegin()
15321
          for _i257 in xrange(_size253):
15322
            _elem258 = iprot.readString();
15323
            self.success.append(_elem258)
8579 kshitij.so 15324
          iprot.readListEnd()
15325
        else:
15326
          iprot.skip(ftype)
15327
      else:
15328
        iprot.skip(ftype)
15329
      iprot.readFieldEnd()
15330
    iprot.readStructEnd()
15331
 
15332
  def write(self, oprot):
15333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15335
      return
15336
    oprot.writeStructBegin('getAllCampaigns_result')
15337
    if self.success is not None:
15338
      oprot.writeFieldBegin('success', TType.LIST, 0)
15339
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 15340
      for iter259 in self.success:
15341
        oprot.writeString(iter259)
8579 kshitij.so 15342
      oprot.writeListEnd()
15343
      oprot.writeFieldEnd()
15344
    oprot.writeFieldStop()
15345
    oprot.writeStructEnd()
15346
 
15347
  def validate(self):
15348
    return
15349
 
15350
 
15351
  def __repr__(self):
15352
    L = ['%s=%r' % (key, value)
15353
      for key, value in self.__dict__.iteritems()]
15354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15355
 
15356
  def __eq__(self, other):
15357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15358
 
15359
  def __ne__(self, other):
15360
    return not (self == other)
15361
 
9155 kshitij.so 15362
class getActiveBannersForMobileSite_args:
15363
 
15364
  thrift_spec = (
15365
  )
15366
 
15367
  def read(self, iprot):
15368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15370
      return
15371
    iprot.readStructBegin()
15372
    while True:
15373
      (fname, ftype, fid) = iprot.readFieldBegin()
15374
      if ftype == TType.STOP:
15375
        break
15376
      else:
15377
        iprot.skip(ftype)
15378
      iprot.readFieldEnd()
15379
    iprot.readStructEnd()
15380
 
15381
  def write(self, oprot):
15382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15384
      return
15385
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
15386
    oprot.writeFieldStop()
15387
    oprot.writeStructEnd()
15388
 
15389
  def validate(self):
15390
    return
15391
 
15392
 
15393
  def __repr__(self):
15394
    L = ['%s=%r' % (key, value)
15395
      for key, value in self.__dict__.iteritems()]
15396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15397
 
15398
  def __eq__(self, other):
15399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15400
 
15401
  def __ne__(self, other):
15402
    return not (self == other)
15403
 
15404
class getActiveBannersForMobileSite_result:
15405
  """
15406
  Attributes:
15407
   - success
15408
  """
15409
 
15410
  thrift_spec = (
15411
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
15412
  )
15413
 
15414
  def __init__(self, success=None,):
15415
    self.success = success
15416
 
15417
  def read(self, iprot):
15418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15420
      return
15421
    iprot.readStructBegin()
15422
    while True:
15423
      (fname, ftype, fid) = iprot.readFieldBegin()
15424
      if ftype == TType.STOP:
15425
        break
15426
      if fid == 0:
15427
        if ftype == TType.MAP:
15428
          self.success = {}
15429
          (_ktype261, _vtype262, _size260 ) = iprot.readMapBegin() 
15430
          for _i264 in xrange(_size260):
15431
            _key265 = iprot.readString();
15432
            _val266 = []
15433
            (_etype270, _size267) = iprot.readListBegin()
15434
            for _i271 in xrange(_size267):
15435
              _elem272 = Banner()
15436
              _elem272.read(iprot)
15437
              _val266.append(_elem272)
15438
            iprot.readListEnd()
15439
            self.success[_key265] = _val266
15440
          iprot.readMapEnd()
15441
        else:
15442
          iprot.skip(ftype)
15443
      else:
15444
        iprot.skip(ftype)
15445
      iprot.readFieldEnd()
15446
    iprot.readStructEnd()
15447
 
15448
  def write(self, oprot):
15449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15451
      return
15452
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
15453
    if self.success is not None:
15454
      oprot.writeFieldBegin('success', TType.MAP, 0)
15455
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
15456
      for kiter273,viter274 in self.success.items():
15457
        oprot.writeString(kiter273)
15458
        oprot.writeListBegin(TType.STRUCT, len(viter274))
15459
        for iter275 in viter274:
15460
          iter275.write(oprot)
15461
        oprot.writeListEnd()
15462
      oprot.writeMapEnd()
15463
      oprot.writeFieldEnd()
15464
    oprot.writeFieldStop()
15465
    oprot.writeStructEnd()
15466
 
15467
  def validate(self):
15468
    return
15469
 
15470
 
15471
  def __repr__(self):
15472
    L = ['%s=%r' % (key, value)
15473
      for key, value in self.__dict__.iteritems()]
15474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15475
 
15476
  def __eq__(self, other):
15477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15478
 
15479
  def __ne__(self, other):
15480
    return not (self == other)
15481
 
5944 mandeep.dh 15482
class deleteSimilarItem_args:
15483
  """
15484
  Attributes:
15485
   - itemId
15486
   - catalogItemId
15487
  """
15488
 
15489
  thrift_spec = (
15490
    None, # 0
15491
    (1, TType.I64, 'itemId', None, None, ), # 1
15492
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
15493
  )
15494
 
15495
  def __init__(self, itemId=None, catalogItemId=None,):
15496
    self.itemId = itemId
15497
    self.catalogItemId = catalogItemId
15498
 
15499
  def read(self, iprot):
15500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15502
      return
15503
    iprot.readStructBegin()
15504
    while True:
15505
      (fname, ftype, fid) = iprot.readFieldBegin()
15506
      if ftype == TType.STOP:
15507
        break
15508
      if fid == 1:
15509
        if ftype == TType.I64:
15510
          self.itemId = iprot.readI64();
15511
        else:
15512
          iprot.skip(ftype)
15513
      elif fid == 2:
15514
        if ftype == TType.I64:
15515
          self.catalogItemId = iprot.readI64();
15516
        else:
15517
          iprot.skip(ftype)
15518
      else:
15519
        iprot.skip(ftype)
15520
      iprot.readFieldEnd()
15521
    iprot.readStructEnd()
15522
 
15523
  def write(self, oprot):
15524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15526
      return
15527
    oprot.writeStructBegin('deleteSimilarItem_args')
15528
    if self.itemId is not None:
15529
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15530
      oprot.writeI64(self.itemId)
15531
      oprot.writeFieldEnd()
15532
    if self.catalogItemId is not None:
15533
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
15534
      oprot.writeI64(self.catalogItemId)
15535
      oprot.writeFieldEnd()
15536
    oprot.writeFieldStop()
15537
    oprot.writeStructEnd()
15538
 
15539
  def validate(self):
15540
    return
15541
 
15542
 
15543
  def __repr__(self):
15544
    L = ['%s=%r' % (key, value)
15545
      for key, value in self.__dict__.iteritems()]
15546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15547
 
15548
  def __eq__(self, other):
15549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15550
 
15551
  def __ne__(self, other):
15552
    return not (self == other)
15553
 
15554
class deleteSimilarItem_result:
15555
  """
15556
  Attributes:
15557
   - success
15558
   - cex
15559
  """
15560
 
15561
  thrift_spec = (
15562
    (0, TType.BOOL, 'success', None, None, ), # 0
15563
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
15564
  )
15565
 
15566
  def __init__(self, success=None, cex=None,):
15567
    self.success = success
15568
    self.cex = cex
15569
 
15570
  def read(self, iprot):
15571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15573
      return
15574
    iprot.readStructBegin()
15575
    while True:
15576
      (fname, ftype, fid) = iprot.readFieldBegin()
15577
      if ftype == TType.STOP:
15578
        break
15579
      if fid == 0:
15580
        if ftype == TType.BOOL:
15581
          self.success = iprot.readBool();
15582
        else:
15583
          iprot.skip(ftype)
15584
      elif fid == 1:
15585
        if ftype == TType.STRUCT:
15586
          self.cex = CatalogServiceException()
15587
          self.cex.read(iprot)
15588
        else:
15589
          iprot.skip(ftype)
15590
      else:
15591
        iprot.skip(ftype)
15592
      iprot.readFieldEnd()
15593
    iprot.readStructEnd()
15594
 
15595
  def write(self, oprot):
15596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15598
      return
15599
    oprot.writeStructBegin('deleteSimilarItem_result')
15600
    if self.success is not None:
15601
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15602
      oprot.writeBool(self.success)
15603
      oprot.writeFieldEnd()
15604
    if self.cex is not None:
15605
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
15606
      self.cex.write(oprot)
15607
      oprot.writeFieldEnd()
15608
    oprot.writeFieldStop()
15609
    oprot.writeStructEnd()
15610
 
15611
  def validate(self):
15612
    return
15613
 
15614
 
15615
  def __repr__(self):
15616
    L = ['%s=%r' % (key, value)
15617
      for key, value in self.__dict__.iteritems()]
15618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15619
 
15620
  def __eq__(self, other):
15621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15622
 
15623
  def __ne__(self, other):
15624
    return not (self == other)
15625
 
15626
class checkSimilarItem_args:
15627
  """
15628
  Attributes:
15629
   - brand
15630
   - modelNumber
15631
   - modelName
15632
   - color
15633
  """
15634
 
15635
  thrift_spec = (
15636
    None, # 0
15637
    (1, TType.STRING, 'brand', None, None, ), # 1
15638
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
15639
    (3, TType.STRING, 'modelName', None, None, ), # 3
15640
    (4, TType.STRING, 'color', None, None, ), # 4
15641
  )
15642
 
15643
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
15644
    self.brand = brand
15645
    self.modelNumber = modelNumber
15646
    self.modelName = modelName
15647
    self.color = color
15648
 
15649
  def read(self, iprot):
15650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15652
      return
15653
    iprot.readStructBegin()
15654
    while True:
15655
      (fname, ftype, fid) = iprot.readFieldBegin()
15656
      if ftype == TType.STOP:
15657
        break
15658
      if fid == 1:
15659
        if ftype == TType.STRING:
15660
          self.brand = iprot.readString();
15661
        else:
15662
          iprot.skip(ftype)
15663
      elif fid == 2:
15664
        if ftype == TType.STRING:
15665
          self.modelNumber = iprot.readString();
15666
        else:
15667
          iprot.skip(ftype)
15668
      elif fid == 3:
15669
        if ftype == TType.STRING:
15670
          self.modelName = iprot.readString();
15671
        else:
15672
          iprot.skip(ftype)
15673
      elif fid == 4:
15674
        if ftype == TType.STRING:
15675
          self.color = iprot.readString();
15676
        else:
15677
          iprot.skip(ftype)
15678
      else:
15679
        iprot.skip(ftype)
15680
      iprot.readFieldEnd()
15681
    iprot.readStructEnd()
15682
 
15683
  def write(self, oprot):
15684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15686
      return
15687
    oprot.writeStructBegin('checkSimilarItem_args')
15688
    if self.brand is not None:
15689
      oprot.writeFieldBegin('brand', TType.STRING, 1)
15690
      oprot.writeString(self.brand)
15691
      oprot.writeFieldEnd()
15692
    if self.modelNumber is not None:
15693
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
15694
      oprot.writeString(self.modelNumber)
15695
      oprot.writeFieldEnd()
15696
    if self.modelName is not None:
15697
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
15698
      oprot.writeString(self.modelName)
15699
      oprot.writeFieldEnd()
15700
    if self.color is not None:
15701
      oprot.writeFieldBegin('color', TType.STRING, 4)
15702
      oprot.writeString(self.color)
15703
      oprot.writeFieldEnd()
15704
    oprot.writeFieldStop()
15705
    oprot.writeStructEnd()
15706
 
15707
  def validate(self):
15708
    return
15709
 
15710
 
15711
  def __repr__(self):
15712
    L = ['%s=%r' % (key, value)
15713
      for key, value in self.__dict__.iteritems()]
15714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15715
 
15716
  def __eq__(self, other):
15717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15718
 
15719
  def __ne__(self, other):
15720
    return not (self == other)
15721
 
15722
class checkSimilarItem_result:
15723
  """
15724
  Attributes:
15725
   - success
15726
  """
15727
 
15728
  thrift_spec = (
15729
    (0, TType.I64, 'success', None, None, ), # 0
15730
  )
15731
 
15732
  def __init__(self, success=None,):
15733
    self.success = success
15734
 
15735
  def read(self, iprot):
15736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15738
      return
15739
    iprot.readStructBegin()
15740
    while True:
15741
      (fname, ftype, fid) = iprot.readFieldBegin()
15742
      if ftype == TType.STOP:
15743
        break
15744
      if fid == 0:
15745
        if ftype == TType.I64:
15746
          self.success = iprot.readI64();
15747
        else:
15748
          iprot.skip(ftype)
15749
      else:
15750
        iprot.skip(ftype)
15751
      iprot.readFieldEnd()
15752
    iprot.readStructEnd()
15753
 
15754
  def write(self, oprot):
15755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15757
      return
15758
    oprot.writeStructBegin('checkSimilarItem_result')
15759
    if self.success is not None:
15760
      oprot.writeFieldBegin('success', TType.I64, 0)
15761
      oprot.writeI64(self.success)
15762
      oprot.writeFieldEnd()
15763
    oprot.writeFieldStop()
15764
    oprot.writeStructEnd()
15765
 
15766
  def validate(self):
15767
    return
15768
 
15769
 
15770
  def __repr__(self):
15771
    L = ['%s=%r' % (key, value)
15772
      for key, value in self.__dict__.iteritems()]
15773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15774
 
15775
  def __eq__(self, other):
15776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15777
 
15778
  def __ne__(self, other):
15779
    return not (self == other)
15780
 
15781
class validateRiskyStatus_args:
15782
  """
15783
  Attributes:
15784
   - itemId
15785
  """
15786
 
15787
  thrift_spec = (
15788
    None, # 0
15789
    (1, TType.I64, 'itemId', None, None, ), # 1
15790
  )
15791
 
15792
  def __init__(self, itemId=None,):
15793
    self.itemId = itemId
15794
 
15795
  def read(self, iprot):
15796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15798
      return
15799
    iprot.readStructBegin()
15800
    while True:
15801
      (fname, ftype, fid) = iprot.readFieldBegin()
15802
      if ftype == TType.STOP:
15803
        break
15804
      if fid == 1:
15805
        if ftype == TType.I64:
15806
          self.itemId = iprot.readI64();
15807
        else:
15808
          iprot.skip(ftype)
15809
      else:
15810
        iprot.skip(ftype)
15811
      iprot.readFieldEnd()
15812
    iprot.readStructEnd()
15813
 
15814
  def write(self, oprot):
15815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15817
      return
15818
    oprot.writeStructBegin('validateRiskyStatus_args')
15819
    if self.itemId is not None:
15820
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15821
      oprot.writeI64(self.itemId)
15822
      oprot.writeFieldEnd()
15823
    oprot.writeFieldStop()
15824
    oprot.writeStructEnd()
15825
 
15826
  def validate(self):
15827
    return
15828
 
15829
 
15830
  def __repr__(self):
15831
    L = ['%s=%r' % (key, value)
15832
      for key, value in self.__dict__.iteritems()]
15833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15834
 
15835
  def __eq__(self, other):
15836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15837
 
15838
  def __ne__(self, other):
15839
    return not (self == other)
15840
 
15841
class validateRiskyStatus_result:
15842
 
15843
  thrift_spec = (
15844
  )
15845
 
15846
  def read(self, iprot):
15847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15849
      return
15850
    iprot.readStructBegin()
15851
    while True:
15852
      (fname, ftype, fid) = iprot.readFieldBegin()
15853
      if ftype == TType.STOP:
15854
        break
15855
      else:
15856
        iprot.skip(ftype)
15857
      iprot.readFieldEnd()
15858
    iprot.readStructEnd()
15859
 
15860
  def write(self, oprot):
15861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15863
      return
15864
    oprot.writeStructBegin('validateRiskyStatus_result')
15865
    oprot.writeFieldStop()
15866
    oprot.writeStructEnd()
15867
 
15868
  def validate(self):
15869
    return
15870
 
15871
 
15872
  def __repr__(self):
15873
    L = ['%s=%r' % (key, value)
15874
      for key, value in self.__dict__.iteritems()]
15875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15876
 
15877
  def __eq__(self, other):
15878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15879
 
15880
  def __ne__(self, other):
15881
    return not (self == other)
15882
 
15883
class changeItemRiskyFlag_args:
15884
  """
15885
  Attributes:
15886
   - itemId
15887
   - risky
15888
  """
15889
 
15890
  thrift_spec = (
15891
    None, # 0
15892
    (1, TType.I64, 'itemId', None, None, ), # 1
15893
    (2, TType.BOOL, 'risky', None, None, ), # 2
15894
  )
15895
 
15896
  def __init__(self, itemId=None, risky=None,):
15897
    self.itemId = itemId
15898
    self.risky = risky
15899
 
15900
  def read(self, iprot):
15901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15903
      return
15904
    iprot.readStructBegin()
15905
    while True:
15906
      (fname, ftype, fid) = iprot.readFieldBegin()
15907
      if ftype == TType.STOP:
15908
        break
15909
      if fid == 1:
15910
        if ftype == TType.I64:
15911
          self.itemId = iprot.readI64();
15912
        else:
15913
          iprot.skip(ftype)
15914
      elif fid == 2:
15915
        if ftype == TType.BOOL:
15916
          self.risky = iprot.readBool();
15917
        else:
15918
          iprot.skip(ftype)
15919
      else:
15920
        iprot.skip(ftype)
15921
      iprot.readFieldEnd()
15922
    iprot.readStructEnd()
15923
 
15924
  def write(self, oprot):
15925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15927
      return
15928
    oprot.writeStructBegin('changeItemRiskyFlag_args')
15929
    if self.itemId is not None:
15930
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15931
      oprot.writeI64(self.itemId)
15932
      oprot.writeFieldEnd()
15933
    if self.risky is not None:
15934
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
15935
      oprot.writeBool(self.risky)
15936
      oprot.writeFieldEnd()
15937
    oprot.writeFieldStop()
15938
    oprot.writeStructEnd()
15939
 
15940
  def validate(self):
15941
    return
15942
 
15943
 
15944
  def __repr__(self):
15945
    L = ['%s=%r' % (key, value)
15946
      for key, value in self.__dict__.iteritems()]
15947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15948
 
15949
  def __eq__(self, other):
15950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15951
 
15952
  def __ne__(self, other):
15953
    return not (self == other)
15954
 
15955
class changeItemRiskyFlag_result:
15956
 
15957
  thrift_spec = (
15958
  )
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
      else:
15970
        iprot.skip(ftype)
15971
      iprot.readFieldEnd()
15972
    iprot.readStructEnd()
15973
 
15974
  def write(self, oprot):
15975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15977
      return
15978
    oprot.writeStructBegin('changeItemRiskyFlag_result')
15979
    oprot.writeFieldStop()
15980
    oprot.writeStructEnd()
15981
 
15982
  def validate(self):
15983
    return
15984
 
15985
 
15986
  def __repr__(self):
15987
    L = ['%s=%r' % (key, value)
15988
      for key, value in self.__dict__.iteritems()]
15989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15990
 
15991
  def __eq__(self, other):
15992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15993
 
15994
  def __ne__(self, other):
15995
    return not (self == other)
15996
 
15997
class getItemsByRiskyFlag_args:
15998
 
15999
  thrift_spec = (
16000
  )
16001
 
16002
  def read(self, iprot):
16003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16005
      return
16006
    iprot.readStructBegin()
16007
    while True:
16008
      (fname, ftype, fid) = iprot.readFieldBegin()
16009
      if ftype == TType.STOP:
16010
        break
16011
      else:
16012
        iprot.skip(ftype)
16013
      iprot.readFieldEnd()
16014
    iprot.readStructEnd()
16015
 
16016
  def write(self, oprot):
16017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16019
      return
16020
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
16021
    oprot.writeFieldStop()
16022
    oprot.writeStructEnd()
16023
 
16024
  def validate(self):
16025
    return
16026
 
16027
 
16028
  def __repr__(self):
16029
    L = ['%s=%r' % (key, value)
16030
      for key, value in self.__dict__.iteritems()]
16031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16032
 
16033
  def __eq__(self, other):
16034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16035
 
16036
  def __ne__(self, other):
16037
    return not (self == other)
16038
 
16039
class getItemsByRiskyFlag_result:
16040
  """
16041
  Attributes:
16042
   - success
16043
  """
16044
 
16045
  thrift_spec = (
16046
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
16047
  )
16048
 
16049
  def __init__(self, success=None,):
16050
    self.success = success
16051
 
16052
  def read(self, iprot):
16053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16055
      return
16056
    iprot.readStructBegin()
16057
    while True:
16058
      (fname, ftype, fid) = iprot.readFieldBegin()
16059
      if ftype == TType.STOP:
16060
        break
16061
      if fid == 0:
16062
        if ftype == TType.LIST:
16063
          self.success = []
9155 kshitij.so 16064
          (_etype279, _size276) = iprot.readListBegin()
16065
          for _i280 in xrange(_size276):
16066
            _elem281 = Item()
16067
            _elem281.read(iprot)
16068
            self.success.append(_elem281)
5944 mandeep.dh 16069
          iprot.readListEnd()
16070
        else:
16071
          iprot.skip(ftype)
16072
      else:
16073
        iprot.skip(ftype)
16074
      iprot.readFieldEnd()
16075
    iprot.readStructEnd()
16076
 
16077
  def write(self, oprot):
16078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16080
      return
16081
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
16082
    if self.success is not None:
16083
      oprot.writeFieldBegin('success', TType.LIST, 0)
16084
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16085
      for iter282 in self.success:
16086
        iter282.write(oprot)
5944 mandeep.dh 16087
      oprot.writeListEnd()
16088
      oprot.writeFieldEnd()
16089
    oprot.writeFieldStop()
16090
    oprot.writeStructEnd()
16091
 
16092
  def validate(self):
16093
    return
16094
 
16095
 
16096
  def __repr__(self):
16097
    L = ['%s=%r' % (key, value)
16098
      for key, value in self.__dict__.iteritems()]
16099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16100
 
16101
  def __eq__(self, other):
16102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16103
 
16104
  def __ne__(self, other):
16105
    return not (self == other)
16106
 
16107
class getItemsForMasterSheet_args:
16108
  """
16109
  Attributes:
16110
   - category
16111
   - brand
16112
  """
16113
 
16114
  thrift_spec = (
16115
    None, # 0
16116
    (1, TType.STRING, 'category', None, None, ), # 1
16117
    (2, TType.STRING, 'brand', None, None, ), # 2
16118
  )
16119
 
16120
  def __init__(self, category=None, brand=None,):
16121
    self.category = category
16122
    self.brand = brand
16123
 
16124
  def read(self, iprot):
16125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16127
      return
16128
    iprot.readStructBegin()
16129
    while True:
16130
      (fname, ftype, fid) = iprot.readFieldBegin()
16131
      if ftype == TType.STOP:
16132
        break
16133
      if fid == 1:
16134
        if ftype == TType.STRING:
16135
          self.category = iprot.readString();
16136
        else:
16137
          iprot.skip(ftype)
16138
      elif fid == 2:
16139
        if ftype == TType.STRING:
16140
          self.brand = iprot.readString();
16141
        else:
16142
          iprot.skip(ftype)
16143
      else:
16144
        iprot.skip(ftype)
16145
      iprot.readFieldEnd()
16146
    iprot.readStructEnd()
16147
 
16148
  def write(self, oprot):
16149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16151
      return
16152
    oprot.writeStructBegin('getItemsForMasterSheet_args')
16153
    if self.category is not None:
16154
      oprot.writeFieldBegin('category', TType.STRING, 1)
16155
      oprot.writeString(self.category)
16156
      oprot.writeFieldEnd()
16157
    if self.brand is not None:
16158
      oprot.writeFieldBegin('brand', TType.STRING, 2)
16159
      oprot.writeString(self.brand)
16160
      oprot.writeFieldEnd()
16161
    oprot.writeFieldStop()
16162
    oprot.writeStructEnd()
16163
 
16164
  def validate(self):
16165
    return
16166
 
16167
 
16168
  def __repr__(self):
16169
    L = ['%s=%r' % (key, value)
16170
      for key, value in self.__dict__.iteritems()]
16171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16172
 
16173
  def __eq__(self, other):
16174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16175
 
16176
  def __ne__(self, other):
16177
    return not (self == other)
16178
 
16179
class getItemsForMasterSheet_result:
16180
  """
16181
  Attributes:
16182
   - success
16183
  """
16184
 
16185
  thrift_spec = (
16186
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
16187
  )
16188
 
16189
  def __init__(self, success=None,):
16190
    self.success = success
16191
 
16192
  def read(self, iprot):
16193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16195
      return
16196
    iprot.readStructBegin()
16197
    while True:
16198
      (fname, ftype, fid) = iprot.readFieldBegin()
16199
      if ftype == TType.STOP:
16200
        break
16201
      if fid == 0:
16202
        if ftype == TType.LIST:
16203
          self.success = []
9155 kshitij.so 16204
          (_etype286, _size283) = iprot.readListBegin()
16205
          for _i287 in xrange(_size283):
16206
            _elem288 = Item()
16207
            _elem288.read(iprot)
16208
            self.success.append(_elem288)
5944 mandeep.dh 16209
          iprot.readListEnd()
16210
        else:
16211
          iprot.skip(ftype)
16212
      else:
16213
        iprot.skip(ftype)
16214
      iprot.readFieldEnd()
16215
    iprot.readStructEnd()
16216
 
16217
  def write(self, oprot):
16218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16220
      return
16221
    oprot.writeStructBegin('getItemsForMasterSheet_result')
16222
    if self.success is not None:
16223
      oprot.writeFieldBegin('success', TType.LIST, 0)
16224
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16225
      for iter289 in self.success:
16226
        iter289.write(oprot)
5944 mandeep.dh 16227
      oprot.writeListEnd()
16228
      oprot.writeFieldEnd()
16229
    oprot.writeFieldStop()
16230
    oprot.writeStructEnd()
16231
 
16232
  def validate(self):
16233
    return
16234
 
16235
 
16236
  def __repr__(self):
16237
    L = ['%s=%r' % (key, value)
16238
      for key, value in self.__dict__.iteritems()]
16239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16240
 
16241
  def __eq__(self, other):
16242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16243
 
16244
  def __ne__(self, other):
16245
    return not (self == other)
16246
 
16247
class getSimilarItemsCatalogIds_args:
16248
  """
16249
  Attributes:
16250
   - beginIndex
16251
   - totalItems
16252
   - itemId
16253
  """
16254
 
16255
  thrift_spec = (
16256
    None, # 0
16257
    (1, TType.I64, 'beginIndex', None, None, ), # 1
16258
    (2, TType.I64, 'totalItems', None, None, ), # 2
16259
    (3, TType.I64, 'itemId', None, None, ), # 3
16260
  )
16261
 
16262
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
16263
    self.beginIndex = beginIndex
16264
    self.totalItems = totalItems
16265
    self.itemId = itemId
16266
 
16267
  def read(self, iprot):
16268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16270
      return
16271
    iprot.readStructBegin()
16272
    while True:
16273
      (fname, ftype, fid) = iprot.readFieldBegin()
16274
      if ftype == TType.STOP:
16275
        break
16276
      if fid == 1:
16277
        if ftype == TType.I64:
16278
          self.beginIndex = iprot.readI64();
16279
        else:
16280
          iprot.skip(ftype)
16281
      elif fid == 2:
16282
        if ftype == TType.I64:
16283
          self.totalItems = iprot.readI64();
16284
        else:
16285
          iprot.skip(ftype)
16286
      elif fid == 3:
16287
        if ftype == TType.I64:
16288
          self.itemId = iprot.readI64();
16289
        else:
16290
          iprot.skip(ftype)
16291
      else:
16292
        iprot.skip(ftype)
16293
      iprot.readFieldEnd()
16294
    iprot.readStructEnd()
16295
 
16296
  def write(self, oprot):
16297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16299
      return
16300
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
16301
    if self.beginIndex is not None:
16302
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
16303
      oprot.writeI64(self.beginIndex)
16304
      oprot.writeFieldEnd()
16305
    if self.totalItems is not None:
16306
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
16307
      oprot.writeI64(self.totalItems)
16308
      oprot.writeFieldEnd()
16309
    if self.itemId is not None:
16310
      oprot.writeFieldBegin('itemId', TType.I64, 3)
16311
      oprot.writeI64(self.itemId)
16312
      oprot.writeFieldEnd()
16313
    oprot.writeFieldStop()
16314
    oprot.writeStructEnd()
16315
 
16316
  def validate(self):
16317
    return
16318
 
16319
 
16320
  def __repr__(self):
16321
    L = ['%s=%r' % (key, value)
16322
      for key, value in self.__dict__.iteritems()]
16323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16324
 
16325
  def __eq__(self, other):
16326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16327
 
16328
  def __ne__(self, other):
16329
    return not (self == other)
16330
 
16331
class getSimilarItemsCatalogIds_result:
16332
  """
16333
  Attributes:
16334
   - success
16335
  """
16336
 
16337
  thrift_spec = (
16338
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
16339
  )
16340
 
16341
  def __init__(self, success=None,):
16342
    self.success = success
16343
 
16344
  def read(self, iprot):
16345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16347
      return
16348
    iprot.readStructBegin()
16349
    while True:
16350
      (fname, ftype, fid) = iprot.readFieldBegin()
16351
      if ftype == TType.STOP:
16352
        break
16353
      if fid == 0:
16354
        if ftype == TType.LIST:
16355
          self.success = []
9155 kshitij.so 16356
          (_etype293, _size290) = iprot.readListBegin()
16357
          for _i294 in xrange(_size290):
16358
            _elem295 = iprot.readI64();
16359
            self.success.append(_elem295)
5944 mandeep.dh 16360
          iprot.readListEnd()
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('getSimilarItemsCatalogIds_result')
16373
    if self.success is not None:
16374
      oprot.writeFieldBegin('success', TType.LIST, 0)
16375
      oprot.writeListBegin(TType.I64, len(self.success))
9155 kshitij.so 16376
      for iter296 in self.success:
16377
        oprot.writeI64(iter296)
5944 mandeep.dh 16378
      oprot.writeListEnd()
16379
      oprot.writeFieldEnd()
16380
    oprot.writeFieldStop()
16381
    oprot.writeStructEnd()
16382
 
16383
  def validate(self):
16384
    return
16385
 
16386
 
16387
  def __repr__(self):
16388
    L = ['%s=%r' % (key, value)
16389
      for key, value in self.__dict__.iteritems()]
16390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16391
 
16392
  def __eq__(self, other):
16393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16394
 
16395
  def __ne__(self, other):
16396
    return not (self == other)
16397
 
16398
class addProductNotification_args:
16399
  """
16400
  Attributes:
16401
   - itemId
16402
   - email
16403
  """
16404
 
16405
  thrift_spec = None
16406
  def __init__(self, itemId=None, email=None,):
16407
    self.itemId = itemId
16408
    self.email = email
16409
 
16410
  def read(self, iprot):
16411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16413
      return
16414
    iprot.readStructBegin()
16415
    while True:
16416
      (fname, ftype, fid) = iprot.readFieldBegin()
16417
      if ftype == TType.STOP:
16418
        break
16419
      if fid == -1:
16420
        if ftype == TType.I64:
16421
          self.itemId = iprot.readI64();
16422
        else:
16423
          iprot.skip(ftype)
16424
      elif fid == -2:
16425
        if ftype == TType.STRING:
16426
          self.email = iprot.readString();
16427
        else:
16428
          iprot.skip(ftype)
16429
      else:
16430
        iprot.skip(ftype)
16431
      iprot.readFieldEnd()
16432
    iprot.readStructEnd()
16433
 
16434
  def write(self, oprot):
16435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16437
      return
16438
    oprot.writeStructBegin('addProductNotification_args')
16439
    if self.email is not None:
16440
      oprot.writeFieldBegin('email', TType.STRING, -2)
16441
      oprot.writeString(self.email)
16442
      oprot.writeFieldEnd()
16443
    if self.itemId is not None:
16444
      oprot.writeFieldBegin('itemId', TType.I64, -1)
16445
      oprot.writeI64(self.itemId)
16446
      oprot.writeFieldEnd()
16447
    oprot.writeFieldStop()
16448
    oprot.writeStructEnd()
16449
 
16450
  def validate(self):
16451
    return
16452
 
16453
 
16454
  def __repr__(self):
16455
    L = ['%s=%r' % (key, value)
16456
      for key, value in self.__dict__.iteritems()]
16457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16458
 
16459
  def __eq__(self, other):
16460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16461
 
16462
  def __ne__(self, other):
16463
    return not (self == other)
16464
 
16465
class addProductNotification_result:
16466
  """
16467
  Attributes:
16468
   - success
16469
  """
16470
 
16471
  thrift_spec = (
16472
    (0, TType.BOOL, 'success', None, None, ), # 0
16473
  )
16474
 
16475
  def __init__(self, success=None,):
16476
    self.success = success
16477
 
16478
  def read(self, iprot):
16479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16481
      return
16482
    iprot.readStructBegin()
16483
    while True:
16484
      (fname, ftype, fid) = iprot.readFieldBegin()
16485
      if ftype == TType.STOP:
16486
        break
16487
      if fid == 0:
16488
        if ftype == TType.BOOL:
16489
          self.success = iprot.readBool();
16490
        else:
16491
          iprot.skip(ftype)
16492
      else:
16493
        iprot.skip(ftype)
16494
      iprot.readFieldEnd()
16495
    iprot.readStructEnd()
16496
 
16497
  def write(self, oprot):
16498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16500
      return
16501
    oprot.writeStructBegin('addProductNotification_result')
16502
    if self.success is not None:
16503
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16504
      oprot.writeBool(self.success)
16505
      oprot.writeFieldEnd()
16506
    oprot.writeFieldStop()
16507
    oprot.writeStructEnd()
16508
 
16509
  def validate(self):
16510
    return
16511
 
16512
 
16513
  def __repr__(self):
16514
    L = ['%s=%r' % (key, value)
16515
      for key, value in self.__dict__.iteritems()]
16516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16517
 
16518
  def __eq__(self, other):
16519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16520
 
16521
  def __ne__(self, other):
16522
    return not (self == other)
16523
 
16524
class sendProductNotifications_args:
16525
 
16526
  thrift_spec = (
16527
  )
16528
 
16529
  def read(self, iprot):
16530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16532
      return
16533
    iprot.readStructBegin()
16534
    while True:
16535
      (fname, ftype, fid) = iprot.readFieldBegin()
16536
      if ftype == TType.STOP:
16537
        break
16538
      else:
16539
        iprot.skip(ftype)
16540
      iprot.readFieldEnd()
16541
    iprot.readStructEnd()
16542
 
16543
  def write(self, oprot):
16544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16546
      return
16547
    oprot.writeStructBegin('sendProductNotifications_args')
16548
    oprot.writeFieldStop()
16549
    oprot.writeStructEnd()
16550
 
16551
  def validate(self):
16552
    return
16553
 
16554
 
16555
  def __repr__(self):
16556
    L = ['%s=%r' % (key, value)
16557
      for key, value in self.__dict__.iteritems()]
16558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16559
 
16560
  def __eq__(self, other):
16561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16562
 
16563
  def __ne__(self, other):
16564
    return not (self == other)
16565
 
16566
class sendProductNotifications_result:
16567
  """
16568
  Attributes:
16569
   - success
16570
  """
16571
 
16572
  thrift_spec = (
16573
    (0, TType.BOOL, 'success', None, None, ), # 0
16574
  )
16575
 
16576
  def __init__(self, success=None,):
16577
    self.success = success
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 == 0:
16589
        if ftype == TType.BOOL:
16590
          self.success = iprot.readBool();
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('sendProductNotifications_result')
16603
    if self.success is not None:
16604
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16605
      oprot.writeBool(self.success)
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 getAllBrandsByCategory_args:
16626
  """
16627
  Attributes:
16628
   - categoryId
16629
  """
16630
 
16631
  thrift_spec = (
16632
    None, # 0
16633
    (1, TType.I64, 'categoryId', None, None, ), # 1
16634
  )
16635
 
16636
  def __init__(self, categoryId=None,):
16637
    self.categoryId = categoryId
16638
 
16639
  def read(self, iprot):
16640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16642
      return
16643
    iprot.readStructBegin()
16644
    while True:
16645
      (fname, ftype, fid) = iprot.readFieldBegin()
16646
      if ftype == TType.STOP:
16647
        break
16648
      if fid == 1:
16649
        if ftype == TType.I64:
16650
          self.categoryId = iprot.readI64();
16651
        else:
16652
          iprot.skip(ftype)
16653
      else:
16654
        iprot.skip(ftype)
16655
      iprot.readFieldEnd()
16656
    iprot.readStructEnd()
16657
 
16658
  def write(self, oprot):
16659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16661
      return
16662
    oprot.writeStructBegin('getAllBrandsByCategory_args')
16663
    if self.categoryId is not None:
16664
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
16665
      oprot.writeI64(self.categoryId)
16666
      oprot.writeFieldEnd()
16667
    oprot.writeFieldStop()
16668
    oprot.writeStructEnd()
16669
 
16670
  def validate(self):
16671
    return
16672
 
16673
 
16674
  def __repr__(self):
16675
    L = ['%s=%r' % (key, value)
16676
      for key, value in self.__dict__.iteritems()]
16677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16678
 
16679
  def __eq__(self, other):
16680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16681
 
16682
  def __ne__(self, other):
16683
    return not (self == other)
16684
 
16685
class getAllBrandsByCategory_result:
16686
  """
16687
  Attributes:
16688
   - success
16689
  """
16690
 
16691
  thrift_spec = (
16692
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16693
  )
16694
 
16695
  def __init__(self, success=None,):
16696
    self.success = success
16697
 
16698
  def read(self, iprot):
16699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16701
      return
16702
    iprot.readStructBegin()
16703
    while True:
16704
      (fname, ftype, fid) = iprot.readFieldBegin()
16705
      if ftype == TType.STOP:
16706
        break
16707
      if fid == 0:
16708
        if ftype == TType.LIST:
16709
          self.success = []
9155 kshitij.so 16710
          (_etype300, _size297) = iprot.readListBegin()
16711
          for _i301 in xrange(_size297):
16712
            _elem302 = iprot.readString();
16713
            self.success.append(_elem302)
5944 mandeep.dh 16714
          iprot.readListEnd()
16715
        else:
16716
          iprot.skip(ftype)
16717
      else:
16718
        iprot.skip(ftype)
16719
      iprot.readFieldEnd()
16720
    iprot.readStructEnd()
16721
 
16722
  def write(self, oprot):
16723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16725
      return
16726
    oprot.writeStructBegin('getAllBrandsByCategory_result')
16727
    if self.success is not None:
16728
      oprot.writeFieldBegin('success', TType.LIST, 0)
16729
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16730
      for iter303 in self.success:
16731
        oprot.writeString(iter303)
5944 mandeep.dh 16732
      oprot.writeListEnd()
16733
      oprot.writeFieldEnd()
16734
    oprot.writeFieldStop()
16735
    oprot.writeStructEnd()
16736
 
16737
  def validate(self):
16738
    return
16739
 
16740
 
16741
  def __repr__(self):
16742
    L = ['%s=%r' % (key, value)
16743
      for key, value in self.__dict__.iteritems()]
16744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16745
 
16746
  def __eq__(self, other):
16747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16748
 
16749
  def __ne__(self, other):
16750
    return not (self == other)
16751
 
16752
class getAllBrands_args:
16753
 
16754
  thrift_spec = (
16755
  )
16756
 
16757
  def read(self, iprot):
16758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16760
      return
16761
    iprot.readStructBegin()
16762
    while True:
16763
      (fname, ftype, fid) = iprot.readFieldBegin()
16764
      if ftype == TType.STOP:
16765
        break
16766
      else:
16767
        iprot.skip(ftype)
16768
      iprot.readFieldEnd()
16769
    iprot.readStructEnd()
16770
 
16771
  def write(self, oprot):
16772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16774
      return
16775
    oprot.writeStructBegin('getAllBrands_args')
16776
    oprot.writeFieldStop()
16777
    oprot.writeStructEnd()
16778
 
16779
  def validate(self):
16780
    return
16781
 
16782
 
16783
  def __repr__(self):
16784
    L = ['%s=%r' % (key, value)
16785
      for key, value in self.__dict__.iteritems()]
16786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16787
 
16788
  def __eq__(self, other):
16789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16790
 
16791
  def __ne__(self, other):
16792
    return not (self == other)
16793
 
16794
class getAllBrands_result:
16795
  """
16796
  Attributes:
16797
   - success
16798
  """
16799
 
16800
  thrift_spec = (
16801
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16802
  )
16803
 
16804
  def __init__(self, success=None,):
16805
    self.success = success
16806
 
16807
  def read(self, iprot):
16808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16810
      return
16811
    iprot.readStructBegin()
16812
    while True:
16813
      (fname, ftype, fid) = iprot.readFieldBegin()
16814
      if ftype == TType.STOP:
16815
        break
16816
      if fid == 0:
16817
        if ftype == TType.LIST:
16818
          self.success = []
9155 kshitij.so 16819
          (_etype307, _size304) = iprot.readListBegin()
16820
          for _i308 in xrange(_size304):
16821
            _elem309 = iprot.readString();
16822
            self.success.append(_elem309)
5944 mandeep.dh 16823
          iprot.readListEnd()
16824
        else:
16825
          iprot.skip(ftype)
16826
      else:
16827
        iprot.skip(ftype)
16828
      iprot.readFieldEnd()
16829
    iprot.readStructEnd()
16830
 
16831
  def write(self, oprot):
16832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16834
      return
16835
    oprot.writeStructBegin('getAllBrands_result')
16836
    if self.success is not None:
16837
      oprot.writeFieldBegin('success', TType.LIST, 0)
16838
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16839
      for iter310 in self.success:
16840
        oprot.writeString(iter310)
5944 mandeep.dh 16841
      oprot.writeListEnd()
16842
      oprot.writeFieldEnd()
16843
    oprot.writeFieldStop()
16844
    oprot.writeStructEnd()
16845
 
16846
  def validate(self):
16847
    return
16848
 
16849
 
16850
  def __repr__(self):
16851
    L = ['%s=%r' % (key, value)
16852
      for key, value in self.__dict__.iteritems()]
16853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16854
 
16855
  def __eq__(self, other):
16856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16857
 
16858
  def __ne__(self, other):
16859
    return not (self == other)
16860
 
16861
class getAllSources_args:
16862
 
16863
  thrift_spec = (
16864
  )
16865
 
16866
  def read(self, iprot):
16867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16869
      return
16870
    iprot.readStructBegin()
16871
    while True:
16872
      (fname, ftype, fid) = iprot.readFieldBegin()
16873
      if ftype == TType.STOP:
16874
        break
16875
      else:
16876
        iprot.skip(ftype)
16877
      iprot.readFieldEnd()
16878
    iprot.readStructEnd()
16879
 
16880
  def write(self, oprot):
16881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16883
      return
16884
    oprot.writeStructBegin('getAllSources_args')
16885
    oprot.writeFieldStop()
16886
    oprot.writeStructEnd()
16887
 
16888
  def validate(self):
16889
    return
16890
 
16891
 
16892
  def __repr__(self):
16893
    L = ['%s=%r' % (key, value)
16894
      for key, value in self.__dict__.iteritems()]
16895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16896
 
16897
  def __eq__(self, other):
16898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16899
 
16900
  def __ne__(self, other):
16901
    return not (self == other)
16902
 
16903
class getAllSources_result:
16904
  """
16905
  Attributes:
16906
   - success
16907
  """
16908
 
16909
  thrift_spec = (
16910
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
16911
  )
16912
 
16913
  def __init__(self, success=None,):
16914
    self.success = success
16915
 
16916
  def read(self, iprot):
16917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16919
      return
16920
    iprot.readStructBegin()
16921
    while True:
16922
      (fname, ftype, fid) = iprot.readFieldBegin()
16923
      if ftype == TType.STOP:
16924
        break
16925
      if fid == 0:
16926
        if ftype == TType.LIST:
16927
          self.success = []
9155 kshitij.so 16928
          (_etype314, _size311) = iprot.readListBegin()
16929
          for _i315 in xrange(_size311):
16930
            _elem316 = Source()
16931
            _elem316.read(iprot)
16932
            self.success.append(_elem316)
5944 mandeep.dh 16933
          iprot.readListEnd()
16934
        else:
16935
          iprot.skip(ftype)
16936
      else:
16937
        iprot.skip(ftype)
16938
      iprot.readFieldEnd()
16939
    iprot.readStructEnd()
16940
 
16941
  def write(self, oprot):
16942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16944
      return
16945
    oprot.writeStructBegin('getAllSources_result')
16946
    if self.success is not None:
16947
      oprot.writeFieldBegin('success', TType.LIST, 0)
16948
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16949
      for iter317 in self.success:
16950
        iter317.write(oprot)
5944 mandeep.dh 16951
      oprot.writeListEnd()
16952
      oprot.writeFieldEnd()
16953
    oprot.writeFieldStop()
16954
    oprot.writeStructEnd()
16955
 
16956
  def validate(self):
16957
    return
16958
 
16959
 
16960
  def __repr__(self):
16961
    L = ['%s=%r' % (key, value)
16962
      for key, value in self.__dict__.iteritems()]
16963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16964
 
16965
  def __eq__(self, other):
16966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16967
 
16968
  def __ne__(self, other):
16969
    return not (self == other)
16970
 
16971
class getItemPricingBySource_args:
16972
  """
16973
  Attributes:
16974
   - itemId
16975
   - sourceId
16976
  """
16977
 
16978
  thrift_spec = (
16979
    None, # 0
16980
    (1, TType.I64, 'itemId', None, None, ), # 1
16981
    (2, TType.I64, 'sourceId', None, None, ), # 2
16982
  )
16983
 
16984
  def __init__(self, itemId=None, sourceId=None,):
16985
    self.itemId = itemId
16986
    self.sourceId = sourceId
16987
 
16988
  def read(self, iprot):
16989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16991
      return
16992
    iprot.readStructBegin()
16993
    while True:
16994
      (fname, ftype, fid) = iprot.readFieldBegin()
16995
      if ftype == TType.STOP:
16996
        break
16997
      if fid == 1:
16998
        if ftype == TType.I64:
16999
          self.itemId = iprot.readI64();
17000
        else:
17001
          iprot.skip(ftype)
17002
      elif fid == 2:
17003
        if ftype == TType.I64:
17004
          self.sourceId = iprot.readI64();
17005
        else:
17006
          iprot.skip(ftype)
17007
      else:
17008
        iprot.skip(ftype)
17009
      iprot.readFieldEnd()
17010
    iprot.readStructEnd()
17011
 
17012
  def write(self, oprot):
17013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17015
      return
17016
    oprot.writeStructBegin('getItemPricingBySource_args')
17017
    if self.itemId is not None:
17018
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17019
      oprot.writeI64(self.itemId)
17020
      oprot.writeFieldEnd()
17021
    if self.sourceId is not None:
17022
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
17023
      oprot.writeI64(self.sourceId)
17024
      oprot.writeFieldEnd()
17025
    oprot.writeFieldStop()
17026
    oprot.writeStructEnd()
17027
 
17028
  def validate(self):
17029
    return
17030
 
17031
 
17032
  def __repr__(self):
17033
    L = ['%s=%r' % (key, value)
17034
      for key, value in self.__dict__.iteritems()]
17035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17036
 
17037
  def __eq__(self, other):
17038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17039
 
17040
  def __ne__(self, other):
17041
    return not (self == other)
17042
 
17043
class getItemPricingBySource_result:
17044
  """
17045
  Attributes:
17046
   - success
17047
   - cex
17048
  """
17049
 
17050
  thrift_spec = (
17051
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
17052
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17053
  )
17054
 
17055
  def __init__(self, success=None, cex=None,):
17056
    self.success = success
17057
    self.cex = cex
17058
 
17059
  def read(self, iprot):
17060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17062
      return
17063
    iprot.readStructBegin()
17064
    while True:
17065
      (fname, ftype, fid) = iprot.readFieldBegin()
17066
      if ftype == TType.STOP:
17067
        break
17068
      if fid == 0:
17069
        if ftype == TType.STRUCT:
17070
          self.success = SourceItemPricing()
17071
          self.success.read(iprot)
17072
        else:
17073
          iprot.skip(ftype)
17074
      elif fid == 1:
17075
        if ftype == TType.STRUCT:
17076
          self.cex = CatalogServiceException()
17077
          self.cex.read(iprot)
17078
        else:
17079
          iprot.skip(ftype)
17080
      else:
17081
        iprot.skip(ftype)
17082
      iprot.readFieldEnd()
17083
    iprot.readStructEnd()
17084
 
17085
  def write(self, oprot):
17086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17088
      return
17089
    oprot.writeStructBegin('getItemPricingBySource_result')
17090
    if self.success is not None:
17091
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
17092
      self.success.write(oprot)
17093
      oprot.writeFieldEnd()
17094
    if self.cex is not None:
17095
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17096
      self.cex.write(oprot)
17097
      oprot.writeFieldEnd()
17098
    oprot.writeFieldStop()
17099
    oprot.writeStructEnd()
17100
 
17101
  def validate(self):
17102
    return
17103
 
17104
 
17105
  def __repr__(self):
17106
    L = ['%s=%r' % (key, value)
17107
      for key, value in self.__dict__.iteritems()]
17108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17109
 
17110
  def __eq__(self, other):
17111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17112
 
17113
  def __ne__(self, other):
17114
    return not (self == other)
17115
 
17116
class addSourceItemPricing_args:
17117
  """
17118
  Attributes:
17119
   - sourceItemPricing
17120
  """
17121
 
17122
  thrift_spec = (
17123
    None, # 0
17124
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
17125
  )
17126
 
17127
  def __init__(self, sourceItemPricing=None,):
17128
    self.sourceItemPricing = sourceItemPricing
17129
 
17130
  def read(self, iprot):
17131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17133
      return
17134
    iprot.readStructBegin()
17135
    while True:
17136
      (fname, ftype, fid) = iprot.readFieldBegin()
17137
      if ftype == TType.STOP:
17138
        break
17139
      if fid == 1:
17140
        if ftype == TType.STRUCT:
17141
          self.sourceItemPricing = SourceItemPricing()
17142
          self.sourceItemPricing.read(iprot)
17143
        else:
17144
          iprot.skip(ftype)
17145
      else:
17146
        iprot.skip(ftype)
17147
      iprot.readFieldEnd()
17148
    iprot.readStructEnd()
17149
 
17150
  def write(self, oprot):
17151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17153
      return
17154
    oprot.writeStructBegin('addSourceItemPricing_args')
17155
    if self.sourceItemPricing is not None:
17156
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
17157
      self.sourceItemPricing.write(oprot)
17158
      oprot.writeFieldEnd()
17159
    oprot.writeFieldStop()
17160
    oprot.writeStructEnd()
17161
 
17162
  def validate(self):
17163
    return
17164
 
17165
 
17166
  def __repr__(self):
17167
    L = ['%s=%r' % (key, value)
17168
      for key, value in self.__dict__.iteritems()]
17169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17170
 
17171
  def __eq__(self, other):
17172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17173
 
17174
  def __ne__(self, other):
17175
    return not (self == other)
17176
 
17177
class addSourceItemPricing_result:
17178
  """
17179
  Attributes:
17180
   - cex
17181
  """
17182
 
17183
  thrift_spec = (
17184
    None, # 0
17185
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17186
  )
17187
 
17188
  def __init__(self, cex=None,):
17189
    self.cex = cex
17190
 
17191
  def read(self, iprot):
17192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17194
      return
17195
    iprot.readStructBegin()
17196
    while True:
17197
      (fname, ftype, fid) = iprot.readFieldBegin()
17198
      if ftype == TType.STOP:
17199
        break
17200
      if fid == 1:
17201
        if ftype == TType.STRUCT:
17202
          self.cex = CatalogServiceException()
17203
          self.cex.read(iprot)
17204
        else:
17205
          iprot.skip(ftype)
17206
      else:
17207
        iprot.skip(ftype)
17208
      iprot.readFieldEnd()
17209
    iprot.readStructEnd()
17210
 
17211
  def write(self, oprot):
17212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17214
      return
17215
    oprot.writeStructBegin('addSourceItemPricing_result')
17216
    if self.cex is not None:
17217
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17218
      self.cex.write(oprot)
17219
      oprot.writeFieldEnd()
17220
    oprot.writeFieldStop()
17221
    oprot.writeStructEnd()
17222
 
17223
  def validate(self):
17224
    return
17225
 
17226
 
17227
  def __repr__(self):
17228
    L = ['%s=%r' % (key, value)
17229
      for key, value in self.__dict__.iteritems()]
17230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17231
 
17232
  def __eq__(self, other):
17233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17234
 
17235
  def __ne__(self, other):
17236
    return not (self == other)
17237
 
17238
class getAllSourcePricing_args:
17239
  """
17240
  Attributes:
17241
   - itemId
17242
  """
17243
 
17244
  thrift_spec = (
17245
    None, # 0
17246
    (1, TType.I64, 'itemId', None, None, ), # 1
17247
  )
17248
 
17249
  def __init__(self, itemId=None,):
17250
    self.itemId = itemId
17251
 
17252
  def read(self, iprot):
17253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17255
      return
17256
    iprot.readStructBegin()
17257
    while True:
17258
      (fname, ftype, fid) = iprot.readFieldBegin()
17259
      if ftype == TType.STOP:
17260
        break
17261
      if fid == 1:
17262
        if ftype == TType.I64:
17263
          self.itemId = iprot.readI64();
17264
        else:
17265
          iprot.skip(ftype)
17266
      else:
17267
        iprot.skip(ftype)
17268
      iprot.readFieldEnd()
17269
    iprot.readStructEnd()
17270
 
17271
  def write(self, oprot):
17272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17274
      return
17275
    oprot.writeStructBegin('getAllSourcePricing_args')
17276
    if self.itemId is not None:
17277
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17278
      oprot.writeI64(self.itemId)
17279
      oprot.writeFieldEnd()
17280
    oprot.writeFieldStop()
17281
    oprot.writeStructEnd()
17282
 
17283
  def validate(self):
17284
    return
17285
 
17286
 
17287
  def __repr__(self):
17288
    L = ['%s=%r' % (key, value)
17289
      for key, value in self.__dict__.iteritems()]
17290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17291
 
17292
  def __eq__(self, other):
17293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17294
 
17295
  def __ne__(self, other):
17296
    return not (self == other)
17297
 
17298
class getAllSourcePricing_result:
17299
  """
17300
  Attributes:
17301
   - success
17302
   - cex
17303
  """
17304
 
17305
  thrift_spec = (
17306
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
17307
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17308
  )
17309
 
17310
  def __init__(self, success=None, cex=None,):
17311
    self.success = success
17312
    self.cex = cex
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 == 0:
17324
        if ftype == TType.LIST:
17325
          self.success = []
9155 kshitij.so 17326
          (_etype321, _size318) = iprot.readListBegin()
17327
          for _i322 in xrange(_size318):
17328
            _elem323 = SourceItemPricing()
17329
            _elem323.read(iprot)
17330
            self.success.append(_elem323)
5944 mandeep.dh 17331
          iprot.readListEnd()
17332
        else:
17333
          iprot.skip(ftype)
17334
      elif fid == 1:
17335
        if ftype == TType.STRUCT:
17336
          self.cex = CatalogServiceException()
17337
          self.cex.read(iprot)
17338
        else:
17339
          iprot.skip(ftype)
17340
      else:
17341
        iprot.skip(ftype)
17342
      iprot.readFieldEnd()
17343
    iprot.readStructEnd()
17344
 
17345
  def write(self, oprot):
17346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17348
      return
17349
    oprot.writeStructBegin('getAllSourcePricing_result')
17350
    if self.success is not None:
17351
      oprot.writeFieldBegin('success', TType.LIST, 0)
17352
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17353
      for iter324 in self.success:
17354
        iter324.write(oprot)
5944 mandeep.dh 17355
      oprot.writeListEnd()
17356
      oprot.writeFieldEnd()
17357
    if self.cex is not None:
17358
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17359
      self.cex.write(oprot)
17360
      oprot.writeFieldEnd()
17361
    oprot.writeFieldStop()
17362
    oprot.writeStructEnd()
17363
 
17364
  def validate(self):
17365
    return
17366
 
17367
 
17368
  def __repr__(self):
17369
    L = ['%s=%r' % (key, value)
17370
      for key, value in self.__dict__.iteritems()]
17371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17372
 
17373
  def __eq__(self, other):
17374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17375
 
17376
  def __ne__(self, other):
17377
    return not (self == other)
17378
 
17379
class getItemForSource_args:
17380
  """
17381
  Attributes:
17382
   - item_id
17383
   - sourceId
17384
  """
17385
 
17386
  thrift_spec = (
17387
    None, # 0
17388
    (1, TType.I64, 'item_id', None, None, ), # 1
17389
    (2, TType.I64, 'sourceId', None, None, ), # 2
17390
  )
17391
 
17392
  def __init__(self, item_id=None, sourceId=None,):
17393
    self.item_id = item_id
17394
    self.sourceId = sourceId
17395
 
17396
  def read(self, iprot):
17397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17399
      return
17400
    iprot.readStructBegin()
17401
    while True:
17402
      (fname, ftype, fid) = iprot.readFieldBegin()
17403
      if ftype == TType.STOP:
17404
        break
17405
      if fid == 1:
17406
        if ftype == TType.I64:
17407
          self.item_id = iprot.readI64();
17408
        else:
17409
          iprot.skip(ftype)
17410
      elif fid == 2:
17411
        if ftype == TType.I64:
17412
          self.sourceId = iprot.readI64();
17413
        else:
17414
          iprot.skip(ftype)
17415
      else:
17416
        iprot.skip(ftype)
17417
      iprot.readFieldEnd()
17418
    iprot.readStructEnd()
17419
 
17420
  def write(self, oprot):
17421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17423
      return
17424
    oprot.writeStructBegin('getItemForSource_args')
17425
    if self.item_id is not None:
17426
      oprot.writeFieldBegin('item_id', TType.I64, 1)
17427
      oprot.writeI64(self.item_id)
17428
      oprot.writeFieldEnd()
17429
    if self.sourceId is not None:
17430
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
17431
      oprot.writeI64(self.sourceId)
17432
      oprot.writeFieldEnd()
17433
    oprot.writeFieldStop()
17434
    oprot.writeStructEnd()
17435
 
17436
  def validate(self):
17437
    return
17438
 
17439
 
17440
  def __repr__(self):
17441
    L = ['%s=%r' % (key, value)
17442
      for key, value in self.__dict__.iteritems()]
17443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17444
 
17445
  def __eq__(self, other):
17446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17447
 
17448
  def __ne__(self, other):
17449
    return not (self == other)
17450
 
17451
class getItemForSource_result:
17452
  """
17453
  Attributes:
17454
   - success
17455
   - cex
17456
  """
17457
 
17458
  thrift_spec = (
17459
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
17460
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17461
  )
17462
 
17463
  def __init__(self, success=None, cex=None,):
17464
    self.success = success
17465
    self.cex = cex
17466
 
17467
  def read(self, iprot):
17468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17470
      return
17471
    iprot.readStructBegin()
17472
    while True:
17473
      (fname, ftype, fid) = iprot.readFieldBegin()
17474
      if ftype == TType.STOP:
17475
        break
17476
      if fid == 0:
17477
        if ftype == TType.STRUCT:
17478
          self.success = Item()
17479
          self.success.read(iprot)
17480
        else:
17481
          iprot.skip(ftype)
17482
      elif fid == 1:
17483
        if ftype == TType.STRUCT:
17484
          self.cex = CatalogServiceException()
17485
          self.cex.read(iprot)
17486
        else:
17487
          iprot.skip(ftype)
17488
      else:
17489
        iprot.skip(ftype)
17490
      iprot.readFieldEnd()
17491
    iprot.readStructEnd()
17492
 
17493
  def write(self, oprot):
17494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17496
      return
17497
    oprot.writeStructBegin('getItemForSource_result')
17498
    if self.success is not None:
17499
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
17500
      self.success.write(oprot)
17501
      oprot.writeFieldEnd()
17502
    if self.cex is not None:
17503
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17504
      self.cex.write(oprot)
17505
      oprot.writeFieldEnd()
17506
    oprot.writeFieldStop()
17507
    oprot.writeStructEnd()
17508
 
17509
  def validate(self):
17510
    return
17511
 
17512
 
17513
  def __repr__(self):
17514
    L = ['%s=%r' % (key, value)
17515
      for key, value in self.__dict__.iteritems()]
17516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17517
 
17518
  def __eq__(self, other):
17519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17520
 
17521
  def __ne__(self, other):
17522
    return not (self == other)
17523
 
17524
class searchItemsInRange_args:
17525
  """
17526
  Attributes:
17527
   - searchTerms
17528
   - offset
17529
   - limit
17530
  """
17531
 
17532
  thrift_spec = (
17533
    None, # 0
17534
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
17535
    (2, TType.I64, 'offset', None, None, ), # 2
17536
    (3, TType.I64, 'limit', None, None, ), # 3
17537
  )
17538
 
17539
  def __init__(self, searchTerms=None, offset=None, limit=None,):
17540
    self.searchTerms = searchTerms
17541
    self.offset = offset
17542
    self.limit = limit
17543
 
17544
  def read(self, iprot):
17545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17547
      return
17548
    iprot.readStructBegin()
17549
    while True:
17550
      (fname, ftype, fid) = iprot.readFieldBegin()
17551
      if ftype == TType.STOP:
17552
        break
17553
      if fid == 1:
17554
        if ftype == TType.LIST:
17555
          self.searchTerms = []
9155 kshitij.so 17556
          (_etype328, _size325) = iprot.readListBegin()
17557
          for _i329 in xrange(_size325):
17558
            _elem330 = iprot.readString();
17559
            self.searchTerms.append(_elem330)
5944 mandeep.dh 17560
          iprot.readListEnd()
17561
        else:
17562
          iprot.skip(ftype)
17563
      elif fid == 2:
17564
        if ftype == TType.I64:
17565
          self.offset = iprot.readI64();
17566
        else:
17567
          iprot.skip(ftype)
17568
      elif fid == 3:
17569
        if ftype == TType.I64:
17570
          self.limit = iprot.readI64();
17571
        else:
17572
          iprot.skip(ftype)
17573
      else:
17574
        iprot.skip(ftype)
17575
      iprot.readFieldEnd()
17576
    iprot.readStructEnd()
17577
 
17578
  def write(self, oprot):
17579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17581
      return
17582
    oprot.writeStructBegin('searchItemsInRange_args')
17583
    if self.searchTerms is not None:
17584
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
17585
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 17586
      for iter331 in self.searchTerms:
17587
        oprot.writeString(iter331)
5944 mandeep.dh 17588
      oprot.writeListEnd()
17589
      oprot.writeFieldEnd()
17590
    if self.offset is not None:
17591
      oprot.writeFieldBegin('offset', TType.I64, 2)
17592
      oprot.writeI64(self.offset)
17593
      oprot.writeFieldEnd()
17594
    if self.limit is not None:
17595
      oprot.writeFieldBegin('limit', TType.I64, 3)
17596
      oprot.writeI64(self.limit)
17597
      oprot.writeFieldEnd()
17598
    oprot.writeFieldStop()
17599
    oprot.writeStructEnd()
17600
 
17601
  def validate(self):
17602
    return
17603
 
17604
 
17605
  def __repr__(self):
17606
    L = ['%s=%r' % (key, value)
17607
      for key, value in self.__dict__.iteritems()]
17608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17609
 
17610
  def __eq__(self, other):
17611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17612
 
17613
  def __ne__(self, other):
17614
    return not (self == other)
17615
 
17616
class searchItemsInRange_result:
17617
  """
17618
  Attributes:
17619
   - success
17620
  """
17621
 
17622
  thrift_spec = (
17623
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17624
  )
17625
 
17626
  def __init__(self, success=None,):
17627
    self.success = success
17628
 
17629
  def read(self, iprot):
17630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17632
      return
17633
    iprot.readStructBegin()
17634
    while True:
17635
      (fname, ftype, fid) = iprot.readFieldBegin()
17636
      if ftype == TType.STOP:
17637
        break
17638
      if fid == 0:
17639
        if ftype == TType.LIST:
17640
          self.success = []
9155 kshitij.so 17641
          (_etype335, _size332) = iprot.readListBegin()
17642
          for _i336 in xrange(_size332):
17643
            _elem337 = Item()
17644
            _elem337.read(iprot)
17645
            self.success.append(_elem337)
5944 mandeep.dh 17646
          iprot.readListEnd()
17647
        else:
17648
          iprot.skip(ftype)
17649
      else:
17650
        iprot.skip(ftype)
17651
      iprot.readFieldEnd()
17652
    iprot.readStructEnd()
17653
 
17654
  def write(self, oprot):
17655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17657
      return
17658
    oprot.writeStructBegin('searchItemsInRange_result')
17659
    if self.success is not None:
17660
      oprot.writeFieldBegin('success', TType.LIST, 0)
17661
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17662
      for iter338 in self.success:
17663
        iter338.write(oprot)
5944 mandeep.dh 17664
      oprot.writeListEnd()
17665
      oprot.writeFieldEnd()
17666
    oprot.writeFieldStop()
17667
    oprot.writeStructEnd()
17668
 
17669
  def validate(self):
17670
    return
17671
 
17672
 
17673
  def __repr__(self):
17674
    L = ['%s=%r' % (key, value)
17675
      for key, value in self.__dict__.iteritems()]
17676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17677
 
17678
  def __eq__(self, other):
17679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17680
 
17681
  def __ne__(self, other):
17682
    return not (self == other)
17683
 
17684
class getSearchResultCount_args:
17685
  """
17686
  Attributes:
17687
   - searchTerms
17688
  """
17689
 
17690
  thrift_spec = (
17691
    None, # 0
17692
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
17693
  )
17694
 
17695
  def __init__(self, searchTerms=None,):
17696
    self.searchTerms = searchTerms
17697
 
17698
  def read(self, iprot):
17699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17701
      return
17702
    iprot.readStructBegin()
17703
    while True:
17704
      (fname, ftype, fid) = iprot.readFieldBegin()
17705
      if ftype == TType.STOP:
17706
        break
17707
      if fid == 1:
17708
        if ftype == TType.LIST:
17709
          self.searchTerms = []
9155 kshitij.so 17710
          (_etype342, _size339) = iprot.readListBegin()
17711
          for _i343 in xrange(_size339):
17712
            _elem344 = iprot.readString();
17713
            self.searchTerms.append(_elem344)
5944 mandeep.dh 17714
          iprot.readListEnd()
17715
        else:
17716
          iprot.skip(ftype)
17717
      else:
17718
        iprot.skip(ftype)
17719
      iprot.readFieldEnd()
17720
    iprot.readStructEnd()
17721
 
17722
  def write(self, oprot):
17723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17725
      return
17726
    oprot.writeStructBegin('getSearchResultCount_args')
17727
    if self.searchTerms is not None:
17728
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
17729
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 17730
      for iter345 in self.searchTerms:
17731
        oprot.writeString(iter345)
5944 mandeep.dh 17732
      oprot.writeListEnd()
17733
      oprot.writeFieldEnd()
17734
    oprot.writeFieldStop()
17735
    oprot.writeStructEnd()
17736
 
17737
  def validate(self):
17738
    return
17739
 
17740
 
17741
  def __repr__(self):
17742
    L = ['%s=%r' % (key, value)
17743
      for key, value in self.__dict__.iteritems()]
17744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17745
 
17746
  def __eq__(self, other):
17747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17748
 
17749
  def __ne__(self, other):
17750
    return not (self == other)
17751
 
17752
class getSearchResultCount_result:
17753
  """
17754
  Attributes:
17755
   - success
17756
  """
17757
 
17758
  thrift_spec = (
17759
    (0, TType.I32, 'success', None, None, ), # 0
17760
  )
17761
 
17762
  def __init__(self, success=None,):
17763
    self.success = success
17764
 
17765
  def read(self, iprot):
17766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17768
      return
17769
    iprot.readStructBegin()
17770
    while True:
17771
      (fname, ftype, fid) = iprot.readFieldBegin()
17772
      if ftype == TType.STOP:
17773
        break
17774
      if fid == 0:
17775
        if ftype == TType.I32:
17776
          self.success = iprot.readI32();
17777
        else:
17778
          iprot.skip(ftype)
17779
      else:
17780
        iprot.skip(ftype)
17781
      iprot.readFieldEnd()
17782
    iprot.readStructEnd()
17783
 
17784
  def write(self, oprot):
17785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17787
      return
17788
    oprot.writeStructBegin('getSearchResultCount_result')
17789
    if self.success is not None:
17790
      oprot.writeFieldBegin('success', TType.I32, 0)
17791
      oprot.writeI32(self.success)
17792
      oprot.writeFieldEnd()
17793
    oprot.writeFieldStop()
17794
    oprot.writeStructEnd()
17795
 
17796
  def validate(self):
17797
    return
17798
 
17799
 
17800
  def __repr__(self):
17801
    L = ['%s=%r' % (key, value)
17802
      for key, value in self.__dict__.iteritems()]
17803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17804
 
17805
  def __eq__(self, other):
17806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17807
 
17808
  def __ne__(self, other):
17809
    return not (self == other)
17810
 
17811
class getProductNotifications_args:
17812
  """
17813
  Attributes:
17814
   - startDateTime
17815
  """
17816
 
17817
  thrift_spec = (
17818
    None, # 0
17819
    (1, TType.I64, 'startDateTime', None, None, ), # 1
17820
  )
17821
 
17822
  def __init__(self, startDateTime=None,):
17823
    self.startDateTime = startDateTime
17824
 
17825
  def read(self, iprot):
17826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17828
      return
17829
    iprot.readStructBegin()
17830
    while True:
17831
      (fname, ftype, fid) = iprot.readFieldBegin()
17832
      if ftype == TType.STOP:
17833
        break
17834
      if fid == 1:
17835
        if ftype == TType.I64:
17836
          self.startDateTime = iprot.readI64();
17837
        else:
17838
          iprot.skip(ftype)
17839
      else:
17840
        iprot.skip(ftype)
17841
      iprot.readFieldEnd()
17842
    iprot.readStructEnd()
17843
 
17844
  def write(self, oprot):
17845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17847
      return
17848
    oprot.writeStructBegin('getProductNotifications_args')
17849
    if self.startDateTime is not None:
17850
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17851
      oprot.writeI64(self.startDateTime)
17852
      oprot.writeFieldEnd()
17853
    oprot.writeFieldStop()
17854
    oprot.writeStructEnd()
17855
 
17856
  def validate(self):
17857
    return
17858
 
17859
 
17860
  def __repr__(self):
17861
    L = ['%s=%r' % (key, value)
17862
      for key, value in self.__dict__.iteritems()]
17863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17864
 
17865
  def __eq__(self, other):
17866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17867
 
17868
  def __ne__(self, other):
17869
    return not (self == other)
17870
 
17871
class getProductNotifications_result:
17872
  """
17873
  Attributes:
17874
   - success
17875
  """
17876
 
17877
  thrift_spec = (
17878
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
17879
  )
17880
 
17881
  def __init__(self, success=None,):
17882
    self.success = success
17883
 
17884
  def read(self, iprot):
17885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17887
      return
17888
    iprot.readStructBegin()
17889
    while True:
17890
      (fname, ftype, fid) = iprot.readFieldBegin()
17891
      if ftype == TType.STOP:
17892
        break
17893
      if fid == 0:
17894
        if ftype == TType.LIST:
17895
          self.success = []
9155 kshitij.so 17896
          (_etype349, _size346) = iprot.readListBegin()
17897
          for _i350 in xrange(_size346):
17898
            _elem351 = ProductNotificationRequest()
17899
            _elem351.read(iprot)
17900
            self.success.append(_elem351)
5944 mandeep.dh 17901
          iprot.readListEnd()
17902
        else:
17903
          iprot.skip(ftype)
17904
      else:
17905
        iprot.skip(ftype)
17906
      iprot.readFieldEnd()
17907
    iprot.readStructEnd()
17908
 
17909
  def write(self, oprot):
17910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17912
      return
17913
    oprot.writeStructBegin('getProductNotifications_result')
17914
    if self.success is not None:
17915
      oprot.writeFieldBegin('success', TType.LIST, 0)
17916
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17917
      for iter352 in self.success:
17918
        iter352.write(oprot)
5944 mandeep.dh 17919
      oprot.writeListEnd()
17920
      oprot.writeFieldEnd()
17921
    oprot.writeFieldStop()
17922
    oprot.writeStructEnd()
17923
 
17924
  def validate(self):
17925
    return
17926
 
17927
 
17928
  def __repr__(self):
17929
    L = ['%s=%r' % (key, value)
17930
      for key, value in self.__dict__.iteritems()]
17931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17932
 
17933
  def __eq__(self, other):
17934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17935
 
17936
  def __ne__(self, other):
17937
    return not (self == other)
17938
 
17939
class getProductNotificationRequestCount_args:
17940
  """
17941
  Attributes:
17942
   - startDateTime
7897 amar.kumar 17943
   - categoryId
5944 mandeep.dh 17944
  """
17945
 
17946
  thrift_spec = (
17947
    None, # 0
17948
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 17949
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 17950
  )
17951
 
7897 amar.kumar 17952
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 17953
    self.startDateTime = startDateTime
7897 amar.kumar 17954
    self.categoryId = categoryId
5944 mandeep.dh 17955
 
17956
  def read(self, iprot):
17957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17959
      return
17960
    iprot.readStructBegin()
17961
    while True:
17962
      (fname, ftype, fid) = iprot.readFieldBegin()
17963
      if ftype == TType.STOP:
17964
        break
17965
      if fid == 1:
17966
        if ftype == TType.I64:
17967
          self.startDateTime = iprot.readI64();
17968
        else:
17969
          iprot.skip(ftype)
7897 amar.kumar 17970
      elif fid == 2:
17971
        if ftype == TType.I64:
17972
          self.categoryId = iprot.readI64();
17973
        else:
17974
          iprot.skip(ftype)
5944 mandeep.dh 17975
      else:
17976
        iprot.skip(ftype)
17977
      iprot.readFieldEnd()
17978
    iprot.readStructEnd()
17979
 
17980
  def write(self, oprot):
17981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17983
      return
17984
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
17985
    if self.startDateTime is not None:
17986
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17987
      oprot.writeI64(self.startDateTime)
17988
      oprot.writeFieldEnd()
7897 amar.kumar 17989
    if self.categoryId is not None:
17990
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
17991
      oprot.writeI64(self.categoryId)
17992
      oprot.writeFieldEnd()
5944 mandeep.dh 17993
    oprot.writeFieldStop()
17994
    oprot.writeStructEnd()
17995
 
17996
  def validate(self):
17997
    return
17998
 
17999
 
18000
  def __repr__(self):
18001
    L = ['%s=%r' % (key, value)
18002
      for key, value in self.__dict__.iteritems()]
18003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18004
 
18005
  def __eq__(self, other):
18006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18007
 
18008
  def __ne__(self, other):
18009
    return not (self == other)
18010
 
18011
class getProductNotificationRequestCount_result:
18012
  """
18013
  Attributes:
18014
   - success
18015
  """
18016
 
18017
  thrift_spec = (
18018
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
18019
  )
18020
 
18021
  def __init__(self, success=None,):
18022
    self.success = success
18023
 
18024
  def read(self, iprot):
18025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18027
      return
18028
    iprot.readStructBegin()
18029
    while True:
18030
      (fname, ftype, fid) = iprot.readFieldBegin()
18031
      if ftype == TType.STOP:
18032
        break
18033
      if fid == 0:
18034
        if ftype == TType.LIST:
18035
          self.success = []
9155 kshitij.so 18036
          (_etype356, _size353) = iprot.readListBegin()
18037
          for _i357 in xrange(_size353):
18038
            _elem358 = ProductNotificationRequestCount()
18039
            _elem358.read(iprot)
18040
            self.success.append(_elem358)
5944 mandeep.dh 18041
          iprot.readListEnd()
18042
        else:
18043
          iprot.skip(ftype)
18044
      else:
18045
        iprot.skip(ftype)
18046
      iprot.readFieldEnd()
18047
    iprot.readStructEnd()
18048
 
18049
  def write(self, oprot):
18050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18052
      return
18053
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
18054
    if self.success is not None:
18055
      oprot.writeFieldBegin('success', TType.LIST, 0)
18056
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18057
      for iter359 in self.success:
18058
        iter359.write(oprot)
5944 mandeep.dh 18059
      oprot.writeListEnd()
18060
      oprot.writeFieldEnd()
18061
    oprot.writeFieldStop()
18062
    oprot.writeStructEnd()
18063
 
18064
  def validate(self):
18065
    return
18066
 
18067
 
18068
  def __repr__(self):
18069
    L = ['%s=%r' % (key, value)
18070
      for key, value in self.__dict__.iteritems()]
18071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18072
 
18073
  def __eq__(self, other):
18074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18075
 
18076
  def __ne__(self, other):
18077
    return not (self == other)
18078
 
18079
class addAuthorizationLog_args:
18080
  """
18081
  Attributes:
18082
   - itemId
18083
   - username
18084
   - reason
18085
  """
18086
 
18087
  thrift_spec = (
18088
    None, # 0
18089
    (1, TType.I64, 'itemId', None, None, ), # 1
18090
    (2, TType.STRING, 'username', None, None, ), # 2
18091
    (3, TType.STRING, 'reason', None, None, ), # 3
18092
  )
18093
 
18094
  def __init__(self, itemId=None, username=None, reason=None,):
18095
    self.itemId = itemId
18096
    self.username = username
18097
    self.reason = reason
18098
 
18099
  def read(self, iprot):
18100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18102
      return
18103
    iprot.readStructBegin()
18104
    while True:
18105
      (fname, ftype, fid) = iprot.readFieldBegin()
18106
      if ftype == TType.STOP:
18107
        break
18108
      if fid == 1:
18109
        if ftype == TType.I64:
18110
          self.itemId = iprot.readI64();
18111
        else:
18112
          iprot.skip(ftype)
18113
      elif fid == 2:
18114
        if ftype == TType.STRING:
18115
          self.username = iprot.readString();
18116
        else:
18117
          iprot.skip(ftype)
18118
      elif fid == 3:
18119
        if ftype == TType.STRING:
18120
          self.reason = iprot.readString();
18121
        else:
18122
          iprot.skip(ftype)
18123
      else:
18124
        iprot.skip(ftype)
18125
      iprot.readFieldEnd()
18126
    iprot.readStructEnd()
18127
 
18128
  def write(self, oprot):
18129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18131
      return
18132
    oprot.writeStructBegin('addAuthorizationLog_args')
18133
    if self.itemId is not None:
18134
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18135
      oprot.writeI64(self.itemId)
18136
      oprot.writeFieldEnd()
18137
    if self.username is not None:
18138
      oprot.writeFieldBegin('username', TType.STRING, 2)
18139
      oprot.writeString(self.username)
18140
      oprot.writeFieldEnd()
18141
    if self.reason is not None:
18142
      oprot.writeFieldBegin('reason', TType.STRING, 3)
18143
      oprot.writeString(self.reason)
18144
      oprot.writeFieldEnd()
18145
    oprot.writeFieldStop()
18146
    oprot.writeStructEnd()
18147
 
18148
  def validate(self):
18149
    return
18150
 
18151
 
18152
  def __repr__(self):
18153
    L = ['%s=%r' % (key, value)
18154
      for key, value in self.__dict__.iteritems()]
18155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18156
 
18157
  def __eq__(self, other):
18158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18159
 
18160
  def __ne__(self, other):
18161
    return not (self == other)
18162
 
18163
class addAuthorizationLog_result:
18164
  """
18165
  Attributes:
18166
   - success
18167
   - cex
18168
  """
18169
 
18170
  thrift_spec = (
18171
    (0, TType.BOOL, 'success', None, None, ), # 0
18172
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18173
  )
18174
 
18175
  def __init__(self, success=None, cex=None,):
18176
    self.success = success
18177
    self.cex = cex
18178
 
18179
  def read(self, iprot):
18180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18182
      return
18183
    iprot.readStructBegin()
18184
    while True:
18185
      (fname, ftype, fid) = iprot.readFieldBegin()
18186
      if ftype == TType.STOP:
18187
        break
18188
      if fid == 0:
18189
        if ftype == TType.BOOL:
18190
          self.success = iprot.readBool();
18191
        else:
18192
          iprot.skip(ftype)
18193
      elif fid == 1:
18194
        if ftype == TType.STRUCT:
18195
          self.cex = CatalogServiceException()
18196
          self.cex.read(iprot)
18197
        else:
18198
          iprot.skip(ftype)
18199
      else:
18200
        iprot.skip(ftype)
18201
      iprot.readFieldEnd()
18202
    iprot.readStructEnd()
18203
 
18204
  def write(self, oprot):
18205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18207
      return
18208
    oprot.writeStructBegin('addAuthorizationLog_result')
18209
    if self.success is not None:
18210
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18211
      oprot.writeBool(self.success)
18212
      oprot.writeFieldEnd()
18213
    if self.cex is not None:
18214
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18215
      self.cex.write(oprot)
18216
      oprot.writeFieldEnd()
18217
    oprot.writeFieldStop()
18218
    oprot.writeStructEnd()
18219
 
18220
  def validate(self):
18221
    return
18222
 
18223
 
18224
  def __repr__(self):
18225
    L = ['%s=%r' % (key, value)
18226
      for key, value in self.__dict__.iteritems()]
18227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18228
 
18229
  def __eq__(self, other):
18230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18231
 
18232
  def __ne__(self, other):
18233
    return not (self == other)
18234
 
18235
class addupdateVoucherForItem_args:
18236
  """
18237
  Attributes:
18238
   - catalog_item_id
18239
   - voucherType
18240
   - voucherAmount
18241
  """
18242
 
18243
  thrift_spec = (
18244
    None, # 0
18245
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18246
    (2, TType.I64, 'voucherType', None, None, ), # 2
18247
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
18248
  )
18249
 
18250
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
18251
    self.catalog_item_id = catalog_item_id
18252
    self.voucherType = voucherType
18253
    self.voucherAmount = voucherAmount
18254
 
18255
  def read(self, iprot):
18256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18258
      return
18259
    iprot.readStructBegin()
18260
    while True:
18261
      (fname, ftype, fid) = iprot.readFieldBegin()
18262
      if ftype == TType.STOP:
18263
        break
18264
      if fid == 1:
18265
        if ftype == TType.I64:
18266
          self.catalog_item_id = iprot.readI64();
18267
        else:
18268
          iprot.skip(ftype)
18269
      elif fid == 2:
18270
        if ftype == TType.I64:
18271
          self.voucherType = iprot.readI64();
18272
        else:
18273
          iprot.skip(ftype)
18274
      elif fid == 3:
18275
        if ftype == TType.I64:
18276
          self.voucherAmount = iprot.readI64();
18277
        else:
18278
          iprot.skip(ftype)
18279
      else:
18280
        iprot.skip(ftype)
18281
      iprot.readFieldEnd()
18282
    iprot.readStructEnd()
18283
 
18284
  def write(self, oprot):
18285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18287
      return
18288
    oprot.writeStructBegin('addupdateVoucherForItem_args')
18289
    if self.catalog_item_id is not None:
18290
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18291
      oprot.writeI64(self.catalog_item_id)
18292
      oprot.writeFieldEnd()
18293
    if self.voucherType is not None:
18294
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
18295
      oprot.writeI64(self.voucherType)
18296
      oprot.writeFieldEnd()
18297
    if self.voucherAmount is not None:
18298
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
18299
      oprot.writeI64(self.voucherAmount)
18300
      oprot.writeFieldEnd()
18301
    oprot.writeFieldStop()
18302
    oprot.writeStructEnd()
18303
 
18304
  def validate(self):
18305
    return
18306
 
18307
 
18308
  def __repr__(self):
18309
    L = ['%s=%r' % (key, value)
18310
      for key, value in self.__dict__.iteritems()]
18311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18312
 
18313
  def __eq__(self, other):
18314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18315
 
18316
  def __ne__(self, other):
18317
    return not (self == other)
18318
 
18319
class addupdateVoucherForItem_result:
18320
  """
18321
  Attributes:
18322
   - success
18323
   - cex
18324
  """
18325
 
18326
  thrift_spec = (
18327
    (0, TType.BOOL, 'success', None, None, ), # 0
18328
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18329
  )
18330
 
18331
  def __init__(self, success=None, cex=None,):
18332
    self.success = success
18333
    self.cex = cex
18334
 
18335
  def read(self, iprot):
18336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18338
      return
18339
    iprot.readStructBegin()
18340
    while True:
18341
      (fname, ftype, fid) = iprot.readFieldBegin()
18342
      if ftype == TType.STOP:
18343
        break
18344
      if fid == 0:
18345
        if ftype == TType.BOOL:
18346
          self.success = iprot.readBool();
18347
        else:
18348
          iprot.skip(ftype)
18349
      elif fid == 1:
18350
        if ftype == TType.STRUCT:
18351
          self.cex = CatalogServiceException()
18352
          self.cex.read(iprot)
18353
        else:
18354
          iprot.skip(ftype)
18355
      else:
18356
        iprot.skip(ftype)
18357
      iprot.readFieldEnd()
18358
    iprot.readStructEnd()
18359
 
18360
  def write(self, oprot):
18361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18363
      return
18364
    oprot.writeStructBegin('addupdateVoucherForItem_result')
18365
    if self.success is not None:
18366
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18367
      oprot.writeBool(self.success)
18368
      oprot.writeFieldEnd()
18369
    if self.cex is not None:
18370
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18371
      self.cex.write(oprot)
18372
      oprot.writeFieldEnd()
18373
    oprot.writeFieldStop()
18374
    oprot.writeStructEnd()
18375
 
18376
  def validate(self):
18377
    return
18378
 
18379
 
18380
  def __repr__(self):
18381
    L = ['%s=%r' % (key, value)
18382
      for key, value in self.__dict__.iteritems()]
18383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18384
 
18385
  def __eq__(self, other):
18386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18387
 
18388
  def __ne__(self, other):
18389
    return not (self == other)
18390
 
18391
class deleteVoucherForItem_args:
18392
  """
18393
  Attributes:
18394
   - catalog_item_id
18395
   - voucherType
18396
  """
18397
 
18398
  thrift_spec = (
18399
    None, # 0
18400
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18401
    (2, TType.I64, 'voucherType', None, None, ), # 2
18402
  )
18403
 
18404
  def __init__(self, catalog_item_id=None, voucherType=None,):
18405
    self.catalog_item_id = catalog_item_id
18406
    self.voucherType = voucherType
18407
 
18408
  def read(self, iprot):
18409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18411
      return
18412
    iprot.readStructBegin()
18413
    while True:
18414
      (fname, ftype, fid) = iprot.readFieldBegin()
18415
      if ftype == TType.STOP:
18416
        break
18417
      if fid == 1:
18418
        if ftype == TType.I64:
18419
          self.catalog_item_id = iprot.readI64();
18420
        else:
18421
          iprot.skip(ftype)
18422
      elif fid == 2:
18423
        if ftype == TType.I64:
18424
          self.voucherType = iprot.readI64();
18425
        else:
18426
          iprot.skip(ftype)
18427
      else:
18428
        iprot.skip(ftype)
18429
      iprot.readFieldEnd()
18430
    iprot.readStructEnd()
18431
 
18432
  def write(self, oprot):
18433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18435
      return
18436
    oprot.writeStructBegin('deleteVoucherForItem_args')
18437
    if self.catalog_item_id is not None:
18438
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18439
      oprot.writeI64(self.catalog_item_id)
18440
      oprot.writeFieldEnd()
18441
    if self.voucherType is not None:
18442
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
18443
      oprot.writeI64(self.voucherType)
18444
      oprot.writeFieldEnd()
18445
    oprot.writeFieldStop()
18446
    oprot.writeStructEnd()
18447
 
18448
  def validate(self):
18449
    return
18450
 
18451
 
18452
  def __repr__(self):
18453
    L = ['%s=%r' % (key, value)
18454
      for key, value in self.__dict__.iteritems()]
18455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18456
 
18457
  def __eq__(self, other):
18458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18459
 
18460
  def __ne__(self, other):
18461
    return not (self == other)
18462
 
18463
class deleteVoucherForItem_result:
18464
  """
18465
  Attributes:
18466
   - success
18467
   - cex
18468
  """
18469
 
18470
  thrift_spec = (
18471
    (0, TType.BOOL, 'success', None, None, ), # 0
18472
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18473
  )
18474
 
18475
  def __init__(self, success=None, cex=None,):
18476
    self.success = success
18477
    self.cex = cex
18478
 
18479
  def read(self, iprot):
18480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18482
      return
18483
    iprot.readStructBegin()
18484
    while True:
18485
      (fname, ftype, fid) = iprot.readFieldBegin()
18486
      if ftype == TType.STOP:
18487
        break
18488
      if fid == 0:
18489
        if ftype == TType.BOOL:
18490
          self.success = iprot.readBool();
18491
        else:
18492
          iprot.skip(ftype)
18493
      elif fid == 1:
18494
        if ftype == TType.STRUCT:
18495
          self.cex = CatalogServiceException()
18496
          self.cex.read(iprot)
18497
        else:
18498
          iprot.skip(ftype)
18499
      else:
18500
        iprot.skip(ftype)
18501
      iprot.readFieldEnd()
18502
    iprot.readStructEnd()
18503
 
18504
  def write(self, oprot):
18505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18507
      return
18508
    oprot.writeStructBegin('deleteVoucherForItem_result')
18509
    if self.success is not None:
18510
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18511
      oprot.writeBool(self.success)
18512
      oprot.writeFieldEnd()
18513
    if self.cex is not None:
18514
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18515
      self.cex.write(oprot)
18516
      oprot.writeFieldEnd()
18517
    oprot.writeFieldStop()
18518
    oprot.writeStructEnd()
18519
 
18520
  def validate(self):
18521
    return
18522
 
18523
 
18524
  def __repr__(self):
18525
    L = ['%s=%r' % (key, value)
18526
      for key, value in self.__dict__.iteritems()]
18527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18528
 
18529
  def __eq__(self, other):
18530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18531
 
18532
  def __ne__(self, other):
18533
    return not (self == other)
18534
 
18535
class getVoucherAmount_args:
18536
  """
18537
  Attributes:
18538
   - itemId
18539
   - voucherType
18540
  """
18541
 
18542
  thrift_spec = (
18543
    None, # 0
18544
    (1, TType.I64, 'itemId', None, None, ), # 1
18545
    (2, TType.I64, 'voucherType', None, None, ), # 2
18546
  )
18547
 
18548
  def __init__(self, itemId=None, voucherType=None,):
18549
    self.itemId = itemId
18550
    self.voucherType = voucherType
18551
 
18552
  def read(self, iprot):
18553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18555
      return
18556
    iprot.readStructBegin()
18557
    while True:
18558
      (fname, ftype, fid) = iprot.readFieldBegin()
18559
      if ftype == TType.STOP:
18560
        break
18561
      if fid == 1:
18562
        if ftype == TType.I64:
18563
          self.itemId = iprot.readI64();
18564
        else:
18565
          iprot.skip(ftype)
18566
      elif fid == 2:
18567
        if ftype == TType.I64:
18568
          self.voucherType = iprot.readI64();
18569
        else:
18570
          iprot.skip(ftype)
18571
      else:
18572
        iprot.skip(ftype)
18573
      iprot.readFieldEnd()
18574
    iprot.readStructEnd()
18575
 
18576
  def write(self, oprot):
18577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18579
      return
18580
    oprot.writeStructBegin('getVoucherAmount_args')
18581
    if self.itemId is not None:
18582
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18583
      oprot.writeI64(self.itemId)
18584
      oprot.writeFieldEnd()
18585
    if self.voucherType is not None:
18586
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
18587
      oprot.writeI64(self.voucherType)
18588
      oprot.writeFieldEnd()
18589
    oprot.writeFieldStop()
18590
    oprot.writeStructEnd()
18591
 
18592
  def validate(self):
18593
    return
18594
 
18595
 
18596
  def __repr__(self):
18597
    L = ['%s=%r' % (key, value)
18598
      for key, value in self.__dict__.iteritems()]
18599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18600
 
18601
  def __eq__(self, other):
18602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18603
 
18604
  def __ne__(self, other):
18605
    return not (self == other)
18606
 
18607
class getVoucherAmount_result:
18608
  """
18609
  Attributes:
18610
   - success
18611
  """
18612
 
18613
  thrift_spec = (
18614
    (0, TType.I64, 'success', None, None, ), # 0
18615
  )
18616
 
18617
  def __init__(self, success=None,):
18618
    self.success = success
18619
 
18620
  def read(self, iprot):
18621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18623
      return
18624
    iprot.readStructBegin()
18625
    while True:
18626
      (fname, ftype, fid) = iprot.readFieldBegin()
18627
      if ftype == TType.STOP:
18628
        break
18629
      if fid == 0:
18630
        if ftype == TType.I64:
18631
          self.success = iprot.readI64();
18632
        else:
18633
          iprot.skip(ftype)
18634
      else:
18635
        iprot.skip(ftype)
18636
      iprot.readFieldEnd()
18637
    iprot.readStructEnd()
18638
 
18639
  def write(self, oprot):
18640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18642
      return
18643
    oprot.writeStructBegin('getVoucherAmount_result')
18644
    if self.success is not None:
18645
      oprot.writeFieldBegin('success', TType.I64, 0)
18646
      oprot.writeI64(self.success)
18647
      oprot.writeFieldEnd()
18648
    oprot.writeFieldStop()
18649
    oprot.writeStructEnd()
18650
 
18651
  def validate(self):
18652
    return
18653
 
18654
 
18655
  def __repr__(self):
18656
    L = ['%s=%r' % (key, value)
18657
      for key, value in self.__dict__.iteritems()]
18658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18659
 
18660
  def __eq__(self, other):
18661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18662
 
18663
  def __ne__(self, other):
18664
    return not (self == other)
18665
 
18666
class getAllItemVouchers_args:
18667
  """
18668
  Attributes:
18669
   - itemId
18670
  """
18671
 
18672
  thrift_spec = (
18673
    None, # 0
18674
    (1, TType.I64, 'itemId', None, None, ), # 1
18675
  )
18676
 
18677
  def __init__(self, itemId=None,):
18678
    self.itemId = itemId
18679
 
18680
  def read(self, iprot):
18681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18683
      return
18684
    iprot.readStructBegin()
18685
    while True:
18686
      (fname, ftype, fid) = iprot.readFieldBegin()
18687
      if ftype == TType.STOP:
18688
        break
18689
      if fid == 1:
18690
        if ftype == TType.I64:
18691
          self.itemId = iprot.readI64();
18692
        else:
18693
          iprot.skip(ftype)
18694
      else:
18695
        iprot.skip(ftype)
18696
      iprot.readFieldEnd()
18697
    iprot.readStructEnd()
18698
 
18699
  def write(self, oprot):
18700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18702
      return
18703
    oprot.writeStructBegin('getAllItemVouchers_args')
18704
    if self.itemId is not None:
18705
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18706
      oprot.writeI64(self.itemId)
18707
      oprot.writeFieldEnd()
18708
    oprot.writeFieldStop()
18709
    oprot.writeStructEnd()
18710
 
18711
  def validate(self):
18712
    return
18713
 
18714
 
18715
  def __repr__(self):
18716
    L = ['%s=%r' % (key, value)
18717
      for key, value in self.__dict__.iteritems()]
18718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18719
 
18720
  def __eq__(self, other):
18721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18722
 
18723
  def __ne__(self, other):
18724
    return not (self == other)
18725
 
18726
class getAllItemVouchers_result:
18727
  """
18728
  Attributes:
18729
   - success
18730
  """
18731
 
18732
  thrift_spec = (
18733
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
18734
  )
18735
 
18736
  def __init__(self, success=None,):
18737
    self.success = success
18738
 
18739
  def read(self, iprot):
18740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18742
      return
18743
    iprot.readStructBegin()
18744
    while True:
18745
      (fname, ftype, fid) = iprot.readFieldBegin()
18746
      if ftype == TType.STOP:
18747
        break
18748
      if fid == 0:
18749
        if ftype == TType.LIST:
18750
          self.success = []
9155 kshitij.so 18751
          (_etype363, _size360) = iprot.readListBegin()
18752
          for _i364 in xrange(_size360):
18753
            _elem365 = VoucherItemMapping()
18754
            _elem365.read(iprot)
18755
            self.success.append(_elem365)
5944 mandeep.dh 18756
          iprot.readListEnd()
18757
        else:
18758
          iprot.skip(ftype)
18759
      else:
18760
        iprot.skip(ftype)
18761
      iprot.readFieldEnd()
18762
    iprot.readStructEnd()
18763
 
18764
  def write(self, oprot):
18765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18767
      return
18768
    oprot.writeStructBegin('getAllItemVouchers_result')
18769
    if self.success is not None:
18770
      oprot.writeFieldBegin('success', TType.LIST, 0)
18771
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18772
      for iter366 in self.success:
18773
        iter366.write(oprot)
5944 mandeep.dh 18774
      oprot.writeListEnd()
18775
      oprot.writeFieldEnd()
18776
    oprot.writeFieldStop()
18777
    oprot.writeStructEnd()
18778
 
18779
  def validate(self):
18780
    return
18781
 
18782
 
18783
  def __repr__(self):
18784
    L = ['%s=%r' % (key, value)
18785
      for key, value in self.__dict__.iteritems()]
18786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18787
 
18788
  def __eq__(self, other):
18789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18790
 
18791
  def __ne__(self, other):
18792
    return not (self == other)
18793
 
18794
class isValidCatalogItemId_args:
18795
  """
18796
  Attributes:
18797
   - catalog_item_id
18798
  """
18799
 
18800
  thrift_spec = (
18801
    None, # 0
18802
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18803
  )
18804
 
18805
  def __init__(self, catalog_item_id=None,):
18806
    self.catalog_item_id = catalog_item_id
18807
 
18808
  def read(self, iprot):
18809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18811
      return
18812
    iprot.readStructBegin()
18813
    while True:
18814
      (fname, ftype, fid) = iprot.readFieldBegin()
18815
      if ftype == TType.STOP:
18816
        break
18817
      if fid == 1:
18818
        if ftype == TType.I64:
18819
          self.catalog_item_id = iprot.readI64();
18820
        else:
18821
          iprot.skip(ftype)
18822
      else:
18823
        iprot.skip(ftype)
18824
      iprot.readFieldEnd()
18825
    iprot.readStructEnd()
18826
 
18827
  def write(self, oprot):
18828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18830
      return
18831
    oprot.writeStructBegin('isValidCatalogItemId_args')
18832
    if self.catalog_item_id is not None:
18833
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18834
      oprot.writeI64(self.catalog_item_id)
18835
      oprot.writeFieldEnd()
18836
    oprot.writeFieldStop()
18837
    oprot.writeStructEnd()
18838
 
18839
  def validate(self):
18840
    return
18841
 
18842
 
18843
  def __repr__(self):
18844
    L = ['%s=%r' % (key, value)
18845
      for key, value in self.__dict__.iteritems()]
18846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18847
 
18848
  def __eq__(self, other):
18849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18850
 
18851
  def __ne__(self, other):
18852
    return not (self == other)
18853
 
18854
class isValidCatalogItemId_result:
18855
  """
18856
  Attributes:
18857
   - success
18858
  """
18859
 
18860
  thrift_spec = (
18861
    (0, TType.BOOL, 'success', None, None, ), # 0
18862
  )
18863
 
18864
  def __init__(self, success=None,):
18865
    self.success = success
18866
 
18867
  def read(self, iprot):
18868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18870
      return
18871
    iprot.readStructBegin()
18872
    while True:
18873
      (fname, ftype, fid) = iprot.readFieldBegin()
18874
      if ftype == TType.STOP:
18875
        break
18876
      if fid == 0:
18877
        if ftype == TType.BOOL:
18878
          self.success = iprot.readBool();
18879
        else:
18880
          iprot.skip(ftype)
18881
      else:
18882
        iprot.skip(ftype)
18883
      iprot.readFieldEnd()
18884
    iprot.readStructEnd()
18885
 
18886
  def write(self, oprot):
18887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18889
      return
18890
    oprot.writeStructBegin('isValidCatalogItemId_result')
18891
    if self.success is not None:
18892
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18893
      oprot.writeBool(self.success)
18894
      oprot.writeFieldEnd()
18895
    oprot.writeFieldStop()
18896
    oprot.writeStructEnd()
18897
 
18898
  def validate(self):
18899
    return
18900
 
18901
 
18902
  def __repr__(self):
18903
    L = ['%s=%r' % (key, value)
18904
      for key, value in self.__dict__.iteritems()]
18905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18906
 
18907
  def __eq__(self, other):
18908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18909
 
18910
  def __ne__(self, other):
18911
    return not (self == other)
6039 amit.gupta 18912
 
18913
class getVatPercentageForItem_args:
18914
  """
18915
  Attributes:
18916
   - itemId
7330 amit.gupta 18917
   - stateId
6039 amit.gupta 18918
   - price
18919
  """
18920
 
18921
  thrift_spec = (
18922
    None, # 0
18923
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 18924
    (2, TType.I64, 'stateId', None, None, ), # 2
18925
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 18926
  )
18927
 
7330 amit.gupta 18928
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 18929
    self.itemId = itemId
7330 amit.gupta 18930
    self.stateId = stateId
6039 amit.gupta 18931
    self.price = price
18932
 
18933
  def read(self, iprot):
18934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18936
      return
18937
    iprot.readStructBegin()
18938
    while True:
18939
      (fname, ftype, fid) = iprot.readFieldBegin()
18940
      if ftype == TType.STOP:
18941
        break
18942
      if fid == 1:
18943
        if ftype == TType.I64:
18944
          self.itemId = iprot.readI64();
18945
        else:
18946
          iprot.skip(ftype)
18947
      elif fid == 2:
7330 amit.gupta 18948
        if ftype == TType.I64:
18949
          self.stateId = iprot.readI64();
18950
        else:
18951
          iprot.skip(ftype)
18952
      elif fid == 3:
6039 amit.gupta 18953
        if ftype == TType.DOUBLE:
18954
          self.price = iprot.readDouble();
18955
        else:
18956
          iprot.skip(ftype)
18957
      else:
18958
        iprot.skip(ftype)
18959
      iprot.readFieldEnd()
18960
    iprot.readStructEnd()
18961
 
18962
  def write(self, oprot):
18963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18965
      return
18966
    oprot.writeStructBegin('getVatPercentageForItem_args')
18967
    if self.itemId is not None:
18968
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18969
      oprot.writeI64(self.itemId)
18970
      oprot.writeFieldEnd()
7330 amit.gupta 18971
    if self.stateId is not None:
18972
      oprot.writeFieldBegin('stateId', TType.I64, 2)
18973
      oprot.writeI64(self.stateId)
18974
      oprot.writeFieldEnd()
6039 amit.gupta 18975
    if self.price is not None:
7330 amit.gupta 18976
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 18977
      oprot.writeDouble(self.price)
18978
      oprot.writeFieldEnd()
18979
    oprot.writeFieldStop()
18980
    oprot.writeStructEnd()
18981
 
18982
  def validate(self):
18983
    return
18984
 
18985
 
18986
  def __repr__(self):
18987
    L = ['%s=%r' % (key, value)
18988
      for key, value in self.__dict__.iteritems()]
18989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18990
 
18991
  def __eq__(self, other):
18992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18993
 
18994
  def __ne__(self, other):
18995
    return not (self == other)
18996
 
18997
class getVatPercentageForItem_result:
18998
  """
18999
  Attributes:
19000
   - success
7340 amit.gupta 19001
   - cex
6039 amit.gupta 19002
  """
19003
 
19004
  thrift_spec = (
19005
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 19006
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 19007
  )
19008
 
7340 amit.gupta 19009
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 19010
    self.success = success
7340 amit.gupta 19011
    self.cex = cex
6039 amit.gupta 19012
 
19013
  def read(self, iprot):
19014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19016
      return
19017
    iprot.readStructBegin()
19018
    while True:
19019
      (fname, ftype, fid) = iprot.readFieldBegin()
19020
      if ftype == TType.STOP:
19021
        break
19022
      if fid == 0:
19023
        if ftype == TType.DOUBLE:
19024
          self.success = iprot.readDouble();
19025
        else:
19026
          iprot.skip(ftype)
7340 amit.gupta 19027
      elif fid == 1:
19028
        if ftype == TType.STRUCT:
19029
          self.cex = CatalogServiceException()
19030
          self.cex.read(iprot)
19031
        else:
19032
          iprot.skip(ftype)
6039 amit.gupta 19033
      else:
19034
        iprot.skip(ftype)
19035
      iprot.readFieldEnd()
19036
    iprot.readStructEnd()
19037
 
19038
  def write(self, oprot):
19039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19041
      return
19042
    oprot.writeStructBegin('getVatPercentageForItem_result')
19043
    if self.success is not None:
19044
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
19045
      oprot.writeDouble(self.success)
19046
      oprot.writeFieldEnd()
7340 amit.gupta 19047
    if self.cex is not None:
19048
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19049
      self.cex.write(oprot)
19050
      oprot.writeFieldEnd()
6039 amit.gupta 19051
    oprot.writeFieldStop()
19052
    oprot.writeStructEnd()
19053
 
19054
  def validate(self):
19055
    return
19056
 
19057
 
19058
  def __repr__(self):
19059
    L = ['%s=%r' % (key, value)
19060
      for key, value in self.__dict__.iteritems()]
19061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19062
 
19063
  def __eq__(self, other):
19064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19065
 
19066
  def __ne__(self, other):
19067
    return not (self == other)
19068
 
19069
class getVatAmountForItem_args:
19070
  """
19071
  Attributes:
19072
   - itemId
19073
   - price
19074
  """
19075
 
19076
  thrift_spec = (
19077
    None, # 0
19078
    (1, TType.I64, 'itemId', None, None, ), # 1
19079
    (2, TType.DOUBLE, 'price', None, None, ), # 2
19080
  )
19081
 
19082
  def __init__(self, itemId=None, price=None,):
19083
    self.itemId = itemId
19084
    self.price = price
19085
 
19086
  def read(self, iprot):
19087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19089
      return
19090
    iprot.readStructBegin()
19091
    while True:
19092
      (fname, ftype, fid) = iprot.readFieldBegin()
19093
      if ftype == TType.STOP:
19094
        break
19095
      if fid == 1:
19096
        if ftype == TType.I64:
19097
          self.itemId = iprot.readI64();
19098
        else:
19099
          iprot.skip(ftype)
19100
      elif fid == 2:
19101
        if ftype == TType.DOUBLE:
19102
          self.price = iprot.readDouble();
19103
        else:
19104
          iprot.skip(ftype)
19105
      else:
19106
        iprot.skip(ftype)
19107
      iprot.readFieldEnd()
19108
    iprot.readStructEnd()
19109
 
19110
  def write(self, oprot):
19111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19113
      return
19114
    oprot.writeStructBegin('getVatAmountForItem_args')
19115
    if self.itemId is not None:
19116
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19117
      oprot.writeI64(self.itemId)
19118
      oprot.writeFieldEnd()
19119
    if self.price is not None:
19120
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
19121
      oprot.writeDouble(self.price)
19122
      oprot.writeFieldEnd()
19123
    oprot.writeFieldStop()
19124
    oprot.writeStructEnd()
19125
 
19126
  def validate(self):
19127
    return
19128
 
19129
 
19130
  def __repr__(self):
19131
    L = ['%s=%r' % (key, value)
19132
      for key, value in self.__dict__.iteritems()]
19133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19134
 
19135
  def __eq__(self, other):
19136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19137
 
19138
  def __ne__(self, other):
19139
    return not (self == other)
19140
 
19141
class getVatAmountForItem_result:
19142
  """
19143
  Attributes:
19144
   - success
19145
  """
19146
 
19147
  thrift_spec = (
19148
    (0, TType.DOUBLE, 'success', None, None, ), # 0
19149
  )
19150
 
19151
  def __init__(self, success=None,):
19152
    self.success = success
19153
 
19154
  def read(self, iprot):
19155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19157
      return
19158
    iprot.readStructBegin()
19159
    while True:
19160
      (fname, ftype, fid) = iprot.readFieldBegin()
19161
      if ftype == TType.STOP:
19162
        break
19163
      if fid == 0:
19164
        if ftype == TType.DOUBLE:
19165
          self.success = iprot.readDouble();
19166
        else:
19167
          iprot.skip(ftype)
19168
      else:
19169
        iprot.skip(ftype)
19170
      iprot.readFieldEnd()
19171
    iprot.readStructEnd()
19172
 
19173
  def write(self, oprot):
19174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19176
      return
19177
    oprot.writeStructBegin('getVatAmountForItem_result')
19178
    if self.success is not None:
19179
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
19180
      oprot.writeDouble(self.success)
19181
      oprot.writeFieldEnd()
19182
    oprot.writeFieldStop()
19183
    oprot.writeStructEnd()
19184
 
19185
  def validate(self):
19186
    return
19187
 
19188
 
19189
  def __repr__(self):
19190
    L = ['%s=%r' % (key, value)
19191
      for key, value in self.__dict__.iteritems()]
19192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19193
 
19194
  def __eq__(self, other):
19195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19196
 
19197
  def __ne__(self, other):
19198
    return not (self == other)
6531 vikram.rag 19199
 
19200
class getAllIgnoredInventoryUpdateItemsList_args:
19201
  """
19202
  Attributes:
19203
   - offset
19204
   - limit
19205
  """
19206
 
19207
  thrift_spec = (
19208
    None, # 0
19209
    (1, TType.I32, 'offset', None, None, ), # 1
19210
    (2, TType.I32, 'limit', None, None, ), # 2
19211
  )
19212
 
19213
  def __init__(self, offset=None, limit=None,):
19214
    self.offset = offset
19215
    self.limit = limit
19216
 
19217
  def read(self, iprot):
19218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19220
      return
19221
    iprot.readStructBegin()
19222
    while True:
19223
      (fname, ftype, fid) = iprot.readFieldBegin()
19224
      if ftype == TType.STOP:
19225
        break
19226
      if fid == 1:
19227
        if ftype == TType.I32:
19228
          self.offset = iprot.readI32();
19229
        else:
19230
          iprot.skip(ftype)
19231
      elif fid == 2:
19232
        if ftype == TType.I32:
19233
          self.limit = iprot.readI32();
19234
        else:
19235
          iprot.skip(ftype)
19236
      else:
19237
        iprot.skip(ftype)
19238
      iprot.readFieldEnd()
19239
    iprot.readStructEnd()
19240
 
19241
  def write(self, oprot):
19242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19244
      return
19245
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
19246
    if self.offset is not None:
19247
      oprot.writeFieldBegin('offset', TType.I32, 1)
19248
      oprot.writeI32(self.offset)
19249
      oprot.writeFieldEnd()
19250
    if self.limit is not None:
19251
      oprot.writeFieldBegin('limit', TType.I32, 2)
19252
      oprot.writeI32(self.limit)
19253
      oprot.writeFieldEnd()
19254
    oprot.writeFieldStop()
19255
    oprot.writeStructEnd()
19256
 
19257
  def validate(self):
19258
    return
19259
 
19260
 
19261
  def __repr__(self):
19262
    L = ['%s=%r' % (key, value)
19263
      for key, value in self.__dict__.iteritems()]
19264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19265
 
19266
  def __eq__(self, other):
19267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19268
 
19269
  def __ne__(self, other):
19270
    return not (self == other)
19271
 
19272
class getAllIgnoredInventoryUpdateItemsList_result:
19273
  """
19274
  Attributes:
19275
   - success
19276
  """
19277
 
19278
  thrift_spec = (
19279
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19280
  )
19281
 
19282
  def __init__(self, success=None,):
19283
    self.success = success
19284
 
19285
  def read(self, iprot):
19286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19288
      return
19289
    iprot.readStructBegin()
19290
    while True:
19291
      (fname, ftype, fid) = iprot.readFieldBegin()
19292
      if ftype == TType.STOP:
19293
        break
19294
      if fid == 0:
19295
        if ftype == TType.LIST:
19296
          self.success = []
9155 kshitij.so 19297
          (_etype370, _size367) = iprot.readListBegin()
19298
          for _i371 in xrange(_size367):
19299
            _elem372 = Item()
19300
            _elem372.read(iprot)
19301
            self.success.append(_elem372)
6531 vikram.rag 19302
          iprot.readListEnd()
19303
        else:
19304
          iprot.skip(ftype)
19305
      else:
19306
        iprot.skip(ftype)
19307
      iprot.readFieldEnd()
19308
    iprot.readStructEnd()
19309
 
19310
  def write(self, oprot):
19311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19313
      return
19314
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
19315
    if self.success is not None:
19316
      oprot.writeFieldBegin('success', TType.LIST, 0)
19317
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19318
      for iter373 in self.success:
19319
        iter373.write(oprot)
6531 vikram.rag 19320
      oprot.writeListEnd()
19321
      oprot.writeFieldEnd()
19322
    oprot.writeFieldStop()
19323
    oprot.writeStructEnd()
19324
 
19325
  def validate(self):
19326
    return
19327
 
19328
 
19329
  def __repr__(self):
19330
    L = ['%s=%r' % (key, value)
19331
      for key, value in self.__dict__.iteritems()]
19332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19333
 
19334
  def __eq__(self, other):
19335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19336
 
19337
  def __ne__(self, other):
19338
    return not (self == other)
6805 anupam.sin 19339
 
6821 amar.kumar 19340
class getAllAliveItems_args:
19341
 
19342
  thrift_spec = (
19343
  )
19344
 
19345
  def read(self, iprot):
19346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19348
      return
19349
    iprot.readStructBegin()
19350
    while True:
19351
      (fname, ftype, fid) = iprot.readFieldBegin()
19352
      if ftype == TType.STOP:
19353
        break
19354
      else:
19355
        iprot.skip(ftype)
19356
      iprot.readFieldEnd()
19357
    iprot.readStructEnd()
19358
 
19359
  def write(self, oprot):
19360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19362
      return
19363
    oprot.writeStructBegin('getAllAliveItems_args')
19364
    oprot.writeFieldStop()
19365
    oprot.writeStructEnd()
19366
 
19367
  def validate(self):
19368
    return
19369
 
19370
 
19371
  def __repr__(self):
19372
    L = ['%s=%r' % (key, value)
19373
      for key, value in self.__dict__.iteritems()]
19374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19375
 
19376
  def __eq__(self, other):
19377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19378
 
19379
  def __ne__(self, other):
19380
    return not (self == other)
19381
 
19382
class getAllAliveItems_result:
19383
  """
19384
  Attributes:
19385
   - success
19386
  """
19387
 
19388
  thrift_spec = (
19389
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19390
  )
19391
 
19392
  def __init__(self, success=None,):
19393
    self.success = success
19394
 
19395
  def read(self, iprot):
19396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19398
      return
19399
    iprot.readStructBegin()
19400
    while True:
19401
      (fname, ftype, fid) = iprot.readFieldBegin()
19402
      if ftype == TType.STOP:
19403
        break
19404
      if fid == 0:
19405
        if ftype == TType.LIST:
19406
          self.success = []
9155 kshitij.so 19407
          (_etype377, _size374) = iprot.readListBegin()
19408
          for _i378 in xrange(_size374):
19409
            _elem379 = Item()
19410
            _elem379.read(iprot)
19411
            self.success.append(_elem379)
6821 amar.kumar 19412
          iprot.readListEnd()
19413
        else:
19414
          iprot.skip(ftype)
19415
      else:
19416
        iprot.skip(ftype)
19417
      iprot.readFieldEnd()
19418
    iprot.readStructEnd()
19419
 
19420
  def write(self, oprot):
19421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19423
      return
19424
    oprot.writeStructBegin('getAllAliveItems_result')
19425
    if self.success is not None:
19426
      oprot.writeFieldBegin('success', TType.LIST, 0)
19427
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19428
      for iter380 in self.success:
19429
        iter380.write(oprot)
6821 amar.kumar 19430
      oprot.writeListEnd()
19431
      oprot.writeFieldEnd()
19432
    oprot.writeFieldStop()
19433
    oprot.writeStructEnd()
19434
 
19435
  def validate(self):
19436
    return
19437
 
19438
 
19439
  def __repr__(self):
19440
    L = ['%s=%r' % (key, value)
19441
      for key, value in self.__dict__.iteritems()]
19442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19443
 
19444
  def __eq__(self, other):
19445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19446
 
19447
  def __ne__(self, other):
19448
    return not (self == other)
19449
 
6805 anupam.sin 19450
class getInsuranceAmount_args:
19451
  """
19452
  Attributes:
19453
   - itemId
6921 anupam.sin 19454
   - price
6805 anupam.sin 19455
   - insurerId
19456
   - quantity
19457
  """
19458
 
19459
  thrift_spec = (
19460
    None, # 0
19461
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 19462
    (2, TType.DOUBLE, 'price', None, None, ), # 2
19463
    (3, TType.I64, 'insurerId', None, None, ), # 3
19464
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 19465
  )
19466
 
6921 anupam.sin 19467
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 19468
    self.itemId = itemId
6921 anupam.sin 19469
    self.price = price
6805 anupam.sin 19470
    self.insurerId = insurerId
19471
    self.quantity = quantity
19472
 
19473
  def read(self, iprot):
19474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19476
      return
19477
    iprot.readStructBegin()
19478
    while True:
19479
      (fname, ftype, fid) = iprot.readFieldBegin()
19480
      if ftype == TType.STOP:
19481
        break
19482
      if fid == 1:
19483
        if ftype == TType.I64:
19484
          self.itemId = iprot.readI64();
19485
        else:
19486
          iprot.skip(ftype)
19487
      elif fid == 2:
6921 anupam.sin 19488
        if ftype == TType.DOUBLE:
19489
          self.price = iprot.readDouble();
19490
        else:
19491
          iprot.skip(ftype)
19492
      elif fid == 3:
6805 anupam.sin 19493
        if ftype == TType.I64:
19494
          self.insurerId = iprot.readI64();
19495
        else:
19496
          iprot.skip(ftype)
6921 anupam.sin 19497
      elif fid == 4:
6805 anupam.sin 19498
        if ftype == TType.I64:
19499
          self.quantity = iprot.readI64();
19500
        else:
19501
          iprot.skip(ftype)
19502
      else:
19503
        iprot.skip(ftype)
19504
      iprot.readFieldEnd()
19505
    iprot.readStructEnd()
19506
 
19507
  def write(self, oprot):
19508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19510
      return
19511
    oprot.writeStructBegin('getInsuranceAmount_args')
19512
    if self.itemId is not None:
19513
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19514
      oprot.writeI64(self.itemId)
19515
      oprot.writeFieldEnd()
6921 anupam.sin 19516
    if self.price is not None:
19517
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
19518
      oprot.writeDouble(self.price)
19519
      oprot.writeFieldEnd()
6805 anupam.sin 19520
    if self.insurerId is not None:
6921 anupam.sin 19521
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 19522
      oprot.writeI64(self.insurerId)
19523
      oprot.writeFieldEnd()
19524
    if self.quantity is not None:
6921 anupam.sin 19525
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 19526
      oprot.writeI64(self.quantity)
19527
      oprot.writeFieldEnd()
19528
    oprot.writeFieldStop()
19529
    oprot.writeStructEnd()
19530
 
19531
  def validate(self):
19532
    return
19533
 
19534
 
19535
  def __repr__(self):
19536
    L = ['%s=%r' % (key, value)
19537
      for key, value in self.__dict__.iteritems()]
19538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19539
 
19540
  def __eq__(self, other):
19541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19542
 
19543
  def __ne__(self, other):
19544
    return not (self == other)
19545
 
19546
class getInsuranceAmount_result:
19547
  """
19548
  Attributes:
19549
   - success
19550
  """
19551
 
19552
  thrift_spec = (
19553
    (0, TType.I64, 'success', None, None, ), # 0
19554
  )
19555
 
19556
  def __init__(self, success=None,):
19557
    self.success = success
19558
 
19559
  def read(self, iprot):
19560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19562
      return
19563
    iprot.readStructBegin()
19564
    while True:
19565
      (fname, ftype, fid) = iprot.readFieldBegin()
19566
      if ftype == TType.STOP:
19567
        break
19568
      if fid == 0:
19569
        if ftype == TType.I64:
19570
          self.success = iprot.readI64();
19571
        else:
19572
          iprot.skip(ftype)
19573
      else:
19574
        iprot.skip(ftype)
19575
      iprot.readFieldEnd()
19576
    iprot.readStructEnd()
19577
 
19578
  def write(self, oprot):
19579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19581
      return
19582
    oprot.writeStructBegin('getInsuranceAmount_result')
19583
    if self.success is not None:
19584
      oprot.writeFieldBegin('success', TType.I64, 0)
19585
      oprot.writeI64(self.success)
19586
      oprot.writeFieldEnd()
19587
    oprot.writeFieldStop()
19588
    oprot.writeStructEnd()
19589
 
19590
  def validate(self):
19591
    return
19592
 
19593
 
19594
  def __repr__(self):
19595
    L = ['%s=%r' % (key, value)
19596
      for key, value in self.__dict__.iteritems()]
19597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19598
 
19599
  def __eq__(self, other):
19600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19601
 
19602
  def __ne__(self, other):
19603
    return not (self == other)
19604
 
19605
class getInsurer_args:
19606
  """
19607
  Attributes:
19608
   - insurerId
19609
  """
19610
 
19611
  thrift_spec = (
19612
    None, # 0
19613
    (1, TType.I64, 'insurerId', None, None, ), # 1
19614
  )
19615
 
19616
  def __init__(self, insurerId=None,):
19617
    self.insurerId = insurerId
19618
 
19619
  def read(self, iprot):
19620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19622
      return
19623
    iprot.readStructBegin()
19624
    while True:
19625
      (fname, ftype, fid) = iprot.readFieldBegin()
19626
      if ftype == TType.STOP:
19627
        break
19628
      if fid == 1:
19629
        if ftype == TType.I64:
19630
          self.insurerId = iprot.readI64();
19631
        else:
19632
          iprot.skip(ftype)
19633
      else:
19634
        iprot.skip(ftype)
19635
      iprot.readFieldEnd()
19636
    iprot.readStructEnd()
19637
 
19638
  def write(self, oprot):
19639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19641
      return
19642
    oprot.writeStructBegin('getInsurer_args')
19643
    if self.insurerId is not None:
19644
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19645
      oprot.writeI64(self.insurerId)
19646
      oprot.writeFieldEnd()
19647
    oprot.writeFieldStop()
19648
    oprot.writeStructEnd()
19649
 
19650
  def validate(self):
19651
    return
19652
 
19653
 
19654
  def __repr__(self):
19655
    L = ['%s=%r' % (key, value)
19656
      for key, value in self.__dict__.iteritems()]
19657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19658
 
19659
  def __eq__(self, other):
19660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19661
 
19662
  def __ne__(self, other):
19663
    return not (self == other)
19664
 
19665
class getInsurer_result:
19666
  """
19667
  Attributes:
19668
   - success
19669
  """
19670
 
19671
  thrift_spec = (
19672
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
19673
  )
19674
 
19675
  def __init__(self, success=None,):
19676
    self.success = success
19677
 
19678
  def read(self, iprot):
19679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19681
      return
19682
    iprot.readStructBegin()
19683
    while True:
19684
      (fname, ftype, fid) = iprot.readFieldBegin()
19685
      if ftype == TType.STOP:
19686
        break
19687
      if fid == 0:
19688
        if ftype == TType.STRUCT:
19689
          self.success = Insurer()
19690
          self.success.read(iprot)
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('getInsurer_result')
19703
    if self.success is not None:
19704
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19705
      self.success.write(oprot)
19706
      oprot.writeFieldEnd()
19707
    oprot.writeFieldStop()
19708
    oprot.writeStructEnd()
19709
 
19710
  def validate(self):
19711
    return
19712
 
19713
 
19714
  def __repr__(self):
19715
    L = ['%s=%r' % (key, value)
19716
      for key, value in self.__dict__.iteritems()]
19717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19718
 
19719
  def __eq__(self, other):
19720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19721
 
19722
  def __ne__(self, other):
19723
    return not (self == other)
6838 vikram.rag 19724
 
19725
class getAllInsurers_args:
19726
 
19727
  thrift_spec = (
19728
  )
19729
 
19730
  def read(self, iprot):
19731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19733
      return
19734
    iprot.readStructBegin()
19735
    while True:
19736
      (fname, ftype, fid) = iprot.readFieldBegin()
19737
      if ftype == TType.STOP:
19738
        break
19739
      else:
19740
        iprot.skip(ftype)
19741
      iprot.readFieldEnd()
19742
    iprot.readStructEnd()
19743
 
19744
  def write(self, oprot):
19745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19747
      return
19748
    oprot.writeStructBegin('getAllInsurers_args')
19749
    oprot.writeFieldStop()
19750
    oprot.writeStructEnd()
19751
 
19752
  def validate(self):
19753
    return
19754
 
19755
 
19756
  def __repr__(self):
19757
    L = ['%s=%r' % (key, value)
19758
      for key, value in self.__dict__.iteritems()]
19759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19760
 
19761
  def __eq__(self, other):
19762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19763
 
19764
  def __ne__(self, other):
19765
    return not (self == other)
19766
 
19767
class getAllInsurers_result:
19768
  """
19769
  Attributes:
19770
   - success
19771
  """
19772
 
19773
  thrift_spec = (
19774
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
19775
  )
19776
 
19777
  def __init__(self, success=None,):
19778
    self.success = success
19779
 
19780
  def read(self, iprot):
19781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19783
      return
19784
    iprot.readStructBegin()
19785
    while True:
19786
      (fname, ftype, fid) = iprot.readFieldBegin()
19787
      if ftype == TType.STOP:
19788
        break
19789
      if fid == 0:
19790
        if ftype == TType.LIST:
19791
          self.success = []
9155 kshitij.so 19792
          (_etype384, _size381) = iprot.readListBegin()
19793
          for _i385 in xrange(_size381):
19794
            _elem386 = Insurer()
19795
            _elem386.read(iprot)
19796
            self.success.append(_elem386)
6838 vikram.rag 19797
          iprot.readListEnd()
19798
        else:
19799
          iprot.skip(ftype)
19800
      else:
19801
        iprot.skip(ftype)
19802
      iprot.readFieldEnd()
19803
    iprot.readStructEnd()
19804
 
19805
  def write(self, oprot):
19806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19808
      return
19809
    oprot.writeStructBegin('getAllInsurers_result')
19810
    if self.success is not None:
19811
      oprot.writeFieldBegin('success', TType.LIST, 0)
19812
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19813
      for iter387 in self.success:
19814
        iter387.write(oprot)
6838 vikram.rag 19815
      oprot.writeListEnd()
19816
      oprot.writeFieldEnd()
19817
    oprot.writeFieldStop()
19818
    oprot.writeStructEnd()
19819
 
19820
  def validate(self):
19821
    return
19822
 
19823
 
19824
  def __repr__(self):
19825
    L = ['%s=%r' % (key, value)
19826
      for key, value in self.__dict__.iteritems()]
19827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19828
 
19829
  def __eq__(self, other):
19830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19831
 
19832
  def __ne__(self, other):
19833
    return not (self == other)
6962 rajveer 19834
 
19835
class updateInsuranceDeclaredAmount_args:
19836
  """
19837
  Attributes:
19838
   - insurerId
19839
   - amount
19840
  """
19841
 
19842
  thrift_spec = (
19843
    None, # 0
19844
    (1, TType.I64, 'insurerId', None, None, ), # 1
19845
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
19846
  )
19847
 
19848
  def __init__(self, insurerId=None, amount=None,):
19849
    self.insurerId = insurerId
19850
    self.amount = amount
19851
 
19852
  def read(self, iprot):
19853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19855
      return
19856
    iprot.readStructBegin()
19857
    while True:
19858
      (fname, ftype, fid) = iprot.readFieldBegin()
19859
      if ftype == TType.STOP:
19860
        break
19861
      if fid == 1:
19862
        if ftype == TType.I64:
19863
          self.insurerId = iprot.readI64();
19864
        else:
19865
          iprot.skip(ftype)
19866
      elif fid == 2:
19867
        if ftype == TType.DOUBLE:
19868
          self.amount = iprot.readDouble();
19869
        else:
19870
          iprot.skip(ftype)
19871
      else:
19872
        iprot.skip(ftype)
19873
      iprot.readFieldEnd()
19874
    iprot.readStructEnd()
19875
 
19876
  def write(self, oprot):
19877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19879
      return
19880
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
19881
    if self.insurerId is not None:
19882
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19883
      oprot.writeI64(self.insurerId)
19884
      oprot.writeFieldEnd()
19885
    if self.amount is not None:
19886
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
19887
      oprot.writeDouble(self.amount)
19888
      oprot.writeFieldEnd()
19889
    oprot.writeFieldStop()
19890
    oprot.writeStructEnd()
19891
 
19892
  def validate(self):
19893
    return
19894
 
19895
 
19896
  def __repr__(self):
19897
    L = ['%s=%r' % (key, value)
19898
      for key, value in self.__dict__.iteritems()]
19899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19900
 
19901
  def __eq__(self, other):
19902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19903
 
19904
  def __ne__(self, other):
19905
    return not (self == other)
19906
 
19907
class updateInsuranceDeclaredAmount_result:
19908
 
19909
  thrift_spec = (
19910
  )
19911
 
19912
  def read(self, iprot):
19913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19915
      return
19916
    iprot.readStructBegin()
19917
    while True:
19918
      (fname, ftype, fid) = iprot.readFieldBegin()
19919
      if ftype == TType.STOP:
19920
        break
19921
      else:
19922
        iprot.skip(ftype)
19923
      iprot.readFieldEnd()
19924
    iprot.readStructEnd()
19925
 
19926
  def write(self, oprot):
19927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19929
      return
19930
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
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)
7190 amar.kumar 19948
 
19949
class getFreebieForItem_args:
19950
  """
19951
  Attributes:
19952
   - itemId
19953
  """
19954
 
19955
  thrift_spec = (
19956
    None, # 0
19957
    (1, TType.I64, 'itemId', None, None, ), # 1
19958
  )
19959
 
19960
  def __init__(self, itemId=None,):
19961
    self.itemId = itemId
19962
 
19963
  def read(self, iprot):
19964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19966
      return
19967
    iprot.readStructBegin()
19968
    while True:
19969
      (fname, ftype, fid) = iprot.readFieldBegin()
19970
      if ftype == TType.STOP:
19971
        break
19972
      if fid == 1:
19973
        if ftype == TType.I64:
19974
          self.itemId = iprot.readI64();
19975
        else:
19976
          iprot.skip(ftype)
19977
      else:
19978
        iprot.skip(ftype)
19979
      iprot.readFieldEnd()
19980
    iprot.readStructEnd()
19981
 
19982
  def write(self, oprot):
19983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19985
      return
19986
    oprot.writeStructBegin('getFreebieForItem_args')
19987
    if self.itemId is not None:
19988
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19989
      oprot.writeI64(self.itemId)
19990
      oprot.writeFieldEnd()
19991
    oprot.writeFieldStop()
19992
    oprot.writeStructEnd()
19993
 
19994
  def validate(self):
19995
    return
19996
 
19997
 
19998
  def __repr__(self):
19999
    L = ['%s=%r' % (key, value)
20000
      for key, value in self.__dict__.iteritems()]
20001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20002
 
20003
  def __eq__(self, other):
20004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20005
 
20006
  def __ne__(self, other):
20007
    return not (self == other)
20008
 
20009
class getFreebieForItem_result:
20010
  """
20011
  Attributes:
20012
   - success
20013
  """
20014
 
20015
  thrift_spec = (
20016
    (0, TType.I64, 'success', None, None, ), # 0
20017
  )
20018
 
20019
  def __init__(self, success=None,):
20020
    self.success = success
20021
 
20022
  def read(self, iprot):
20023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20025
      return
20026
    iprot.readStructBegin()
20027
    while True:
20028
      (fname, ftype, fid) = iprot.readFieldBegin()
20029
      if ftype == TType.STOP:
20030
        break
20031
      if fid == 0:
20032
        if ftype == TType.I64:
20033
          self.success = iprot.readI64();
20034
        else:
20035
          iprot.skip(ftype)
20036
      else:
20037
        iprot.skip(ftype)
20038
      iprot.readFieldEnd()
20039
    iprot.readStructEnd()
20040
 
20041
  def write(self, oprot):
20042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20044
      return
20045
    oprot.writeStructBegin('getFreebieForItem_result')
20046
    if self.success is not None:
20047
      oprot.writeFieldBegin('success', TType.I64, 0)
20048
      oprot.writeI64(self.success)
20049
      oprot.writeFieldEnd()
20050
    oprot.writeFieldStop()
20051
    oprot.writeStructEnd()
20052
 
20053
  def validate(self):
20054
    return
20055
 
20056
 
20057
  def __repr__(self):
20058
    L = ['%s=%r' % (key, value)
20059
      for key, value in self.__dict__.iteritems()]
20060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20061
 
20062
  def __eq__(self, other):
20063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20064
 
20065
  def __ne__(self, other):
20066
    return not (self == other)
20067
 
20068
class addOrUpdateFreebieForItem_args:
20069
  """
20070
  Attributes:
20071
   - freebieItem
20072
  """
20073
 
20074
  thrift_spec = (
20075
    None, # 0
20076
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
20077
  )
20078
 
20079
  def __init__(self, freebieItem=None,):
20080
    self.freebieItem = freebieItem
20081
 
20082
  def read(self, iprot):
20083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20085
      return
20086
    iprot.readStructBegin()
20087
    while True:
20088
      (fname, ftype, fid) = iprot.readFieldBegin()
20089
      if ftype == TType.STOP:
20090
        break
20091
      if fid == 1:
20092
        if ftype == TType.STRUCT:
20093
          self.freebieItem = FreebieItem()
20094
          self.freebieItem.read(iprot)
20095
        else:
20096
          iprot.skip(ftype)
20097
      else:
20098
        iprot.skip(ftype)
20099
      iprot.readFieldEnd()
20100
    iprot.readStructEnd()
20101
 
20102
  def write(self, oprot):
20103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20105
      return
20106
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
20107
    if self.freebieItem is not None:
20108
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
20109
      self.freebieItem.write(oprot)
20110
      oprot.writeFieldEnd()
20111
    oprot.writeFieldStop()
20112
    oprot.writeStructEnd()
20113
 
20114
  def validate(self):
20115
    return
20116
 
20117
 
20118
  def __repr__(self):
20119
    L = ['%s=%r' % (key, value)
20120
      for key, value in self.__dict__.iteritems()]
20121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20122
 
20123
  def __eq__(self, other):
20124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20125
 
20126
  def __ne__(self, other):
20127
    return not (self == other)
20128
 
20129
class addOrUpdateFreebieForItem_result:
20130
 
20131
  thrift_spec = (
20132
  )
20133
 
20134
  def read(self, iprot):
20135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20137
      return
20138
    iprot.readStructBegin()
20139
    while True:
20140
      (fname, ftype, fid) = iprot.readFieldBegin()
20141
      if ftype == TType.STOP:
20142
        break
20143
      else:
20144
        iprot.skip(ftype)
20145
      iprot.readFieldEnd()
20146
    iprot.readStructEnd()
20147
 
20148
  def write(self, oprot):
20149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20151
      return
20152
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
20153
    oprot.writeFieldStop()
20154
    oprot.writeStructEnd()
20155
 
20156
  def validate(self):
20157
    return
20158
 
20159
 
20160
  def __repr__(self):
20161
    L = ['%s=%r' % (key, value)
20162
      for key, value in self.__dict__.iteritems()]
20163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20164
 
20165
  def __eq__(self, other):
20166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20167
 
20168
  def __ne__(self, other):
20169
    return not (self == other)
7256 rajveer 20170
 
7272 amit.gupta 20171
class addOrUpdateBrandInfo_args:
20172
  """
20173
  Attributes:
20174
   - brandInfo
20175
  """
20176
 
20177
  thrift_spec = (
20178
    None, # 0
20179
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
20180
  )
20181
 
20182
  def __init__(self, brandInfo=None,):
20183
    self.brandInfo = brandInfo
20184
 
20185
  def read(self, iprot):
20186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20188
      return
20189
    iprot.readStructBegin()
20190
    while True:
20191
      (fname, ftype, fid) = iprot.readFieldBegin()
20192
      if ftype == TType.STOP:
20193
        break
20194
      if fid == 1:
20195
        if ftype == TType.STRUCT:
20196
          self.brandInfo = BrandInfo()
20197
          self.brandInfo.read(iprot)
20198
        else:
20199
          iprot.skip(ftype)
20200
      else:
20201
        iprot.skip(ftype)
20202
      iprot.readFieldEnd()
20203
    iprot.readStructEnd()
20204
 
20205
  def write(self, oprot):
20206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20208
      return
20209
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
20210
    if self.brandInfo is not None:
20211
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
20212
      self.brandInfo.write(oprot)
20213
      oprot.writeFieldEnd()
20214
    oprot.writeFieldStop()
20215
    oprot.writeStructEnd()
20216
 
20217
  def validate(self):
20218
    return
20219
 
20220
 
20221
  def __repr__(self):
20222
    L = ['%s=%r' % (key, value)
20223
      for key, value in self.__dict__.iteritems()]
20224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20225
 
20226
  def __eq__(self, other):
20227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20228
 
20229
  def __ne__(self, other):
20230
    return not (self == other)
20231
 
20232
class addOrUpdateBrandInfo_result:
20233
 
20234
  thrift_spec = (
20235
  )
20236
 
20237
  def read(self, iprot):
20238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20240
      return
20241
    iprot.readStructBegin()
20242
    while True:
20243
      (fname, ftype, fid) = iprot.readFieldBegin()
20244
      if ftype == TType.STOP:
20245
        break
20246
      else:
20247
        iprot.skip(ftype)
20248
      iprot.readFieldEnd()
20249
    iprot.readStructEnd()
20250
 
20251
  def write(self, oprot):
20252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20254
      return
20255
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
20256
    oprot.writeFieldStop()
20257
    oprot.writeStructEnd()
20258
 
20259
  def validate(self):
20260
    return
20261
 
20262
 
20263
  def __repr__(self):
20264
    L = ['%s=%r' % (key, value)
20265
      for key, value in self.__dict__.iteritems()]
20266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20267
 
20268
  def __eq__(self, other):
20269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20270
 
20271
  def __ne__(self, other):
20272
    return not (self == other)
20273
 
20274
class getBrandInfo_args:
20275
 
20276
  thrift_spec = (
20277
  )
20278
 
20279
  def read(self, iprot):
20280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20282
      return
20283
    iprot.readStructBegin()
20284
    while True:
20285
      (fname, ftype, fid) = iprot.readFieldBegin()
20286
      if ftype == TType.STOP:
20287
        break
20288
      else:
20289
        iprot.skip(ftype)
20290
      iprot.readFieldEnd()
20291
    iprot.readStructEnd()
20292
 
20293
  def write(self, oprot):
20294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20296
      return
20297
    oprot.writeStructBegin('getBrandInfo_args')
20298
    oprot.writeFieldStop()
20299
    oprot.writeStructEnd()
20300
 
20301
  def validate(self):
20302
    return
20303
 
20304
 
20305
  def __repr__(self):
20306
    L = ['%s=%r' % (key, value)
20307
      for key, value in self.__dict__.iteritems()]
20308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20309
 
20310
  def __eq__(self, other):
20311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20312
 
20313
  def __ne__(self, other):
20314
    return not (self == other)
20315
 
20316
class getBrandInfo_result:
20317
  """
20318
  Attributes:
20319
   - success
20320
  """
20321
 
20322
  thrift_spec = (
20323
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
20324
  )
20325
 
20326
  def __init__(self, success=None,):
20327
    self.success = success
20328
 
20329
  def read(self, iprot):
20330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20332
      return
20333
    iprot.readStructBegin()
20334
    while True:
20335
      (fname, ftype, fid) = iprot.readFieldBegin()
20336
      if ftype == TType.STOP:
20337
        break
20338
      if fid == 0:
20339
        if ftype == TType.MAP:
20340
          self.success = {}
9155 kshitij.so 20341
          (_ktype389, _vtype390, _size388 ) = iprot.readMapBegin() 
20342
          for _i392 in xrange(_size388):
20343
            _key393 = iprot.readString();
20344
            _val394 = BrandInfo()
20345
            _val394.read(iprot)
20346
            self.success[_key393] = _val394
7272 amit.gupta 20347
          iprot.readMapEnd()
20348
        else:
20349
          iprot.skip(ftype)
20350
      else:
20351
        iprot.skip(ftype)
20352
      iprot.readFieldEnd()
20353
    iprot.readStructEnd()
20354
 
20355
  def write(self, oprot):
20356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20358
      return
20359
    oprot.writeStructBegin('getBrandInfo_result')
20360
    if self.success is not None:
20361
      oprot.writeFieldBegin('success', TType.MAP, 0)
20362
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
9155 kshitij.so 20363
      for kiter395,viter396 in self.success.items():
20364
        oprot.writeString(kiter395)
20365
        viter396.write(oprot)
7272 amit.gupta 20366
      oprot.writeMapEnd()
20367
      oprot.writeFieldEnd()
20368
    oprot.writeFieldStop()
20369
    oprot.writeStructEnd()
20370
 
20371
  def validate(self):
20372
    return
20373
 
20374
 
20375
  def __repr__(self):
20376
    L = ['%s=%r' % (key, value)
20377
      for key, value in self.__dict__.iteritems()]
20378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20379
 
20380
  def __eq__(self, other):
20381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20382
 
20383
  def __ne__(self, other):
20384
    return not (self == other)
20385
 
7256 rajveer 20386
class getStorePricing_args:
20387
  """
20388
  Attributes:
20389
   - itemId
20390
  """
20391
 
20392
  thrift_spec = (
20393
    None, # 0
20394
    (1, TType.I64, 'itemId', None, None, ), # 1
20395
  )
20396
 
20397
  def __init__(self, itemId=None,):
20398
    self.itemId = itemId
20399
 
20400
  def read(self, iprot):
20401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20403
      return
20404
    iprot.readStructBegin()
20405
    while True:
20406
      (fname, ftype, fid) = iprot.readFieldBegin()
20407
      if ftype == TType.STOP:
20408
        break
20409
      if fid == 1:
20410
        if ftype == TType.I64:
20411
          self.itemId = iprot.readI64();
20412
        else:
20413
          iprot.skip(ftype)
20414
      else:
20415
        iprot.skip(ftype)
20416
      iprot.readFieldEnd()
20417
    iprot.readStructEnd()
20418
 
20419
  def write(self, oprot):
20420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20422
      return
20423
    oprot.writeStructBegin('getStorePricing_args')
20424
    if self.itemId is not None:
20425
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20426
      oprot.writeI64(self.itemId)
20427
      oprot.writeFieldEnd()
20428
    oprot.writeFieldStop()
20429
    oprot.writeStructEnd()
20430
 
20431
  def validate(self):
20432
    return
20433
 
20434
 
20435
  def __repr__(self):
20436
    L = ['%s=%r' % (key, value)
20437
      for key, value in self.__dict__.iteritems()]
20438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20439
 
20440
  def __eq__(self, other):
20441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20442
 
20443
  def __ne__(self, other):
20444
    return not (self == other)
20445
 
20446
class getStorePricing_result:
20447
  """
20448
  Attributes:
20449
   - success
20450
  """
20451
 
20452
  thrift_spec = (
20453
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
20454
  )
20455
 
20456
  def __init__(self, success=None,):
20457
    self.success = success
20458
 
20459
  def read(self, iprot):
20460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20462
      return
20463
    iprot.readStructBegin()
20464
    while True:
20465
      (fname, ftype, fid) = iprot.readFieldBegin()
20466
      if ftype == TType.STOP:
20467
        break
20468
      if fid == 0:
20469
        if ftype == TType.STRUCT:
20470
          self.success = StorePricing()
20471
          self.success.read(iprot)
20472
        else:
20473
          iprot.skip(ftype)
20474
      else:
20475
        iprot.skip(ftype)
20476
      iprot.readFieldEnd()
20477
    iprot.readStructEnd()
20478
 
20479
  def write(self, oprot):
20480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20482
      return
20483
    oprot.writeStructBegin('getStorePricing_result')
20484
    if self.success is not None:
20485
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20486
      self.success.write(oprot)
20487
      oprot.writeFieldEnd()
20488
    oprot.writeFieldStop()
20489
    oprot.writeStructEnd()
20490
 
20491
  def validate(self):
20492
    return
20493
 
20494
 
20495
  def __repr__(self):
20496
    L = ['%s=%r' % (key, value)
20497
      for key, value in self.__dict__.iteritems()]
20498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20499
 
20500
  def __eq__(self, other):
20501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20502
 
20503
  def __ne__(self, other):
20504
    return not (self == other)
7265 rajveer 20505
 
7306 rajveer 20506
class getStorePricings_args:
20507
  """
20508
  Attributes:
20509
   - itemIds
20510
  """
20511
 
20512
  thrift_spec = (
20513
    None, # 0
20514
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
20515
  )
20516
 
20517
  def __init__(self, itemIds=None,):
20518
    self.itemIds = itemIds
20519
 
20520
  def read(self, iprot):
20521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20523
      return
20524
    iprot.readStructBegin()
20525
    while True:
20526
      (fname, ftype, fid) = iprot.readFieldBegin()
20527
      if ftype == TType.STOP:
20528
        break
20529
      if fid == 1:
20530
        if ftype == TType.LIST:
20531
          self.itemIds = []
9155 kshitij.so 20532
          (_etype400, _size397) = iprot.readListBegin()
20533
          for _i401 in xrange(_size397):
20534
            _elem402 = iprot.readI64();
20535
            self.itemIds.append(_elem402)
7306 rajveer 20536
          iprot.readListEnd()
20537
        else:
20538
          iprot.skip(ftype)
20539
      else:
20540
        iprot.skip(ftype)
20541
      iprot.readFieldEnd()
20542
    iprot.readStructEnd()
20543
 
20544
  def write(self, oprot):
20545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20547
      return
20548
    oprot.writeStructBegin('getStorePricings_args')
20549
    if self.itemIds is not None:
20550
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
20551
      oprot.writeListBegin(TType.I64, len(self.itemIds))
9155 kshitij.so 20552
      for iter403 in self.itemIds:
20553
        oprot.writeI64(iter403)
7306 rajveer 20554
      oprot.writeListEnd()
20555
      oprot.writeFieldEnd()
20556
    oprot.writeFieldStop()
20557
    oprot.writeStructEnd()
20558
 
20559
  def validate(self):
20560
    return
20561
 
20562
 
20563
  def __repr__(self):
20564
    L = ['%s=%r' % (key, value)
20565
      for key, value in self.__dict__.iteritems()]
20566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20567
 
20568
  def __eq__(self, other):
20569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20570
 
20571
  def __ne__(self, other):
20572
    return not (self == other)
20573
 
20574
class getStorePricings_result:
20575
  """
20576
  Attributes:
20577
   - success
20578
  """
20579
 
20580
  thrift_spec = (
20581
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
20582
  )
20583
 
20584
  def __init__(self, success=None,):
20585
    self.success = success
20586
 
20587
  def read(self, iprot):
20588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20590
      return
20591
    iprot.readStructBegin()
20592
    while True:
20593
      (fname, ftype, fid) = iprot.readFieldBegin()
20594
      if ftype == TType.STOP:
20595
        break
20596
      if fid == 0:
20597
        if ftype == TType.LIST:
20598
          self.success = []
9155 kshitij.so 20599
          (_etype407, _size404) = iprot.readListBegin()
20600
          for _i408 in xrange(_size404):
20601
            _elem409 = StorePricing()
20602
            _elem409.read(iprot)
20603
            self.success.append(_elem409)
7306 rajveer 20604
          iprot.readListEnd()
20605
        else:
20606
          iprot.skip(ftype)
20607
      else:
20608
        iprot.skip(ftype)
20609
      iprot.readFieldEnd()
20610
    iprot.readStructEnd()
20611
 
20612
  def write(self, oprot):
20613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20615
      return
20616
    oprot.writeStructBegin('getStorePricings_result')
20617
    if self.success is not None:
20618
      oprot.writeFieldBegin('success', TType.LIST, 0)
20619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20620
      for iter410 in self.success:
20621
        iter410.write(oprot)
7306 rajveer 20622
      oprot.writeListEnd()
20623
      oprot.writeFieldEnd()
20624
    oprot.writeFieldStop()
20625
    oprot.writeStructEnd()
20626
 
20627
  def validate(self):
20628
    return
20629
 
20630
 
20631
  def __repr__(self):
20632
    L = ['%s=%r' % (key, value)
20633
      for key, value in self.__dict__.iteritems()]
20634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20635
 
20636
  def __eq__(self, other):
20637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20638
 
20639
  def __ne__(self, other):
20640
    return not (self == other)
20641
 
7265 rajveer 20642
class updateStorePricing_args:
20643
  """
20644
  Attributes:
20645
   - sp
7382 rajveer 20646
   - allColors
7265 rajveer 20647
  """
20648
 
20649
  thrift_spec = (
20650
    None, # 0
20651
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 20652
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 20653
  )
20654
 
7382 rajveer 20655
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 20656
    self.sp = sp
7382 rajveer 20657
    self.allColors = allColors
7265 rajveer 20658
 
20659
  def read(self, iprot):
20660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20662
      return
20663
    iprot.readStructBegin()
20664
    while True:
20665
      (fname, ftype, fid) = iprot.readFieldBegin()
20666
      if ftype == TType.STOP:
20667
        break
20668
      if fid == 1:
20669
        if ftype == TType.STRUCT:
20670
          self.sp = StorePricing()
20671
          self.sp.read(iprot)
20672
        else:
20673
          iprot.skip(ftype)
7382 rajveer 20674
      elif fid == 2:
20675
        if ftype == TType.BOOL:
20676
          self.allColors = iprot.readBool();
20677
        else:
20678
          iprot.skip(ftype)
7265 rajveer 20679
      else:
20680
        iprot.skip(ftype)
20681
      iprot.readFieldEnd()
20682
    iprot.readStructEnd()
20683
 
20684
  def write(self, oprot):
20685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20687
      return
20688
    oprot.writeStructBegin('updateStorePricing_args')
20689
    if self.sp is not None:
20690
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
20691
      self.sp.write(oprot)
20692
      oprot.writeFieldEnd()
7382 rajveer 20693
    if self.allColors is not None:
20694
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
20695
      oprot.writeBool(self.allColors)
20696
      oprot.writeFieldEnd()
7265 rajveer 20697
    oprot.writeFieldStop()
20698
    oprot.writeStructEnd()
20699
 
20700
  def validate(self):
20701
    return
20702
 
20703
 
20704
  def __repr__(self):
20705
    L = ['%s=%r' % (key, value)
20706
      for key, value in self.__dict__.iteritems()]
20707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20708
 
20709
  def __eq__(self, other):
20710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20711
 
20712
  def __ne__(self, other):
20713
    return not (self == other)
20714
 
20715
class updateStorePricing_result:
20716
 
20717
  thrift_spec = (
20718
  )
20719
 
20720
  def read(self, iprot):
20721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20723
      return
20724
    iprot.readStructBegin()
20725
    while True:
20726
      (fname, ftype, fid) = iprot.readFieldBegin()
20727
      if ftype == TType.STOP:
20728
        break
20729
      else:
20730
        iprot.skip(ftype)
20731
      iprot.readFieldEnd()
20732
    iprot.readStructEnd()
20733
 
20734
  def write(self, oprot):
20735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20737
      return
20738
    oprot.writeStructBegin('updateStorePricing_result')
20739
    oprot.writeFieldStop()
20740
    oprot.writeStructEnd()
20741
 
20742
  def validate(self):
20743
    return
20744
 
20745
 
20746
  def __repr__(self):
20747
    L = ['%s=%r' % (key, value)
20748
      for key, value in self.__dict__.iteritems()]
20749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20750
 
20751
  def __eq__(self, other):
20752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20753
 
20754
  def __ne__(self, other):
20755
    return not (self == other)
7281 kshitij.so 20756
 
20757
class getAllAmazonListedItems_args:
20758
 
20759
  thrift_spec = (
20760
  )
20761
 
20762
  def read(self, iprot):
20763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20765
      return
20766
    iprot.readStructBegin()
20767
    while True:
20768
      (fname, ftype, fid) = iprot.readFieldBegin()
20769
      if ftype == TType.STOP:
20770
        break
20771
      else:
20772
        iprot.skip(ftype)
20773
      iprot.readFieldEnd()
20774
    iprot.readStructEnd()
20775
 
20776
  def write(self, oprot):
20777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20779
      return
20780
    oprot.writeStructBegin('getAllAmazonListedItems_args')
20781
    oprot.writeFieldStop()
20782
    oprot.writeStructEnd()
20783
 
20784
  def validate(self):
20785
    return
20786
 
20787
 
20788
  def __repr__(self):
20789
    L = ['%s=%r' % (key, value)
20790
      for key, value in self.__dict__.iteritems()]
20791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20792
 
20793
  def __eq__(self, other):
20794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20795
 
20796
  def __ne__(self, other):
20797
    return not (self == other)
20798
 
20799
class getAllAmazonListedItems_result:
20800
  """
20801
  Attributes:
20802
   - success
20803
  """
20804
 
20805
  thrift_spec = (
20806
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20807
  )
20808
 
20809
  def __init__(self, success=None,):
20810
    self.success = success
20811
 
20812
  def read(self, iprot):
20813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20815
      return
20816
    iprot.readStructBegin()
20817
    while True:
20818
      (fname, ftype, fid) = iprot.readFieldBegin()
20819
      if ftype == TType.STOP:
20820
        break
20821
      if fid == 0:
20822
        if ftype == TType.LIST:
20823
          self.success = []
9155 kshitij.so 20824
          (_etype414, _size411) = iprot.readListBegin()
20825
          for _i415 in xrange(_size411):
20826
            _elem416 = Amazonlisted()
20827
            _elem416.read(iprot)
20828
            self.success.append(_elem416)
7281 kshitij.so 20829
          iprot.readListEnd()
20830
        else:
20831
          iprot.skip(ftype)
20832
      else:
20833
        iprot.skip(ftype)
20834
      iprot.readFieldEnd()
20835
    iprot.readStructEnd()
20836
 
20837
  def write(self, oprot):
20838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20840
      return
20841
    oprot.writeStructBegin('getAllAmazonListedItems_result')
20842
    if self.success is not None:
20843
      oprot.writeFieldBegin('success', TType.LIST, 0)
20844
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20845
      for iter417 in self.success:
20846
        iter417.write(oprot)
7281 kshitij.so 20847
      oprot.writeListEnd()
20848
      oprot.writeFieldEnd()
20849
    oprot.writeFieldStop()
20850
    oprot.writeStructEnd()
20851
 
20852
  def validate(self):
20853
    return
20854
 
20855
 
20856
  def __repr__(self):
20857
    L = ['%s=%r' % (key, value)
20858
      for key, value in self.__dict__.iteritems()]
20859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20860
 
20861
  def __eq__(self, other):
20862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20863
 
20864
  def __ne__(self, other):
20865
    return not (self == other)
20866
 
8619 kshitij.so 20867
class searchAmazonItems_args:
20868
  """
20869
  Attributes:
20870
   - searchTerm
20871
   - offset
20872
   - limit
20873
  """
20874
 
20875
  thrift_spec = (
20876
    None, # 0
20877
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20878
    (2, TType.I64, 'offset', None, None, ), # 2
20879
    (3, TType.I64, 'limit', None, None, ), # 3
20880
  )
20881
 
20882
  def __init__(self, searchTerm=None, offset=None, limit=None,):
20883
    self.searchTerm = searchTerm
20884
    self.offset = offset
20885
    self.limit = limit
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.LIST:
20898
          self.searchTerm = []
9155 kshitij.so 20899
          (_etype421, _size418) = iprot.readListBegin()
20900
          for _i422 in xrange(_size418):
20901
            _elem423 = iprot.readString();
20902
            self.searchTerm.append(_elem423)
8619 kshitij.so 20903
          iprot.readListEnd()
20904
        else:
20905
          iprot.skip(ftype)
20906
      elif fid == 2:
20907
        if ftype == TType.I64:
20908
          self.offset = iprot.readI64();
20909
        else:
20910
          iprot.skip(ftype)
20911
      elif fid == 3:
20912
        if ftype == TType.I64:
20913
          self.limit = 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('searchAmazonItems_args')
20926
    if self.searchTerm is not None:
20927
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20928
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20929
      for iter424 in self.searchTerm:
20930
        oprot.writeString(iter424)
8619 kshitij.so 20931
      oprot.writeListEnd()
20932
      oprot.writeFieldEnd()
20933
    if self.offset is not None:
20934
      oprot.writeFieldBegin('offset', TType.I64, 2)
20935
      oprot.writeI64(self.offset)
20936
      oprot.writeFieldEnd()
20937
    if self.limit is not None:
20938
      oprot.writeFieldBegin('limit', TType.I64, 3)
20939
      oprot.writeI64(self.limit)
20940
      oprot.writeFieldEnd()
20941
    oprot.writeFieldStop()
20942
    oprot.writeStructEnd()
20943
 
20944
  def validate(self):
20945
    return
20946
 
20947
 
20948
  def __repr__(self):
20949
    L = ['%s=%r' % (key, value)
20950
      for key, value in self.__dict__.iteritems()]
20951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20952
 
20953
  def __eq__(self, other):
20954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20955
 
20956
  def __ne__(self, other):
20957
    return not (self == other)
20958
 
20959
class searchAmazonItems_result:
20960
  """
20961
  Attributes:
20962
   - success
20963
  """
20964
 
20965
  thrift_spec = (
20966
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20967
  )
20968
 
20969
  def __init__(self, success=None,):
20970
    self.success = success
20971
 
20972
  def read(self, iprot):
20973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20975
      return
20976
    iprot.readStructBegin()
20977
    while True:
20978
      (fname, ftype, fid) = iprot.readFieldBegin()
20979
      if ftype == TType.STOP:
20980
        break
20981
      if fid == 0:
20982
        if ftype == TType.LIST:
20983
          self.success = []
9155 kshitij.so 20984
          (_etype428, _size425) = iprot.readListBegin()
20985
          for _i429 in xrange(_size425):
20986
            _elem430 = Amazonlisted()
20987
            _elem430.read(iprot)
20988
            self.success.append(_elem430)
8619 kshitij.so 20989
          iprot.readListEnd()
20990
        else:
20991
          iprot.skip(ftype)
20992
      else:
20993
        iprot.skip(ftype)
20994
      iprot.readFieldEnd()
20995
    iprot.readStructEnd()
20996
 
20997
  def write(self, oprot):
20998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21000
      return
21001
    oprot.writeStructBegin('searchAmazonItems_result')
21002
    if self.success is not None:
21003
      oprot.writeFieldBegin('success', TType.LIST, 0)
21004
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21005
      for iter431 in self.success:
21006
        iter431.write(oprot)
8619 kshitij.so 21007
      oprot.writeListEnd()
21008
      oprot.writeFieldEnd()
21009
    oprot.writeFieldStop()
21010
    oprot.writeStructEnd()
21011
 
21012
  def validate(self):
21013
    return
21014
 
21015
 
21016
  def __repr__(self):
21017
    L = ['%s=%r' % (key, value)
21018
      for key, value in self.__dict__.iteritems()]
21019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21020
 
21021
  def __eq__(self, other):
21022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21023
 
21024
  def __ne__(self, other):
21025
    return not (self == other)
21026
 
21027
class getAmazonSearchResultCount_args:
21028
  """
21029
  Attributes:
21030
   - searchTerm
21031
  """
21032
 
21033
  thrift_spec = (
21034
    None, # 0
21035
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
21036
  )
21037
 
21038
  def __init__(self, searchTerm=None,):
21039
    self.searchTerm = searchTerm
21040
 
21041
  def read(self, iprot):
21042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21044
      return
21045
    iprot.readStructBegin()
21046
    while True:
21047
      (fname, ftype, fid) = iprot.readFieldBegin()
21048
      if ftype == TType.STOP:
21049
        break
21050
      if fid == 1:
21051
        if ftype == TType.LIST:
21052
          self.searchTerm = []
9155 kshitij.so 21053
          (_etype435, _size432) = iprot.readListBegin()
21054
          for _i436 in xrange(_size432):
21055
            _elem437 = iprot.readString();
21056
            self.searchTerm.append(_elem437)
8619 kshitij.so 21057
          iprot.readListEnd()
21058
        else:
21059
          iprot.skip(ftype)
21060
      else:
21061
        iprot.skip(ftype)
21062
      iprot.readFieldEnd()
21063
    iprot.readStructEnd()
21064
 
21065
  def write(self, oprot):
21066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21068
      return
21069
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
21070
    if self.searchTerm is not None:
21071
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
21072
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 21073
      for iter438 in self.searchTerm:
21074
        oprot.writeString(iter438)
8619 kshitij.so 21075
      oprot.writeListEnd()
21076
      oprot.writeFieldEnd()
21077
    oprot.writeFieldStop()
21078
    oprot.writeStructEnd()
21079
 
21080
  def validate(self):
21081
    return
21082
 
21083
 
21084
  def __repr__(self):
21085
    L = ['%s=%r' % (key, value)
21086
      for key, value in self.__dict__.iteritems()]
21087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21088
 
21089
  def __eq__(self, other):
21090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21091
 
21092
  def __ne__(self, other):
21093
    return not (self == other)
21094
 
21095
class getAmazonSearchResultCount_result:
21096
  """
21097
  Attributes:
21098
   - success
21099
  """
21100
 
21101
  thrift_spec = (
21102
    (0, TType.I64, 'success', None, None, ), # 0
21103
  )
21104
 
21105
  def __init__(self, success=None,):
21106
    self.success = success
21107
 
21108
  def read(self, iprot):
21109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21111
      return
21112
    iprot.readStructBegin()
21113
    while True:
21114
      (fname, ftype, fid) = iprot.readFieldBegin()
21115
      if ftype == TType.STOP:
21116
        break
21117
      if fid == 0:
21118
        if ftype == TType.I64:
21119
          self.success = iprot.readI64();
21120
        else:
21121
          iprot.skip(ftype)
21122
      else:
21123
        iprot.skip(ftype)
21124
      iprot.readFieldEnd()
21125
    iprot.readStructEnd()
21126
 
21127
  def write(self, oprot):
21128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21130
      return
21131
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
21132
    if self.success is not None:
21133
      oprot.writeFieldBegin('success', TType.I64, 0)
21134
      oprot.writeI64(self.success)
21135
      oprot.writeFieldEnd()
21136
    oprot.writeFieldStop()
21137
    oprot.writeStructEnd()
21138
 
21139
  def validate(self):
21140
    return
21141
 
21142
 
21143
  def __repr__(self):
21144
    L = ['%s=%r' % (key, value)
21145
      for key, value in self.__dict__.iteritems()]
21146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21147
 
21148
  def __eq__(self, other):
21149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21150
 
21151
  def __ne__(self, other):
21152
    return not (self == other)
21153
 
21154
class getCountForAmazonlistedItems_args:
21155
 
21156
  thrift_spec = (
21157
  )
21158
 
21159
  def read(self, iprot):
21160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21162
      return
21163
    iprot.readStructBegin()
21164
    while True:
21165
      (fname, ftype, fid) = iprot.readFieldBegin()
21166
      if ftype == TType.STOP:
21167
        break
21168
      else:
21169
        iprot.skip(ftype)
21170
      iprot.readFieldEnd()
21171
    iprot.readStructEnd()
21172
 
21173
  def write(self, oprot):
21174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21176
      return
21177
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
21178
    oprot.writeFieldStop()
21179
    oprot.writeStructEnd()
21180
 
21181
  def validate(self):
21182
    return
21183
 
21184
 
21185
  def __repr__(self):
21186
    L = ['%s=%r' % (key, value)
21187
      for key, value in self.__dict__.iteritems()]
21188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21189
 
21190
  def __eq__(self, other):
21191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21192
 
21193
  def __ne__(self, other):
21194
    return not (self == other)
21195
 
21196
class getCountForAmazonlistedItems_result:
21197
  """
21198
  Attributes:
21199
   - success
21200
  """
21201
 
21202
  thrift_spec = (
21203
    (0, TType.I64, 'success', None, None, ), # 0
21204
  )
21205
 
21206
  def __init__(self, success=None,):
21207
    self.success = success
21208
 
21209
  def read(self, iprot):
21210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21212
      return
21213
    iprot.readStructBegin()
21214
    while True:
21215
      (fname, ftype, fid) = iprot.readFieldBegin()
21216
      if ftype == TType.STOP:
21217
        break
21218
      if fid == 0:
21219
        if ftype == TType.I64:
21220
          self.success = iprot.readI64();
21221
        else:
21222
          iprot.skip(ftype)
21223
      else:
21224
        iprot.skip(ftype)
21225
      iprot.readFieldEnd()
21226
    iprot.readStructEnd()
21227
 
21228
  def write(self, oprot):
21229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21231
      return
21232
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
21233
    if self.success is not None:
21234
      oprot.writeFieldBegin('success', TType.I64, 0)
21235
      oprot.writeI64(self.success)
21236
      oprot.writeFieldEnd()
21237
    oprot.writeFieldStop()
21238
    oprot.writeStructEnd()
21239
 
21240
  def validate(self):
21241
    return
21242
 
21243
 
21244
  def __repr__(self):
21245
    L = ['%s=%r' % (key, value)
21246
      for key, value in self.__dict__.iteritems()]
21247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21248
 
21249
  def __eq__(self, other):
21250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21251
 
21252
  def __ne__(self, other):
21253
    return not (self == other)
21254
 
7281 kshitij.so 21255
class getAmazonItemDetails_args:
21256
  """
21257
  Attributes:
21258
   - itemId
21259
  """
21260
 
21261
  thrift_spec = (
21262
    None, # 0
21263
    (1, TType.I64, 'itemId', None, None, ), # 1
21264
  )
21265
 
21266
  def __init__(self, itemId=None,):
21267
    self.itemId = itemId
21268
 
21269
  def read(self, iprot):
21270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21272
      return
21273
    iprot.readStructBegin()
21274
    while True:
21275
      (fname, ftype, fid) = iprot.readFieldBegin()
21276
      if ftype == TType.STOP:
21277
        break
21278
      if fid == 1:
21279
        if ftype == TType.I64:
21280
          self.itemId = iprot.readI64();
21281
        else:
21282
          iprot.skip(ftype)
21283
      else:
21284
        iprot.skip(ftype)
21285
      iprot.readFieldEnd()
21286
    iprot.readStructEnd()
21287
 
21288
  def write(self, oprot):
21289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21291
      return
21292
    oprot.writeStructBegin('getAmazonItemDetails_args')
21293
    if self.itemId is not None:
21294
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21295
      oprot.writeI64(self.itemId)
21296
      oprot.writeFieldEnd()
21297
    oprot.writeFieldStop()
21298
    oprot.writeStructEnd()
21299
 
21300
  def validate(self):
21301
    return
21302
 
21303
 
21304
  def __repr__(self):
21305
    L = ['%s=%r' % (key, value)
21306
      for key, value in self.__dict__.iteritems()]
21307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21308
 
21309
  def __eq__(self, other):
21310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21311
 
21312
  def __ne__(self, other):
21313
    return not (self == other)
21314
 
21315
class getAmazonItemDetails_result:
21316
  """
21317
  Attributes:
21318
   - success
21319
  """
21320
 
21321
  thrift_spec = (
21322
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
21323
  )
21324
 
21325
  def __init__(self, success=None,):
21326
    self.success = success
21327
 
21328
  def read(self, iprot):
21329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21331
      return
21332
    iprot.readStructBegin()
21333
    while True:
21334
      (fname, ftype, fid) = iprot.readFieldBegin()
21335
      if ftype == TType.STOP:
21336
        break
21337
      if fid == 0:
21338
        if ftype == TType.STRUCT:
21339
          self.success = Amazonlisted()
21340
          self.success.read(iprot)
21341
        else:
21342
          iprot.skip(ftype)
21343
      else:
21344
        iprot.skip(ftype)
21345
      iprot.readFieldEnd()
21346
    iprot.readStructEnd()
21347
 
21348
  def write(self, oprot):
21349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21351
      return
21352
    oprot.writeStructBegin('getAmazonItemDetails_result')
21353
    if self.success is not None:
21354
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21355
      self.success.write(oprot)
21356
      oprot.writeFieldEnd()
21357
    oprot.writeFieldStop()
21358
    oprot.writeStructEnd()
21359
 
21360
  def validate(self):
21361
    return
21362
 
21363
 
21364
  def __repr__(self):
21365
    L = ['%s=%r' % (key, value)
21366
      for key, value in self.__dict__.iteritems()]
21367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21368
 
21369
  def __eq__(self, other):
21370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21371
 
21372
  def __ne__(self, other):
21373
    return not (self == other)
21374
 
21375
class updateAmazonItemDetails_args:
21376
  """
21377
  Attributes:
8168 kshitij.so 21378
   - amazonlisted
7281 kshitij.so 21379
  """
21380
 
21381
  thrift_spec = (
21382
    None, # 0
8168 kshitij.so 21383
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 21384
  )
21385
 
8168 kshitij.so 21386
  def __init__(self, amazonlisted=None,):
21387
    self.amazonlisted = amazonlisted
7281 kshitij.so 21388
 
21389
  def read(self, iprot):
21390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21392
      return
21393
    iprot.readStructBegin()
21394
    while True:
21395
      (fname, ftype, fid) = iprot.readFieldBegin()
21396
      if ftype == TType.STOP:
21397
        break
21398
      if fid == 1:
8168 kshitij.so 21399
        if ftype == TType.STRUCT:
21400
          self.amazonlisted = Amazonlisted()
21401
          self.amazonlisted.read(iprot)
7281 kshitij.so 21402
        else:
21403
          iprot.skip(ftype)
21404
      else:
21405
        iprot.skip(ftype)
21406
      iprot.readFieldEnd()
21407
    iprot.readStructEnd()
21408
 
21409
  def write(self, oprot):
21410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21412
      return
21413
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 21414
    if self.amazonlisted is not None:
21415
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
21416
      self.amazonlisted.write(oprot)
7281 kshitij.so 21417
      oprot.writeFieldEnd()
21418
    oprot.writeFieldStop()
21419
    oprot.writeStructEnd()
21420
 
21421
  def validate(self):
21422
    return
21423
 
21424
 
21425
  def __repr__(self):
21426
    L = ['%s=%r' % (key, value)
21427
      for key, value in self.__dict__.iteritems()]
21428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21429
 
21430
  def __eq__(self, other):
21431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21432
 
21433
  def __ne__(self, other):
21434
    return not (self == other)
21435
 
21436
class updateAmazonItemDetails_result:
21437
 
21438
  thrift_spec = (
21439
  )
21440
 
21441
  def read(self, iprot):
21442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21444
      return
21445
    iprot.readStructBegin()
21446
    while True:
21447
      (fname, ftype, fid) = iprot.readFieldBegin()
21448
      if ftype == TType.STOP:
21449
        break
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('updateAmazonItemDetails_result')
21460
    oprot.writeFieldStop()
21461
    oprot.writeStructEnd()
21462
 
21463
  def validate(self):
21464
    return
21465
 
21466
 
21467
  def __repr__(self):
21468
    L = ['%s=%r' % (key, value)
21469
      for key, value in self.__dict__.iteritems()]
21470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21471
 
21472
  def __eq__(self, other):
21473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21474
 
21475
  def __ne__(self, other):
21476
    return not (self == other)
21477
 
21478
class addAmazonItem_args:
21479
  """
21480
  Attributes:
21481
   - amazonlisted
21482
  """
21483
 
21484
  thrift_spec = (
21485
    None, # 0
21486
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
21487
  )
21488
 
21489
  def __init__(self, amazonlisted=None,):
21490
    self.amazonlisted = amazonlisted
21491
 
21492
  def read(self, iprot):
21493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21495
      return
21496
    iprot.readStructBegin()
21497
    while True:
21498
      (fname, ftype, fid) = iprot.readFieldBegin()
21499
      if ftype == TType.STOP:
21500
        break
21501
      if fid == 1:
21502
        if ftype == TType.STRUCT:
21503
          self.amazonlisted = Amazonlisted()
21504
          self.amazonlisted.read(iprot)
21505
        else:
21506
          iprot.skip(ftype)
21507
      else:
21508
        iprot.skip(ftype)
21509
      iprot.readFieldEnd()
21510
    iprot.readStructEnd()
21511
 
21512
  def write(self, oprot):
21513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21515
      return
21516
    oprot.writeStructBegin('addAmazonItem_args')
21517
    if self.amazonlisted is not None:
21518
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
21519
      self.amazonlisted.write(oprot)
21520
      oprot.writeFieldEnd()
21521
    oprot.writeFieldStop()
21522
    oprot.writeStructEnd()
21523
 
21524
  def validate(self):
21525
    return
21526
 
21527
 
21528
  def __repr__(self):
21529
    L = ['%s=%r' % (key, value)
21530
      for key, value in self.__dict__.iteritems()]
21531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21532
 
21533
  def __eq__(self, other):
21534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21535
 
21536
  def __ne__(self, other):
21537
    return not (self == other)
21538
 
21539
class addAmazonItem_result:
21540
 
21541
  thrift_spec = (
21542
  )
21543
 
21544
  def read(self, iprot):
21545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21547
      return
21548
    iprot.readStructBegin()
21549
    while True:
21550
      (fname, ftype, fid) = iprot.readFieldBegin()
21551
      if ftype == TType.STOP:
21552
        break
21553
      else:
21554
        iprot.skip(ftype)
21555
      iprot.readFieldEnd()
21556
    iprot.readStructEnd()
21557
 
21558
  def write(self, oprot):
21559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21561
      return
21562
    oprot.writeStructBegin('addAmazonItem_result')
21563
    oprot.writeFieldStop()
21564
    oprot.writeStructEnd()
21565
 
21566
  def validate(self):
21567
    return
21568
 
21569
 
21570
  def __repr__(self):
21571
    L = ['%s=%r' % (key, value)
21572
      for key, value in self.__dict__.iteritems()]
21573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21574
 
21575
  def __eq__(self, other):
21576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21577
 
21578
  def __ne__(self, other):
21579
    return not (self == other)
7291 vikram.rag 21580
 
21581
class getAsinItems_args:
21582
 
21583
  thrift_spec = (
21584
  )
21585
 
21586
  def read(self, iprot):
21587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21589
      return
21590
    iprot.readStructBegin()
21591
    while True:
21592
      (fname, ftype, fid) = iprot.readFieldBegin()
21593
      if ftype == TType.STOP:
21594
        break
21595
      else:
21596
        iprot.skip(ftype)
21597
      iprot.readFieldEnd()
21598
    iprot.readStructEnd()
21599
 
21600
  def write(self, oprot):
21601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21603
      return
21604
    oprot.writeStructBegin('getAsinItems_args')
21605
    oprot.writeFieldStop()
21606
    oprot.writeStructEnd()
21607
 
21608
  def validate(self):
21609
    return
21610
 
21611
 
21612
  def __repr__(self):
21613
    L = ['%s=%r' % (key, value)
21614
      for key, value in self.__dict__.iteritems()]
21615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21616
 
21617
  def __eq__(self, other):
21618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21619
 
21620
  def __ne__(self, other):
21621
    return not (self == other)
21622
 
21623
class getAsinItems_result:
21624
  """
21625
  Attributes:
21626
   - success
21627
  """
21628
 
21629
  thrift_spec = (
21630
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
21631
  )
21632
 
21633
  def __init__(self, success=None,):
21634
    self.success = success
21635
 
21636
  def read(self, iprot):
21637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21639
      return
21640
    iprot.readStructBegin()
21641
    while True:
21642
      (fname, ftype, fid) = iprot.readFieldBegin()
21643
      if ftype == TType.STOP:
21644
        break
21645
      if fid == 0:
21646
        if ftype == TType.LIST:
21647
          self.success = []
9155 kshitij.so 21648
          (_etype442, _size439) = iprot.readListBegin()
21649
          for _i443 in xrange(_size439):
21650
            _elem444 = Item()
21651
            _elem444.read(iprot)
21652
            self.success.append(_elem444)
7291 vikram.rag 21653
          iprot.readListEnd()
21654
        else:
21655
          iprot.skip(ftype)
21656
      else:
21657
        iprot.skip(ftype)
21658
      iprot.readFieldEnd()
21659
    iprot.readStructEnd()
21660
 
21661
  def write(self, oprot):
21662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21664
      return
21665
    oprot.writeStructBegin('getAsinItems_result')
21666
    if self.success is not None:
21667
      oprot.writeFieldBegin('success', TType.LIST, 0)
21668
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21669
      for iter445 in self.success:
21670
        iter445.write(oprot)
7291 vikram.rag 21671
      oprot.writeListEnd()
21672
      oprot.writeFieldEnd()
21673
    oprot.writeFieldStop()
21674
    oprot.writeStructEnd()
21675
 
21676
  def validate(self):
21677
    return
21678
 
21679
 
21680
  def __repr__(self):
21681
    L = ['%s=%r' % (key, value)
21682
      for key, value in self.__dict__.iteritems()]
21683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21684
 
21685
  def __eq__(self, other):
21686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21687
 
21688
  def __ne__(self, other):
21689
    return not (self == other)
21690
 
21691
class getAllFbaListedItems_args:
21692
 
21693
  thrift_spec = (
21694
  )
21695
 
21696
  def read(self, iprot):
21697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21699
      return
21700
    iprot.readStructBegin()
21701
    while True:
21702
      (fname, ftype, fid) = iprot.readFieldBegin()
21703
      if ftype == TType.STOP:
21704
        break
21705
      else:
21706
        iprot.skip(ftype)
21707
      iprot.readFieldEnd()
21708
    iprot.readStructEnd()
21709
 
21710
  def write(self, oprot):
21711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21713
      return
21714
    oprot.writeStructBegin('getAllFbaListedItems_args')
21715
    oprot.writeFieldStop()
21716
    oprot.writeStructEnd()
21717
 
21718
  def validate(self):
21719
    return
21720
 
21721
 
21722
  def __repr__(self):
21723
    L = ['%s=%r' % (key, value)
21724
      for key, value in self.__dict__.iteritems()]
21725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21726
 
21727
  def __eq__(self, other):
21728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21729
 
21730
  def __ne__(self, other):
21731
    return not (self == other)
21732
 
21733
class getAllFbaListedItems_result:
21734
  """
21735
  Attributes:
21736
   - success
21737
  """
21738
 
21739
  thrift_spec = (
21740
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21741
  )
21742
 
21743
  def __init__(self, success=None,):
21744
    self.success = success
21745
 
21746
  def read(self, iprot):
21747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21749
      return
21750
    iprot.readStructBegin()
21751
    while True:
21752
      (fname, ftype, fid) = iprot.readFieldBegin()
21753
      if ftype == TType.STOP:
21754
        break
21755
      if fid == 0:
21756
        if ftype == TType.LIST:
21757
          self.success = []
9155 kshitij.so 21758
          (_etype449, _size446) = iprot.readListBegin()
21759
          for _i450 in xrange(_size446):
21760
            _elem451 = Amazonlisted()
21761
            _elem451.read(iprot)
21762
            self.success.append(_elem451)
7291 vikram.rag 21763
          iprot.readListEnd()
21764
        else:
21765
          iprot.skip(ftype)
21766
      else:
21767
        iprot.skip(ftype)
21768
      iprot.readFieldEnd()
21769
    iprot.readStructEnd()
21770
 
21771
  def write(self, oprot):
21772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21774
      return
21775
    oprot.writeStructBegin('getAllFbaListedItems_result')
21776
    if self.success is not None:
21777
      oprot.writeFieldBegin('success', TType.LIST, 0)
21778
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21779
      for iter452 in self.success:
21780
        iter452.write(oprot)
7291 vikram.rag 21781
      oprot.writeListEnd()
21782
      oprot.writeFieldEnd()
21783
    oprot.writeFieldStop()
21784
    oprot.writeStructEnd()
21785
 
21786
  def validate(self):
21787
    return
21788
 
21789
 
21790
  def __repr__(self):
21791
    L = ['%s=%r' % (key, value)
21792
      for key, value in self.__dict__.iteritems()]
21793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21794
 
21795
  def __eq__(self, other):
21796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21797
 
21798
  def __ne__(self, other):
21799
    return not (self == other)
21800
 
21801
class getAllNonFbaListedItems_args:
21802
 
21803
  thrift_spec = (
21804
  )
21805
 
21806
  def read(self, iprot):
21807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21809
      return
21810
    iprot.readStructBegin()
21811
    while True:
21812
      (fname, ftype, fid) = iprot.readFieldBegin()
21813
      if ftype == TType.STOP:
21814
        break
21815
      else:
21816
        iprot.skip(ftype)
21817
      iprot.readFieldEnd()
21818
    iprot.readStructEnd()
21819
 
21820
  def write(self, oprot):
21821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21823
      return
21824
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
21825
    oprot.writeFieldStop()
21826
    oprot.writeStructEnd()
21827
 
21828
  def validate(self):
21829
    return
21830
 
21831
 
21832
  def __repr__(self):
21833
    L = ['%s=%r' % (key, value)
21834
      for key, value in self.__dict__.iteritems()]
21835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21836
 
21837
  def __eq__(self, other):
21838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21839
 
21840
  def __ne__(self, other):
21841
    return not (self == other)
21842
 
21843
class getAllNonFbaListedItems_result:
21844
  """
21845
  Attributes:
21846
   - success
21847
  """
21848
 
21849
  thrift_spec = (
21850
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21851
  )
21852
 
21853
  def __init__(self, success=None,):
21854
    self.success = success
21855
 
21856
  def read(self, iprot):
21857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21859
      return
21860
    iprot.readStructBegin()
21861
    while True:
21862
      (fname, ftype, fid) = iprot.readFieldBegin()
21863
      if ftype == TType.STOP:
21864
        break
21865
      if fid == 0:
21866
        if ftype == TType.LIST:
21867
          self.success = []
9155 kshitij.so 21868
          (_etype456, _size453) = iprot.readListBegin()
21869
          for _i457 in xrange(_size453):
21870
            _elem458 = Amazonlisted()
21871
            _elem458.read(iprot)
21872
            self.success.append(_elem458)
7291 vikram.rag 21873
          iprot.readListEnd()
21874
        else:
21875
          iprot.skip(ftype)
21876
      else:
21877
        iprot.skip(ftype)
21878
      iprot.readFieldEnd()
21879
    iprot.readStructEnd()
21880
 
21881
  def write(self, oprot):
21882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21884
      return
21885
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
21886
    if self.success is not None:
21887
      oprot.writeFieldBegin('success', TType.LIST, 0)
21888
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21889
      for iter459 in self.success:
21890
        iter459.write(oprot)
7291 vikram.rag 21891
      oprot.writeListEnd()
21892
      oprot.writeFieldEnd()
21893
    oprot.writeFieldStop()
21894
    oprot.writeStructEnd()
21895
 
21896
  def validate(self):
21897
    return
21898
 
21899
 
21900
  def __repr__(self):
21901
    L = ['%s=%r' % (key, value)
21902
      for key, value in self.__dict__.iteritems()]
21903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21904
 
21905
  def __eq__(self, other):
21906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21907
 
21908
  def __ne__(self, other):
21909
    return not (self == other)
7460 kshitij.so 21910
 
21911
class updateItemInventory_args:
21912
  """
21913
  Attributes:
21914
   - itemId
21915
   - holdInventory
21916
   - defaultInventory
21917
  """
21918
 
21919
  thrift_spec = (
21920
    None, # 0
21921
    (1, TType.I64, 'itemId', None, None, ), # 1
21922
    (2, TType.I64, 'holdInventory', None, None, ), # 2
21923
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
21924
  )
21925
 
21926
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
21927
    self.itemId = itemId
21928
    self.holdInventory = holdInventory
21929
    self.defaultInventory = defaultInventory
21930
 
21931
  def read(self, iprot):
21932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21934
      return
21935
    iprot.readStructBegin()
21936
    while True:
21937
      (fname, ftype, fid) = iprot.readFieldBegin()
21938
      if ftype == TType.STOP:
21939
        break
21940
      if fid == 1:
21941
        if ftype == TType.I64:
21942
          self.itemId = iprot.readI64();
21943
        else:
21944
          iprot.skip(ftype)
21945
      elif fid == 2:
21946
        if ftype == TType.I64:
21947
          self.holdInventory = iprot.readI64();
21948
        else:
21949
          iprot.skip(ftype)
21950
      elif fid == 3:
21951
        if ftype == TType.I64:
21952
          self.defaultInventory = iprot.readI64();
21953
        else:
21954
          iprot.skip(ftype)
21955
      else:
21956
        iprot.skip(ftype)
21957
      iprot.readFieldEnd()
21958
    iprot.readStructEnd()
21959
 
21960
  def write(self, oprot):
21961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21963
      return
21964
    oprot.writeStructBegin('updateItemInventory_args')
21965
    if self.itemId is not None:
21966
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21967
      oprot.writeI64(self.itemId)
21968
      oprot.writeFieldEnd()
21969
    if self.holdInventory is not None:
21970
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
21971
      oprot.writeI64(self.holdInventory)
21972
      oprot.writeFieldEnd()
21973
    if self.defaultInventory is not None:
21974
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
21975
      oprot.writeI64(self.defaultInventory)
21976
      oprot.writeFieldEnd()
21977
    oprot.writeFieldStop()
21978
    oprot.writeStructEnd()
21979
 
21980
  def validate(self):
21981
    return
21982
 
21983
 
21984
  def __repr__(self):
21985
    L = ['%s=%r' % (key, value)
21986
      for key, value in self.__dict__.iteritems()]
21987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21988
 
21989
  def __eq__(self, other):
21990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21991
 
21992
  def __ne__(self, other):
21993
    return not (self == other)
21994
 
21995
class updateItemInventory_result:
21996
  """
21997
  Attributes:
21998
   - success
21999
  """
22000
 
22001
  thrift_spec = (
22002
    (0, TType.BOOL, 'success', None, None, ), # 0
22003
  )
22004
 
22005
  def __init__(self, success=None,):
22006
    self.success = success
22007
 
22008
  def read(self, iprot):
22009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22011
      return
22012
    iprot.readStructBegin()
22013
    while True:
22014
      (fname, ftype, fid) = iprot.readFieldBegin()
22015
      if ftype == TType.STOP:
22016
        break
22017
      if fid == 0:
22018
        if ftype == TType.BOOL:
22019
          self.success = iprot.readBool();
22020
        else:
22021
          iprot.skip(ftype)
22022
      else:
22023
        iprot.skip(ftype)
22024
      iprot.readFieldEnd()
22025
    iprot.readStructEnd()
22026
 
22027
  def write(self, oprot):
22028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22030
      return
22031
    oprot.writeStructBegin('updateItemInventory_result')
22032
    if self.success is not None:
22033
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22034
      oprot.writeBool(self.success)
22035
      oprot.writeFieldEnd()
22036
    oprot.writeFieldStop()
22037
    oprot.writeStructEnd()
22038
 
22039
  def validate(self):
22040
    return
22041
 
22042
 
22043
  def __repr__(self):
22044
    L = ['%s=%r' % (key, value)
22045
      for key, value in self.__dict__.iteritems()]
22046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22047
 
22048
  def __eq__(self, other):
22049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22050
 
22051
  def __ne__(self, other):
22052
    return not (self == other)
7770 kshitij.so 22053
 
22054
class updateTimestampForAmazonFeeds_args:
22055
  """
22056
  Attributes:
22057
   - type
22058
   - sku
22059
   - timestamp
22060
  """
22061
 
22062
  thrift_spec = (
22063
    None, # 0
22064
    (1, TType.STRING, 'type', None, None, ), # 1
22065
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
22066
    (3, TType.I64, 'timestamp', None, None, ), # 3
22067
  )
22068
 
22069
  def __init__(self, type=None, sku=None, timestamp=None,):
22070
    self.type = type
22071
    self.sku = sku
22072
    self.timestamp = timestamp
22073
 
22074
  def read(self, iprot):
22075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22077
      return
22078
    iprot.readStructBegin()
22079
    while True:
22080
      (fname, ftype, fid) = iprot.readFieldBegin()
22081
      if ftype == TType.STOP:
22082
        break
22083
      if fid == 1:
22084
        if ftype == TType.STRING:
22085
          self.type = iprot.readString();
22086
        else:
22087
          iprot.skip(ftype)
22088
      elif fid == 2:
22089
        if ftype == TType.LIST:
22090
          self.sku = []
9155 kshitij.so 22091
          (_etype463, _size460) = iprot.readListBegin()
22092
          for _i464 in xrange(_size460):
22093
            _elem465 = iprot.readI64();
22094
            self.sku.append(_elem465)
7770 kshitij.so 22095
          iprot.readListEnd()
22096
        else:
22097
          iprot.skip(ftype)
22098
      elif fid == 3:
22099
        if ftype == TType.I64:
22100
          self.timestamp = iprot.readI64();
22101
        else:
22102
          iprot.skip(ftype)
22103
      else:
22104
        iprot.skip(ftype)
22105
      iprot.readFieldEnd()
22106
    iprot.readStructEnd()
22107
 
22108
  def write(self, oprot):
22109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22111
      return
22112
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
22113
    if self.type is not None:
22114
      oprot.writeFieldBegin('type', TType.STRING, 1)
22115
      oprot.writeString(self.type)
22116
      oprot.writeFieldEnd()
22117
    if self.sku is not None:
22118
      oprot.writeFieldBegin('sku', TType.LIST, 2)
22119
      oprot.writeListBegin(TType.I64, len(self.sku))
9155 kshitij.so 22120
      for iter466 in self.sku:
22121
        oprot.writeI64(iter466)
7770 kshitij.so 22122
      oprot.writeListEnd()
22123
      oprot.writeFieldEnd()
22124
    if self.timestamp is not None:
22125
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
22126
      oprot.writeI64(self.timestamp)
22127
      oprot.writeFieldEnd()
22128
    oprot.writeFieldStop()
22129
    oprot.writeStructEnd()
22130
 
22131
  def validate(self):
22132
    return
22133
 
22134
 
22135
  def __repr__(self):
22136
    L = ['%s=%r' % (key, value)
22137
      for key, value in self.__dict__.iteritems()]
22138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22139
 
22140
  def __eq__(self, other):
22141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22142
 
22143
  def __ne__(self, other):
22144
    return not (self == other)
22145
 
22146
class updateTimestampForAmazonFeeds_result:
22147
  """
22148
  Attributes:
22149
   - success
22150
  """
22151
 
22152
  thrift_spec = (
22153
    (0, TType.BOOL, 'success', None, None, ), # 0
22154
  )
22155
 
22156
  def __init__(self, success=None,):
22157
    self.success = success
22158
 
22159
  def read(self, iprot):
22160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22162
      return
22163
    iprot.readStructBegin()
22164
    while True:
22165
      (fname, ftype, fid) = iprot.readFieldBegin()
22166
      if ftype == TType.STOP:
22167
        break
22168
      if fid == 0:
22169
        if ftype == TType.BOOL:
22170
          self.success = iprot.readBool();
22171
        else:
22172
          iprot.skip(ftype)
22173
      else:
22174
        iprot.skip(ftype)
22175
      iprot.readFieldEnd()
22176
    iprot.readStructEnd()
22177
 
22178
  def write(self, oprot):
22179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22181
      return
22182
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
22183
    if self.success is not None:
22184
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22185
      oprot.writeBool(self.success)
22186
      oprot.writeFieldEnd()
22187
    oprot.writeFieldStop()
22188
    oprot.writeStructEnd()
22189
 
22190
  def validate(self):
22191
    return
22192
 
22193
 
22194
  def __repr__(self):
22195
    L = ['%s=%r' % (key, value)
22196
      for key, value in self.__dict__.iteritems()]
22197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22198
 
22199
  def __eq__(self, other):
22200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22201
 
22202
  def __ne__(self, other):
22203
    return not (self == other)
7897 amar.kumar 22204
 
22205
class getAllParentCategories_args:
22206
 
22207
  thrift_spec = (
22208
  )
22209
 
22210
  def read(self, iprot):
22211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22213
      return
22214
    iprot.readStructBegin()
22215
    while True:
22216
      (fname, ftype, fid) = iprot.readFieldBegin()
22217
      if ftype == TType.STOP:
22218
        break
22219
      else:
22220
        iprot.skip(ftype)
22221
      iprot.readFieldEnd()
22222
    iprot.readStructEnd()
22223
 
22224
  def write(self, oprot):
22225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22227
      return
22228
    oprot.writeStructBegin('getAllParentCategories_args')
22229
    oprot.writeFieldStop()
22230
    oprot.writeStructEnd()
22231
 
22232
  def validate(self):
22233
    return
22234
 
22235
 
22236
  def __repr__(self):
22237
    L = ['%s=%r' % (key, value)
22238
      for key, value in self.__dict__.iteritems()]
22239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22240
 
22241
  def __eq__(self, other):
22242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22243
 
22244
  def __ne__(self, other):
22245
    return not (self == other)
22246
 
22247
class getAllParentCategories_result:
22248
  """
22249
  Attributes:
22250
   - success
22251
  """
22252
 
22253
  thrift_spec = (
22254
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
22255
  )
22256
 
22257
  def __init__(self, success=None,):
22258
    self.success = success
22259
 
22260
  def read(self, iprot):
22261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22263
      return
22264
    iprot.readStructBegin()
22265
    while True:
22266
      (fname, ftype, fid) = iprot.readFieldBegin()
22267
      if ftype == TType.STOP:
22268
        break
22269
      if fid == 0:
22270
        if ftype == TType.LIST:
22271
          self.success = []
9155 kshitij.so 22272
          (_etype470, _size467) = iprot.readListBegin()
22273
          for _i471 in xrange(_size467):
22274
            _elem472 = Category()
22275
            _elem472.read(iprot)
22276
            self.success.append(_elem472)
7897 amar.kumar 22277
          iprot.readListEnd()
22278
        else:
22279
          iprot.skip(ftype)
22280
      else:
22281
        iprot.skip(ftype)
22282
      iprot.readFieldEnd()
22283
    iprot.readStructEnd()
22284
 
22285
  def write(self, oprot):
22286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22288
      return
22289
    oprot.writeStructBegin('getAllParentCategories_result')
22290
    if self.success is not None:
22291
      oprot.writeFieldBegin('success', TType.LIST, 0)
22292
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22293
      for iter473 in self.success:
22294
        iter473.write(oprot)
7897 amar.kumar 22295
      oprot.writeListEnd()
22296
      oprot.writeFieldEnd()
22297
    oprot.writeFieldStop()
22298
    oprot.writeStructEnd()
22299
 
22300
  def validate(self):
22301
    return
22302
 
22303
 
22304
  def __repr__(self):
22305
    L = ['%s=%r' % (key, value)
22306
      for key, value in self.__dict__.iteritems()]
22307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22308
 
22309
  def __eq__(self, other):
22310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22311
 
22312
  def __ne__(self, other):
22313
    return not (self == other)
7977 kshitij.so 22314
 
22315
class addPageViewEvent_args:
22316
  """
22317
  Attributes:
22318
   - pageViewEvents
22319
  """
22320
 
22321
  thrift_spec = (
22322
    None, # 0
22323
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
22324
  )
22325
 
22326
  def __init__(self, pageViewEvents=None,):
22327
    self.pageViewEvents = pageViewEvents
22328
 
22329
  def read(self, iprot):
22330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22332
      return
22333
    iprot.readStructBegin()
22334
    while True:
22335
      (fname, ftype, fid) = iprot.readFieldBegin()
22336
      if ftype == TType.STOP:
22337
        break
22338
      if fid == 1:
22339
        if ftype == TType.STRUCT:
22340
          self.pageViewEvents = PageViewEvents()
22341
          self.pageViewEvents.read(iprot)
22342
        else:
22343
          iprot.skip(ftype)
22344
      else:
22345
        iprot.skip(ftype)
22346
      iprot.readFieldEnd()
22347
    iprot.readStructEnd()
22348
 
22349
  def write(self, oprot):
22350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22352
      return
22353
    oprot.writeStructBegin('addPageViewEvent_args')
22354
    if self.pageViewEvents is not None:
22355
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
22356
      self.pageViewEvents.write(oprot)
22357
      oprot.writeFieldEnd()
22358
    oprot.writeFieldStop()
22359
    oprot.writeStructEnd()
22360
 
22361
  def validate(self):
22362
    return
22363
 
22364
 
22365
  def __repr__(self):
22366
    L = ['%s=%r' % (key, value)
22367
      for key, value in self.__dict__.iteritems()]
22368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22369
 
22370
  def __eq__(self, other):
22371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22372
 
22373
  def __ne__(self, other):
22374
    return not (self == other)
22375
 
22376
class addPageViewEvent_result:
22377
 
22378
  thrift_spec = (
22379
  )
22380
 
22381
  def read(self, iprot):
22382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22384
      return
22385
    iprot.readStructBegin()
22386
    while True:
22387
      (fname, ftype, fid) = iprot.readFieldBegin()
22388
      if ftype == TType.STOP:
22389
        break
22390
      else:
22391
        iprot.skip(ftype)
22392
      iprot.readFieldEnd()
22393
    iprot.readStructEnd()
22394
 
22395
  def write(self, oprot):
22396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22398
      return
22399
    oprot.writeStructBegin('addPageViewEvent_result')
22400
    oprot.writeFieldStop()
22401
    oprot.writeStructEnd()
22402
 
22403
  def validate(self):
22404
    return
22405
 
22406
 
22407
  def __repr__(self):
22408
    L = ['%s=%r' % (key, value)
22409
      for key, value in self.__dict__.iteritems()]
22410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22411
 
22412
  def __eq__(self, other):
22413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22414
 
22415
  def __ne__(self, other):
22416
    return not (self == other)
22417
 
22418
class addCartEvent_args:
22419
  """
22420
  Attributes:
22421
   - cartEvents
22422
  """
22423
 
22424
  thrift_spec = (
22425
    None, # 0
22426
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
22427
  )
22428
 
22429
  def __init__(self, cartEvents=None,):
22430
    self.cartEvents = cartEvents
22431
 
22432
  def read(self, iprot):
22433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22435
      return
22436
    iprot.readStructBegin()
22437
    while True:
22438
      (fname, ftype, fid) = iprot.readFieldBegin()
22439
      if ftype == TType.STOP:
22440
        break
22441
      if fid == 1:
22442
        if ftype == TType.STRUCT:
22443
          self.cartEvents = CartEvents()
22444
          self.cartEvents.read(iprot)
22445
        else:
22446
          iprot.skip(ftype)
22447
      else:
22448
        iprot.skip(ftype)
22449
      iprot.readFieldEnd()
22450
    iprot.readStructEnd()
22451
 
22452
  def write(self, oprot):
22453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22455
      return
22456
    oprot.writeStructBegin('addCartEvent_args')
22457
    if self.cartEvents is not None:
22458
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
22459
      self.cartEvents.write(oprot)
22460
      oprot.writeFieldEnd()
22461
    oprot.writeFieldStop()
22462
    oprot.writeStructEnd()
22463
 
22464
  def validate(self):
22465
    return
22466
 
22467
 
22468
  def __repr__(self):
22469
    L = ['%s=%r' % (key, value)
22470
      for key, value in self.__dict__.iteritems()]
22471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22472
 
22473
  def __eq__(self, other):
22474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22475
 
22476
  def __ne__(self, other):
22477
    return not (self == other)
22478
 
22479
class addCartEvent_result:
22480
 
22481
  thrift_spec = (
22482
  )
22483
 
22484
  def read(self, iprot):
22485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22487
      return
22488
    iprot.readStructBegin()
22489
    while True:
22490
      (fname, ftype, fid) = iprot.readFieldBegin()
22491
      if ftype == TType.STOP:
22492
        break
22493
      else:
22494
        iprot.skip(ftype)
22495
      iprot.readFieldEnd()
22496
    iprot.readStructEnd()
22497
 
22498
  def write(self, oprot):
22499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22501
      return
22502
    oprot.writeStructBegin('addCartEvent_result')
22503
    oprot.writeFieldStop()
22504
    oprot.writeStructEnd()
22505
 
22506
  def validate(self):
22507
    return
22508
 
22509
 
22510
  def __repr__(self):
22511
    L = ['%s=%r' % (key, value)
22512
      for key, value in self.__dict__.iteritems()]
22513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22514
 
22515
  def __eq__(self, other):
22516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22517
 
22518
  def __ne__(self, other):
22519
    return not (self == other)
8139 kshitij.so 22520
 
8182 amar.kumar 22521
class addEbayItem_args:
22522
  """
22523
  Attributes:
22524
   - ebayItem
22525
  """
22526
 
22527
  thrift_spec = (
22528
    None, # 0
22529
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
22530
  )
22531
 
22532
  def __init__(self, ebayItem=None,):
22533
    self.ebayItem = ebayItem
22534
 
22535
  def read(self, iprot):
22536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22538
      return
22539
    iprot.readStructBegin()
22540
    while True:
22541
      (fname, ftype, fid) = iprot.readFieldBegin()
22542
      if ftype == TType.STOP:
22543
        break
22544
      if fid == 1:
22545
        if ftype == TType.STRUCT:
22546
          self.ebayItem = EbayItem()
22547
          self.ebayItem.read(iprot)
22548
        else:
22549
          iprot.skip(ftype)
22550
      else:
22551
        iprot.skip(ftype)
22552
      iprot.readFieldEnd()
22553
    iprot.readStructEnd()
22554
 
22555
  def write(self, oprot):
22556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22558
      return
22559
    oprot.writeStructBegin('addEbayItem_args')
22560
    if self.ebayItem is not None:
22561
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
22562
      self.ebayItem.write(oprot)
22563
      oprot.writeFieldEnd()
22564
    oprot.writeFieldStop()
22565
    oprot.writeStructEnd()
22566
 
22567
  def validate(self):
22568
    return
22569
 
22570
 
22571
  def __repr__(self):
22572
    L = ['%s=%r' % (key, value)
22573
      for key, value in self.__dict__.iteritems()]
22574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22575
 
22576
  def __eq__(self, other):
22577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22578
 
22579
  def __ne__(self, other):
22580
    return not (self == other)
22581
 
22582
class addEbayItem_result:
22583
 
22584
  thrift_spec = (
22585
  )
22586
 
22587
  def read(self, iprot):
22588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22590
      return
22591
    iprot.readStructBegin()
22592
    while True:
22593
      (fname, ftype, fid) = iprot.readFieldBegin()
22594
      if ftype == TType.STOP:
22595
        break
22596
      else:
22597
        iprot.skip(ftype)
22598
      iprot.readFieldEnd()
22599
    iprot.readStructEnd()
22600
 
22601
  def write(self, oprot):
22602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22604
      return
22605
    oprot.writeStructBegin('addEbayItem_result')
22606
    oprot.writeFieldStop()
22607
    oprot.writeStructEnd()
22608
 
22609
  def validate(self):
22610
    return
22611
 
22612
 
22613
  def __repr__(self):
22614
    L = ['%s=%r' % (key, value)
22615
      for key, value in self.__dict__.iteritems()]
22616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22617
 
22618
  def __eq__(self, other):
22619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22620
 
22621
  def __ne__(self, other):
22622
    return not (self == other)
22623
 
22624
class getEbayItem_args:
22625
  """
22626
  Attributes:
22627
   - listingId
22628
  """
22629
 
22630
  thrift_spec = (
22631
    None, # 0
22632
    (1, TType.STRING, 'listingId', None, None, ), # 1
22633
  )
22634
 
22635
  def __init__(self, listingId=None,):
22636
    self.listingId = listingId
22637
 
22638
  def read(self, iprot):
22639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22641
      return
22642
    iprot.readStructBegin()
22643
    while True:
22644
      (fname, ftype, fid) = iprot.readFieldBegin()
22645
      if ftype == TType.STOP:
22646
        break
22647
      if fid == 1:
22648
        if ftype == TType.STRING:
22649
          self.listingId = iprot.readString();
22650
        else:
22651
          iprot.skip(ftype)
22652
      else:
22653
        iprot.skip(ftype)
22654
      iprot.readFieldEnd()
22655
    iprot.readStructEnd()
22656
 
22657
  def write(self, oprot):
22658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22660
      return
22661
    oprot.writeStructBegin('getEbayItem_args')
22662
    if self.listingId is not None:
22663
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
22664
      oprot.writeString(self.listingId)
22665
      oprot.writeFieldEnd()
22666
    oprot.writeFieldStop()
22667
    oprot.writeStructEnd()
22668
 
22669
  def validate(self):
22670
    return
22671
 
22672
 
22673
  def __repr__(self):
22674
    L = ['%s=%r' % (key, value)
22675
      for key, value in self.__dict__.iteritems()]
22676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22677
 
22678
  def __eq__(self, other):
22679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22680
 
22681
  def __ne__(self, other):
22682
    return not (self == other)
22683
 
22684
class getEbayItem_result:
22685
  """
22686
  Attributes:
22687
   - success
22688
  """
22689
 
22690
  thrift_spec = (
22691
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
22692
  )
22693
 
22694
  def __init__(self, success=None,):
22695
    self.success = success
22696
 
22697
  def read(self, iprot):
22698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22700
      return
22701
    iprot.readStructBegin()
22702
    while True:
22703
      (fname, ftype, fid) = iprot.readFieldBegin()
22704
      if ftype == TType.STOP:
22705
        break
22706
      if fid == 0:
22707
        if ftype == TType.STRUCT:
22708
          self.success = EbayItem()
22709
          self.success.read(iprot)
22710
        else:
22711
          iprot.skip(ftype)
22712
      else:
22713
        iprot.skip(ftype)
22714
      iprot.readFieldEnd()
22715
    iprot.readStructEnd()
22716
 
22717
  def write(self, oprot):
22718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22720
      return
22721
    oprot.writeStructBegin('getEbayItem_result')
22722
    if self.success is not None:
22723
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22724
      self.success.write(oprot)
22725
      oprot.writeFieldEnd()
22726
    oprot.writeFieldStop()
22727
    oprot.writeStructEnd()
22728
 
22729
  def validate(self):
22730
    return
22731
 
22732
 
22733
  def __repr__(self):
22734
    L = ['%s=%r' % (key, value)
22735
      for key, value in self.__dict__.iteritems()]
22736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22737
 
22738
  def __eq__(self, other):
22739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22740
 
22741
  def __ne__(self, other):
22742
    return not (self == other)
22743
 
22744
class updateEbayItem_args:
22745
  """
22746
  Attributes:
22747
   - ebayItem
22748
  """
22749
 
22750
  thrift_spec = (
22751
    None, # 0
22752
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
22753
  )
22754
 
22755
  def __init__(self, ebayItem=None,):
22756
    self.ebayItem = ebayItem
22757
 
22758
  def read(self, iprot):
22759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22761
      return
22762
    iprot.readStructBegin()
22763
    while True:
22764
      (fname, ftype, fid) = iprot.readFieldBegin()
22765
      if ftype == TType.STOP:
22766
        break
22767
      if fid == 1:
22768
        if ftype == TType.STRUCT:
22769
          self.ebayItem = EbayItem()
22770
          self.ebayItem.read(iprot)
22771
        else:
22772
          iprot.skip(ftype)
22773
      else:
22774
        iprot.skip(ftype)
22775
      iprot.readFieldEnd()
22776
    iprot.readStructEnd()
22777
 
22778
  def write(self, oprot):
22779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22781
      return
22782
    oprot.writeStructBegin('updateEbayItem_args')
22783
    if self.ebayItem is not None:
22784
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
22785
      self.ebayItem.write(oprot)
22786
      oprot.writeFieldEnd()
22787
    oprot.writeFieldStop()
22788
    oprot.writeStructEnd()
22789
 
22790
  def validate(self):
22791
    return
22792
 
22793
 
22794
  def __repr__(self):
22795
    L = ['%s=%r' % (key, value)
22796
      for key, value in self.__dict__.iteritems()]
22797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22798
 
22799
  def __eq__(self, other):
22800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22801
 
22802
  def __ne__(self, other):
22803
    return not (self == other)
22804
 
22805
class updateEbayItem_result:
22806
 
22807
  thrift_spec = (
22808
  )
22809
 
22810
  def read(self, iprot):
22811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22813
      return
22814
    iprot.readStructBegin()
22815
    while True:
22816
      (fname, ftype, fid) = iprot.readFieldBegin()
22817
      if ftype == TType.STOP:
22818
        break
22819
      else:
22820
        iprot.skip(ftype)
22821
      iprot.readFieldEnd()
22822
    iprot.readStructEnd()
22823
 
22824
  def write(self, oprot):
22825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22827
      return
22828
    oprot.writeStructBegin('updateEbayItem_result')
22829
    oprot.writeFieldStop()
22830
    oprot.writeStructEnd()
22831
 
22832
  def validate(self):
22833
    return
22834
 
22835
 
22836
  def __repr__(self):
22837
    L = ['%s=%r' % (key, value)
22838
      for key, value in self.__dict__.iteritems()]
22839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22840
 
22841
  def __eq__(self, other):
22842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22843
 
22844
  def __ne__(self, other):
22845
    return not (self == other)
22846
 
8139 kshitij.so 22847
class getAmazonListedItems_args:
22848
  """
22849
  Attributes:
22850
   - offset
22851
   - limit
22852
  """
22853
 
22854
  thrift_spec = (
22855
    None, # 0
22856
    (1, TType.I64, 'offset', None, None, ), # 1
22857
    (2, TType.I64, 'limit', None, None, ), # 2
22858
  )
22859
 
22860
  def __init__(self, offset=None, limit=None,):
22861
    self.offset = offset
22862
    self.limit = limit
22863
 
22864
  def read(self, iprot):
22865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22867
      return
22868
    iprot.readStructBegin()
22869
    while True:
22870
      (fname, ftype, fid) = iprot.readFieldBegin()
22871
      if ftype == TType.STOP:
22872
        break
22873
      if fid == 1:
22874
        if ftype == TType.I64:
22875
          self.offset = iprot.readI64();
22876
        else:
22877
          iprot.skip(ftype)
22878
      elif fid == 2:
22879
        if ftype == TType.I64:
22880
          self.limit = iprot.readI64();
22881
        else:
22882
          iprot.skip(ftype)
22883
      else:
22884
        iprot.skip(ftype)
22885
      iprot.readFieldEnd()
22886
    iprot.readStructEnd()
22887
 
22888
  def write(self, oprot):
22889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22891
      return
22892
    oprot.writeStructBegin('getAmazonListedItems_args')
22893
    if self.offset is not None:
22894
      oprot.writeFieldBegin('offset', TType.I64, 1)
22895
      oprot.writeI64(self.offset)
22896
      oprot.writeFieldEnd()
22897
    if self.limit is not None:
22898
      oprot.writeFieldBegin('limit', TType.I64, 2)
22899
      oprot.writeI64(self.limit)
22900
      oprot.writeFieldEnd()
22901
    oprot.writeFieldStop()
22902
    oprot.writeStructEnd()
22903
 
22904
  def validate(self):
22905
    return
22906
 
22907
 
22908
  def __repr__(self):
22909
    L = ['%s=%r' % (key, value)
22910
      for key, value in self.__dict__.iteritems()]
22911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22912
 
22913
  def __eq__(self, other):
22914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22915
 
22916
  def __ne__(self, other):
22917
    return not (self == other)
22918
 
22919
class getAmazonListedItems_result:
22920
  """
22921
  Attributes:
22922
   - success
22923
  """
22924
 
22925
  thrift_spec = (
22926
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22927
  )
22928
 
22929
  def __init__(self, success=None,):
22930
    self.success = success
22931
 
22932
  def read(self, iprot):
22933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22935
      return
22936
    iprot.readStructBegin()
22937
    while True:
22938
      (fname, ftype, fid) = iprot.readFieldBegin()
22939
      if ftype == TType.STOP:
22940
        break
22941
      if fid == 0:
22942
        if ftype == TType.LIST:
22943
          self.success = []
9155 kshitij.so 22944
          (_etype477, _size474) = iprot.readListBegin()
22945
          for _i478 in xrange(_size474):
22946
            _elem479 = Amazonlisted()
22947
            _elem479.read(iprot)
22948
            self.success.append(_elem479)
8139 kshitij.so 22949
          iprot.readListEnd()
22950
        else:
22951
          iprot.skip(ftype)
22952
      else:
22953
        iprot.skip(ftype)
22954
      iprot.readFieldEnd()
22955
    iprot.readStructEnd()
22956
 
22957
  def write(self, oprot):
22958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22960
      return
22961
    oprot.writeStructBegin('getAmazonListedItems_result')
22962
    if self.success is not None:
22963
      oprot.writeFieldBegin('success', TType.LIST, 0)
22964
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22965
      for iter480 in self.success:
22966
        iter480.write(oprot)
8139 kshitij.so 22967
      oprot.writeListEnd()
22968
      oprot.writeFieldEnd()
22969
    oprot.writeFieldStop()
22970
    oprot.writeStructEnd()
22971
 
22972
  def validate(self):
22973
    return
22974
 
22975
 
22976
  def __repr__(self):
22977
    L = ['%s=%r' % (key, value)
22978
      for key, value in self.__dict__.iteritems()]
22979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22980
 
22981
  def __eq__(self, other):
22982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22983
 
22984
  def __ne__(self, other):
22985
    return not (self == other)
8168 kshitij.so 22986
 
22987
class updateAmazonAttributesInBulk_args:
22988
  """
22989
  Attributes:
22990
   - amazonlisted
22991
  """
22992
 
22993
  thrift_spec = (
22994
    None, # 0
22995
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
22996
  )
22997
 
22998
  def __init__(self, amazonlisted=None,):
22999
    self.amazonlisted = amazonlisted
23000
 
23001
  def read(self, iprot):
23002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23004
      return
23005
    iprot.readStructBegin()
23006
    while True:
23007
      (fname, ftype, fid) = iprot.readFieldBegin()
23008
      if ftype == TType.STOP:
23009
        break
23010
      if fid == 1:
23011
        if ftype == TType.MAP:
23012
          self.amazonlisted = {}
9155 kshitij.so 23013
          (_ktype482, _vtype483, _size481 ) = iprot.readMapBegin() 
23014
          for _i485 in xrange(_size481):
23015
            _key486 = iprot.readI64();
23016
            _val487 = Amazonlisted()
23017
            _val487.read(iprot)
23018
            self.amazonlisted[_key486] = _val487
8168 kshitij.so 23019
          iprot.readMapEnd()
23020
        else:
23021
          iprot.skip(ftype)
23022
      else:
23023
        iprot.skip(ftype)
23024
      iprot.readFieldEnd()
23025
    iprot.readStructEnd()
23026
 
23027
  def write(self, oprot):
23028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23030
      return
23031
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
23032
    if self.amazonlisted is not None:
23033
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
23034
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
9155 kshitij.so 23035
      for kiter488,viter489 in self.amazonlisted.items():
23036
        oprot.writeI64(kiter488)
23037
        viter489.write(oprot)
8168 kshitij.so 23038
      oprot.writeMapEnd()
23039
      oprot.writeFieldEnd()
23040
    oprot.writeFieldStop()
23041
    oprot.writeStructEnd()
23042
 
23043
  def validate(self):
23044
    return
23045
 
23046
 
23047
  def __repr__(self):
23048
    L = ['%s=%r' % (key, value)
23049
      for key, value in self.__dict__.iteritems()]
23050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23051
 
23052
  def __eq__(self, other):
23053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23054
 
23055
  def __ne__(self, other):
23056
    return not (self == other)
23057
 
23058
class updateAmazonAttributesInBulk_result:
23059
  """
23060
  Attributes:
23061
   - success
23062
  """
23063
 
23064
  thrift_spec = (
23065
    (0, TType.BOOL, 'success', None, None, ), # 0
23066
  )
23067
 
23068
  def __init__(self, success=None,):
23069
    self.success = success
23070
 
23071
  def read(self, iprot):
23072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23074
      return
23075
    iprot.readStructBegin()
23076
    while True:
23077
      (fname, ftype, fid) = iprot.readFieldBegin()
23078
      if ftype == TType.STOP:
23079
        break
23080
      if fid == 0:
23081
        if ftype == TType.BOOL:
23082
          self.success = iprot.readBool();
23083
        else:
23084
          iprot.skip(ftype)
23085
      else:
23086
        iprot.skip(ftype)
23087
      iprot.readFieldEnd()
23088
    iprot.readStructEnd()
23089
 
23090
  def write(self, oprot):
23091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23093
      return
23094
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
23095
    if self.success is not None:
23096
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23097
      oprot.writeBool(self.success)
23098
      oprot.writeFieldEnd()
23099
    oprot.writeFieldStop()
23100
    oprot.writeStructEnd()
23101
 
23102
  def validate(self):
23103
    return
23104
 
23105
 
23106
  def __repr__(self):
23107
    L = ['%s=%r' % (key, value)
23108
      for key, value in self.__dict__.iteritems()]
23109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23110
 
23111
  def __eq__(self, other):
23112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23113
 
23114
  def __ne__(self, other):
23115
    return not (self == other)
8379 vikram.rag 23116
 
23117
class getAllItemstoListOnFba_args:
23118
 
23119
  thrift_spec = (
23120
  )
23121
 
23122
  def read(self, iprot):
23123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23125
      return
23126
    iprot.readStructBegin()
23127
    while True:
23128
      (fname, ftype, fid) = iprot.readFieldBegin()
23129
      if ftype == TType.STOP:
23130
        break
23131
      else:
23132
        iprot.skip(ftype)
23133
      iprot.readFieldEnd()
23134
    iprot.readStructEnd()
23135
 
23136
  def write(self, oprot):
23137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23139
      return
23140
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
23141
    oprot.writeFieldStop()
23142
    oprot.writeStructEnd()
23143
 
23144
  def validate(self):
23145
    return
23146
 
23147
 
23148
  def __repr__(self):
23149
    L = ['%s=%r' % (key, value)
23150
      for key, value in self.__dict__.iteritems()]
23151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23152
 
23153
  def __eq__(self, other):
23154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23155
 
23156
  def __ne__(self, other):
23157
    return not (self == other)
23158
 
23159
class getAllItemstoListOnFba_result:
23160
  """
23161
  Attributes:
23162
   - success
23163
  """
23164
 
23165
  thrift_spec = (
23166
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23167
  )
23168
 
23169
  def __init__(self, success=None,):
23170
    self.success = success
23171
 
23172
  def read(self, iprot):
23173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23175
      return
23176
    iprot.readStructBegin()
23177
    while True:
23178
      (fname, ftype, fid) = iprot.readFieldBegin()
23179
      if ftype == TType.STOP:
23180
        break
23181
      if fid == 0:
23182
        if ftype == TType.LIST:
23183
          self.success = []
9155 kshitij.so 23184
          (_etype493, _size490) = iprot.readListBegin()
23185
          for _i494 in xrange(_size490):
23186
            _elem495 = Amazonlisted()
23187
            _elem495.read(iprot)
23188
            self.success.append(_elem495)
8379 vikram.rag 23189
          iprot.readListEnd()
23190
        else:
23191
          iprot.skip(ftype)
23192
      else:
23193
        iprot.skip(ftype)
23194
      iprot.readFieldEnd()
23195
    iprot.readStructEnd()
23196
 
23197
  def write(self, oprot):
23198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23200
      return
23201
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
23202
    if self.success is not None:
23203
      oprot.writeFieldBegin('success', TType.LIST, 0)
23204
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23205
      for iter496 in self.success:
23206
        iter496.write(oprot)
8379 vikram.rag 23207
      oprot.writeListEnd()
23208
      oprot.writeFieldEnd()
23209
    oprot.writeFieldStop()
23210
    oprot.writeStructEnd()
23211
 
23212
  def validate(self):
23213
    return
23214
 
23215
 
23216
  def __repr__(self):
23217
    L = ['%s=%r' % (key, value)
23218
      for key, value in self.__dict__.iteritems()]
23219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23220
 
23221
  def __eq__(self, other):
23222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23223
 
23224
  def __ne__(self, other):
23225
    return not (self == other)
23226
 
23227
class getAllItemstoListOnNonFba_args:
23228
 
23229
  thrift_spec = (
23230
  )
23231
 
23232
  def read(self, iprot):
23233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23235
      return
23236
    iprot.readStructBegin()
23237
    while True:
23238
      (fname, ftype, fid) = iprot.readFieldBegin()
23239
      if ftype == TType.STOP:
23240
        break
23241
      else:
23242
        iprot.skip(ftype)
23243
      iprot.readFieldEnd()
23244
    iprot.readStructEnd()
23245
 
23246
  def write(self, oprot):
23247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23249
      return
23250
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
23251
    oprot.writeFieldStop()
23252
    oprot.writeStructEnd()
23253
 
23254
  def validate(self):
23255
    return
23256
 
23257
 
23258
  def __repr__(self):
23259
    L = ['%s=%r' % (key, value)
23260
      for key, value in self.__dict__.iteritems()]
23261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23262
 
23263
  def __eq__(self, other):
23264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23265
 
23266
  def __ne__(self, other):
23267
    return not (self == other)
23268
 
23269
class getAllItemstoListOnNonFba_result:
23270
  """
23271
  Attributes:
23272
   - success
23273
  """
23274
 
23275
  thrift_spec = (
23276
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23277
  )
23278
 
23279
  def __init__(self, success=None,):
23280
    self.success = success
23281
 
23282
  def read(self, iprot):
23283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23285
      return
23286
    iprot.readStructBegin()
23287
    while True:
23288
      (fname, ftype, fid) = iprot.readFieldBegin()
23289
      if ftype == TType.STOP:
23290
        break
23291
      if fid == 0:
23292
        if ftype == TType.LIST:
23293
          self.success = []
9155 kshitij.so 23294
          (_etype500, _size497) = iprot.readListBegin()
23295
          for _i501 in xrange(_size497):
23296
            _elem502 = Amazonlisted()
23297
            _elem502.read(iprot)
23298
            self.success.append(_elem502)
8379 vikram.rag 23299
          iprot.readListEnd()
23300
        else:
23301
          iprot.skip(ftype)
23302
      else:
23303
        iprot.skip(ftype)
23304
      iprot.readFieldEnd()
23305
    iprot.readStructEnd()
23306
 
23307
  def write(self, oprot):
23308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23310
      return
23311
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
23312
    if self.success is not None:
23313
      oprot.writeFieldBegin('success', TType.LIST, 0)
23314
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23315
      for iter503 in self.success:
23316
        iter503.write(oprot)
8379 vikram.rag 23317
      oprot.writeListEnd()
23318
      oprot.writeFieldEnd()
23319
    oprot.writeFieldStop()
23320
    oprot.writeStructEnd()
23321
 
23322
  def validate(self):
23323
    return
23324
 
23325
 
23326
  def __repr__(self):
23327
    L = ['%s=%r' % (key, value)
23328
      for key, value in self.__dict__.iteritems()]
23329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23330
 
23331
  def __eq__(self, other):
23332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23333
 
23334
  def __ne__(self, other):
23335
    return not (self == other)
8616 vikram.rag 23336
 
9242 kshitij.so 23337
class updateAsin_args:
23338
  """
23339
  Attributes:
23340
   - item
23341
  """
8616 vikram.rag 23342
 
23343
  thrift_spec = (
9242 kshitij.so 23344
    None, # 0
23345
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 23346
  )
23347
 
9242 kshitij.so 23348
  def __init__(self, item=None,):
23349
    self.item = item
23350
 
8616 vikram.rag 23351
  def read(self, iprot):
23352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23354
      return
23355
    iprot.readStructBegin()
23356
    while True:
23357
      (fname, ftype, fid) = iprot.readFieldBegin()
23358
      if ftype == TType.STOP:
23359
        break
9242 kshitij.so 23360
      if fid == 1:
23361
        if ftype == TType.MAP:
23362
          self.item = {}
23363
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
23364
          for _i508 in xrange(_size504):
23365
            _key509 = iprot.readI64();
23366
            _val510 = Item()
23367
            _val510.read(iprot)
23368
            self.item[_key509] = _val510
23369
          iprot.readMapEnd()
23370
        else:
23371
          iprot.skip(ftype)
8616 vikram.rag 23372
      else:
23373
        iprot.skip(ftype)
23374
      iprot.readFieldEnd()
23375
    iprot.readStructEnd()
23376
 
23377
  def write(self, oprot):
23378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23380
      return
9242 kshitij.so 23381
    oprot.writeStructBegin('updateAsin_args')
23382
    if self.item is not None:
23383
      oprot.writeFieldBegin('item', TType.MAP, 1)
23384
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
23385
      for kiter511,viter512 in self.item.items():
23386
        oprot.writeI64(kiter511)
23387
        viter512.write(oprot)
23388
      oprot.writeMapEnd()
23389
      oprot.writeFieldEnd()
8616 vikram.rag 23390
    oprot.writeFieldStop()
23391
    oprot.writeStructEnd()
23392
 
23393
  def validate(self):
23394
    return
23395
 
23396
 
23397
  def __repr__(self):
23398
    L = ['%s=%r' % (key, value)
23399
      for key, value in self.__dict__.iteritems()]
23400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23401
 
23402
  def __eq__(self, other):
23403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23404
 
23405
  def __ne__(self, other):
23406
    return not (self == other)
23407
 
9242 kshitij.so 23408
class updateAsin_result:
8616 vikram.rag 23409
 
23410
  thrift_spec = (
23411
  )
23412
 
23413
  def read(self, iprot):
23414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23416
      return
23417
    iprot.readStructBegin()
23418
    while True:
23419
      (fname, ftype, fid) = iprot.readFieldBegin()
23420
      if ftype == TType.STOP:
23421
        break
23422
      else:
23423
        iprot.skip(ftype)
23424
      iprot.readFieldEnd()
23425
    iprot.readStructEnd()
23426
 
23427
  def write(self, oprot):
23428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23430
      return
9242 kshitij.so 23431
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 23432
    oprot.writeFieldStop()
23433
    oprot.writeStructEnd()
23434
 
23435
  def validate(self):
23436
    return
23437
 
23438
 
23439
  def __repr__(self):
23440
    L = ['%s=%r' % (key, value)
23441
      for key, value in self.__dict__.iteritems()]
23442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23443
 
23444
  def __eq__(self, other):
23445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23446
 
23447
  def __ne__(self, other):
23448
    return not (self == other)
8619 kshitij.so 23449
 
9242 kshitij.so 23450
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 23451
  """
23452
  Attributes:
9242 kshitij.so 23453
   - snapdealitem
8619 kshitij.so 23454
  """
23455
 
9242 kshitij.so 23456
  thrift_spec = None
23457
  def __init__(self, snapdealitem=None,):
23458
    self.snapdealitem = snapdealitem
8619 kshitij.so 23459
 
23460
  def read(self, iprot):
23461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23463
      return
23464
    iprot.readStructBegin()
23465
    while True:
23466
      (fname, ftype, fid) = iprot.readFieldBegin()
23467
      if ftype == TType.STOP:
23468
        break
9242 kshitij.so 23469
      if fid == -1:
23470
        if ftype == TType.STRUCT:
23471
          self.snapdealitem = SnapdealItem()
23472
          self.snapdealitem.read(iprot)
8619 kshitij.so 23473
        else:
23474
          iprot.skip(ftype)
23475
      else:
23476
        iprot.skip(ftype)
23477
      iprot.readFieldEnd()
23478
    iprot.readStructEnd()
23479
 
23480
  def write(self, oprot):
23481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23483
      return
9242 kshitij.so 23484
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
23485
    if self.snapdealitem is not None:
23486
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
23487
      self.snapdealitem.write(oprot)
8619 kshitij.so 23488
      oprot.writeFieldEnd()
23489
    oprot.writeFieldStop()
23490
    oprot.writeStructEnd()
23491
 
23492
  def validate(self):
23493
    return
23494
 
23495
 
23496
  def __repr__(self):
23497
    L = ['%s=%r' % (key, value)
23498
      for key, value in self.__dict__.iteritems()]
23499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23500
 
23501
  def __eq__(self, other):
23502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23503
 
23504
  def __ne__(self, other):
23505
    return not (self == other)
23506
 
9242 kshitij.so 23507
class addOrUpdateSnapdealItem_result:
23508
  """
23509
  Attributes:
23510
   - success
23511
  """
8619 kshitij.so 23512
 
23513
  thrift_spec = (
9242 kshitij.so 23514
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 23515
  )
23516
 
9242 kshitij.so 23517
  def __init__(self, success=None,):
23518
    self.success = success
23519
 
8619 kshitij.so 23520
  def read(self, iprot):
23521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23523
      return
23524
    iprot.readStructBegin()
23525
    while True:
23526
      (fname, ftype, fid) = iprot.readFieldBegin()
23527
      if ftype == TType.STOP:
23528
        break
9242 kshitij.so 23529
      if fid == 0:
23530
        if ftype == TType.BOOL:
23531
          self.success = iprot.readBool();
23532
        else:
23533
          iprot.skip(ftype)
8619 kshitij.so 23534
      else:
23535
        iprot.skip(ftype)
23536
      iprot.readFieldEnd()
23537
    iprot.readStructEnd()
23538
 
23539
  def write(self, oprot):
23540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23542
      return
9242 kshitij.so 23543
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
23544
    if self.success is not None:
23545
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23546
      oprot.writeBool(self.success)
23547
      oprot.writeFieldEnd()
8619 kshitij.so 23548
    oprot.writeFieldStop()
23549
    oprot.writeStructEnd()
23550
 
23551
  def validate(self):
23552
    return
23553
 
23554
 
23555
  def __repr__(self):
23556
    L = ['%s=%r' % (key, value)
23557
      for key, value in self.__dict__.iteritems()]
23558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23559
 
23560
  def __eq__(self, other):
23561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23562
 
23563
  def __ne__(self, other):
23564
    return not (self == other)
8739 vikram.rag 23565
 
9242 kshitij.so 23566
class getSnapdealItem_args:
8739 vikram.rag 23567
  """
23568
  Attributes:
9242 kshitij.so 23569
   - item_id
8739 vikram.rag 23570
  """
23571
 
9242 kshitij.so 23572
  thrift_spec = (
23573
    None, # 0
23574
    (1, TType.I64, 'item_id', None, None, ), # 1
23575
  )
8739 vikram.rag 23576
 
9242 kshitij.so 23577
  def __init__(self, item_id=None,):
23578
    self.item_id = item_id
23579
 
8739 vikram.rag 23580
  def read(self, iprot):
23581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23583
      return
23584
    iprot.readStructBegin()
23585
    while True:
23586
      (fname, ftype, fid) = iprot.readFieldBegin()
23587
      if ftype == TType.STOP:
23588
        break
9242 kshitij.so 23589
      if fid == 1:
23590
        if ftype == TType.I64:
23591
          self.item_id = iprot.readI64();
8739 vikram.rag 23592
        else:
23593
          iprot.skip(ftype)
23594
      else:
23595
        iprot.skip(ftype)
23596
      iprot.readFieldEnd()
23597
    iprot.readStructEnd()
23598
 
23599
  def write(self, oprot):
23600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23602
      return
9242 kshitij.so 23603
    oprot.writeStructBegin('getSnapdealItem_args')
23604
    if self.item_id is not None:
23605
      oprot.writeFieldBegin('item_id', TType.I64, 1)
23606
      oprot.writeI64(self.item_id)
8739 vikram.rag 23607
      oprot.writeFieldEnd()
23608
    oprot.writeFieldStop()
23609
    oprot.writeStructEnd()
23610
 
23611
  def validate(self):
23612
    return
23613
 
23614
 
23615
  def __repr__(self):
23616
    L = ['%s=%r' % (key, value)
23617
      for key, value in self.__dict__.iteritems()]
23618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23619
 
23620
  def __eq__(self, other):
23621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23622
 
23623
  def __ne__(self, other):
23624
    return not (self == other)
23625
 
9242 kshitij.so 23626
class getSnapdealItem_result:
8739 vikram.rag 23627
  """
23628
  Attributes:
23629
   - success
23630
  """
23631
 
23632
  thrift_spec = (
9242 kshitij.so 23633
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 23634
  )
23635
 
23636
  def __init__(self, success=None,):
23637
    self.success = success
23638
 
23639
  def read(self, iprot):
23640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23642
      return
23643
    iprot.readStructBegin()
23644
    while True:
23645
      (fname, ftype, fid) = iprot.readFieldBegin()
23646
      if ftype == TType.STOP:
23647
        break
23648
      if fid == 0:
9242 kshitij.so 23649
        if ftype == TType.STRUCT:
23650
          self.success = SnapdealItem()
23651
          self.success.read(iprot)
8739 vikram.rag 23652
        else:
23653
          iprot.skip(ftype)
23654
      else:
23655
        iprot.skip(ftype)
23656
      iprot.readFieldEnd()
23657
    iprot.readStructEnd()
23658
 
23659
  def write(self, oprot):
23660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23662
      return
9242 kshitij.so 23663
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 23664
    if self.success is not None:
9242 kshitij.so 23665
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23666
      self.success.write(oprot)
8739 vikram.rag 23667
      oprot.writeFieldEnd()
23668
    oprot.writeFieldStop()
23669
    oprot.writeStructEnd()
23670
 
23671
  def validate(self):
23672
    return
23673
 
23674
 
23675
  def __repr__(self):
23676
    L = ['%s=%r' % (key, value)
23677
      for key, value in self.__dict__.iteritems()]
23678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23679
 
23680
  def __eq__(self, other):
23681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23682
 
23683
  def __ne__(self, other):
23684
    return not (self == other)
23685
 
9242 kshitij.so 23686
class getSnapdealItemDetails_args:
8739 vikram.rag 23687
  """
23688
  Attributes:
23689
   - item_id
23690
  """
23691
 
23692
  thrift_spec = (
23693
    None, # 0
23694
    (1, TType.I64, 'item_id', None, None, ), # 1
23695
  )
23696
 
23697
  def __init__(self, item_id=None,):
23698
    self.item_id = item_id
23699
 
23700
  def read(self, iprot):
23701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23703
      return
23704
    iprot.readStructBegin()
23705
    while True:
23706
      (fname, ftype, fid) = iprot.readFieldBegin()
23707
      if ftype == TType.STOP:
23708
        break
23709
      if fid == 1:
23710
        if ftype == TType.I64:
23711
          self.item_id = iprot.readI64();
23712
        else:
23713
          iprot.skip(ftype)
23714
      else:
23715
        iprot.skip(ftype)
23716
      iprot.readFieldEnd()
23717
    iprot.readStructEnd()
23718
 
23719
  def write(self, oprot):
23720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23722
      return
9242 kshitij.so 23723
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 23724
    if self.item_id is not None:
23725
      oprot.writeFieldBegin('item_id', TType.I64, 1)
23726
      oprot.writeI64(self.item_id)
23727
      oprot.writeFieldEnd()
23728
    oprot.writeFieldStop()
23729
    oprot.writeStructEnd()
23730
 
23731
  def validate(self):
23732
    return
23733
 
23734
 
23735
  def __repr__(self):
23736
    L = ['%s=%r' % (key, value)
23737
      for key, value in self.__dict__.iteritems()]
23738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23739
 
23740
  def __eq__(self, other):
23741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23742
 
23743
  def __ne__(self, other):
23744
    return not (self == other)
23745
 
9242 kshitij.so 23746
class getSnapdealItemDetails_result:
8739 vikram.rag 23747
  """
23748
  Attributes:
23749
   - success
23750
  """
23751
 
23752
  thrift_spec = (
9242 kshitij.so 23753
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 23754
  )
23755
 
23756
  def __init__(self, success=None,):
23757
    self.success = success
23758
 
23759
  def read(self, iprot):
23760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23762
      return
23763
    iprot.readStructBegin()
23764
    while True:
23765
      (fname, ftype, fid) = iprot.readFieldBegin()
23766
      if ftype == TType.STOP:
23767
        break
23768
      if fid == 0:
23769
        if ftype == TType.STRUCT:
9242 kshitij.so 23770
          self.success = SnapdealItemDetails()
8739 vikram.rag 23771
          self.success.read(iprot)
23772
        else:
23773
          iprot.skip(ftype)
23774
      else:
23775
        iprot.skip(ftype)
23776
      iprot.readFieldEnd()
23777
    iprot.readStructEnd()
23778
 
23779
  def write(self, oprot):
23780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23782
      return
9242 kshitij.so 23783
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 23784
    if self.success is not None:
23785
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23786
      self.success.write(oprot)
23787
      oprot.writeFieldEnd()
23788
    oprot.writeFieldStop()
23789
    oprot.writeStructEnd()
23790
 
23791
  def validate(self):
23792
    return
23793
 
23794
 
23795
  def __repr__(self):
23796
    L = ['%s=%r' % (key, value)
23797
      for key, value in self.__dict__.iteritems()]
23798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23799
 
23800
  def __eq__(self, other):
23801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23802
 
23803
  def __ne__(self, other):
23804
    return not (self == other)
23805
 
23806
class getAllSnapdealItems_args:
23807
 
23808
  thrift_spec = (
23809
  )
23810
 
23811
  def read(self, iprot):
23812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23814
      return
23815
    iprot.readStructBegin()
23816
    while True:
23817
      (fname, ftype, fid) = iprot.readFieldBegin()
23818
      if ftype == TType.STOP:
23819
        break
23820
      else:
23821
        iprot.skip(ftype)
23822
      iprot.readFieldEnd()
23823
    iprot.readStructEnd()
23824
 
23825
  def write(self, oprot):
23826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23828
      return
23829
    oprot.writeStructBegin('getAllSnapdealItems_args')
23830
    oprot.writeFieldStop()
23831
    oprot.writeStructEnd()
23832
 
23833
  def validate(self):
23834
    return
23835
 
23836
 
23837
  def __repr__(self):
23838
    L = ['%s=%r' % (key, value)
23839
      for key, value in self.__dict__.iteritems()]
23840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23841
 
23842
  def __eq__(self, other):
23843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23844
 
23845
  def __ne__(self, other):
23846
    return not (self == other)
23847
 
23848
class getAllSnapdealItems_result:
23849
  """
23850
  Attributes:
23851
   - success
23852
  """
23853
 
23854
  thrift_spec = (
9242 kshitij.so 23855
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 23856
  )
23857
 
23858
  def __init__(self, success=None,):
23859
    self.success = success
23860
 
23861
  def read(self, iprot):
23862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23864
      return
23865
    iprot.readStructBegin()
23866
    while True:
23867
      (fname, ftype, fid) = iprot.readFieldBegin()
23868
      if ftype == TType.STOP:
23869
        break
23870
      if fid == 0:
23871
        if ftype == TType.LIST:
23872
          self.success = []
9242 kshitij.so 23873
          (_etype516, _size513) = iprot.readListBegin()
23874
          for _i517 in xrange(_size513):
23875
            _elem518 = SnapdealItemDetails()
23876
            _elem518.read(iprot)
23877
            self.success.append(_elem518)
23878
          iprot.readListEnd()
23879
        else:
23880
          iprot.skip(ftype)
23881
      else:
23882
        iprot.skip(ftype)
23883
      iprot.readFieldEnd()
23884
    iprot.readStructEnd()
23885
 
23886
  def write(self, oprot):
23887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23889
      return
23890
    oprot.writeStructBegin('getAllSnapdealItems_result')
23891
    if self.success is not None:
23892
      oprot.writeFieldBegin('success', TType.LIST, 0)
23893
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23894
      for iter519 in self.success:
23895
        iter519.write(oprot)
23896
      oprot.writeListEnd()
23897
      oprot.writeFieldEnd()
23898
    oprot.writeFieldStop()
23899
    oprot.writeStructEnd()
23900
 
23901
  def validate(self):
23902
    return
23903
 
23904
 
23905
  def __repr__(self):
23906
    L = ['%s=%r' % (key, value)
23907
      for key, value in self.__dict__.iteritems()]
23908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23909
 
23910
  def __eq__(self, other):
23911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23912
 
23913
  def __ne__(self, other):
23914
    return not (self == other)
23915
 
23916
class getSnapdealItems_args:
23917
  """
23918
  Attributes:
23919
   - offset
23920
   - limit
23921
  """
23922
 
23923
  thrift_spec = (
23924
    None, # 0
23925
    (1, TType.I64, 'offset', None, None, ), # 1
23926
    (2, TType.I64, 'limit', None, None, ), # 2
23927
  )
23928
 
23929
  def __init__(self, offset=None, limit=None,):
23930
    self.offset = offset
23931
    self.limit = limit
23932
 
23933
  def read(self, iprot):
23934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23936
      return
23937
    iprot.readStructBegin()
23938
    while True:
23939
      (fname, ftype, fid) = iprot.readFieldBegin()
23940
      if ftype == TType.STOP:
23941
        break
23942
      if fid == 1:
23943
        if ftype == TType.I64:
23944
          self.offset = iprot.readI64();
23945
        else:
23946
          iprot.skip(ftype)
23947
      elif fid == 2:
23948
        if ftype == TType.I64:
23949
          self.limit = iprot.readI64();
23950
        else:
23951
          iprot.skip(ftype)
23952
      else:
23953
        iprot.skip(ftype)
23954
      iprot.readFieldEnd()
23955
    iprot.readStructEnd()
23956
 
23957
  def write(self, oprot):
23958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23960
      return
23961
    oprot.writeStructBegin('getSnapdealItems_args')
23962
    if self.offset is not None:
23963
      oprot.writeFieldBegin('offset', TType.I64, 1)
23964
      oprot.writeI64(self.offset)
23965
      oprot.writeFieldEnd()
23966
    if self.limit is not None:
23967
      oprot.writeFieldBegin('limit', TType.I64, 2)
23968
      oprot.writeI64(self.limit)
23969
      oprot.writeFieldEnd()
23970
    oprot.writeFieldStop()
23971
    oprot.writeStructEnd()
23972
 
23973
  def validate(self):
23974
    return
23975
 
23976
 
23977
  def __repr__(self):
23978
    L = ['%s=%r' % (key, value)
23979
      for key, value in self.__dict__.iteritems()]
23980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23981
 
23982
  def __eq__(self, other):
23983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23984
 
23985
  def __ne__(self, other):
23986
    return not (self == other)
23987
 
23988
class getSnapdealItems_result:
23989
  """
23990
  Attributes:
23991
   - success
23992
  """
23993
 
23994
  thrift_spec = (
23995
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23996
  )
23997
 
23998
  def __init__(self, success=None,):
23999
    self.success = success
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
      if fid == 0:
24011
        if ftype == TType.LIST:
24012
          self.success = []
9155 kshitij.so 24013
          (_etype523, _size520) = iprot.readListBegin()
24014
          for _i524 in xrange(_size520):
9242 kshitij.so 24015
            _elem525 = SnapdealItemDetails()
9155 kshitij.so 24016
            _elem525.read(iprot)
24017
            self.success.append(_elem525)
8739 vikram.rag 24018
          iprot.readListEnd()
24019
        else:
24020
          iprot.skip(ftype)
24021
      else:
24022
        iprot.skip(ftype)
24023
      iprot.readFieldEnd()
24024
    iprot.readStructEnd()
24025
 
24026
  def write(self, oprot):
24027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24029
      return
9242 kshitij.so 24030
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 24031
    if self.success is not None:
24032
      oprot.writeFieldBegin('success', TType.LIST, 0)
24033
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 24034
      for iter526 in self.success:
24035
        iter526.write(oprot)
8739 vikram.rag 24036
      oprot.writeListEnd()
24037
      oprot.writeFieldEnd()
24038
    oprot.writeFieldStop()
24039
    oprot.writeStructEnd()
24040
 
24041
  def validate(self):
24042
    return
24043
 
24044
 
24045
  def __repr__(self):
24046
    L = ['%s=%r' % (key, value)
24047
      for key, value in self.__dict__.iteritems()]
24048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24049
 
24050
  def __eq__(self, other):
24051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24052
 
24053
  def __ne__(self, other):
24054
    return not (self == other)
9242 kshitij.so 24055
 
24056
class searchSnapdealItems_args:
24057
  """
24058
  Attributes:
24059
   - searchTerm
24060
   - offset
24061
   - limit
24062
  """
24063
 
24064
  thrift_spec = (
24065
    None, # 0
24066
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
24067
    (2, TType.I64, 'offset', None, None, ), # 2
24068
    (3, TType.I64, 'limit', None, None, ), # 3
24069
  )
24070
 
24071
  def __init__(self, searchTerm=None, offset=None, limit=None,):
24072
    self.searchTerm = searchTerm
24073
    self.offset = offset
24074
    self.limit = limit
24075
 
24076
  def read(self, iprot):
24077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24079
      return
24080
    iprot.readStructBegin()
24081
    while True:
24082
      (fname, ftype, fid) = iprot.readFieldBegin()
24083
      if ftype == TType.STOP:
24084
        break
24085
      if fid == 1:
24086
        if ftype == TType.LIST:
24087
          self.searchTerm = []
24088
          (_etype530, _size527) = iprot.readListBegin()
24089
          for _i531 in xrange(_size527):
24090
            _elem532 = iprot.readString();
24091
            self.searchTerm.append(_elem532)
24092
          iprot.readListEnd()
24093
        else:
24094
          iprot.skip(ftype)
24095
      elif fid == 2:
24096
        if ftype == TType.I64:
24097
          self.offset = iprot.readI64();
24098
        else:
24099
          iprot.skip(ftype)
24100
      elif fid == 3:
24101
        if ftype == TType.I64:
24102
          self.limit = iprot.readI64();
24103
        else:
24104
          iprot.skip(ftype)
24105
      else:
24106
        iprot.skip(ftype)
24107
      iprot.readFieldEnd()
24108
    iprot.readStructEnd()
24109
 
24110
  def write(self, oprot):
24111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24113
      return
24114
    oprot.writeStructBegin('searchSnapdealItems_args')
24115
    if self.searchTerm is not None:
24116
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
24117
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
24118
      for iter533 in self.searchTerm:
24119
        oprot.writeString(iter533)
24120
      oprot.writeListEnd()
24121
      oprot.writeFieldEnd()
24122
    if self.offset is not None:
24123
      oprot.writeFieldBegin('offset', TType.I64, 2)
24124
      oprot.writeI64(self.offset)
24125
      oprot.writeFieldEnd()
24126
    if self.limit is not None:
24127
      oprot.writeFieldBegin('limit', TType.I64, 3)
24128
      oprot.writeI64(self.limit)
24129
      oprot.writeFieldEnd()
24130
    oprot.writeFieldStop()
24131
    oprot.writeStructEnd()
24132
 
24133
  def validate(self):
24134
    return
24135
 
24136
 
24137
  def __repr__(self):
24138
    L = ['%s=%r' % (key, value)
24139
      for key, value in self.__dict__.iteritems()]
24140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24141
 
24142
  def __eq__(self, other):
24143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24144
 
24145
  def __ne__(self, other):
24146
    return not (self == other)
24147
 
24148
class searchSnapdealItems_result:
24149
  """
24150
  Attributes:
24151
   - success
24152
  """
24153
 
24154
  thrift_spec = (
24155
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
24156
  )
24157
 
24158
  def __init__(self, success=None,):
24159
    self.success = success
24160
 
24161
  def read(self, iprot):
24162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24164
      return
24165
    iprot.readStructBegin()
24166
    while True:
24167
      (fname, ftype, fid) = iprot.readFieldBegin()
24168
      if ftype == TType.STOP:
24169
        break
24170
      if fid == 0:
24171
        if ftype == TType.LIST:
24172
          self.success = []
24173
          (_etype537, _size534) = iprot.readListBegin()
24174
          for _i538 in xrange(_size534):
24175
            _elem539 = SnapdealItemDetails()
24176
            _elem539.read(iprot)
24177
            self.success.append(_elem539)
24178
          iprot.readListEnd()
24179
        else:
24180
          iprot.skip(ftype)
24181
      else:
24182
        iprot.skip(ftype)
24183
      iprot.readFieldEnd()
24184
    iprot.readStructEnd()
24185
 
24186
  def write(self, oprot):
24187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24189
      return
24190
    oprot.writeStructBegin('searchSnapdealItems_result')
24191
    if self.success is not None:
24192
      oprot.writeFieldBegin('success', TType.LIST, 0)
24193
      oprot.writeListBegin(TType.STRUCT, len(self.success))
24194
      for iter540 in self.success:
24195
        iter540.write(oprot)
24196
      oprot.writeListEnd()
24197
      oprot.writeFieldEnd()
24198
    oprot.writeFieldStop()
24199
    oprot.writeStructEnd()
24200
 
24201
  def validate(self):
24202
    return
24203
 
24204
 
24205
  def __repr__(self):
24206
    L = ['%s=%r' % (key, value)
24207
      for key, value in self.__dict__.iteritems()]
24208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24209
 
24210
  def __eq__(self, other):
24211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24212
 
24213
  def __ne__(self, other):
24214
    return not (self == other)
24215
 
24216
class getCountForSnapdealItems_args:
24217
 
24218
  thrift_spec = (
24219
  )
24220
 
24221
  def read(self, iprot):
24222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24224
      return
24225
    iprot.readStructBegin()
24226
    while True:
24227
      (fname, ftype, fid) = iprot.readFieldBegin()
24228
      if ftype == TType.STOP:
24229
        break
24230
      else:
24231
        iprot.skip(ftype)
24232
      iprot.readFieldEnd()
24233
    iprot.readStructEnd()
24234
 
24235
  def write(self, oprot):
24236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24238
      return
24239
    oprot.writeStructBegin('getCountForSnapdealItems_args')
24240
    oprot.writeFieldStop()
24241
    oprot.writeStructEnd()
24242
 
24243
  def validate(self):
24244
    return
24245
 
24246
 
24247
  def __repr__(self):
24248
    L = ['%s=%r' % (key, value)
24249
      for key, value in self.__dict__.iteritems()]
24250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24251
 
24252
  def __eq__(self, other):
24253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24254
 
24255
  def __ne__(self, other):
24256
    return not (self == other)
24257
 
24258
class getCountForSnapdealItems_result:
24259
  """
24260
  Attributes:
24261
   - success
24262
  """
24263
 
24264
  thrift_spec = (
24265
    (0, TType.I64, 'success', None, None, ), # 0
24266
  )
24267
 
24268
  def __init__(self, success=None,):
24269
    self.success = success
24270
 
24271
  def read(self, iprot):
24272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24274
      return
24275
    iprot.readStructBegin()
24276
    while True:
24277
      (fname, ftype, fid) = iprot.readFieldBegin()
24278
      if ftype == TType.STOP:
24279
        break
24280
      if fid == 0:
24281
        if ftype == TType.I64:
24282
          self.success = iprot.readI64();
24283
        else:
24284
          iprot.skip(ftype)
24285
      else:
24286
        iprot.skip(ftype)
24287
      iprot.readFieldEnd()
24288
    iprot.readStructEnd()
24289
 
24290
  def write(self, oprot):
24291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24293
      return
24294
    oprot.writeStructBegin('getCountForSnapdealItems_result')
24295
    if self.success is not None:
24296
      oprot.writeFieldBegin('success', TType.I64, 0)
24297
      oprot.writeI64(self.success)
24298
      oprot.writeFieldEnd()
24299
    oprot.writeFieldStop()
24300
    oprot.writeStructEnd()
24301
 
24302
  def validate(self):
24303
    return
24304
 
24305
 
24306
  def __repr__(self):
24307
    L = ['%s=%r' % (key, value)
24308
      for key, value in self.__dict__.iteritems()]
24309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24310
 
24311
  def __eq__(self, other):
24312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24313
 
24314
  def __ne__(self, other):
24315
    return not (self == other)
24316
 
24317
class getSnapdealSearchResultCount_args:
24318
  """
24319
  Attributes:
24320
   - searchTerm
24321
  """
24322
 
24323
  thrift_spec = (
24324
    None, # 0
24325
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
24326
  )
24327
 
24328
  def __init__(self, searchTerm=None,):
24329
    self.searchTerm = searchTerm
24330
 
24331
  def read(self, iprot):
24332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24334
      return
24335
    iprot.readStructBegin()
24336
    while True:
24337
      (fname, ftype, fid) = iprot.readFieldBegin()
24338
      if ftype == TType.STOP:
24339
        break
24340
      if fid == 1:
24341
        if ftype == TType.LIST:
24342
          self.searchTerm = []
24343
          (_etype544, _size541) = iprot.readListBegin()
24344
          for _i545 in xrange(_size541):
24345
            _elem546 = iprot.readString();
24346
            self.searchTerm.append(_elem546)
24347
          iprot.readListEnd()
24348
        else:
24349
          iprot.skip(ftype)
24350
      else:
24351
        iprot.skip(ftype)
24352
      iprot.readFieldEnd()
24353
    iprot.readStructEnd()
24354
 
24355
  def write(self, oprot):
24356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24358
      return
24359
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
24360
    if self.searchTerm is not None:
24361
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
24362
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
24363
      for iter547 in self.searchTerm:
24364
        oprot.writeString(iter547)
24365
      oprot.writeListEnd()
24366
      oprot.writeFieldEnd()
24367
    oprot.writeFieldStop()
24368
    oprot.writeStructEnd()
24369
 
24370
  def validate(self):
24371
    return
24372
 
24373
 
24374
  def __repr__(self):
24375
    L = ['%s=%r' % (key, value)
24376
      for key, value in self.__dict__.iteritems()]
24377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24378
 
24379
  def __eq__(self, other):
24380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24381
 
24382
  def __ne__(self, other):
24383
    return not (self == other)
24384
 
24385
class getSnapdealSearchResultCount_result:
24386
  """
24387
  Attributes:
24388
   - success
24389
  """
24390
 
24391
  thrift_spec = (
24392
    (0, TType.I64, 'success', None, None, ), # 0
24393
  )
24394
 
24395
  def __init__(self, success=None,):
24396
    self.success = success
24397
 
24398
  def read(self, iprot):
24399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24401
      return
24402
    iprot.readStructBegin()
24403
    while True:
24404
      (fname, ftype, fid) = iprot.readFieldBegin()
24405
      if ftype == TType.STOP:
24406
        break
24407
      if fid == 0:
24408
        if ftype == TType.I64:
24409
          self.success = iprot.readI64();
24410
        else:
24411
          iprot.skip(ftype)
24412
      else:
24413
        iprot.skip(ftype)
24414
      iprot.readFieldEnd()
24415
    iprot.readStructEnd()
24416
 
24417
  def write(self, oprot):
24418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24420
      return
24421
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
24422
    if self.success is not None:
24423
      oprot.writeFieldBegin('success', TType.I64, 0)
24424
      oprot.writeI64(self.success)
24425
      oprot.writeFieldEnd()
24426
    oprot.writeFieldStop()
24427
    oprot.writeStructEnd()
24428
 
24429
  def validate(self):
24430
    return
24431
 
24432
 
24433
  def __repr__(self):
24434
    L = ['%s=%r' % (key, value)
24435
      for key, value in self.__dict__.iteritems()]
24436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24437
 
24438
  def __eq__(self, other):
24439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24440
 
24441
  def __ne__(self, other):
24442
    return not (self == other)
9299 kshitij.so 24443
 
24444
class getPrefferedInsurerForItem_args:
24445
  """
24446
  Attributes:
24447
   - itemId
24448
   - insurerType
24449
  """
24450
 
24451
  thrift_spec = (
24452
    None, # 0
24453
    (1, TType.I64, 'itemId', None, None, ), # 1
24454
    (2, TType.I32, 'insurerType', None, None, ), # 2
24455
  )
24456
 
24457
  def __init__(self, itemId=None, insurerType=None,):
24458
    self.itemId = itemId
24459
    self.insurerType = insurerType
24460
 
24461
  def read(self, iprot):
24462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24464
      return
24465
    iprot.readStructBegin()
24466
    while True:
24467
      (fname, ftype, fid) = iprot.readFieldBegin()
24468
      if ftype == TType.STOP:
24469
        break
24470
      if fid == 1:
24471
        if ftype == TType.I64:
24472
          self.itemId = iprot.readI64();
24473
        else:
24474
          iprot.skip(ftype)
24475
      elif fid == 2:
24476
        if ftype == TType.I32:
24477
          self.insurerType = iprot.readI32();
24478
        else:
24479
          iprot.skip(ftype)
24480
      else:
24481
        iprot.skip(ftype)
24482
      iprot.readFieldEnd()
24483
    iprot.readStructEnd()
24484
 
24485
  def write(self, oprot):
24486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24488
      return
24489
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
24490
    if self.itemId is not None:
24491
      oprot.writeFieldBegin('itemId', TType.I64, 1)
24492
      oprot.writeI64(self.itemId)
24493
      oprot.writeFieldEnd()
24494
    if self.insurerType is not None:
24495
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
24496
      oprot.writeI32(self.insurerType)
24497
      oprot.writeFieldEnd()
24498
    oprot.writeFieldStop()
24499
    oprot.writeStructEnd()
24500
 
24501
  def validate(self):
24502
    return
24503
 
24504
 
24505
  def __repr__(self):
24506
    L = ['%s=%r' % (key, value)
24507
      for key, value in self.__dict__.iteritems()]
24508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24509
 
24510
  def __eq__(self, other):
24511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24512
 
24513
  def __ne__(self, other):
24514
    return not (self == other)
24515
 
24516
class getPrefferedInsurerForItem_result:
24517
  """
24518
  Attributes:
24519
   - success
24520
  """
24521
 
24522
  thrift_spec = (
24523
    (0, TType.I64, 'success', None, None, ), # 0
24524
  )
24525
 
24526
  def __init__(self, success=None,):
24527
    self.success = success
24528
 
24529
  def read(self, iprot):
24530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24532
      return
24533
    iprot.readStructBegin()
24534
    while True:
24535
      (fname, ftype, fid) = iprot.readFieldBegin()
24536
      if ftype == TType.STOP:
24537
        break
24538
      if fid == 0:
24539
        if ftype == TType.I64:
24540
          self.success = iprot.readI64();
24541
        else:
24542
          iprot.skip(ftype)
24543
      else:
24544
        iprot.skip(ftype)
24545
      iprot.readFieldEnd()
24546
    iprot.readStructEnd()
24547
 
24548
  def write(self, oprot):
24549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24551
      return
24552
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
24553
    if self.success is not None:
24554
      oprot.writeFieldBegin('success', TType.I64, 0)
24555
      oprot.writeI64(self.success)
24556
      oprot.writeFieldEnd()
24557
    oprot.writeFieldStop()
24558
    oprot.writeStructEnd()
24559
 
24560
  def validate(self):
24561
    return
24562
 
24563
 
24564
  def __repr__(self):
24565
    L = ['%s=%r' % (key, value)
24566
      for key, value in self.__dict__.iteritems()]
24567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24568
 
24569
  def __eq__(self, other):
24570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24571
 
24572
  def __ne__(self, other):
24573
    return not (self == other)
9456 vikram.rag 24574
 
24575
class getSnapdealItembySkuAtSnapdeal_args:
24576
  """
24577
  Attributes:
24578
   - skuAtSnapdeal
24579
  """
24580
 
24581
  thrift_spec = None
24582
  def __init__(self, skuAtSnapdeal=None,):
24583
    self.skuAtSnapdeal = skuAtSnapdeal
24584
 
24585
  def read(self, iprot):
24586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24588
      return
24589
    iprot.readStructBegin()
24590
    while True:
24591
      (fname, ftype, fid) = iprot.readFieldBegin()
24592
      if ftype == TType.STOP:
24593
        break
24594
      if fid == -1:
24595
        if ftype == TType.STRING:
24596
          self.skuAtSnapdeal = iprot.readString();
24597
        else:
24598
          iprot.skip(ftype)
24599
      else:
24600
        iprot.skip(ftype)
24601
      iprot.readFieldEnd()
24602
    iprot.readStructEnd()
24603
 
24604
  def write(self, oprot):
24605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24607
      return
24608
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
24609
    if self.skuAtSnapdeal is not None:
24610
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
24611
      oprot.writeString(self.skuAtSnapdeal)
24612
      oprot.writeFieldEnd()
24613
    oprot.writeFieldStop()
24614
    oprot.writeStructEnd()
24615
 
24616
  def validate(self):
24617
    return
24618
 
24619
 
24620
  def __repr__(self):
24621
    L = ['%s=%r' % (key, value)
24622
      for key, value in self.__dict__.iteritems()]
24623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24624
 
24625
  def __eq__(self, other):
24626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24627
 
24628
  def __ne__(self, other):
24629
    return not (self == other)
24630
 
24631
class getSnapdealItembySkuAtSnapdeal_result:
24632
  """
24633
  Attributes:
24634
   - success
24635
  """
24636
 
24637
  thrift_spec = (
24638
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
24639
  )
24640
 
24641
  def __init__(self, success=None,):
24642
    self.success = success
24643
 
24644
  def read(self, iprot):
24645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24647
      return
24648
    iprot.readStructBegin()
24649
    while True:
24650
      (fname, ftype, fid) = iprot.readFieldBegin()
24651
      if ftype == TType.STOP:
24652
        break
24653
      if fid == 0:
24654
        if ftype == TType.STRUCT:
24655
          self.success = SnapdealItem()
24656
          self.success.read(iprot)
24657
        else:
24658
          iprot.skip(ftype)
24659
      else:
24660
        iprot.skip(ftype)
24661
      iprot.readFieldEnd()
24662
    iprot.readStructEnd()
24663
 
24664
  def write(self, oprot):
24665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24667
      return
24668
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
24669
    if self.success is not None:
24670
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24671
      self.success.write(oprot)
24672
      oprot.writeFieldEnd()
24673
    oprot.writeFieldStop()
24674
    oprot.writeStructEnd()
24675
 
24676
  def validate(self):
24677
    return
24678
 
24679
 
24680
  def __repr__(self):
24681
    L = ['%s=%r' % (key, value)
24682
      for key, value in self.__dict__.iteritems()]
24683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24684
 
24685
  def __eq__(self, other):
24686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24687
 
24688
  def __ne__(self, other):
24689
    return not (self == other)
9621 manish.sha 24690
 
24691
class getProductFeedSubmit_args:
24692
  """
24693
  Attributes:
24694
   - catalogItemId
24695
  """
24696
 
24697
  thrift_spec = (
24698
    None, # 0
24699
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
24700
  )
24701
 
24702
  def __init__(self, catalogItemId=None,):
24703
    self.catalogItemId = catalogItemId
24704
 
24705
  def read(self, iprot):
24706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24708
      return
24709
    iprot.readStructBegin()
24710
    while True:
24711
      (fname, ftype, fid) = iprot.readFieldBegin()
24712
      if ftype == TType.STOP:
24713
        break
24714
      if fid == 1:
24715
        if ftype == TType.I64:
24716
          self.catalogItemId = iprot.readI64();
24717
        else:
24718
          iprot.skip(ftype)
24719
      else:
24720
        iprot.skip(ftype)
24721
      iprot.readFieldEnd()
24722
    iprot.readStructEnd()
24723
 
24724
  def write(self, oprot):
24725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24727
      return
24728
    oprot.writeStructBegin('getProductFeedSubmit_args')
24729
    if self.catalogItemId is not None:
24730
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
24731
      oprot.writeI64(self.catalogItemId)
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)
24750
 
24751
class getProductFeedSubmit_result:
24752
  """
24753
  Attributes:
24754
   - success
24755
   - cex
24756
  """
24757
 
24758
  thrift_spec = (
24759
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
24760
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24761
  )
24762
 
24763
  def __init__(self, success=None, cex=None,):
24764
    self.success = success
24765
    self.cex = cex
24766
 
24767
  def read(self, iprot):
24768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24770
      return
24771
    iprot.readStructBegin()
24772
    while True:
24773
      (fname, ftype, fid) = iprot.readFieldBegin()
24774
      if ftype == TType.STOP:
24775
        break
24776
      if fid == 0:
24777
        if ftype == TType.STRUCT:
24778
          self.success = ProductFeedSubmit()
24779
          self.success.read(iprot)
24780
        else:
24781
          iprot.skip(ftype)
24782
      elif fid == 1:
24783
        if ftype == TType.STRUCT:
24784
          self.cex = CatalogServiceException()
24785
          self.cex.read(iprot)
24786
        else:
24787
          iprot.skip(ftype)
24788
      else:
24789
        iprot.skip(ftype)
24790
      iprot.readFieldEnd()
24791
    iprot.readStructEnd()
24792
 
24793
  def write(self, oprot):
24794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24796
      return
24797
    oprot.writeStructBegin('getProductFeedSubmit_result')
24798
    if self.success is not None:
24799
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24800
      self.success.write(oprot)
24801
      oprot.writeFieldEnd()
24802
    if self.cex is not None:
24803
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24804
      self.cex.write(oprot)
24805
      oprot.writeFieldEnd()
24806
    oprot.writeFieldStop()
24807
    oprot.writeStructEnd()
24808
 
24809
  def validate(self):
24810
    return
24811
 
24812
 
24813
  def __repr__(self):
24814
    L = ['%s=%r' % (key, value)
24815
      for key, value in self.__dict__.iteritems()]
24816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24817
 
24818
  def __eq__(self, other):
24819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24820
 
24821
  def __ne__(self, other):
24822
    return not (self == other)
24823
 
24824
class addProductFeedSubmit_args:
24825
  """
24826
  Attributes:
24827
   - productFeedSubmit
24828
  """
24829
 
24830
  thrift_spec = (
24831
    None, # 0
24832
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24833
  )
24834
 
24835
  def __init__(self, productFeedSubmit=None,):
24836
    self.productFeedSubmit = productFeedSubmit
24837
 
24838
  def read(self, iprot):
24839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24841
      return
24842
    iprot.readStructBegin()
24843
    while True:
24844
      (fname, ftype, fid) = iprot.readFieldBegin()
24845
      if ftype == TType.STOP:
24846
        break
24847
      if fid == 1:
24848
        if ftype == TType.STRUCT:
24849
          self.productFeedSubmit = ProductFeedSubmit()
24850
          self.productFeedSubmit.read(iprot)
24851
        else:
24852
          iprot.skip(ftype)
24853
      else:
24854
        iprot.skip(ftype)
24855
      iprot.readFieldEnd()
24856
    iprot.readStructEnd()
24857
 
24858
  def write(self, oprot):
24859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24861
      return
24862
    oprot.writeStructBegin('addProductFeedSubmit_args')
24863
    if self.productFeedSubmit is not None:
24864
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24865
      self.productFeedSubmit.write(oprot)
24866
      oprot.writeFieldEnd()
24867
    oprot.writeFieldStop()
24868
    oprot.writeStructEnd()
24869
 
24870
  def validate(self):
24871
    return
24872
 
24873
 
24874
  def __repr__(self):
24875
    L = ['%s=%r' % (key, value)
24876
      for key, value in self.__dict__.iteritems()]
24877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24878
 
24879
  def __eq__(self, other):
24880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24881
 
24882
  def __ne__(self, other):
24883
    return not (self == other)
24884
 
24885
class addProductFeedSubmit_result:
24886
  """
24887
  Attributes:
24888
   - success
24889
   - cex
24890
  """
24891
 
24892
  thrift_spec = (
24893
    (0, TType.BOOL, 'success', None, None, ), # 0
24894
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24895
  )
24896
 
24897
  def __init__(self, success=None, cex=None,):
24898
    self.success = success
24899
    self.cex = cex
24900
 
24901
  def read(self, iprot):
24902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24904
      return
24905
    iprot.readStructBegin()
24906
    while True:
24907
      (fname, ftype, fid) = iprot.readFieldBegin()
24908
      if ftype == TType.STOP:
24909
        break
24910
      if fid == 0:
24911
        if ftype == TType.BOOL:
24912
          self.success = iprot.readBool();
24913
        else:
24914
          iprot.skip(ftype)
24915
      elif fid == 1:
24916
        if ftype == TType.STRUCT:
24917
          self.cex = CatalogServiceException()
24918
          self.cex.read(iprot)
24919
        else:
24920
          iprot.skip(ftype)
24921
      else:
24922
        iprot.skip(ftype)
24923
      iprot.readFieldEnd()
24924
    iprot.readStructEnd()
24925
 
24926
  def write(self, oprot):
24927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24929
      return
24930
    oprot.writeStructBegin('addProductFeedSubmit_result')
24931
    if self.success is not None:
24932
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24933
      oprot.writeBool(self.success)
24934
      oprot.writeFieldEnd()
24935
    if self.cex is not None:
24936
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24937
      self.cex.write(oprot)
24938
      oprot.writeFieldEnd()
24939
    oprot.writeFieldStop()
24940
    oprot.writeStructEnd()
24941
 
24942
  def validate(self):
24943
    return
24944
 
24945
 
24946
  def __repr__(self):
24947
    L = ['%s=%r' % (key, value)
24948
      for key, value in self.__dict__.iteritems()]
24949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24950
 
24951
  def __eq__(self, other):
24952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24953
 
24954
  def __ne__(self, other):
24955
    return not (self == other)
24956
 
24957
class updateProductFeedSubmit_args:
24958
  """
24959
  Attributes:
24960
   - productFeedSubmit
24961
  """
24962
 
24963
  thrift_spec = (
24964
    None, # 0
24965
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24966
  )
24967
 
24968
  def __init__(self, productFeedSubmit=None,):
24969
    self.productFeedSubmit = productFeedSubmit
24970
 
24971
  def read(self, iprot):
24972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24974
      return
24975
    iprot.readStructBegin()
24976
    while True:
24977
      (fname, ftype, fid) = iprot.readFieldBegin()
24978
      if ftype == TType.STOP:
24979
        break
24980
      if fid == 1:
24981
        if ftype == TType.STRUCT:
24982
          self.productFeedSubmit = ProductFeedSubmit()
24983
          self.productFeedSubmit.read(iprot)
24984
        else:
24985
          iprot.skip(ftype)
24986
      else:
24987
        iprot.skip(ftype)
24988
      iprot.readFieldEnd()
24989
    iprot.readStructEnd()
24990
 
24991
  def write(self, oprot):
24992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24994
      return
24995
    oprot.writeStructBegin('updateProductFeedSubmit_args')
24996
    if self.productFeedSubmit is not None:
24997
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24998
      self.productFeedSubmit.write(oprot)
24999
      oprot.writeFieldEnd()
25000
    oprot.writeFieldStop()
25001
    oprot.writeStructEnd()
25002
 
25003
  def validate(self):
25004
    return
25005
 
25006
 
25007
  def __repr__(self):
25008
    L = ['%s=%r' % (key, value)
25009
      for key, value in self.__dict__.iteritems()]
25010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25011
 
25012
  def __eq__(self, other):
25013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25014
 
25015
  def __ne__(self, other):
25016
    return not (self == other)
25017
 
25018
class updateProductFeedSubmit_result:
25019
  """
25020
  Attributes:
25021
   - success
25022
   - cex
25023
  """
25024
 
25025
  thrift_spec = (
25026
    (0, TType.BOOL, 'success', None, None, ), # 0
25027
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25028
  )
25029
 
25030
  def __init__(self, success=None, cex=None,):
25031
    self.success = success
25032
    self.cex = cex
25033
 
25034
  def read(self, iprot):
25035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25037
      return
25038
    iprot.readStructBegin()
25039
    while True:
25040
      (fname, ftype, fid) = iprot.readFieldBegin()
25041
      if ftype == TType.STOP:
25042
        break
25043
      if fid == 0:
25044
        if ftype == TType.BOOL:
25045
          self.success = iprot.readBool();
25046
        else:
25047
          iprot.skip(ftype)
25048
      elif fid == 1:
25049
        if ftype == TType.STRUCT:
25050
          self.cex = CatalogServiceException()
25051
          self.cex.read(iprot)
25052
        else:
25053
          iprot.skip(ftype)
25054
      else:
25055
        iprot.skip(ftype)
25056
      iprot.readFieldEnd()
25057
    iprot.readStructEnd()
25058
 
25059
  def write(self, oprot):
25060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25062
      return
25063
    oprot.writeStructBegin('updateProductFeedSubmit_result')
25064
    if self.success is not None:
25065
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25066
      oprot.writeBool(self.success)
25067
      oprot.writeFieldEnd()
25068
    if self.cex is not None:
25069
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25070
      self.cex.write(oprot)
25071
      oprot.writeFieldEnd()
25072
    oprot.writeFieldStop()
25073
    oprot.writeStructEnd()
25074
 
25075
  def validate(self):
25076
    return
25077
 
25078
 
25079
  def __repr__(self):
25080
    L = ['%s=%r' % (key, value)
25081
      for key, value in self.__dict__.iteritems()]
25082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25083
 
25084
  def __eq__(self, other):
25085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25086
 
25087
  def __ne__(self, other):
25088
    return not (self == other)
25089
 
25090
class deleteProductFeedSubmit_args:
25091
  """
25092
  Attributes:
25093
   - catalogItemId
25094
  """
25095
 
25096
  thrift_spec = (
25097
    None, # 0
25098
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
25099
  )
25100
 
25101
  def __init__(self, catalogItemId=None,):
25102
    self.catalogItemId = catalogItemId
25103
 
25104
  def read(self, iprot):
25105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25107
      return
25108
    iprot.readStructBegin()
25109
    while True:
25110
      (fname, ftype, fid) = iprot.readFieldBegin()
25111
      if ftype == TType.STOP:
25112
        break
25113
      if fid == 1:
25114
        if ftype == TType.I64:
25115
          self.catalogItemId = iprot.readI64();
25116
        else:
25117
          iprot.skip(ftype)
25118
      else:
25119
        iprot.skip(ftype)
25120
      iprot.readFieldEnd()
25121
    iprot.readStructEnd()
25122
 
25123
  def write(self, oprot):
25124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25126
      return
25127
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
25128
    if self.catalogItemId is not None:
25129
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
25130
      oprot.writeI64(self.catalogItemId)
25131
      oprot.writeFieldEnd()
25132
    oprot.writeFieldStop()
25133
    oprot.writeStructEnd()
25134
 
25135
  def validate(self):
25136
    return
25137
 
25138
 
25139
  def __repr__(self):
25140
    L = ['%s=%r' % (key, value)
25141
      for key, value in self.__dict__.iteritems()]
25142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25143
 
25144
  def __eq__(self, other):
25145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25146
 
25147
  def __ne__(self, other):
25148
    return not (self == other)
25149
 
25150
class deleteProductFeedSubmit_result:
25151
  """
25152
  Attributes:
25153
   - success
25154
   - cex
25155
  """
25156
 
25157
  thrift_spec = (
25158
    (0, TType.BOOL, 'success', None, None, ), # 0
25159
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25160
  )
25161
 
25162
  def __init__(self, success=None, cex=None,):
25163
    self.success = success
25164
    self.cex = cex
25165
 
25166
  def read(self, iprot):
25167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25169
      return
25170
    iprot.readStructBegin()
25171
    while True:
25172
      (fname, ftype, fid) = iprot.readFieldBegin()
25173
      if ftype == TType.STOP:
25174
        break
25175
      if fid == 0:
25176
        if ftype == TType.BOOL:
25177
          self.success = iprot.readBool();
25178
        else:
25179
          iprot.skip(ftype)
25180
      elif fid == 1:
25181
        if ftype == TType.STRUCT:
25182
          self.cex = CatalogServiceException()
25183
          self.cex.read(iprot)
25184
        else:
25185
          iprot.skip(ftype)
25186
      else:
25187
        iprot.skip(ftype)
25188
      iprot.readFieldEnd()
25189
    iprot.readStructEnd()
25190
 
25191
  def write(self, oprot):
25192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25194
      return
25195
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
25196
    if self.success is not None:
25197
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25198
      oprot.writeBool(self.success)
25199
      oprot.writeFieldEnd()
25200
    if self.cex is not None:
25201
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25202
      self.cex.write(oprot)
25203
      oprot.writeFieldEnd()
25204
    oprot.writeFieldStop()
25205
    oprot.writeStructEnd()
25206
 
25207
  def validate(self):
25208
    return
25209
 
25210
 
25211
  def __repr__(self):
25212
    L = ['%s=%r' % (key, value)
25213
      for key, value in self.__dict__.iteritems()]
25214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25215
 
25216
  def __eq__(self, other):
25217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25218
 
25219
  def __ne__(self, other):
25220
    return not (self == other)
25221
 
25222
class getAllProductFeedSubmit_args:
25223
 
25224
  thrift_spec = (
25225
  )
25226
 
25227
  def read(self, iprot):
25228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25230
      return
25231
    iprot.readStructBegin()
25232
    while True:
25233
      (fname, ftype, fid) = iprot.readFieldBegin()
25234
      if ftype == TType.STOP:
25235
        break
25236
      else:
25237
        iprot.skip(ftype)
25238
      iprot.readFieldEnd()
25239
    iprot.readStructEnd()
25240
 
25241
  def write(self, oprot):
25242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25244
      return
25245
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
25246
    oprot.writeFieldStop()
25247
    oprot.writeStructEnd()
25248
 
25249
  def validate(self):
25250
    return
25251
 
25252
 
25253
  def __repr__(self):
25254
    L = ['%s=%r' % (key, value)
25255
      for key, value in self.__dict__.iteritems()]
25256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25257
 
25258
  def __eq__(self, other):
25259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25260
 
25261
  def __ne__(self, other):
25262
    return not (self == other)
25263
 
25264
class getAllProductFeedSubmit_result:
25265
  """
25266
  Attributes:
25267
   - success
25268
   - cex
25269
  """
25270
 
25271
  thrift_spec = (
25272
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
25273
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25274
  )
25275
 
25276
  def __init__(self, success=None, cex=None,):
25277
    self.success = success
25278
    self.cex = cex
25279
 
25280
  def read(self, iprot):
25281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25283
      return
25284
    iprot.readStructBegin()
25285
    while True:
25286
      (fname, ftype, fid) = iprot.readFieldBegin()
25287
      if ftype == TType.STOP:
25288
        break
25289
      if fid == 0:
25290
        if ftype == TType.LIST:
25291
          self.success = []
25292
          (_etype551, _size548) = iprot.readListBegin()
25293
          for _i552 in xrange(_size548):
25294
            _elem553 = ProductFeedSubmit()
25295
            _elem553.read(iprot)
25296
            self.success.append(_elem553)
25297
          iprot.readListEnd()
25298
        else:
25299
          iprot.skip(ftype)
25300
      elif fid == 1:
25301
        if ftype == TType.STRUCT:
25302
          self.cex = CatalogServiceException()
25303
          self.cex.read(iprot)
25304
        else:
25305
          iprot.skip(ftype)
25306
      else:
25307
        iprot.skip(ftype)
25308
      iprot.readFieldEnd()
25309
    iprot.readStructEnd()
25310
 
25311
  def write(self, oprot):
25312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25314
      return
25315
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
25316
    if self.success is not None:
25317
      oprot.writeFieldBegin('success', TType.LIST, 0)
25318
      oprot.writeListBegin(TType.STRUCT, len(self.success))
25319
      for iter554 in self.success:
25320
        iter554.write(oprot)
25321
      oprot.writeListEnd()
25322
      oprot.writeFieldEnd()
25323
    if self.cex is not None:
25324
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25325
      self.cex.write(oprot)
25326
      oprot.writeFieldEnd()
25327
    oprot.writeFieldStop()
25328
    oprot.writeStructEnd()
25329
 
25330
  def validate(self):
25331
    return
25332
 
25333
 
25334
  def __repr__(self):
25335
    L = ['%s=%r' % (key, value)
25336
      for key, value in self.__dict__.iteritems()]
25337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25338
 
25339
  def __eq__(self, other):
25340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25341
 
25342
  def __ne__(self, other):
25343
    return not (self == other)
9724 kshitij.so 25344
 
25345
class getMarketplacedetailsForItem_args:
25346
  """
25347
  Attributes:
25348
   - itemId
25349
   - sourceId
25350
  """
25351
 
25352
  thrift_spec = (
25353
    None, # 0
25354
    (1, TType.I64, 'itemId', None, None, ), # 1
25355
    (2, TType.I64, 'sourceId', None, None, ), # 2
25356
  )
25357
 
25358
  def __init__(self, itemId=None, sourceId=None,):
25359
    self.itemId = itemId
25360
    self.sourceId = sourceId
25361
 
25362
  def read(self, iprot):
25363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25365
      return
25366
    iprot.readStructBegin()
25367
    while True:
25368
      (fname, ftype, fid) = iprot.readFieldBegin()
25369
      if ftype == TType.STOP:
25370
        break
25371
      if fid == 1:
25372
        if ftype == TType.I64:
25373
          self.itemId = iprot.readI64();
25374
        else:
25375
          iprot.skip(ftype)
25376
      elif fid == 2:
25377
        if ftype == TType.I64:
25378
          self.sourceId = iprot.readI64();
25379
        else:
25380
          iprot.skip(ftype)
25381
      else:
25382
        iprot.skip(ftype)
25383
      iprot.readFieldEnd()
25384
    iprot.readStructEnd()
25385
 
25386
  def write(self, oprot):
25387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25389
      return
25390
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
25391
    if self.itemId is not None:
25392
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25393
      oprot.writeI64(self.itemId)
25394
      oprot.writeFieldEnd()
25395
    if self.sourceId is not None:
25396
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
25397
      oprot.writeI64(self.sourceId)
25398
      oprot.writeFieldEnd()
25399
    oprot.writeFieldStop()
25400
    oprot.writeStructEnd()
25401
 
25402
  def validate(self):
25403
    return
25404
 
25405
 
25406
  def __repr__(self):
25407
    L = ['%s=%r' % (key, value)
25408
      for key, value in self.__dict__.iteritems()]
25409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25410
 
25411
  def __eq__(self, other):
25412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25413
 
25414
  def __ne__(self, other):
25415
    return not (self == other)
25416
 
25417
class getMarketplacedetailsForItem_result:
25418
  """
25419
  Attributes:
25420
   - success
25421
  """
25422
 
25423
  thrift_spec = (
25424
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
25425
  )
25426
 
25427
  def __init__(self, success=None,):
25428
    self.success = success
25429
 
25430
  def read(self, iprot):
25431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25433
      return
25434
    iprot.readStructBegin()
25435
    while True:
25436
      (fname, ftype, fid) = iprot.readFieldBegin()
25437
      if ftype == TType.STOP:
25438
        break
25439
      if fid == 0:
25440
        if ftype == TType.STRUCT:
25441
          self.success = MarketplaceItems()
25442
          self.success.read(iprot)
25443
        else:
25444
          iprot.skip(ftype)
25445
      else:
25446
        iprot.skip(ftype)
25447
      iprot.readFieldEnd()
25448
    iprot.readStructEnd()
25449
 
25450
  def write(self, oprot):
25451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25453
      return
25454
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
25455
    if self.success is not None:
25456
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25457
      self.success.write(oprot)
25458
      oprot.writeFieldEnd()
25459
    oprot.writeFieldStop()
25460
    oprot.writeStructEnd()
25461
 
25462
  def validate(self):
25463
    return
25464
 
25465
 
25466
  def __repr__(self):
25467
    L = ['%s=%r' % (key, value)
25468
      for key, value in self.__dict__.iteritems()]
25469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25470
 
25471
  def __eq__(self, other):
25472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25473
 
25474
  def __ne__(self, other):
25475
    return not (self == other)
25476
 
25477
class updateMarketplaceAttributesForItem_args:
25478
  """
25479
  Attributes:
25480
   - marketPlaceItem
25481
  """
25482
 
25483
  thrift_spec = (
25484
    None, # 0
25485
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
25486
  )
25487
 
25488
  def __init__(self, marketPlaceItem=None,):
25489
    self.marketPlaceItem = marketPlaceItem
25490
 
25491
  def read(self, iprot):
25492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25494
      return
25495
    iprot.readStructBegin()
25496
    while True:
25497
      (fname, ftype, fid) = iprot.readFieldBegin()
25498
      if ftype == TType.STOP:
25499
        break
25500
      if fid == 1:
25501
        if ftype == TType.STRUCT:
25502
          self.marketPlaceItem = MarketplaceItems()
25503
          self.marketPlaceItem.read(iprot)
25504
        else:
25505
          iprot.skip(ftype)
25506
      else:
25507
        iprot.skip(ftype)
25508
      iprot.readFieldEnd()
25509
    iprot.readStructEnd()
25510
 
25511
  def write(self, oprot):
25512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25514
      return
25515
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
25516
    if self.marketPlaceItem is not None:
25517
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
25518
      self.marketPlaceItem.write(oprot)
25519
      oprot.writeFieldEnd()
25520
    oprot.writeFieldStop()
25521
    oprot.writeStructEnd()
25522
 
25523
  def validate(self):
25524
    return
25525
 
25526
 
25527
  def __repr__(self):
25528
    L = ['%s=%r' % (key, value)
25529
      for key, value in self.__dict__.iteritems()]
25530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25531
 
25532
  def __eq__(self, other):
25533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25534
 
25535
  def __ne__(self, other):
25536
    return not (self == other)
25537
 
25538
class updateMarketplaceAttributesForItem_result:
25539
  """
25540
  Attributes:
25541
   - success
25542
  """
25543
 
25544
  thrift_spec = (
25545
    (0, TType.BOOL, 'success', None, None, ), # 0
25546
  )
25547
 
25548
  def __init__(self, success=None,):
25549
    self.success = success
25550
 
25551
  def read(self, iprot):
25552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25554
      return
25555
    iprot.readStructBegin()
25556
    while True:
25557
      (fname, ftype, fid) = iprot.readFieldBegin()
25558
      if ftype == TType.STOP:
25559
        break
25560
      if fid == 0:
25561
        if ftype == TType.BOOL:
25562
          self.success = iprot.readBool();
25563
        else:
25564
          iprot.skip(ftype)
25565
      else:
25566
        iprot.skip(ftype)
25567
      iprot.readFieldEnd()
25568
    iprot.readStructEnd()
25569
 
25570
  def write(self, oprot):
25571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25573
      return
25574
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
25575
    if self.success is not None:
25576
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25577
      oprot.writeBool(self.success)
25578
      oprot.writeFieldEnd()
25579
    oprot.writeFieldStop()
25580
    oprot.writeStructEnd()
25581
 
25582
  def validate(self):
25583
    return
25584
 
25585
 
25586
  def __repr__(self):
25587
    L = ['%s=%r' % (key, value)
25588
      for key, value in self.__dict__.iteritems()]
25589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25590
 
25591
  def __eq__(self, other):
25592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25593
 
25594
  def __ne__(self, other):
25595
    return not (self == other)
9776 vikram.rag 25596
 
9779 kshitij.so 25597
class getCostingForMarketplace_args:
25598
  """
25599
  Attributes:
25600
   - source
25601
   - item_id
25602
  """
25603
 
25604
  thrift_spec = (
25605
    None, # 0
25606
    (1, TType.I64, 'source', None, None, ), # 1
25607
    (2, TType.I64, 'item_id', None, None, ), # 2
25608
  )
25609
 
25610
  def __init__(self, source=None, item_id=None,):
25611
    self.source = source
25612
    self.item_id = item_id
25613
 
25614
  def read(self, iprot):
25615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25617
      return
25618
    iprot.readStructBegin()
25619
    while True:
25620
      (fname, ftype, fid) = iprot.readFieldBegin()
25621
      if ftype == TType.STOP:
25622
        break
25623
      if fid == 1:
25624
        if ftype == TType.I64:
25625
          self.source = iprot.readI64();
25626
        else:
25627
          iprot.skip(ftype)
25628
      elif fid == 2:
25629
        if ftype == TType.I64:
25630
          self.item_id = iprot.readI64();
25631
        else:
25632
          iprot.skip(ftype)
25633
      else:
25634
        iprot.skip(ftype)
25635
      iprot.readFieldEnd()
25636
    iprot.readStructEnd()
25637
 
25638
  def write(self, oprot):
25639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25641
      return
25642
    oprot.writeStructBegin('getCostingForMarketplace_args')
25643
    if self.source is not None:
25644
      oprot.writeFieldBegin('source', TType.I64, 1)
25645
      oprot.writeI64(self.source)
25646
      oprot.writeFieldEnd()
25647
    if self.item_id is not None:
25648
      oprot.writeFieldBegin('item_id', TType.I64, 2)
25649
      oprot.writeI64(self.item_id)
25650
      oprot.writeFieldEnd()
25651
    oprot.writeFieldStop()
25652
    oprot.writeStructEnd()
25653
 
25654
  def validate(self):
25655
    return
25656
 
25657
 
25658
  def __repr__(self):
25659
    L = ['%s=%r' % (key, value)
25660
      for key, value in self.__dict__.iteritems()]
25661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25662
 
25663
  def __eq__(self, other):
25664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25665
 
25666
  def __ne__(self, other):
25667
    return not (self == other)
25668
 
25669
class getCostingForMarketplace_result:
25670
  """
25671
  Attributes:
25672
   - success
25673
  """
25674
 
25675
  thrift_spec = (
25676
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
25677
  )
25678
 
25679
  def __init__(self, success=None,):
25680
    self.success = success
25681
 
25682
  def read(self, iprot):
25683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25685
      return
25686
    iprot.readStructBegin()
25687
    while True:
25688
      (fname, ftype, fid) = iprot.readFieldBegin()
25689
      if ftype == TType.STOP:
25690
        break
25691
      if fid == 0:
25692
        if ftype == TType.STRUCT:
25693
          self.success = MarketplacePercentage()
25694
          self.success.read(iprot)
25695
        else:
25696
          iprot.skip(ftype)
25697
      else:
25698
        iprot.skip(ftype)
25699
      iprot.readFieldEnd()
25700
    iprot.readStructEnd()
25701
 
25702
  def write(self, oprot):
25703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25705
      return
25706
    oprot.writeStructBegin('getCostingForMarketplace_result')
25707
    if self.success is not None:
25708
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25709
      self.success.write(oprot)
25710
      oprot.writeFieldEnd()
25711
    oprot.writeFieldStop()
25712
    oprot.writeStructEnd()
25713
 
25714
  def validate(self):
25715
    return
25716
 
25717
 
25718
  def __repr__(self):
25719
    L = ['%s=%r' % (key, value)
25720
      for key, value in self.__dict__.iteritems()]
25721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25722
 
25723
  def __eq__(self, other):
25724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25725
 
25726
  def __ne__(self, other):
25727
    return not (self == other)
25728
 
9776 vikram.rag 25729
class getMarketPlaceItemsForPriceUpdate_args:
25730
  """
25731
  Attributes:
25732
   - source
25733
  """
25734
 
25735
  thrift_spec = (
25736
    None, # 0
25737
    (1, TType.I64, 'source', None, None, ), # 1
25738
  )
25739
 
25740
  def __init__(self, source=None,):
25741
    self.source = source
25742
 
25743
  def read(self, iprot):
25744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25746
      return
25747
    iprot.readStructBegin()
25748
    while True:
25749
      (fname, ftype, fid) = iprot.readFieldBegin()
25750
      if ftype == TType.STOP:
25751
        break
25752
      if fid == 1:
25753
        if ftype == TType.I64:
25754
          self.source = iprot.readI64();
25755
        else:
25756
          iprot.skip(ftype)
25757
      else:
25758
        iprot.skip(ftype)
25759
      iprot.readFieldEnd()
25760
    iprot.readStructEnd()
25761
 
25762
  def write(self, oprot):
25763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25765
      return
25766
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
25767
    if self.source is not None:
25768
      oprot.writeFieldBegin('source', TType.I64, 1)
25769
      oprot.writeI64(self.source)
25770
      oprot.writeFieldEnd()
25771
    oprot.writeFieldStop()
25772
    oprot.writeStructEnd()
25773
 
25774
  def validate(self):
25775
    return
25776
 
25777
 
25778
  def __repr__(self):
25779
    L = ['%s=%r' % (key, value)
25780
      for key, value in self.__dict__.iteritems()]
25781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25782
 
25783
  def __eq__(self, other):
25784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25785
 
25786
  def __ne__(self, other):
25787
    return not (self == other)
25788
 
25789
class getMarketPlaceItemsForPriceUpdate_result:
25790
  """
25791
  Attributes:
25792
   - success
25793
  """
25794
 
25795
  thrift_spec = (
25796
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
25797
  )
25798
 
25799
  def __init__(self, success=None,):
25800
    self.success = success
25801
 
25802
  def read(self, iprot):
25803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25805
      return
25806
    iprot.readStructBegin()
25807
    while True:
25808
      (fname, ftype, fid) = iprot.readFieldBegin()
25809
      if ftype == TType.STOP:
25810
        break
25811
      if fid == 0:
25812
        if ftype == TType.LIST:
25813
          self.success = []
25814
          (_etype558, _size555) = iprot.readListBegin()
25815
          for _i559 in xrange(_size555):
25816
            _elem560 = MarketPlaceItemPrice()
25817
            _elem560.read(iprot)
25818
            self.success.append(_elem560)
25819
          iprot.readListEnd()
25820
        else:
25821
          iprot.skip(ftype)
25822
      else:
25823
        iprot.skip(ftype)
25824
      iprot.readFieldEnd()
25825
    iprot.readStructEnd()
25826
 
25827
  def write(self, oprot):
25828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25830
      return
25831
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
25832
    if self.success is not None:
25833
      oprot.writeFieldBegin('success', TType.LIST, 0)
25834
      oprot.writeListBegin(TType.STRUCT, len(self.success))
25835
      for iter561 in self.success:
25836
        iter561.write(oprot)
25837
      oprot.writeListEnd()
25838
      oprot.writeFieldEnd()
25839
    oprot.writeFieldStop()
25840
    oprot.writeStructEnd()
25841
 
25842
  def validate(self):
25843
    return
25844
 
25845
 
25846
  def __repr__(self):
25847
    L = ['%s=%r' % (key, value)
25848
      for key, value in self.__dict__.iteritems()]
25849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25850
 
25851
  def __eq__(self, other):
25852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25853
 
25854
  def __ne__(self, other):
25855
    return not (self == other)
25856
 
25857
class updateMarketPlacePriceUpdateStatus_args:
25858
  """
25859
  Attributes:
25860
   - skulist
25861
   - timestamp
9816 kshitij.so 25862
   - source
9776 vikram.rag 25863
  """
25864
 
25865
  thrift_spec = (
25866
    None, # 0
25867
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
25868
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 25869
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 25870
  )
25871
 
9816 kshitij.so 25872
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 25873
    self.skulist = skulist
25874
    self.timestamp = timestamp
9816 kshitij.so 25875
    self.source = source
9776 vikram.rag 25876
 
25877
  def read(self, iprot):
25878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25880
      return
25881
    iprot.readStructBegin()
25882
    while True:
25883
      (fname, ftype, fid) = iprot.readFieldBegin()
25884
      if ftype == TType.STOP:
25885
        break
25886
      if fid == 1:
25887
        if ftype == TType.LIST:
25888
          self.skulist = []
25889
          (_etype565, _size562) = iprot.readListBegin()
25890
          for _i566 in xrange(_size562):
25891
            _elem567 = iprot.readI64();
25892
            self.skulist.append(_elem567)
25893
          iprot.readListEnd()
25894
        else:
25895
          iprot.skip(ftype)
25896
      elif fid == 2:
25897
        if ftype == TType.I64:
25898
          self.timestamp = iprot.readI64();
25899
        else:
25900
          iprot.skip(ftype)
9816 kshitij.so 25901
      elif fid == 3:
25902
        if ftype == TType.I64:
25903
          self.source = iprot.readI64();
25904
        else:
25905
          iprot.skip(ftype)
9776 vikram.rag 25906
      else:
25907
        iprot.skip(ftype)
25908
      iprot.readFieldEnd()
25909
    iprot.readStructEnd()
25910
 
25911
  def write(self, oprot):
25912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25914
      return
25915
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
25916
    if self.skulist is not None:
25917
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
25918
      oprot.writeListBegin(TType.I64, len(self.skulist))
25919
      for iter568 in self.skulist:
25920
        oprot.writeI64(iter568)
25921
      oprot.writeListEnd()
25922
      oprot.writeFieldEnd()
25923
    if self.timestamp is not None:
25924
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
25925
      oprot.writeI64(self.timestamp)
25926
      oprot.writeFieldEnd()
9816 kshitij.so 25927
    if self.source is not None:
25928
      oprot.writeFieldBegin('source', TType.I64, 3)
25929
      oprot.writeI64(self.source)
25930
      oprot.writeFieldEnd()
9776 vikram.rag 25931
    oprot.writeFieldStop()
25932
    oprot.writeStructEnd()
25933
 
25934
  def validate(self):
25935
    return
25936
 
25937
 
25938
  def __repr__(self):
25939
    L = ['%s=%r' % (key, value)
25940
      for key, value in self.__dict__.iteritems()]
25941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25942
 
25943
  def __eq__(self, other):
25944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25945
 
25946
  def __ne__(self, other):
25947
    return not (self == other)
25948
 
25949
class updateMarketPlacePriceUpdateStatus_result:
25950
 
25951
  thrift_spec = (
25952
  )
25953
 
25954
  def read(self, iprot):
25955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25957
      return
25958
    iprot.readStructBegin()
25959
    while True:
25960
      (fname, ftype, fid) = iprot.readFieldBegin()
25961
      if ftype == TType.STOP:
25962
        break
25963
      else:
25964
        iprot.skip(ftype)
25965
      iprot.readFieldEnd()
25966
    iprot.readStructEnd()
25967
 
25968
  def write(self, oprot):
25969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25971
      return
25972
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
25973
    oprot.writeFieldStop()
25974
    oprot.writeStructEnd()
25975
 
25976
  def validate(self):
25977
    return
25978
 
25979
 
25980
  def __repr__(self):
25981
    L = ['%s=%r' % (key, value)
25982
      for key, value in self.__dict__.iteritems()]
25983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25984
 
25985
  def __eq__(self, other):
25986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25987
 
25988
  def __ne__(self, other):
25989
    return not (self == other)
9861 rajveer 25990
 
25991
class updateItemHoldInventory_args:
25992
  """
25993
  Attributes:
25994
   - itemHoldMap
25995
  """
25996
 
25997
  thrift_spec = (
25998
    None, # 0
25999
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
26000
  )
26001
 
26002
  def __init__(self, itemHoldMap=None,):
26003
    self.itemHoldMap = itemHoldMap
26004
 
26005
  def read(self, iprot):
26006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26008
      return
26009
    iprot.readStructBegin()
26010
    while True:
26011
      (fname, ftype, fid) = iprot.readFieldBegin()
26012
      if ftype == TType.STOP:
26013
        break
26014
      if fid == 1:
26015
        if ftype == TType.MAP:
26016
          self.itemHoldMap = {}
26017
          (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin() 
26018
          for _i573 in xrange(_size569):
26019
            _key574 = iprot.readI64();
26020
            _val575 = iprot.readI64();
26021
            self.itemHoldMap[_key574] = _val575
26022
          iprot.readMapEnd()
26023
        else:
26024
          iprot.skip(ftype)
26025
      else:
26026
        iprot.skip(ftype)
26027
      iprot.readFieldEnd()
26028
    iprot.readStructEnd()
26029
 
26030
  def write(self, oprot):
26031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26033
      return
26034
    oprot.writeStructBegin('updateItemHoldInventory_args')
26035
    if self.itemHoldMap is not None:
26036
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
26037
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
26038
      for kiter576,viter577 in self.itemHoldMap.items():
26039
        oprot.writeI64(kiter576)
26040
        oprot.writeI64(viter577)
26041
      oprot.writeMapEnd()
26042
      oprot.writeFieldEnd()
26043
    oprot.writeFieldStop()
26044
    oprot.writeStructEnd()
26045
 
26046
  def validate(self):
26047
    return
26048
 
26049
 
26050
  def __repr__(self):
26051
    L = ['%s=%r' % (key, value)
26052
      for key, value in self.__dict__.iteritems()]
26053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26054
 
26055
  def __eq__(self, other):
26056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26057
 
26058
  def __ne__(self, other):
26059
    return not (self == other)
26060
 
26061
class updateItemHoldInventory_result:
26062
 
26063
  thrift_spec = (
26064
  )
26065
 
26066
  def read(self, iprot):
26067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26069
      return
26070
    iprot.readStructBegin()
26071
    while True:
26072
      (fname, ftype, fid) = iprot.readFieldBegin()
26073
      if ftype == TType.STOP:
26074
        break
26075
      else:
26076
        iprot.skip(ftype)
26077
      iprot.readFieldEnd()
26078
    iprot.readStructEnd()
26079
 
26080
  def write(self, oprot):
26081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26083
      return
26084
    oprot.writeStructBegin('updateItemHoldInventory_result')
26085
    oprot.writeFieldStop()
26086
    oprot.writeStructEnd()
26087
 
26088
  def validate(self):
26089
    return
26090
 
26091
 
26092
  def __repr__(self):
26093
    L = ['%s=%r' % (key, value)
26094
      for key, value in self.__dict__.iteritems()]
26095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26096
 
26097
  def __eq__(self, other):
26098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26099
 
26100
  def __ne__(self, other):
26101
    return not (self == other)
9895 vikram.rag 26102
 
26103
class updateNlcAtMarketplaces_args:
26104
  """
26105
  Attributes:
26106
   - item_id
26107
   - vendor_id
26108
   - nlc
26109
  """
26110
 
26111
  thrift_spec = None
26112
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
26113
    self.item_id = item_id
26114
    self.vendor_id = vendor_id
26115
    self.nlc = nlc
26116
 
26117
  def read(self, iprot):
26118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26120
      return
26121
    iprot.readStructBegin()
26122
    while True:
26123
      (fname, ftype, fid) = iprot.readFieldBegin()
26124
      if ftype == TType.STOP:
26125
        break
26126
      if fid == 1:
26127
        if ftype == TType.I64:
26128
          self.item_id = iprot.readI64();
26129
        else:
26130
          iprot.skip(ftype)
26131
      elif fid == 2:
26132
        if ftype == TType.I64:
26133
          self.vendor_id = iprot.readI64();
26134
        else:
26135
          iprot.skip(ftype)
26136
      elif fid == -1:
26137
        if ftype == TType.DOUBLE:
26138
          self.nlc = iprot.readDouble();
26139
        else:
26140
          iprot.skip(ftype)
26141
      else:
26142
        iprot.skip(ftype)
26143
      iprot.readFieldEnd()
26144
    iprot.readStructEnd()
26145
 
26146
  def write(self, oprot):
26147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26149
      return
26150
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
26151
    if self.nlc is not None:
26152
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
26153
      oprot.writeDouble(self.nlc)
26154
      oprot.writeFieldEnd()
26155
    if self.item_id is not None:
26156
      oprot.writeFieldBegin('item_id', TType.I64, 1)
26157
      oprot.writeI64(self.item_id)
26158
      oprot.writeFieldEnd()
26159
    if self.vendor_id is not None:
26160
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
26161
      oprot.writeI64(self.vendor_id)
26162
      oprot.writeFieldEnd()
26163
    oprot.writeFieldStop()
26164
    oprot.writeStructEnd()
26165
 
26166
  def validate(self):
26167
    return
26168
 
26169
 
26170
  def __repr__(self):
26171
    L = ['%s=%r' % (key, value)
26172
      for key, value in self.__dict__.iteritems()]
26173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26174
 
26175
  def __eq__(self, other):
26176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26177
 
26178
  def __ne__(self, other):
26179
    return not (self == other)
26180
 
26181
class updateNlcAtMarketplaces_result:
26182
 
26183
  thrift_spec = (
26184
  )
26185
 
26186
  def read(self, iprot):
26187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26189
      return
26190
    iprot.readStructBegin()
26191
    while True:
26192
      (fname, ftype, fid) = iprot.readFieldBegin()
26193
      if ftype == TType.STOP:
26194
        break
26195
      else:
26196
        iprot.skip(ftype)
26197
      iprot.readFieldEnd()
26198
    iprot.readStructEnd()
26199
 
26200
  def write(self, oprot):
26201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26203
      return
26204
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
26205
    oprot.writeFieldStop()
26206
    oprot.writeStructEnd()
26207
 
26208
  def validate(self):
26209
    return
26210
 
26211
 
26212
  def __repr__(self):
26213
    L = ['%s=%r' % (key, value)
26214
      for key, value in self.__dict__.iteritems()]
26215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26216
 
26217
  def __eq__(self, other):
26218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26219
 
26220
  def __ne__(self, other):
26221
    return not (self == other)
9945 vikram.rag 26222
 
26223
class getAllFlipkartItems_args:
26224
 
26225
  thrift_spec = (
26226
  )
26227
 
26228
  def read(self, iprot):
26229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26231
      return
26232
    iprot.readStructBegin()
26233
    while True:
26234
      (fname, ftype, fid) = iprot.readFieldBegin()
26235
      if ftype == TType.STOP:
26236
        break
26237
      else:
26238
        iprot.skip(ftype)
26239
      iprot.readFieldEnd()
26240
    iprot.readStructEnd()
26241
 
26242
  def write(self, oprot):
26243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26245
      return
26246
    oprot.writeStructBegin('getAllFlipkartItems_args')
26247
    oprot.writeFieldStop()
26248
    oprot.writeStructEnd()
26249
 
26250
  def validate(self):
26251
    return
26252
 
26253
 
26254
  def __repr__(self):
26255
    L = ['%s=%r' % (key, value)
26256
      for key, value in self.__dict__.iteritems()]
26257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26258
 
26259
  def __eq__(self, other):
26260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26261
 
26262
  def __ne__(self, other):
26263
    return not (self == other)
26264
 
26265
class getAllFlipkartItems_result:
26266
  """
26267
  Attributes:
26268
   - success
26269
  """
26270
 
26271
  thrift_spec = (
26272
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
26273
  )
26274
 
26275
  def __init__(self, success=None,):
26276
    self.success = success
26277
 
26278
  def read(self, iprot):
26279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26281
      return
26282
    iprot.readStructBegin()
26283
    while True:
26284
      (fname, ftype, fid) = iprot.readFieldBegin()
26285
      if ftype == TType.STOP:
26286
        break
26287
      if fid == 0:
26288
        if ftype == TType.LIST:
26289
          self.success = []
26290
          (_etype581, _size578) = iprot.readListBegin()
26291
          for _i582 in xrange(_size578):
26292
            _elem583 = FlipkartItem()
26293
            _elem583.read(iprot)
26294
            self.success.append(_elem583)
26295
          iprot.readListEnd()
26296
        else:
26297
          iprot.skip(ftype)
26298
      else:
26299
        iprot.skip(ftype)
26300
      iprot.readFieldEnd()
26301
    iprot.readStructEnd()
26302
 
26303
  def write(self, oprot):
26304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26306
      return
26307
    oprot.writeStructBegin('getAllFlipkartItems_result')
26308
    if self.success is not None:
26309
      oprot.writeFieldBegin('success', TType.LIST, 0)
26310
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26311
      for iter584 in self.success:
26312
        iter584.write(oprot)
26313
      oprot.writeListEnd()
26314
      oprot.writeFieldEnd()
26315
    oprot.writeFieldStop()
26316
    oprot.writeStructEnd()
26317
 
26318
  def validate(self):
26319
    return
26320
 
26321
 
26322
  def __repr__(self):
26323
    L = ['%s=%r' % (key, value)
26324
      for key, value in self.__dict__.iteritems()]
26325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26326
 
26327
  def __eq__(self, other):
26328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26329
 
26330
  def __ne__(self, other):
26331
    return not (self == other)
10097 kshitij.so 26332
 
26333
class addOrUpdateFlipkartItem_args:
26334
  """
26335
  Attributes:
26336
   - flipkartitem
26337
  """
26338
 
26339
  thrift_spec = None
26340
  def __init__(self, flipkartitem=None,):
26341
    self.flipkartitem = flipkartitem
26342
 
26343
  def read(self, iprot):
26344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26346
      return
26347
    iprot.readStructBegin()
26348
    while True:
26349
      (fname, ftype, fid) = iprot.readFieldBegin()
26350
      if ftype == TType.STOP:
26351
        break
26352
      if fid == -1:
26353
        if ftype == TType.STRUCT:
26354
          self.flipkartitem = FlipkartItem()
26355
          self.flipkartitem.read(iprot)
26356
        else:
26357
          iprot.skip(ftype)
26358
      else:
26359
        iprot.skip(ftype)
26360
      iprot.readFieldEnd()
26361
    iprot.readStructEnd()
26362
 
26363
  def write(self, oprot):
26364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26366
      return
26367
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
26368
    if self.flipkartitem is not None:
26369
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
26370
      self.flipkartitem.write(oprot)
26371
      oprot.writeFieldEnd()
26372
    oprot.writeFieldStop()
26373
    oprot.writeStructEnd()
26374
 
26375
  def validate(self):
26376
    return
26377
 
26378
 
26379
  def __repr__(self):
26380
    L = ['%s=%r' % (key, value)
26381
      for key, value in self.__dict__.iteritems()]
26382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26383
 
26384
  def __eq__(self, other):
26385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26386
 
26387
  def __ne__(self, other):
26388
    return not (self == other)
26389
 
26390
class addOrUpdateFlipkartItem_result:
26391
  """
26392
  Attributes:
26393
   - success
26394
  """
26395
 
26396
  thrift_spec = (
26397
    (0, TType.BOOL, 'success', None, None, ), # 0
26398
  )
26399
 
26400
  def __init__(self, success=None,):
26401
    self.success = success
26402
 
26403
  def read(self, iprot):
26404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26406
      return
26407
    iprot.readStructBegin()
26408
    while True:
26409
      (fname, ftype, fid) = iprot.readFieldBegin()
26410
      if ftype == TType.STOP:
26411
        break
26412
      if fid == 0:
26413
        if ftype == TType.BOOL:
26414
          self.success = iprot.readBool();
26415
        else:
26416
          iprot.skip(ftype)
26417
      else:
26418
        iprot.skip(ftype)
26419
      iprot.readFieldEnd()
26420
    iprot.readStructEnd()
26421
 
26422
  def write(self, oprot):
26423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26425
      return
26426
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
26427
    if self.success is not None:
26428
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26429
      oprot.writeBool(self.success)
26430
      oprot.writeFieldEnd()
26431
    oprot.writeFieldStop()
26432
    oprot.writeStructEnd()
26433
 
26434
  def validate(self):
26435
    return
26436
 
26437
 
26438
  def __repr__(self):
26439
    L = ['%s=%r' % (key, value)
26440
      for key, value in self.__dict__.iteritems()]
26441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26442
 
26443
  def __eq__(self, other):
26444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26445
 
26446
  def __ne__(self, other):
26447
    return not (self == other)
26448
 
26449
class getFlipkartItem_args:
26450
  """
26451
  Attributes:
26452
   - item_id
26453
  """
26454
 
26455
  thrift_spec = (
26456
    None, # 0
26457
    (1, TType.I64, 'item_id', None, None, ), # 1
26458
  )
26459
 
26460
  def __init__(self, item_id=None,):
26461
    self.item_id = item_id
26462
 
26463
  def read(self, iprot):
26464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26466
      return
26467
    iprot.readStructBegin()
26468
    while True:
26469
      (fname, ftype, fid) = iprot.readFieldBegin()
26470
      if ftype == TType.STOP:
26471
        break
26472
      if fid == 1:
26473
        if ftype == TType.I64:
26474
          self.item_id = iprot.readI64();
26475
        else:
26476
          iprot.skip(ftype)
26477
      else:
26478
        iprot.skip(ftype)
26479
      iprot.readFieldEnd()
26480
    iprot.readStructEnd()
26481
 
26482
  def write(self, oprot):
26483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26485
      return
26486
    oprot.writeStructBegin('getFlipkartItem_args')
26487
    if self.item_id is not None:
26488
      oprot.writeFieldBegin('item_id', TType.I64, 1)
26489
      oprot.writeI64(self.item_id)
26490
      oprot.writeFieldEnd()
26491
    oprot.writeFieldStop()
26492
    oprot.writeStructEnd()
26493
 
26494
  def validate(self):
26495
    return
26496
 
26497
 
26498
  def __repr__(self):
26499
    L = ['%s=%r' % (key, value)
26500
      for key, value in self.__dict__.iteritems()]
26501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26502
 
26503
  def __eq__(self, other):
26504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26505
 
26506
  def __ne__(self, other):
26507
    return not (self == other)
26508
 
26509
class getFlipkartItem_result:
26510
  """
26511
  Attributes:
26512
   - success
26513
  """
26514
 
26515
  thrift_spec = (
26516
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
26517
  )
26518
 
26519
  def __init__(self, success=None,):
26520
    self.success = success
26521
 
26522
  def read(self, iprot):
26523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26525
      return
26526
    iprot.readStructBegin()
26527
    while True:
26528
      (fname, ftype, fid) = iprot.readFieldBegin()
26529
      if ftype == TType.STOP:
26530
        break
26531
      if fid == 0:
26532
        if ftype == TType.STRUCT:
26533
          self.success = FlipkartItem()
26534
          self.success.read(iprot)
26535
        else:
26536
          iprot.skip(ftype)
26537
      else:
26538
        iprot.skip(ftype)
26539
      iprot.readFieldEnd()
26540
    iprot.readStructEnd()
26541
 
26542
  def write(self, oprot):
26543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26545
      return
26546
    oprot.writeStructBegin('getFlipkartItem_result')
26547
    if self.success is not None:
26548
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26549
      self.success.write(oprot)
26550
      oprot.writeFieldEnd()
26551
    oprot.writeFieldStop()
26552
    oprot.writeStructEnd()
26553
 
26554
  def validate(self):
26555
    return
26556
 
26557
 
26558
  def __repr__(self):
26559
    L = ['%s=%r' % (key, value)
26560
      for key, value in self.__dict__.iteritems()]
26561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26562
 
26563
  def __eq__(self, other):
26564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26565
 
26566
  def __ne__(self, other):
26567
    return not (self == other)
26568
 
26569
class getFlipkartItemDetails_args:
26570
  """
26571
  Attributes:
26572
   - item_id
26573
  """
26574
 
26575
  thrift_spec = (
26576
    None, # 0
26577
    (1, TType.I64, 'item_id', None, None, ), # 1
26578
  )
26579
 
26580
  def __init__(self, item_id=None,):
26581
    self.item_id = item_id
26582
 
26583
  def read(self, iprot):
26584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26586
      return
26587
    iprot.readStructBegin()
26588
    while True:
26589
      (fname, ftype, fid) = iprot.readFieldBegin()
26590
      if ftype == TType.STOP:
26591
        break
26592
      if fid == 1:
26593
        if ftype == TType.I64:
26594
          self.item_id = iprot.readI64();
26595
        else:
26596
          iprot.skip(ftype)
26597
      else:
26598
        iprot.skip(ftype)
26599
      iprot.readFieldEnd()
26600
    iprot.readStructEnd()
26601
 
26602
  def write(self, oprot):
26603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26605
      return
26606
    oprot.writeStructBegin('getFlipkartItemDetails_args')
26607
    if self.item_id is not None:
26608
      oprot.writeFieldBegin('item_id', TType.I64, 1)
26609
      oprot.writeI64(self.item_id)
26610
      oprot.writeFieldEnd()
26611
    oprot.writeFieldStop()
26612
    oprot.writeStructEnd()
26613
 
26614
  def validate(self):
26615
    return
26616
 
26617
 
26618
  def __repr__(self):
26619
    L = ['%s=%r' % (key, value)
26620
      for key, value in self.__dict__.iteritems()]
26621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26622
 
26623
  def __eq__(self, other):
26624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26625
 
26626
  def __ne__(self, other):
26627
    return not (self == other)
26628
 
26629
class getFlipkartItemDetails_result:
26630
  """
26631
  Attributes:
26632
   - success
26633
  """
26634
 
26635
  thrift_spec = (
26636
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
26637
  )
26638
 
26639
  def __init__(self, success=None,):
26640
    self.success = success
26641
 
26642
  def read(self, iprot):
26643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26645
      return
26646
    iprot.readStructBegin()
26647
    while True:
26648
      (fname, ftype, fid) = iprot.readFieldBegin()
26649
      if ftype == TType.STOP:
26650
        break
26651
      if fid == 0:
26652
        if ftype == TType.STRUCT:
26653
          self.success = FlipkartItemDetails()
26654
          self.success.read(iprot)
26655
        else:
26656
          iprot.skip(ftype)
26657
      else:
26658
        iprot.skip(ftype)
26659
      iprot.readFieldEnd()
26660
    iprot.readStructEnd()
26661
 
26662
  def write(self, oprot):
26663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26665
      return
26666
    oprot.writeStructBegin('getFlipkartItemDetails_result')
26667
    if self.success is not None:
26668
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26669
      self.success.write(oprot)
26670
      oprot.writeFieldEnd()
26671
    oprot.writeFieldStop()
26672
    oprot.writeStructEnd()
26673
 
26674
  def validate(self):
26675
    return
26676
 
26677
 
26678
  def __repr__(self):
26679
    L = ['%s=%r' % (key, value)
26680
      for key, value in self.__dict__.iteritems()]
26681
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26682
 
26683
  def __eq__(self, other):
26684
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26685
 
26686
  def __ne__(self, other):
26687
    return not (self == other)
26688
 
26689
class getFlipkartItems_args:
26690
  """
26691
  Attributes:
26692
   - offset
26693
   - limit
26694
  """
26695
 
26696
  thrift_spec = (
26697
    None, # 0
26698
    (1, TType.I64, 'offset', None, None, ), # 1
26699
    (2, TType.I64, 'limit', None, None, ), # 2
26700
  )
26701
 
26702
  def __init__(self, offset=None, limit=None,):
26703
    self.offset = offset
26704
    self.limit = limit
26705
 
26706
  def read(self, iprot):
26707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26709
      return
26710
    iprot.readStructBegin()
26711
    while True:
26712
      (fname, ftype, fid) = iprot.readFieldBegin()
26713
      if ftype == TType.STOP:
26714
        break
26715
      if fid == 1:
26716
        if ftype == TType.I64:
26717
          self.offset = iprot.readI64();
26718
        else:
26719
          iprot.skip(ftype)
26720
      elif fid == 2:
26721
        if ftype == TType.I64:
26722
          self.limit = iprot.readI64();
26723
        else:
26724
          iprot.skip(ftype)
26725
      else:
26726
        iprot.skip(ftype)
26727
      iprot.readFieldEnd()
26728
    iprot.readStructEnd()
26729
 
26730
  def write(self, oprot):
26731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26733
      return
26734
    oprot.writeStructBegin('getFlipkartItems_args')
26735
    if self.offset is not None:
26736
      oprot.writeFieldBegin('offset', TType.I64, 1)
26737
      oprot.writeI64(self.offset)
26738
      oprot.writeFieldEnd()
26739
    if self.limit is not None:
26740
      oprot.writeFieldBegin('limit', TType.I64, 2)
26741
      oprot.writeI64(self.limit)
26742
      oprot.writeFieldEnd()
26743
    oprot.writeFieldStop()
26744
    oprot.writeStructEnd()
26745
 
26746
  def validate(self):
26747
    return
26748
 
26749
 
26750
  def __repr__(self):
26751
    L = ['%s=%r' % (key, value)
26752
      for key, value in self.__dict__.iteritems()]
26753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26754
 
26755
  def __eq__(self, other):
26756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26757
 
26758
  def __ne__(self, other):
26759
    return not (self == other)
26760
 
26761
class getFlipkartItems_result:
26762
  """
26763
  Attributes:
26764
   - success
26765
  """
26766
 
26767
  thrift_spec = (
26768
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
26769
  )
26770
 
26771
  def __init__(self, success=None,):
26772
    self.success = success
26773
 
26774
  def read(self, iprot):
26775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26777
      return
26778
    iprot.readStructBegin()
26779
    while True:
26780
      (fname, ftype, fid) = iprot.readFieldBegin()
26781
      if ftype == TType.STOP:
26782
        break
26783
      if fid == 0:
26784
        if ftype == TType.LIST:
26785
          self.success = []
26786
          (_etype588, _size585) = iprot.readListBegin()
26787
          for _i589 in xrange(_size585):
26788
            _elem590 = FlipkartItemDetails()
26789
            _elem590.read(iprot)
26790
            self.success.append(_elem590)
26791
          iprot.readListEnd()
26792
        else:
26793
          iprot.skip(ftype)
26794
      else:
26795
        iprot.skip(ftype)
26796
      iprot.readFieldEnd()
26797
    iprot.readStructEnd()
26798
 
26799
  def write(self, oprot):
26800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26802
      return
26803
    oprot.writeStructBegin('getFlipkartItems_result')
26804
    if self.success is not None:
26805
      oprot.writeFieldBegin('success', TType.LIST, 0)
26806
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26807
      for iter591 in self.success:
26808
        iter591.write(oprot)
26809
      oprot.writeListEnd()
26810
      oprot.writeFieldEnd()
26811
    oprot.writeFieldStop()
26812
    oprot.writeStructEnd()
26813
 
26814
  def validate(self):
26815
    return
26816
 
26817
 
26818
  def __repr__(self):
26819
    L = ['%s=%r' % (key, value)
26820
      for key, value in self.__dict__.iteritems()]
26821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26822
 
26823
  def __eq__(self, other):
26824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26825
 
26826
  def __ne__(self, other):
26827
    return not (self == other)
26828
 
26829
class searchFlipkartItems_args:
26830
  """
26831
  Attributes:
26832
   - searchTerm
26833
   - offset
26834
   - limit
26835
  """
26836
 
26837
  thrift_spec = (
26838
    None, # 0
26839
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
26840
    (2, TType.I64, 'offset', None, None, ), # 2
26841
    (3, TType.I64, 'limit', None, None, ), # 3
26842
  )
26843
 
26844
  def __init__(self, searchTerm=None, offset=None, limit=None,):
26845
    self.searchTerm = searchTerm
26846
    self.offset = offset
26847
    self.limit = limit
26848
 
26849
  def read(self, iprot):
26850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26852
      return
26853
    iprot.readStructBegin()
26854
    while True:
26855
      (fname, ftype, fid) = iprot.readFieldBegin()
26856
      if ftype == TType.STOP:
26857
        break
26858
      if fid == 1:
26859
        if ftype == TType.LIST:
26860
          self.searchTerm = []
26861
          (_etype595, _size592) = iprot.readListBegin()
26862
          for _i596 in xrange(_size592):
26863
            _elem597 = iprot.readString();
26864
            self.searchTerm.append(_elem597)
26865
          iprot.readListEnd()
26866
        else:
26867
          iprot.skip(ftype)
26868
      elif fid == 2:
26869
        if ftype == TType.I64:
26870
          self.offset = iprot.readI64();
26871
        else:
26872
          iprot.skip(ftype)
26873
      elif fid == 3:
26874
        if ftype == TType.I64:
26875
          self.limit = iprot.readI64();
26876
        else:
26877
          iprot.skip(ftype)
26878
      else:
26879
        iprot.skip(ftype)
26880
      iprot.readFieldEnd()
26881
    iprot.readStructEnd()
26882
 
26883
  def write(self, oprot):
26884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26886
      return
26887
    oprot.writeStructBegin('searchFlipkartItems_args')
26888
    if self.searchTerm is not None:
26889
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
26890
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
26891
      for iter598 in self.searchTerm:
26892
        oprot.writeString(iter598)
26893
      oprot.writeListEnd()
26894
      oprot.writeFieldEnd()
26895
    if self.offset is not None:
26896
      oprot.writeFieldBegin('offset', TType.I64, 2)
26897
      oprot.writeI64(self.offset)
26898
      oprot.writeFieldEnd()
26899
    if self.limit is not None:
26900
      oprot.writeFieldBegin('limit', TType.I64, 3)
26901
      oprot.writeI64(self.limit)
26902
      oprot.writeFieldEnd()
26903
    oprot.writeFieldStop()
26904
    oprot.writeStructEnd()
26905
 
26906
  def validate(self):
26907
    return
26908
 
26909
 
26910
  def __repr__(self):
26911
    L = ['%s=%r' % (key, value)
26912
      for key, value in self.__dict__.iteritems()]
26913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26914
 
26915
  def __eq__(self, other):
26916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26917
 
26918
  def __ne__(self, other):
26919
    return not (self == other)
26920
 
26921
class searchFlipkartItems_result:
26922
  """
26923
  Attributes:
26924
   - success
26925
  """
26926
 
26927
  thrift_spec = (
26928
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
26929
  )
26930
 
26931
  def __init__(self, success=None,):
26932
    self.success = success
26933
 
26934
  def read(self, iprot):
26935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26937
      return
26938
    iprot.readStructBegin()
26939
    while True:
26940
      (fname, ftype, fid) = iprot.readFieldBegin()
26941
      if ftype == TType.STOP:
26942
        break
26943
      if fid == 0:
26944
        if ftype == TType.LIST:
26945
          self.success = []
26946
          (_etype602, _size599) = iprot.readListBegin()
26947
          for _i603 in xrange(_size599):
26948
            _elem604 = FlipkartItemDetails()
26949
            _elem604.read(iprot)
26950
            self.success.append(_elem604)
26951
          iprot.readListEnd()
26952
        else:
26953
          iprot.skip(ftype)
26954
      else:
26955
        iprot.skip(ftype)
26956
      iprot.readFieldEnd()
26957
    iprot.readStructEnd()
26958
 
26959
  def write(self, oprot):
26960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26962
      return
26963
    oprot.writeStructBegin('searchFlipkartItems_result')
26964
    if self.success is not None:
26965
      oprot.writeFieldBegin('success', TType.LIST, 0)
26966
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26967
      for iter605 in self.success:
26968
        iter605.write(oprot)
26969
      oprot.writeListEnd()
26970
      oprot.writeFieldEnd()
26971
    oprot.writeFieldStop()
26972
    oprot.writeStructEnd()
26973
 
26974
  def validate(self):
26975
    return
26976
 
26977
 
26978
  def __repr__(self):
26979
    L = ['%s=%r' % (key, value)
26980
      for key, value in self.__dict__.iteritems()]
26981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26982
 
26983
  def __eq__(self, other):
26984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26985
 
26986
  def __ne__(self, other):
26987
    return not (self == other)
26988
 
26989
class getCountForFlipkartItems_args:
26990
 
26991
  thrift_spec = (
26992
  )
26993
 
26994
  def read(self, iprot):
26995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26997
      return
26998
    iprot.readStructBegin()
26999
    while True:
27000
      (fname, ftype, fid) = iprot.readFieldBegin()
27001
      if ftype == TType.STOP:
27002
        break
27003
      else:
27004
        iprot.skip(ftype)
27005
      iprot.readFieldEnd()
27006
    iprot.readStructEnd()
27007
 
27008
  def write(self, oprot):
27009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27011
      return
27012
    oprot.writeStructBegin('getCountForFlipkartItems_args')
27013
    oprot.writeFieldStop()
27014
    oprot.writeStructEnd()
27015
 
27016
  def validate(self):
27017
    return
27018
 
27019
 
27020
  def __repr__(self):
27021
    L = ['%s=%r' % (key, value)
27022
      for key, value in self.__dict__.iteritems()]
27023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27024
 
27025
  def __eq__(self, other):
27026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27027
 
27028
  def __ne__(self, other):
27029
    return not (self == other)
27030
 
27031
class getCountForFlipkartItems_result:
27032
  """
27033
  Attributes:
27034
   - success
27035
  """
27036
 
27037
  thrift_spec = (
27038
    (0, TType.I64, 'success', None, None, ), # 0
27039
  )
27040
 
27041
  def __init__(self, success=None,):
27042
    self.success = success
27043
 
27044
  def read(self, iprot):
27045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27047
      return
27048
    iprot.readStructBegin()
27049
    while True:
27050
      (fname, ftype, fid) = iprot.readFieldBegin()
27051
      if ftype == TType.STOP:
27052
        break
27053
      if fid == 0:
27054
        if ftype == TType.I64:
27055
          self.success = iprot.readI64();
27056
        else:
27057
          iprot.skip(ftype)
27058
      else:
27059
        iprot.skip(ftype)
27060
      iprot.readFieldEnd()
27061
    iprot.readStructEnd()
27062
 
27063
  def write(self, oprot):
27064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27066
      return
27067
    oprot.writeStructBegin('getCountForFlipkartItems_result')
27068
    if self.success is not None:
27069
      oprot.writeFieldBegin('success', TType.I64, 0)
27070
      oprot.writeI64(self.success)
27071
      oprot.writeFieldEnd()
27072
    oprot.writeFieldStop()
27073
    oprot.writeStructEnd()
27074
 
27075
  def validate(self):
27076
    return
27077
 
27078
 
27079
  def __repr__(self):
27080
    L = ['%s=%r' % (key, value)
27081
      for key, value in self.__dict__.iteritems()]
27082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27083
 
27084
  def __eq__(self, other):
27085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27086
 
27087
  def __ne__(self, other):
27088
    return not (self == other)
27089
 
27090
class getFlipkartSearchResultCount_args:
27091
  """
27092
  Attributes:
27093
   - searchTerm
27094
  """
27095
 
27096
  thrift_spec = (
27097
    None, # 0
27098
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
27099
  )
27100
 
27101
  def __init__(self, searchTerm=None,):
27102
    self.searchTerm = searchTerm
27103
 
27104
  def read(self, iprot):
27105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27107
      return
27108
    iprot.readStructBegin()
27109
    while True:
27110
      (fname, ftype, fid) = iprot.readFieldBegin()
27111
      if ftype == TType.STOP:
27112
        break
27113
      if fid == 1:
27114
        if ftype == TType.LIST:
27115
          self.searchTerm = []
27116
          (_etype609, _size606) = iprot.readListBegin()
27117
          for _i610 in xrange(_size606):
27118
            _elem611 = iprot.readString();
27119
            self.searchTerm.append(_elem611)
27120
          iprot.readListEnd()
27121
        else:
27122
          iprot.skip(ftype)
27123
      else:
27124
        iprot.skip(ftype)
27125
      iprot.readFieldEnd()
27126
    iprot.readStructEnd()
27127
 
27128
  def write(self, oprot):
27129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27131
      return
27132
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
27133
    if self.searchTerm is not None:
27134
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
27135
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
27136
      for iter612 in self.searchTerm:
27137
        oprot.writeString(iter612)
27138
      oprot.writeListEnd()
27139
      oprot.writeFieldEnd()
27140
    oprot.writeFieldStop()
27141
    oprot.writeStructEnd()
27142
 
27143
  def validate(self):
27144
    return
27145
 
27146
 
27147
  def __repr__(self):
27148
    L = ['%s=%r' % (key, value)
27149
      for key, value in self.__dict__.iteritems()]
27150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27151
 
27152
  def __eq__(self, other):
27153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27154
 
27155
  def __ne__(self, other):
27156
    return not (self == other)
27157
 
27158
class getFlipkartSearchResultCount_result:
27159
  """
27160
  Attributes:
27161
   - success
27162
  """
27163
 
27164
  thrift_spec = (
27165
    (0, TType.I64, 'success', None, None, ), # 0
27166
  )
27167
 
27168
  def __init__(self, success=None,):
27169
    self.success = success
27170
 
27171
  def read(self, iprot):
27172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27174
      return
27175
    iprot.readStructBegin()
27176
    while True:
27177
      (fname, ftype, fid) = iprot.readFieldBegin()
27178
      if ftype == TType.STOP:
27179
        break
27180
      if fid == 0:
27181
        if ftype == TType.I64:
27182
          self.success = iprot.readI64();
27183
        else:
27184
          iprot.skip(ftype)
27185
      else:
27186
        iprot.skip(ftype)
27187
      iprot.readFieldEnd()
27188
    iprot.readStructEnd()
27189
 
27190
  def write(self, oprot):
27191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27193
      return
27194
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
27195
    if self.success is not None:
27196
      oprot.writeFieldBegin('success', TType.I64, 0)
27197
      oprot.writeI64(self.success)
27198
      oprot.writeFieldEnd()
27199
    oprot.writeFieldStop()
27200
    oprot.writeStructEnd()
27201
 
27202
  def validate(self):
27203
    return
27204
 
27205
 
27206
  def __repr__(self):
27207
    L = ['%s=%r' % (key, value)
27208
      for key, value in self.__dict__.iteritems()]
27209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27210
 
27211
  def __eq__(self, other):
27212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27213
 
27214
  def __ne__(self, other):
27215
    return not (self == other)
27216
 
27217
class getAllFkItems_args:
27218
 
27219
  thrift_spec = (
27220
  )
27221
 
27222
  def read(self, iprot):
27223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27225
      return
27226
    iprot.readStructBegin()
27227
    while True:
27228
      (fname, ftype, fid) = iprot.readFieldBegin()
27229
      if ftype == TType.STOP:
27230
        break
27231
      else:
27232
        iprot.skip(ftype)
27233
      iprot.readFieldEnd()
27234
    iprot.readStructEnd()
27235
 
27236
  def write(self, oprot):
27237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27239
      return
27240
    oprot.writeStructBegin('getAllFkItems_args')
27241
    oprot.writeFieldStop()
27242
    oprot.writeStructEnd()
27243
 
27244
  def validate(self):
27245
    return
27246
 
27247
 
27248
  def __repr__(self):
27249
    L = ['%s=%r' % (key, value)
27250
      for key, value in self.__dict__.iteritems()]
27251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27252
 
27253
  def __eq__(self, other):
27254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27255
 
27256
  def __ne__(self, other):
27257
    return not (self == other)
27258
 
27259
class getAllFkItems_result:
27260
  """
27261
  Attributes:
27262
   - success
27263
  """
27264
 
27265
  thrift_spec = (
27266
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
27267
  )
27268
 
27269
  def __init__(self, success=None,):
27270
    self.success = success
27271
 
27272
  def read(self, iprot):
27273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27275
      return
27276
    iprot.readStructBegin()
27277
    while True:
27278
      (fname, ftype, fid) = iprot.readFieldBegin()
27279
      if ftype == TType.STOP:
27280
        break
27281
      if fid == 0:
27282
        if ftype == TType.LIST:
27283
          self.success = []
27284
          (_etype616, _size613) = iprot.readListBegin()
27285
          for _i617 in xrange(_size613):
27286
            _elem618 = FlipkartItemDetails()
27287
            _elem618.read(iprot)
27288
            self.success.append(_elem618)
27289
          iprot.readListEnd()
27290
        else:
27291
          iprot.skip(ftype)
27292
      else:
27293
        iprot.skip(ftype)
27294
      iprot.readFieldEnd()
27295
    iprot.readStructEnd()
27296
 
27297
  def write(self, oprot):
27298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27300
      return
27301
    oprot.writeStructBegin('getAllFkItems_result')
27302
    if self.success is not None:
27303
      oprot.writeFieldBegin('success', TType.LIST, 0)
27304
      oprot.writeListBegin(TType.STRUCT, len(self.success))
27305
      for iter619 in self.success:
27306
        iter619.write(oprot)
27307
      oprot.writeListEnd()
27308
      oprot.writeFieldEnd()
27309
    oprot.writeFieldStop()
27310
    oprot.writeStructEnd()
27311
 
27312
  def validate(self):
27313
    return
27314
 
27315
 
27316
  def __repr__(self):
27317
    L = ['%s=%r' % (key, value)
27318
      for key, value in self.__dict__.iteritems()]
27319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27320
 
27321
  def __eq__(self, other):
27322
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27323
 
27324
  def __ne__(self, other):
27325
    return not (self == other)
10140 vikram.rag 27326
 
27327
class getFlipkartItemBySkyAtFlipkart_args:
27328
  """
27329
  Attributes:
27330
   - sku
27331
  """
27332
 
27333
  thrift_spec = None
27334
  def __init__(self, sku=None,):
27335
    self.sku = sku
27336
 
27337
  def read(self, iprot):
27338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27340
      return
27341
    iprot.readStructBegin()
27342
    while True:
27343
      (fname, ftype, fid) = iprot.readFieldBegin()
27344
      if ftype == TType.STOP:
27345
        break
27346
      if fid == -1:
27347
        if ftype == TType.STRING:
27348
          self.sku = iprot.readString();
27349
        else:
27350
          iprot.skip(ftype)
27351
      else:
27352
        iprot.skip(ftype)
27353
      iprot.readFieldEnd()
27354
    iprot.readStructEnd()
27355
 
27356
  def write(self, oprot):
27357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27359
      return
27360
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
27361
    if self.sku is not None:
27362
      oprot.writeFieldBegin('sku', TType.STRING, -1)
27363
      oprot.writeString(self.sku)
27364
      oprot.writeFieldEnd()
27365
    oprot.writeFieldStop()
27366
    oprot.writeStructEnd()
27367
 
27368
  def validate(self):
27369
    return
27370
 
27371
 
27372
  def __repr__(self):
27373
    L = ['%s=%r' % (key, value)
27374
      for key, value in self.__dict__.iteritems()]
27375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27376
 
27377
  def __eq__(self, other):
27378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27379
 
27380
  def __ne__(self, other):
27381
    return not (self == other)
27382
 
27383
class getFlipkartItemBySkyAtFlipkart_result:
27384
  """
27385
  Attributes:
27386
   - success
27387
  """
27388
 
27389
  thrift_spec = (
27390
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27391
  )
27392
 
27393
  def __init__(self, success=None,):
27394
    self.success = success
27395
 
27396
  def read(self, iprot):
27397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27399
      return
27400
    iprot.readStructBegin()
27401
    while True:
27402
      (fname, ftype, fid) = iprot.readFieldBegin()
27403
      if ftype == TType.STOP:
27404
        break
27405
      if fid == 0:
27406
        if ftype == TType.STRUCT:
27407
          self.success = FlipkartItem()
27408
          self.success.read(iprot)
27409
        else:
27410
          iprot.skip(ftype)
27411
      else:
27412
        iprot.skip(ftype)
27413
      iprot.readFieldEnd()
27414
    iprot.readStructEnd()
27415
 
27416
  def write(self, oprot):
27417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27419
      return
27420
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
27421
    if self.success is not None:
27422
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27423
      self.success.write(oprot)
27424
      oprot.writeFieldEnd()
27425
    oprot.writeFieldStop()
27426
    oprot.writeStructEnd()
27427
 
27428
  def validate(self):
27429
    return
27430
 
27431
 
27432
  def __repr__(self):
27433
    L = ['%s=%r' % (key, value)
27434
      for key, value in self.__dict__.iteritems()]
27435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27436
 
27437
  def __eq__(self, other):
27438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27439
 
27440
  def __ne__(self, other):
27441
    return not (self == other)
10909 vikram.rag 27442
 
27443
class getAllFbbListedItems_args:
27444
 
27445
  thrift_spec = (
27446
  )
27447
 
27448
  def read(self, iprot):
27449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27451
      return
27452
    iprot.readStructBegin()
27453
    while True:
27454
      (fname, ftype, fid) = iprot.readFieldBegin()
27455
      if ftype == TType.STOP:
27456
        break
27457
      else:
27458
        iprot.skip(ftype)
27459
      iprot.readFieldEnd()
27460
    iprot.readStructEnd()
27461
 
27462
  def write(self, oprot):
27463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27465
      return
27466
    oprot.writeStructBegin('getAllFbbListedItems_args')
27467
    oprot.writeFieldStop()
27468
    oprot.writeStructEnd()
27469
 
27470
  def validate(self):
27471
    return
27472
 
27473
 
27474
  def __repr__(self):
27475
    L = ['%s=%r' % (key, value)
27476
      for key, value in self.__dict__.iteritems()]
27477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27478
 
27479
  def __eq__(self, other):
27480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27481
 
27482
  def __ne__(self, other):
27483
    return not (self == other)
27484
 
27485
class getAllFbbListedItems_result:
27486
  """
27487
  Attributes:
27488
   - success
27489
  """
27490
 
27491
  thrift_spec = (
27492
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
27493
  )
27494
 
27495
  def __init__(self, success=None,):
27496
    self.success = success
27497
 
27498
  def read(self, iprot):
27499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27501
      return
27502
    iprot.readStructBegin()
27503
    while True:
27504
      (fname, ftype, fid) = iprot.readFieldBegin()
27505
      if ftype == TType.STOP:
27506
        break
27507
      if fid == 0:
27508
        if ftype == TType.LIST:
27509
          self.success = []
27510
          (_etype623, _size620) = iprot.readListBegin()
27511
          for _i624 in xrange(_size620):
27512
            _elem625 = Amazonlisted()
27513
            _elem625.read(iprot)
27514
            self.success.append(_elem625)
27515
          iprot.readListEnd()
27516
        else:
27517
          iprot.skip(ftype)
27518
      else:
27519
        iprot.skip(ftype)
27520
      iprot.readFieldEnd()
27521
    iprot.readStructEnd()
27522
 
27523
  def write(self, oprot):
27524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27526
      return
27527
    oprot.writeStructBegin('getAllFbbListedItems_result')
27528
    if self.success is not None:
27529
      oprot.writeFieldBegin('success', TType.LIST, 0)
27530
      oprot.writeListBegin(TType.STRUCT, len(self.success))
27531
      for iter626 in self.success:
27532
        iter626.write(oprot)
27533
      oprot.writeListEnd()
27534
      oprot.writeFieldEnd()
27535
    oprot.writeFieldStop()
27536
    oprot.writeStructEnd()
27537
 
27538
  def validate(self):
27539
    return
27540
 
27541
 
27542
  def __repr__(self):
27543
    L = ['%s=%r' % (key, value)
27544
      for key, value in self.__dict__.iteritems()]
27545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27546
 
27547
  def __eq__(self, other):
27548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27549
 
27550
  def __ne__(self, other):
27551
    return not (self == other)