Subversion Repositories SmartDukaan

Rev

Rev 9945 | Rev 10140 | 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
 
1107
 
5944 mandeep.dh 1108
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1109
  def __init__(self, iprot, oprot=None):
1110
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1111
 
1112
  def addItem(self, item):
1113
    """
1114
    Availability and inventory attributes
1115
 
1116
    Parameters:
1117
     - item
1118
    """
1119
    self.send_addItem(item)
1120
    return self.recv_addItem()
1121
 
1122
  def send_addItem(self, item):
1123
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1124
    args = addItem_args()
1125
    args.item = item
1126
    args.write(self._oprot)
1127
    self._oprot.writeMessageEnd()
1128
    self._oprot.trans.flush()
1129
 
1130
  def recv_addItem(self, ):
1131
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1132
    if mtype == TMessageType.EXCEPTION:
1133
      x = TApplicationException()
1134
      x.read(self._iprot)
1135
      self._iprot.readMessageEnd()
1136
      raise x
1137
    result = addItem_result()
1138
    result.read(self._iprot)
1139
    self._iprot.readMessageEnd()
1140
    if result.success is not None:
1141
      return result.success
1142
    if result.cex is not None:
1143
      raise result.cex
1144
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1145
 
1146
  def updateItem(self, item):
1147
    """
1148
    Parameters:
1149
     - item
1150
    """
1151
    self.send_updateItem(item)
1152
    return self.recv_updateItem()
1153
 
1154
  def send_updateItem(self, item):
1155
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1156
    args = updateItem_args()
1157
    args.item = item
1158
    args.write(self._oprot)
1159
    self._oprot.writeMessageEnd()
1160
    self._oprot.trans.flush()
1161
 
1162
  def recv_updateItem(self, ):
1163
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1164
    if mtype == TMessageType.EXCEPTION:
1165
      x = TApplicationException()
1166
      x.read(self._iprot)
1167
      self._iprot.readMessageEnd()
1168
      raise x
1169
    result = updateItem_result()
1170
    result.read(self._iprot)
1171
    self._iprot.readMessageEnd()
1172
    if result.success is not None:
1173
      return result.success
1174
    if result.cex is not None:
1175
      raise result.cex
1176
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1177
 
1178
  def isActive(self, itemId):
1179
    """
1180
    Checks if the item given to the corresponding itemId is active. If it's active,
1181
    whether it's risky and if it's risky, its inventory position.
1182
 
1183
    Parameters:
1184
     - itemId
1185
    """
1186
    self.send_isActive(itemId)
1187
    return self.recv_isActive()
1188
 
1189
  def send_isActive(self, itemId):
1190
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1191
    args = isActive_args()
1192
    args.itemId = itemId
1193
    args.write(self._oprot)
1194
    self._oprot.writeMessageEnd()
1195
    self._oprot.trans.flush()
1196
 
1197
  def recv_isActive(self, ):
1198
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1199
    if mtype == TMessageType.EXCEPTION:
1200
      x = TApplicationException()
1201
      x.read(self._iprot)
1202
      self._iprot.readMessageEnd()
1203
      raise x
1204
    result = isActive_result()
1205
    result.read(self._iprot)
1206
    self._iprot.readMessageEnd()
1207
    if result.success is not None:
1208
      return result.success
1209
    if result.isex is not None:
1210
      raise result.isex
1211
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1212
 
7438 amit.gupta 1213
  def getItemsStatus(self, itemIds):
1214
    """
1215
    Parameters:
1216
     - itemIds
1217
    """
1218
    self.send_getItemsStatus(itemIds)
1219
    return self.recv_getItemsStatus()
1220
 
1221
  def send_getItemsStatus(self, itemIds):
1222
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1223
    args = getItemsStatus_args()
1224
    args.itemIds = itemIds
1225
    args.write(self._oprot)
1226
    self._oprot.writeMessageEnd()
1227
    self._oprot.trans.flush()
1228
 
1229
  def recv_getItemsStatus(self, ):
1230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1231
    if mtype == TMessageType.EXCEPTION:
1232
      x = TApplicationException()
1233
      x.read(self._iprot)
1234
      self._iprot.readMessageEnd()
1235
      raise x
1236
    result = getItemsStatus_result()
1237
    result.read(self._iprot)
1238
    self._iprot.readMessageEnd()
1239
    if result.success is not None:
1240
      return result.success
1241
    if result.isex is not None:
1242
      raise result.isex
1243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1244
 
5944 mandeep.dh 1245
  def getItemStatusDescription(self, itemId):
1246
    """
1247
    Parameters:
1248
     - itemId
1249
    """
1250
    self.send_getItemStatusDescription(itemId)
1251
    return self.recv_getItemStatusDescription()
1252
 
1253
  def send_getItemStatusDescription(self, itemId):
1254
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1255
    args = getItemStatusDescription_args()
1256
    args.itemId = itemId
1257
    args.write(self._oprot)
1258
    self._oprot.writeMessageEnd()
1259
    self._oprot.trans.flush()
1260
 
1261
  def recv_getItemStatusDescription(self, ):
1262
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1263
    if mtype == TMessageType.EXCEPTION:
1264
      x = TApplicationException()
1265
      x.read(self._iprot)
1266
      self._iprot.readMessageEnd()
1267
      raise x
1268
    result = getItemStatusDescription_result()
1269
    result.read(self._iprot)
1270
    self._iprot.readMessageEnd()
1271
    if result.success is not None:
1272
      return result.success
1273
    if result.isex is not None:
1274
      raise result.isex
1275
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1276
 
1277
  def startItemOn(self, item_id, timestamp):
1278
    """
1279
    Parameters:
1280
     - item_id
1281
     - timestamp
1282
    """
1283
    self.send_startItemOn(item_id, timestamp)
1284
    self.recv_startItemOn()
1285
 
1286
  def send_startItemOn(self, item_id, timestamp):
1287
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1288
    args = startItemOn_args()
1289
    args.item_id = item_id
1290
    args.timestamp = timestamp
1291
    args.write(self._oprot)
1292
    self._oprot.writeMessageEnd()
1293
    self._oprot.trans.flush()
1294
 
1295
  def recv_startItemOn(self, ):
1296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1297
    if mtype == TMessageType.EXCEPTION:
1298
      x = TApplicationException()
1299
      x.read(self._iprot)
1300
      self._iprot.readMessageEnd()
1301
      raise x
1302
    result = startItemOn_result()
1303
    result.read(self._iprot)
1304
    self._iprot.readMessageEnd()
1305
    if result.cex is not None:
1306
      raise result.cex
1307
    return
1308
 
1309
  def retireItemOn(self, item_id, timestamp):
1310
    """
1311
    Parameters:
1312
     - item_id
1313
     - timestamp
1314
    """
1315
    self.send_retireItemOn(item_id, timestamp)
1316
    self.recv_retireItemOn()
1317
 
1318
  def send_retireItemOn(self, item_id, timestamp):
1319
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1320
    args = retireItemOn_args()
1321
    args.item_id = item_id
1322
    args.timestamp = timestamp
1323
    args.write(self._oprot)
1324
    self._oprot.writeMessageEnd()
1325
    self._oprot.trans.flush()
1326
 
1327
  def recv_retireItemOn(self, ):
1328
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1329
    if mtype == TMessageType.EXCEPTION:
1330
      x = TApplicationException()
1331
      x.read(self._iprot)
1332
      self._iprot.readMessageEnd()
1333
      raise x
1334
    result = retireItemOn_result()
1335
    result.read(self._iprot)
1336
    self._iprot.readMessageEnd()
1337
    if result.cex is not None:
1338
      raise result.cex
1339
    return
1340
 
1341
  def changeItemStatus(self, item_id, timestamp, newstatus):
1342
    """
1343
    Parameters:
1344
     - item_id
1345
     - timestamp
1346
     - newstatus
1347
    """
1348
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1349
    self.recv_changeItemStatus()
1350
 
1351
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1352
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1353
    args = changeItemStatus_args()
1354
    args.item_id = item_id
1355
    args.timestamp = timestamp
1356
    args.newstatus = newstatus
1357
    args.write(self._oprot)
1358
    self._oprot.writeMessageEnd()
1359
    self._oprot.trans.flush()
1360
 
1361
  def recv_changeItemStatus(self, ):
1362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1363
    if mtype == TMessageType.EXCEPTION:
1364
      x = TApplicationException()
1365
      x.read(self._iprot)
1366
      self._iprot.readMessageEnd()
1367
      raise x
1368
    result = changeItemStatus_result()
1369
    result.read(self._iprot)
1370
    self._iprot.readMessageEnd()
1371
    if result.cex is not None:
1372
      raise result.cex
1373
    return
1374
 
1375
  def getItem(self, item_id):
1376
    """
1377
    Parameters:
1378
     - item_id
1379
    """
1380
    self.send_getItem(item_id)
1381
    return self.recv_getItem()
1382
 
1383
  def send_getItem(self, item_id):
1384
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1385
    args = getItem_args()
1386
    args.item_id = item_id
1387
    args.write(self._oprot)
1388
    self._oprot.writeMessageEnd()
1389
    self._oprot.trans.flush()
1390
 
1391
  def recv_getItem(self, ):
1392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1393
    if mtype == TMessageType.EXCEPTION:
1394
      x = TApplicationException()
1395
      x.read(self._iprot)
1396
      self._iprot.readMessageEnd()
1397
      raise x
1398
    result = getItem_result()
1399
    result.read(self._iprot)
1400
    self._iprot.readMessageEnd()
1401
    if result.success is not None:
1402
      return result.success
1403
    if result.cex is not None:
1404
      raise result.cex
1405
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1406
 
1407
  def getItemsByCatalogId(self, catalog_item_id):
1408
    """
1409
    Parameters:
1410
     - catalog_item_id
1411
    """
1412
    self.send_getItemsByCatalogId(catalog_item_id)
1413
    return self.recv_getItemsByCatalogId()
1414
 
1415
  def send_getItemsByCatalogId(self, catalog_item_id):
1416
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1417
    args = getItemsByCatalogId_args()
1418
    args.catalog_item_id = catalog_item_id
1419
    args.write(self._oprot)
1420
    self._oprot.writeMessageEnd()
1421
    self._oprot.trans.flush()
1422
 
1423
  def recv_getItemsByCatalogId(self, ):
1424
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1425
    if mtype == TMessageType.EXCEPTION:
1426
      x = TApplicationException()
1427
      x.read(self._iprot)
1428
      self._iprot.readMessageEnd()
1429
      raise x
1430
    result = getItemsByCatalogId_result()
1431
    result.read(self._iprot)
1432
    self._iprot.readMessageEnd()
1433
    if result.success is not None:
1434
      return result.success
1435
    if result.cex is not None:
1436
      raise result.cex
1437
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1438
 
1439
  def getValidItemsByCatalogId(self, catalog_item_id):
1440
    """
1441
    Parameters:
1442
     - catalog_item_id
1443
    """
1444
    self.send_getValidItemsByCatalogId(catalog_item_id)
1445
    return self.recv_getValidItemsByCatalogId()
1446
 
1447
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1448
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1449
    args = getValidItemsByCatalogId_args()
1450
    args.catalog_item_id = catalog_item_id
1451
    args.write(self._oprot)
1452
    self._oprot.writeMessageEnd()
1453
    self._oprot.trans.flush()
1454
 
1455
  def recv_getValidItemsByCatalogId(self, ):
1456
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1457
    if mtype == TMessageType.EXCEPTION:
1458
      x = TApplicationException()
1459
      x.read(self._iprot)
1460
      self._iprot.readMessageEnd()
1461
      raise x
1462
    result = getValidItemsByCatalogId_result()
1463
    result.read(self._iprot)
1464
    self._iprot.readMessageEnd()
1465
    if result.success is not None:
1466
      return result.success
1467
    if result.cex is not None:
1468
      raise result.cex
1469
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1470
 
1471
  def getAllItems(self, isActive):
1472
    """
1473
    Parameters:
1474
     - isActive
1475
    """
1476
    self.send_getAllItems(isActive)
1477
    return self.recv_getAllItems()
1478
 
1479
  def send_getAllItems(self, isActive):
1480
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1481
    args = getAllItems_args()
1482
    args.isActive = isActive
1483
    args.write(self._oprot)
1484
    self._oprot.writeMessageEnd()
1485
    self._oprot.trans.flush()
1486
 
1487
  def recv_getAllItems(self, ):
1488
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1489
    if mtype == TMessageType.EXCEPTION:
1490
      x = TApplicationException()
1491
      x.read(self._iprot)
1492
      self._iprot.readMessageEnd()
1493
      raise x
1494
    result = getAllItems_result()
1495
    result.read(self._iprot)
1496
    self._iprot.readMessageEnd()
1497
    if result.success is not None:
1498
      return result.success
1499
    if result.cex is not None:
1500
      raise result.cex
1501
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1502
 
1503
  def getAllItemsByStatus(self, itemStatus):
1504
    """
1505
    Parameters:
1506
     - itemStatus
1507
    """
1508
    self.send_getAllItemsByStatus(itemStatus)
1509
    return self.recv_getAllItemsByStatus()
1510
 
1511
  def send_getAllItemsByStatus(self, itemStatus):
1512
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1513
    args = getAllItemsByStatus_args()
1514
    args.itemStatus = itemStatus
1515
    args.write(self._oprot)
1516
    self._oprot.writeMessageEnd()
1517
    self._oprot.trans.flush()
1518
 
1519
  def recv_getAllItemsByStatus(self, ):
1520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1521
    if mtype == TMessageType.EXCEPTION:
1522
      x = TApplicationException()
1523
      x.read(self._iprot)
1524
      self._iprot.readMessageEnd()
1525
      raise x
1526
    result = getAllItemsByStatus_result()
1527
    result.read(self._iprot)
1528
    self._iprot.readMessageEnd()
1529
    if result.success is not None:
1530
      return result.success
1531
    if result.cex is not None:
1532
      raise result.cex
1533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1534
 
9253 rajveer 1535
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1536
    """
1537
    Parameters:
1538
     - entityId
1539
     - category
1540
     - brand
1541
     - modelName
1542
     - modelNumber
9253 rajveer 1543
     - isAndroid
5944 mandeep.dh 1544
    """
9253 rajveer 1545
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1546
    return self.recv_markItemAsContentComplete()
1547
 
9253 rajveer 1548
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1549
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1550
    args = markItemAsContentComplete_args()
1551
    args.entityId = entityId
1552
    args.category = category
1553
    args.brand = brand
1554
    args.modelName = modelName
1555
    args.modelNumber = modelNumber
9253 rajveer 1556
    args.isAndroid = isAndroid
5944 mandeep.dh 1557
    args.write(self._oprot)
1558
    self._oprot.writeMessageEnd()
1559
    self._oprot.trans.flush()
1560
 
1561
  def recv_markItemAsContentComplete(self, ):
1562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1563
    if mtype == TMessageType.EXCEPTION:
1564
      x = TApplicationException()
1565
      x.read(self._iprot)
1566
      self._iprot.readMessageEnd()
1567
      raise x
1568
    result = markItemAsContentComplete_result()
1569
    result.read(self._iprot)
1570
    self._iprot.readMessageEnd()
1571
    if result.success is not None:
1572
      return result.success
1573
    if result.cex is not None:
1574
      raise result.cex
1575
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1576
 
1577
  def getAllItemsInRange(self, offset, limit):
1578
    """
1579
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1580
 
1581
    Parameters:
1582
     - offset
1583
     - limit
1584
    """
1585
    self.send_getAllItemsInRange(offset, limit)
1586
    return self.recv_getAllItemsInRange()
1587
 
1588
  def send_getAllItemsInRange(self, offset, limit):
1589
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1590
    args = getAllItemsInRange_args()
1591
    args.offset = offset
1592
    args.limit = limit
1593
    args.write(self._oprot)
1594
    self._oprot.writeMessageEnd()
1595
    self._oprot.trans.flush()
1596
 
1597
  def recv_getAllItemsInRange(self, ):
1598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1599
    if mtype == TMessageType.EXCEPTION:
1600
      x = TApplicationException()
1601
      x.read(self._iprot)
1602
      self._iprot.readMessageEnd()
1603
      raise x
1604
    result = getAllItemsInRange_result()
1605
    result.read(self._iprot)
1606
    self._iprot.readMessageEnd()
1607
    if result.success is not None:
1608
      return result.success
1609
    if result.cex is not None:
1610
      raise result.cex
1611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1612
 
1613
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1614
    """
1615
    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.
1616
 
1617
    Parameters:
1618
     - itemStatus
1619
     - offset
1620
     - limit
1621
    """
1622
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1623
    return self.recv_getAllItemsByStatusInRange()
1624
 
1625
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1626
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1627
    args = getAllItemsByStatusInRange_args()
1628
    args.itemStatus = itemStatus
1629
    args.offset = offset
1630
    args.limit = limit
1631
    args.write(self._oprot)
1632
    self._oprot.writeMessageEnd()
1633
    self._oprot.trans.flush()
1634
 
1635
  def recv_getAllItemsByStatusInRange(self, ):
1636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1637
    if mtype == TMessageType.EXCEPTION:
1638
      x = TApplicationException()
1639
      x.read(self._iprot)
1640
      self._iprot.readMessageEnd()
1641
      raise x
1642
    result = getAllItemsByStatusInRange_result()
1643
    result.read(self._iprot)
1644
    self._iprot.readMessageEnd()
1645
    if result.success is not None:
1646
      return result.success
1647
    if result.cex is not None:
1648
      raise result.cex
1649
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1650
 
1651
  def getItemCountByStatus(self, useStatus, itemStatus):
1652
    """
1653
    Gets a count of all items by status
1654
 
1655
    Parameters:
1656
     - useStatus
1657
     - itemStatus
1658
    """
1659
    self.send_getItemCountByStatus(useStatus, itemStatus)
1660
    return self.recv_getItemCountByStatus()
1661
 
1662
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1663
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1664
    args = getItemCountByStatus_args()
1665
    args.useStatus = useStatus
1666
    args.itemStatus = itemStatus
1667
    args.write(self._oprot)
1668
    self._oprot.writeMessageEnd()
1669
    self._oprot.trans.flush()
1670
 
1671
  def recv_getItemCountByStatus(self, ):
1672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1673
    if mtype == TMessageType.EXCEPTION:
1674
      x = TApplicationException()
1675
      x.read(self._iprot)
1676
      self._iprot.readMessageEnd()
1677
      raise x
1678
    result = getItemCountByStatus_result()
1679
    result.read(self._iprot)
1680
    self._iprot.readMessageEnd()
1681
    if result.success is not None:
1682
      return result.success
1683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1684
 
1685
  def getBestSellers(self, ):
1686
    self.send_getBestSellers()
1687
    return self.recv_getBestSellers()
1688
 
1689
  def send_getBestSellers(self, ):
1690
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1691
    args = getBestSellers_args()
1692
    args.write(self._oprot)
1693
    self._oprot.writeMessageEnd()
1694
    self._oprot.trans.flush()
1695
 
1696
  def recv_getBestSellers(self, ):
1697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1698
    if mtype == TMessageType.EXCEPTION:
1699
      x = TApplicationException()
1700
      x.read(self._iprot)
1701
      self._iprot.readMessageEnd()
1702
      raise x
1703
    result = getBestSellers_result()
1704
    result.read(self._iprot)
1705
    self._iprot.readMessageEnd()
1706
    if result.success is not None:
1707
      return result.success
1708
    if result.isex is not None:
1709
      raise result.isex
1710
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1711
 
1712
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1713
    """
1714
    Parameters:
1715
     - beginIndex
1716
     - totalItems
1717
     - brand
1718
     - category
1719
    """
1720
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1721
    return self.recv_getBestSellersCatalogIds()
1722
 
1723
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1724
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1725
    args = getBestSellersCatalogIds_args()
1726
    args.beginIndex = beginIndex
1727
    args.totalItems = totalItems
1728
    args.brand = brand
1729
    args.category = category
1730
    args.write(self._oprot)
1731
    self._oprot.writeMessageEnd()
1732
    self._oprot.trans.flush()
1733
 
1734
  def recv_getBestSellersCatalogIds(self, ):
1735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1736
    if mtype == TMessageType.EXCEPTION:
1737
      x = TApplicationException()
1738
      x.read(self._iprot)
1739
      self._iprot.readMessageEnd()
1740
      raise x
1741
    result = getBestSellersCatalogIds_result()
1742
    result.read(self._iprot)
1743
    self._iprot.readMessageEnd()
1744
    if result.success is not None:
1745
      return result.success
1746
    if result.cex is not None:
1747
      raise result.cex
1748
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1749
 
1750
  def getBestSellersCount(self, ):
1751
    self.send_getBestSellersCount()
1752
    return self.recv_getBestSellersCount()
1753
 
1754
  def send_getBestSellersCount(self, ):
1755
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1756
    args = getBestSellersCount_args()
1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_getBestSellersCount(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = getBestSellersCount_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
1771
    if result.success is not None:
1772
      return result.success
1773
    if result.cex is not None:
1774
      raise result.cex
1775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1776
 
1777
  def getBestDeals(self, ):
1778
    self.send_getBestDeals()
1779
    return self.recv_getBestDeals()
1780
 
1781
  def send_getBestDeals(self, ):
1782
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1783
    args = getBestDeals_args()
1784
    args.write(self._oprot)
1785
    self._oprot.writeMessageEnd()
1786
    self._oprot.trans.flush()
1787
 
1788
  def recv_getBestDeals(self, ):
1789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1790
    if mtype == TMessageType.EXCEPTION:
1791
      x = TApplicationException()
1792
      x.read(self._iprot)
1793
      self._iprot.readMessageEnd()
1794
      raise x
1795
    result = getBestDeals_result()
1796
    result.read(self._iprot)
1797
    self._iprot.readMessageEnd()
1798
    if result.success is not None:
1799
      return result.success
1800
    if result.isex is not None:
1801
      raise result.isex
1802
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1803
 
1804
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1805
    """
1806
    Parameters:
1807
     - beginIndex
1808
     - totalItems
1809
     - brand
1810
     - category
1811
    """
1812
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1813
    return self.recv_getBestDealsCatalogIds()
1814
 
1815
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1816
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1817
    args = getBestDealsCatalogIds_args()
1818
    args.beginIndex = beginIndex
1819
    args.totalItems = totalItems
1820
    args.brand = brand
1821
    args.category = category
1822
    args.write(self._oprot)
1823
    self._oprot.writeMessageEnd()
1824
    self._oprot.trans.flush()
1825
 
1826
  def recv_getBestDealsCatalogIds(self, ):
1827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1828
    if mtype == TMessageType.EXCEPTION:
1829
      x = TApplicationException()
1830
      x.read(self._iprot)
1831
      self._iprot.readMessageEnd()
1832
      raise x
1833
    result = getBestDealsCatalogIds_result()
1834
    result.read(self._iprot)
1835
    self._iprot.readMessageEnd()
1836
    if result.success is not None:
1837
      return result.success
1838
    if result.cex is not None:
1839
      raise result.cex
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1841
 
1842
  def getBestDealsCount(self, ):
1843
    self.send_getBestDealsCount()
1844
    return self.recv_getBestDealsCount()
1845
 
1846
  def send_getBestDealsCount(self, ):
1847
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1848
    args = getBestDealsCount_args()
1849
    args.write(self._oprot)
1850
    self._oprot.writeMessageEnd()
1851
    self._oprot.trans.flush()
1852
 
1853
  def recv_getBestDealsCount(self, ):
1854
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1855
    if mtype == TMessageType.EXCEPTION:
1856
      x = TApplicationException()
1857
      x.read(self._iprot)
1858
      self._iprot.readMessageEnd()
1859
      raise x
1860
    result = getBestDealsCount_result()
1861
    result.read(self._iprot)
1862
    self._iprot.readMessageEnd()
1863
    if result.success is not None:
1864
      return result.success
1865
    if result.cex is not None:
1866
      raise result.cex
1867
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1868
 
1869
  def getComingSoon(self, ):
1870
    self.send_getComingSoon()
1871
    return self.recv_getComingSoon()
1872
 
1873
  def send_getComingSoon(self, ):
1874
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1875
    args = getComingSoon_args()
1876
    args.write(self._oprot)
1877
    self._oprot.writeMessageEnd()
1878
    self._oprot.trans.flush()
1879
 
1880
  def recv_getComingSoon(self, ):
1881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1882
    if mtype == TMessageType.EXCEPTION:
1883
      x = TApplicationException()
1884
      x.read(self._iprot)
1885
      self._iprot.readMessageEnd()
1886
      raise x
1887
    result = getComingSoon_result()
1888
    result.read(self._iprot)
1889
    self._iprot.readMessageEnd()
1890
    if result.success is not None:
1891
      return result.success
1892
    if result.isex is not None:
1893
      raise result.isex
1894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1895
 
1896
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1897
    """
1898
    Parameters:
1899
     - beginIndex
1900
     - totalItems
1901
     - brand
1902
     - category
1903
    """
1904
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1905
    return self.recv_getComingSoonCatalogIds()
1906
 
1907
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1908
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1909
    args = getComingSoonCatalogIds_args()
1910
    args.beginIndex = beginIndex
1911
    args.totalItems = totalItems
1912
    args.brand = brand
1913
    args.category = category
1914
    args.write(self._oprot)
1915
    self._oprot.writeMessageEnd()
1916
    self._oprot.trans.flush()
1917
 
1918
  def recv_getComingSoonCatalogIds(self, ):
1919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1920
    if mtype == TMessageType.EXCEPTION:
1921
      x = TApplicationException()
1922
      x.read(self._iprot)
1923
      self._iprot.readMessageEnd()
1924
      raise x
1925
    result = getComingSoonCatalogIds_result()
1926
    result.read(self._iprot)
1927
    self._iprot.readMessageEnd()
1928
    if result.success is not None:
1929
      return result.success
1930
    if result.cex is not None:
1931
      raise result.cex
1932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1933
 
1934
  def getComingSoonCount(self, ):
1935
    self.send_getComingSoonCount()
1936
    return self.recv_getComingSoonCount()
1937
 
1938
  def send_getComingSoonCount(self, ):
1939
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1940
    args = getComingSoonCount_args()
1941
    args.write(self._oprot)
1942
    self._oprot.writeMessageEnd()
1943
    self._oprot.trans.flush()
1944
 
1945
  def recv_getComingSoonCount(self, ):
1946
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1947
    if mtype == TMessageType.EXCEPTION:
1948
      x = TApplicationException()
1949
      x.read(self._iprot)
1950
      self._iprot.readMessageEnd()
1951
      raise x
1952
    result = getComingSoonCount_result()
1953
    result.read(self._iprot)
1954
    self._iprot.readMessageEnd()
1955
    if result.success is not None:
1956
      return result.success
1957
    if result.cex is not None:
1958
      raise result.cex
1959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1960
 
1961
  def getLatestArrivals(self, ):
1962
    """
1963
    Returns a list of items sorted in the descending order by start date.
1964
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1965
    """
1966
    self.send_getLatestArrivals()
1967
    return self.recv_getLatestArrivals()
1968
 
1969
  def send_getLatestArrivals(self, ):
1970
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1971
    args = getLatestArrivals_args()
1972
    args.write(self._oprot)
1973
    self._oprot.writeMessageEnd()
1974
    self._oprot.trans.flush()
1975
 
1976
  def recv_getLatestArrivals(self, ):
1977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1978
    if mtype == TMessageType.EXCEPTION:
1979
      x = TApplicationException()
1980
      x.read(self._iprot)
1981
      self._iprot.readMessageEnd()
1982
      raise x
1983
    result = getLatestArrivals_result()
1984
    result.read(self._iprot)
1985
    self._iprot.readMessageEnd()
1986
    if result.success is not None:
1987
      return result.success
1988
    if result.isex is not None:
1989
      raise result.isex
1990
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1991
 
1992
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1993
    """
1994
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1995
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1996
 
1997
    Parameters:
1998
     - beginIndex
1999
     - totalItems
2000
     - brand
2001
     - categories
2002
    """
2003
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2004
    return self.recv_getLatestArrivalsCatalogIds()
2005
 
2006
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2007
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2008
    args = getLatestArrivalsCatalogIds_args()
2009
    args.beginIndex = beginIndex
2010
    args.totalItems = totalItems
2011
    args.brand = brand
2012
    args.categories = categories
2013
    args.write(self._oprot)
2014
    self._oprot.writeMessageEnd()
2015
    self._oprot.trans.flush()
2016
 
2017
  def recv_getLatestArrivalsCatalogIds(self, ):
2018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2019
    if mtype == TMessageType.EXCEPTION:
2020
      x = TApplicationException()
2021
      x.read(self._iprot)
2022
      self._iprot.readMessageEnd()
2023
      raise x
2024
    result = getLatestArrivalsCatalogIds_result()
2025
    result.read(self._iprot)
2026
    self._iprot.readMessageEnd()
2027
    if result.success is not None:
2028
      return result.success
2029
    if result.cex is not None:
2030
      raise result.cex
2031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2032
 
2033
  def getLatestArrivalsCount(self, ):
2034
    """
2035
    Get the total number of latest arrivals we are willing to show.
2036
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2037
    """
2038
    self.send_getLatestArrivalsCount()
2039
    return self.recv_getLatestArrivalsCount()
2040
 
2041
  def send_getLatestArrivalsCount(self, ):
2042
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2043
    args = getLatestArrivalsCount_args()
2044
    args.write(self._oprot)
2045
    self._oprot.writeMessageEnd()
2046
    self._oprot.trans.flush()
2047
 
2048
  def recv_getLatestArrivalsCount(self, ):
2049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2050
    if mtype == TMessageType.EXCEPTION:
2051
      x = TApplicationException()
2052
      x.read(self._iprot)
2053
      self._iprot.readMessageEnd()
2054
      raise x
2055
    result = getLatestArrivalsCount_result()
2056
    result.read(self._iprot)
2057
    self._iprot.readMessageEnd()
2058
    if result.success is not None:
2059
      return result.success
2060
    if result.cex is not None:
2061
      raise result.cex
2062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2063
 
2064
  def generateNewEntityID(self, ):
2065
    self.send_generateNewEntityID()
2066
    return self.recv_generateNewEntityID()
2067
 
2068
  def send_generateNewEntityID(self, ):
2069
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2070
    args = generateNewEntityID_args()
2071
    args.write(self._oprot)
2072
    self._oprot.writeMessageEnd()
2073
    self._oprot.trans.flush()
2074
 
2075
  def recv_generateNewEntityID(self, ):
2076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2077
    if mtype == TMessageType.EXCEPTION:
2078
      x = TApplicationException()
2079
      x.read(self._iprot)
2080
      self._iprot.readMessageEnd()
2081
      raise x
2082
    result = generateNewEntityID_result()
2083
    result.read(self._iprot)
2084
    self._iprot.readMessageEnd()
2085
    if result.success is not None:
2086
      return result.success
2087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2088
 
2089
  def addCategory(self, category):
2090
    """
2091
    All category related functions
2092
 
2093
    Parameters:
2094
     - category
2095
    """
2096
    self.send_addCategory(category)
2097
    return self.recv_addCategory()
2098
 
2099
  def send_addCategory(self, category):
2100
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2101
    args = addCategory_args()
2102
    args.category = category
2103
    args.write(self._oprot)
2104
    self._oprot.writeMessageEnd()
2105
    self._oprot.trans.flush()
2106
 
2107
  def recv_addCategory(self, ):
2108
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2109
    if mtype == TMessageType.EXCEPTION:
2110
      x = TApplicationException()
2111
      x.read(self._iprot)
2112
      self._iprot.readMessageEnd()
2113
      raise x
2114
    result = addCategory_result()
2115
    result.read(self._iprot)
2116
    self._iprot.readMessageEnd()
2117
    if result.success is not None:
2118
      return result.success
2119
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2120
 
2121
  def getCategory(self, id):
2122
    """
2123
    Parameters:
2124
     - id
2125
    """
2126
    self.send_getCategory(id)
2127
    return self.recv_getCategory()
2128
 
2129
  def send_getCategory(self, id):
2130
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2131
    args = getCategory_args()
2132
    args.id = id
2133
    args.write(self._oprot)
2134
    self._oprot.writeMessageEnd()
2135
    self._oprot.trans.flush()
2136
 
2137
  def recv_getCategory(self, ):
2138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2139
    if mtype == TMessageType.EXCEPTION:
2140
      x = TApplicationException()
2141
      x.read(self._iprot)
2142
      self._iprot.readMessageEnd()
2143
      raise x
2144
    result = getCategory_result()
2145
    result.read(self._iprot)
2146
    self._iprot.readMessageEnd()
2147
    if result.success is not None:
2148
      return result.success
2149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2150
 
2151
  def getAllCategories(self, ):
2152
    self.send_getAllCategories()
2153
    return self.recv_getAllCategories()
2154
 
2155
  def send_getAllCategories(self, ):
2156
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2157
    args = getAllCategories_args()
2158
    args.write(self._oprot)
2159
    self._oprot.writeMessageEnd()
2160
    self._oprot.trans.flush()
2161
 
2162
  def recv_getAllCategories(self, ):
2163
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2164
    if mtype == TMessageType.EXCEPTION:
2165
      x = TApplicationException()
2166
      x.read(self._iprot)
2167
      self._iprot.readMessageEnd()
2168
      raise x
2169
    result = getAllCategories_result()
2170
    result.read(self._iprot)
2171
    self._iprot.readMessageEnd()
2172
    if result.success is not None:
2173
      return result.success
2174
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2175
 
2176
  def getAllSimilarItems(self, itemId):
2177
    """
2178
    Returns the list of similar items.
2179
 
2180
    Parameters:
2181
     - itemId
2182
    """
2183
    self.send_getAllSimilarItems(itemId)
2184
    return self.recv_getAllSimilarItems()
2185
 
2186
  def send_getAllSimilarItems(self, itemId):
2187
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2188
    args = getAllSimilarItems_args()
2189
    args.itemId = itemId
2190
    args.write(self._oprot)
2191
    self._oprot.writeMessageEnd()
2192
    self._oprot.trans.flush()
2193
 
2194
  def recv_getAllSimilarItems(self, ):
2195
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2196
    if mtype == TMessageType.EXCEPTION:
2197
      x = TApplicationException()
2198
      x.read(self._iprot)
2199
      self._iprot.readMessageEnd()
2200
      raise x
2201
    result = getAllSimilarItems_result()
2202
    result.read(self._iprot)
2203
    self._iprot.readMessageEnd()
2204
    if result.success is not None:
2205
      return result.success
2206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2207
 
2208
  def addSimilarItem(self, itemId, catalogItemId):
2209
    """
2210
    Adds similar item.
2211
 
2212
    Parameters:
2213
     - itemId
2214
     - catalogItemId
2215
    """
2216
    self.send_addSimilarItem(itemId, catalogItemId)
2217
    return self.recv_addSimilarItem()
2218
 
2219
  def send_addSimilarItem(self, itemId, catalogItemId):
2220
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2221
    args = addSimilarItem_args()
2222
    args.itemId = itemId
2223
    args.catalogItemId = catalogItemId
2224
    args.write(self._oprot)
2225
    self._oprot.writeMessageEnd()
2226
    self._oprot.trans.flush()
2227
 
2228
  def recv_addSimilarItem(self, ):
2229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2230
    if mtype == TMessageType.EXCEPTION:
2231
      x = TApplicationException()
2232
      x.read(self._iprot)
2233
      self._iprot.readMessageEnd()
2234
      raise x
2235
    result = addSimilarItem_result()
2236
    result.read(self._iprot)
2237
    self._iprot.readMessageEnd()
2238
    if result.success is not None:
2239
      return result.success
2240
    if result.cex is not None:
2241
      raise result.cex
2242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2243
 
6512 kshitij.so 2244
  def addTag(self, displayName, itemId):
2245
    """
2246
    Tag Related
2247
 
2248
    Parameters:
2249
     - displayName
2250
     - itemId
2251
    """
2252
    self.send_addTag(displayName, itemId)
2253
    return self.recv_addTag()
2254
 
2255
  def send_addTag(self, displayName, itemId):
2256
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2257
    args = addTag_args()
2258
    args.displayName = displayName
2259
    args.itemId = itemId
2260
    args.write(self._oprot)
2261
    self._oprot.writeMessageEnd()
2262
    self._oprot.trans.flush()
2263
 
2264
  def recv_addTag(self, ):
2265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2266
    if mtype == TMessageType.EXCEPTION:
2267
      x = TApplicationException()
2268
      x.read(self._iprot)
2269
      self._iprot.readMessageEnd()
2270
      raise x
2271
    result = addTag_result()
2272
    result.read(self._iprot)
2273
    self._iprot.readMessageEnd()
2274
    if result.success is not None:
2275
      return result.success
2276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2277
 
2278
  def deleteEntityTag(self, displayName, itemId):
2279
    """
2280
    Parameters:
2281
     - displayName
2282
     - itemId
2283
    """
2284
    self.send_deleteEntityTag(displayName, itemId)
2285
    return self.recv_deleteEntityTag()
2286
 
2287
  def send_deleteEntityTag(self, displayName, itemId):
2288
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2289
    args = deleteEntityTag_args()
2290
    args.displayName = displayName
2291
    args.itemId = itemId
2292
    args.write(self._oprot)
2293
    self._oprot.writeMessageEnd()
2294
    self._oprot.trans.flush()
2295
 
2296
  def recv_deleteEntityTag(self, ):
2297
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2298
    if mtype == TMessageType.EXCEPTION:
2299
      x = TApplicationException()
2300
      x.read(self._iprot)
2301
      self._iprot.readMessageEnd()
2302
      raise x
2303
    result = deleteEntityTag_result()
2304
    result.read(self._iprot)
2305
    self._iprot.readMessageEnd()
2306
    if result.success is not None:
2307
      return result.success
2308
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2309
 
2310
  def deleteTag(self, displayName):
2311
    """
2312
    Parameters:
2313
     - displayName
2314
    """
2315
    self.send_deleteTag(displayName)
2316
    return self.recv_deleteTag()
2317
 
2318
  def send_deleteTag(self, displayName):
2319
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2320
    args = deleteTag_args()
2321
    args.displayName = displayName
2322
    args.write(self._oprot)
2323
    self._oprot.writeMessageEnd()
2324
    self._oprot.trans.flush()
2325
 
2326
  def recv_deleteTag(self, ):
2327
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2328
    if mtype == TMessageType.EXCEPTION:
2329
      x = TApplicationException()
2330
      x.read(self._iprot)
2331
      self._iprot.readMessageEnd()
2332
      raise x
2333
    result = deleteTag_result()
2334
    result.read(self._iprot)
2335
    self._iprot.readMessageEnd()
2336
    if result.success is not None:
2337
      return result.success
2338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2339
 
2340
  def getAllTags(self, ):
2341
    self.send_getAllTags()
2342
    return self.recv_getAllTags()
2343
 
2344
  def send_getAllTags(self, ):
2345
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2346
    args = getAllTags_args()
2347
    args.write(self._oprot)
2348
    self._oprot.writeMessageEnd()
2349
    self._oprot.trans.flush()
2350
 
2351
  def recv_getAllTags(self, ):
2352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2353
    if mtype == TMessageType.EXCEPTION:
2354
      x = TApplicationException()
2355
      x.read(self._iprot)
2356
      self._iprot.readMessageEnd()
2357
      raise x
2358
    result = getAllTags_result()
2359
    result.read(self._iprot)
2360
    self._iprot.readMessageEnd()
2361
    if result.success is not None:
2362
      return result.success
2363
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2364
 
2365
  def getAllEntitiesByTagName(self, displayName):
2366
    """
2367
    Parameters:
2368
     - displayName
2369
    """
2370
    self.send_getAllEntitiesByTagName(displayName)
2371
    return self.recv_getAllEntitiesByTagName()
2372
 
2373
  def send_getAllEntitiesByTagName(self, displayName):
2374
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2375
    args = getAllEntitiesByTagName_args()
2376
    args.displayName = displayName
2377
    args.write(self._oprot)
2378
    self._oprot.writeMessageEnd()
2379
    self._oprot.trans.flush()
2380
 
2381
  def recv_getAllEntitiesByTagName(self, ):
2382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2383
    if mtype == TMessageType.EXCEPTION:
2384
      x = TApplicationException()
2385
      x.read(self._iprot)
2386
      self._iprot.readMessageEnd()
2387
      raise x
2388
    result = getAllEntitiesByTagName_result()
2389
    result.read(self._iprot)
2390
    self._iprot.readMessageEnd()
2391
    if result.success is not None:
2392
      return result.success
2393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2394
 
6845 amit.gupta 2395
  def getAllEntityTags(self, ):
2396
    self.send_getAllEntityTags()
2397
    return self.recv_getAllEntityTags()
2398
 
2399
  def send_getAllEntityTags(self, ):
2400
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2401
    args = getAllEntityTags_args()
2402
    args.write(self._oprot)
2403
    self._oprot.writeMessageEnd()
2404
    self._oprot.trans.flush()
2405
 
2406
  def recv_getAllEntityTags(self, ):
2407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2408
    if mtype == TMessageType.EXCEPTION:
2409
      x = TApplicationException()
2410
      x.read(self._iprot)
2411
      self._iprot.readMessageEnd()
2412
      raise x
2413
    result = getAllEntityTags_result()
2414
    result.read(self._iprot)
2415
    self._iprot.readMessageEnd()
2416
    if result.success is not None:
2417
      return result.success
2418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2419
 
8590 kshitij.so 2420
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2421
    """
8579 kshitij.so 2422
    Banner Related
2423
 
6850 kshitij.so 2424
    Parameters:
8590 kshitij.so 2425
     - bannerCongregate
6850 kshitij.so 2426
    """
8590 kshitij.so 2427
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2428
    return self.recv_addBanner()
6850 kshitij.so 2429
 
8590 kshitij.so 2430
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2431
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2432
    args = addBanner_args()
8590 kshitij.so 2433
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2434
    args.write(self._oprot)
2435
    self._oprot.writeMessageEnd()
2436
    self._oprot.trans.flush()
2437
 
2438
  def recv_addBanner(self, ):
2439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2440
    if mtype == TMessageType.EXCEPTION:
2441
      x = TApplicationException()
2442
      x.read(self._iprot)
2443
      self._iprot.readMessageEnd()
2444
      raise x
2445
    result = addBanner_result()
2446
    result.read(self._iprot)
2447
    self._iprot.readMessageEnd()
10097 kshitij.so 2448
    if result.success is not None:
2449
      return result.success
2450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2451
 
8579 kshitij.so 2452
  def updateBanner(self, banner):
2453
    """
2454
    Parameters:
2455
     - banner
2456
    """
2457
    self.send_updateBanner(banner)
2458
    return self.recv_updateBanner()
2459
 
2460
  def send_updateBanner(self, banner):
2461
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2462
    args = updateBanner_args()
2463
    args.banner = banner
2464
    args.write(self._oprot)
2465
    self._oprot.writeMessageEnd()
2466
    self._oprot.trans.flush()
2467
 
2468
  def recv_updateBanner(self, ):
2469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2470
    if mtype == TMessageType.EXCEPTION:
2471
      x = TApplicationException()
2472
      x.read(self._iprot)
2473
      self._iprot.readMessageEnd()
2474
      raise x
2475
    result = updateBanner_result()
2476
    result.read(self._iprot)
2477
    self._iprot.readMessageEnd()
2478
    if result.success is not None:
2479
      return result.success
2480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2481
 
6850 kshitij.so 2482
  def getAllBanners(self, ):
2483
    self.send_getAllBanners()
2484
    return self.recv_getAllBanners()
2485
 
2486
  def send_getAllBanners(self, ):
2487
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2488
    args = getAllBanners_args()
2489
    args.write(self._oprot)
2490
    self._oprot.writeMessageEnd()
2491
    self._oprot.trans.flush()
2492
 
2493
  def recv_getAllBanners(self, ):
2494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2495
    if mtype == TMessageType.EXCEPTION:
2496
      x = TApplicationException()
2497
      x.read(self._iprot)
2498
      self._iprot.readMessageEnd()
2499
      raise x
2500
    result = getAllBanners_result()
2501
    result.read(self._iprot)
2502
    self._iprot.readMessageEnd()
2503
    if result.success is not None:
2504
      return result.success
2505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2506
 
9155 kshitij.so 2507
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2508
    """
2509
    Parameters:
2510
     - bannerName
9155 kshitij.so 2511
     - bannerType
6850 kshitij.so 2512
    """
9155 kshitij.so 2513
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2514
    return self.recv_deleteBanner()
2515
 
9155 kshitij.so 2516
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2517
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2518
    args = deleteBanner_args()
2519
    args.bannerName = bannerName
9155 kshitij.so 2520
    args.bannerType = bannerType
6850 kshitij.so 2521
    args.write(self._oprot)
2522
    self._oprot.writeMessageEnd()
2523
    self._oprot.trans.flush()
2524
 
2525
  def recv_deleteBanner(self, ):
2526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2527
    if mtype == TMessageType.EXCEPTION:
2528
      x = TApplicationException()
2529
      x.read(self._iprot)
2530
      self._iprot.readMessageEnd()
2531
      raise x
2532
    result = deleteBanner_result()
2533
    result.read(self._iprot)
2534
    self._iprot.readMessageEnd()
2535
    if result.success is not None:
2536
      return result.success
2537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2538
 
9155 kshitij.so 2539
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2540
    """
2541
    Parameters:
2542
     - bannerName
9155 kshitij.so 2543
     - bannerType
6850 kshitij.so 2544
    """
9155 kshitij.so 2545
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2546
    return self.recv_getBannerDetails()
2547
 
9155 kshitij.so 2548
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2549
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2550
    args = getBannerDetails_args()
2551
    args.bannerName = bannerName
9155 kshitij.so 2552
    args.bannerType = bannerType
6850 kshitij.so 2553
    args.write(self._oprot)
2554
    self._oprot.writeMessageEnd()
2555
    self._oprot.trans.flush()
2556
 
2557
  def recv_getBannerDetails(self, ):
2558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2559
    if mtype == TMessageType.EXCEPTION:
2560
      x = TApplicationException()
2561
      x.read(self._iprot)
2562
      self._iprot.readMessageEnd()
2563
      raise x
2564
    result = getBannerDetails_result()
2565
    result.read(self._iprot)
2566
    self._iprot.readMessageEnd()
2567
    if result.success is not None:
2568
      return result.success
2569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2570
 
2571
  def getActiveBanners(self, ):
2572
    self.send_getActiveBanners()
2573
    return self.recv_getActiveBanners()
2574
 
2575
  def send_getActiveBanners(self, ):
2576
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2577
    args = getActiveBanners_args()
2578
    args.write(self._oprot)
2579
    self._oprot.writeMessageEnd()
2580
    self._oprot.trans.flush()
2581
 
2582
  def recv_getActiveBanners(self, ):
2583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2584
    if mtype == TMessageType.EXCEPTION:
2585
      x = TApplicationException()
2586
      x.read(self._iprot)
2587
      self._iprot.readMessageEnd()
2588
      raise x
2589
    result = getActiveBanners_result()
2590
    result.read(self._iprot)
2591
    self._iprot.readMessageEnd()
2592
    if result.success is not None:
2593
      return result.success
2594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2595
 
8579 kshitij.so 2596
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2597
    """
2598
    Parameters:
8579 kshitij.so 2599
     - bannerMaps
6849 kshitij.so 2600
    """
8579 kshitij.so 2601
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2602
    return self.recv_addBannerMap()
2603
 
8579 kshitij.so 2604
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2605
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2606
    args = addBannerMap_args()
8579 kshitij.so 2607
    args.bannerMaps = bannerMaps
6849 kshitij.so 2608
    args.write(self._oprot)
2609
    self._oprot.writeMessageEnd()
2610
    self._oprot.trans.flush()
2611
 
2612
  def recv_addBannerMap(self, ):
2613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2614
    if mtype == TMessageType.EXCEPTION:
2615
      x = TApplicationException()
2616
      x.read(self._iprot)
2617
      self._iprot.readMessageEnd()
2618
      raise x
2619
    result = addBannerMap_result()
2620
    result.read(self._iprot)
2621
    self._iprot.readMessageEnd()
2622
    if result.success is not None:
2623
      return result.success
2624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2625
 
8579 kshitij.so 2626
  def updateBannerMap(self, bannerMap):
2627
    """
2628
    Parameters:
2629
     - bannerMap
2630
    """
2631
    self.send_updateBannerMap(bannerMap)
2632
    return self.recv_updateBannerMap()
2633
 
2634
  def send_updateBannerMap(self, bannerMap):
2635
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2636
    args = updateBannerMap_args()
2637
    args.bannerMap = bannerMap
2638
    args.write(self._oprot)
2639
    self._oprot.writeMessageEnd()
2640
    self._oprot.trans.flush()
2641
 
2642
  def recv_updateBannerMap(self, ):
2643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2644
    if mtype == TMessageType.EXCEPTION:
2645
      x = TApplicationException()
2646
      x.read(self._iprot)
2647
      self._iprot.readMessageEnd()
2648
      raise x
2649
    result = updateBannerMap_result()
2650
    result.read(self._iprot)
2651
    self._iprot.readMessageEnd()
2652
    if result.success is not None:
2653
      return result.success
2654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2655
 
6849 kshitij.so 2656
  def deleteBannerMap(self, bannerName):
2657
    """
2658
    Parameters:
2659
     - bannerName
2660
    """
2661
    self.send_deleteBannerMap(bannerName)
2662
    return self.recv_deleteBannerMap()
2663
 
2664
  def send_deleteBannerMap(self, bannerName):
2665
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2666
    args = deleteBannerMap_args()
2667
    args.bannerName = bannerName
2668
    args.write(self._oprot)
2669
    self._oprot.writeMessageEnd()
2670
    self._oprot.trans.flush()
2671
 
2672
  def recv_deleteBannerMap(self, ):
2673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2674
    if mtype == TMessageType.EXCEPTION:
2675
      x = TApplicationException()
2676
      x.read(self._iprot)
2677
      self._iprot.readMessageEnd()
2678
      raise x
2679
    result = deleteBannerMap_result()
2680
    result.read(self._iprot)
2681
    self._iprot.readMessageEnd()
2682
    if result.success is not None:
2683
      return result.success
2684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2685
 
9155 kshitij.so 2686
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2687
    """
2688
    Parameters:
2689
     - bannerName
9155 kshitij.so 2690
     - bannerType
6849 kshitij.so 2691
    """
9155 kshitij.so 2692
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2693
    return self.recv_getBannerMapDetails()
2694
 
9155 kshitij.so 2695
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2696
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2697
    args = getBannerMapDetails_args()
2698
    args.bannerName = bannerName
9155 kshitij.so 2699
    args.bannerType = bannerType
6849 kshitij.so 2700
    args.write(self._oprot)
2701
    self._oprot.writeMessageEnd()
2702
    self._oprot.trans.flush()
2703
 
2704
  def recv_getBannerMapDetails(self, ):
2705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2706
    if mtype == TMessageType.EXCEPTION:
2707
      x = TApplicationException()
2708
      x.read(self._iprot)
2709
      self._iprot.readMessageEnd()
2710
      raise x
2711
    result = getBannerMapDetails_result()
2712
    result.read(self._iprot)
2713
    self._iprot.readMessageEnd()
2714
    if result.success is not None:
2715
      return result.success
2716
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2717
 
8579 kshitij.so 2718
  def addBannerUri(self, bannerUriMappings):
2719
    """
2720
    Parameters:
2721
     - bannerUriMappings
2722
    """
2723
    self.send_addBannerUri(bannerUriMappings)
2724
    self.recv_addBannerUri()
2725
 
2726
  def send_addBannerUri(self, bannerUriMappings):
2727
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2728
    args = addBannerUri_args()
2729
    args.bannerUriMappings = bannerUriMappings
2730
    args.write(self._oprot)
2731
    self._oprot.writeMessageEnd()
2732
    self._oprot.trans.flush()
2733
 
2734
  def recv_addBannerUri(self, ):
2735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2736
    if mtype == TMessageType.EXCEPTION:
2737
      x = TApplicationException()
2738
      x.read(self._iprot)
2739
      self._iprot.readMessageEnd()
2740
      raise x
2741
    result = addBannerUri_result()
2742
    result.read(self._iprot)
2743
    self._iprot.readMessageEnd()
2744
    return
2745
 
9155 kshitij.so 2746
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2747
    """
2748
    Parameters:
2749
     - bannerName
9155 kshitij.so 2750
     - bannerType
8579 kshitij.so 2751
    """
9155 kshitij.so 2752
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2753
    return self.recv_getUriMapping()
2754
 
9155 kshitij.so 2755
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2756
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2757
    args = getUriMapping_args()
2758
    args.bannerName = bannerName
9155 kshitij.so 2759
    args.bannerType = bannerType
8579 kshitij.so 2760
    args.write(self._oprot)
2761
    self._oprot.writeMessageEnd()
2762
    self._oprot.trans.flush()
2763
 
2764
  def recv_getUriMapping(self, ):
2765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2766
    if mtype == TMessageType.EXCEPTION:
2767
      x = TApplicationException()
2768
      x.read(self._iprot)
2769
      self._iprot.readMessageEnd()
2770
      raise x
2771
    result = getUriMapping_result()
2772
    result.read(self._iprot)
2773
    self._iprot.readMessageEnd()
2774
    if result.success is not None:
2775
      return result.success
2776
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2777
 
2778
  def addCampaign(self, campaign):
2779
    """
2780
    Parameters:
2781
     - campaign
2782
    """
2783
    self.send_addCampaign(campaign)
2784
    self.recv_addCampaign()
2785
 
2786
  def send_addCampaign(self, campaign):
2787
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2788
    args = addCampaign_args()
2789
    args.campaign = campaign
2790
    args.write(self._oprot)
2791
    self._oprot.writeMessageEnd()
2792
    self._oprot.trans.flush()
2793
 
2794
  def recv_addCampaign(self, ):
2795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2796
    if mtype == TMessageType.EXCEPTION:
2797
      x = TApplicationException()
2798
      x.read(self._iprot)
2799
      self._iprot.readMessageEnd()
2800
      raise x
2801
    result = addCampaign_result()
2802
    result.read(self._iprot)
2803
    self._iprot.readMessageEnd()
2804
    return
2805
 
2806
  def getCampaigns(self, campaignName):
2807
    """
2808
    Parameters:
2809
     - campaignName
2810
    """
2811
    self.send_getCampaigns(campaignName)
2812
    return self.recv_getCampaigns()
2813
 
2814
  def send_getCampaigns(self, campaignName):
2815
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
2816
    args = getCampaigns_args()
2817
    args.campaignName = campaignName
2818
    args.write(self._oprot)
2819
    self._oprot.writeMessageEnd()
2820
    self._oprot.trans.flush()
2821
 
2822
  def recv_getCampaigns(self, ):
2823
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2824
    if mtype == TMessageType.EXCEPTION:
2825
      x = TApplicationException()
2826
      x.read(self._iprot)
2827
      self._iprot.readMessageEnd()
2828
      raise x
2829
    result = getCampaigns_result()
2830
    result.read(self._iprot)
2831
    self._iprot.readMessageEnd()
2832
    if result.success is not None:
2833
      return result.success
2834
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
2835
 
2836
  def deleteCampaign(self, campaignId):
2837
    """
2838
    Parameters:
2839
     - campaignId
2840
    """
2841
    self.send_deleteCampaign(campaignId)
2842
    self.recv_deleteCampaign()
2843
 
2844
  def send_deleteCampaign(self, campaignId):
2845
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
2846
    args = deleteCampaign_args()
2847
    args.campaignId = campaignId
2848
    args.write(self._oprot)
2849
    self._oprot.writeMessageEnd()
2850
    self._oprot.trans.flush()
2851
 
2852
  def recv_deleteCampaign(self, ):
2853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2854
    if mtype == TMessageType.EXCEPTION:
2855
      x = TApplicationException()
2856
      x.read(self._iprot)
2857
      self._iprot.readMessageEnd()
2858
      raise x
2859
    result = deleteCampaign_result()
2860
    result.read(self._iprot)
2861
    self._iprot.readMessageEnd()
2862
    return
2863
 
2864
  def getAllCampaigns(self, ):
2865
    self.send_getAllCampaigns()
2866
    return self.recv_getAllCampaigns()
2867
 
2868
  def send_getAllCampaigns(self, ):
2869
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
2870
    args = getAllCampaigns_args()
2871
    args.write(self._oprot)
2872
    self._oprot.writeMessageEnd()
2873
    self._oprot.trans.flush()
2874
 
2875
  def recv_getAllCampaigns(self, ):
2876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2877
    if mtype == TMessageType.EXCEPTION:
2878
      x = TApplicationException()
2879
      x.read(self._iprot)
2880
      self._iprot.readMessageEnd()
2881
      raise x
2882
    result = getAllCampaigns_result()
2883
    result.read(self._iprot)
2884
    self._iprot.readMessageEnd()
2885
    if result.success is not None:
2886
      return result.success
2887
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
2888
 
9155 kshitij.so 2889
  def getActiveBannersForMobileSite(self, ):
2890
    self.send_getActiveBannersForMobileSite()
2891
    return self.recv_getActiveBannersForMobileSite()
2892
 
2893
  def send_getActiveBannersForMobileSite(self, ):
2894
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
2895
    args = getActiveBannersForMobileSite_args()
2896
    args.write(self._oprot)
2897
    self._oprot.writeMessageEnd()
2898
    self._oprot.trans.flush()
2899
 
2900
  def recv_getActiveBannersForMobileSite(self, ):
2901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2902
    if mtype == TMessageType.EXCEPTION:
2903
      x = TApplicationException()
2904
      x.read(self._iprot)
2905
      self._iprot.readMessageEnd()
2906
      raise x
2907
    result = getActiveBannersForMobileSite_result()
2908
    result.read(self._iprot)
2909
    self._iprot.readMessageEnd()
2910
    if result.success is not None:
2911
      return result.success
2912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
2913
 
5944 mandeep.dh 2914
  def deleteSimilarItem(self, itemId, catalogItemId):
2915
    """
2916
    Delete similar item.
2917
 
2918
    Parameters:
2919
     - itemId
2920
     - catalogItemId
2921
    """
2922
    self.send_deleteSimilarItem(itemId, catalogItemId)
2923
    return self.recv_deleteSimilarItem()
2924
 
2925
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2926
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2927
    args = deleteSimilarItem_args()
2928
    args.itemId = itemId
2929
    args.catalogItemId = catalogItemId
2930
    args.write(self._oprot)
2931
    self._oprot.writeMessageEnd()
2932
    self._oprot.trans.flush()
2933
 
2934
  def recv_deleteSimilarItem(self, ):
2935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2936
    if mtype == TMessageType.EXCEPTION:
2937
      x = TApplicationException()
2938
      x.read(self._iprot)
2939
      self._iprot.readMessageEnd()
2940
      raise x
2941
    result = deleteSimilarItem_result()
2942
    result.read(self._iprot)
2943
    self._iprot.readMessageEnd()
2944
    if result.success is not None:
2945
      return result.success
2946
    if result.cex is not None:
2947
      raise result.cex
2948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2949
 
2950
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2951
    """
2952
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2953
    If yes, returns the itemId else returns 0
2954
 
2955
    Parameters:
2956
     - brand
2957
     - modelNumber
2958
     - modelName
2959
     - color
2960
    """
2961
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2962
    return self.recv_checkSimilarItem()
2963
 
2964
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2965
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2966
    args = checkSimilarItem_args()
2967
    args.brand = brand
2968
    args.modelNumber = modelNumber
2969
    args.modelName = modelName
2970
    args.color = color
2971
    args.write(self._oprot)
2972
    self._oprot.writeMessageEnd()
2973
    self._oprot.trans.flush()
2974
 
2975
  def recv_checkSimilarItem(self, ):
2976
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2977
    if mtype == TMessageType.EXCEPTION:
2978
      x = TApplicationException()
2979
      x.read(self._iprot)
2980
      self._iprot.readMessageEnd()
2981
      raise x
2982
    result = checkSimilarItem_result()
2983
    result.read(self._iprot)
2984
    self._iprot.readMessageEnd()
2985
    if result.success is not None:
2986
      return result.success
2987
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2988
 
2989
  def validateRiskyStatus(self, itemId):
2990
    """
2991
    Check wether item is risky and change status if inventory is not available for risky items
2992
 
2993
    Parameters:
2994
     - itemId
2995
    """
2996
    self.send_validateRiskyStatus(itemId)
2997
    self.recv_validateRiskyStatus()
2998
 
2999
  def send_validateRiskyStatus(self, itemId):
3000
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3001
    args = validateRiskyStatus_args()
3002
    args.itemId = itemId
3003
    args.write(self._oprot)
3004
    self._oprot.writeMessageEnd()
3005
    self._oprot.trans.flush()
3006
 
3007
  def recv_validateRiskyStatus(self, ):
3008
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3009
    if mtype == TMessageType.EXCEPTION:
3010
      x = TApplicationException()
3011
      x.read(self._iprot)
3012
      self._iprot.readMessageEnd()
3013
      raise x
3014
    result = validateRiskyStatus_result()
3015
    result.read(self._iprot)
3016
    self._iprot.readMessageEnd()
3017
    return
3018
 
3019
  def changeItemRiskyFlag(self, itemId, risky):
3020
    """
3021
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3022
 
3023
    Parameters:
3024
     - itemId
3025
     - risky
3026
    """
3027
    self.send_changeItemRiskyFlag(itemId, risky)
3028
    self.recv_changeItemRiskyFlag()
3029
 
3030
  def send_changeItemRiskyFlag(self, itemId, risky):
3031
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3032
    args = changeItemRiskyFlag_args()
3033
    args.itemId = itemId
3034
    args.risky = risky
3035
    args.write(self._oprot)
3036
    self._oprot.writeMessageEnd()
3037
    self._oprot.trans.flush()
3038
 
3039
  def recv_changeItemRiskyFlag(self, ):
3040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3041
    if mtype == TMessageType.EXCEPTION:
3042
      x = TApplicationException()
3043
      x.read(self._iprot)
3044
      self._iprot.readMessageEnd()
3045
      raise x
3046
    result = changeItemRiskyFlag_result()
3047
    result.read(self._iprot)
3048
    self._iprot.readMessageEnd()
3049
    return
3050
 
3051
  def getItemsByRiskyFlag(self, ):
3052
    """
3053
    Returns list of items marked as risky.
3054
    """
3055
    self.send_getItemsByRiskyFlag()
3056
    return self.recv_getItemsByRiskyFlag()
3057
 
3058
  def send_getItemsByRiskyFlag(self, ):
3059
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3060
    args = getItemsByRiskyFlag_args()
3061
    args.write(self._oprot)
3062
    self._oprot.writeMessageEnd()
3063
    self._oprot.trans.flush()
3064
 
3065
  def recv_getItemsByRiskyFlag(self, ):
3066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3067
    if mtype == TMessageType.EXCEPTION:
3068
      x = TApplicationException()
3069
      x.read(self._iprot)
3070
      self._iprot.readMessageEnd()
3071
      raise x
3072
    result = getItemsByRiskyFlag_result()
3073
    result.read(self._iprot)
3074
    self._iprot.readMessageEnd()
3075
    if result.success is not None:
3076
      return result.success
3077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3078
 
3079
  def getItemsForMasterSheet(self, category, brand):
3080
    """
3081
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3082
 
3083
    Parameters:
3084
     - category
3085
     - brand
3086
    """
3087
    self.send_getItemsForMasterSheet(category, brand)
3088
    return self.recv_getItemsForMasterSheet()
3089
 
3090
  def send_getItemsForMasterSheet(self, category, brand):
3091
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3092
    args = getItemsForMasterSheet_args()
3093
    args.category = category
3094
    args.brand = brand
3095
    args.write(self._oprot)
3096
    self._oprot.writeMessageEnd()
3097
    self._oprot.trans.flush()
3098
 
3099
  def recv_getItemsForMasterSheet(self, ):
3100
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3101
    if mtype == TMessageType.EXCEPTION:
3102
      x = TApplicationException()
3103
      x.read(self._iprot)
3104
      self._iprot.readMessageEnd()
3105
      raise x
3106
    result = getItemsForMasterSheet_result()
3107
    result.read(self._iprot)
3108
    self._iprot.readMessageEnd()
3109
    if result.success is not None:
3110
      return result.success
3111
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3112
 
3113
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3114
    """
3115
    Returns list of catalog ids of items with same similarity index as of the given itemId
3116
 
3117
    Parameters:
3118
     - beginIndex
3119
     - totalItems
3120
     - itemId
3121
    """
3122
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3123
    return self.recv_getSimilarItemsCatalogIds()
3124
 
3125
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3126
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3127
    args = getSimilarItemsCatalogIds_args()
3128
    args.beginIndex = beginIndex
3129
    args.totalItems = totalItems
3130
    args.itemId = itemId
3131
    args.write(self._oprot)
3132
    self._oprot.writeMessageEnd()
3133
    self._oprot.trans.flush()
3134
 
3135
  def recv_getSimilarItemsCatalogIds(self, ):
3136
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3137
    if mtype == TMessageType.EXCEPTION:
3138
      x = TApplicationException()
3139
      x.read(self._iprot)
3140
      self._iprot.readMessageEnd()
3141
      raise x
3142
    result = getSimilarItemsCatalogIds_result()
3143
    result.read(self._iprot)
3144
    self._iprot.readMessageEnd()
3145
    if result.success is not None:
3146
      return result.success
3147
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3148
 
3149
  def addProductNotification(self, itemId, email):
3150
    """
3151
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3152
 
3153
    Parameters:
3154
     - itemId
3155
     - email
3156
    """
3157
    self.send_addProductNotification(itemId, email)
3158
    return self.recv_addProductNotification()
3159
 
3160
  def send_addProductNotification(self, itemId, email):
3161
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3162
    args = addProductNotification_args()
3163
    args.itemId = itemId
3164
    args.email = email
3165
    args.write(self._oprot)
3166
    self._oprot.writeMessageEnd()
3167
    self._oprot.trans.flush()
3168
 
3169
  def recv_addProductNotification(self, ):
3170
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3171
    if mtype == TMessageType.EXCEPTION:
3172
      x = TApplicationException()
3173
      x.read(self._iprot)
3174
      self._iprot.readMessageEnd()
3175
      raise x
3176
    result = addProductNotification_result()
3177
    result.read(self._iprot)
3178
    self._iprot.readMessageEnd()
3179
    if result.success is not None:
3180
      return result.success
3181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3182
 
3183
  def sendProductNotifications(self, ):
3184
    """
3185
    Send the product notifications to the users for items which has stock.
3186
    """
3187
    self.send_sendProductNotifications()
3188
    return self.recv_sendProductNotifications()
3189
 
3190
  def send_sendProductNotifications(self, ):
3191
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3192
    args = sendProductNotifications_args()
3193
    args.write(self._oprot)
3194
    self._oprot.writeMessageEnd()
3195
    self._oprot.trans.flush()
3196
 
3197
  def recv_sendProductNotifications(self, ):
3198
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3199
    if mtype == TMessageType.EXCEPTION:
3200
      x = TApplicationException()
3201
      x.read(self._iprot)
3202
      self._iprot.readMessageEnd()
3203
      raise x
3204
    result = sendProductNotifications_result()
3205
    result.read(self._iprot)
3206
    self._iprot.readMessageEnd()
3207
    if result.success is not None:
3208
      return result.success
3209
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3210
 
3211
  def getAllBrandsByCategory(self, categoryId):
3212
    """
3213
    Returns list of brand names for a given category Id
3214
 
3215
    Parameters:
3216
     - categoryId
3217
    """
3218
    self.send_getAllBrandsByCategory(categoryId)
3219
    return self.recv_getAllBrandsByCategory()
3220
 
3221
  def send_getAllBrandsByCategory(self, categoryId):
3222
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3223
    args = getAllBrandsByCategory_args()
3224
    args.categoryId = categoryId
3225
    args.write(self._oprot)
3226
    self._oprot.writeMessageEnd()
3227
    self._oprot.trans.flush()
3228
 
3229
  def recv_getAllBrandsByCategory(self, ):
3230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3231
    if mtype == TMessageType.EXCEPTION:
3232
      x = TApplicationException()
3233
      x.read(self._iprot)
3234
      self._iprot.readMessageEnd()
3235
      raise x
3236
    result = getAllBrandsByCategory_result()
3237
    result.read(self._iprot)
3238
    self._iprot.readMessageEnd()
3239
    if result.success is not None:
3240
      return result.success
3241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3242
 
3243
  def getAllBrands(self, ):
3244
    """
3245
    Returns list of brand names
3246
    """
3247
    self.send_getAllBrands()
3248
    return self.recv_getAllBrands()
3249
 
3250
  def send_getAllBrands(self, ):
3251
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3252
    args = getAllBrands_args()
3253
    args.write(self._oprot)
3254
    self._oprot.writeMessageEnd()
3255
    self._oprot.trans.flush()
3256
 
3257
  def recv_getAllBrands(self, ):
3258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3259
    if mtype == TMessageType.EXCEPTION:
3260
      x = TApplicationException()
3261
      x.read(self._iprot)
3262
      self._iprot.readMessageEnd()
3263
      raise x
3264
    result = getAllBrands_result()
3265
    result.read(self._iprot)
3266
    self._iprot.readMessageEnd()
3267
    if result.success is not None:
3268
      return result.success
3269
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3270
 
3271
  def getAllSources(self, ):
3272
    """
3273
    Return list of all sources
3274
    """
3275
    self.send_getAllSources()
3276
    return self.recv_getAllSources()
3277
 
3278
  def send_getAllSources(self, ):
3279
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3280
    args = getAllSources_args()
3281
    args.write(self._oprot)
3282
    self._oprot.writeMessageEnd()
3283
    self._oprot.trans.flush()
3284
 
3285
  def recv_getAllSources(self, ):
3286
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3287
    if mtype == TMessageType.EXCEPTION:
3288
      x = TApplicationException()
3289
      x.read(self._iprot)
3290
      self._iprot.readMessageEnd()
3291
      raise x
3292
    result = getAllSources_result()
3293
    result.read(self._iprot)
3294
    self._iprot.readMessageEnd()
3295
    if result.success is not None:
3296
      return result.success
3297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3298
 
3299
  def getItemPricingBySource(self, itemId, sourceId):
3300
    """
3301
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3302
 
3303
    Parameters:
3304
     - itemId
3305
     - sourceId
3306
    """
3307
    self.send_getItemPricingBySource(itemId, sourceId)
3308
    return self.recv_getItemPricingBySource()
3309
 
3310
  def send_getItemPricingBySource(self, itemId, sourceId):
3311
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3312
    args = getItemPricingBySource_args()
3313
    args.itemId = itemId
3314
    args.sourceId = sourceId
3315
    args.write(self._oprot)
3316
    self._oprot.writeMessageEnd()
3317
    self._oprot.trans.flush()
3318
 
3319
  def recv_getItemPricingBySource(self, ):
3320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3321
    if mtype == TMessageType.EXCEPTION:
3322
      x = TApplicationException()
3323
      x.read(self._iprot)
3324
      self._iprot.readMessageEnd()
3325
      raise x
3326
    result = getItemPricingBySource_result()
3327
    result.read(self._iprot)
3328
    self._iprot.readMessageEnd()
3329
    if result.success is not None:
3330
      return result.success
3331
    if result.cex is not None:
3332
      raise result.cex
3333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3334
 
3335
  def addSourceItemPricing(self, sourceItemPricing):
3336
    """
3337
    Adds prices to be displayed corresponding to the item if user comes from a source.
3338
    If item is not found or source is not found, it will throw exception.
3339
 
3340
    Parameters:
3341
     - sourceItemPricing
3342
    """
3343
    self.send_addSourceItemPricing(sourceItemPricing)
3344
    self.recv_addSourceItemPricing()
3345
 
3346
  def send_addSourceItemPricing(self, sourceItemPricing):
3347
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3348
    args = addSourceItemPricing_args()
3349
    args.sourceItemPricing = sourceItemPricing
3350
    args.write(self._oprot)
3351
    self._oprot.writeMessageEnd()
3352
    self._oprot.trans.flush()
3353
 
3354
  def recv_addSourceItemPricing(self, ):
3355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3356
    if mtype == TMessageType.EXCEPTION:
3357
      x = TApplicationException()
3358
      x.read(self._iprot)
3359
      self._iprot.readMessageEnd()
3360
      raise x
3361
    result = addSourceItemPricing_result()
3362
    result.read(self._iprot)
3363
    self._iprot.readMessageEnd()
3364
    if result.cex is not None:
3365
      raise result.cex
3366
    return
3367
 
3368
  def getAllSourcePricing(self, itemId):
3369
    """
3370
    Returns the list of source pricing information of an item.
3371
    Raises an exception if item not found corresponding to itemId
3372
 
3373
    Parameters:
3374
     - itemId
3375
    """
3376
    self.send_getAllSourcePricing(itemId)
3377
    return self.recv_getAllSourcePricing()
3378
 
3379
  def send_getAllSourcePricing(self, itemId):
3380
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3381
    args = getAllSourcePricing_args()
3382
    args.itemId = itemId
3383
    args.write(self._oprot)
3384
    self._oprot.writeMessageEnd()
3385
    self._oprot.trans.flush()
3386
 
3387
  def recv_getAllSourcePricing(self, ):
3388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3389
    if mtype == TMessageType.EXCEPTION:
3390
      x = TApplicationException()
3391
      x.read(self._iprot)
3392
      self._iprot.readMessageEnd()
3393
      raise x
3394
    result = getAllSourcePricing_result()
3395
    result.read(self._iprot)
3396
    self._iprot.readMessageEnd()
3397
    if result.success is not None:
3398
      return result.success
3399
    if result.cex is not None:
3400
      raise result.cex
3401
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3402
 
3403
  def getItemForSource(self, item_id, sourceId):
3404
    """
3405
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3406
 
3407
    Parameters:
3408
     - item_id
3409
     - sourceId
3410
    """
3411
    self.send_getItemForSource(item_id, sourceId)
3412
    return self.recv_getItemForSource()
3413
 
3414
  def send_getItemForSource(self, item_id, sourceId):
3415
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3416
    args = getItemForSource_args()
3417
    args.item_id = item_id
3418
    args.sourceId = sourceId
3419
    args.write(self._oprot)
3420
    self._oprot.writeMessageEnd()
3421
    self._oprot.trans.flush()
3422
 
3423
  def recv_getItemForSource(self, ):
3424
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3425
    if mtype == TMessageType.EXCEPTION:
3426
      x = TApplicationException()
3427
      x.read(self._iprot)
3428
      self._iprot.readMessageEnd()
3429
      raise x
3430
    result = getItemForSource_result()
3431
    result.read(self._iprot)
3432
    self._iprot.readMessageEnd()
3433
    if result.success is not None:
3434
      return result.success
3435
    if result.cex is not None:
3436
      raise result.cex
3437
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3438
 
3439
  def searchItemsInRange(self, searchTerms, offset, limit):
3440
    """
3441
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3442
 
3443
    Parameters:
3444
     - searchTerms
3445
     - offset
3446
     - limit
3447
    """
3448
    self.send_searchItemsInRange(searchTerms, offset, limit)
3449
    return self.recv_searchItemsInRange()
3450
 
3451
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3452
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3453
    args = searchItemsInRange_args()
3454
    args.searchTerms = searchTerms
3455
    args.offset = offset
3456
    args.limit = limit
3457
    args.write(self._oprot)
3458
    self._oprot.writeMessageEnd()
3459
    self._oprot.trans.flush()
3460
 
3461
  def recv_searchItemsInRange(self, ):
3462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3463
    if mtype == TMessageType.EXCEPTION:
3464
      x = TApplicationException()
3465
      x.read(self._iprot)
3466
      self._iprot.readMessageEnd()
3467
      raise x
3468
    result = searchItemsInRange_result()
3469
    result.read(self._iprot)
3470
    self._iprot.readMessageEnd()
3471
    if result.success is not None:
3472
      return result.success
3473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3474
 
3475
  def getSearchResultCount(self, searchTerms):
3476
    """
3477
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3478
 
3479
    Parameters:
3480
     - searchTerms
3481
    """
3482
    self.send_getSearchResultCount(searchTerms)
3483
    return self.recv_getSearchResultCount()
3484
 
3485
  def send_getSearchResultCount(self, searchTerms):
3486
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3487
    args = getSearchResultCount_args()
3488
    args.searchTerms = searchTerms
3489
    args.write(self._oprot)
3490
    self._oprot.writeMessageEnd()
3491
    self._oprot.trans.flush()
3492
 
3493
  def recv_getSearchResultCount(self, ):
3494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3495
    if mtype == TMessageType.EXCEPTION:
3496
      x = TApplicationException()
3497
      x.read(self._iprot)
3498
      self._iprot.readMessageEnd()
3499
      raise x
3500
    result = getSearchResultCount_result()
3501
    result.read(self._iprot)
3502
    self._iprot.readMessageEnd()
3503
    if result.success is not None:
3504
      return result.success
3505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3506
 
3507
  def getProductNotifications(self, startDateTime):
3508
    """
3509
    Returns a list of product notifications added after a supplied datetime
3510
 
3511
    Parameters:
3512
     - startDateTime
3513
    """
3514
    self.send_getProductNotifications(startDateTime)
3515
    return self.recv_getProductNotifications()
3516
 
3517
  def send_getProductNotifications(self, startDateTime):
3518
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3519
    args = getProductNotifications_args()
3520
    args.startDateTime = startDateTime
3521
    args.write(self._oprot)
3522
    self._oprot.writeMessageEnd()
3523
    self._oprot.trans.flush()
3524
 
3525
  def recv_getProductNotifications(self, ):
3526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3527
    if mtype == TMessageType.EXCEPTION:
3528
      x = TApplicationException()
3529
      x.read(self._iprot)
3530
      self._iprot.readMessageEnd()
3531
      raise x
3532
    result = getProductNotifications_result()
3533
    result.read(self._iprot)
3534
    self._iprot.readMessageEnd()
3535
    if result.success is not None:
3536
      return result.success
3537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3538
 
7897 amar.kumar 3539
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3540
    """
3541
    Returns a list of count of requests for product notification against each item
3542
 
3543
    Parameters:
3544
     - startDateTime
7897 amar.kumar 3545
     - categoryId
5944 mandeep.dh 3546
    """
7897 amar.kumar 3547
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3548
    return self.recv_getProductNotificationRequestCount()
3549
 
7897 amar.kumar 3550
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3551
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3552
    args = getProductNotificationRequestCount_args()
3553
    args.startDateTime = startDateTime
7897 amar.kumar 3554
    args.categoryId = categoryId
5944 mandeep.dh 3555
    args.write(self._oprot)
3556
    self._oprot.writeMessageEnd()
3557
    self._oprot.trans.flush()
3558
 
3559
  def recv_getProductNotificationRequestCount(self, ):
3560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3561
    if mtype == TMessageType.EXCEPTION:
3562
      x = TApplicationException()
3563
      x.read(self._iprot)
3564
      self._iprot.readMessageEnd()
3565
      raise x
3566
    result = getProductNotificationRequestCount_result()
3567
    result.read(self._iprot)
3568
    self._iprot.readMessageEnd()
3569
    if result.success is not None:
3570
      return result.success
3571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3572
 
3573
  def addAuthorizationLog(self, itemId, username, reason):
3574
    """
3575
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3576
 
3577
    Parameters:
3578
     - itemId
3579
     - username
3580
     - reason
3581
    """
3582
    self.send_addAuthorizationLog(itemId, username, reason)
3583
    return self.recv_addAuthorizationLog()
3584
 
3585
  def send_addAuthorizationLog(self, itemId, username, reason):
3586
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3587
    args = addAuthorizationLog_args()
3588
    args.itemId = itemId
3589
    args.username = username
3590
    args.reason = reason
3591
    args.write(self._oprot)
3592
    self._oprot.writeMessageEnd()
3593
    self._oprot.trans.flush()
3594
 
3595
  def recv_addAuthorizationLog(self, ):
3596
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3597
    if mtype == TMessageType.EXCEPTION:
3598
      x = TApplicationException()
3599
      x.read(self._iprot)
3600
      self._iprot.readMessageEnd()
3601
      raise x
3602
    result = addAuthorizationLog_result()
3603
    result.read(self._iprot)
3604
    self._iprot.readMessageEnd()
3605
    if result.success is not None:
3606
      return result.success
3607
    if result.cex is not None:
3608
      raise result.cex
3609
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3610
 
3611
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3612
    """
3613
    Parameters:
3614
     - catalog_item_id
3615
     - voucherType
3616
     - voucherAmount
3617
    """
3618
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3619
    return self.recv_addupdateVoucherForItem()
3620
 
3621
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3622
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3623
    args = addupdateVoucherForItem_args()
3624
    args.catalog_item_id = catalog_item_id
3625
    args.voucherType = voucherType
3626
    args.voucherAmount = voucherAmount
3627
    args.write(self._oprot)
3628
    self._oprot.writeMessageEnd()
3629
    self._oprot.trans.flush()
3630
 
3631
  def recv_addupdateVoucherForItem(self, ):
3632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3633
    if mtype == TMessageType.EXCEPTION:
3634
      x = TApplicationException()
3635
      x.read(self._iprot)
3636
      self._iprot.readMessageEnd()
3637
      raise x
3638
    result = addupdateVoucherForItem_result()
3639
    result.read(self._iprot)
3640
    self._iprot.readMessageEnd()
3641
    if result.success is not None:
3642
      return result.success
3643
    if result.cex is not None:
3644
      raise result.cex
3645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3646
 
3647
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3648
    """
3649
    Parameters:
3650
     - catalog_item_id
3651
     - voucherType
3652
    """
3653
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3654
    return self.recv_deleteVoucherForItem()
3655
 
3656
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3657
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3658
    args = deleteVoucherForItem_args()
3659
    args.catalog_item_id = catalog_item_id
3660
    args.voucherType = voucherType
3661
    args.write(self._oprot)
3662
    self._oprot.writeMessageEnd()
3663
    self._oprot.trans.flush()
3664
 
3665
  def recv_deleteVoucherForItem(self, ):
3666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3667
    if mtype == TMessageType.EXCEPTION:
3668
      x = TApplicationException()
3669
      x.read(self._iprot)
3670
      self._iprot.readMessageEnd()
3671
      raise x
3672
    result = deleteVoucherForItem_result()
3673
    result.read(self._iprot)
3674
    self._iprot.readMessageEnd()
3675
    if result.success is not None:
3676
      return result.success
3677
    if result.cex is not None:
3678
      raise result.cex
3679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3680
 
3681
  def getVoucherAmount(self, itemId, voucherType):
3682
    """
3683
    Parameters:
3684
     - itemId
3685
     - voucherType
3686
    """
3687
    self.send_getVoucherAmount(itemId, voucherType)
3688
    return self.recv_getVoucherAmount()
3689
 
3690
  def send_getVoucherAmount(self, itemId, voucherType):
3691
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3692
    args = getVoucherAmount_args()
3693
    args.itemId = itemId
3694
    args.voucherType = voucherType
3695
    args.write(self._oprot)
3696
    self._oprot.writeMessageEnd()
3697
    self._oprot.trans.flush()
3698
 
3699
  def recv_getVoucherAmount(self, ):
3700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3701
    if mtype == TMessageType.EXCEPTION:
3702
      x = TApplicationException()
3703
      x.read(self._iprot)
3704
      self._iprot.readMessageEnd()
3705
      raise x
3706
    result = getVoucherAmount_result()
3707
    result.read(self._iprot)
3708
    self._iprot.readMessageEnd()
3709
    if result.success is not None:
3710
      return result.success
3711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3712
 
3713
  def getAllItemVouchers(self, itemId):
3714
    """
3715
    Parameters:
3716
     - itemId
3717
    """
3718
    self.send_getAllItemVouchers(itemId)
3719
    return self.recv_getAllItemVouchers()
3720
 
3721
  def send_getAllItemVouchers(self, itemId):
3722
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3723
    args = getAllItemVouchers_args()
3724
    args.itemId = itemId
3725
    args.write(self._oprot)
3726
    self._oprot.writeMessageEnd()
3727
    self._oprot.trans.flush()
3728
 
3729
  def recv_getAllItemVouchers(self, ):
3730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3731
    if mtype == TMessageType.EXCEPTION:
3732
      x = TApplicationException()
3733
      x.read(self._iprot)
3734
      self._iprot.readMessageEnd()
3735
      raise x
3736
    result = getAllItemVouchers_result()
3737
    result.read(self._iprot)
3738
    self._iprot.readMessageEnd()
3739
    if result.success is not None:
3740
      return result.success
3741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3742
 
3743
  def isValidCatalogItemId(self, catalog_item_id):
3744
    """
3745
    Parameters:
3746
     - catalog_item_id
3747
    """
3748
    self.send_isValidCatalogItemId(catalog_item_id)
3749
    return self.recv_isValidCatalogItemId()
3750
 
3751
  def send_isValidCatalogItemId(self, catalog_item_id):
3752
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3753
    args = isValidCatalogItemId_args()
3754
    args.catalog_item_id = catalog_item_id
3755
    args.write(self._oprot)
3756
    self._oprot.writeMessageEnd()
3757
    self._oprot.trans.flush()
3758
 
3759
  def recv_isValidCatalogItemId(self, ):
3760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3761
    if mtype == TMessageType.EXCEPTION:
3762
      x = TApplicationException()
3763
      x.read(self._iprot)
3764
      self._iprot.readMessageEnd()
3765
      raise x
3766
    result = isValidCatalogItemId_result()
3767
    result.read(self._iprot)
3768
    self._iprot.readMessageEnd()
3769
    if result.success is not None:
3770
      return result.success
3771
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3772
 
7330 amit.gupta 3773
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3774
    """
3775
    Parameters:
3776
     - itemId
7330 amit.gupta 3777
     - stateId
6039 amit.gupta 3778
     - price
3779
    """
7330 amit.gupta 3780
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3781
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3782
 
7330 amit.gupta 3783
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3784
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3785
    args = getVatPercentageForItem_args()
3786
    args.itemId = itemId
7330 amit.gupta 3787
    args.stateId = stateId
6039 amit.gupta 3788
    args.price = price
3789
    args.write(self._oprot)
3790
    self._oprot.writeMessageEnd()
3791
    self._oprot.trans.flush()
3792
 
3793
  def recv_getVatPercentageForItem(self, ):
3794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3795
    if mtype == TMessageType.EXCEPTION:
3796
      x = TApplicationException()
3797
      x.read(self._iprot)
3798
      self._iprot.readMessageEnd()
3799
      raise x
3800
    result = getVatPercentageForItem_result()
3801
    result.read(self._iprot)
3802
    self._iprot.readMessageEnd()
3803
    if result.success is not None:
3804
      return result.success
7340 amit.gupta 3805
    if result.cex is not None:
3806
      raise result.cex
6039 amit.gupta 3807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3808
 
3809
  def getVatAmountForItem(self, itemId, price):
3810
    """
3811
    Parameters:
3812
     - itemId
3813
     - price
3814
    """
3815
    self.send_getVatAmountForItem(itemId, price)
3816
    return self.recv_getVatAmountForItem()
3817
 
3818
  def send_getVatAmountForItem(self, itemId, price):
3819
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3820
    args = getVatAmountForItem_args()
3821
    args.itemId = itemId
3822
    args.price = price
3823
    args.write(self._oprot)
3824
    self._oprot.writeMessageEnd()
3825
    self._oprot.trans.flush()
3826
 
3827
  def recv_getVatAmountForItem(self, ):
3828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3829
    if mtype == TMessageType.EXCEPTION:
3830
      x = TApplicationException()
3831
      x.read(self._iprot)
3832
      self._iprot.readMessageEnd()
3833
      raise x
3834
    result = getVatAmountForItem_result()
3835
    result.read(self._iprot)
3836
    self._iprot.readMessageEnd()
3837
    if result.success is not None:
3838
      return result.success
3839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3840
 
6531 vikram.rag 3841
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3842
    """
3843
    Parameters:
3844
     - offset
3845
     - limit
3846
    """
3847
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3848
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3849
 
6531 vikram.rag 3850
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3851
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3852
    args = getAllIgnoredInventoryUpdateItemsList_args()
3853
    args.offset = offset
3854
    args.limit = limit
3855
    args.write(self._oprot)
3856
    self._oprot.writeMessageEnd()
3857
    self._oprot.trans.flush()
3858
 
3859
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3861
    if mtype == TMessageType.EXCEPTION:
3862
      x = TApplicationException()
3863
      x.read(self._iprot)
3864
      self._iprot.readMessageEnd()
3865
      raise x
3866
    result = getAllIgnoredInventoryUpdateItemsList_result()
3867
    result.read(self._iprot)
3868
    self._iprot.readMessageEnd()
3869
    if result.success is not None:
3870
      return result.success
3871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3872
 
6821 amar.kumar 3873
  def getAllAliveItems(self, ):
3874
    self.send_getAllAliveItems()
3875
    return self.recv_getAllAliveItems()
3876
 
3877
  def send_getAllAliveItems(self, ):
3878
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3879
    args = getAllAliveItems_args()
3880
    args.write(self._oprot)
3881
    self._oprot.writeMessageEnd()
3882
    self._oprot.trans.flush()
3883
 
3884
  def recv_getAllAliveItems(self, ):
3885
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3886
    if mtype == TMessageType.EXCEPTION:
3887
      x = TApplicationException()
3888
      x.read(self._iprot)
3889
      self._iprot.readMessageEnd()
3890
      raise x
3891
    result = getAllAliveItems_result()
3892
    result.read(self._iprot)
3893
    self._iprot.readMessageEnd()
3894
    if result.success is not None:
3895
      return result.success
3896
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3897
 
6921 anupam.sin 3898
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3899
    """
3900
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3901
 
6805 anupam.sin 3902
    Parameters:
3903
     - itemId
6921 anupam.sin 3904
     - price
6805 anupam.sin 3905
     - insurerId
3906
     - quantity
3907
    """
6921 anupam.sin 3908
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3909
    return self.recv_getInsuranceAmount()
3910
 
6921 anupam.sin 3911
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3912
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3913
    args = getInsuranceAmount_args()
3914
    args.itemId = itemId
6921 anupam.sin 3915
    args.price = price
6805 anupam.sin 3916
    args.insurerId = insurerId
3917
    args.quantity = quantity
3918
    args.write(self._oprot)
3919
    self._oprot.writeMessageEnd()
3920
    self._oprot.trans.flush()
3921
 
3922
  def recv_getInsuranceAmount(self, ):
3923
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3924
    if mtype == TMessageType.EXCEPTION:
3925
      x = TApplicationException()
3926
      x.read(self._iprot)
3927
      self._iprot.readMessageEnd()
3928
      raise x
3929
    result = getInsuranceAmount_result()
3930
    result.read(self._iprot)
3931
    self._iprot.readMessageEnd()
3932
    if result.success is not None:
3933
      return result.success
3934
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3935
 
3936
  def getInsurer(self, insurerId):
3937
    """
3938
    Parameters:
3939
     - insurerId
3940
    """
3941
    self.send_getInsurer(insurerId)
3942
    return self.recv_getInsurer()
3943
 
3944
  def send_getInsurer(self, insurerId):
3945
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3946
    args = getInsurer_args()
3947
    args.insurerId = insurerId
3948
    args.write(self._oprot)
3949
    self._oprot.writeMessageEnd()
3950
    self._oprot.trans.flush()
3951
 
3952
  def recv_getInsurer(self, ):
3953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3954
    if mtype == TMessageType.EXCEPTION:
3955
      x = TApplicationException()
3956
      x.read(self._iprot)
3957
      self._iprot.readMessageEnd()
3958
      raise x
3959
    result = getInsurer_result()
3960
    result.read(self._iprot)
3961
    self._iprot.readMessageEnd()
3962
    if result.success is not None:
3963
      return result.success
3964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3965
 
6838 vikram.rag 3966
  def getAllInsurers(self, ):
3967
    self.send_getAllInsurers()
3968
    return self.recv_getAllInsurers()
6805 anupam.sin 3969
 
6838 vikram.rag 3970
  def send_getAllInsurers(self, ):
3971
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3972
    args = getAllInsurers_args()
3973
    args.write(self._oprot)
3974
    self._oprot.writeMessageEnd()
3975
    self._oprot.trans.flush()
3976
 
3977
  def recv_getAllInsurers(self, ):
3978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3979
    if mtype == TMessageType.EXCEPTION:
3980
      x = TApplicationException()
3981
      x.read(self._iprot)
3982
      self._iprot.readMessageEnd()
3983
      raise x
3984
    result = getAllInsurers_result()
3985
    result.read(self._iprot)
3986
    self._iprot.readMessageEnd()
3987
    if result.success is not None:
3988
      return result.success
3989
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3990
 
6962 rajveer 3991
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3992
    """
3993
    Parameters:
3994
     - insurerId
3995
     - amount
3996
    """
3997
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3998
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3999
 
6962 rajveer 4000
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4001
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4002
    args = updateInsuranceDeclaredAmount_args()
4003
    args.insurerId = insurerId
4004
    args.amount = amount
4005
    args.write(self._oprot)
4006
    self._oprot.writeMessageEnd()
4007
    self._oprot.trans.flush()
4008
 
4009
  def recv_updateInsuranceDeclaredAmount(self, ):
4010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4011
    if mtype == TMessageType.EXCEPTION:
4012
      x = TApplicationException()
4013
      x.read(self._iprot)
4014
      self._iprot.readMessageEnd()
4015
      raise x
4016
    result = updateInsuranceDeclaredAmount_result()
4017
    result.read(self._iprot)
4018
    self._iprot.readMessageEnd()
4019
    return
4020
 
7190 amar.kumar 4021
  def getFreebieForItem(self, itemId):
4022
    """
4023
    Parameters:
4024
     - itemId
4025
    """
4026
    self.send_getFreebieForItem(itemId)
4027
    return self.recv_getFreebieForItem()
6962 rajveer 4028
 
7190 amar.kumar 4029
  def send_getFreebieForItem(self, itemId):
4030
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4031
    args = getFreebieForItem_args()
4032
    args.itemId = itemId
4033
    args.write(self._oprot)
4034
    self._oprot.writeMessageEnd()
4035
    self._oprot.trans.flush()
4036
 
4037
  def recv_getFreebieForItem(self, ):
4038
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4039
    if mtype == TMessageType.EXCEPTION:
4040
      x = TApplicationException()
4041
      x.read(self._iprot)
4042
      self._iprot.readMessageEnd()
4043
      raise x
4044
    result = getFreebieForItem_result()
4045
    result.read(self._iprot)
4046
    self._iprot.readMessageEnd()
4047
    if result.success is not None:
4048
      return result.success
4049
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4050
 
4051
  def addOrUpdateFreebieForItem(self, freebieItem):
4052
    """
4053
    Parameters:
4054
     - freebieItem
4055
    """
4056
    self.send_addOrUpdateFreebieForItem(freebieItem)
4057
    self.recv_addOrUpdateFreebieForItem()
4058
 
4059
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4060
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4061
    args = addOrUpdateFreebieForItem_args()
4062
    args.freebieItem = freebieItem
4063
    args.write(self._oprot)
4064
    self._oprot.writeMessageEnd()
4065
    self._oprot.trans.flush()
4066
 
4067
  def recv_addOrUpdateFreebieForItem(self, ):
4068
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4069
    if mtype == TMessageType.EXCEPTION:
4070
      x = TApplicationException()
4071
      x.read(self._iprot)
4072
      self._iprot.readMessageEnd()
4073
      raise x
4074
    result = addOrUpdateFreebieForItem_result()
4075
    result.read(self._iprot)
4076
    self._iprot.readMessageEnd()
4077
    return
4078
 
7272 amit.gupta 4079
  def addOrUpdateBrandInfo(self, brandInfo):
4080
    """
4081
    Parameters:
4082
     - brandInfo
4083
    """
4084
    self.send_addOrUpdateBrandInfo(brandInfo)
4085
    self.recv_addOrUpdateBrandInfo()
4086
 
4087
  def send_addOrUpdateBrandInfo(self, brandInfo):
4088
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4089
    args = addOrUpdateBrandInfo_args()
4090
    args.brandInfo = brandInfo
4091
    args.write(self._oprot)
4092
    self._oprot.writeMessageEnd()
4093
    self._oprot.trans.flush()
4094
 
4095
  def recv_addOrUpdateBrandInfo(self, ):
4096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4097
    if mtype == TMessageType.EXCEPTION:
4098
      x = TApplicationException()
4099
      x.read(self._iprot)
4100
      self._iprot.readMessageEnd()
4101
      raise x
4102
    result = addOrUpdateBrandInfo_result()
4103
    result.read(self._iprot)
4104
    self._iprot.readMessageEnd()
4105
    return
4106
 
4107
  def getBrandInfo(self, ):
4108
    self.send_getBrandInfo()
4109
    return self.recv_getBrandInfo()
4110
 
4111
  def send_getBrandInfo(self, ):
4112
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4113
    args = getBrandInfo_args()
4114
    args.write(self._oprot)
4115
    self._oprot.writeMessageEnd()
4116
    self._oprot.trans.flush()
4117
 
4118
  def recv_getBrandInfo(self, ):
4119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4120
    if mtype == TMessageType.EXCEPTION:
4121
      x = TApplicationException()
4122
      x.read(self._iprot)
4123
      self._iprot.readMessageEnd()
4124
      raise x
4125
    result = getBrandInfo_result()
4126
    result.read(self._iprot)
4127
    self._iprot.readMessageEnd()
4128
    if result.success is not None:
4129
      return result.success
4130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4131
 
7256 rajveer 4132
  def getStorePricing(self, itemId):
4133
    """
4134
    Parameters:
4135
     - itemId
4136
    """
4137
    self.send_getStorePricing(itemId)
4138
    return self.recv_getStorePricing()
7190 amar.kumar 4139
 
7256 rajveer 4140
  def send_getStorePricing(self, itemId):
4141
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4142
    args = getStorePricing_args()
4143
    args.itemId = itemId
4144
    args.write(self._oprot)
4145
    self._oprot.writeMessageEnd()
4146
    self._oprot.trans.flush()
4147
 
4148
  def recv_getStorePricing(self, ):
4149
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4150
    if mtype == TMessageType.EXCEPTION:
4151
      x = TApplicationException()
4152
      x.read(self._iprot)
4153
      self._iprot.readMessageEnd()
4154
      raise x
4155
    result = getStorePricing_result()
4156
    result.read(self._iprot)
4157
    self._iprot.readMessageEnd()
4158
    if result.success is not None:
4159
      return result.success
4160
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4161
 
7306 rajveer 4162
  def getStorePricings(self, itemIds):
4163
    """
4164
    Parameters:
4165
     - itemIds
4166
    """
4167
    self.send_getStorePricings(itemIds)
4168
    return self.recv_getStorePricings()
4169
 
4170
  def send_getStorePricings(self, itemIds):
4171
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4172
    args = getStorePricings_args()
4173
    args.itemIds = itemIds
4174
    args.write(self._oprot)
4175
    self._oprot.writeMessageEnd()
4176
    self._oprot.trans.flush()
4177
 
4178
  def recv_getStorePricings(self, ):
4179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4180
    if mtype == TMessageType.EXCEPTION:
4181
      x = TApplicationException()
4182
      x.read(self._iprot)
4183
      self._iprot.readMessageEnd()
4184
      raise x
4185
    result = getStorePricings_result()
4186
    result.read(self._iprot)
4187
    self._iprot.readMessageEnd()
4188
    if result.success is not None:
4189
      return result.success
4190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4191
 
7382 rajveer 4192
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4193
    """
4194
    Parameters:
4195
     - sp
7382 rajveer 4196
     - allColors
7265 rajveer 4197
    """
7382 rajveer 4198
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4199
    self.recv_updateStorePricing()
7256 rajveer 4200
 
7382 rajveer 4201
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4202
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4203
    args = updateStorePricing_args()
4204
    args.sp = sp
7382 rajveer 4205
    args.allColors = allColors
7265 rajveer 4206
    args.write(self._oprot)
4207
    self._oprot.writeMessageEnd()
4208
    self._oprot.trans.flush()
4209
 
4210
  def recv_updateStorePricing(self, ):
4211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4212
    if mtype == TMessageType.EXCEPTION:
4213
      x = TApplicationException()
4214
      x.read(self._iprot)
4215
      self._iprot.readMessageEnd()
4216
      raise x
4217
    result = updateStorePricing_result()
4218
    result.read(self._iprot)
4219
    self._iprot.readMessageEnd()
4220
    return
4221
 
7281 kshitij.so 4222
  def getAllAmazonListedItems(self, ):
4223
    self.send_getAllAmazonListedItems()
4224
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4225
 
7281 kshitij.so 4226
  def send_getAllAmazonListedItems(self, ):
4227
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4228
    args = getAllAmazonListedItems_args()
4229
    args.write(self._oprot)
4230
    self._oprot.writeMessageEnd()
4231
    self._oprot.trans.flush()
4232
 
4233
  def recv_getAllAmazonListedItems(self, ):
4234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4235
    if mtype == TMessageType.EXCEPTION:
4236
      x = TApplicationException()
4237
      x.read(self._iprot)
4238
      self._iprot.readMessageEnd()
4239
      raise x
4240
    result = getAllAmazonListedItems_result()
4241
    result.read(self._iprot)
4242
    self._iprot.readMessageEnd()
4243
    if result.success is not None:
4244
      return result.success
4245
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4246
 
8619 kshitij.so 4247
  def searchAmazonItems(self, searchTerm, offset, limit):
4248
    """
4249
    Parameters:
4250
     - searchTerm
4251
     - offset
4252
     - limit
4253
    """
4254
    self.send_searchAmazonItems(searchTerm, offset, limit)
4255
    return self.recv_searchAmazonItems()
4256
 
4257
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4258
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4259
    args = searchAmazonItems_args()
4260
    args.searchTerm = searchTerm
4261
    args.offset = offset
4262
    args.limit = limit
4263
    args.write(self._oprot)
4264
    self._oprot.writeMessageEnd()
4265
    self._oprot.trans.flush()
4266
 
4267
  def recv_searchAmazonItems(self, ):
4268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4269
    if mtype == TMessageType.EXCEPTION:
4270
      x = TApplicationException()
4271
      x.read(self._iprot)
4272
      self._iprot.readMessageEnd()
4273
      raise x
4274
    result = searchAmazonItems_result()
4275
    result.read(self._iprot)
4276
    self._iprot.readMessageEnd()
4277
    if result.success is not None:
4278
      return result.success
4279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4280
 
4281
  def getAmazonSearchResultCount(self, searchTerm):
4282
    """
4283
    Parameters:
4284
     - searchTerm
4285
    """
4286
    self.send_getAmazonSearchResultCount(searchTerm)
4287
    return self.recv_getAmazonSearchResultCount()
4288
 
4289
  def send_getAmazonSearchResultCount(self, searchTerm):
4290
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4291
    args = getAmazonSearchResultCount_args()
4292
    args.searchTerm = searchTerm
4293
    args.write(self._oprot)
4294
    self._oprot.writeMessageEnd()
4295
    self._oprot.trans.flush()
4296
 
4297
  def recv_getAmazonSearchResultCount(self, ):
4298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4299
    if mtype == TMessageType.EXCEPTION:
4300
      x = TApplicationException()
4301
      x.read(self._iprot)
4302
      self._iprot.readMessageEnd()
4303
      raise x
4304
    result = getAmazonSearchResultCount_result()
4305
    result.read(self._iprot)
4306
    self._iprot.readMessageEnd()
4307
    if result.success is not None:
4308
      return result.success
4309
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4310
 
4311
  def getCountForAmazonlistedItems(self, ):
4312
    self.send_getCountForAmazonlistedItems()
4313
    return self.recv_getCountForAmazonlistedItems()
4314
 
4315
  def send_getCountForAmazonlistedItems(self, ):
4316
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4317
    args = getCountForAmazonlistedItems_args()
4318
    args.write(self._oprot)
4319
    self._oprot.writeMessageEnd()
4320
    self._oprot.trans.flush()
4321
 
4322
  def recv_getCountForAmazonlistedItems(self, ):
4323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4324
    if mtype == TMessageType.EXCEPTION:
4325
      x = TApplicationException()
4326
      x.read(self._iprot)
4327
      self._iprot.readMessageEnd()
4328
      raise x
4329
    result = getCountForAmazonlistedItems_result()
4330
    result.read(self._iprot)
4331
    self._iprot.readMessageEnd()
4332
    if result.success is not None:
4333
      return result.success
4334
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4335
 
7281 kshitij.so 4336
  def getAmazonItemDetails(self, itemId):
4337
    """
4338
    Parameters:
4339
     - itemId
4340
    """
4341
    self.send_getAmazonItemDetails(itemId)
4342
    return self.recv_getAmazonItemDetails()
4343
 
4344
  def send_getAmazonItemDetails(self, itemId):
4345
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4346
    args = getAmazonItemDetails_args()
4347
    args.itemId = itemId
4348
    args.write(self._oprot)
4349
    self._oprot.writeMessageEnd()
4350
    self._oprot.trans.flush()
4351
 
4352
  def recv_getAmazonItemDetails(self, ):
4353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4354
    if mtype == TMessageType.EXCEPTION:
4355
      x = TApplicationException()
4356
      x.read(self._iprot)
4357
      self._iprot.readMessageEnd()
4358
      raise x
4359
    result = getAmazonItemDetails_result()
4360
    result.read(self._iprot)
4361
    self._iprot.readMessageEnd()
4362
    if result.success is not None:
4363
      return result.success
4364
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4365
 
8168 kshitij.so 4366
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4367
    """
4368
    Parameters:
8168 kshitij.so 4369
     - amazonlisted
7281 kshitij.so 4370
    """
8168 kshitij.so 4371
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4372
    self.recv_updateAmazonItemDetails()
4373
 
8168 kshitij.so 4374
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4375
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4376
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4377
    args.amazonlisted = amazonlisted
7281 kshitij.so 4378
    args.write(self._oprot)
4379
    self._oprot.writeMessageEnd()
4380
    self._oprot.trans.flush()
4381
 
4382
  def recv_updateAmazonItemDetails(self, ):
4383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4384
    if mtype == TMessageType.EXCEPTION:
4385
      x = TApplicationException()
4386
      x.read(self._iprot)
4387
      self._iprot.readMessageEnd()
4388
      raise x
4389
    result = updateAmazonItemDetails_result()
4390
    result.read(self._iprot)
4391
    self._iprot.readMessageEnd()
4392
    return
4393
 
4394
  def addAmazonItem(self, amazonlisted):
4395
    """
4396
    Parameters:
4397
     - amazonlisted
4398
    """
4399
    self.send_addAmazonItem(amazonlisted)
4400
    self.recv_addAmazonItem()
4401
 
4402
  def send_addAmazonItem(self, amazonlisted):
4403
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4404
    args = addAmazonItem_args()
4405
    args.amazonlisted = amazonlisted
4406
    args.write(self._oprot)
4407
    self._oprot.writeMessageEnd()
4408
    self._oprot.trans.flush()
4409
 
4410
  def recv_addAmazonItem(self, ):
4411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4412
    if mtype == TMessageType.EXCEPTION:
4413
      x = TApplicationException()
4414
      x.read(self._iprot)
4415
      self._iprot.readMessageEnd()
4416
      raise x
4417
    result = addAmazonItem_result()
4418
    result.read(self._iprot)
4419
    self._iprot.readMessageEnd()
4420
    return
4421
 
7291 vikram.rag 4422
  def getAsinItems(self, ):
4423
    self.send_getAsinItems()
4424
    return self.recv_getAsinItems()
7281 kshitij.so 4425
 
7291 vikram.rag 4426
  def send_getAsinItems(self, ):
4427
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4428
    args = getAsinItems_args()
4429
    args.write(self._oprot)
4430
    self._oprot.writeMessageEnd()
4431
    self._oprot.trans.flush()
4432
 
4433
  def recv_getAsinItems(self, ):
4434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4435
    if mtype == TMessageType.EXCEPTION:
4436
      x = TApplicationException()
4437
      x.read(self._iprot)
4438
      self._iprot.readMessageEnd()
4439
      raise x
4440
    result = getAsinItems_result()
4441
    result.read(self._iprot)
4442
    self._iprot.readMessageEnd()
4443
    if result.success is not None:
4444
      return result.success
4445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4446
 
4447
  def getAllFbaListedItems(self, ):
4448
    self.send_getAllFbaListedItems()
4449
    return self.recv_getAllFbaListedItems()
4450
 
4451
  def send_getAllFbaListedItems(self, ):
4452
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4453
    args = getAllFbaListedItems_args()
4454
    args.write(self._oprot)
4455
    self._oprot.writeMessageEnd()
4456
    self._oprot.trans.flush()
4457
 
4458
  def recv_getAllFbaListedItems(self, ):
4459
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4460
    if mtype == TMessageType.EXCEPTION:
4461
      x = TApplicationException()
4462
      x.read(self._iprot)
4463
      self._iprot.readMessageEnd()
4464
      raise x
4465
    result = getAllFbaListedItems_result()
4466
    result.read(self._iprot)
4467
    self._iprot.readMessageEnd()
4468
    if result.success is not None:
4469
      return result.success
4470
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4471
 
4472
  def getAllNonFbaListedItems(self, ):
4473
    self.send_getAllNonFbaListedItems()
4474
    return self.recv_getAllNonFbaListedItems()
4475
 
4476
  def send_getAllNonFbaListedItems(self, ):
4477
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4478
    args = getAllNonFbaListedItems_args()
4479
    args.write(self._oprot)
4480
    self._oprot.writeMessageEnd()
4481
    self._oprot.trans.flush()
4482
 
4483
  def recv_getAllNonFbaListedItems(self, ):
4484
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4485
    if mtype == TMessageType.EXCEPTION:
4486
      x = TApplicationException()
4487
      x.read(self._iprot)
4488
      self._iprot.readMessageEnd()
4489
      raise x
4490
    result = getAllNonFbaListedItems_result()
4491
    result.read(self._iprot)
4492
    self._iprot.readMessageEnd()
4493
    if result.success is not None:
4494
      return result.success
4495
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4496
 
7460 kshitij.so 4497
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4498
    """
4499
    Parameters:
4500
     - itemId
4501
     - holdInventory
4502
     - defaultInventory
4503
    """
4504
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4505
    return self.recv_updateItemInventory()
7291 vikram.rag 4506
 
7460 kshitij.so 4507
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4508
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4509
    args = updateItemInventory_args()
4510
    args.itemId = itemId
4511
    args.holdInventory = holdInventory
4512
    args.defaultInventory = defaultInventory
4513
    args.write(self._oprot)
4514
    self._oprot.writeMessageEnd()
4515
    self._oprot.trans.flush()
4516
 
4517
  def recv_updateItemInventory(self, ):
4518
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4519
    if mtype == TMessageType.EXCEPTION:
4520
      x = TApplicationException()
4521
      x.read(self._iprot)
4522
      self._iprot.readMessageEnd()
4523
      raise x
4524
    result = updateItemInventory_result()
4525
    result.read(self._iprot)
4526
    self._iprot.readMessageEnd()
4527
    if result.success is not None:
4528
      return result.success
4529
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4530
 
7770 kshitij.so 4531
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4532
    """
4533
    Parameters:
4534
     - type
4535
     - sku
4536
     - timestamp
4537
    """
4538
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4539
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4540
 
7770 kshitij.so 4541
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4542
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4543
    args = updateTimestampForAmazonFeeds_args()
4544
    args.type = type
4545
    args.sku = sku
4546
    args.timestamp = timestamp
4547
    args.write(self._oprot)
4548
    self._oprot.writeMessageEnd()
4549
    self._oprot.trans.flush()
4550
 
4551
  def recv_updateTimestampForAmazonFeeds(self, ):
4552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4553
    if mtype == TMessageType.EXCEPTION:
4554
      x = TApplicationException()
4555
      x.read(self._iprot)
4556
      self._iprot.readMessageEnd()
4557
      raise x
4558
    result = updateTimestampForAmazonFeeds_result()
4559
    result.read(self._iprot)
4560
    self._iprot.readMessageEnd()
4561
    if result.success is not None:
4562
      return result.success
4563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4564
 
7897 amar.kumar 4565
  def getAllParentCategories(self, ):
4566
    self.send_getAllParentCategories()
4567
    return self.recv_getAllParentCategories()
7770 kshitij.so 4568
 
7897 amar.kumar 4569
  def send_getAllParentCategories(self, ):
4570
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4571
    args = getAllParentCategories_args()
4572
    args.write(self._oprot)
4573
    self._oprot.writeMessageEnd()
4574
    self._oprot.trans.flush()
4575
 
4576
  def recv_getAllParentCategories(self, ):
4577
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4578
    if mtype == TMessageType.EXCEPTION:
4579
      x = TApplicationException()
4580
      x.read(self._iprot)
4581
      self._iprot.readMessageEnd()
4582
      raise x
4583
    result = getAllParentCategories_result()
4584
    result.read(self._iprot)
4585
    self._iprot.readMessageEnd()
4586
    if result.success is not None:
4587
      return result.success
4588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4589
 
7977 kshitij.so 4590
  def addPageViewEvent(self, pageViewEvents):
4591
    """
4592
    Parameters:
4593
     - pageViewEvents
4594
    """
4595
    self.send_addPageViewEvent(pageViewEvents)
4596
    self.recv_addPageViewEvent()
7897 amar.kumar 4597
 
7977 kshitij.so 4598
  def send_addPageViewEvent(self, pageViewEvents):
4599
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4600
    args = addPageViewEvent_args()
4601
    args.pageViewEvents = pageViewEvents
4602
    args.write(self._oprot)
4603
    self._oprot.writeMessageEnd()
4604
    self._oprot.trans.flush()
4605
 
4606
  def recv_addPageViewEvent(self, ):
4607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4608
    if mtype == TMessageType.EXCEPTION:
4609
      x = TApplicationException()
4610
      x.read(self._iprot)
4611
      self._iprot.readMessageEnd()
4612
      raise x
4613
    result = addPageViewEvent_result()
4614
    result.read(self._iprot)
4615
    self._iprot.readMessageEnd()
4616
    return
4617
 
4618
  def addCartEvent(self, cartEvents):
4619
    """
4620
    Parameters:
4621
     - cartEvents
4622
    """
4623
    self.send_addCartEvent(cartEvents)
4624
    self.recv_addCartEvent()
4625
 
4626
  def send_addCartEvent(self, cartEvents):
4627
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4628
    args = addCartEvent_args()
4629
    args.cartEvents = cartEvents
4630
    args.write(self._oprot)
4631
    self._oprot.writeMessageEnd()
4632
    self._oprot.trans.flush()
4633
 
4634
  def recv_addCartEvent(self, ):
4635
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4636
    if mtype == TMessageType.EXCEPTION:
4637
      x = TApplicationException()
4638
      x.read(self._iprot)
4639
      self._iprot.readMessageEnd()
4640
      raise x
4641
    result = addCartEvent_result()
4642
    result.read(self._iprot)
4643
    self._iprot.readMessageEnd()
4644
    return
4645
 
8182 amar.kumar 4646
  def addEbayItem(self, ebayItem):
4647
    """
4648
    Parameters:
4649
     - ebayItem
4650
    """
4651
    self.send_addEbayItem(ebayItem)
4652
    self.recv_addEbayItem()
4653
 
4654
  def send_addEbayItem(self, ebayItem):
4655
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4656
    args = addEbayItem_args()
4657
    args.ebayItem = ebayItem
4658
    args.write(self._oprot)
4659
    self._oprot.writeMessageEnd()
4660
    self._oprot.trans.flush()
4661
 
4662
  def recv_addEbayItem(self, ):
4663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4664
    if mtype == TMessageType.EXCEPTION:
4665
      x = TApplicationException()
4666
      x.read(self._iprot)
4667
      self._iprot.readMessageEnd()
4668
      raise x
4669
    result = addEbayItem_result()
4670
    result.read(self._iprot)
4671
    self._iprot.readMessageEnd()
4672
    return
4673
 
4674
  def getEbayItem(self, listingId):
4675
    """
4676
    Parameters:
4677
     - listingId
4678
    """
4679
    self.send_getEbayItem(listingId)
4680
    return self.recv_getEbayItem()
4681
 
4682
  def send_getEbayItem(self, listingId):
4683
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4684
    args = getEbayItem_args()
4685
    args.listingId = listingId
4686
    args.write(self._oprot)
4687
    self._oprot.writeMessageEnd()
4688
    self._oprot.trans.flush()
4689
 
4690
  def recv_getEbayItem(self, ):
4691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4692
    if mtype == TMessageType.EXCEPTION:
4693
      x = TApplicationException()
4694
      x.read(self._iprot)
4695
      self._iprot.readMessageEnd()
4696
      raise x
4697
    result = getEbayItem_result()
4698
    result.read(self._iprot)
4699
    self._iprot.readMessageEnd()
4700
    if result.success is not None:
4701
      return result.success
4702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4703
 
4704
  def updateEbayItem(self, ebayItem):
4705
    """
4706
    Parameters:
4707
     - ebayItem
4708
    """
4709
    self.send_updateEbayItem(ebayItem)
4710
    self.recv_updateEbayItem()
4711
 
4712
  def send_updateEbayItem(self, ebayItem):
4713
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4714
    args = updateEbayItem_args()
4715
    args.ebayItem = ebayItem
4716
    args.write(self._oprot)
4717
    self._oprot.writeMessageEnd()
4718
    self._oprot.trans.flush()
4719
 
4720
  def recv_updateEbayItem(self, ):
4721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4722
    if mtype == TMessageType.EXCEPTION:
4723
      x = TApplicationException()
4724
      x.read(self._iprot)
4725
      self._iprot.readMessageEnd()
4726
      raise x
4727
    result = updateEbayItem_result()
4728
    result.read(self._iprot)
4729
    self._iprot.readMessageEnd()
4730
    return
4731
 
8139 kshitij.so 4732
  def getAmazonListedItems(self, offset, limit):
4733
    """
4734
    Parameters:
4735
     - offset
4736
     - limit
4737
    """
4738
    self.send_getAmazonListedItems(offset, limit)
4739
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4740
 
8139 kshitij.so 4741
  def send_getAmazonListedItems(self, offset, limit):
4742
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4743
    args = getAmazonListedItems_args()
4744
    args.offset = offset
4745
    args.limit = limit
4746
    args.write(self._oprot)
4747
    self._oprot.writeMessageEnd()
4748
    self._oprot.trans.flush()
4749
 
4750
  def recv_getAmazonListedItems(self, ):
4751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4752
    if mtype == TMessageType.EXCEPTION:
4753
      x = TApplicationException()
4754
      x.read(self._iprot)
4755
      self._iprot.readMessageEnd()
4756
      raise x
4757
    result = getAmazonListedItems_result()
4758
    result.read(self._iprot)
4759
    self._iprot.readMessageEnd()
4760
    if result.success is not None:
4761
      return result.success
4762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4763
 
8168 kshitij.so 4764
  def updateAmazonAttributesInBulk(self, amazonlisted):
4765
    """
4766
    Parameters:
4767
     - amazonlisted
4768
    """
4769
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4770
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4771
 
8168 kshitij.so 4772
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4773
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4774
    args = updateAmazonAttributesInBulk_args()
4775
    args.amazonlisted = amazonlisted
4776
    args.write(self._oprot)
4777
    self._oprot.writeMessageEnd()
4778
    self._oprot.trans.flush()
4779
 
4780
  def recv_updateAmazonAttributesInBulk(self, ):
4781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4782
    if mtype == TMessageType.EXCEPTION:
4783
      x = TApplicationException()
4784
      x.read(self._iprot)
4785
      self._iprot.readMessageEnd()
4786
      raise x
4787
    result = updateAmazonAttributesInBulk_result()
4788
    result.read(self._iprot)
4789
    self._iprot.readMessageEnd()
4790
    if result.success is not None:
4791
      return result.success
4792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4793
 
8379 vikram.rag 4794
  def getAllItemstoListOnFba(self, ):
4795
    self.send_getAllItemstoListOnFba()
4796
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4797
 
8379 vikram.rag 4798
  def send_getAllItemstoListOnFba(self, ):
4799
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
4800
    args = getAllItemstoListOnFba_args()
4801
    args.write(self._oprot)
4802
    self._oprot.writeMessageEnd()
4803
    self._oprot.trans.flush()
4804
 
4805
  def recv_getAllItemstoListOnFba(self, ):
4806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4807
    if mtype == TMessageType.EXCEPTION:
4808
      x = TApplicationException()
4809
      x.read(self._iprot)
4810
      self._iprot.readMessageEnd()
4811
      raise x
4812
    result = getAllItemstoListOnFba_result()
4813
    result.read(self._iprot)
4814
    self._iprot.readMessageEnd()
4815
    if result.success is not None:
4816
      return result.success
4817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
4818
 
4819
  def getAllItemstoListOnNonFba(self, ):
4820
    self.send_getAllItemstoListOnNonFba()
4821
    return self.recv_getAllItemstoListOnNonFba()
4822
 
4823
  def send_getAllItemstoListOnNonFba(self, ):
4824
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
4825
    args = getAllItemstoListOnNonFba_args()
4826
    args.write(self._oprot)
4827
    self._oprot.writeMessageEnd()
4828
    self._oprot.trans.flush()
4829
 
4830
  def recv_getAllItemstoListOnNonFba(self, ):
4831
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4832
    if mtype == TMessageType.EXCEPTION:
4833
      x = TApplicationException()
4834
      x.read(self._iprot)
4835
      self._iprot.readMessageEnd()
4836
      raise x
4837
    result = getAllItemstoListOnNonFba_result()
4838
    result.read(self._iprot)
4839
    self._iprot.readMessageEnd()
4840
    if result.success is not None:
4841
      return result.success
4842
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4843
 
8619 kshitij.so 4844
  def updateAsin(self, item):
4845
    """
4846
    Parameters:
4847
     - item
4848
    """
4849
    self.send_updateAsin(item)
4850
    self.recv_updateAsin()
8616 vikram.rag 4851
 
8619 kshitij.so 4852
  def send_updateAsin(self, item):
4853
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
4854
    args = updateAsin_args()
4855
    args.item = item
4856
    args.write(self._oprot)
4857
    self._oprot.writeMessageEnd()
4858
    self._oprot.trans.flush()
4859
 
4860
  def recv_updateAsin(self, ):
4861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4862
    if mtype == TMessageType.EXCEPTION:
4863
      x = TApplicationException()
4864
      x.read(self._iprot)
4865
      self._iprot.readMessageEnd()
4866
      raise x
4867
    result = updateAsin_result()
4868
    result.read(self._iprot)
4869
    self._iprot.readMessageEnd()
4870
    return
4871
 
8739 vikram.rag 4872
  def addOrUpdateSnapdealItem(self, snapdealitem):
4873
    """
4874
    Parameters:
4875
     - snapdealitem
4876
    """
4877
    self.send_addOrUpdateSnapdealItem(snapdealitem)
4878
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 4879
 
8739 vikram.rag 4880
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
4881
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
4882
    args = addOrUpdateSnapdealItem_args()
4883
    args.snapdealitem = snapdealitem
4884
    args.write(self._oprot)
4885
    self._oprot.writeMessageEnd()
4886
    self._oprot.trans.flush()
4887
 
4888
  def recv_addOrUpdateSnapdealItem(self, ):
4889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4890
    if mtype == TMessageType.EXCEPTION:
4891
      x = TApplicationException()
4892
      x.read(self._iprot)
4893
      self._iprot.readMessageEnd()
4894
      raise x
4895
    result = addOrUpdateSnapdealItem_result()
4896
    result.read(self._iprot)
4897
    self._iprot.readMessageEnd()
4898
    if result.success is not None:
4899
      return result.success
4900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
4901
 
4902
  def getSnapdealItem(self, item_id):
4903
    """
4904
    Parameters:
4905
     - item_id
4906
    """
4907
    self.send_getSnapdealItem(item_id)
4908
    return self.recv_getSnapdealItem()
4909
 
4910
  def send_getSnapdealItem(self, item_id):
4911
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
4912
    args = getSnapdealItem_args()
4913
    args.item_id = item_id
4914
    args.write(self._oprot)
4915
    self._oprot.writeMessageEnd()
4916
    self._oprot.trans.flush()
4917
 
4918
  def recv_getSnapdealItem(self, ):
4919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4920
    if mtype == TMessageType.EXCEPTION:
4921
      x = TApplicationException()
4922
      x.read(self._iprot)
4923
      self._iprot.readMessageEnd()
4924
      raise x
4925
    result = getSnapdealItem_result()
4926
    result.read(self._iprot)
4927
    self._iprot.readMessageEnd()
4928
    if result.success is not None:
4929
      return result.success
4930
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4931
 
9242 kshitij.so 4932
  def getSnapdealItemDetails(self, item_id):
4933
    """
4934
    Parameters:
4935
     - item_id
4936
    """
4937
    self.send_getSnapdealItemDetails(item_id)
4938
    return self.recv_getSnapdealItemDetails()
4939
 
4940
  def send_getSnapdealItemDetails(self, item_id):
4941
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
4942
    args = getSnapdealItemDetails_args()
4943
    args.item_id = item_id
4944
    args.write(self._oprot)
4945
    self._oprot.writeMessageEnd()
4946
    self._oprot.trans.flush()
4947
 
4948
  def recv_getSnapdealItemDetails(self, ):
4949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4950
    if mtype == TMessageType.EXCEPTION:
4951
      x = TApplicationException()
4952
      x.read(self._iprot)
4953
      self._iprot.readMessageEnd()
4954
      raise x
4955
    result = getSnapdealItemDetails_result()
4956
    result.read(self._iprot)
4957
    self._iprot.readMessageEnd()
4958
    if result.success is not None:
4959
      return result.success
4960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
4961
 
8739 vikram.rag 4962
  def getAllSnapdealItems(self, ):
4963
    self.send_getAllSnapdealItems()
4964
    return self.recv_getAllSnapdealItems()
4965
 
4966
  def send_getAllSnapdealItems(self, ):
4967
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
4968
    args = getAllSnapdealItems_args()
4969
    args.write(self._oprot)
4970
    self._oprot.writeMessageEnd()
4971
    self._oprot.trans.flush()
4972
 
4973
  def recv_getAllSnapdealItems(self, ):
4974
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4975
    if mtype == TMessageType.EXCEPTION:
4976
      x = TApplicationException()
4977
      x.read(self._iprot)
4978
      self._iprot.readMessageEnd()
4979
      raise x
4980
    result = getAllSnapdealItems_result()
4981
    result.read(self._iprot)
4982
    self._iprot.readMessageEnd()
4983
    if result.success is not None:
4984
      return result.success
4985
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4986
 
9242 kshitij.so 4987
  def getSnapdealItems(self, offset, limit):
4988
    """
4989
    Parameters:
4990
     - offset
4991
     - limit
4992
    """
4993
    self.send_getSnapdealItems(offset, limit)
4994
    return self.recv_getSnapdealItems()
8739 vikram.rag 4995
 
9242 kshitij.so 4996
  def send_getSnapdealItems(self, offset, limit):
4997
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
4998
    args = getSnapdealItems_args()
4999
    args.offset = offset
5000
    args.limit = limit
5001
    args.write(self._oprot)
5002
    self._oprot.writeMessageEnd()
5003
    self._oprot.trans.flush()
5004
 
5005
  def recv_getSnapdealItems(self, ):
5006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5007
    if mtype == TMessageType.EXCEPTION:
5008
      x = TApplicationException()
5009
      x.read(self._iprot)
5010
      self._iprot.readMessageEnd()
5011
      raise x
5012
    result = getSnapdealItems_result()
5013
    result.read(self._iprot)
5014
    self._iprot.readMessageEnd()
5015
    if result.success is not None:
5016
      return result.success
5017
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5018
 
5019
  def searchSnapdealItems(self, searchTerm, offset, limit):
5020
    """
5021
    Parameters:
5022
     - searchTerm
5023
     - offset
5024
     - limit
5025
    """
5026
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5027
    return self.recv_searchSnapdealItems()
5028
 
5029
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5030
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5031
    args = searchSnapdealItems_args()
5032
    args.searchTerm = searchTerm
5033
    args.offset = offset
5034
    args.limit = limit
5035
    args.write(self._oprot)
5036
    self._oprot.writeMessageEnd()
5037
    self._oprot.trans.flush()
5038
 
5039
  def recv_searchSnapdealItems(self, ):
5040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5041
    if mtype == TMessageType.EXCEPTION:
5042
      x = TApplicationException()
5043
      x.read(self._iprot)
5044
      self._iprot.readMessageEnd()
5045
      raise x
5046
    result = searchSnapdealItems_result()
5047
    result.read(self._iprot)
5048
    self._iprot.readMessageEnd()
5049
    if result.success is not None:
5050
      return result.success
5051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5052
 
5053
  def getCountForSnapdealItems(self, ):
5054
    self.send_getCountForSnapdealItems()
5055
    return self.recv_getCountForSnapdealItems()
5056
 
5057
  def send_getCountForSnapdealItems(self, ):
5058
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5059
    args = getCountForSnapdealItems_args()
5060
    args.write(self._oprot)
5061
    self._oprot.writeMessageEnd()
5062
    self._oprot.trans.flush()
5063
 
5064
  def recv_getCountForSnapdealItems(self, ):
5065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5066
    if mtype == TMessageType.EXCEPTION:
5067
      x = TApplicationException()
5068
      x.read(self._iprot)
5069
      self._iprot.readMessageEnd()
5070
      raise x
5071
    result = getCountForSnapdealItems_result()
5072
    result.read(self._iprot)
5073
    self._iprot.readMessageEnd()
5074
    if result.success is not None:
5075
      return result.success
5076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5077
 
5078
  def getSnapdealSearchResultCount(self, searchTerm):
5079
    """
5080
    Parameters:
5081
     - searchTerm
5082
    """
5083
    self.send_getSnapdealSearchResultCount(searchTerm)
5084
    return self.recv_getSnapdealSearchResultCount()
5085
 
5086
  def send_getSnapdealSearchResultCount(self, searchTerm):
5087
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5088
    args = getSnapdealSearchResultCount_args()
5089
    args.searchTerm = searchTerm
5090
    args.write(self._oprot)
5091
    self._oprot.writeMessageEnd()
5092
    self._oprot.trans.flush()
5093
 
5094
  def recv_getSnapdealSearchResultCount(self, ):
5095
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5096
    if mtype == TMessageType.EXCEPTION:
5097
      x = TApplicationException()
5098
      x.read(self._iprot)
5099
      self._iprot.readMessageEnd()
5100
      raise x
5101
    result = getSnapdealSearchResultCount_result()
5102
    result.read(self._iprot)
5103
    self._iprot.readMessageEnd()
5104
    if result.success is not None:
5105
      return result.success
5106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5107
 
9299 kshitij.so 5108
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5109
    """
5110
    Parameters:
5111
     - itemId
5112
     - insurerType
5113
    """
5114
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5115
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5116
 
9299 kshitij.so 5117
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5118
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5119
    args = getPrefferedInsurerForItem_args()
5120
    args.itemId = itemId
5121
    args.insurerType = insurerType
5122
    args.write(self._oprot)
5123
    self._oprot.writeMessageEnd()
5124
    self._oprot.trans.flush()
5125
 
5126
  def recv_getPrefferedInsurerForItem(self, ):
5127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5128
    if mtype == TMessageType.EXCEPTION:
5129
      x = TApplicationException()
5130
      x.read(self._iprot)
5131
      self._iprot.readMessageEnd()
5132
      raise x
5133
    result = getPrefferedInsurerForItem_result()
5134
    result.read(self._iprot)
5135
    self._iprot.readMessageEnd()
5136
    if result.success is not None:
5137
      return result.success
5138
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5139
 
9456 vikram.rag 5140
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5141
    """
5142
    Parameters:
5143
     - skuAtSnapdeal
5144
    """
5145
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5146
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5147
 
9456 vikram.rag 5148
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5149
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5150
    args = getSnapdealItembySkuAtSnapdeal_args()
5151
    args.skuAtSnapdeal = skuAtSnapdeal
5152
    args.write(self._oprot)
5153
    self._oprot.writeMessageEnd()
5154
    self._oprot.trans.flush()
5155
 
5156
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5158
    if mtype == TMessageType.EXCEPTION:
5159
      x = TApplicationException()
5160
      x.read(self._iprot)
5161
      self._iprot.readMessageEnd()
5162
      raise x
5163
    result = getSnapdealItembySkuAtSnapdeal_result()
5164
    result.read(self._iprot)
5165
    self._iprot.readMessageEnd()
5166
    if result.success is not None:
5167
      return result.success
5168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5169
 
9621 manish.sha 5170
  def getProductFeedSubmit(self, catalogItemId):
5171
    """
5172
    Parameters:
5173
     - catalogItemId
5174
    """
5175
    self.send_getProductFeedSubmit(catalogItemId)
5176
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5177
 
9621 manish.sha 5178
  def send_getProductFeedSubmit(self, catalogItemId):
5179
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5180
    args = getProductFeedSubmit_args()
5181
    args.catalogItemId = catalogItemId
5182
    args.write(self._oprot)
5183
    self._oprot.writeMessageEnd()
5184
    self._oprot.trans.flush()
5185
 
5186
  def recv_getProductFeedSubmit(self, ):
5187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5188
    if mtype == TMessageType.EXCEPTION:
5189
      x = TApplicationException()
5190
      x.read(self._iprot)
5191
      self._iprot.readMessageEnd()
5192
      raise x
5193
    result = getProductFeedSubmit_result()
5194
    result.read(self._iprot)
5195
    self._iprot.readMessageEnd()
5196
    if result.success is not None:
5197
      return result.success
5198
    if result.cex is not None:
5199
      raise result.cex
5200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5201
 
5202
  def addProductFeedSubmit(self, productFeedSubmit):
5203
    """
5204
    Parameters:
5205
     - productFeedSubmit
5206
    """
5207
    self.send_addProductFeedSubmit(productFeedSubmit)
5208
    return self.recv_addProductFeedSubmit()
5209
 
5210
  def send_addProductFeedSubmit(self, productFeedSubmit):
5211
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5212
    args = addProductFeedSubmit_args()
5213
    args.productFeedSubmit = productFeedSubmit
5214
    args.write(self._oprot)
5215
    self._oprot.writeMessageEnd()
5216
    self._oprot.trans.flush()
5217
 
5218
  def recv_addProductFeedSubmit(self, ):
5219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5220
    if mtype == TMessageType.EXCEPTION:
5221
      x = TApplicationException()
5222
      x.read(self._iprot)
5223
      self._iprot.readMessageEnd()
5224
      raise x
5225
    result = addProductFeedSubmit_result()
5226
    result.read(self._iprot)
5227
    self._iprot.readMessageEnd()
5228
    if result.success is not None:
5229
      return result.success
5230
    if result.cex is not None:
5231
      raise result.cex
5232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5233
 
5234
  def updateProductFeedSubmit(self, productFeedSubmit):
5235
    """
5236
    Parameters:
5237
     - productFeedSubmit
5238
    """
5239
    self.send_updateProductFeedSubmit(productFeedSubmit)
5240
    return self.recv_updateProductFeedSubmit()
5241
 
5242
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5243
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5244
    args = updateProductFeedSubmit_args()
5245
    args.productFeedSubmit = productFeedSubmit
5246
    args.write(self._oprot)
5247
    self._oprot.writeMessageEnd()
5248
    self._oprot.trans.flush()
5249
 
5250
  def recv_updateProductFeedSubmit(self, ):
5251
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5252
    if mtype == TMessageType.EXCEPTION:
5253
      x = TApplicationException()
5254
      x.read(self._iprot)
5255
      self._iprot.readMessageEnd()
5256
      raise x
5257
    result = updateProductFeedSubmit_result()
5258
    result.read(self._iprot)
5259
    self._iprot.readMessageEnd()
5260
    if result.success is not None:
5261
      return result.success
5262
    if result.cex is not None:
5263
      raise result.cex
5264
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5265
 
5266
  def deleteProductFeedSubmit(self, catalogItemId):
5267
    """
5268
    Parameters:
5269
     - catalogItemId
5270
    """
5271
    self.send_deleteProductFeedSubmit(catalogItemId)
5272
    return self.recv_deleteProductFeedSubmit()
5273
 
5274
  def send_deleteProductFeedSubmit(self, catalogItemId):
5275
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5276
    args = deleteProductFeedSubmit_args()
5277
    args.catalogItemId = catalogItemId
5278
    args.write(self._oprot)
5279
    self._oprot.writeMessageEnd()
5280
    self._oprot.trans.flush()
5281
 
5282
  def recv_deleteProductFeedSubmit(self, ):
5283
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5284
    if mtype == TMessageType.EXCEPTION:
5285
      x = TApplicationException()
5286
      x.read(self._iprot)
5287
      self._iprot.readMessageEnd()
5288
      raise x
5289
    result = deleteProductFeedSubmit_result()
5290
    result.read(self._iprot)
5291
    self._iprot.readMessageEnd()
5292
    if result.success is not None:
5293
      return result.success
5294
    if result.cex is not None:
5295
      raise result.cex
5296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5297
 
5298
  def getAllProductFeedSubmit(self, ):
5299
    self.send_getAllProductFeedSubmit()
5300
    return self.recv_getAllProductFeedSubmit()
5301
 
5302
  def send_getAllProductFeedSubmit(self, ):
5303
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5304
    args = getAllProductFeedSubmit_args()
5305
    args.write(self._oprot)
5306
    self._oprot.writeMessageEnd()
5307
    self._oprot.trans.flush()
5308
 
5309
  def recv_getAllProductFeedSubmit(self, ):
5310
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5311
    if mtype == TMessageType.EXCEPTION:
5312
      x = TApplicationException()
5313
      x.read(self._iprot)
5314
      self._iprot.readMessageEnd()
5315
      raise x
5316
    result = getAllProductFeedSubmit_result()
5317
    result.read(self._iprot)
5318
    self._iprot.readMessageEnd()
5319
    if result.success is not None:
5320
      return result.success
5321
    if result.cex is not None:
5322
      raise result.cex
5323
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5324
 
9724 kshitij.so 5325
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5326
    """
5327
    Parameters:
5328
     - itemId
5329
     - sourceId
5330
    """
5331
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5332
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5333
 
9724 kshitij.so 5334
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5335
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5336
    args = getMarketplacedetailsForItem_args()
5337
    args.itemId = itemId
5338
    args.sourceId = sourceId
5339
    args.write(self._oprot)
5340
    self._oprot.writeMessageEnd()
5341
    self._oprot.trans.flush()
5342
 
5343
  def recv_getMarketplacedetailsForItem(self, ):
5344
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5345
    if mtype == TMessageType.EXCEPTION:
5346
      x = TApplicationException()
5347
      x.read(self._iprot)
5348
      self._iprot.readMessageEnd()
5349
      raise x
5350
    result = getMarketplacedetailsForItem_result()
5351
    result.read(self._iprot)
5352
    self._iprot.readMessageEnd()
5353
    if result.success is not None:
5354
      return result.success
5355
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5356
 
5357
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5358
    """
5359
    Parameters:
5360
     - marketPlaceItem
5361
    """
5362
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5363
    return self.recv_updateMarketplaceAttributesForItem()
5364
 
5365
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5366
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5367
    args = updateMarketplaceAttributesForItem_args()
5368
    args.marketPlaceItem = marketPlaceItem
5369
    args.write(self._oprot)
5370
    self._oprot.writeMessageEnd()
5371
    self._oprot.trans.flush()
5372
 
5373
  def recv_updateMarketplaceAttributesForItem(self, ):
5374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5375
    if mtype == TMessageType.EXCEPTION:
5376
      x = TApplicationException()
5377
      x.read(self._iprot)
5378
      self._iprot.readMessageEnd()
5379
      raise x
5380
    result = updateMarketplaceAttributesForItem_result()
5381
    result.read(self._iprot)
5382
    self._iprot.readMessageEnd()
5383
    if result.success is not None:
5384
      return result.success
5385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5386
 
9779 kshitij.so 5387
  def getCostingForMarketplace(self, source, item_id):
5388
    """
5389
    Parameters:
5390
     - source
5391
     - item_id
5392
    """
5393
    self.send_getCostingForMarketplace(source, item_id)
5394
    return self.recv_getCostingForMarketplace()
5395
 
5396
  def send_getCostingForMarketplace(self, source, item_id):
5397
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5398
    args = getCostingForMarketplace_args()
5399
    args.source = source
5400
    args.item_id = item_id
5401
    args.write(self._oprot)
5402
    self._oprot.writeMessageEnd()
5403
    self._oprot.trans.flush()
5404
 
5405
  def recv_getCostingForMarketplace(self, ):
5406
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5407
    if mtype == TMessageType.EXCEPTION:
5408
      x = TApplicationException()
5409
      x.read(self._iprot)
5410
      self._iprot.readMessageEnd()
5411
      raise x
5412
    result = getCostingForMarketplace_result()
5413
    result.read(self._iprot)
5414
    self._iprot.readMessageEnd()
5415
    if result.success is not None:
5416
      return result.success
5417
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5418
 
9776 vikram.rag 5419
  def getMarketPlaceItemsForPriceUpdate(self, source):
5420
    """
5421
    Parameters:
5422
     - source
5423
    """
5424
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5425
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5426
 
9776 vikram.rag 5427
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5428
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5429
    args = getMarketPlaceItemsForPriceUpdate_args()
5430
    args.source = source
5431
    args.write(self._oprot)
5432
    self._oprot.writeMessageEnd()
5433
    self._oprot.trans.flush()
5434
 
5435
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5436
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5437
    if mtype == TMessageType.EXCEPTION:
5438
      x = TApplicationException()
5439
      x.read(self._iprot)
5440
      self._iprot.readMessageEnd()
5441
      raise x
5442
    result = getMarketPlaceItemsForPriceUpdate_result()
5443
    result.read(self._iprot)
5444
    self._iprot.readMessageEnd()
5445
    if result.success is not None:
5446
      return result.success
5447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5448
 
9816 kshitij.so 5449
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5450
    """
5451
    Parameters:
5452
     - skulist
5453
     - timestamp
9816 kshitij.so 5454
     - source
9776 vikram.rag 5455
    """
9816 kshitij.so 5456
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5457
    self.recv_updateMarketPlacePriceUpdateStatus()
5458
 
9816 kshitij.so 5459
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5460
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5461
    args = updateMarketPlacePriceUpdateStatus_args()
5462
    args.skulist = skulist
5463
    args.timestamp = timestamp
9816 kshitij.so 5464
    args.source = source
9776 vikram.rag 5465
    args.write(self._oprot)
5466
    self._oprot.writeMessageEnd()
5467
    self._oprot.trans.flush()
5468
 
5469
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5471
    if mtype == TMessageType.EXCEPTION:
5472
      x = TApplicationException()
5473
      x.read(self._iprot)
5474
      self._iprot.readMessageEnd()
5475
      raise x
5476
    result = updateMarketPlacePriceUpdateStatus_result()
5477
    result.read(self._iprot)
5478
    self._iprot.readMessageEnd()
5479
    return
5480
 
9861 rajveer 5481
  def updateItemHoldInventory(self, itemHoldMap):
5482
    """
5483
    Parameters:
5484
     - itemHoldMap
5485
    """
5486
    self.send_updateItemHoldInventory(itemHoldMap)
5487
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5488
 
9861 rajveer 5489
  def send_updateItemHoldInventory(self, itemHoldMap):
5490
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5491
    args = updateItemHoldInventory_args()
5492
    args.itemHoldMap = itemHoldMap
5493
    args.write(self._oprot)
5494
    self._oprot.writeMessageEnd()
5495
    self._oprot.trans.flush()
5496
 
5497
  def recv_updateItemHoldInventory(self, ):
5498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5499
    if mtype == TMessageType.EXCEPTION:
5500
      x = TApplicationException()
5501
      x.read(self._iprot)
5502
      self._iprot.readMessageEnd()
5503
      raise x
5504
    result = updateItemHoldInventory_result()
5505
    result.read(self._iprot)
5506
    self._iprot.readMessageEnd()
5507
    return
5508
 
9895 vikram.rag 5509
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5510
    """
5511
    Parameters:
5512
     - item_id
5513
     - vendor_id
5514
     - nlc
5515
    """
5516
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5517
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5518
 
9895 vikram.rag 5519
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5520
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5521
    args = updateNlcAtMarketplaces_args()
5522
    args.item_id = item_id
5523
    args.vendor_id = vendor_id
5524
    args.nlc = nlc
5525
    args.write(self._oprot)
5526
    self._oprot.writeMessageEnd()
5527
    self._oprot.trans.flush()
5528
 
5529
  def recv_updateNlcAtMarketplaces(self, ):
5530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5531
    if mtype == TMessageType.EXCEPTION:
5532
      x = TApplicationException()
5533
      x.read(self._iprot)
5534
      self._iprot.readMessageEnd()
5535
      raise x
5536
    result = updateNlcAtMarketplaces_result()
5537
    result.read(self._iprot)
5538
    self._iprot.readMessageEnd()
5539
    return
5540
 
9945 vikram.rag 5541
  def getAllFlipkartItems(self, ):
5542
    self.send_getAllFlipkartItems()
5543
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5544
 
9945 vikram.rag 5545
  def send_getAllFlipkartItems(self, ):
5546
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5547
    args = getAllFlipkartItems_args()
5548
    args.write(self._oprot)
5549
    self._oprot.writeMessageEnd()
5550
    self._oprot.trans.flush()
5551
 
5552
  def recv_getAllFlipkartItems(self, ):
5553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5554
    if mtype == TMessageType.EXCEPTION:
5555
      x = TApplicationException()
5556
      x.read(self._iprot)
5557
      self._iprot.readMessageEnd()
5558
      raise x
5559
    result = getAllFlipkartItems_result()
5560
    result.read(self._iprot)
5561
    self._iprot.readMessageEnd()
5562
    if result.success is not None:
5563
      return result.success
5564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5565
 
10097 kshitij.so 5566
  def addOrUpdateFlipkartItem(self, flipkartitem):
5567
    """
5568
    Parameters:
5569
     - flipkartitem
5570
    """
5571
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5572
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5573
 
10097 kshitij.so 5574
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5575
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5576
    args = addOrUpdateFlipkartItem_args()
5577
    args.flipkartitem = flipkartitem
5578
    args.write(self._oprot)
5579
    self._oprot.writeMessageEnd()
5580
    self._oprot.trans.flush()
5581
 
5582
  def recv_addOrUpdateFlipkartItem(self, ):
5583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5584
    if mtype == TMessageType.EXCEPTION:
5585
      x = TApplicationException()
5586
      x.read(self._iprot)
5587
      self._iprot.readMessageEnd()
5588
      raise x
5589
    result = addOrUpdateFlipkartItem_result()
5590
    result.read(self._iprot)
5591
    self._iprot.readMessageEnd()
5592
    if result.success is not None:
5593
      return result.success
5594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5595
 
5596
  def getFlipkartItem(self, item_id):
5597
    """
5598
    Parameters:
5599
     - item_id
5600
    """
5601
    self.send_getFlipkartItem(item_id)
5602
    return self.recv_getFlipkartItem()
5603
 
5604
  def send_getFlipkartItem(self, item_id):
5605
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5606
    args = getFlipkartItem_args()
5607
    args.item_id = item_id
5608
    args.write(self._oprot)
5609
    self._oprot.writeMessageEnd()
5610
    self._oprot.trans.flush()
5611
 
5612
  def recv_getFlipkartItem(self, ):
5613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5614
    if mtype == TMessageType.EXCEPTION:
5615
      x = TApplicationException()
5616
      x.read(self._iprot)
5617
      self._iprot.readMessageEnd()
5618
      raise x
5619
    result = getFlipkartItem_result()
5620
    result.read(self._iprot)
5621
    self._iprot.readMessageEnd()
5622
    if result.success is not None:
5623
      return result.success
5624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5625
 
5626
  def getFlipkartItemDetails(self, item_id):
5627
    """
5628
    Parameters:
5629
     - item_id
5630
    """
5631
    self.send_getFlipkartItemDetails(item_id)
5632
    return self.recv_getFlipkartItemDetails()
5633
 
5634
  def send_getFlipkartItemDetails(self, item_id):
5635
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5636
    args = getFlipkartItemDetails_args()
5637
    args.item_id = item_id
5638
    args.write(self._oprot)
5639
    self._oprot.writeMessageEnd()
5640
    self._oprot.trans.flush()
5641
 
5642
  def recv_getFlipkartItemDetails(self, ):
5643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5644
    if mtype == TMessageType.EXCEPTION:
5645
      x = TApplicationException()
5646
      x.read(self._iprot)
5647
      self._iprot.readMessageEnd()
5648
      raise x
5649
    result = getFlipkartItemDetails_result()
5650
    result.read(self._iprot)
5651
    self._iprot.readMessageEnd()
5652
    if result.success is not None:
5653
      return result.success
5654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5655
 
5656
  def getFlipkartItems(self, offset, limit):
5657
    """
5658
    Parameters:
5659
     - offset
5660
     - limit
5661
    """
5662
    self.send_getFlipkartItems(offset, limit)
5663
    return self.recv_getFlipkartItems()
5664
 
5665
  def send_getFlipkartItems(self, offset, limit):
5666
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5667
    args = getFlipkartItems_args()
5668
    args.offset = offset
5669
    args.limit = limit
5670
    args.write(self._oprot)
5671
    self._oprot.writeMessageEnd()
5672
    self._oprot.trans.flush()
5673
 
5674
  def recv_getFlipkartItems(self, ):
5675
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5676
    if mtype == TMessageType.EXCEPTION:
5677
      x = TApplicationException()
5678
      x.read(self._iprot)
5679
      self._iprot.readMessageEnd()
5680
      raise x
5681
    result = getFlipkartItems_result()
5682
    result.read(self._iprot)
5683
    self._iprot.readMessageEnd()
5684
    if result.success is not None:
5685
      return result.success
5686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5687
 
5688
  def searchFlipkartItems(self, searchTerm, offset, limit):
5689
    """
5690
    Parameters:
5691
     - searchTerm
5692
     - offset
5693
     - limit
5694
    """
5695
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5696
    return self.recv_searchFlipkartItems()
5697
 
5698
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5699
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5700
    args = searchFlipkartItems_args()
5701
    args.searchTerm = searchTerm
5702
    args.offset = offset
5703
    args.limit = limit
5704
    args.write(self._oprot)
5705
    self._oprot.writeMessageEnd()
5706
    self._oprot.trans.flush()
5707
 
5708
  def recv_searchFlipkartItems(self, ):
5709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5710
    if mtype == TMessageType.EXCEPTION:
5711
      x = TApplicationException()
5712
      x.read(self._iprot)
5713
      self._iprot.readMessageEnd()
5714
      raise x
5715
    result = searchFlipkartItems_result()
5716
    result.read(self._iprot)
5717
    self._iprot.readMessageEnd()
5718
    if result.success is not None:
5719
      return result.success
5720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5721
 
5722
  def getCountForFlipkartItems(self, ):
5723
    self.send_getCountForFlipkartItems()
5724
    return self.recv_getCountForFlipkartItems()
5725
 
5726
  def send_getCountForFlipkartItems(self, ):
5727
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5728
    args = getCountForFlipkartItems_args()
5729
    args.write(self._oprot)
5730
    self._oprot.writeMessageEnd()
5731
    self._oprot.trans.flush()
5732
 
5733
  def recv_getCountForFlipkartItems(self, ):
5734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5735
    if mtype == TMessageType.EXCEPTION:
5736
      x = TApplicationException()
5737
      x.read(self._iprot)
5738
      self._iprot.readMessageEnd()
5739
      raise x
5740
    result = getCountForFlipkartItems_result()
5741
    result.read(self._iprot)
5742
    self._iprot.readMessageEnd()
5743
    if result.success is not None:
5744
      return result.success
5745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5746
 
5747
  def getFlipkartSearchResultCount(self, searchTerm):
5748
    """
5749
    Parameters:
5750
     - searchTerm
5751
    """
5752
    self.send_getFlipkartSearchResultCount(searchTerm)
5753
    return self.recv_getFlipkartSearchResultCount()
5754
 
5755
  def send_getFlipkartSearchResultCount(self, searchTerm):
5756
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5757
    args = getFlipkartSearchResultCount_args()
5758
    args.searchTerm = searchTerm
5759
    args.write(self._oprot)
5760
    self._oprot.writeMessageEnd()
5761
    self._oprot.trans.flush()
5762
 
5763
  def recv_getFlipkartSearchResultCount(self, ):
5764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5765
    if mtype == TMessageType.EXCEPTION:
5766
      x = TApplicationException()
5767
      x.read(self._iprot)
5768
      self._iprot.readMessageEnd()
5769
      raise x
5770
    result = getFlipkartSearchResultCount_result()
5771
    result.read(self._iprot)
5772
    self._iprot.readMessageEnd()
5773
    if result.success is not None:
5774
      return result.success
5775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5776
 
5777
  def getAllFkItems(self, ):
5778
    self.send_getAllFkItems()
5779
    return self.recv_getAllFkItems()
5780
 
5781
  def send_getAllFkItems(self, ):
5782
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5783
    args = getAllFkItems_args()
5784
    args.write(self._oprot)
5785
    self._oprot.writeMessageEnd()
5786
    self._oprot.trans.flush()
5787
 
5788
  def recv_getAllFkItems(self, ):
5789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5790
    if mtype == TMessageType.EXCEPTION:
5791
      x = TApplicationException()
5792
      x.read(self._iprot)
5793
      self._iprot.readMessageEnd()
5794
      raise x
5795
    result = getAllFkItems_result()
5796
    result.read(self._iprot)
5797
    self._iprot.readMessageEnd()
5798
    if result.success is not None:
5799
      return result.success
5800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
5801
 
5802
 
5944 mandeep.dh 5803
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5804
  def __init__(self, handler):
5805
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5806
    self._processMap["addItem"] = Processor.process_addItem
5807
    self._processMap["updateItem"] = Processor.process_updateItem
5808
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 5809
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 5810
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
5811
    self._processMap["startItemOn"] = Processor.process_startItemOn
5812
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
5813
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
5814
    self._processMap["getItem"] = Processor.process_getItem
5815
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
5816
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
5817
    self._processMap["getAllItems"] = Processor.process_getAllItems
5818
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
5819
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
5820
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
5821
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
5822
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
5823
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
5824
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
5825
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
5826
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
5827
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
5828
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
5829
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
5830
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
5831
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
5832
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
5833
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
5834
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
5835
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
5836
    self._processMap["addCategory"] = Processor.process_addCategory
5837
    self._processMap["getCategory"] = Processor.process_getCategory
5838
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
5839
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
5840
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 5841
    self._processMap["addTag"] = Processor.process_addTag
5842
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
5843
    self._processMap["deleteTag"] = Processor.process_deleteTag
5844
    self._processMap["getAllTags"] = Processor.process_getAllTags
5845
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 5846
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 5847
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 5848
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 5849
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
5850
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
5851
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
5852
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 5853
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 5854
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 5855
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
5856
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 5857
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
5858
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
5859
    self._processMap["addCampaign"] = Processor.process_addCampaign
5860
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
5861
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
5862
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 5863
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 5864
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
5865
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
5866
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
5867
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
5868
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
5869
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
5870
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
5871
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
5872
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
5873
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
5874
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
5875
    self._processMap["getAllSources"] = Processor.process_getAllSources
5876
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
5877
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
5878
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
5879
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
5880
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
5881
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
5882
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
5883
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
5884
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
5885
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
5886
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
5887
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
5888
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
5889
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 5890
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
5891
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 5892
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 5893
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 5894
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
5895
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 5896
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 5897
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 5898
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
5899
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 5900
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
5901
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 5902
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 5903
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 5904
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 5905
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 5906
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
5907
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
5908
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 5909
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
5910
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
5911
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 5912
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
5913
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
5914
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 5915
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 5916
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 5917
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 5918
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
5919
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 5920
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
5921
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
5922
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 5923
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 5924
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 5925
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
5926
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 5927
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 5928
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
5929
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 5930
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 5931
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 5932
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
5933
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
5934
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
5935
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 5936
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 5937
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 5938
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
5939
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
5940
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
5941
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
5942
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 5943
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5944
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 5945
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 5946
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5947
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 5948
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 5949
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 5950
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 5951
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
5952
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
5953
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
5954
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
5955
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
5956
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
5957
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
5958
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
5944 mandeep.dh 5959
 
5960
  def process(self, iprot, oprot):
5961
    (name, type, seqid) = iprot.readMessageBegin()
5962
    if name not in self._processMap:
5963
      iprot.skip(TType.STRUCT)
5964
      iprot.readMessageEnd()
5965
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
5966
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
5967
      x.write(oprot)
5968
      oprot.writeMessageEnd()
5969
      oprot.trans.flush()
5970
      return
5971
    else:
5972
      self._processMap[name](self, seqid, iprot, oprot)
5973
    return True
5974
 
5975
  def process_addItem(self, seqid, iprot, oprot):
5976
    args = addItem_args()
5977
    args.read(iprot)
5978
    iprot.readMessageEnd()
5979
    result = addItem_result()
5980
    try:
5981
      result.success = self._handler.addItem(args.item)
5982
    except CatalogServiceException, cex:
5983
      result.cex = cex
5984
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
5985
    result.write(oprot)
5986
    oprot.writeMessageEnd()
5987
    oprot.trans.flush()
5988
 
5989
  def process_updateItem(self, seqid, iprot, oprot):
5990
    args = updateItem_args()
5991
    args.read(iprot)
5992
    iprot.readMessageEnd()
5993
    result = updateItem_result()
5994
    try:
5995
      result.success = self._handler.updateItem(args.item)
5996
    except CatalogServiceException, cex:
5997
      result.cex = cex
5998
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
5999
    result.write(oprot)
6000
    oprot.writeMessageEnd()
6001
    oprot.trans.flush()
6002
 
6003
  def process_isActive(self, seqid, iprot, oprot):
6004
    args = isActive_args()
6005
    args.read(iprot)
6006
    iprot.readMessageEnd()
6007
    result = isActive_result()
6008
    try:
6009
      result.success = self._handler.isActive(args.itemId)
6010
    except CatalogServiceException, isex:
6011
      result.isex = isex
6012
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
6013
    result.write(oprot)
6014
    oprot.writeMessageEnd()
6015
    oprot.trans.flush()
6016
 
7438 amit.gupta 6017
  def process_getItemsStatus(self, seqid, iprot, oprot):
6018
    args = getItemsStatus_args()
6019
    args.read(iprot)
6020
    iprot.readMessageEnd()
6021
    result = getItemsStatus_result()
6022
    try:
6023
      result.success = self._handler.getItemsStatus(args.itemIds)
6024
    except CatalogServiceException, isex:
6025
      result.isex = isex
6026
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
6027
    result.write(oprot)
6028
    oprot.writeMessageEnd()
6029
    oprot.trans.flush()
6030
 
5944 mandeep.dh 6031
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
6032
    args = getItemStatusDescription_args()
6033
    args.read(iprot)
6034
    iprot.readMessageEnd()
6035
    result = getItemStatusDescription_result()
6036
    try:
6037
      result.success = self._handler.getItemStatusDescription(args.itemId)
6038
    except CatalogServiceException, isex:
6039
      result.isex = isex
6040
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
6041
    result.write(oprot)
6042
    oprot.writeMessageEnd()
6043
    oprot.trans.flush()
6044
 
6045
  def process_startItemOn(self, seqid, iprot, oprot):
6046
    args = startItemOn_args()
6047
    args.read(iprot)
6048
    iprot.readMessageEnd()
6049
    result = startItemOn_result()
6050
    try:
6051
      self._handler.startItemOn(args.item_id, args.timestamp)
6052
    except CatalogServiceException, cex:
6053
      result.cex = cex
6054
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
6055
    result.write(oprot)
6056
    oprot.writeMessageEnd()
6057
    oprot.trans.flush()
6058
 
6059
  def process_retireItemOn(self, seqid, iprot, oprot):
6060
    args = retireItemOn_args()
6061
    args.read(iprot)
6062
    iprot.readMessageEnd()
6063
    result = retireItemOn_result()
6064
    try:
6065
      self._handler.retireItemOn(args.item_id, args.timestamp)
6066
    except CatalogServiceException, cex:
6067
      result.cex = cex
6068
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
6069
    result.write(oprot)
6070
    oprot.writeMessageEnd()
6071
    oprot.trans.flush()
6072
 
6073
  def process_changeItemStatus(self, seqid, iprot, oprot):
6074
    args = changeItemStatus_args()
6075
    args.read(iprot)
6076
    iprot.readMessageEnd()
6077
    result = changeItemStatus_result()
6078
    try:
6079
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
6080
    except CatalogServiceException, cex:
6081
      result.cex = cex
6082
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
6083
    result.write(oprot)
6084
    oprot.writeMessageEnd()
6085
    oprot.trans.flush()
6086
 
6087
  def process_getItem(self, seqid, iprot, oprot):
6088
    args = getItem_args()
6089
    args.read(iprot)
6090
    iprot.readMessageEnd()
6091
    result = getItem_result()
6092
    try:
6093
      result.success = self._handler.getItem(args.item_id)
6094
    except CatalogServiceException, cex:
6095
      result.cex = cex
6096
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
6097
    result.write(oprot)
6098
    oprot.writeMessageEnd()
6099
    oprot.trans.flush()
6100
 
6101
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
6102
    args = getItemsByCatalogId_args()
6103
    args.read(iprot)
6104
    iprot.readMessageEnd()
6105
    result = getItemsByCatalogId_result()
6106
    try:
6107
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
6108
    except CatalogServiceException, cex:
6109
      result.cex = cex
6110
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
6111
    result.write(oprot)
6112
    oprot.writeMessageEnd()
6113
    oprot.trans.flush()
6114
 
6115
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
6116
    args = getValidItemsByCatalogId_args()
6117
    args.read(iprot)
6118
    iprot.readMessageEnd()
6119
    result = getValidItemsByCatalogId_result()
6120
    try:
6121
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
6122
    except CatalogServiceException, cex:
6123
      result.cex = cex
6124
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
6125
    result.write(oprot)
6126
    oprot.writeMessageEnd()
6127
    oprot.trans.flush()
6128
 
6129
  def process_getAllItems(self, seqid, iprot, oprot):
6130
    args = getAllItems_args()
6131
    args.read(iprot)
6132
    iprot.readMessageEnd()
6133
    result = getAllItems_result()
6134
    try:
6135
      result.success = self._handler.getAllItems(args.isActive)
6136
    except CatalogServiceException, cex:
6137
      result.cex = cex
6138
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
6139
    result.write(oprot)
6140
    oprot.writeMessageEnd()
6141
    oprot.trans.flush()
6142
 
6143
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
6144
    args = getAllItemsByStatus_args()
6145
    args.read(iprot)
6146
    iprot.readMessageEnd()
6147
    result = getAllItemsByStatus_result()
6148
    try:
6149
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
6150
    except CatalogServiceException, cex:
6151
      result.cex = cex
6152
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
6153
    result.write(oprot)
6154
    oprot.writeMessageEnd()
6155
    oprot.trans.flush()
6156
 
6157
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
6158
    args = markItemAsContentComplete_args()
6159
    args.read(iprot)
6160
    iprot.readMessageEnd()
6161
    result = markItemAsContentComplete_result()
6162
    try:
9253 rajveer 6163
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 6164
    except CatalogServiceException, cex:
6165
      result.cex = cex
6166
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
6167
    result.write(oprot)
6168
    oprot.writeMessageEnd()
6169
    oprot.trans.flush()
6170
 
6171
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
6172
    args = getAllItemsInRange_args()
6173
    args.read(iprot)
6174
    iprot.readMessageEnd()
6175
    result = getAllItemsInRange_result()
6176
    try:
6177
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
6178
    except CatalogServiceException, cex:
6179
      result.cex = cex
6180
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
6181
    result.write(oprot)
6182
    oprot.writeMessageEnd()
6183
    oprot.trans.flush()
6184
 
6185
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
6186
    args = getAllItemsByStatusInRange_args()
6187
    args.read(iprot)
6188
    iprot.readMessageEnd()
6189
    result = getAllItemsByStatusInRange_result()
6190
    try:
6191
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
6192
    except CatalogServiceException, cex:
6193
      result.cex = cex
6194
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
6195
    result.write(oprot)
6196
    oprot.writeMessageEnd()
6197
    oprot.trans.flush()
6198
 
6199
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
6200
    args = getItemCountByStatus_args()
6201
    args.read(iprot)
6202
    iprot.readMessageEnd()
6203
    result = getItemCountByStatus_result()
6204
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
6205
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
6206
    result.write(oprot)
6207
    oprot.writeMessageEnd()
6208
    oprot.trans.flush()
6209
 
6210
  def process_getBestSellers(self, seqid, iprot, oprot):
6211
    args = getBestSellers_args()
6212
    args.read(iprot)
6213
    iprot.readMessageEnd()
6214
    result = getBestSellers_result()
6215
    try:
6216
      result.success = self._handler.getBestSellers()
6217
    except CatalogServiceException, isex:
6218
      result.isex = isex
6219
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
6220
    result.write(oprot)
6221
    oprot.writeMessageEnd()
6222
    oprot.trans.flush()
6223
 
6224
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
6225
    args = getBestSellersCatalogIds_args()
6226
    args.read(iprot)
6227
    iprot.readMessageEnd()
6228
    result = getBestSellersCatalogIds_result()
6229
    try:
6230
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
6231
    except CatalogServiceException, cex:
6232
      result.cex = cex
6233
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
6234
    result.write(oprot)
6235
    oprot.writeMessageEnd()
6236
    oprot.trans.flush()
6237
 
6238
  def process_getBestSellersCount(self, seqid, iprot, oprot):
6239
    args = getBestSellersCount_args()
6240
    args.read(iprot)
6241
    iprot.readMessageEnd()
6242
    result = getBestSellersCount_result()
6243
    try:
6244
      result.success = self._handler.getBestSellersCount()
6245
    except CatalogServiceException, cex:
6246
      result.cex = cex
6247
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
6248
    result.write(oprot)
6249
    oprot.writeMessageEnd()
6250
    oprot.trans.flush()
6251
 
6252
  def process_getBestDeals(self, seqid, iprot, oprot):
6253
    args = getBestDeals_args()
6254
    args.read(iprot)
6255
    iprot.readMessageEnd()
6256
    result = getBestDeals_result()
6257
    try:
6258
      result.success = self._handler.getBestDeals()
6259
    except CatalogServiceException, isex:
6260
      result.isex = isex
6261
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
6262
    result.write(oprot)
6263
    oprot.writeMessageEnd()
6264
    oprot.trans.flush()
6265
 
6266
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
6267
    args = getBestDealsCatalogIds_args()
6268
    args.read(iprot)
6269
    iprot.readMessageEnd()
6270
    result = getBestDealsCatalogIds_result()
6271
    try:
6272
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
6273
    except CatalogServiceException, cex:
6274
      result.cex = cex
6275
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
6276
    result.write(oprot)
6277
    oprot.writeMessageEnd()
6278
    oprot.trans.flush()
6279
 
6280
  def process_getBestDealsCount(self, seqid, iprot, oprot):
6281
    args = getBestDealsCount_args()
6282
    args.read(iprot)
6283
    iprot.readMessageEnd()
6284
    result = getBestDealsCount_result()
6285
    try:
6286
      result.success = self._handler.getBestDealsCount()
6287
    except CatalogServiceException, cex:
6288
      result.cex = cex
6289
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
6290
    result.write(oprot)
6291
    oprot.writeMessageEnd()
6292
    oprot.trans.flush()
6293
 
6294
  def process_getComingSoon(self, seqid, iprot, oprot):
6295
    args = getComingSoon_args()
6296
    args.read(iprot)
6297
    iprot.readMessageEnd()
6298
    result = getComingSoon_result()
6299
    try:
6300
      result.success = self._handler.getComingSoon()
6301
    except CatalogServiceException, isex:
6302
      result.isex = isex
6303
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
6304
    result.write(oprot)
6305
    oprot.writeMessageEnd()
6306
    oprot.trans.flush()
6307
 
6308
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
6309
    args = getComingSoonCatalogIds_args()
6310
    args.read(iprot)
6311
    iprot.readMessageEnd()
6312
    result = getComingSoonCatalogIds_result()
6313
    try:
6314
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
6315
    except CatalogServiceException, cex:
6316
      result.cex = cex
6317
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
6318
    result.write(oprot)
6319
    oprot.writeMessageEnd()
6320
    oprot.trans.flush()
6321
 
6322
  def process_getComingSoonCount(self, seqid, iprot, oprot):
6323
    args = getComingSoonCount_args()
6324
    args.read(iprot)
6325
    iprot.readMessageEnd()
6326
    result = getComingSoonCount_result()
6327
    try:
6328
      result.success = self._handler.getComingSoonCount()
6329
    except CatalogServiceException, cex:
6330
      result.cex = cex
6331
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
6332
    result.write(oprot)
6333
    oprot.writeMessageEnd()
6334
    oprot.trans.flush()
6335
 
6336
  def process_getLatestArrivals(self, seqid, iprot, oprot):
6337
    args = getLatestArrivals_args()
6338
    args.read(iprot)
6339
    iprot.readMessageEnd()
6340
    result = getLatestArrivals_result()
6341
    try:
6342
      result.success = self._handler.getLatestArrivals()
6343
    except CatalogServiceException, isex:
6344
      result.isex = isex
6345
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
6346
    result.write(oprot)
6347
    oprot.writeMessageEnd()
6348
    oprot.trans.flush()
6349
 
6350
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
6351
    args = getLatestArrivalsCatalogIds_args()
6352
    args.read(iprot)
6353
    iprot.readMessageEnd()
6354
    result = getLatestArrivalsCatalogIds_result()
6355
    try:
6356
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
6357
    except CatalogServiceException, cex:
6358
      result.cex = cex
6359
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
6360
    result.write(oprot)
6361
    oprot.writeMessageEnd()
6362
    oprot.trans.flush()
6363
 
6364
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
6365
    args = getLatestArrivalsCount_args()
6366
    args.read(iprot)
6367
    iprot.readMessageEnd()
6368
    result = getLatestArrivalsCount_result()
6369
    try:
6370
      result.success = self._handler.getLatestArrivalsCount()
6371
    except CatalogServiceException, cex:
6372
      result.cex = cex
6373
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
6374
    result.write(oprot)
6375
    oprot.writeMessageEnd()
6376
    oprot.trans.flush()
6377
 
6378
  def process_generateNewEntityID(self, seqid, iprot, oprot):
6379
    args = generateNewEntityID_args()
6380
    args.read(iprot)
6381
    iprot.readMessageEnd()
6382
    result = generateNewEntityID_result()
6383
    result.success = self._handler.generateNewEntityID()
6384
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
6385
    result.write(oprot)
6386
    oprot.writeMessageEnd()
6387
    oprot.trans.flush()
6388
 
6389
  def process_addCategory(self, seqid, iprot, oprot):
6390
    args = addCategory_args()
6391
    args.read(iprot)
6392
    iprot.readMessageEnd()
6393
    result = addCategory_result()
6394
    result.success = self._handler.addCategory(args.category)
6395
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
6396
    result.write(oprot)
6397
    oprot.writeMessageEnd()
6398
    oprot.trans.flush()
6399
 
6400
  def process_getCategory(self, seqid, iprot, oprot):
6401
    args = getCategory_args()
6402
    args.read(iprot)
6403
    iprot.readMessageEnd()
6404
    result = getCategory_result()
6405
    result.success = self._handler.getCategory(args.id)
6406
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
6407
    result.write(oprot)
6408
    oprot.writeMessageEnd()
6409
    oprot.trans.flush()
6410
 
6411
  def process_getAllCategories(self, seqid, iprot, oprot):
6412
    args = getAllCategories_args()
6413
    args.read(iprot)
6414
    iprot.readMessageEnd()
6415
    result = getAllCategories_result()
6416
    result.success = self._handler.getAllCategories()
6417
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
6418
    result.write(oprot)
6419
    oprot.writeMessageEnd()
6420
    oprot.trans.flush()
6421
 
6422
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
6423
    args = getAllSimilarItems_args()
6424
    args.read(iprot)
6425
    iprot.readMessageEnd()
6426
    result = getAllSimilarItems_result()
6427
    result.success = self._handler.getAllSimilarItems(args.itemId)
6428
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
6429
    result.write(oprot)
6430
    oprot.writeMessageEnd()
6431
    oprot.trans.flush()
6432
 
6433
  def process_addSimilarItem(self, seqid, iprot, oprot):
6434
    args = addSimilarItem_args()
6435
    args.read(iprot)
6436
    iprot.readMessageEnd()
6437
    result = addSimilarItem_result()
6438
    try:
6439
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
6440
    except CatalogServiceException, cex:
6441
      result.cex = cex
6442
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
6443
    result.write(oprot)
6444
    oprot.writeMessageEnd()
6445
    oprot.trans.flush()
6446
 
6512 kshitij.so 6447
  def process_addTag(self, seqid, iprot, oprot):
6448
    args = addTag_args()
6449
    args.read(iprot)
6450
    iprot.readMessageEnd()
6451
    result = addTag_result()
6452
    result.success = self._handler.addTag(args.displayName, args.itemId)
6453
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
6454
    result.write(oprot)
6455
    oprot.writeMessageEnd()
6456
    oprot.trans.flush()
6457
 
6458
  def process_deleteEntityTag(self, seqid, iprot, oprot):
6459
    args = deleteEntityTag_args()
6460
    args.read(iprot)
6461
    iprot.readMessageEnd()
6462
    result = deleteEntityTag_result()
6463
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
6464
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
6465
    result.write(oprot)
6466
    oprot.writeMessageEnd()
6467
    oprot.trans.flush()
6468
 
6469
  def process_deleteTag(self, seqid, iprot, oprot):
6470
    args = deleteTag_args()
6471
    args.read(iprot)
6472
    iprot.readMessageEnd()
6473
    result = deleteTag_result()
6474
    result.success = self._handler.deleteTag(args.displayName)
6475
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
6476
    result.write(oprot)
6477
    oprot.writeMessageEnd()
6478
    oprot.trans.flush()
6479
 
6480
  def process_getAllTags(self, seqid, iprot, oprot):
6481
    args = getAllTags_args()
6482
    args.read(iprot)
6483
    iprot.readMessageEnd()
6484
    result = getAllTags_result()
6485
    result.success = self._handler.getAllTags()
6486
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
6487
    result.write(oprot)
6488
    oprot.writeMessageEnd()
6489
    oprot.trans.flush()
6490
 
6491
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
6492
    args = getAllEntitiesByTagName_args()
6493
    args.read(iprot)
6494
    iprot.readMessageEnd()
6495
    result = getAllEntitiesByTagName_result()
6496
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
6497
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
6498
    result.write(oprot)
6499
    oprot.writeMessageEnd()
6500
    oprot.trans.flush()
6501
 
6845 amit.gupta 6502
  def process_getAllEntityTags(self, seqid, iprot, oprot):
6503
    args = getAllEntityTags_args()
6504
    args.read(iprot)
6505
    iprot.readMessageEnd()
6506
    result = getAllEntityTags_result()
6507
    result.success = self._handler.getAllEntityTags()
6508
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
6509
    result.write(oprot)
6510
    oprot.writeMessageEnd()
6511
    oprot.trans.flush()
6512
 
6850 kshitij.so 6513
  def process_addBanner(self, seqid, iprot, oprot):
6514
    args = addBanner_args()
6515
    args.read(iprot)
6516
    iprot.readMessageEnd()
6517
    result = addBanner_result()
10097 kshitij.so 6518
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 6519
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
6520
    result.write(oprot)
6521
    oprot.writeMessageEnd()
6522
    oprot.trans.flush()
6523
 
8579 kshitij.so 6524
  def process_updateBanner(self, seqid, iprot, oprot):
6525
    args = updateBanner_args()
6526
    args.read(iprot)
6527
    iprot.readMessageEnd()
6528
    result = updateBanner_result()
6529
    result.success = self._handler.updateBanner(args.banner)
6530
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
6531
    result.write(oprot)
6532
    oprot.writeMessageEnd()
6533
    oprot.trans.flush()
6534
 
6850 kshitij.so 6535
  def process_getAllBanners(self, seqid, iprot, oprot):
6536
    args = getAllBanners_args()
6537
    args.read(iprot)
6538
    iprot.readMessageEnd()
6539
    result = getAllBanners_result()
6540
    result.success = self._handler.getAllBanners()
6541
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
6542
    result.write(oprot)
6543
    oprot.writeMessageEnd()
6544
    oprot.trans.flush()
6545
 
6546
  def process_deleteBanner(self, seqid, iprot, oprot):
6547
    args = deleteBanner_args()
6548
    args.read(iprot)
6549
    iprot.readMessageEnd()
6550
    result = deleteBanner_result()
9155 kshitij.so 6551
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 6552
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
6553
    result.write(oprot)
6554
    oprot.writeMessageEnd()
6555
    oprot.trans.flush()
6556
 
6557
  def process_getBannerDetails(self, seqid, iprot, oprot):
6558
    args = getBannerDetails_args()
6559
    args.read(iprot)
6560
    iprot.readMessageEnd()
6561
    result = getBannerDetails_result()
9155 kshitij.so 6562
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 6563
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
6564
    result.write(oprot)
6565
    oprot.writeMessageEnd()
6566
    oprot.trans.flush()
6567
 
6568
  def process_getActiveBanners(self, seqid, iprot, oprot):
6569
    args = getActiveBanners_args()
6570
    args.read(iprot)
6571
    iprot.readMessageEnd()
6572
    result = getActiveBanners_result()
6573
    result.success = self._handler.getActiveBanners()
6574
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
6575
    result.write(oprot)
6576
    oprot.writeMessageEnd()
6577
    oprot.trans.flush()
6578
 
6849 kshitij.so 6579
  def process_addBannerMap(self, seqid, iprot, oprot):
6580
    args = addBannerMap_args()
6581
    args.read(iprot)
6582
    iprot.readMessageEnd()
6583
    result = addBannerMap_result()
8579 kshitij.so 6584
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 6585
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
6586
    result.write(oprot)
6587
    oprot.writeMessageEnd()
6588
    oprot.trans.flush()
6589
 
8579 kshitij.so 6590
  def process_updateBannerMap(self, seqid, iprot, oprot):
6591
    args = updateBannerMap_args()
6592
    args.read(iprot)
6593
    iprot.readMessageEnd()
6594
    result = updateBannerMap_result()
6595
    result.success = self._handler.updateBannerMap(args.bannerMap)
6596
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
6597
    result.write(oprot)
6598
    oprot.writeMessageEnd()
6599
    oprot.trans.flush()
6600
 
6849 kshitij.so 6601
  def process_deleteBannerMap(self, seqid, iprot, oprot):
6602
    args = deleteBannerMap_args()
6603
    args.read(iprot)
6604
    iprot.readMessageEnd()
6605
    result = deleteBannerMap_result()
6606
    result.success = self._handler.deleteBannerMap(args.bannerName)
6607
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
6608
    result.write(oprot)
6609
    oprot.writeMessageEnd()
6610
    oprot.trans.flush()
6611
 
6612
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
6613
    args = getBannerMapDetails_args()
6614
    args.read(iprot)
6615
    iprot.readMessageEnd()
6616
    result = getBannerMapDetails_result()
9155 kshitij.so 6617
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 6618
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
6619
    result.write(oprot)
6620
    oprot.writeMessageEnd()
6621
    oprot.trans.flush()
6622
 
8579 kshitij.so 6623
  def process_addBannerUri(self, seqid, iprot, oprot):
6624
    args = addBannerUri_args()
6625
    args.read(iprot)
6626
    iprot.readMessageEnd()
6627
    result = addBannerUri_result()
6628
    self._handler.addBannerUri(args.bannerUriMappings)
6629
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
6630
    result.write(oprot)
6631
    oprot.writeMessageEnd()
6632
    oprot.trans.flush()
6633
 
6634
  def process_getUriMapping(self, seqid, iprot, oprot):
6635
    args = getUriMapping_args()
6636
    args.read(iprot)
6637
    iprot.readMessageEnd()
6638
    result = getUriMapping_result()
9155 kshitij.so 6639
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 6640
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
6641
    result.write(oprot)
6642
    oprot.writeMessageEnd()
6643
    oprot.trans.flush()
6644
 
6645
  def process_addCampaign(self, seqid, iprot, oprot):
6646
    args = addCampaign_args()
6647
    args.read(iprot)
6648
    iprot.readMessageEnd()
6649
    result = addCampaign_result()
6650
    self._handler.addCampaign(args.campaign)
6651
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
6652
    result.write(oprot)
6653
    oprot.writeMessageEnd()
6654
    oprot.trans.flush()
6655
 
6656
  def process_getCampaigns(self, seqid, iprot, oprot):
6657
    args = getCampaigns_args()
6658
    args.read(iprot)
6659
    iprot.readMessageEnd()
6660
    result = getCampaigns_result()
6661
    result.success = self._handler.getCampaigns(args.campaignName)
6662
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
6663
    result.write(oprot)
6664
    oprot.writeMessageEnd()
6665
    oprot.trans.flush()
6666
 
6667
  def process_deleteCampaign(self, seqid, iprot, oprot):
6668
    args = deleteCampaign_args()
6669
    args.read(iprot)
6670
    iprot.readMessageEnd()
6671
    result = deleteCampaign_result()
6672
    self._handler.deleteCampaign(args.campaignId)
6673
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
6674
    result.write(oprot)
6675
    oprot.writeMessageEnd()
6676
    oprot.trans.flush()
6677
 
6678
  def process_getAllCampaigns(self, seqid, iprot, oprot):
6679
    args = getAllCampaigns_args()
6680
    args.read(iprot)
6681
    iprot.readMessageEnd()
6682
    result = getAllCampaigns_result()
6683
    result.success = self._handler.getAllCampaigns()
6684
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
6685
    result.write(oprot)
6686
    oprot.writeMessageEnd()
6687
    oprot.trans.flush()
6688
 
9155 kshitij.so 6689
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
6690
    args = getActiveBannersForMobileSite_args()
6691
    args.read(iprot)
6692
    iprot.readMessageEnd()
6693
    result = getActiveBannersForMobileSite_result()
6694
    result.success = self._handler.getActiveBannersForMobileSite()
6695
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
6696
    result.write(oprot)
6697
    oprot.writeMessageEnd()
6698
    oprot.trans.flush()
6699
 
5944 mandeep.dh 6700
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
6701
    args = deleteSimilarItem_args()
6702
    args.read(iprot)
6703
    iprot.readMessageEnd()
6704
    result = deleteSimilarItem_result()
6705
    try:
6706
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
6707
    except CatalogServiceException, cex:
6708
      result.cex = cex
6709
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
6710
    result.write(oprot)
6711
    oprot.writeMessageEnd()
6712
    oprot.trans.flush()
6713
 
6714
  def process_checkSimilarItem(self, seqid, iprot, oprot):
6715
    args = checkSimilarItem_args()
6716
    args.read(iprot)
6717
    iprot.readMessageEnd()
6718
    result = checkSimilarItem_result()
6719
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
6720
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
6721
    result.write(oprot)
6722
    oprot.writeMessageEnd()
6723
    oprot.trans.flush()
6724
 
6725
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
6726
    args = validateRiskyStatus_args()
6727
    args.read(iprot)
6728
    iprot.readMessageEnd()
6729
    result = validateRiskyStatus_result()
6730
    self._handler.validateRiskyStatus(args.itemId)
6731
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
6732
    result.write(oprot)
6733
    oprot.writeMessageEnd()
6734
    oprot.trans.flush()
6735
 
6736
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
6737
    args = changeItemRiskyFlag_args()
6738
    args.read(iprot)
6739
    iprot.readMessageEnd()
6740
    result = changeItemRiskyFlag_result()
6741
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
6742
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
6743
    result.write(oprot)
6744
    oprot.writeMessageEnd()
6745
    oprot.trans.flush()
6746
 
6747
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
6748
    args = getItemsByRiskyFlag_args()
6749
    args.read(iprot)
6750
    iprot.readMessageEnd()
6751
    result = getItemsByRiskyFlag_result()
6752
    result.success = self._handler.getItemsByRiskyFlag()
6753
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
6754
    result.write(oprot)
6755
    oprot.writeMessageEnd()
6756
    oprot.trans.flush()
6757
 
6758
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
6759
    args = getItemsForMasterSheet_args()
6760
    args.read(iprot)
6761
    iprot.readMessageEnd()
6762
    result = getItemsForMasterSheet_result()
6763
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
6764
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
6765
    result.write(oprot)
6766
    oprot.writeMessageEnd()
6767
    oprot.trans.flush()
6768
 
6769
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
6770
    args = getSimilarItemsCatalogIds_args()
6771
    args.read(iprot)
6772
    iprot.readMessageEnd()
6773
    result = getSimilarItemsCatalogIds_result()
6774
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
6775
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
6776
    result.write(oprot)
6777
    oprot.writeMessageEnd()
6778
    oprot.trans.flush()
6779
 
6780
  def process_addProductNotification(self, seqid, iprot, oprot):
6781
    args = addProductNotification_args()
6782
    args.read(iprot)
6783
    iprot.readMessageEnd()
6784
    result = addProductNotification_result()
6785
    result.success = self._handler.addProductNotification(args.itemId, args.email)
6786
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
6787
    result.write(oprot)
6788
    oprot.writeMessageEnd()
6789
    oprot.trans.flush()
6790
 
6791
  def process_sendProductNotifications(self, seqid, iprot, oprot):
6792
    args = sendProductNotifications_args()
6793
    args.read(iprot)
6794
    iprot.readMessageEnd()
6795
    result = sendProductNotifications_result()
6796
    result.success = self._handler.sendProductNotifications()
6797
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
6798
    result.write(oprot)
6799
    oprot.writeMessageEnd()
6800
    oprot.trans.flush()
6801
 
6802
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
6803
    args = getAllBrandsByCategory_args()
6804
    args.read(iprot)
6805
    iprot.readMessageEnd()
6806
    result = getAllBrandsByCategory_result()
6807
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
6808
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
6809
    result.write(oprot)
6810
    oprot.writeMessageEnd()
6811
    oprot.trans.flush()
6812
 
6813
  def process_getAllBrands(self, seqid, iprot, oprot):
6814
    args = getAllBrands_args()
6815
    args.read(iprot)
6816
    iprot.readMessageEnd()
6817
    result = getAllBrands_result()
6818
    result.success = self._handler.getAllBrands()
6819
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
6820
    result.write(oprot)
6821
    oprot.writeMessageEnd()
6822
    oprot.trans.flush()
6823
 
6824
  def process_getAllSources(self, seqid, iprot, oprot):
6825
    args = getAllSources_args()
6826
    args.read(iprot)
6827
    iprot.readMessageEnd()
6828
    result = getAllSources_result()
6829
    result.success = self._handler.getAllSources()
6830
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
6831
    result.write(oprot)
6832
    oprot.writeMessageEnd()
6833
    oprot.trans.flush()
6834
 
6835
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
6836
    args = getItemPricingBySource_args()
6837
    args.read(iprot)
6838
    iprot.readMessageEnd()
6839
    result = getItemPricingBySource_result()
6840
    try:
6841
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
6842
    except CatalogServiceException, cex:
6843
      result.cex = cex
6844
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
6845
    result.write(oprot)
6846
    oprot.writeMessageEnd()
6847
    oprot.trans.flush()
6848
 
6849
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
6850
    args = addSourceItemPricing_args()
6851
    args.read(iprot)
6852
    iprot.readMessageEnd()
6853
    result = addSourceItemPricing_result()
6854
    try:
6855
      self._handler.addSourceItemPricing(args.sourceItemPricing)
6856
    except CatalogServiceException, cex:
6857
      result.cex = cex
6858
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
6859
    result.write(oprot)
6860
    oprot.writeMessageEnd()
6861
    oprot.trans.flush()
6862
 
6863
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
6864
    args = getAllSourcePricing_args()
6865
    args.read(iprot)
6866
    iprot.readMessageEnd()
6867
    result = getAllSourcePricing_result()
6868
    try:
6869
      result.success = self._handler.getAllSourcePricing(args.itemId)
6870
    except CatalogServiceException, cex:
6871
      result.cex = cex
6872
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
6873
    result.write(oprot)
6874
    oprot.writeMessageEnd()
6875
    oprot.trans.flush()
6876
 
6877
  def process_getItemForSource(self, seqid, iprot, oprot):
6878
    args = getItemForSource_args()
6879
    args.read(iprot)
6880
    iprot.readMessageEnd()
6881
    result = getItemForSource_result()
6882
    try:
6883
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
6884
    except CatalogServiceException, cex:
6885
      result.cex = cex
6886
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
6887
    result.write(oprot)
6888
    oprot.writeMessageEnd()
6889
    oprot.trans.flush()
6890
 
6891
  def process_searchItemsInRange(self, seqid, iprot, oprot):
6892
    args = searchItemsInRange_args()
6893
    args.read(iprot)
6894
    iprot.readMessageEnd()
6895
    result = searchItemsInRange_result()
6896
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
6897
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
6898
    result.write(oprot)
6899
    oprot.writeMessageEnd()
6900
    oprot.trans.flush()
6901
 
6902
  def process_getSearchResultCount(self, seqid, iprot, oprot):
6903
    args = getSearchResultCount_args()
6904
    args.read(iprot)
6905
    iprot.readMessageEnd()
6906
    result = getSearchResultCount_result()
6907
    result.success = self._handler.getSearchResultCount(args.searchTerms)
6908
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
6909
    result.write(oprot)
6910
    oprot.writeMessageEnd()
6911
    oprot.trans.flush()
6912
 
6913
  def process_getProductNotifications(self, seqid, iprot, oprot):
6914
    args = getProductNotifications_args()
6915
    args.read(iprot)
6916
    iprot.readMessageEnd()
6917
    result = getProductNotifications_result()
6918
    result.success = self._handler.getProductNotifications(args.startDateTime)
6919
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
6920
    result.write(oprot)
6921
    oprot.writeMessageEnd()
6922
    oprot.trans.flush()
6923
 
6924
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
6925
    args = getProductNotificationRequestCount_args()
6926
    args.read(iprot)
6927
    iprot.readMessageEnd()
6928
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 6929
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 6930
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
6931
    result.write(oprot)
6932
    oprot.writeMessageEnd()
6933
    oprot.trans.flush()
6934
 
6935
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
6936
    args = addAuthorizationLog_args()
6937
    args.read(iprot)
6938
    iprot.readMessageEnd()
6939
    result = addAuthorizationLog_result()
6940
    try:
6941
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
6942
    except CatalogServiceException, cex:
6943
      result.cex = cex
6944
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
6945
    result.write(oprot)
6946
    oprot.writeMessageEnd()
6947
    oprot.trans.flush()
6948
 
6949
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
6950
    args = addupdateVoucherForItem_args()
6951
    args.read(iprot)
6952
    iprot.readMessageEnd()
6953
    result = addupdateVoucherForItem_result()
6954
    try:
6955
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
6956
    except CatalogServiceException, cex:
6957
      result.cex = cex
6958
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
6959
    result.write(oprot)
6960
    oprot.writeMessageEnd()
6961
    oprot.trans.flush()
6962
 
6963
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
6964
    args = deleteVoucherForItem_args()
6965
    args.read(iprot)
6966
    iprot.readMessageEnd()
6967
    result = deleteVoucherForItem_result()
6968
    try:
6969
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
6970
    except CatalogServiceException, cex:
6971
      result.cex = cex
6972
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
6973
    result.write(oprot)
6974
    oprot.writeMessageEnd()
6975
    oprot.trans.flush()
6976
 
6977
  def process_getVoucherAmount(self, seqid, iprot, oprot):
6978
    args = getVoucherAmount_args()
6979
    args.read(iprot)
6980
    iprot.readMessageEnd()
6981
    result = getVoucherAmount_result()
6982
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
6983
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
6984
    result.write(oprot)
6985
    oprot.writeMessageEnd()
6986
    oprot.trans.flush()
6987
 
6988
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
6989
    args = getAllItemVouchers_args()
6990
    args.read(iprot)
6991
    iprot.readMessageEnd()
6992
    result = getAllItemVouchers_result()
6993
    result.success = self._handler.getAllItemVouchers(args.itemId)
6994
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
6995
    result.write(oprot)
6996
    oprot.writeMessageEnd()
6997
    oprot.trans.flush()
6998
 
6999
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
7000
    args = isValidCatalogItemId_args()
7001
    args.read(iprot)
7002
    iprot.readMessageEnd()
7003
    result = isValidCatalogItemId_result()
7004
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
7005
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
7006
    result.write(oprot)
7007
    oprot.writeMessageEnd()
7008
    oprot.trans.flush()
7009
 
6039 amit.gupta 7010
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
7011
    args = getVatPercentageForItem_args()
7012
    args.read(iprot)
7013
    iprot.readMessageEnd()
7014
    result = getVatPercentageForItem_result()
7340 amit.gupta 7015
    try:
7016
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
7017
    except CatalogServiceException, cex:
7018
      result.cex = cex
6039 amit.gupta 7019
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
7020
    result.write(oprot)
7021
    oprot.writeMessageEnd()
7022
    oprot.trans.flush()
5944 mandeep.dh 7023
 
6039 amit.gupta 7024
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
7025
    args = getVatAmountForItem_args()
7026
    args.read(iprot)
7027
    iprot.readMessageEnd()
7028
    result = getVatAmountForItem_result()
7029
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
7030
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
7031
    result.write(oprot)
7032
    oprot.writeMessageEnd()
7033
    oprot.trans.flush()
7034
 
6531 vikram.rag 7035
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
7036
    args = getAllIgnoredInventoryUpdateItemsList_args()
7037
    args.read(iprot)
7038
    iprot.readMessageEnd()
7039
    result = getAllIgnoredInventoryUpdateItemsList_result()
7040
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
7041
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
7042
    result.write(oprot)
7043
    oprot.writeMessageEnd()
7044
    oprot.trans.flush()
6039 amit.gupta 7045
 
6821 amar.kumar 7046
  def process_getAllAliveItems(self, seqid, iprot, oprot):
7047
    args = getAllAliveItems_args()
7048
    args.read(iprot)
7049
    iprot.readMessageEnd()
7050
    result = getAllAliveItems_result()
7051
    result.success = self._handler.getAllAliveItems()
7052
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
7053
    result.write(oprot)
7054
    oprot.writeMessageEnd()
7055
    oprot.trans.flush()
7056
 
6805 anupam.sin 7057
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
7058
    args = getInsuranceAmount_args()
7059
    args.read(iprot)
7060
    iprot.readMessageEnd()
7061
    result = getInsuranceAmount_result()
6921 anupam.sin 7062
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 7063
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
7064
    result.write(oprot)
7065
    oprot.writeMessageEnd()
7066
    oprot.trans.flush()
6531 vikram.rag 7067
 
6805 anupam.sin 7068
  def process_getInsurer(self, seqid, iprot, oprot):
7069
    args = getInsurer_args()
7070
    args.read(iprot)
7071
    iprot.readMessageEnd()
7072
    result = getInsurer_result()
7073
    result.success = self._handler.getInsurer(args.insurerId)
7074
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
7075
    result.write(oprot)
7076
    oprot.writeMessageEnd()
7077
    oprot.trans.flush()
7078
 
6838 vikram.rag 7079
  def process_getAllInsurers(self, seqid, iprot, oprot):
7080
    args = getAllInsurers_args()
7081
    args.read(iprot)
7082
    iprot.readMessageEnd()
7083
    result = getAllInsurers_result()
7084
    result.success = self._handler.getAllInsurers()
7085
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
7086
    result.write(oprot)
7087
    oprot.writeMessageEnd()
7088
    oprot.trans.flush()
6805 anupam.sin 7089
 
6962 rajveer 7090
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
7091
    args = updateInsuranceDeclaredAmount_args()
7092
    args.read(iprot)
7093
    iprot.readMessageEnd()
7094
    result = updateInsuranceDeclaredAmount_result()
7095
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
7096
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
7097
    result.write(oprot)
7098
    oprot.writeMessageEnd()
7099
    oprot.trans.flush()
6838 vikram.rag 7100
 
7190 amar.kumar 7101
  def process_getFreebieForItem(self, seqid, iprot, oprot):
7102
    args = getFreebieForItem_args()
7103
    args.read(iprot)
7104
    iprot.readMessageEnd()
7105
    result = getFreebieForItem_result()
7106
    result.success = self._handler.getFreebieForItem(args.itemId)
7107
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
7108
    result.write(oprot)
7109
    oprot.writeMessageEnd()
7110
    oprot.trans.flush()
6962 rajveer 7111
 
7190 amar.kumar 7112
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
7113
    args = addOrUpdateFreebieForItem_args()
7114
    args.read(iprot)
7115
    iprot.readMessageEnd()
7116
    result = addOrUpdateFreebieForItem_result()
7117
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
7118
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
7119
    result.write(oprot)
7120
    oprot.writeMessageEnd()
7121
    oprot.trans.flush()
7122
 
7272 amit.gupta 7123
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
7124
    args = addOrUpdateBrandInfo_args()
7125
    args.read(iprot)
7126
    iprot.readMessageEnd()
7127
    result = addOrUpdateBrandInfo_result()
7128
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
7129
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
7130
    result.write(oprot)
7131
    oprot.writeMessageEnd()
7132
    oprot.trans.flush()
7133
 
7134
  def process_getBrandInfo(self, seqid, iprot, oprot):
7135
    args = getBrandInfo_args()
7136
    args.read(iprot)
7137
    iprot.readMessageEnd()
7138
    result = getBrandInfo_result()
7139
    result.success = self._handler.getBrandInfo()
7140
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
7141
    result.write(oprot)
7142
    oprot.writeMessageEnd()
7143
    oprot.trans.flush()
7144
 
7256 rajveer 7145
  def process_getStorePricing(self, seqid, iprot, oprot):
7146
    args = getStorePricing_args()
7147
    args.read(iprot)
7148
    iprot.readMessageEnd()
7149
    result = getStorePricing_result()
7150
    result.success = self._handler.getStorePricing(args.itemId)
7151
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
7152
    result.write(oprot)
7153
    oprot.writeMessageEnd()
7154
    oprot.trans.flush()
7190 amar.kumar 7155
 
7306 rajveer 7156
  def process_getStorePricings(self, seqid, iprot, oprot):
7157
    args = getStorePricings_args()
7158
    args.read(iprot)
7159
    iprot.readMessageEnd()
7160
    result = getStorePricings_result()
7161
    result.success = self._handler.getStorePricings(args.itemIds)
7162
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
7163
    result.write(oprot)
7164
    oprot.writeMessageEnd()
7165
    oprot.trans.flush()
7166
 
7265 rajveer 7167
  def process_updateStorePricing(self, seqid, iprot, oprot):
7168
    args = updateStorePricing_args()
7169
    args.read(iprot)
7170
    iprot.readMessageEnd()
7171
    result = updateStorePricing_result()
7382 rajveer 7172
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 7173
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
7174
    result.write(oprot)
7175
    oprot.writeMessageEnd()
7176
    oprot.trans.flush()
7256 rajveer 7177
 
7281 kshitij.so 7178
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
7179
    args = getAllAmazonListedItems_args()
7180
    args.read(iprot)
7181
    iprot.readMessageEnd()
7182
    result = getAllAmazonListedItems_result()
7183
    result.success = self._handler.getAllAmazonListedItems()
7184
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
7185
    result.write(oprot)
7186
    oprot.writeMessageEnd()
7187
    oprot.trans.flush()
7265 rajveer 7188
 
8619 kshitij.so 7189
  def process_searchAmazonItems(self, seqid, iprot, oprot):
7190
    args = searchAmazonItems_args()
7191
    args.read(iprot)
7192
    iprot.readMessageEnd()
7193
    result = searchAmazonItems_result()
7194
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
7195
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
7196
    result.write(oprot)
7197
    oprot.writeMessageEnd()
7198
    oprot.trans.flush()
7199
 
7200
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
7201
    args = getAmazonSearchResultCount_args()
7202
    args.read(iprot)
7203
    iprot.readMessageEnd()
7204
    result = getAmazonSearchResultCount_result()
7205
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
7206
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
7207
    result.write(oprot)
7208
    oprot.writeMessageEnd()
7209
    oprot.trans.flush()
7210
 
7211
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
7212
    args = getCountForAmazonlistedItems_args()
7213
    args.read(iprot)
7214
    iprot.readMessageEnd()
7215
    result = getCountForAmazonlistedItems_result()
7216
    result.success = self._handler.getCountForAmazonlistedItems()
7217
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
7218
    result.write(oprot)
7219
    oprot.writeMessageEnd()
7220
    oprot.trans.flush()
7221
 
7281 kshitij.so 7222
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
7223
    args = getAmazonItemDetails_args()
7224
    args.read(iprot)
7225
    iprot.readMessageEnd()
7226
    result = getAmazonItemDetails_result()
7227
    result.success = self._handler.getAmazonItemDetails(args.itemId)
7228
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
7229
    result.write(oprot)
7230
    oprot.writeMessageEnd()
7231
    oprot.trans.flush()
7232
 
7233
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
7234
    args = updateAmazonItemDetails_args()
7235
    args.read(iprot)
7236
    iprot.readMessageEnd()
7237
    result = updateAmazonItemDetails_result()
8168 kshitij.so 7238
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 7239
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
7240
    result.write(oprot)
7241
    oprot.writeMessageEnd()
7242
    oprot.trans.flush()
7243
 
7244
  def process_addAmazonItem(self, seqid, iprot, oprot):
7245
    args = addAmazonItem_args()
7246
    args.read(iprot)
7247
    iprot.readMessageEnd()
7248
    result = addAmazonItem_result()
7249
    self._handler.addAmazonItem(args.amazonlisted)
7250
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
7251
    result.write(oprot)
7252
    oprot.writeMessageEnd()
7253
    oprot.trans.flush()
7254
 
7291 vikram.rag 7255
  def process_getAsinItems(self, seqid, iprot, oprot):
7256
    args = getAsinItems_args()
7257
    args.read(iprot)
7258
    iprot.readMessageEnd()
7259
    result = getAsinItems_result()
7260
    result.success = self._handler.getAsinItems()
7261
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
7262
    result.write(oprot)
7263
    oprot.writeMessageEnd()
7264
    oprot.trans.flush()
7281 kshitij.so 7265
 
7291 vikram.rag 7266
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
7267
    args = getAllFbaListedItems_args()
7268
    args.read(iprot)
7269
    iprot.readMessageEnd()
7270
    result = getAllFbaListedItems_result()
7271
    result.success = self._handler.getAllFbaListedItems()
7272
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
7273
    result.write(oprot)
7274
    oprot.writeMessageEnd()
7275
    oprot.trans.flush()
7276
 
7277
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
7278
    args = getAllNonFbaListedItems_args()
7279
    args.read(iprot)
7280
    iprot.readMessageEnd()
7281
    result = getAllNonFbaListedItems_result()
7282
    result.success = self._handler.getAllNonFbaListedItems()
7283
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
7284
    result.write(oprot)
7285
    oprot.writeMessageEnd()
7286
    oprot.trans.flush()
7287
 
7460 kshitij.so 7288
  def process_updateItemInventory(self, seqid, iprot, oprot):
7289
    args = updateItemInventory_args()
7290
    args.read(iprot)
7291
    iprot.readMessageEnd()
7292
    result = updateItemInventory_result()
7293
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
7294
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
7295
    result.write(oprot)
7296
    oprot.writeMessageEnd()
7297
    oprot.trans.flush()
7291 vikram.rag 7298
 
7770 kshitij.so 7299
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
7300
    args = updateTimestampForAmazonFeeds_args()
7301
    args.read(iprot)
7302
    iprot.readMessageEnd()
7303
    result = updateTimestampForAmazonFeeds_result()
7304
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
7305
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
7306
    result.write(oprot)
7307
    oprot.writeMessageEnd()
7308
    oprot.trans.flush()
7460 kshitij.so 7309
 
7897 amar.kumar 7310
  def process_getAllParentCategories(self, seqid, iprot, oprot):
7311
    args = getAllParentCategories_args()
7312
    args.read(iprot)
7313
    iprot.readMessageEnd()
7314
    result = getAllParentCategories_result()
7315
    result.success = self._handler.getAllParentCategories()
7316
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
7317
    result.write(oprot)
7318
    oprot.writeMessageEnd()
7319
    oprot.trans.flush()
7770 kshitij.so 7320
 
7977 kshitij.so 7321
  def process_addPageViewEvent(self, seqid, iprot, oprot):
7322
    args = addPageViewEvent_args()
7323
    args.read(iprot)
7324
    iprot.readMessageEnd()
7325
    result = addPageViewEvent_result()
7326
    self._handler.addPageViewEvent(args.pageViewEvents)
7327
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
7328
    result.write(oprot)
7329
    oprot.writeMessageEnd()
7330
    oprot.trans.flush()
7897 amar.kumar 7331
 
7977 kshitij.so 7332
  def process_addCartEvent(self, seqid, iprot, oprot):
7333
    args = addCartEvent_args()
7334
    args.read(iprot)
7335
    iprot.readMessageEnd()
7336
    result = addCartEvent_result()
7337
    self._handler.addCartEvent(args.cartEvents)
7338
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
7339
    result.write(oprot)
7340
    oprot.writeMessageEnd()
7341
    oprot.trans.flush()
7342
 
8182 amar.kumar 7343
  def process_addEbayItem(self, seqid, iprot, oprot):
7344
    args = addEbayItem_args()
7345
    args.read(iprot)
7346
    iprot.readMessageEnd()
7347
    result = addEbayItem_result()
7348
    self._handler.addEbayItem(args.ebayItem)
7349
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
7350
    result.write(oprot)
7351
    oprot.writeMessageEnd()
7352
    oprot.trans.flush()
7353
 
7354
  def process_getEbayItem(self, seqid, iprot, oprot):
7355
    args = getEbayItem_args()
7356
    args.read(iprot)
7357
    iprot.readMessageEnd()
7358
    result = getEbayItem_result()
7359
    result.success = self._handler.getEbayItem(args.listingId)
7360
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
7361
    result.write(oprot)
7362
    oprot.writeMessageEnd()
7363
    oprot.trans.flush()
7364
 
7365
  def process_updateEbayItem(self, seqid, iprot, oprot):
7366
    args = updateEbayItem_args()
7367
    args.read(iprot)
7368
    iprot.readMessageEnd()
7369
    result = updateEbayItem_result()
7370
    self._handler.updateEbayItem(args.ebayItem)
7371
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
7372
    result.write(oprot)
7373
    oprot.writeMessageEnd()
7374
    oprot.trans.flush()
7375
 
8139 kshitij.so 7376
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
7377
    args = getAmazonListedItems_args()
7378
    args.read(iprot)
7379
    iprot.readMessageEnd()
7380
    result = getAmazonListedItems_result()
7381
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
7382
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
7383
    result.write(oprot)
7384
    oprot.writeMessageEnd()
7385
    oprot.trans.flush()
7977 kshitij.so 7386
 
8168 kshitij.so 7387
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
7388
    args = updateAmazonAttributesInBulk_args()
7389
    args.read(iprot)
7390
    iprot.readMessageEnd()
7391
    result = updateAmazonAttributesInBulk_result()
7392
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
7393
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
7394
    result.write(oprot)
7395
    oprot.writeMessageEnd()
7396
    oprot.trans.flush()
8139 kshitij.so 7397
 
8379 vikram.rag 7398
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
7399
    args = getAllItemstoListOnFba_args()
7400
    args.read(iprot)
7401
    iprot.readMessageEnd()
7402
    result = getAllItemstoListOnFba_result()
7403
    result.success = self._handler.getAllItemstoListOnFba()
7404
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
7405
    result.write(oprot)
7406
    oprot.writeMessageEnd()
7407
    oprot.trans.flush()
8168 kshitij.so 7408
 
8379 vikram.rag 7409
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
7410
    args = getAllItemstoListOnNonFba_args()
7411
    args.read(iprot)
7412
    iprot.readMessageEnd()
7413
    result = getAllItemstoListOnNonFba_result()
7414
    result.success = self._handler.getAllItemstoListOnNonFba()
7415
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
7416
    result.write(oprot)
7417
    oprot.writeMessageEnd()
7418
    oprot.trans.flush()
7419
 
8619 kshitij.so 7420
  def process_updateAsin(self, seqid, iprot, oprot):
7421
    args = updateAsin_args()
7422
    args.read(iprot)
7423
    iprot.readMessageEnd()
7424
    result = updateAsin_result()
7425
    self._handler.updateAsin(args.item)
7426
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
7427
    result.write(oprot)
7428
    oprot.writeMessageEnd()
7429
    oprot.trans.flush()
8616 vikram.rag 7430
 
8739 vikram.rag 7431
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
7432
    args = addOrUpdateSnapdealItem_args()
7433
    args.read(iprot)
7434
    iprot.readMessageEnd()
7435
    result = addOrUpdateSnapdealItem_result()
7436
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
7437
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
7438
    result.write(oprot)
7439
    oprot.writeMessageEnd()
7440
    oprot.trans.flush()
8619 kshitij.so 7441
 
8739 vikram.rag 7442
  def process_getSnapdealItem(self, seqid, iprot, oprot):
7443
    args = getSnapdealItem_args()
7444
    args.read(iprot)
7445
    iprot.readMessageEnd()
7446
    result = getSnapdealItem_result()
7447
    result.success = self._handler.getSnapdealItem(args.item_id)
7448
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
7449
    result.write(oprot)
7450
    oprot.writeMessageEnd()
7451
    oprot.trans.flush()
7452
 
9242 kshitij.so 7453
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
7454
    args = getSnapdealItemDetails_args()
7455
    args.read(iprot)
7456
    iprot.readMessageEnd()
7457
    result = getSnapdealItemDetails_result()
7458
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
7459
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
7460
    result.write(oprot)
7461
    oprot.writeMessageEnd()
7462
    oprot.trans.flush()
7463
 
8739 vikram.rag 7464
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
7465
    args = getAllSnapdealItems_args()
7466
    args.read(iprot)
7467
    iprot.readMessageEnd()
7468
    result = getAllSnapdealItems_result()
7469
    result.success = self._handler.getAllSnapdealItems()
7470
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
7471
    result.write(oprot)
7472
    oprot.writeMessageEnd()
7473
    oprot.trans.flush()
7474
 
9242 kshitij.so 7475
  def process_getSnapdealItems(self, seqid, iprot, oprot):
7476
    args = getSnapdealItems_args()
7477
    args.read(iprot)
7478
    iprot.readMessageEnd()
7479
    result = getSnapdealItems_result()
7480
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
7481
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
7482
    result.write(oprot)
7483
    oprot.writeMessageEnd()
7484
    oprot.trans.flush()
8739 vikram.rag 7485
 
9242 kshitij.so 7486
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
7487
    args = searchSnapdealItems_args()
7488
    args.read(iprot)
7489
    iprot.readMessageEnd()
7490
    result = searchSnapdealItems_result()
7491
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
7492
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
7493
    result.write(oprot)
7494
    oprot.writeMessageEnd()
7495
    oprot.trans.flush()
7496
 
7497
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
7498
    args = getCountForSnapdealItems_args()
7499
    args.read(iprot)
7500
    iprot.readMessageEnd()
7501
    result = getCountForSnapdealItems_result()
7502
    result.success = self._handler.getCountForSnapdealItems()
7503
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
7504
    result.write(oprot)
7505
    oprot.writeMessageEnd()
7506
    oprot.trans.flush()
7507
 
7508
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
7509
    args = getSnapdealSearchResultCount_args()
7510
    args.read(iprot)
7511
    iprot.readMessageEnd()
7512
    result = getSnapdealSearchResultCount_result()
7513
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
7514
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
7515
    result.write(oprot)
7516
    oprot.writeMessageEnd()
7517
    oprot.trans.flush()
7518
 
9299 kshitij.so 7519
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
7520
    args = getPrefferedInsurerForItem_args()
7521
    args.read(iprot)
7522
    iprot.readMessageEnd()
7523
    result = getPrefferedInsurerForItem_result()
7524
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
7525
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
7526
    result.write(oprot)
7527
    oprot.writeMessageEnd()
7528
    oprot.trans.flush()
9242 kshitij.so 7529
 
9456 vikram.rag 7530
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
7531
    args = getSnapdealItembySkuAtSnapdeal_args()
7532
    args.read(iprot)
7533
    iprot.readMessageEnd()
7534
    result = getSnapdealItembySkuAtSnapdeal_result()
7535
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
7536
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
7537
    result.write(oprot)
7538
    oprot.writeMessageEnd()
7539
    oprot.trans.flush()
9299 kshitij.so 7540
 
9621 manish.sha 7541
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
7542
    args = getProductFeedSubmit_args()
7543
    args.read(iprot)
7544
    iprot.readMessageEnd()
7545
    result = getProductFeedSubmit_result()
7546
    try:
7547
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
7548
    except CatalogServiceException, cex:
7549
      result.cex = cex
7550
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
7551
    result.write(oprot)
7552
    oprot.writeMessageEnd()
7553
    oprot.trans.flush()
9456 vikram.rag 7554
 
9621 manish.sha 7555
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
7556
    args = addProductFeedSubmit_args()
7557
    args.read(iprot)
7558
    iprot.readMessageEnd()
7559
    result = addProductFeedSubmit_result()
7560
    try:
7561
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
7562
    except CatalogServiceException, cex:
7563
      result.cex = cex
7564
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
7565
    result.write(oprot)
7566
    oprot.writeMessageEnd()
7567
    oprot.trans.flush()
7568
 
7569
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
7570
    args = updateProductFeedSubmit_args()
7571
    args.read(iprot)
7572
    iprot.readMessageEnd()
7573
    result = updateProductFeedSubmit_result()
7574
    try:
7575
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
7576
    except CatalogServiceException, cex:
7577
      result.cex = cex
7578
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
7579
    result.write(oprot)
7580
    oprot.writeMessageEnd()
7581
    oprot.trans.flush()
7582
 
7583
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
7584
    args = deleteProductFeedSubmit_args()
7585
    args.read(iprot)
7586
    iprot.readMessageEnd()
7587
    result = deleteProductFeedSubmit_result()
7588
    try:
7589
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
7590
    except CatalogServiceException, cex:
7591
      result.cex = cex
7592
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
7593
    result.write(oprot)
7594
    oprot.writeMessageEnd()
7595
    oprot.trans.flush()
7596
 
7597
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
7598
    args = getAllProductFeedSubmit_args()
7599
    args.read(iprot)
7600
    iprot.readMessageEnd()
7601
    result = getAllProductFeedSubmit_result()
7602
    try:
7603
      result.success = self._handler.getAllProductFeedSubmit()
7604
    except CatalogServiceException, cex:
7605
      result.cex = cex
7606
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
7607
    result.write(oprot)
7608
    oprot.writeMessageEnd()
7609
    oprot.trans.flush()
7610
 
9724 kshitij.so 7611
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
7612
    args = getMarketplacedetailsForItem_args()
7613
    args.read(iprot)
7614
    iprot.readMessageEnd()
7615
    result = getMarketplacedetailsForItem_result()
7616
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
7617
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
7618
    result.write(oprot)
7619
    oprot.writeMessageEnd()
7620
    oprot.trans.flush()
9621 manish.sha 7621
 
9724 kshitij.so 7622
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
7623
    args = updateMarketplaceAttributesForItem_args()
7624
    args.read(iprot)
7625
    iprot.readMessageEnd()
7626
    result = updateMarketplaceAttributesForItem_result()
7627
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
7628
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
7629
    result.write(oprot)
7630
    oprot.writeMessageEnd()
7631
    oprot.trans.flush()
7632
 
9779 kshitij.so 7633
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
7634
    args = getCostingForMarketplace_args()
7635
    args.read(iprot)
7636
    iprot.readMessageEnd()
7637
    result = getCostingForMarketplace_result()
7638
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
7639
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
7640
    result.write(oprot)
7641
    oprot.writeMessageEnd()
7642
    oprot.trans.flush()
7643
 
9776 vikram.rag 7644
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
7645
    args = getMarketPlaceItemsForPriceUpdate_args()
7646
    args.read(iprot)
7647
    iprot.readMessageEnd()
7648
    result = getMarketPlaceItemsForPriceUpdate_result()
7649
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
7650
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
7651
    result.write(oprot)
7652
    oprot.writeMessageEnd()
7653
    oprot.trans.flush()
9724 kshitij.so 7654
 
9776 vikram.rag 7655
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
7656
    args = updateMarketPlacePriceUpdateStatus_args()
7657
    args.read(iprot)
7658
    iprot.readMessageEnd()
7659
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 7660
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 7661
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
7662
    result.write(oprot)
7663
    oprot.writeMessageEnd()
7664
    oprot.trans.flush()
7665
 
9861 rajveer 7666
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
7667
    args = updateItemHoldInventory_args()
7668
    args.read(iprot)
7669
    iprot.readMessageEnd()
7670
    result = updateItemHoldInventory_result()
7671
    self._handler.updateItemHoldInventory(args.itemHoldMap)
7672
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
7673
    result.write(oprot)
7674
    oprot.writeMessageEnd()
7675
    oprot.trans.flush()
9776 vikram.rag 7676
 
9895 vikram.rag 7677
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
7678
    args = updateNlcAtMarketplaces_args()
7679
    args.read(iprot)
7680
    iprot.readMessageEnd()
7681
    result = updateNlcAtMarketplaces_result()
7682
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
7683
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
7684
    result.write(oprot)
7685
    oprot.writeMessageEnd()
7686
    oprot.trans.flush()
9861 rajveer 7687
 
9945 vikram.rag 7688
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
7689
    args = getAllFlipkartItems_args()
7690
    args.read(iprot)
7691
    iprot.readMessageEnd()
7692
    result = getAllFlipkartItems_result()
7693
    result.success = self._handler.getAllFlipkartItems()
7694
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
7695
    result.write(oprot)
7696
    oprot.writeMessageEnd()
7697
    oprot.trans.flush()
9895 vikram.rag 7698
 
10097 kshitij.so 7699
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
7700
    args = addOrUpdateFlipkartItem_args()
7701
    args.read(iprot)
7702
    iprot.readMessageEnd()
7703
    result = addOrUpdateFlipkartItem_result()
7704
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
7705
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
7706
    result.write(oprot)
7707
    oprot.writeMessageEnd()
7708
    oprot.trans.flush()
9945 vikram.rag 7709
 
10097 kshitij.so 7710
  def process_getFlipkartItem(self, seqid, iprot, oprot):
7711
    args = getFlipkartItem_args()
7712
    args.read(iprot)
7713
    iprot.readMessageEnd()
7714
    result = getFlipkartItem_result()
7715
    result.success = self._handler.getFlipkartItem(args.item_id)
7716
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
7717
    result.write(oprot)
7718
    oprot.writeMessageEnd()
7719
    oprot.trans.flush()
7720
 
7721
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
7722
    args = getFlipkartItemDetails_args()
7723
    args.read(iprot)
7724
    iprot.readMessageEnd()
7725
    result = getFlipkartItemDetails_result()
7726
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
7727
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
7728
    result.write(oprot)
7729
    oprot.writeMessageEnd()
7730
    oprot.trans.flush()
7731
 
7732
  def process_getFlipkartItems(self, seqid, iprot, oprot):
7733
    args = getFlipkartItems_args()
7734
    args.read(iprot)
7735
    iprot.readMessageEnd()
7736
    result = getFlipkartItems_result()
7737
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
7738
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
7739
    result.write(oprot)
7740
    oprot.writeMessageEnd()
7741
    oprot.trans.flush()
7742
 
7743
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
7744
    args = searchFlipkartItems_args()
7745
    args.read(iprot)
7746
    iprot.readMessageEnd()
7747
    result = searchFlipkartItems_result()
7748
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
7749
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
7750
    result.write(oprot)
7751
    oprot.writeMessageEnd()
7752
    oprot.trans.flush()
7753
 
7754
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
7755
    args = getCountForFlipkartItems_args()
7756
    args.read(iprot)
7757
    iprot.readMessageEnd()
7758
    result = getCountForFlipkartItems_result()
7759
    result.success = self._handler.getCountForFlipkartItems()
7760
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
7761
    result.write(oprot)
7762
    oprot.writeMessageEnd()
7763
    oprot.trans.flush()
7764
 
7765
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
7766
    args = getFlipkartSearchResultCount_args()
7767
    args.read(iprot)
7768
    iprot.readMessageEnd()
7769
    result = getFlipkartSearchResultCount_result()
7770
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
7771
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
7772
    result.write(oprot)
7773
    oprot.writeMessageEnd()
7774
    oprot.trans.flush()
7775
 
7776
  def process_getAllFkItems(self, seqid, iprot, oprot):
7777
    args = getAllFkItems_args()
7778
    args.read(iprot)
7779
    iprot.readMessageEnd()
7780
    result = getAllFkItems_result()
7781
    result.success = self._handler.getAllFkItems()
7782
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
7783
    result.write(oprot)
7784
    oprot.writeMessageEnd()
7785
    oprot.trans.flush()
7786
 
7787
 
5944 mandeep.dh 7788
# HELPER FUNCTIONS AND STRUCTURES
7789
 
7790
class addItem_args:
7791
  """
7792
  Attributes:
7793
   - item
7794
  """
7795
 
7796
  thrift_spec = (
7797
    None, # 0
7798
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7799
  )
7800
 
7801
  def __init__(self, item=None,):
7802
    self.item = item
7803
 
7804
  def read(self, iprot):
7805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7807
      return
7808
    iprot.readStructBegin()
7809
    while True:
7810
      (fname, ftype, fid) = iprot.readFieldBegin()
7811
      if ftype == TType.STOP:
7812
        break
7813
      if fid == 1:
7814
        if ftype == TType.STRUCT:
7815
          self.item = Item()
7816
          self.item.read(iprot)
7817
        else:
7818
          iprot.skip(ftype)
7819
      else:
7820
        iprot.skip(ftype)
7821
      iprot.readFieldEnd()
7822
    iprot.readStructEnd()
7823
 
7824
  def write(self, oprot):
7825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7827
      return
7828
    oprot.writeStructBegin('addItem_args')
7829
    if self.item is not None:
7830
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7831
      self.item.write(oprot)
7832
      oprot.writeFieldEnd()
7833
    oprot.writeFieldStop()
7834
    oprot.writeStructEnd()
7835
 
7836
  def validate(self):
7837
    return
7838
 
7839
 
7840
  def __repr__(self):
7841
    L = ['%s=%r' % (key, value)
7842
      for key, value in self.__dict__.iteritems()]
7843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7844
 
7845
  def __eq__(self, other):
7846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7847
 
7848
  def __ne__(self, other):
7849
    return not (self == other)
7850
 
7851
class addItem_result:
7852
  """
7853
  Attributes:
7854
   - success
7855
   - cex
7856
  """
7857
 
7858
  thrift_spec = (
7859
    (0, TType.I64, 'success', None, None, ), # 0
7860
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7861
  )
7862
 
7863
  def __init__(self, success=None, cex=None,):
7864
    self.success = success
7865
    self.cex = cex
7866
 
7867
  def read(self, iprot):
7868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7870
      return
7871
    iprot.readStructBegin()
7872
    while True:
7873
      (fname, ftype, fid) = iprot.readFieldBegin()
7874
      if ftype == TType.STOP:
7875
        break
7876
      if fid == 0:
7877
        if ftype == TType.I64:
7878
          self.success = iprot.readI64();
7879
        else:
7880
          iprot.skip(ftype)
7881
      elif fid == 1:
7882
        if ftype == TType.STRUCT:
7883
          self.cex = CatalogServiceException()
7884
          self.cex.read(iprot)
7885
        else:
7886
          iprot.skip(ftype)
7887
      else:
7888
        iprot.skip(ftype)
7889
      iprot.readFieldEnd()
7890
    iprot.readStructEnd()
7891
 
7892
  def write(self, oprot):
7893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7895
      return
7896
    oprot.writeStructBegin('addItem_result')
7897
    if self.success is not None:
7898
      oprot.writeFieldBegin('success', TType.I64, 0)
7899
      oprot.writeI64(self.success)
7900
      oprot.writeFieldEnd()
7901
    if self.cex is not None:
7902
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7903
      self.cex.write(oprot)
7904
      oprot.writeFieldEnd()
7905
    oprot.writeFieldStop()
7906
    oprot.writeStructEnd()
7907
 
7908
  def validate(self):
7909
    return
7910
 
7911
 
7912
  def __repr__(self):
7913
    L = ['%s=%r' % (key, value)
7914
      for key, value in self.__dict__.iteritems()]
7915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7916
 
7917
  def __eq__(self, other):
7918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7919
 
7920
  def __ne__(self, other):
7921
    return not (self == other)
7922
 
7923
class updateItem_args:
7924
  """
7925
  Attributes:
7926
   - item
7927
  """
7928
 
7929
  thrift_spec = (
7930
    None, # 0
7931
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
7932
  )
7933
 
7934
  def __init__(self, item=None,):
7935
    self.item = item
7936
 
7937
  def read(self, iprot):
7938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7940
      return
7941
    iprot.readStructBegin()
7942
    while True:
7943
      (fname, ftype, fid) = iprot.readFieldBegin()
7944
      if ftype == TType.STOP:
7945
        break
7946
      if fid == 1:
7947
        if ftype == TType.STRUCT:
7948
          self.item = Item()
7949
          self.item.read(iprot)
7950
        else:
7951
          iprot.skip(ftype)
7952
      else:
7953
        iprot.skip(ftype)
7954
      iprot.readFieldEnd()
7955
    iprot.readStructEnd()
7956
 
7957
  def write(self, oprot):
7958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7960
      return
7961
    oprot.writeStructBegin('updateItem_args')
7962
    if self.item is not None:
7963
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
7964
      self.item.write(oprot)
7965
      oprot.writeFieldEnd()
7966
    oprot.writeFieldStop()
7967
    oprot.writeStructEnd()
7968
 
7969
  def validate(self):
7970
    return
7971
 
7972
 
7973
  def __repr__(self):
7974
    L = ['%s=%r' % (key, value)
7975
      for key, value in self.__dict__.iteritems()]
7976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7977
 
7978
  def __eq__(self, other):
7979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7980
 
7981
  def __ne__(self, other):
7982
    return not (self == other)
7983
 
7984
class updateItem_result:
7985
  """
7986
  Attributes:
7987
   - success
7988
   - cex
7989
  """
7990
 
7991
  thrift_spec = (
7992
    (0, TType.I64, 'success', None, None, ), # 0
7993
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7994
  )
7995
 
7996
  def __init__(self, success=None, cex=None,):
7997
    self.success = success
7998
    self.cex = cex
7999
 
8000
  def read(self, iprot):
8001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8003
      return
8004
    iprot.readStructBegin()
8005
    while True:
8006
      (fname, ftype, fid) = iprot.readFieldBegin()
8007
      if ftype == TType.STOP:
8008
        break
8009
      if fid == 0:
8010
        if ftype == TType.I64:
8011
          self.success = iprot.readI64();
8012
        else:
8013
          iprot.skip(ftype)
8014
      elif fid == 1:
8015
        if ftype == TType.STRUCT:
8016
          self.cex = CatalogServiceException()
8017
          self.cex.read(iprot)
8018
        else:
8019
          iprot.skip(ftype)
8020
      else:
8021
        iprot.skip(ftype)
8022
      iprot.readFieldEnd()
8023
    iprot.readStructEnd()
8024
 
8025
  def write(self, oprot):
8026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8028
      return
8029
    oprot.writeStructBegin('updateItem_result')
8030
    if self.success is not None:
8031
      oprot.writeFieldBegin('success', TType.I64, 0)
8032
      oprot.writeI64(self.success)
8033
      oprot.writeFieldEnd()
8034
    if self.cex is not None:
8035
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8036
      self.cex.write(oprot)
8037
      oprot.writeFieldEnd()
8038
    oprot.writeFieldStop()
8039
    oprot.writeStructEnd()
8040
 
8041
  def validate(self):
8042
    return
8043
 
8044
 
8045
  def __repr__(self):
8046
    L = ['%s=%r' % (key, value)
8047
      for key, value in self.__dict__.iteritems()]
8048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8049
 
8050
  def __eq__(self, other):
8051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8052
 
8053
  def __ne__(self, other):
8054
    return not (self == other)
8055
 
8056
class isActive_args:
8057
  """
8058
  Attributes:
8059
   - itemId
8060
  """
8061
 
8062
  thrift_spec = (
8063
    None, # 0
8064
    (1, TType.I64, 'itemId', None, None, ), # 1
8065
  )
8066
 
8067
  def __init__(self, itemId=None,):
8068
    self.itemId = itemId
8069
 
8070
  def read(self, iprot):
8071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8073
      return
8074
    iprot.readStructBegin()
8075
    while True:
8076
      (fname, ftype, fid) = iprot.readFieldBegin()
8077
      if ftype == TType.STOP:
8078
        break
8079
      if fid == 1:
8080
        if ftype == TType.I64:
8081
          self.itemId = iprot.readI64();
8082
        else:
8083
          iprot.skip(ftype)
8084
      else:
8085
        iprot.skip(ftype)
8086
      iprot.readFieldEnd()
8087
    iprot.readStructEnd()
8088
 
8089
  def write(self, oprot):
8090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8092
      return
8093
    oprot.writeStructBegin('isActive_args')
8094
    if self.itemId is not None:
8095
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8096
      oprot.writeI64(self.itemId)
8097
      oprot.writeFieldEnd()
8098
    oprot.writeFieldStop()
8099
    oprot.writeStructEnd()
8100
 
8101
  def validate(self):
8102
    return
8103
 
8104
 
8105
  def __repr__(self):
8106
    L = ['%s=%r' % (key, value)
8107
      for key, value in self.__dict__.iteritems()]
8108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8109
 
8110
  def __eq__(self, other):
8111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8112
 
8113
  def __ne__(self, other):
8114
    return not (self == other)
8115
 
8116
class isActive_result:
8117
  """
8118
  Attributes:
8119
   - success
8120
   - isex
8121
  """
8122
 
8123
  thrift_spec = (
8124
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
8125
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8126
  )
8127
 
8128
  def __init__(self, success=None, isex=None,):
8129
    self.success = success
8130
    self.isex = isex
8131
 
8132
  def read(self, iprot):
8133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8135
      return
8136
    iprot.readStructBegin()
8137
    while True:
8138
      (fname, ftype, fid) = iprot.readFieldBegin()
8139
      if ftype == TType.STOP:
8140
        break
8141
      if fid == 0:
8142
        if ftype == TType.STRUCT:
8143
          self.success = ItemShippingInfo()
8144
          self.success.read(iprot)
8145
        else:
8146
          iprot.skip(ftype)
8147
      elif fid == 1:
8148
        if ftype == TType.STRUCT:
8149
          self.isex = CatalogServiceException()
8150
          self.isex.read(iprot)
8151
        else:
8152
          iprot.skip(ftype)
8153
      else:
8154
        iprot.skip(ftype)
8155
      iprot.readFieldEnd()
8156
    iprot.readStructEnd()
8157
 
8158
  def write(self, oprot):
8159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8161
      return
8162
    oprot.writeStructBegin('isActive_result')
8163
    if self.success is not None:
8164
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8165
      self.success.write(oprot)
8166
      oprot.writeFieldEnd()
8167
    if self.isex is not None:
8168
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8169
      self.isex.write(oprot)
8170
      oprot.writeFieldEnd()
8171
    oprot.writeFieldStop()
8172
    oprot.writeStructEnd()
8173
 
8174
  def validate(self):
8175
    return
8176
 
8177
 
8178
  def __repr__(self):
8179
    L = ['%s=%r' % (key, value)
8180
      for key, value in self.__dict__.iteritems()]
8181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8182
 
8183
  def __eq__(self, other):
8184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8185
 
8186
  def __ne__(self, other):
8187
    return not (self == other)
8188
 
7438 amit.gupta 8189
class getItemsStatus_args:
8190
  """
8191
  Attributes:
8192
   - itemIds
8193
  """
8194
 
8195
  thrift_spec = (
8196
    None, # 0
8197
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
8198
  )
8199
 
8200
  def __init__(self, itemIds=None,):
8201
    self.itemIds = itemIds
8202
 
8203
  def read(self, iprot):
8204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8206
      return
8207
    iprot.readStructBegin()
8208
    while True:
8209
      (fname, ftype, fid) = iprot.readFieldBegin()
8210
      if ftype == TType.STOP:
8211
        break
8212
      if fid == 1:
8213
        if ftype == TType.LIST:
8214
          self.itemIds = []
8590 kshitij.so 8215
          (_etype33, _size30) = iprot.readListBegin()
8216
          for _i34 in xrange(_size30):
8217
            _elem35 = iprot.readI64();
8218
            self.itemIds.append(_elem35)
7438 amit.gupta 8219
          iprot.readListEnd()
8220
        else:
8221
          iprot.skip(ftype)
8222
      else:
8223
        iprot.skip(ftype)
8224
      iprot.readFieldEnd()
8225
    iprot.readStructEnd()
8226
 
8227
  def write(self, oprot):
8228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8230
      return
8231
    oprot.writeStructBegin('getItemsStatus_args')
8232
    if self.itemIds is not None:
8233
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
8234
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 8235
      for iter36 in self.itemIds:
8236
        oprot.writeI64(iter36)
7438 amit.gupta 8237
      oprot.writeListEnd()
8238
      oprot.writeFieldEnd()
8239
    oprot.writeFieldStop()
8240
    oprot.writeStructEnd()
8241
 
8242
  def validate(self):
8243
    return
8244
 
8245
 
8246
  def __repr__(self):
8247
    L = ['%s=%r' % (key, value)
8248
      for key, value in self.__dict__.iteritems()]
8249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8250
 
8251
  def __eq__(self, other):
8252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8253
 
8254
  def __ne__(self, other):
8255
    return not (self == other)
8256
 
8257
class getItemsStatus_result:
8258
  """
8259
  Attributes:
8260
   - success
8261
   - isex
8262
  """
8263
 
8264
  thrift_spec = (
8265
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
8266
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8267
  )
8268
 
8269
  def __init__(self, success=None, isex=None,):
8270
    self.success = success
8271
    self.isex = isex
8272
 
8273
  def read(self, iprot):
8274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8276
      return
8277
    iprot.readStructBegin()
8278
    while True:
8279
      (fname, ftype, fid) = iprot.readFieldBegin()
8280
      if ftype == TType.STOP:
8281
        break
8282
      if fid == 0:
8283
        if ftype == TType.MAP:
8284
          self.success = {}
8590 kshitij.so 8285
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
8286
          for _i41 in xrange(_size37):
8287
            _key42 = iprot.readI64();
8288
            _val43 = iprot.readBool();
8289
            self.success[_key42] = _val43
7438 amit.gupta 8290
          iprot.readMapEnd()
8291
        else:
8292
          iprot.skip(ftype)
8293
      elif fid == 1:
8294
        if ftype == TType.STRUCT:
8295
          self.isex = CatalogServiceException()
8296
          self.isex.read(iprot)
8297
        else:
8298
          iprot.skip(ftype)
8299
      else:
8300
        iprot.skip(ftype)
8301
      iprot.readFieldEnd()
8302
    iprot.readStructEnd()
8303
 
8304
  def write(self, oprot):
8305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8307
      return
8308
    oprot.writeStructBegin('getItemsStatus_result')
8309
    if self.success is not None:
8310
      oprot.writeFieldBegin('success', TType.MAP, 0)
8311
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 8312
      for kiter44,viter45 in self.success.items():
8313
        oprot.writeI64(kiter44)
8314
        oprot.writeBool(viter45)
7438 amit.gupta 8315
      oprot.writeMapEnd()
8316
      oprot.writeFieldEnd()
8317
    if self.isex is not None:
8318
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8319
      self.isex.write(oprot)
8320
      oprot.writeFieldEnd()
8321
    oprot.writeFieldStop()
8322
    oprot.writeStructEnd()
8323
 
8324
  def validate(self):
8325
    return
8326
 
8327
 
8328
  def __repr__(self):
8329
    L = ['%s=%r' % (key, value)
8330
      for key, value in self.__dict__.iteritems()]
8331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8332
 
8333
  def __eq__(self, other):
8334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8335
 
8336
  def __ne__(self, other):
8337
    return not (self == other)
8338
 
5944 mandeep.dh 8339
class getItemStatusDescription_args:
8340
  """
8341
  Attributes:
8342
   - itemId
8343
  """
8344
 
8345
  thrift_spec = (
8346
    None, # 0
8347
    (1, TType.I64, 'itemId', None, None, ), # 1
8348
  )
8349
 
8350
  def __init__(self, itemId=None,):
8351
    self.itemId = itemId
8352
 
8353
  def read(self, iprot):
8354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8356
      return
8357
    iprot.readStructBegin()
8358
    while True:
8359
      (fname, ftype, fid) = iprot.readFieldBegin()
8360
      if ftype == TType.STOP:
8361
        break
8362
      if fid == 1:
8363
        if ftype == TType.I64:
8364
          self.itemId = iprot.readI64();
8365
        else:
8366
          iprot.skip(ftype)
8367
      else:
8368
        iprot.skip(ftype)
8369
      iprot.readFieldEnd()
8370
    iprot.readStructEnd()
8371
 
8372
  def write(self, oprot):
8373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8375
      return
8376
    oprot.writeStructBegin('getItemStatusDescription_args')
8377
    if self.itemId is not None:
8378
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8379
      oprot.writeI64(self.itemId)
8380
      oprot.writeFieldEnd()
8381
    oprot.writeFieldStop()
8382
    oprot.writeStructEnd()
8383
 
8384
  def validate(self):
8385
    return
8386
 
8387
 
8388
  def __repr__(self):
8389
    L = ['%s=%r' % (key, value)
8390
      for key, value in self.__dict__.iteritems()]
8391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8392
 
8393
  def __eq__(self, other):
8394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8395
 
8396
  def __ne__(self, other):
8397
    return not (self == other)
8398
 
8399
class getItemStatusDescription_result:
8400
  """
8401
  Attributes:
8402
   - success
8403
   - isex
8404
  """
8405
 
8406
  thrift_spec = (
8407
    (0, TType.STRING, 'success', None, None, ), # 0
8408
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8409
  )
8410
 
8411
  def __init__(self, success=None, isex=None,):
8412
    self.success = success
8413
    self.isex = isex
8414
 
8415
  def read(self, iprot):
8416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8418
      return
8419
    iprot.readStructBegin()
8420
    while True:
8421
      (fname, ftype, fid) = iprot.readFieldBegin()
8422
      if ftype == TType.STOP:
8423
        break
8424
      if fid == 0:
8425
        if ftype == TType.STRING:
8426
          self.success = iprot.readString();
8427
        else:
8428
          iprot.skip(ftype)
8429
      elif fid == 1:
8430
        if ftype == TType.STRUCT:
8431
          self.isex = CatalogServiceException()
8432
          self.isex.read(iprot)
8433
        else:
8434
          iprot.skip(ftype)
8435
      else:
8436
        iprot.skip(ftype)
8437
      iprot.readFieldEnd()
8438
    iprot.readStructEnd()
8439
 
8440
  def write(self, oprot):
8441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8443
      return
8444
    oprot.writeStructBegin('getItemStatusDescription_result')
8445
    if self.success is not None:
8446
      oprot.writeFieldBegin('success', TType.STRING, 0)
8447
      oprot.writeString(self.success)
8448
      oprot.writeFieldEnd()
8449
    if self.isex is not None:
8450
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8451
      self.isex.write(oprot)
8452
      oprot.writeFieldEnd()
8453
    oprot.writeFieldStop()
8454
    oprot.writeStructEnd()
8455
 
8456
  def validate(self):
8457
    return
8458
 
8459
 
8460
  def __repr__(self):
8461
    L = ['%s=%r' % (key, value)
8462
      for key, value in self.__dict__.iteritems()]
8463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8464
 
8465
  def __eq__(self, other):
8466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8467
 
8468
  def __ne__(self, other):
8469
    return not (self == other)
8470
 
8471
class startItemOn_args:
8472
  """
8473
  Attributes:
8474
   - item_id
8475
   - timestamp
8476
  """
8477
 
8478
  thrift_spec = (
8479
    None, # 0
8480
    (1, TType.I64, 'item_id', None, None, ), # 1
8481
    (2, TType.I64, 'timestamp', None, None, ), # 2
8482
  )
8483
 
8484
  def __init__(self, item_id=None, timestamp=None,):
8485
    self.item_id = item_id
8486
    self.timestamp = timestamp
8487
 
8488
  def read(self, iprot):
8489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8491
      return
8492
    iprot.readStructBegin()
8493
    while True:
8494
      (fname, ftype, fid) = iprot.readFieldBegin()
8495
      if ftype == TType.STOP:
8496
        break
8497
      if fid == 1:
8498
        if ftype == TType.I64:
8499
          self.item_id = iprot.readI64();
8500
        else:
8501
          iprot.skip(ftype)
8502
      elif fid == 2:
8503
        if ftype == TType.I64:
8504
          self.timestamp = iprot.readI64();
8505
        else:
8506
          iprot.skip(ftype)
8507
      else:
8508
        iprot.skip(ftype)
8509
      iprot.readFieldEnd()
8510
    iprot.readStructEnd()
8511
 
8512
  def write(self, oprot):
8513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8515
      return
8516
    oprot.writeStructBegin('startItemOn_args')
8517
    if self.item_id is not None:
8518
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8519
      oprot.writeI64(self.item_id)
8520
      oprot.writeFieldEnd()
8521
    if self.timestamp is not None:
8522
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8523
      oprot.writeI64(self.timestamp)
8524
      oprot.writeFieldEnd()
8525
    oprot.writeFieldStop()
8526
    oprot.writeStructEnd()
8527
 
8528
  def validate(self):
8529
    return
8530
 
8531
 
8532
  def __repr__(self):
8533
    L = ['%s=%r' % (key, value)
8534
      for key, value in self.__dict__.iteritems()]
8535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8536
 
8537
  def __eq__(self, other):
8538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8539
 
8540
  def __ne__(self, other):
8541
    return not (self == other)
8542
 
8543
class startItemOn_result:
8544
  """
8545
  Attributes:
8546
   - cex
8547
  """
8548
 
8549
  thrift_spec = (
8550
    None, # 0
8551
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8552
  )
8553
 
8554
  def __init__(self, cex=None,):
8555
    self.cex = cex
8556
 
8557
  def read(self, iprot):
8558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8560
      return
8561
    iprot.readStructBegin()
8562
    while True:
8563
      (fname, ftype, fid) = iprot.readFieldBegin()
8564
      if ftype == TType.STOP:
8565
        break
8566
      if fid == 1:
8567
        if ftype == TType.STRUCT:
8568
          self.cex = CatalogServiceException()
8569
          self.cex.read(iprot)
8570
        else:
8571
          iprot.skip(ftype)
8572
      else:
8573
        iprot.skip(ftype)
8574
      iprot.readFieldEnd()
8575
    iprot.readStructEnd()
8576
 
8577
  def write(self, oprot):
8578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8580
      return
8581
    oprot.writeStructBegin('startItemOn_result')
8582
    if self.cex is not None:
8583
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8584
      self.cex.write(oprot)
8585
      oprot.writeFieldEnd()
8586
    oprot.writeFieldStop()
8587
    oprot.writeStructEnd()
8588
 
8589
  def validate(self):
8590
    return
8591
 
8592
 
8593
  def __repr__(self):
8594
    L = ['%s=%r' % (key, value)
8595
      for key, value in self.__dict__.iteritems()]
8596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8597
 
8598
  def __eq__(self, other):
8599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8600
 
8601
  def __ne__(self, other):
8602
    return not (self == other)
8603
 
8604
class retireItemOn_args:
8605
  """
8606
  Attributes:
8607
   - item_id
8608
   - timestamp
8609
  """
8610
 
8611
  thrift_spec = (
8612
    None, # 0
8613
    (1, TType.I64, 'item_id', None, None, ), # 1
8614
    (2, TType.I64, 'timestamp', None, None, ), # 2
8615
  )
8616
 
8617
  def __init__(self, item_id=None, timestamp=None,):
8618
    self.item_id = item_id
8619
    self.timestamp = timestamp
8620
 
8621
  def read(self, iprot):
8622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8624
      return
8625
    iprot.readStructBegin()
8626
    while True:
8627
      (fname, ftype, fid) = iprot.readFieldBegin()
8628
      if ftype == TType.STOP:
8629
        break
8630
      if fid == 1:
8631
        if ftype == TType.I64:
8632
          self.item_id = iprot.readI64();
8633
        else:
8634
          iprot.skip(ftype)
8635
      elif fid == 2:
8636
        if ftype == TType.I64:
8637
          self.timestamp = iprot.readI64();
8638
        else:
8639
          iprot.skip(ftype)
8640
      else:
8641
        iprot.skip(ftype)
8642
      iprot.readFieldEnd()
8643
    iprot.readStructEnd()
8644
 
8645
  def write(self, oprot):
8646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8648
      return
8649
    oprot.writeStructBegin('retireItemOn_args')
8650
    if self.item_id is not None:
8651
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8652
      oprot.writeI64(self.item_id)
8653
      oprot.writeFieldEnd()
8654
    if self.timestamp is not None:
8655
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8656
      oprot.writeI64(self.timestamp)
8657
      oprot.writeFieldEnd()
8658
    oprot.writeFieldStop()
8659
    oprot.writeStructEnd()
8660
 
8661
  def validate(self):
8662
    return
8663
 
8664
 
8665
  def __repr__(self):
8666
    L = ['%s=%r' % (key, value)
8667
      for key, value in self.__dict__.iteritems()]
8668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8669
 
8670
  def __eq__(self, other):
8671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8672
 
8673
  def __ne__(self, other):
8674
    return not (self == other)
8675
 
8676
class retireItemOn_result:
8677
  """
8678
  Attributes:
8679
   - cex
8680
  """
8681
 
8682
  thrift_spec = (
8683
    None, # 0
8684
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8685
  )
8686
 
8687
  def __init__(self, cex=None,):
8688
    self.cex = cex
8689
 
8690
  def read(self, iprot):
8691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8693
      return
8694
    iprot.readStructBegin()
8695
    while True:
8696
      (fname, ftype, fid) = iprot.readFieldBegin()
8697
      if ftype == TType.STOP:
8698
        break
8699
      if fid == 1:
8700
        if ftype == TType.STRUCT:
8701
          self.cex = CatalogServiceException()
8702
          self.cex.read(iprot)
8703
        else:
8704
          iprot.skip(ftype)
8705
      else:
8706
        iprot.skip(ftype)
8707
      iprot.readFieldEnd()
8708
    iprot.readStructEnd()
8709
 
8710
  def write(self, oprot):
8711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8713
      return
8714
    oprot.writeStructBegin('retireItemOn_result')
8715
    if self.cex is not None:
8716
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8717
      self.cex.write(oprot)
8718
      oprot.writeFieldEnd()
8719
    oprot.writeFieldStop()
8720
    oprot.writeStructEnd()
8721
 
8722
  def validate(self):
8723
    return
8724
 
8725
 
8726
  def __repr__(self):
8727
    L = ['%s=%r' % (key, value)
8728
      for key, value in self.__dict__.iteritems()]
8729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8730
 
8731
  def __eq__(self, other):
8732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8733
 
8734
  def __ne__(self, other):
8735
    return not (self == other)
8736
 
8737
class changeItemStatus_args:
8738
  """
8739
  Attributes:
8740
   - item_id
8741
   - timestamp
8742
   - newstatus
8743
  """
8744
 
8745
  thrift_spec = (
8746
    None, # 0
8747
    (1, TType.I64, 'item_id', None, None, ), # 1
8748
    (2, TType.I64, 'timestamp', None, None, ), # 2
8749
    (3, TType.I32, 'newstatus', None, None, ), # 3
8750
  )
8751
 
8752
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
8753
    self.item_id = item_id
8754
    self.timestamp = timestamp
8755
    self.newstatus = newstatus
8756
 
8757
  def read(self, iprot):
8758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8760
      return
8761
    iprot.readStructBegin()
8762
    while True:
8763
      (fname, ftype, fid) = iprot.readFieldBegin()
8764
      if ftype == TType.STOP:
8765
        break
8766
      if fid == 1:
8767
        if ftype == TType.I64:
8768
          self.item_id = iprot.readI64();
8769
        else:
8770
          iprot.skip(ftype)
8771
      elif fid == 2:
8772
        if ftype == TType.I64:
8773
          self.timestamp = iprot.readI64();
8774
        else:
8775
          iprot.skip(ftype)
8776
      elif fid == 3:
8777
        if ftype == TType.I32:
8778
          self.newstatus = iprot.readI32();
8779
        else:
8780
          iprot.skip(ftype)
8781
      else:
8782
        iprot.skip(ftype)
8783
      iprot.readFieldEnd()
8784
    iprot.readStructEnd()
8785
 
8786
  def write(self, oprot):
8787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8789
      return
8790
    oprot.writeStructBegin('changeItemStatus_args')
8791
    if self.item_id is not None:
8792
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8793
      oprot.writeI64(self.item_id)
8794
      oprot.writeFieldEnd()
8795
    if self.timestamp is not None:
8796
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
8797
      oprot.writeI64(self.timestamp)
8798
      oprot.writeFieldEnd()
8799
    if self.newstatus is not None:
8800
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
8801
      oprot.writeI32(self.newstatus)
8802
      oprot.writeFieldEnd()
8803
    oprot.writeFieldStop()
8804
    oprot.writeStructEnd()
8805
 
8806
  def validate(self):
8807
    return
8808
 
8809
 
8810
  def __repr__(self):
8811
    L = ['%s=%r' % (key, value)
8812
      for key, value in self.__dict__.iteritems()]
8813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8814
 
8815
  def __eq__(self, other):
8816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8817
 
8818
  def __ne__(self, other):
8819
    return not (self == other)
8820
 
8821
class changeItemStatus_result:
8822
  """
8823
  Attributes:
8824
   - cex
8825
  """
8826
 
8827
  thrift_spec = (
8828
    None, # 0
8829
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8830
  )
8831
 
8832
  def __init__(self, cex=None,):
8833
    self.cex = cex
8834
 
8835
  def read(self, iprot):
8836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8838
      return
8839
    iprot.readStructBegin()
8840
    while True:
8841
      (fname, ftype, fid) = iprot.readFieldBegin()
8842
      if ftype == TType.STOP:
8843
        break
8844
      if fid == 1:
8845
        if ftype == TType.STRUCT:
8846
          self.cex = CatalogServiceException()
8847
          self.cex.read(iprot)
8848
        else:
8849
          iprot.skip(ftype)
8850
      else:
8851
        iprot.skip(ftype)
8852
      iprot.readFieldEnd()
8853
    iprot.readStructEnd()
8854
 
8855
  def write(self, oprot):
8856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8858
      return
8859
    oprot.writeStructBegin('changeItemStatus_result')
8860
    if self.cex is not None:
8861
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8862
      self.cex.write(oprot)
8863
      oprot.writeFieldEnd()
8864
    oprot.writeFieldStop()
8865
    oprot.writeStructEnd()
8866
 
8867
  def validate(self):
8868
    return
8869
 
8870
 
8871
  def __repr__(self):
8872
    L = ['%s=%r' % (key, value)
8873
      for key, value in self.__dict__.iteritems()]
8874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8875
 
8876
  def __eq__(self, other):
8877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8878
 
8879
  def __ne__(self, other):
8880
    return not (self == other)
8881
 
8882
class getItem_args:
8883
  """
8884
  Attributes:
8885
   - item_id
8886
  """
8887
 
8888
  thrift_spec = (
8889
    None, # 0
8890
    (1, TType.I64, 'item_id', None, None, ), # 1
8891
  )
8892
 
8893
  def __init__(self, item_id=None,):
8894
    self.item_id = item_id
8895
 
8896
  def read(self, iprot):
8897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8899
      return
8900
    iprot.readStructBegin()
8901
    while True:
8902
      (fname, ftype, fid) = iprot.readFieldBegin()
8903
      if ftype == TType.STOP:
8904
        break
8905
      if fid == 1:
8906
        if ftype == TType.I64:
8907
          self.item_id = iprot.readI64();
8908
        else:
8909
          iprot.skip(ftype)
8910
      else:
8911
        iprot.skip(ftype)
8912
      iprot.readFieldEnd()
8913
    iprot.readStructEnd()
8914
 
8915
  def write(self, oprot):
8916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8918
      return
8919
    oprot.writeStructBegin('getItem_args')
8920
    if self.item_id is not None:
8921
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8922
      oprot.writeI64(self.item_id)
8923
      oprot.writeFieldEnd()
8924
    oprot.writeFieldStop()
8925
    oprot.writeStructEnd()
8926
 
8927
  def validate(self):
8928
    return
8929
 
8930
 
8931
  def __repr__(self):
8932
    L = ['%s=%r' % (key, value)
8933
      for key, value in self.__dict__.iteritems()]
8934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8935
 
8936
  def __eq__(self, other):
8937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8938
 
8939
  def __ne__(self, other):
8940
    return not (self == other)
8941
 
8942
class getItem_result:
8943
  """
8944
  Attributes:
8945
   - success
8946
   - cex
8947
  """
8948
 
8949
  thrift_spec = (
8950
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8951
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8952
  )
8953
 
8954
  def __init__(self, success=None, cex=None,):
8955
    self.success = success
8956
    self.cex = cex
8957
 
8958
  def read(self, iprot):
8959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8961
      return
8962
    iprot.readStructBegin()
8963
    while True:
8964
      (fname, ftype, fid) = iprot.readFieldBegin()
8965
      if ftype == TType.STOP:
8966
        break
8967
      if fid == 0:
8968
        if ftype == TType.STRUCT:
8969
          self.success = Item()
8970
          self.success.read(iprot)
8971
        else:
8972
          iprot.skip(ftype)
8973
      elif fid == 1:
8974
        if ftype == TType.STRUCT:
8975
          self.cex = CatalogServiceException()
8976
          self.cex.read(iprot)
8977
        else:
8978
          iprot.skip(ftype)
8979
      else:
8980
        iprot.skip(ftype)
8981
      iprot.readFieldEnd()
8982
    iprot.readStructEnd()
8983
 
8984
  def write(self, oprot):
8985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8987
      return
8988
    oprot.writeStructBegin('getItem_result')
8989
    if self.success is not None:
8990
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8991
      self.success.write(oprot)
8992
      oprot.writeFieldEnd()
8993
    if self.cex is not None:
8994
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8995
      self.cex.write(oprot)
8996
      oprot.writeFieldEnd()
8997
    oprot.writeFieldStop()
8998
    oprot.writeStructEnd()
8999
 
9000
  def validate(self):
9001
    return
9002
 
9003
 
9004
  def __repr__(self):
9005
    L = ['%s=%r' % (key, value)
9006
      for key, value in self.__dict__.iteritems()]
9007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9008
 
9009
  def __eq__(self, other):
9010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9011
 
9012
  def __ne__(self, other):
9013
    return not (self == other)
9014
 
9015
class getItemsByCatalogId_args:
9016
  """
9017
  Attributes:
9018
   - catalog_item_id
9019
  """
9020
 
9021
  thrift_spec = (
9022
    None, # 0
9023
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
9024
  )
9025
 
9026
  def __init__(self, catalog_item_id=None,):
9027
    self.catalog_item_id = catalog_item_id
9028
 
9029
  def read(self, iprot):
9030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9032
      return
9033
    iprot.readStructBegin()
9034
    while True:
9035
      (fname, ftype, fid) = iprot.readFieldBegin()
9036
      if ftype == TType.STOP:
9037
        break
9038
      if fid == 1:
9039
        if ftype == TType.I64:
9040
          self.catalog_item_id = iprot.readI64();
9041
        else:
9042
          iprot.skip(ftype)
9043
      else:
9044
        iprot.skip(ftype)
9045
      iprot.readFieldEnd()
9046
    iprot.readStructEnd()
9047
 
9048
  def write(self, oprot):
9049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9051
      return
9052
    oprot.writeStructBegin('getItemsByCatalogId_args')
9053
    if self.catalog_item_id is not None:
9054
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
9055
      oprot.writeI64(self.catalog_item_id)
9056
      oprot.writeFieldEnd()
9057
    oprot.writeFieldStop()
9058
    oprot.writeStructEnd()
9059
 
9060
  def validate(self):
9061
    return
9062
 
9063
 
9064
  def __repr__(self):
9065
    L = ['%s=%r' % (key, value)
9066
      for key, value in self.__dict__.iteritems()]
9067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9068
 
9069
  def __eq__(self, other):
9070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9071
 
9072
  def __ne__(self, other):
9073
    return not (self == other)
9074
 
9075
class getItemsByCatalogId_result:
9076
  """
9077
  Attributes:
9078
   - success
9079
   - cex
9080
  """
9081
 
9082
  thrift_spec = (
9083
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9084
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9085
  )
9086
 
9087
  def __init__(self, success=None, cex=None,):
9088
    self.success = success
9089
    self.cex = cex
9090
 
9091
  def read(self, iprot):
9092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9094
      return
9095
    iprot.readStructBegin()
9096
    while True:
9097
      (fname, ftype, fid) = iprot.readFieldBegin()
9098
      if ftype == TType.STOP:
9099
        break
9100
      if fid == 0:
9101
        if ftype == TType.LIST:
9102
          self.success = []
8590 kshitij.so 9103
          (_etype49, _size46) = iprot.readListBegin()
9104
          for _i50 in xrange(_size46):
9105
            _elem51 = Item()
9106
            _elem51.read(iprot)
9107
            self.success.append(_elem51)
5944 mandeep.dh 9108
          iprot.readListEnd()
9109
        else:
9110
          iprot.skip(ftype)
9111
      elif fid == 1:
9112
        if ftype == TType.STRUCT:
9113
          self.cex = CatalogServiceException()
9114
          self.cex.read(iprot)
9115
        else:
9116
          iprot.skip(ftype)
9117
      else:
9118
        iprot.skip(ftype)
9119
      iprot.readFieldEnd()
9120
    iprot.readStructEnd()
9121
 
9122
  def write(self, oprot):
9123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9125
      return
9126
    oprot.writeStructBegin('getItemsByCatalogId_result')
9127
    if self.success is not None:
9128
      oprot.writeFieldBegin('success', TType.LIST, 0)
9129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9130
      for iter52 in self.success:
9131
        iter52.write(oprot)
5944 mandeep.dh 9132
      oprot.writeListEnd()
9133
      oprot.writeFieldEnd()
9134
    if self.cex is not None:
9135
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9136
      self.cex.write(oprot)
9137
      oprot.writeFieldEnd()
9138
    oprot.writeFieldStop()
9139
    oprot.writeStructEnd()
9140
 
9141
  def validate(self):
9142
    return
9143
 
9144
 
9145
  def __repr__(self):
9146
    L = ['%s=%r' % (key, value)
9147
      for key, value in self.__dict__.iteritems()]
9148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9149
 
9150
  def __eq__(self, other):
9151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9152
 
9153
  def __ne__(self, other):
9154
    return not (self == other)
9155
 
9156
class getValidItemsByCatalogId_args:
9157
  """
9158
  Attributes:
9159
   - catalog_item_id
9160
  """
9161
 
9162
  thrift_spec = (
9163
    None, # 0
9164
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
9165
  )
9166
 
9167
  def __init__(self, catalog_item_id=None,):
9168
    self.catalog_item_id = catalog_item_id
9169
 
9170
  def read(self, iprot):
9171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9173
      return
9174
    iprot.readStructBegin()
9175
    while True:
9176
      (fname, ftype, fid) = iprot.readFieldBegin()
9177
      if ftype == TType.STOP:
9178
        break
9179
      if fid == 1:
9180
        if ftype == TType.I64:
9181
          self.catalog_item_id = iprot.readI64();
9182
        else:
9183
          iprot.skip(ftype)
9184
      else:
9185
        iprot.skip(ftype)
9186
      iprot.readFieldEnd()
9187
    iprot.readStructEnd()
9188
 
9189
  def write(self, oprot):
9190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9192
      return
9193
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
9194
    if self.catalog_item_id is not None:
9195
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
9196
      oprot.writeI64(self.catalog_item_id)
9197
      oprot.writeFieldEnd()
9198
    oprot.writeFieldStop()
9199
    oprot.writeStructEnd()
9200
 
9201
  def validate(self):
9202
    return
9203
 
9204
 
9205
  def __repr__(self):
9206
    L = ['%s=%r' % (key, value)
9207
      for key, value in self.__dict__.iteritems()]
9208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9209
 
9210
  def __eq__(self, other):
9211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9212
 
9213
  def __ne__(self, other):
9214
    return not (self == other)
9215
 
9216
class getValidItemsByCatalogId_result:
9217
  """
9218
  Attributes:
9219
   - success
9220
   - cex
9221
  """
9222
 
9223
  thrift_spec = (
9224
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9225
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9226
  )
9227
 
9228
  def __init__(self, success=None, cex=None,):
9229
    self.success = success
9230
    self.cex = cex
9231
 
9232
  def read(self, iprot):
9233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9235
      return
9236
    iprot.readStructBegin()
9237
    while True:
9238
      (fname, ftype, fid) = iprot.readFieldBegin()
9239
      if ftype == TType.STOP:
9240
        break
9241
      if fid == 0:
9242
        if ftype == TType.LIST:
9243
          self.success = []
8590 kshitij.so 9244
          (_etype56, _size53) = iprot.readListBegin()
9245
          for _i57 in xrange(_size53):
9246
            _elem58 = Item()
9247
            _elem58.read(iprot)
9248
            self.success.append(_elem58)
5944 mandeep.dh 9249
          iprot.readListEnd()
9250
        else:
9251
          iprot.skip(ftype)
9252
      elif fid == 1:
9253
        if ftype == TType.STRUCT:
9254
          self.cex = CatalogServiceException()
9255
          self.cex.read(iprot)
9256
        else:
9257
          iprot.skip(ftype)
9258
      else:
9259
        iprot.skip(ftype)
9260
      iprot.readFieldEnd()
9261
    iprot.readStructEnd()
9262
 
9263
  def write(self, oprot):
9264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9266
      return
9267
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
9268
    if self.success is not None:
9269
      oprot.writeFieldBegin('success', TType.LIST, 0)
9270
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9271
      for iter59 in self.success:
9272
        iter59.write(oprot)
5944 mandeep.dh 9273
      oprot.writeListEnd()
9274
      oprot.writeFieldEnd()
9275
    if self.cex is not None:
9276
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9277
      self.cex.write(oprot)
9278
      oprot.writeFieldEnd()
9279
    oprot.writeFieldStop()
9280
    oprot.writeStructEnd()
9281
 
9282
  def validate(self):
9283
    return
9284
 
9285
 
9286
  def __repr__(self):
9287
    L = ['%s=%r' % (key, value)
9288
      for key, value in self.__dict__.iteritems()]
9289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9290
 
9291
  def __eq__(self, other):
9292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9293
 
9294
  def __ne__(self, other):
9295
    return not (self == other)
9296
 
9297
class getAllItems_args:
9298
  """
9299
  Attributes:
9300
   - isActive
9301
  """
9302
 
9303
  thrift_spec = (
9304
    None, # 0
9305
    (1, TType.BOOL, 'isActive', None, None, ), # 1
9306
  )
9307
 
9308
  def __init__(self, isActive=None,):
9309
    self.isActive = isActive
9310
 
9311
  def read(self, iprot):
9312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9314
      return
9315
    iprot.readStructBegin()
9316
    while True:
9317
      (fname, ftype, fid) = iprot.readFieldBegin()
9318
      if ftype == TType.STOP:
9319
        break
9320
      if fid == 1:
9321
        if ftype == TType.BOOL:
9322
          self.isActive = iprot.readBool();
9323
        else:
9324
          iprot.skip(ftype)
9325
      else:
9326
        iprot.skip(ftype)
9327
      iprot.readFieldEnd()
9328
    iprot.readStructEnd()
9329
 
9330
  def write(self, oprot):
9331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9333
      return
9334
    oprot.writeStructBegin('getAllItems_args')
9335
    if self.isActive is not None:
9336
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
9337
      oprot.writeBool(self.isActive)
9338
      oprot.writeFieldEnd()
9339
    oprot.writeFieldStop()
9340
    oprot.writeStructEnd()
9341
 
9342
  def validate(self):
9343
    return
9344
 
9345
 
9346
  def __repr__(self):
9347
    L = ['%s=%r' % (key, value)
9348
      for key, value in self.__dict__.iteritems()]
9349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9350
 
9351
  def __eq__(self, other):
9352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9353
 
9354
  def __ne__(self, other):
9355
    return not (self == other)
9356
 
9357
class getAllItems_result:
9358
  """
9359
  Attributes:
9360
   - success
9361
   - cex
9362
  """
9363
 
9364
  thrift_spec = (
9365
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9366
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9367
  )
9368
 
9369
  def __init__(self, success=None, cex=None,):
9370
    self.success = success
9371
    self.cex = cex
9372
 
9373
  def read(self, iprot):
9374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9376
      return
9377
    iprot.readStructBegin()
9378
    while True:
9379
      (fname, ftype, fid) = iprot.readFieldBegin()
9380
      if ftype == TType.STOP:
9381
        break
9382
      if fid == 0:
9383
        if ftype == TType.LIST:
9384
          self.success = []
8590 kshitij.so 9385
          (_etype63, _size60) = iprot.readListBegin()
9386
          for _i64 in xrange(_size60):
9387
            _elem65 = Item()
9388
            _elem65.read(iprot)
9389
            self.success.append(_elem65)
5944 mandeep.dh 9390
          iprot.readListEnd()
9391
        else:
9392
          iprot.skip(ftype)
9393
      elif fid == 1:
9394
        if ftype == TType.STRUCT:
9395
          self.cex = CatalogServiceException()
9396
          self.cex.read(iprot)
9397
        else:
9398
          iprot.skip(ftype)
9399
      else:
9400
        iprot.skip(ftype)
9401
      iprot.readFieldEnd()
9402
    iprot.readStructEnd()
9403
 
9404
  def write(self, oprot):
9405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9407
      return
9408
    oprot.writeStructBegin('getAllItems_result')
9409
    if self.success is not None:
9410
      oprot.writeFieldBegin('success', TType.LIST, 0)
9411
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9412
      for iter66 in self.success:
9413
        iter66.write(oprot)
5944 mandeep.dh 9414
      oprot.writeListEnd()
9415
      oprot.writeFieldEnd()
9416
    if self.cex is not None:
9417
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9418
      self.cex.write(oprot)
9419
      oprot.writeFieldEnd()
9420
    oprot.writeFieldStop()
9421
    oprot.writeStructEnd()
9422
 
9423
  def validate(self):
9424
    return
9425
 
9426
 
9427
  def __repr__(self):
9428
    L = ['%s=%r' % (key, value)
9429
      for key, value in self.__dict__.iteritems()]
9430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9431
 
9432
  def __eq__(self, other):
9433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9434
 
9435
  def __ne__(self, other):
9436
    return not (self == other)
9437
 
9438
class getAllItemsByStatus_args:
9439
  """
9440
  Attributes:
9441
   - itemStatus
9442
  """
9443
 
9444
  thrift_spec = (
9445
    None, # 0
9446
    (1, TType.I32, 'itemStatus', None, None, ), # 1
9447
  )
9448
 
9449
  def __init__(self, itemStatus=None,):
9450
    self.itemStatus = itemStatus
9451
 
9452
  def read(self, iprot):
9453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9455
      return
9456
    iprot.readStructBegin()
9457
    while True:
9458
      (fname, ftype, fid) = iprot.readFieldBegin()
9459
      if ftype == TType.STOP:
9460
        break
9461
      if fid == 1:
9462
        if ftype == TType.I32:
9463
          self.itemStatus = iprot.readI32();
9464
        else:
9465
          iprot.skip(ftype)
9466
      else:
9467
        iprot.skip(ftype)
9468
      iprot.readFieldEnd()
9469
    iprot.readStructEnd()
9470
 
9471
  def write(self, oprot):
9472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9474
      return
9475
    oprot.writeStructBegin('getAllItemsByStatus_args')
9476
    if self.itemStatus is not None:
9477
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
9478
      oprot.writeI32(self.itemStatus)
9479
      oprot.writeFieldEnd()
9480
    oprot.writeFieldStop()
9481
    oprot.writeStructEnd()
9482
 
9483
  def validate(self):
9484
    return
9485
 
9486
 
9487
  def __repr__(self):
9488
    L = ['%s=%r' % (key, value)
9489
      for key, value in self.__dict__.iteritems()]
9490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9491
 
9492
  def __eq__(self, other):
9493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9494
 
9495
  def __ne__(self, other):
9496
    return not (self == other)
9497
 
9498
class getAllItemsByStatus_result:
9499
  """
9500
  Attributes:
9501
   - success
9502
   - cex
9503
  """
9504
 
9505
  thrift_spec = (
9506
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9507
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9508
  )
9509
 
9510
  def __init__(self, success=None, cex=None,):
9511
    self.success = success
9512
    self.cex = cex
9513
 
9514
  def read(self, iprot):
9515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9517
      return
9518
    iprot.readStructBegin()
9519
    while True:
9520
      (fname, ftype, fid) = iprot.readFieldBegin()
9521
      if ftype == TType.STOP:
9522
        break
9523
      if fid == 0:
9524
        if ftype == TType.LIST:
9525
          self.success = []
8590 kshitij.so 9526
          (_etype70, _size67) = iprot.readListBegin()
9527
          for _i71 in xrange(_size67):
9528
            _elem72 = Item()
9529
            _elem72.read(iprot)
9530
            self.success.append(_elem72)
5944 mandeep.dh 9531
          iprot.readListEnd()
9532
        else:
9533
          iprot.skip(ftype)
9534
      elif fid == 1:
9535
        if ftype == TType.STRUCT:
9536
          self.cex = CatalogServiceException()
9537
          self.cex.read(iprot)
9538
        else:
9539
          iprot.skip(ftype)
9540
      else:
9541
        iprot.skip(ftype)
9542
      iprot.readFieldEnd()
9543
    iprot.readStructEnd()
9544
 
9545
  def write(self, oprot):
9546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9548
      return
9549
    oprot.writeStructBegin('getAllItemsByStatus_result')
9550
    if self.success is not None:
9551
      oprot.writeFieldBegin('success', TType.LIST, 0)
9552
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9553
      for iter73 in self.success:
9554
        iter73.write(oprot)
5944 mandeep.dh 9555
      oprot.writeListEnd()
9556
      oprot.writeFieldEnd()
9557
    if self.cex is not None:
9558
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9559
      self.cex.write(oprot)
9560
      oprot.writeFieldEnd()
9561
    oprot.writeFieldStop()
9562
    oprot.writeStructEnd()
9563
 
9564
  def validate(self):
9565
    return
9566
 
9567
 
9568
  def __repr__(self):
9569
    L = ['%s=%r' % (key, value)
9570
      for key, value in self.__dict__.iteritems()]
9571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9572
 
9573
  def __eq__(self, other):
9574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9575
 
9576
  def __ne__(self, other):
9577
    return not (self == other)
9578
 
9579
class markItemAsContentComplete_args:
9580
  """
9581
  Attributes:
9582
   - entityId
9583
   - category
9584
   - brand
9585
   - modelName
9586
   - modelNumber
9253 rajveer 9587
   - isAndroid
5944 mandeep.dh 9588
  """
9589
 
9590
  thrift_spec = (
9591
    None, # 0
9592
    (1, TType.I64, 'entityId', None, None, ), # 1
9593
    (2, TType.I64, 'category', None, None, ), # 2
9594
    (3, TType.STRING, 'brand', None, None, ), # 3
9595
    (4, TType.STRING, 'modelName', None, None, ), # 4
9596
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 9597
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 9598
  )
9599
 
9253 rajveer 9600
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 9601
    self.entityId = entityId
9602
    self.category = category
9603
    self.brand = brand
9604
    self.modelName = modelName
9605
    self.modelNumber = modelNumber
9253 rajveer 9606
    self.isAndroid = isAndroid
5944 mandeep.dh 9607
 
9608
  def read(self, iprot):
9609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9611
      return
9612
    iprot.readStructBegin()
9613
    while True:
9614
      (fname, ftype, fid) = iprot.readFieldBegin()
9615
      if ftype == TType.STOP:
9616
        break
9617
      if fid == 1:
9618
        if ftype == TType.I64:
9619
          self.entityId = iprot.readI64();
9620
        else:
9621
          iprot.skip(ftype)
9622
      elif fid == 2:
9623
        if ftype == TType.I64:
9624
          self.category = iprot.readI64();
9625
        else:
9626
          iprot.skip(ftype)
9627
      elif fid == 3:
9628
        if ftype == TType.STRING:
9629
          self.brand = iprot.readString();
9630
        else:
9631
          iprot.skip(ftype)
9632
      elif fid == 4:
9633
        if ftype == TType.STRING:
9634
          self.modelName = iprot.readString();
9635
        else:
9636
          iprot.skip(ftype)
9637
      elif fid == 5:
9638
        if ftype == TType.STRING:
9639
          self.modelNumber = iprot.readString();
9640
        else:
9641
          iprot.skip(ftype)
9253 rajveer 9642
      elif fid == 6:
9643
        if ftype == TType.BOOL:
9644
          self.isAndroid = iprot.readBool();
9645
        else:
9646
          iprot.skip(ftype)
5944 mandeep.dh 9647
      else:
9648
        iprot.skip(ftype)
9649
      iprot.readFieldEnd()
9650
    iprot.readStructEnd()
9651
 
9652
  def write(self, oprot):
9653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9655
      return
9656
    oprot.writeStructBegin('markItemAsContentComplete_args')
9657
    if self.entityId is not None:
9658
      oprot.writeFieldBegin('entityId', TType.I64, 1)
9659
      oprot.writeI64(self.entityId)
9660
      oprot.writeFieldEnd()
9661
    if self.category is not None:
9662
      oprot.writeFieldBegin('category', TType.I64, 2)
9663
      oprot.writeI64(self.category)
9664
      oprot.writeFieldEnd()
9665
    if self.brand is not None:
9666
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9667
      oprot.writeString(self.brand)
9668
      oprot.writeFieldEnd()
9669
    if self.modelName is not None:
9670
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
9671
      oprot.writeString(self.modelName)
9672
      oprot.writeFieldEnd()
9673
    if self.modelNumber is not None:
9674
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
9675
      oprot.writeString(self.modelNumber)
9676
      oprot.writeFieldEnd()
9253 rajveer 9677
    if self.isAndroid is not None:
9678
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
9679
      oprot.writeBool(self.isAndroid)
9680
      oprot.writeFieldEnd()
5944 mandeep.dh 9681
    oprot.writeFieldStop()
9682
    oprot.writeStructEnd()
9683
 
9684
  def validate(self):
9685
    return
9686
 
9687
 
9688
  def __repr__(self):
9689
    L = ['%s=%r' % (key, value)
9690
      for key, value in self.__dict__.iteritems()]
9691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9692
 
9693
  def __eq__(self, other):
9694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9695
 
9696
  def __ne__(self, other):
9697
    return not (self == other)
9698
 
9699
class markItemAsContentComplete_result:
9700
  """
9701
  Attributes:
9702
   - success
9703
   - cex
9704
  """
9705
 
9706
  thrift_spec = (
9707
    (0, TType.BOOL, 'success', None, None, ), # 0
9708
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9709
  )
9710
 
9711
  def __init__(self, success=None, cex=None,):
9712
    self.success = success
9713
    self.cex = cex
9714
 
9715
  def read(self, iprot):
9716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9718
      return
9719
    iprot.readStructBegin()
9720
    while True:
9721
      (fname, ftype, fid) = iprot.readFieldBegin()
9722
      if ftype == TType.STOP:
9723
        break
9724
      if fid == 0:
9725
        if ftype == TType.BOOL:
9726
          self.success = iprot.readBool();
9727
        else:
9728
          iprot.skip(ftype)
9729
      elif fid == 1:
9730
        if ftype == TType.STRUCT:
9731
          self.cex = CatalogServiceException()
9732
          self.cex.read(iprot)
9733
        else:
9734
          iprot.skip(ftype)
9735
      else:
9736
        iprot.skip(ftype)
9737
      iprot.readFieldEnd()
9738
    iprot.readStructEnd()
9739
 
9740
  def write(self, oprot):
9741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9743
      return
9744
    oprot.writeStructBegin('markItemAsContentComplete_result')
9745
    if self.success is not None:
9746
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9747
      oprot.writeBool(self.success)
9748
      oprot.writeFieldEnd()
9749
    if self.cex is not None:
9750
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9751
      self.cex.write(oprot)
9752
      oprot.writeFieldEnd()
9753
    oprot.writeFieldStop()
9754
    oprot.writeStructEnd()
9755
 
9756
  def validate(self):
9757
    return
9758
 
9759
 
9760
  def __repr__(self):
9761
    L = ['%s=%r' % (key, value)
9762
      for key, value in self.__dict__.iteritems()]
9763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9764
 
9765
  def __eq__(self, other):
9766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9767
 
9768
  def __ne__(self, other):
9769
    return not (self == other)
9770
 
9771
class getAllItemsInRange_args:
9772
  """
9773
  Attributes:
9774
   - offset
9775
   - limit
9776
  """
9777
 
9778
  thrift_spec = (
9779
    None, # 0
9780
    (1, TType.I64, 'offset', None, None, ), # 1
9781
    (2, TType.I64, 'limit', None, None, ), # 2
9782
  )
9783
 
9784
  def __init__(self, offset=None, limit=None,):
9785
    self.offset = offset
9786
    self.limit = limit
9787
 
9788
  def read(self, iprot):
9789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9791
      return
9792
    iprot.readStructBegin()
9793
    while True:
9794
      (fname, ftype, fid) = iprot.readFieldBegin()
9795
      if ftype == TType.STOP:
9796
        break
9797
      if fid == 1:
9798
        if ftype == TType.I64:
9799
          self.offset = iprot.readI64();
9800
        else:
9801
          iprot.skip(ftype)
9802
      elif fid == 2:
9803
        if ftype == TType.I64:
9804
          self.limit = iprot.readI64();
9805
        else:
9806
          iprot.skip(ftype)
9807
      else:
9808
        iprot.skip(ftype)
9809
      iprot.readFieldEnd()
9810
    iprot.readStructEnd()
9811
 
9812
  def write(self, oprot):
9813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9815
      return
9816
    oprot.writeStructBegin('getAllItemsInRange_args')
9817
    if self.offset is not None:
9818
      oprot.writeFieldBegin('offset', TType.I64, 1)
9819
      oprot.writeI64(self.offset)
9820
      oprot.writeFieldEnd()
9821
    if self.limit is not None:
9822
      oprot.writeFieldBegin('limit', TType.I64, 2)
9823
      oprot.writeI64(self.limit)
9824
      oprot.writeFieldEnd()
9825
    oprot.writeFieldStop()
9826
    oprot.writeStructEnd()
9827
 
9828
  def validate(self):
9829
    return
9830
 
9831
 
9832
  def __repr__(self):
9833
    L = ['%s=%r' % (key, value)
9834
      for key, value in self.__dict__.iteritems()]
9835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9836
 
9837
  def __eq__(self, other):
9838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9839
 
9840
  def __ne__(self, other):
9841
    return not (self == other)
9842
 
9843
class getAllItemsInRange_result:
9844
  """
9845
  Attributes:
9846
   - success
9847
   - cex
9848
  """
9849
 
9850
  thrift_spec = (
9851
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9852
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9853
  )
9854
 
9855
  def __init__(self, success=None, cex=None,):
9856
    self.success = success
9857
    self.cex = cex
9858
 
9859
  def read(self, iprot):
9860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9862
      return
9863
    iprot.readStructBegin()
9864
    while True:
9865
      (fname, ftype, fid) = iprot.readFieldBegin()
9866
      if ftype == TType.STOP:
9867
        break
9868
      if fid == 0:
9869
        if ftype == TType.LIST:
9870
          self.success = []
8590 kshitij.so 9871
          (_etype77, _size74) = iprot.readListBegin()
9872
          for _i78 in xrange(_size74):
9873
            _elem79 = Item()
9874
            _elem79.read(iprot)
9875
            self.success.append(_elem79)
5944 mandeep.dh 9876
          iprot.readListEnd()
9877
        else:
9878
          iprot.skip(ftype)
9879
      elif fid == 1:
9880
        if ftype == TType.STRUCT:
9881
          self.cex = CatalogServiceException()
9882
          self.cex.read(iprot)
9883
        else:
9884
          iprot.skip(ftype)
9885
      else:
9886
        iprot.skip(ftype)
9887
      iprot.readFieldEnd()
9888
    iprot.readStructEnd()
9889
 
9890
  def write(self, oprot):
9891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9893
      return
9894
    oprot.writeStructBegin('getAllItemsInRange_result')
9895
    if self.success is not None:
9896
      oprot.writeFieldBegin('success', TType.LIST, 0)
9897
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9898
      for iter80 in self.success:
9899
        iter80.write(oprot)
5944 mandeep.dh 9900
      oprot.writeListEnd()
9901
      oprot.writeFieldEnd()
9902
    if self.cex is not None:
9903
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9904
      self.cex.write(oprot)
9905
      oprot.writeFieldEnd()
9906
    oprot.writeFieldStop()
9907
    oprot.writeStructEnd()
9908
 
9909
  def validate(self):
9910
    return
9911
 
9912
 
9913
  def __repr__(self):
9914
    L = ['%s=%r' % (key, value)
9915
      for key, value in self.__dict__.iteritems()]
9916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9917
 
9918
  def __eq__(self, other):
9919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9920
 
9921
  def __ne__(self, other):
9922
    return not (self == other)
9923
 
9924
class getAllItemsByStatusInRange_args:
9925
  """
9926
  Attributes:
9927
   - itemStatus
9928
   - offset
9929
   - limit
9930
  """
9931
 
9932
  thrift_spec = (
9933
    None, # 0
9934
    (1, TType.I32, 'itemStatus', None, None, ), # 1
9935
    (2, TType.I64, 'offset', None, None, ), # 2
9936
    (3, TType.I64, 'limit', None, None, ), # 3
9937
  )
9938
 
9939
  def __init__(self, itemStatus=None, offset=None, limit=None,):
9940
    self.itemStatus = itemStatus
9941
    self.offset = offset
9942
    self.limit = limit
9943
 
9944
  def read(self, iprot):
9945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9947
      return
9948
    iprot.readStructBegin()
9949
    while True:
9950
      (fname, ftype, fid) = iprot.readFieldBegin()
9951
      if ftype == TType.STOP:
9952
        break
9953
      if fid == 1:
9954
        if ftype == TType.I32:
9955
          self.itemStatus = iprot.readI32();
9956
        else:
9957
          iprot.skip(ftype)
9958
      elif fid == 2:
9959
        if ftype == TType.I64:
9960
          self.offset = iprot.readI64();
9961
        else:
9962
          iprot.skip(ftype)
9963
      elif fid == 3:
9964
        if ftype == TType.I64:
9965
          self.limit = iprot.readI64();
9966
        else:
9967
          iprot.skip(ftype)
9968
      else:
9969
        iprot.skip(ftype)
9970
      iprot.readFieldEnd()
9971
    iprot.readStructEnd()
9972
 
9973
  def write(self, oprot):
9974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9976
      return
9977
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
9978
    if self.itemStatus is not None:
9979
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
9980
      oprot.writeI32(self.itemStatus)
9981
      oprot.writeFieldEnd()
9982
    if self.offset is not None:
9983
      oprot.writeFieldBegin('offset', TType.I64, 2)
9984
      oprot.writeI64(self.offset)
9985
      oprot.writeFieldEnd()
9986
    if self.limit is not None:
9987
      oprot.writeFieldBegin('limit', TType.I64, 3)
9988
      oprot.writeI64(self.limit)
9989
      oprot.writeFieldEnd()
9990
    oprot.writeFieldStop()
9991
    oprot.writeStructEnd()
9992
 
9993
  def validate(self):
9994
    return
9995
 
9996
 
9997
  def __repr__(self):
9998
    L = ['%s=%r' % (key, value)
9999
      for key, value in self.__dict__.iteritems()]
10000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10001
 
10002
  def __eq__(self, other):
10003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10004
 
10005
  def __ne__(self, other):
10006
    return not (self == other)
10007
 
10008
class getAllItemsByStatusInRange_result:
10009
  """
10010
  Attributes:
10011
   - success
10012
   - cex
10013
  """
10014
 
10015
  thrift_spec = (
10016
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10017
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10018
  )
10019
 
10020
  def __init__(self, success=None, cex=None,):
10021
    self.success = success
10022
    self.cex = cex
10023
 
10024
  def read(self, iprot):
10025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10027
      return
10028
    iprot.readStructBegin()
10029
    while True:
10030
      (fname, ftype, fid) = iprot.readFieldBegin()
10031
      if ftype == TType.STOP:
10032
        break
10033
      if fid == 0:
10034
        if ftype == TType.LIST:
10035
          self.success = []
8590 kshitij.so 10036
          (_etype84, _size81) = iprot.readListBegin()
10037
          for _i85 in xrange(_size81):
10038
            _elem86 = Item()
10039
            _elem86.read(iprot)
10040
            self.success.append(_elem86)
5944 mandeep.dh 10041
          iprot.readListEnd()
10042
        else:
10043
          iprot.skip(ftype)
10044
      elif fid == 1:
10045
        if ftype == TType.STRUCT:
10046
          self.cex = CatalogServiceException()
10047
          self.cex.read(iprot)
10048
        else:
10049
          iprot.skip(ftype)
10050
      else:
10051
        iprot.skip(ftype)
10052
      iprot.readFieldEnd()
10053
    iprot.readStructEnd()
10054
 
10055
  def write(self, oprot):
10056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10058
      return
10059
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
10060
    if self.success is not None:
10061
      oprot.writeFieldBegin('success', TType.LIST, 0)
10062
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10063
      for iter87 in self.success:
10064
        iter87.write(oprot)
5944 mandeep.dh 10065
      oprot.writeListEnd()
10066
      oprot.writeFieldEnd()
10067
    if self.cex is not None:
10068
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10069
      self.cex.write(oprot)
10070
      oprot.writeFieldEnd()
10071
    oprot.writeFieldStop()
10072
    oprot.writeStructEnd()
10073
 
10074
  def validate(self):
10075
    return
10076
 
10077
 
10078
  def __repr__(self):
10079
    L = ['%s=%r' % (key, value)
10080
      for key, value in self.__dict__.iteritems()]
10081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10082
 
10083
  def __eq__(self, other):
10084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10085
 
10086
  def __ne__(self, other):
10087
    return not (self == other)
10088
 
10089
class getItemCountByStatus_args:
10090
  """
10091
  Attributes:
10092
   - useStatus
10093
   - itemStatus
10094
  """
10095
 
10096
  thrift_spec = (
10097
    None, # 0
10098
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
10099
    (2, TType.I32, 'itemStatus', None, None, ), # 2
10100
  )
10101
 
10102
  def __init__(self, useStatus=None, itemStatus=None,):
10103
    self.useStatus = useStatus
10104
    self.itemStatus = itemStatus
10105
 
10106
  def read(self, iprot):
10107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10109
      return
10110
    iprot.readStructBegin()
10111
    while True:
10112
      (fname, ftype, fid) = iprot.readFieldBegin()
10113
      if ftype == TType.STOP:
10114
        break
10115
      if fid == 1:
10116
        if ftype == TType.BOOL:
10117
          self.useStatus = iprot.readBool();
10118
        else:
10119
          iprot.skip(ftype)
10120
      elif fid == 2:
10121
        if ftype == TType.I32:
10122
          self.itemStatus = iprot.readI32();
10123
        else:
10124
          iprot.skip(ftype)
10125
      else:
10126
        iprot.skip(ftype)
10127
      iprot.readFieldEnd()
10128
    iprot.readStructEnd()
10129
 
10130
  def write(self, oprot):
10131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10133
      return
10134
    oprot.writeStructBegin('getItemCountByStatus_args')
10135
    if self.useStatus is not None:
10136
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
10137
      oprot.writeBool(self.useStatus)
10138
      oprot.writeFieldEnd()
10139
    if self.itemStatus is not None:
10140
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
10141
      oprot.writeI32(self.itemStatus)
10142
      oprot.writeFieldEnd()
10143
    oprot.writeFieldStop()
10144
    oprot.writeStructEnd()
10145
 
10146
  def validate(self):
10147
    return
10148
 
10149
 
10150
  def __repr__(self):
10151
    L = ['%s=%r' % (key, value)
10152
      for key, value in self.__dict__.iteritems()]
10153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10154
 
10155
  def __eq__(self, other):
10156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10157
 
10158
  def __ne__(self, other):
10159
    return not (self == other)
10160
 
10161
class getItemCountByStatus_result:
10162
  """
10163
  Attributes:
10164
   - success
10165
  """
10166
 
10167
  thrift_spec = (
10168
    (0, TType.I32, 'success', None, None, ), # 0
10169
  )
10170
 
10171
  def __init__(self, success=None,):
10172
    self.success = success
10173
 
10174
  def read(self, iprot):
10175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10177
      return
10178
    iprot.readStructBegin()
10179
    while True:
10180
      (fname, ftype, fid) = iprot.readFieldBegin()
10181
      if ftype == TType.STOP:
10182
        break
10183
      if fid == 0:
10184
        if ftype == TType.I32:
10185
          self.success = iprot.readI32();
10186
        else:
10187
          iprot.skip(ftype)
10188
      else:
10189
        iprot.skip(ftype)
10190
      iprot.readFieldEnd()
10191
    iprot.readStructEnd()
10192
 
10193
  def write(self, oprot):
10194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10196
      return
10197
    oprot.writeStructBegin('getItemCountByStatus_result')
10198
    if self.success is not None:
10199
      oprot.writeFieldBegin('success', TType.I32, 0)
10200
      oprot.writeI32(self.success)
10201
      oprot.writeFieldEnd()
10202
    oprot.writeFieldStop()
10203
    oprot.writeStructEnd()
10204
 
10205
  def validate(self):
10206
    return
10207
 
10208
 
10209
  def __repr__(self):
10210
    L = ['%s=%r' % (key, value)
10211
      for key, value in self.__dict__.iteritems()]
10212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10213
 
10214
  def __eq__(self, other):
10215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10216
 
10217
  def __ne__(self, other):
10218
    return not (self == other)
10219
 
10220
class getBestSellers_args:
10221
 
10222
  thrift_spec = (
10223
  )
10224
 
10225
  def read(self, iprot):
10226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10228
      return
10229
    iprot.readStructBegin()
10230
    while True:
10231
      (fname, ftype, fid) = iprot.readFieldBegin()
10232
      if ftype == TType.STOP:
10233
        break
10234
      else:
10235
        iprot.skip(ftype)
10236
      iprot.readFieldEnd()
10237
    iprot.readStructEnd()
10238
 
10239
  def write(self, oprot):
10240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10242
      return
10243
    oprot.writeStructBegin('getBestSellers_args')
10244
    oprot.writeFieldStop()
10245
    oprot.writeStructEnd()
10246
 
10247
  def validate(self):
10248
    return
10249
 
10250
 
10251
  def __repr__(self):
10252
    L = ['%s=%r' % (key, value)
10253
      for key, value in self.__dict__.iteritems()]
10254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10255
 
10256
  def __eq__(self, other):
10257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10258
 
10259
  def __ne__(self, other):
10260
    return not (self == other)
10261
 
10262
class getBestSellers_result:
10263
  """
10264
  Attributes:
10265
   - success
10266
   - isex
10267
  """
10268
 
10269
  thrift_spec = (
10270
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10271
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10272
  )
10273
 
10274
  def __init__(self, success=None, isex=None,):
10275
    self.success = success
10276
    self.isex = isex
10277
 
10278
  def read(self, iprot):
10279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10281
      return
10282
    iprot.readStructBegin()
10283
    while True:
10284
      (fname, ftype, fid) = iprot.readFieldBegin()
10285
      if ftype == TType.STOP:
10286
        break
10287
      if fid == 0:
10288
        if ftype == TType.LIST:
10289
          self.success = []
8590 kshitij.so 10290
          (_etype91, _size88) = iprot.readListBegin()
10291
          for _i92 in xrange(_size88):
10292
            _elem93 = Item()
10293
            _elem93.read(iprot)
10294
            self.success.append(_elem93)
5944 mandeep.dh 10295
          iprot.readListEnd()
10296
        else:
10297
          iprot.skip(ftype)
10298
      elif fid == 1:
10299
        if ftype == TType.STRUCT:
10300
          self.isex = CatalogServiceException()
10301
          self.isex.read(iprot)
10302
        else:
10303
          iprot.skip(ftype)
10304
      else:
10305
        iprot.skip(ftype)
10306
      iprot.readFieldEnd()
10307
    iprot.readStructEnd()
10308
 
10309
  def write(self, oprot):
10310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10312
      return
10313
    oprot.writeStructBegin('getBestSellers_result')
10314
    if self.success is not None:
10315
      oprot.writeFieldBegin('success', TType.LIST, 0)
10316
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10317
      for iter94 in self.success:
10318
        iter94.write(oprot)
5944 mandeep.dh 10319
      oprot.writeListEnd()
10320
      oprot.writeFieldEnd()
10321
    if self.isex is not None:
10322
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10323
      self.isex.write(oprot)
10324
      oprot.writeFieldEnd()
10325
    oprot.writeFieldStop()
10326
    oprot.writeStructEnd()
10327
 
10328
  def validate(self):
10329
    return
10330
 
10331
 
10332
  def __repr__(self):
10333
    L = ['%s=%r' % (key, value)
10334
      for key, value in self.__dict__.iteritems()]
10335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10336
 
10337
  def __eq__(self, other):
10338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10339
 
10340
  def __ne__(self, other):
10341
    return not (self == other)
10342
 
10343
class getBestSellersCatalogIds_args:
10344
  """
10345
  Attributes:
10346
   - beginIndex
10347
   - totalItems
10348
   - brand
10349
   - category
10350
  """
10351
 
10352
  thrift_spec = (
10353
    None, # 0
10354
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10355
    (2, TType.I64, 'totalItems', None, None, ), # 2
10356
    (3, TType.STRING, 'brand', None, None, ), # 3
10357
    (4, TType.I64, 'category', None, None, ), # 4
10358
  )
10359
 
10360
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10361
    self.beginIndex = beginIndex
10362
    self.totalItems = totalItems
10363
    self.brand = brand
10364
    self.category = category
10365
 
10366
  def read(self, iprot):
10367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10369
      return
10370
    iprot.readStructBegin()
10371
    while True:
10372
      (fname, ftype, fid) = iprot.readFieldBegin()
10373
      if ftype == TType.STOP:
10374
        break
10375
      if fid == 1:
10376
        if ftype == TType.I64:
10377
          self.beginIndex = iprot.readI64();
10378
        else:
10379
          iprot.skip(ftype)
10380
      elif fid == 2:
10381
        if ftype == TType.I64:
10382
          self.totalItems = iprot.readI64();
10383
        else:
10384
          iprot.skip(ftype)
10385
      elif fid == 3:
10386
        if ftype == TType.STRING:
10387
          self.brand = iprot.readString();
10388
        else:
10389
          iprot.skip(ftype)
10390
      elif fid == 4:
10391
        if ftype == TType.I64:
10392
          self.category = iprot.readI64();
10393
        else:
10394
          iprot.skip(ftype)
10395
      else:
10396
        iprot.skip(ftype)
10397
      iprot.readFieldEnd()
10398
    iprot.readStructEnd()
10399
 
10400
  def write(self, oprot):
10401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10403
      return
10404
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
10405
    if self.beginIndex is not None:
10406
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10407
      oprot.writeI64(self.beginIndex)
10408
      oprot.writeFieldEnd()
10409
    if self.totalItems is not None:
10410
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10411
      oprot.writeI64(self.totalItems)
10412
      oprot.writeFieldEnd()
10413
    if self.brand is not None:
10414
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10415
      oprot.writeString(self.brand)
10416
      oprot.writeFieldEnd()
10417
    if self.category is not None:
10418
      oprot.writeFieldBegin('category', TType.I64, 4)
10419
      oprot.writeI64(self.category)
10420
      oprot.writeFieldEnd()
10421
    oprot.writeFieldStop()
10422
    oprot.writeStructEnd()
10423
 
10424
  def validate(self):
10425
    return
10426
 
10427
 
10428
  def __repr__(self):
10429
    L = ['%s=%r' % (key, value)
10430
      for key, value in self.__dict__.iteritems()]
10431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10432
 
10433
  def __eq__(self, other):
10434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10435
 
10436
  def __ne__(self, other):
10437
    return not (self == other)
10438
 
10439
class getBestSellersCatalogIds_result:
10440
  """
10441
  Attributes:
10442
   - success
10443
   - cex
10444
  """
10445
 
10446
  thrift_spec = (
10447
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10448
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10449
  )
10450
 
10451
  def __init__(self, success=None, cex=None,):
10452
    self.success = success
10453
    self.cex = cex
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 == 0:
10465
        if ftype == TType.LIST:
10466
          self.success = []
8590 kshitij.so 10467
          (_etype98, _size95) = iprot.readListBegin()
10468
          for _i99 in xrange(_size95):
10469
            _elem100 = iprot.readI64();
10470
            self.success.append(_elem100)
5944 mandeep.dh 10471
          iprot.readListEnd()
10472
        else:
10473
          iprot.skip(ftype)
10474
      elif fid == 1:
10475
        if ftype == TType.STRUCT:
10476
          self.cex = CatalogServiceException()
10477
          self.cex.read(iprot)
10478
        else:
10479
          iprot.skip(ftype)
10480
      else:
10481
        iprot.skip(ftype)
10482
      iprot.readFieldEnd()
10483
    iprot.readStructEnd()
10484
 
10485
  def write(self, oprot):
10486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10488
      return
10489
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
10490
    if self.success is not None:
10491
      oprot.writeFieldBegin('success', TType.LIST, 0)
10492
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10493
      for iter101 in self.success:
10494
        oprot.writeI64(iter101)
5944 mandeep.dh 10495
      oprot.writeListEnd()
10496
      oprot.writeFieldEnd()
10497
    if self.cex is not None:
10498
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10499
      self.cex.write(oprot)
10500
      oprot.writeFieldEnd()
10501
    oprot.writeFieldStop()
10502
    oprot.writeStructEnd()
10503
 
10504
  def validate(self):
10505
    return
10506
 
10507
 
10508
  def __repr__(self):
10509
    L = ['%s=%r' % (key, value)
10510
      for key, value in self.__dict__.iteritems()]
10511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10512
 
10513
  def __eq__(self, other):
10514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10515
 
10516
  def __ne__(self, other):
10517
    return not (self == other)
10518
 
10519
class getBestSellersCount_args:
10520
 
10521
  thrift_spec = (
10522
  )
10523
 
10524
  def read(self, iprot):
10525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10527
      return
10528
    iprot.readStructBegin()
10529
    while True:
10530
      (fname, ftype, fid) = iprot.readFieldBegin()
10531
      if ftype == TType.STOP:
10532
        break
10533
      else:
10534
        iprot.skip(ftype)
10535
      iprot.readFieldEnd()
10536
    iprot.readStructEnd()
10537
 
10538
  def write(self, oprot):
10539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10541
      return
10542
    oprot.writeStructBegin('getBestSellersCount_args')
10543
    oprot.writeFieldStop()
10544
    oprot.writeStructEnd()
10545
 
10546
  def validate(self):
10547
    return
10548
 
10549
 
10550
  def __repr__(self):
10551
    L = ['%s=%r' % (key, value)
10552
      for key, value in self.__dict__.iteritems()]
10553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10554
 
10555
  def __eq__(self, other):
10556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10557
 
10558
  def __ne__(self, other):
10559
    return not (self == other)
10560
 
10561
class getBestSellersCount_result:
10562
  """
10563
  Attributes:
10564
   - success
10565
   - cex
10566
  """
10567
 
10568
  thrift_spec = (
10569
    (0, TType.I64, 'success', None, None, ), # 0
10570
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10571
  )
10572
 
10573
  def __init__(self, success=None, cex=None,):
10574
    self.success = success
10575
    self.cex = cex
10576
 
10577
  def read(self, iprot):
10578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10580
      return
10581
    iprot.readStructBegin()
10582
    while True:
10583
      (fname, ftype, fid) = iprot.readFieldBegin()
10584
      if ftype == TType.STOP:
10585
        break
10586
      if fid == 0:
10587
        if ftype == TType.I64:
10588
          self.success = iprot.readI64();
10589
        else:
10590
          iprot.skip(ftype)
10591
      elif fid == 1:
10592
        if ftype == TType.STRUCT:
10593
          self.cex = CatalogServiceException()
10594
          self.cex.read(iprot)
10595
        else:
10596
          iprot.skip(ftype)
10597
      else:
10598
        iprot.skip(ftype)
10599
      iprot.readFieldEnd()
10600
    iprot.readStructEnd()
10601
 
10602
  def write(self, oprot):
10603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10605
      return
10606
    oprot.writeStructBegin('getBestSellersCount_result')
10607
    if self.success is not None:
10608
      oprot.writeFieldBegin('success', TType.I64, 0)
10609
      oprot.writeI64(self.success)
10610
      oprot.writeFieldEnd()
10611
    if self.cex is not None:
10612
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10613
      self.cex.write(oprot)
10614
      oprot.writeFieldEnd()
10615
    oprot.writeFieldStop()
10616
    oprot.writeStructEnd()
10617
 
10618
  def validate(self):
10619
    return
10620
 
10621
 
10622
  def __repr__(self):
10623
    L = ['%s=%r' % (key, value)
10624
      for key, value in self.__dict__.iteritems()]
10625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10626
 
10627
  def __eq__(self, other):
10628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10629
 
10630
  def __ne__(self, other):
10631
    return not (self == other)
10632
 
10633
class getBestDeals_args:
10634
 
10635
  thrift_spec = (
10636
  )
10637
 
10638
  def read(self, iprot):
10639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10641
      return
10642
    iprot.readStructBegin()
10643
    while True:
10644
      (fname, ftype, fid) = iprot.readFieldBegin()
10645
      if ftype == TType.STOP:
10646
        break
10647
      else:
10648
        iprot.skip(ftype)
10649
      iprot.readFieldEnd()
10650
    iprot.readStructEnd()
10651
 
10652
  def write(self, oprot):
10653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10655
      return
10656
    oprot.writeStructBegin('getBestDeals_args')
10657
    oprot.writeFieldStop()
10658
    oprot.writeStructEnd()
10659
 
10660
  def validate(self):
10661
    return
10662
 
10663
 
10664
  def __repr__(self):
10665
    L = ['%s=%r' % (key, value)
10666
      for key, value in self.__dict__.iteritems()]
10667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10668
 
10669
  def __eq__(self, other):
10670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10671
 
10672
  def __ne__(self, other):
10673
    return not (self == other)
10674
 
10675
class getBestDeals_result:
10676
  """
10677
  Attributes:
10678
   - success
10679
   - isex
10680
  """
10681
 
10682
  thrift_spec = (
10683
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10684
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10685
  )
10686
 
10687
  def __init__(self, success=None, isex=None,):
10688
    self.success = success
10689
    self.isex = isex
10690
 
10691
  def read(self, iprot):
10692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10694
      return
10695
    iprot.readStructBegin()
10696
    while True:
10697
      (fname, ftype, fid) = iprot.readFieldBegin()
10698
      if ftype == TType.STOP:
10699
        break
10700
      if fid == 0:
10701
        if ftype == TType.LIST:
10702
          self.success = []
8590 kshitij.so 10703
          (_etype105, _size102) = iprot.readListBegin()
10704
          for _i106 in xrange(_size102):
10705
            _elem107 = Item()
10706
            _elem107.read(iprot)
10707
            self.success.append(_elem107)
5944 mandeep.dh 10708
          iprot.readListEnd()
10709
        else:
10710
          iprot.skip(ftype)
10711
      elif fid == 1:
10712
        if ftype == TType.STRUCT:
10713
          self.isex = CatalogServiceException()
10714
          self.isex.read(iprot)
10715
        else:
10716
          iprot.skip(ftype)
10717
      else:
10718
        iprot.skip(ftype)
10719
      iprot.readFieldEnd()
10720
    iprot.readStructEnd()
10721
 
10722
  def write(self, oprot):
10723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10725
      return
10726
    oprot.writeStructBegin('getBestDeals_result')
10727
    if self.success is not None:
10728
      oprot.writeFieldBegin('success', TType.LIST, 0)
10729
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10730
      for iter108 in self.success:
10731
        iter108.write(oprot)
5944 mandeep.dh 10732
      oprot.writeListEnd()
10733
      oprot.writeFieldEnd()
10734
    if self.isex is not None:
10735
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10736
      self.isex.write(oprot)
10737
      oprot.writeFieldEnd()
10738
    oprot.writeFieldStop()
10739
    oprot.writeStructEnd()
10740
 
10741
  def validate(self):
10742
    return
10743
 
10744
 
10745
  def __repr__(self):
10746
    L = ['%s=%r' % (key, value)
10747
      for key, value in self.__dict__.iteritems()]
10748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10749
 
10750
  def __eq__(self, other):
10751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10752
 
10753
  def __ne__(self, other):
10754
    return not (self == other)
10755
 
10756
class getBestDealsCatalogIds_args:
10757
  """
10758
  Attributes:
10759
   - beginIndex
10760
   - totalItems
10761
   - brand
10762
   - category
10763
  """
10764
 
10765
  thrift_spec = (
10766
    None, # 0
10767
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10768
    (2, TType.I64, 'totalItems', None, None, ), # 2
10769
    (3, TType.STRING, 'brand', None, None, ), # 3
10770
    (4, TType.I64, 'category', None, None, ), # 4
10771
  )
10772
 
10773
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10774
    self.beginIndex = beginIndex
10775
    self.totalItems = totalItems
10776
    self.brand = brand
10777
    self.category = category
10778
 
10779
  def read(self, iprot):
10780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10782
      return
10783
    iprot.readStructBegin()
10784
    while True:
10785
      (fname, ftype, fid) = iprot.readFieldBegin()
10786
      if ftype == TType.STOP:
10787
        break
10788
      if fid == 1:
10789
        if ftype == TType.I64:
10790
          self.beginIndex = iprot.readI64();
10791
        else:
10792
          iprot.skip(ftype)
10793
      elif fid == 2:
10794
        if ftype == TType.I64:
10795
          self.totalItems = iprot.readI64();
10796
        else:
10797
          iprot.skip(ftype)
10798
      elif fid == 3:
10799
        if ftype == TType.STRING:
10800
          self.brand = iprot.readString();
10801
        else:
10802
          iprot.skip(ftype)
10803
      elif fid == 4:
10804
        if ftype == TType.I64:
10805
          self.category = iprot.readI64();
10806
        else:
10807
          iprot.skip(ftype)
10808
      else:
10809
        iprot.skip(ftype)
10810
      iprot.readFieldEnd()
10811
    iprot.readStructEnd()
10812
 
10813
  def write(self, oprot):
10814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10816
      return
10817
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
10818
    if self.beginIndex is not None:
10819
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10820
      oprot.writeI64(self.beginIndex)
10821
      oprot.writeFieldEnd()
10822
    if self.totalItems is not None:
10823
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10824
      oprot.writeI64(self.totalItems)
10825
      oprot.writeFieldEnd()
10826
    if self.brand is not None:
10827
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10828
      oprot.writeString(self.brand)
10829
      oprot.writeFieldEnd()
10830
    if self.category is not None:
10831
      oprot.writeFieldBegin('category', TType.I64, 4)
10832
      oprot.writeI64(self.category)
10833
      oprot.writeFieldEnd()
10834
    oprot.writeFieldStop()
10835
    oprot.writeStructEnd()
10836
 
10837
  def validate(self):
10838
    return
10839
 
10840
 
10841
  def __repr__(self):
10842
    L = ['%s=%r' % (key, value)
10843
      for key, value in self.__dict__.iteritems()]
10844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10845
 
10846
  def __eq__(self, other):
10847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10848
 
10849
  def __ne__(self, other):
10850
    return not (self == other)
10851
 
10852
class getBestDealsCatalogIds_result:
10853
  """
10854
  Attributes:
10855
   - success
10856
   - cex
10857
  """
10858
 
10859
  thrift_spec = (
10860
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10861
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10862
  )
10863
 
10864
  def __init__(self, success=None, cex=None,):
10865
    self.success = success
10866
    self.cex = cex
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 == 0:
10878
        if ftype == TType.LIST:
10879
          self.success = []
8590 kshitij.so 10880
          (_etype112, _size109) = iprot.readListBegin()
10881
          for _i113 in xrange(_size109):
10882
            _elem114 = iprot.readI64();
10883
            self.success.append(_elem114)
5944 mandeep.dh 10884
          iprot.readListEnd()
10885
        else:
10886
          iprot.skip(ftype)
10887
      elif fid == 1:
10888
        if ftype == TType.STRUCT:
10889
          self.cex = CatalogServiceException()
10890
          self.cex.read(iprot)
10891
        else:
10892
          iprot.skip(ftype)
10893
      else:
10894
        iprot.skip(ftype)
10895
      iprot.readFieldEnd()
10896
    iprot.readStructEnd()
10897
 
10898
  def write(self, oprot):
10899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10901
      return
10902
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
10903
    if self.success is not None:
10904
      oprot.writeFieldBegin('success', TType.LIST, 0)
10905
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10906
      for iter115 in self.success:
10907
        oprot.writeI64(iter115)
5944 mandeep.dh 10908
      oprot.writeListEnd()
10909
      oprot.writeFieldEnd()
10910
    if self.cex is not None:
10911
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10912
      self.cex.write(oprot)
10913
      oprot.writeFieldEnd()
10914
    oprot.writeFieldStop()
10915
    oprot.writeStructEnd()
10916
 
10917
  def validate(self):
10918
    return
10919
 
10920
 
10921
  def __repr__(self):
10922
    L = ['%s=%r' % (key, value)
10923
      for key, value in self.__dict__.iteritems()]
10924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10925
 
10926
  def __eq__(self, other):
10927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10928
 
10929
  def __ne__(self, other):
10930
    return not (self == other)
10931
 
10932
class getBestDealsCount_args:
10933
 
10934
  thrift_spec = (
10935
  )
10936
 
10937
  def read(self, iprot):
10938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10940
      return
10941
    iprot.readStructBegin()
10942
    while True:
10943
      (fname, ftype, fid) = iprot.readFieldBegin()
10944
      if ftype == TType.STOP:
10945
        break
10946
      else:
10947
        iprot.skip(ftype)
10948
      iprot.readFieldEnd()
10949
    iprot.readStructEnd()
10950
 
10951
  def write(self, oprot):
10952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10954
      return
10955
    oprot.writeStructBegin('getBestDealsCount_args')
10956
    oprot.writeFieldStop()
10957
    oprot.writeStructEnd()
10958
 
10959
  def validate(self):
10960
    return
10961
 
10962
 
10963
  def __repr__(self):
10964
    L = ['%s=%r' % (key, value)
10965
      for key, value in self.__dict__.iteritems()]
10966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10967
 
10968
  def __eq__(self, other):
10969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10970
 
10971
  def __ne__(self, other):
10972
    return not (self == other)
10973
 
10974
class getBestDealsCount_result:
10975
  """
10976
  Attributes:
10977
   - success
10978
   - cex
10979
  """
10980
 
10981
  thrift_spec = (
10982
    (0, TType.I64, 'success', None, None, ), # 0
10983
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10984
  )
10985
 
10986
  def __init__(self, success=None, cex=None,):
10987
    self.success = success
10988
    self.cex = cex
10989
 
10990
  def read(self, iprot):
10991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10993
      return
10994
    iprot.readStructBegin()
10995
    while True:
10996
      (fname, ftype, fid) = iprot.readFieldBegin()
10997
      if ftype == TType.STOP:
10998
        break
10999
      if fid == 0:
11000
        if ftype == TType.I64:
11001
          self.success = iprot.readI64();
11002
        else:
11003
          iprot.skip(ftype)
11004
      elif fid == 1:
11005
        if ftype == TType.STRUCT:
11006
          self.cex = CatalogServiceException()
11007
          self.cex.read(iprot)
11008
        else:
11009
          iprot.skip(ftype)
11010
      else:
11011
        iprot.skip(ftype)
11012
      iprot.readFieldEnd()
11013
    iprot.readStructEnd()
11014
 
11015
  def write(self, oprot):
11016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11018
      return
11019
    oprot.writeStructBegin('getBestDealsCount_result')
11020
    if self.success is not None:
11021
      oprot.writeFieldBegin('success', TType.I64, 0)
11022
      oprot.writeI64(self.success)
11023
      oprot.writeFieldEnd()
11024
    if self.cex is not None:
11025
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11026
      self.cex.write(oprot)
11027
      oprot.writeFieldEnd()
11028
    oprot.writeFieldStop()
11029
    oprot.writeStructEnd()
11030
 
11031
  def validate(self):
11032
    return
11033
 
11034
 
11035
  def __repr__(self):
11036
    L = ['%s=%r' % (key, value)
11037
      for key, value in self.__dict__.iteritems()]
11038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11039
 
11040
  def __eq__(self, other):
11041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11042
 
11043
  def __ne__(self, other):
11044
    return not (self == other)
11045
 
11046
class getComingSoon_args:
11047
 
11048
  thrift_spec = (
11049
  )
11050
 
11051
  def read(self, iprot):
11052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11054
      return
11055
    iprot.readStructBegin()
11056
    while True:
11057
      (fname, ftype, fid) = iprot.readFieldBegin()
11058
      if ftype == TType.STOP:
11059
        break
11060
      else:
11061
        iprot.skip(ftype)
11062
      iprot.readFieldEnd()
11063
    iprot.readStructEnd()
11064
 
11065
  def write(self, oprot):
11066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11068
      return
11069
    oprot.writeStructBegin('getComingSoon_args')
11070
    oprot.writeFieldStop()
11071
    oprot.writeStructEnd()
11072
 
11073
  def validate(self):
11074
    return
11075
 
11076
 
11077
  def __repr__(self):
11078
    L = ['%s=%r' % (key, value)
11079
      for key, value in self.__dict__.iteritems()]
11080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11081
 
11082
  def __eq__(self, other):
11083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11084
 
11085
  def __ne__(self, other):
11086
    return not (self == other)
11087
 
11088
class getComingSoon_result:
11089
  """
11090
  Attributes:
11091
   - success
11092
   - isex
11093
  """
11094
 
11095
  thrift_spec = (
11096
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11097
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11098
  )
11099
 
11100
  def __init__(self, success=None, isex=None,):
11101
    self.success = success
11102
    self.isex = isex
11103
 
11104
  def read(self, iprot):
11105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11107
      return
11108
    iprot.readStructBegin()
11109
    while True:
11110
      (fname, ftype, fid) = iprot.readFieldBegin()
11111
      if ftype == TType.STOP:
11112
        break
11113
      if fid == 0:
11114
        if ftype == TType.LIST:
11115
          self.success = []
8590 kshitij.so 11116
          (_etype119, _size116) = iprot.readListBegin()
11117
          for _i120 in xrange(_size116):
11118
            _elem121 = Item()
11119
            _elem121.read(iprot)
11120
            self.success.append(_elem121)
5944 mandeep.dh 11121
          iprot.readListEnd()
11122
        else:
11123
          iprot.skip(ftype)
11124
      elif fid == 1:
11125
        if ftype == TType.STRUCT:
11126
          self.isex = CatalogServiceException()
11127
          self.isex.read(iprot)
11128
        else:
11129
          iprot.skip(ftype)
11130
      else:
11131
        iprot.skip(ftype)
11132
      iprot.readFieldEnd()
11133
    iprot.readStructEnd()
11134
 
11135
  def write(self, oprot):
11136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11138
      return
11139
    oprot.writeStructBegin('getComingSoon_result')
11140
    if self.success is not None:
11141
      oprot.writeFieldBegin('success', TType.LIST, 0)
11142
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11143
      for iter122 in self.success:
11144
        iter122.write(oprot)
5944 mandeep.dh 11145
      oprot.writeListEnd()
11146
      oprot.writeFieldEnd()
11147
    if self.isex is not None:
11148
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11149
      self.isex.write(oprot)
11150
      oprot.writeFieldEnd()
11151
    oprot.writeFieldStop()
11152
    oprot.writeStructEnd()
11153
 
11154
  def validate(self):
11155
    return
11156
 
11157
 
11158
  def __repr__(self):
11159
    L = ['%s=%r' % (key, value)
11160
      for key, value in self.__dict__.iteritems()]
11161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11162
 
11163
  def __eq__(self, other):
11164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11165
 
11166
  def __ne__(self, other):
11167
    return not (self == other)
11168
 
11169
class getComingSoonCatalogIds_args:
11170
  """
11171
  Attributes:
11172
   - beginIndex
11173
   - totalItems
11174
   - brand
11175
   - category
11176
  """
11177
 
11178
  thrift_spec = (
11179
    None, # 0
11180
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11181
    (2, TType.I64, 'totalItems', None, None, ), # 2
11182
    (3, TType.STRING, 'brand', None, None, ), # 3
11183
    (4, TType.I64, 'category', None, None, ), # 4
11184
  )
11185
 
11186
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11187
    self.beginIndex = beginIndex
11188
    self.totalItems = totalItems
11189
    self.brand = brand
11190
    self.category = category
11191
 
11192
  def read(self, iprot):
11193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11195
      return
11196
    iprot.readStructBegin()
11197
    while True:
11198
      (fname, ftype, fid) = iprot.readFieldBegin()
11199
      if ftype == TType.STOP:
11200
        break
11201
      if fid == 1:
11202
        if ftype == TType.I64:
11203
          self.beginIndex = iprot.readI64();
11204
        else:
11205
          iprot.skip(ftype)
11206
      elif fid == 2:
11207
        if ftype == TType.I64:
11208
          self.totalItems = iprot.readI64();
11209
        else:
11210
          iprot.skip(ftype)
11211
      elif fid == 3:
11212
        if ftype == TType.STRING:
11213
          self.brand = iprot.readString();
11214
        else:
11215
          iprot.skip(ftype)
11216
      elif fid == 4:
11217
        if ftype == TType.I64:
11218
          self.category = iprot.readI64();
11219
        else:
11220
          iprot.skip(ftype)
11221
      else:
11222
        iprot.skip(ftype)
11223
      iprot.readFieldEnd()
11224
    iprot.readStructEnd()
11225
 
11226
  def write(self, oprot):
11227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11229
      return
11230
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
11231
    if self.beginIndex is not None:
11232
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11233
      oprot.writeI64(self.beginIndex)
11234
      oprot.writeFieldEnd()
11235
    if self.totalItems is not None:
11236
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11237
      oprot.writeI64(self.totalItems)
11238
      oprot.writeFieldEnd()
11239
    if self.brand is not None:
11240
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11241
      oprot.writeString(self.brand)
11242
      oprot.writeFieldEnd()
11243
    if self.category is not None:
11244
      oprot.writeFieldBegin('category', TType.I64, 4)
11245
      oprot.writeI64(self.category)
11246
      oprot.writeFieldEnd()
11247
    oprot.writeFieldStop()
11248
    oprot.writeStructEnd()
11249
 
11250
  def validate(self):
11251
    return
11252
 
11253
 
11254
  def __repr__(self):
11255
    L = ['%s=%r' % (key, value)
11256
      for key, value in self.__dict__.iteritems()]
11257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11258
 
11259
  def __eq__(self, other):
11260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11261
 
11262
  def __ne__(self, other):
11263
    return not (self == other)
11264
 
11265
class getComingSoonCatalogIds_result:
11266
  """
11267
  Attributes:
11268
   - success
11269
   - cex
11270
  """
11271
 
11272
  thrift_spec = (
11273
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11274
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11275
  )
11276
 
11277
  def __init__(self, success=None, cex=None,):
11278
    self.success = success
11279
    self.cex = cex
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 == 0:
11291
        if ftype == TType.LIST:
11292
          self.success = []
8590 kshitij.so 11293
          (_etype126, _size123) = iprot.readListBegin()
11294
          for _i127 in xrange(_size123):
11295
            _elem128 = iprot.readI64();
11296
            self.success.append(_elem128)
5944 mandeep.dh 11297
          iprot.readListEnd()
11298
        else:
11299
          iprot.skip(ftype)
11300
      elif fid == 1:
11301
        if ftype == TType.STRUCT:
11302
          self.cex = CatalogServiceException()
11303
          self.cex.read(iprot)
11304
        else:
11305
          iprot.skip(ftype)
11306
      else:
11307
        iprot.skip(ftype)
11308
      iprot.readFieldEnd()
11309
    iprot.readStructEnd()
11310
 
11311
  def write(self, oprot):
11312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11314
      return
11315
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
11316
    if self.success is not None:
11317
      oprot.writeFieldBegin('success', TType.LIST, 0)
11318
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11319
      for iter129 in self.success:
11320
        oprot.writeI64(iter129)
5944 mandeep.dh 11321
      oprot.writeListEnd()
11322
      oprot.writeFieldEnd()
11323
    if self.cex is not None:
11324
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11325
      self.cex.write(oprot)
11326
      oprot.writeFieldEnd()
11327
    oprot.writeFieldStop()
11328
    oprot.writeStructEnd()
11329
 
11330
  def validate(self):
11331
    return
11332
 
11333
 
11334
  def __repr__(self):
11335
    L = ['%s=%r' % (key, value)
11336
      for key, value in self.__dict__.iteritems()]
11337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11338
 
11339
  def __eq__(self, other):
11340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11341
 
11342
  def __ne__(self, other):
11343
    return not (self == other)
11344
 
11345
class getComingSoonCount_args:
11346
 
11347
  thrift_spec = (
11348
  )
11349
 
11350
  def read(self, iprot):
11351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11353
      return
11354
    iprot.readStructBegin()
11355
    while True:
11356
      (fname, ftype, fid) = iprot.readFieldBegin()
11357
      if ftype == TType.STOP:
11358
        break
11359
      else:
11360
        iprot.skip(ftype)
11361
      iprot.readFieldEnd()
11362
    iprot.readStructEnd()
11363
 
11364
  def write(self, oprot):
11365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11367
      return
11368
    oprot.writeStructBegin('getComingSoonCount_args')
11369
    oprot.writeFieldStop()
11370
    oprot.writeStructEnd()
11371
 
11372
  def validate(self):
11373
    return
11374
 
11375
 
11376
  def __repr__(self):
11377
    L = ['%s=%r' % (key, value)
11378
      for key, value in self.__dict__.iteritems()]
11379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11380
 
11381
  def __eq__(self, other):
11382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11383
 
11384
  def __ne__(self, other):
11385
    return not (self == other)
11386
 
11387
class getComingSoonCount_result:
11388
  """
11389
  Attributes:
11390
   - success
11391
   - cex
11392
  """
11393
 
11394
  thrift_spec = (
11395
    (0, TType.I64, 'success', None, None, ), # 0
11396
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11397
  )
11398
 
11399
  def __init__(self, success=None, cex=None,):
11400
    self.success = success
11401
    self.cex = cex
11402
 
11403
  def read(self, iprot):
11404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11406
      return
11407
    iprot.readStructBegin()
11408
    while True:
11409
      (fname, ftype, fid) = iprot.readFieldBegin()
11410
      if ftype == TType.STOP:
11411
        break
11412
      if fid == 0:
11413
        if ftype == TType.I64:
11414
          self.success = iprot.readI64();
11415
        else:
11416
          iprot.skip(ftype)
11417
      elif fid == 1:
11418
        if ftype == TType.STRUCT:
11419
          self.cex = CatalogServiceException()
11420
          self.cex.read(iprot)
11421
        else:
11422
          iprot.skip(ftype)
11423
      else:
11424
        iprot.skip(ftype)
11425
      iprot.readFieldEnd()
11426
    iprot.readStructEnd()
11427
 
11428
  def write(self, oprot):
11429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11431
      return
11432
    oprot.writeStructBegin('getComingSoonCount_result')
11433
    if self.success is not None:
11434
      oprot.writeFieldBegin('success', TType.I64, 0)
11435
      oprot.writeI64(self.success)
11436
      oprot.writeFieldEnd()
11437
    if self.cex is not None:
11438
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11439
      self.cex.write(oprot)
11440
      oprot.writeFieldEnd()
11441
    oprot.writeFieldStop()
11442
    oprot.writeStructEnd()
11443
 
11444
  def validate(self):
11445
    return
11446
 
11447
 
11448
  def __repr__(self):
11449
    L = ['%s=%r' % (key, value)
11450
      for key, value in self.__dict__.iteritems()]
11451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11452
 
11453
  def __eq__(self, other):
11454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11455
 
11456
  def __ne__(self, other):
11457
    return not (self == other)
11458
 
11459
class getLatestArrivals_args:
11460
 
11461
  thrift_spec = (
11462
  )
11463
 
11464
  def read(self, iprot):
11465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11467
      return
11468
    iprot.readStructBegin()
11469
    while True:
11470
      (fname, ftype, fid) = iprot.readFieldBegin()
11471
      if ftype == TType.STOP:
11472
        break
11473
      else:
11474
        iprot.skip(ftype)
11475
      iprot.readFieldEnd()
11476
    iprot.readStructEnd()
11477
 
11478
  def write(self, oprot):
11479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11481
      return
11482
    oprot.writeStructBegin('getLatestArrivals_args')
11483
    oprot.writeFieldStop()
11484
    oprot.writeStructEnd()
11485
 
11486
  def validate(self):
11487
    return
11488
 
11489
 
11490
  def __repr__(self):
11491
    L = ['%s=%r' % (key, value)
11492
      for key, value in self.__dict__.iteritems()]
11493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11494
 
11495
  def __eq__(self, other):
11496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11497
 
11498
  def __ne__(self, other):
11499
    return not (self == other)
11500
 
11501
class getLatestArrivals_result:
11502
  """
11503
  Attributes:
11504
   - success
11505
   - isex
11506
  """
11507
 
11508
  thrift_spec = (
11509
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11510
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11511
  )
11512
 
11513
  def __init__(self, success=None, isex=None,):
11514
    self.success = success
11515
    self.isex = isex
11516
 
11517
  def read(self, iprot):
11518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11520
      return
11521
    iprot.readStructBegin()
11522
    while True:
11523
      (fname, ftype, fid) = iprot.readFieldBegin()
11524
      if ftype == TType.STOP:
11525
        break
11526
      if fid == 0:
11527
        if ftype == TType.LIST:
11528
          self.success = []
8590 kshitij.so 11529
          (_etype133, _size130) = iprot.readListBegin()
11530
          for _i134 in xrange(_size130):
11531
            _elem135 = Item()
11532
            _elem135.read(iprot)
11533
            self.success.append(_elem135)
5944 mandeep.dh 11534
          iprot.readListEnd()
11535
        else:
11536
          iprot.skip(ftype)
11537
      elif fid == 1:
11538
        if ftype == TType.STRUCT:
11539
          self.isex = CatalogServiceException()
11540
          self.isex.read(iprot)
11541
        else:
11542
          iprot.skip(ftype)
11543
      else:
11544
        iprot.skip(ftype)
11545
      iprot.readFieldEnd()
11546
    iprot.readStructEnd()
11547
 
11548
  def write(self, oprot):
11549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11551
      return
11552
    oprot.writeStructBegin('getLatestArrivals_result')
11553
    if self.success is not None:
11554
      oprot.writeFieldBegin('success', TType.LIST, 0)
11555
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11556
      for iter136 in self.success:
11557
        iter136.write(oprot)
5944 mandeep.dh 11558
      oprot.writeListEnd()
11559
      oprot.writeFieldEnd()
11560
    if self.isex is not None:
11561
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11562
      self.isex.write(oprot)
11563
      oprot.writeFieldEnd()
11564
    oprot.writeFieldStop()
11565
    oprot.writeStructEnd()
11566
 
11567
  def validate(self):
11568
    return
11569
 
11570
 
11571
  def __repr__(self):
11572
    L = ['%s=%r' % (key, value)
11573
      for key, value in self.__dict__.iteritems()]
11574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11575
 
11576
  def __eq__(self, other):
11577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11578
 
11579
  def __ne__(self, other):
11580
    return not (self == other)
11581
 
11582
class getLatestArrivalsCatalogIds_args:
11583
  """
11584
  Attributes:
11585
   - beginIndex
11586
   - totalItems
11587
   - brand
11588
   - categories
11589
  """
11590
 
11591
  thrift_spec = (
11592
    None, # 0
11593
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11594
    (2, TType.I64, 'totalItems', None, None, ), # 2
11595
    (3, TType.STRING, 'brand', None, None, ), # 3
11596
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
11597
  )
11598
 
11599
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
11600
    self.beginIndex = beginIndex
11601
    self.totalItems = totalItems
11602
    self.brand = brand
11603
    self.categories = categories
11604
 
11605
  def read(self, iprot):
11606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11608
      return
11609
    iprot.readStructBegin()
11610
    while True:
11611
      (fname, ftype, fid) = iprot.readFieldBegin()
11612
      if ftype == TType.STOP:
11613
        break
11614
      if fid == 1:
11615
        if ftype == TType.I64:
11616
          self.beginIndex = iprot.readI64();
11617
        else:
11618
          iprot.skip(ftype)
11619
      elif fid == 2:
11620
        if ftype == TType.I64:
11621
          self.totalItems = iprot.readI64();
11622
        else:
11623
          iprot.skip(ftype)
11624
      elif fid == 3:
11625
        if ftype == TType.STRING:
11626
          self.brand = iprot.readString();
11627
        else:
11628
          iprot.skip(ftype)
11629
      elif fid == 4:
11630
        if ftype == TType.LIST:
11631
          self.categories = []
8590 kshitij.so 11632
          (_etype140, _size137) = iprot.readListBegin()
11633
          for _i141 in xrange(_size137):
11634
            _elem142 = iprot.readI64();
11635
            self.categories.append(_elem142)
5944 mandeep.dh 11636
          iprot.readListEnd()
11637
        else:
11638
          iprot.skip(ftype)
11639
      else:
11640
        iprot.skip(ftype)
11641
      iprot.readFieldEnd()
11642
    iprot.readStructEnd()
11643
 
11644
  def write(self, oprot):
11645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11647
      return
11648
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
11649
    if self.beginIndex is not None:
11650
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11651
      oprot.writeI64(self.beginIndex)
11652
      oprot.writeFieldEnd()
11653
    if self.totalItems is not None:
11654
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11655
      oprot.writeI64(self.totalItems)
11656
      oprot.writeFieldEnd()
11657
    if self.brand is not None:
11658
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11659
      oprot.writeString(self.brand)
11660
      oprot.writeFieldEnd()
11661
    if self.categories is not None:
11662
      oprot.writeFieldBegin('categories', TType.LIST, 4)
11663
      oprot.writeListBegin(TType.I64, len(self.categories))
8590 kshitij.so 11664
      for iter143 in self.categories:
11665
        oprot.writeI64(iter143)
5944 mandeep.dh 11666
      oprot.writeListEnd()
11667
      oprot.writeFieldEnd()
11668
    oprot.writeFieldStop()
11669
    oprot.writeStructEnd()
11670
 
11671
  def validate(self):
11672
    return
11673
 
11674
 
11675
  def __repr__(self):
11676
    L = ['%s=%r' % (key, value)
11677
      for key, value in self.__dict__.iteritems()]
11678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11679
 
11680
  def __eq__(self, other):
11681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11682
 
11683
  def __ne__(self, other):
11684
    return not (self == other)
11685
 
11686
class getLatestArrivalsCatalogIds_result:
11687
  """
11688
  Attributes:
11689
   - success
11690
   - cex
11691
  """
11692
 
11693
  thrift_spec = (
11694
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11695
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11696
  )
11697
 
11698
  def __init__(self, success=None, cex=None,):
11699
    self.success = success
11700
    self.cex = cex
11701
 
11702
  def read(self, iprot):
11703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11705
      return
11706
    iprot.readStructBegin()
11707
    while True:
11708
      (fname, ftype, fid) = iprot.readFieldBegin()
11709
      if ftype == TType.STOP:
11710
        break
11711
      if fid == 0:
11712
        if ftype == TType.LIST:
11713
          self.success = []
8590 kshitij.so 11714
          (_etype147, _size144) = iprot.readListBegin()
11715
          for _i148 in xrange(_size144):
11716
            _elem149 = iprot.readI64();
11717
            self.success.append(_elem149)
5944 mandeep.dh 11718
          iprot.readListEnd()
11719
        else:
11720
          iprot.skip(ftype)
11721
      elif fid == 1:
11722
        if ftype == TType.STRUCT:
11723
          self.cex = CatalogServiceException()
11724
          self.cex.read(iprot)
11725
        else:
11726
          iprot.skip(ftype)
11727
      else:
11728
        iprot.skip(ftype)
11729
      iprot.readFieldEnd()
11730
    iprot.readStructEnd()
11731
 
11732
  def write(self, oprot):
11733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11735
      return
11736
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
11737
    if self.success is not None:
11738
      oprot.writeFieldBegin('success', TType.LIST, 0)
11739
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 11740
      for iter150 in self.success:
11741
        oprot.writeI64(iter150)
5944 mandeep.dh 11742
      oprot.writeListEnd()
11743
      oprot.writeFieldEnd()
11744
    if self.cex is not None:
11745
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11746
      self.cex.write(oprot)
11747
      oprot.writeFieldEnd()
11748
    oprot.writeFieldStop()
11749
    oprot.writeStructEnd()
11750
 
11751
  def validate(self):
11752
    return
11753
 
11754
 
11755
  def __repr__(self):
11756
    L = ['%s=%r' % (key, value)
11757
      for key, value in self.__dict__.iteritems()]
11758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11759
 
11760
  def __eq__(self, other):
11761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11762
 
11763
  def __ne__(self, other):
11764
    return not (self == other)
11765
 
11766
class getLatestArrivalsCount_args:
11767
 
11768
  thrift_spec = (
11769
  )
11770
 
11771
  def read(self, iprot):
11772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11774
      return
11775
    iprot.readStructBegin()
11776
    while True:
11777
      (fname, ftype, fid) = iprot.readFieldBegin()
11778
      if ftype == TType.STOP:
11779
        break
11780
      else:
11781
        iprot.skip(ftype)
11782
      iprot.readFieldEnd()
11783
    iprot.readStructEnd()
11784
 
11785
  def write(self, oprot):
11786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11788
      return
11789
    oprot.writeStructBegin('getLatestArrivalsCount_args')
11790
    oprot.writeFieldStop()
11791
    oprot.writeStructEnd()
11792
 
11793
  def validate(self):
11794
    return
11795
 
11796
 
11797
  def __repr__(self):
11798
    L = ['%s=%r' % (key, value)
11799
      for key, value in self.__dict__.iteritems()]
11800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11801
 
11802
  def __eq__(self, other):
11803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11804
 
11805
  def __ne__(self, other):
11806
    return not (self == other)
11807
 
11808
class getLatestArrivalsCount_result:
11809
  """
11810
  Attributes:
11811
   - success
11812
   - cex
11813
  """
11814
 
11815
  thrift_spec = (
11816
    (0, TType.I64, 'success', None, None, ), # 0
11817
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11818
  )
11819
 
11820
  def __init__(self, success=None, cex=None,):
11821
    self.success = success
11822
    self.cex = cex
11823
 
11824
  def read(self, iprot):
11825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11827
      return
11828
    iprot.readStructBegin()
11829
    while True:
11830
      (fname, ftype, fid) = iprot.readFieldBegin()
11831
      if ftype == TType.STOP:
11832
        break
11833
      if fid == 0:
11834
        if ftype == TType.I64:
11835
          self.success = iprot.readI64();
11836
        else:
11837
          iprot.skip(ftype)
11838
      elif fid == 1:
11839
        if ftype == TType.STRUCT:
11840
          self.cex = CatalogServiceException()
11841
          self.cex.read(iprot)
11842
        else:
11843
          iprot.skip(ftype)
11844
      else:
11845
        iprot.skip(ftype)
11846
      iprot.readFieldEnd()
11847
    iprot.readStructEnd()
11848
 
11849
  def write(self, oprot):
11850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11852
      return
11853
    oprot.writeStructBegin('getLatestArrivalsCount_result')
11854
    if self.success is not None:
11855
      oprot.writeFieldBegin('success', TType.I64, 0)
11856
      oprot.writeI64(self.success)
11857
      oprot.writeFieldEnd()
11858
    if self.cex is not None:
11859
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11860
      self.cex.write(oprot)
11861
      oprot.writeFieldEnd()
11862
    oprot.writeFieldStop()
11863
    oprot.writeStructEnd()
11864
 
11865
  def validate(self):
11866
    return
11867
 
11868
 
11869
  def __repr__(self):
11870
    L = ['%s=%r' % (key, value)
11871
      for key, value in self.__dict__.iteritems()]
11872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11873
 
11874
  def __eq__(self, other):
11875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11876
 
11877
  def __ne__(self, other):
11878
    return not (self == other)
11879
 
11880
class generateNewEntityID_args:
11881
 
11882
  thrift_spec = (
11883
  )
11884
 
11885
  def read(self, iprot):
11886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11888
      return
11889
    iprot.readStructBegin()
11890
    while True:
11891
      (fname, ftype, fid) = iprot.readFieldBegin()
11892
      if ftype == TType.STOP:
11893
        break
11894
      else:
11895
        iprot.skip(ftype)
11896
      iprot.readFieldEnd()
11897
    iprot.readStructEnd()
11898
 
11899
  def write(self, oprot):
11900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11902
      return
11903
    oprot.writeStructBegin('generateNewEntityID_args')
11904
    oprot.writeFieldStop()
11905
    oprot.writeStructEnd()
11906
 
11907
  def validate(self):
11908
    return
11909
 
11910
 
11911
  def __repr__(self):
11912
    L = ['%s=%r' % (key, value)
11913
      for key, value in self.__dict__.iteritems()]
11914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11915
 
11916
  def __eq__(self, other):
11917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11918
 
11919
  def __ne__(self, other):
11920
    return not (self == other)
11921
 
11922
class generateNewEntityID_result:
11923
  """
11924
  Attributes:
11925
   - success
11926
  """
11927
 
11928
  thrift_spec = (
11929
    (0, TType.I64, 'success', None, None, ), # 0
11930
  )
11931
 
11932
  def __init__(self, success=None,):
11933
    self.success = success
11934
 
11935
  def read(self, iprot):
11936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11938
      return
11939
    iprot.readStructBegin()
11940
    while True:
11941
      (fname, ftype, fid) = iprot.readFieldBegin()
11942
      if ftype == TType.STOP:
11943
        break
11944
      if fid == 0:
11945
        if ftype == TType.I64:
11946
          self.success = iprot.readI64();
11947
        else:
11948
          iprot.skip(ftype)
11949
      else:
11950
        iprot.skip(ftype)
11951
      iprot.readFieldEnd()
11952
    iprot.readStructEnd()
11953
 
11954
  def write(self, oprot):
11955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11957
      return
11958
    oprot.writeStructBegin('generateNewEntityID_result')
11959
    if self.success is not None:
11960
      oprot.writeFieldBegin('success', TType.I64, 0)
11961
      oprot.writeI64(self.success)
11962
      oprot.writeFieldEnd()
11963
    oprot.writeFieldStop()
11964
    oprot.writeStructEnd()
11965
 
11966
  def validate(self):
11967
    return
11968
 
11969
 
11970
  def __repr__(self):
11971
    L = ['%s=%r' % (key, value)
11972
      for key, value in self.__dict__.iteritems()]
11973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11974
 
11975
  def __eq__(self, other):
11976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11977
 
11978
  def __ne__(self, other):
11979
    return not (self == other)
11980
 
11981
class addCategory_args:
11982
  """
11983
  Attributes:
11984
   - category
11985
  """
11986
 
11987
  thrift_spec = (
11988
    None, # 0
11989
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
11990
  )
11991
 
11992
  def __init__(self, category=None,):
11993
    self.category = category
11994
 
11995
  def read(self, iprot):
11996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11998
      return
11999
    iprot.readStructBegin()
12000
    while True:
12001
      (fname, ftype, fid) = iprot.readFieldBegin()
12002
      if ftype == TType.STOP:
12003
        break
12004
      if fid == 1:
12005
        if ftype == TType.STRUCT:
12006
          self.category = Category()
12007
          self.category.read(iprot)
12008
        else:
12009
          iprot.skip(ftype)
12010
      else:
12011
        iprot.skip(ftype)
12012
      iprot.readFieldEnd()
12013
    iprot.readStructEnd()
12014
 
12015
  def write(self, oprot):
12016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12018
      return
12019
    oprot.writeStructBegin('addCategory_args')
12020
    if self.category is not None:
12021
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
12022
      self.category.write(oprot)
12023
      oprot.writeFieldEnd()
12024
    oprot.writeFieldStop()
12025
    oprot.writeStructEnd()
12026
 
12027
  def validate(self):
12028
    return
12029
 
12030
 
12031
  def __repr__(self):
12032
    L = ['%s=%r' % (key, value)
12033
      for key, value in self.__dict__.iteritems()]
12034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12035
 
12036
  def __eq__(self, other):
12037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12038
 
12039
  def __ne__(self, other):
12040
    return not (self == other)
12041
 
12042
class addCategory_result:
12043
  """
12044
  Attributes:
12045
   - success
12046
  """
12047
 
12048
  thrift_spec = (
12049
    (0, TType.BOOL, 'success', None, None, ), # 0
12050
  )
12051
 
12052
  def __init__(self, success=None,):
12053
    self.success = success
12054
 
12055
  def read(self, iprot):
12056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12058
      return
12059
    iprot.readStructBegin()
12060
    while True:
12061
      (fname, ftype, fid) = iprot.readFieldBegin()
12062
      if ftype == TType.STOP:
12063
        break
12064
      if fid == 0:
12065
        if ftype == TType.BOOL:
12066
          self.success = iprot.readBool();
12067
        else:
12068
          iprot.skip(ftype)
12069
      else:
12070
        iprot.skip(ftype)
12071
      iprot.readFieldEnd()
12072
    iprot.readStructEnd()
12073
 
12074
  def write(self, oprot):
12075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12077
      return
12078
    oprot.writeStructBegin('addCategory_result')
12079
    if self.success is not None:
12080
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12081
      oprot.writeBool(self.success)
12082
      oprot.writeFieldEnd()
12083
    oprot.writeFieldStop()
12084
    oprot.writeStructEnd()
12085
 
12086
  def validate(self):
12087
    return
12088
 
12089
 
12090
  def __repr__(self):
12091
    L = ['%s=%r' % (key, value)
12092
      for key, value in self.__dict__.iteritems()]
12093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12094
 
12095
  def __eq__(self, other):
12096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12097
 
12098
  def __ne__(self, other):
12099
    return not (self == other)
12100
 
12101
class getCategory_args:
12102
  """
12103
  Attributes:
12104
   - id
12105
  """
12106
 
12107
  thrift_spec = (
12108
    None, # 0
12109
    (1, TType.I64, 'id', None, None, ), # 1
12110
  )
12111
 
12112
  def __init__(self, id=None,):
12113
    self.id = id
12114
 
12115
  def read(self, iprot):
12116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12118
      return
12119
    iprot.readStructBegin()
12120
    while True:
12121
      (fname, ftype, fid) = iprot.readFieldBegin()
12122
      if ftype == TType.STOP:
12123
        break
12124
      if fid == 1:
12125
        if ftype == TType.I64:
12126
          self.id = iprot.readI64();
12127
        else:
12128
          iprot.skip(ftype)
12129
      else:
12130
        iprot.skip(ftype)
12131
      iprot.readFieldEnd()
12132
    iprot.readStructEnd()
12133
 
12134
  def write(self, oprot):
12135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12137
      return
12138
    oprot.writeStructBegin('getCategory_args')
12139
    if self.id is not None:
12140
      oprot.writeFieldBegin('id', TType.I64, 1)
12141
      oprot.writeI64(self.id)
12142
      oprot.writeFieldEnd()
12143
    oprot.writeFieldStop()
12144
    oprot.writeStructEnd()
12145
 
12146
  def validate(self):
12147
    return
12148
 
12149
 
12150
  def __repr__(self):
12151
    L = ['%s=%r' % (key, value)
12152
      for key, value in self.__dict__.iteritems()]
12153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12154
 
12155
  def __eq__(self, other):
12156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12157
 
12158
  def __ne__(self, other):
12159
    return not (self == other)
12160
 
12161
class getCategory_result:
12162
  """
12163
  Attributes:
12164
   - success
12165
  """
12166
 
12167
  thrift_spec = (
12168
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
12169
  )
12170
 
12171
  def __init__(self, success=None,):
12172
    self.success = success
12173
 
12174
  def read(self, iprot):
12175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12177
      return
12178
    iprot.readStructBegin()
12179
    while True:
12180
      (fname, ftype, fid) = iprot.readFieldBegin()
12181
      if ftype == TType.STOP:
12182
        break
12183
      if fid == 0:
12184
        if ftype == TType.STRUCT:
12185
          self.success = Category()
12186
          self.success.read(iprot)
12187
        else:
12188
          iprot.skip(ftype)
12189
      else:
12190
        iprot.skip(ftype)
12191
      iprot.readFieldEnd()
12192
    iprot.readStructEnd()
12193
 
12194
  def write(self, oprot):
12195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12197
      return
12198
    oprot.writeStructBegin('getCategory_result')
12199
    if self.success is not None:
12200
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12201
      self.success.write(oprot)
12202
      oprot.writeFieldEnd()
12203
    oprot.writeFieldStop()
12204
    oprot.writeStructEnd()
12205
 
12206
  def validate(self):
12207
    return
12208
 
12209
 
12210
  def __repr__(self):
12211
    L = ['%s=%r' % (key, value)
12212
      for key, value in self.__dict__.iteritems()]
12213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12214
 
12215
  def __eq__(self, other):
12216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12217
 
12218
  def __ne__(self, other):
12219
    return not (self == other)
12220
 
12221
class getAllCategories_args:
12222
 
12223
  thrift_spec = (
12224
  )
12225
 
12226
  def read(self, iprot):
12227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12229
      return
12230
    iprot.readStructBegin()
12231
    while True:
12232
      (fname, ftype, fid) = iprot.readFieldBegin()
12233
      if ftype == TType.STOP:
12234
        break
12235
      else:
12236
        iprot.skip(ftype)
12237
      iprot.readFieldEnd()
12238
    iprot.readStructEnd()
12239
 
12240
  def write(self, oprot):
12241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12243
      return
12244
    oprot.writeStructBegin('getAllCategories_args')
12245
    oprot.writeFieldStop()
12246
    oprot.writeStructEnd()
12247
 
12248
  def validate(self):
12249
    return
12250
 
12251
 
12252
  def __repr__(self):
12253
    L = ['%s=%r' % (key, value)
12254
      for key, value in self.__dict__.iteritems()]
12255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12256
 
12257
  def __eq__(self, other):
12258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12259
 
12260
  def __ne__(self, other):
12261
    return not (self == other)
12262
 
12263
class getAllCategories_result:
12264
  """
12265
  Attributes:
12266
   - success
12267
  """
12268
 
12269
  thrift_spec = (
12270
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
12271
  )
12272
 
12273
  def __init__(self, success=None,):
12274
    self.success = success
12275
 
12276
  def read(self, iprot):
12277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12279
      return
12280
    iprot.readStructBegin()
12281
    while True:
12282
      (fname, ftype, fid) = iprot.readFieldBegin()
12283
      if ftype == TType.STOP:
12284
        break
12285
      if fid == 0:
12286
        if ftype == TType.LIST:
12287
          self.success = []
8590 kshitij.so 12288
          (_etype154, _size151) = iprot.readListBegin()
12289
          for _i155 in xrange(_size151):
12290
            _elem156 = Category()
12291
            _elem156.read(iprot)
12292
            self.success.append(_elem156)
5944 mandeep.dh 12293
          iprot.readListEnd()
12294
        else:
12295
          iprot.skip(ftype)
12296
      else:
12297
        iprot.skip(ftype)
12298
      iprot.readFieldEnd()
12299
    iprot.readStructEnd()
12300
 
12301
  def write(self, oprot):
12302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12304
      return
12305
    oprot.writeStructBegin('getAllCategories_result')
12306
    if self.success is not None:
12307
      oprot.writeFieldBegin('success', TType.LIST, 0)
12308
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12309
      for iter157 in self.success:
12310
        iter157.write(oprot)
5944 mandeep.dh 12311
      oprot.writeListEnd()
12312
      oprot.writeFieldEnd()
12313
    oprot.writeFieldStop()
12314
    oprot.writeStructEnd()
12315
 
12316
  def validate(self):
12317
    return
12318
 
12319
 
12320
  def __repr__(self):
12321
    L = ['%s=%r' % (key, value)
12322
      for key, value in self.__dict__.iteritems()]
12323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12324
 
12325
  def __eq__(self, other):
12326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12327
 
12328
  def __ne__(self, other):
12329
    return not (self == other)
12330
 
12331
class getAllSimilarItems_args:
12332
  """
12333
  Attributes:
12334
   - itemId
12335
  """
12336
 
12337
  thrift_spec = (
12338
    None, # 0
12339
    (1, TType.I64, 'itemId', None, None, ), # 1
12340
  )
12341
 
12342
  def __init__(self, itemId=None,):
12343
    self.itemId = itemId
12344
 
12345
  def read(self, iprot):
12346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12348
      return
12349
    iprot.readStructBegin()
12350
    while True:
12351
      (fname, ftype, fid) = iprot.readFieldBegin()
12352
      if ftype == TType.STOP:
12353
        break
12354
      if fid == 1:
12355
        if ftype == TType.I64:
12356
          self.itemId = iprot.readI64();
12357
        else:
12358
          iprot.skip(ftype)
12359
      else:
12360
        iprot.skip(ftype)
12361
      iprot.readFieldEnd()
12362
    iprot.readStructEnd()
12363
 
12364
  def write(self, oprot):
12365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12367
      return
12368
    oprot.writeStructBegin('getAllSimilarItems_args')
12369
    if self.itemId is not None:
12370
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12371
      oprot.writeI64(self.itemId)
12372
      oprot.writeFieldEnd()
12373
    oprot.writeFieldStop()
12374
    oprot.writeStructEnd()
12375
 
12376
  def validate(self):
12377
    return
12378
 
12379
 
12380
  def __repr__(self):
12381
    L = ['%s=%r' % (key, value)
12382
      for key, value in self.__dict__.iteritems()]
12383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12384
 
12385
  def __eq__(self, other):
12386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12387
 
12388
  def __ne__(self, other):
12389
    return not (self == other)
12390
 
12391
class getAllSimilarItems_result:
12392
  """
12393
  Attributes:
12394
   - success
12395
  """
12396
 
12397
  thrift_spec = (
12398
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12399
  )
12400
 
12401
  def __init__(self, success=None,):
12402
    self.success = success
12403
 
12404
  def read(self, iprot):
12405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12407
      return
12408
    iprot.readStructBegin()
12409
    while True:
12410
      (fname, ftype, fid) = iprot.readFieldBegin()
12411
      if ftype == TType.STOP:
12412
        break
12413
      if fid == 0:
12414
        if ftype == TType.LIST:
12415
          self.success = []
8590 kshitij.so 12416
          (_etype161, _size158) = iprot.readListBegin()
12417
          for _i162 in xrange(_size158):
12418
            _elem163 = Item()
12419
            _elem163.read(iprot)
12420
            self.success.append(_elem163)
5944 mandeep.dh 12421
          iprot.readListEnd()
12422
        else:
12423
          iprot.skip(ftype)
12424
      else:
12425
        iprot.skip(ftype)
12426
      iprot.readFieldEnd()
12427
    iprot.readStructEnd()
12428
 
12429
  def write(self, oprot):
12430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12432
      return
12433
    oprot.writeStructBegin('getAllSimilarItems_result')
12434
    if self.success is not None:
12435
      oprot.writeFieldBegin('success', TType.LIST, 0)
12436
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12437
      for iter164 in self.success:
12438
        iter164.write(oprot)
5944 mandeep.dh 12439
      oprot.writeListEnd()
12440
      oprot.writeFieldEnd()
12441
    oprot.writeFieldStop()
12442
    oprot.writeStructEnd()
12443
 
12444
  def validate(self):
12445
    return
12446
 
12447
 
12448
  def __repr__(self):
12449
    L = ['%s=%r' % (key, value)
12450
      for key, value in self.__dict__.iteritems()]
12451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12452
 
12453
  def __eq__(self, other):
12454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12455
 
12456
  def __ne__(self, other):
12457
    return not (self == other)
12458
 
12459
class addSimilarItem_args:
12460
  """
12461
  Attributes:
12462
   - itemId
12463
   - catalogItemId
12464
  """
12465
 
12466
  thrift_spec = (
12467
    None, # 0
12468
    (1, TType.I64, 'itemId', None, None, ), # 1
12469
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
12470
  )
12471
 
12472
  def __init__(self, itemId=None, catalogItemId=None,):
12473
    self.itemId = itemId
12474
    self.catalogItemId = catalogItemId
12475
 
12476
  def read(self, iprot):
12477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12479
      return
12480
    iprot.readStructBegin()
12481
    while True:
12482
      (fname, ftype, fid) = iprot.readFieldBegin()
12483
      if ftype == TType.STOP:
12484
        break
12485
      if fid == 1:
12486
        if ftype == TType.I64:
12487
          self.itemId = iprot.readI64();
12488
        else:
12489
          iprot.skip(ftype)
12490
      elif fid == 2:
12491
        if ftype == TType.I64:
12492
          self.catalogItemId = iprot.readI64();
12493
        else:
12494
          iprot.skip(ftype)
12495
      else:
12496
        iprot.skip(ftype)
12497
      iprot.readFieldEnd()
12498
    iprot.readStructEnd()
12499
 
12500
  def write(self, oprot):
12501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12503
      return
12504
    oprot.writeStructBegin('addSimilarItem_args')
12505
    if self.itemId is not None:
12506
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12507
      oprot.writeI64(self.itemId)
12508
      oprot.writeFieldEnd()
12509
    if self.catalogItemId is not None:
12510
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
12511
      oprot.writeI64(self.catalogItemId)
12512
      oprot.writeFieldEnd()
12513
    oprot.writeFieldStop()
12514
    oprot.writeStructEnd()
12515
 
12516
  def validate(self):
12517
    return
12518
 
12519
 
12520
  def __repr__(self):
12521
    L = ['%s=%r' % (key, value)
12522
      for key, value in self.__dict__.iteritems()]
12523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12524
 
12525
  def __eq__(self, other):
12526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12527
 
12528
  def __ne__(self, other):
12529
    return not (self == other)
12530
 
12531
class addSimilarItem_result:
12532
  """
12533
  Attributes:
12534
   - success
12535
   - cex
12536
  """
12537
 
12538
  thrift_spec = (
12539
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12540
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12541
  )
12542
 
12543
  def __init__(self, success=None, cex=None,):
12544
    self.success = success
12545
    self.cex = cex
12546
 
12547
  def read(self, iprot):
12548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12550
      return
12551
    iprot.readStructBegin()
12552
    while True:
12553
      (fname, ftype, fid) = iprot.readFieldBegin()
12554
      if ftype == TType.STOP:
12555
        break
12556
      if fid == 0:
12557
        if ftype == TType.STRUCT:
12558
          self.success = Item()
12559
          self.success.read(iprot)
12560
        else:
12561
          iprot.skip(ftype)
12562
      elif fid == 1:
12563
        if ftype == TType.STRUCT:
12564
          self.cex = CatalogServiceException()
12565
          self.cex.read(iprot)
12566
        else:
12567
          iprot.skip(ftype)
12568
      else:
12569
        iprot.skip(ftype)
12570
      iprot.readFieldEnd()
12571
    iprot.readStructEnd()
12572
 
12573
  def write(self, oprot):
12574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12576
      return
12577
    oprot.writeStructBegin('addSimilarItem_result')
12578
    if self.success is not None:
12579
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12580
      self.success.write(oprot)
12581
      oprot.writeFieldEnd()
12582
    if self.cex is not None:
12583
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12584
      self.cex.write(oprot)
12585
      oprot.writeFieldEnd()
12586
    oprot.writeFieldStop()
12587
    oprot.writeStructEnd()
12588
 
12589
  def validate(self):
12590
    return
12591
 
12592
 
12593
  def __repr__(self):
12594
    L = ['%s=%r' % (key, value)
12595
      for key, value in self.__dict__.iteritems()]
12596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12597
 
12598
  def __eq__(self, other):
12599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12600
 
12601
  def __ne__(self, other):
12602
    return not (self == other)
12603
 
6512 kshitij.so 12604
class addTag_args:
12605
  """
12606
  Attributes:
12607
   - displayName
12608
   - itemId
12609
  """
12610
 
12611
  thrift_spec = (
12612
    None, # 0
12613
    (1, TType.STRING, 'displayName', None, None, ), # 1
12614
    (2, TType.I64, 'itemId', None, None, ), # 2
12615
  )
12616
 
12617
  def __init__(self, displayName=None, itemId=None,):
12618
    self.displayName = displayName
12619
    self.itemId = itemId
12620
 
12621
  def read(self, iprot):
12622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12624
      return
12625
    iprot.readStructBegin()
12626
    while True:
12627
      (fname, ftype, fid) = iprot.readFieldBegin()
12628
      if ftype == TType.STOP:
12629
        break
12630
      if fid == 1:
12631
        if ftype == TType.STRING:
12632
          self.displayName = iprot.readString();
12633
        else:
12634
          iprot.skip(ftype)
12635
      elif fid == 2:
12636
        if ftype == TType.I64:
12637
          self.itemId = iprot.readI64();
12638
        else:
12639
          iprot.skip(ftype)
12640
      else:
12641
        iprot.skip(ftype)
12642
      iprot.readFieldEnd()
12643
    iprot.readStructEnd()
12644
 
12645
  def write(self, oprot):
12646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12648
      return
12649
    oprot.writeStructBegin('addTag_args')
12650
    if self.displayName is not None:
12651
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12652
      oprot.writeString(self.displayName)
12653
      oprot.writeFieldEnd()
12654
    if self.itemId is not None:
12655
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12656
      oprot.writeI64(self.itemId)
12657
      oprot.writeFieldEnd()
12658
    oprot.writeFieldStop()
12659
    oprot.writeStructEnd()
12660
 
12661
  def validate(self):
12662
    return
12663
 
12664
 
12665
  def __repr__(self):
12666
    L = ['%s=%r' % (key, value)
12667
      for key, value in self.__dict__.iteritems()]
12668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12669
 
12670
  def __eq__(self, other):
12671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12672
 
12673
  def __ne__(self, other):
12674
    return not (self == other)
12675
 
12676
class addTag_result:
12677
  """
12678
  Attributes:
12679
   - success
12680
  """
12681
 
12682
  thrift_spec = (
12683
    (0, TType.BOOL, 'success', None, None, ), # 0
12684
  )
12685
 
12686
  def __init__(self, success=None,):
12687
    self.success = success
12688
 
12689
  def read(self, iprot):
12690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12692
      return
12693
    iprot.readStructBegin()
12694
    while True:
12695
      (fname, ftype, fid) = iprot.readFieldBegin()
12696
      if ftype == TType.STOP:
12697
        break
12698
      if fid == 0:
12699
        if ftype == TType.BOOL:
12700
          self.success = iprot.readBool();
12701
        else:
12702
          iprot.skip(ftype)
12703
      else:
12704
        iprot.skip(ftype)
12705
      iprot.readFieldEnd()
12706
    iprot.readStructEnd()
12707
 
12708
  def write(self, oprot):
12709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12711
      return
12712
    oprot.writeStructBegin('addTag_result')
12713
    if self.success is not None:
12714
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12715
      oprot.writeBool(self.success)
12716
      oprot.writeFieldEnd()
12717
    oprot.writeFieldStop()
12718
    oprot.writeStructEnd()
12719
 
12720
  def validate(self):
12721
    return
12722
 
12723
 
12724
  def __repr__(self):
12725
    L = ['%s=%r' % (key, value)
12726
      for key, value in self.__dict__.iteritems()]
12727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12728
 
12729
  def __eq__(self, other):
12730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12731
 
12732
  def __ne__(self, other):
12733
    return not (self == other)
12734
 
12735
class deleteEntityTag_args:
12736
  """
12737
  Attributes:
12738
   - displayName
12739
   - itemId
12740
  """
12741
 
12742
  thrift_spec = (
12743
    None, # 0
12744
    (1, TType.STRING, 'displayName', None, None, ), # 1
12745
    (2, TType.I64, 'itemId', None, None, ), # 2
12746
  )
12747
 
12748
  def __init__(self, displayName=None, itemId=None,):
12749
    self.displayName = displayName
12750
    self.itemId = itemId
12751
 
12752
  def read(self, iprot):
12753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12755
      return
12756
    iprot.readStructBegin()
12757
    while True:
12758
      (fname, ftype, fid) = iprot.readFieldBegin()
12759
      if ftype == TType.STOP:
12760
        break
12761
      if fid == 1:
12762
        if ftype == TType.STRING:
12763
          self.displayName = iprot.readString();
12764
        else:
12765
          iprot.skip(ftype)
12766
      elif fid == 2:
12767
        if ftype == TType.I64:
12768
          self.itemId = iprot.readI64();
12769
        else:
12770
          iprot.skip(ftype)
12771
      else:
12772
        iprot.skip(ftype)
12773
      iprot.readFieldEnd()
12774
    iprot.readStructEnd()
12775
 
12776
  def write(self, oprot):
12777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12779
      return
12780
    oprot.writeStructBegin('deleteEntityTag_args')
12781
    if self.displayName is not None:
12782
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12783
      oprot.writeString(self.displayName)
12784
      oprot.writeFieldEnd()
12785
    if self.itemId is not None:
12786
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12787
      oprot.writeI64(self.itemId)
12788
      oprot.writeFieldEnd()
12789
    oprot.writeFieldStop()
12790
    oprot.writeStructEnd()
12791
 
12792
  def validate(self):
12793
    return
12794
 
12795
 
12796
  def __repr__(self):
12797
    L = ['%s=%r' % (key, value)
12798
      for key, value in self.__dict__.iteritems()]
12799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12800
 
12801
  def __eq__(self, other):
12802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12803
 
12804
  def __ne__(self, other):
12805
    return not (self == other)
12806
 
12807
class deleteEntityTag_result:
12808
  """
12809
  Attributes:
12810
   - success
12811
  """
12812
 
12813
  thrift_spec = (
12814
    (0, TType.BOOL, 'success', None, None, ), # 0
12815
  )
12816
 
12817
  def __init__(self, success=None,):
12818
    self.success = success
12819
 
12820
  def read(self, iprot):
12821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12823
      return
12824
    iprot.readStructBegin()
12825
    while True:
12826
      (fname, ftype, fid) = iprot.readFieldBegin()
12827
      if ftype == TType.STOP:
12828
        break
12829
      if fid == 0:
12830
        if ftype == TType.BOOL:
12831
          self.success = iprot.readBool();
12832
        else:
12833
          iprot.skip(ftype)
12834
      else:
12835
        iprot.skip(ftype)
12836
      iprot.readFieldEnd()
12837
    iprot.readStructEnd()
12838
 
12839
  def write(self, oprot):
12840
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12841
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12842
      return
12843
    oprot.writeStructBegin('deleteEntityTag_result')
12844
    if self.success is not None:
12845
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12846
      oprot.writeBool(self.success)
12847
      oprot.writeFieldEnd()
12848
    oprot.writeFieldStop()
12849
    oprot.writeStructEnd()
12850
 
12851
  def validate(self):
12852
    return
12853
 
12854
 
12855
  def __repr__(self):
12856
    L = ['%s=%r' % (key, value)
12857
      for key, value in self.__dict__.iteritems()]
12858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12859
 
12860
  def __eq__(self, other):
12861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12862
 
12863
  def __ne__(self, other):
12864
    return not (self == other)
12865
 
12866
class deleteTag_args:
12867
  """
12868
  Attributes:
12869
   - displayName
12870
  """
12871
 
12872
  thrift_spec = (
12873
    None, # 0
12874
    (1, TType.STRING, 'displayName', None, None, ), # 1
12875
  )
12876
 
12877
  def __init__(self, displayName=None,):
12878
    self.displayName = displayName
12879
 
12880
  def read(self, iprot):
12881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12883
      return
12884
    iprot.readStructBegin()
12885
    while True:
12886
      (fname, ftype, fid) = iprot.readFieldBegin()
12887
      if ftype == TType.STOP:
12888
        break
12889
      if fid == 1:
12890
        if ftype == TType.STRING:
12891
          self.displayName = iprot.readString();
12892
        else:
12893
          iprot.skip(ftype)
12894
      else:
12895
        iprot.skip(ftype)
12896
      iprot.readFieldEnd()
12897
    iprot.readStructEnd()
12898
 
12899
  def write(self, oprot):
12900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12902
      return
12903
    oprot.writeStructBegin('deleteTag_args')
12904
    if self.displayName is not None:
12905
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12906
      oprot.writeString(self.displayName)
12907
      oprot.writeFieldEnd()
12908
    oprot.writeFieldStop()
12909
    oprot.writeStructEnd()
12910
 
12911
  def validate(self):
12912
    return
12913
 
12914
 
12915
  def __repr__(self):
12916
    L = ['%s=%r' % (key, value)
12917
      for key, value in self.__dict__.iteritems()]
12918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12919
 
12920
  def __eq__(self, other):
12921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12922
 
12923
  def __ne__(self, other):
12924
    return not (self == other)
12925
 
12926
class deleteTag_result:
12927
  """
12928
  Attributes:
12929
   - success
12930
  """
12931
 
12932
  thrift_spec = (
12933
    (0, TType.BOOL, 'success', None, None, ), # 0
12934
  )
12935
 
12936
  def __init__(self, success=None,):
12937
    self.success = success
12938
 
12939
  def read(self, iprot):
12940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12942
      return
12943
    iprot.readStructBegin()
12944
    while True:
12945
      (fname, ftype, fid) = iprot.readFieldBegin()
12946
      if ftype == TType.STOP:
12947
        break
12948
      if fid == 0:
12949
        if ftype == TType.BOOL:
12950
          self.success = iprot.readBool();
12951
        else:
12952
          iprot.skip(ftype)
12953
      else:
12954
        iprot.skip(ftype)
12955
      iprot.readFieldEnd()
12956
    iprot.readStructEnd()
12957
 
12958
  def write(self, oprot):
12959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12961
      return
12962
    oprot.writeStructBegin('deleteTag_result')
12963
    if self.success is not None:
12964
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12965
      oprot.writeBool(self.success)
12966
      oprot.writeFieldEnd()
12967
    oprot.writeFieldStop()
12968
    oprot.writeStructEnd()
12969
 
12970
  def validate(self):
12971
    return
12972
 
12973
 
12974
  def __repr__(self):
12975
    L = ['%s=%r' % (key, value)
12976
      for key, value in self.__dict__.iteritems()]
12977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12978
 
12979
  def __eq__(self, other):
12980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12981
 
12982
  def __ne__(self, other):
12983
    return not (self == other)
12984
 
12985
class getAllTags_args:
12986
 
12987
  thrift_spec = (
12988
  )
12989
 
12990
  def read(self, iprot):
12991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12993
      return
12994
    iprot.readStructBegin()
12995
    while True:
12996
      (fname, ftype, fid) = iprot.readFieldBegin()
12997
      if ftype == TType.STOP:
12998
        break
12999
      else:
13000
        iprot.skip(ftype)
13001
      iprot.readFieldEnd()
13002
    iprot.readStructEnd()
13003
 
13004
  def write(self, oprot):
13005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13007
      return
13008
    oprot.writeStructBegin('getAllTags_args')
13009
    oprot.writeFieldStop()
13010
    oprot.writeStructEnd()
13011
 
13012
  def validate(self):
13013
    return
13014
 
13015
 
13016
  def __repr__(self):
13017
    L = ['%s=%r' % (key, value)
13018
      for key, value in self.__dict__.iteritems()]
13019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13020
 
13021
  def __eq__(self, other):
13022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13023
 
13024
  def __ne__(self, other):
13025
    return not (self == other)
13026
 
13027
class getAllTags_result:
13028
  """
13029
  Attributes:
13030
   - success
13031
  """
13032
 
13033
  thrift_spec = (
13034
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13035
  )
13036
 
13037
  def __init__(self, success=None,):
13038
    self.success = success
13039
 
13040
  def read(self, iprot):
13041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13043
      return
13044
    iprot.readStructBegin()
13045
    while True:
13046
      (fname, ftype, fid) = iprot.readFieldBegin()
13047
      if ftype == TType.STOP:
13048
        break
13049
      if fid == 0:
13050
        if ftype == TType.LIST:
13051
          self.success = []
8590 kshitij.so 13052
          (_etype168, _size165) = iprot.readListBegin()
13053
          for _i169 in xrange(_size165):
13054
            _elem170 = iprot.readString();
13055
            self.success.append(_elem170)
6512 kshitij.so 13056
          iprot.readListEnd()
13057
        else:
13058
          iprot.skip(ftype)
13059
      else:
13060
        iprot.skip(ftype)
13061
      iprot.readFieldEnd()
13062
    iprot.readStructEnd()
13063
 
13064
  def write(self, oprot):
13065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13067
      return
13068
    oprot.writeStructBegin('getAllTags_result')
13069
    if self.success is not None:
13070
      oprot.writeFieldBegin('success', TType.LIST, 0)
13071
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 13072
      for iter171 in self.success:
13073
        oprot.writeString(iter171)
6512 kshitij.so 13074
      oprot.writeListEnd()
13075
      oprot.writeFieldEnd()
13076
    oprot.writeFieldStop()
13077
    oprot.writeStructEnd()
13078
 
13079
  def validate(self):
13080
    return
13081
 
13082
 
13083
  def __repr__(self):
13084
    L = ['%s=%r' % (key, value)
13085
      for key, value in self.__dict__.iteritems()]
13086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13087
 
13088
  def __eq__(self, other):
13089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13090
 
13091
  def __ne__(self, other):
13092
    return not (self == other)
13093
 
13094
class getAllEntitiesByTagName_args:
13095
  """
13096
  Attributes:
13097
   - displayName
13098
  """
13099
 
13100
  thrift_spec = (
13101
    None, # 0
13102
    (1, TType.STRING, 'displayName', None, None, ), # 1
13103
  )
13104
 
13105
  def __init__(self, displayName=None,):
13106
    self.displayName = displayName
13107
 
13108
  def read(self, iprot):
13109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13111
      return
13112
    iprot.readStructBegin()
13113
    while True:
13114
      (fname, ftype, fid) = iprot.readFieldBegin()
13115
      if ftype == TType.STOP:
13116
        break
13117
      if fid == 1:
13118
        if ftype == TType.STRING:
13119
          self.displayName = iprot.readString();
13120
        else:
13121
          iprot.skip(ftype)
13122
      else:
13123
        iprot.skip(ftype)
13124
      iprot.readFieldEnd()
13125
    iprot.readStructEnd()
13126
 
13127
  def write(self, oprot):
13128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13130
      return
13131
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
13132
    if self.displayName is not None:
13133
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
13134
      oprot.writeString(self.displayName)
13135
      oprot.writeFieldEnd()
13136
    oprot.writeFieldStop()
13137
    oprot.writeStructEnd()
13138
 
13139
  def validate(self):
13140
    return
13141
 
13142
 
13143
  def __repr__(self):
13144
    L = ['%s=%r' % (key, value)
13145
      for key, value in self.__dict__.iteritems()]
13146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13147
 
13148
  def __eq__(self, other):
13149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13150
 
13151
  def __ne__(self, other):
13152
    return not (self == other)
13153
 
13154
class getAllEntitiesByTagName_result:
13155
  """
13156
  Attributes:
13157
   - success
13158
  """
13159
 
13160
  thrift_spec = (
13161
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13162
  )
13163
 
13164
  def __init__(self, success=None,):
13165
    self.success = success
13166
 
13167
  def read(self, iprot):
13168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13170
      return
13171
    iprot.readStructBegin()
13172
    while True:
13173
      (fname, ftype, fid) = iprot.readFieldBegin()
13174
      if ftype == TType.STOP:
13175
        break
13176
      if fid == 0:
13177
        if ftype == TType.LIST:
13178
          self.success = []
8590 kshitij.so 13179
          (_etype175, _size172) = iprot.readListBegin()
13180
          for _i176 in xrange(_size172):
13181
            _elem177 = iprot.readI64();
13182
            self.success.append(_elem177)
6512 kshitij.so 13183
          iprot.readListEnd()
13184
        else:
13185
          iprot.skip(ftype)
13186
      else:
13187
        iprot.skip(ftype)
13188
      iprot.readFieldEnd()
13189
    iprot.readStructEnd()
13190
 
13191
  def write(self, oprot):
13192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13194
      return
13195
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
13196
    if self.success is not None:
13197
      oprot.writeFieldBegin('success', TType.LIST, 0)
13198
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 13199
      for iter178 in self.success:
13200
        oprot.writeI64(iter178)
6512 kshitij.so 13201
      oprot.writeListEnd()
13202
      oprot.writeFieldEnd()
13203
    oprot.writeFieldStop()
13204
    oprot.writeStructEnd()
13205
 
13206
  def validate(self):
13207
    return
13208
 
13209
 
13210
  def __repr__(self):
13211
    L = ['%s=%r' % (key, value)
13212
      for key, value in self.__dict__.iteritems()]
13213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13214
 
13215
  def __eq__(self, other):
13216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13217
 
13218
  def __ne__(self, other):
13219
    return not (self == other)
13220
 
6845 amit.gupta 13221
class getAllEntityTags_args:
13222
 
13223
  thrift_spec = (
13224
  )
13225
 
13226
  def read(self, iprot):
13227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13229
      return
13230
    iprot.readStructBegin()
13231
    while True:
13232
      (fname, ftype, fid) = iprot.readFieldBegin()
13233
      if ftype == TType.STOP:
13234
        break
13235
      else:
13236
        iprot.skip(ftype)
13237
      iprot.readFieldEnd()
13238
    iprot.readStructEnd()
13239
 
13240
  def write(self, oprot):
13241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13243
      return
13244
    oprot.writeStructBegin('getAllEntityTags_args')
13245
    oprot.writeFieldStop()
13246
    oprot.writeStructEnd()
13247
 
13248
  def validate(self):
13249
    return
13250
 
13251
 
13252
  def __repr__(self):
13253
    L = ['%s=%r' % (key, value)
13254
      for key, value in self.__dict__.iteritems()]
13255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13256
 
13257
  def __eq__(self, other):
13258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13259
 
13260
  def __ne__(self, other):
13261
    return not (self == other)
13262
 
13263
class getAllEntityTags_result:
13264
  """
13265
  Attributes:
13266
   - success
13267
  """
13268
 
13269
  thrift_spec = (
13270
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
13271
  )
13272
 
13273
  def __init__(self, success=None,):
13274
    self.success = success
13275
 
13276
  def read(self, iprot):
13277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13279
      return
13280
    iprot.readStructBegin()
13281
    while True:
13282
      (fname, ftype, fid) = iprot.readFieldBegin()
13283
      if ftype == TType.STOP:
13284
        break
13285
      if fid == 0:
13286
        if ftype == TType.MAP:
13287
          self.success = {}
8590 kshitij.so 13288
          (_ktype180, _vtype181, _size179 ) = iprot.readMapBegin() 
13289
          for _i183 in xrange(_size179):
13290
            _key184 = iprot.readI64();
13291
            _val185 = []
13292
            (_etype189, _size186) = iprot.readListBegin()
13293
            for _i190 in xrange(_size186):
13294
              _elem191 = iprot.readString();
13295
              _val185.append(_elem191)
6845 amit.gupta 13296
            iprot.readListEnd()
8590 kshitij.so 13297
            self.success[_key184] = _val185
6845 amit.gupta 13298
          iprot.readMapEnd()
13299
        else:
13300
          iprot.skip(ftype)
13301
      else:
13302
        iprot.skip(ftype)
13303
      iprot.readFieldEnd()
13304
    iprot.readStructEnd()
13305
 
13306
  def write(self, oprot):
13307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13309
      return
13310
    oprot.writeStructBegin('getAllEntityTags_result')
13311
    if self.success is not None:
13312
      oprot.writeFieldBegin('success', TType.MAP, 0)
13313
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
8590 kshitij.so 13314
      for kiter192,viter193 in self.success.items():
13315
        oprot.writeI64(kiter192)
13316
        oprot.writeListBegin(TType.STRING, len(viter193))
13317
        for iter194 in viter193:
13318
          oprot.writeString(iter194)
6845 amit.gupta 13319
        oprot.writeListEnd()
13320
      oprot.writeMapEnd()
13321
      oprot.writeFieldEnd()
13322
    oprot.writeFieldStop()
13323
    oprot.writeStructEnd()
13324
 
13325
  def validate(self):
13326
    return
13327
 
13328
 
13329
  def __repr__(self):
13330
    L = ['%s=%r' % (key, value)
13331
      for key, value in self.__dict__.iteritems()]
13332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13333
 
13334
  def __eq__(self, other):
13335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13336
 
13337
  def __ne__(self, other):
13338
    return not (self == other)
13339
 
6850 kshitij.so 13340
class addBanner_args:
13341
  """
13342
  Attributes:
8590 kshitij.so 13343
   - bannerCongregate
6850 kshitij.so 13344
  """
13345
 
13346
  thrift_spec = (
13347
    None, # 0
8590 kshitij.so 13348
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 13349
  )
13350
 
8590 kshitij.so 13351
  def __init__(self, bannerCongregate=None,):
13352
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 13353
 
13354
  def read(self, iprot):
13355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13357
      return
13358
    iprot.readStructBegin()
13359
    while True:
13360
      (fname, ftype, fid) = iprot.readFieldBegin()
13361
      if ftype == TType.STOP:
13362
        break
13363
      if fid == 1:
8579 kshitij.so 13364
        if ftype == TType.STRUCT:
8590 kshitij.so 13365
          self.bannerCongregate = BannerCongregate()
13366
          self.bannerCongregate.read(iprot)
6850 kshitij.so 13367
        else:
13368
          iprot.skip(ftype)
8579 kshitij.so 13369
      else:
13370
        iprot.skip(ftype)
13371
      iprot.readFieldEnd()
13372
    iprot.readStructEnd()
13373
 
13374
  def write(self, oprot):
13375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13377
      return
13378
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 13379
    if self.bannerCongregate is not None:
13380
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
13381
      self.bannerCongregate.write(oprot)
8579 kshitij.so 13382
      oprot.writeFieldEnd()
13383
    oprot.writeFieldStop()
13384
    oprot.writeStructEnd()
13385
 
13386
  def validate(self):
13387
    return
13388
 
13389
 
13390
  def __repr__(self):
13391
    L = ['%s=%r' % (key, value)
13392
      for key, value in self.__dict__.iteritems()]
13393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13394
 
13395
  def __eq__(self, other):
13396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13397
 
13398
  def __ne__(self, other):
13399
    return not (self == other)
13400
 
13401
class addBanner_result:
10097 kshitij.so 13402
  """
13403
  Attributes:
13404
   - success
13405
  """
8579 kshitij.so 13406
 
13407
  thrift_spec = (
10097 kshitij.so 13408
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 13409
  )
13410
 
10097 kshitij.so 13411
  def __init__(self, success=None,):
13412
    self.success = success
13413
 
8579 kshitij.so 13414
  def read(self, iprot):
13415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13417
      return
13418
    iprot.readStructBegin()
13419
    while True:
13420
      (fname, ftype, fid) = iprot.readFieldBegin()
13421
      if ftype == TType.STOP:
13422
        break
10097 kshitij.so 13423
      if fid == 0:
13424
        if ftype == TType.BOOL:
13425
          self.success = iprot.readBool();
13426
        else:
13427
          iprot.skip(ftype)
8579 kshitij.so 13428
      else:
13429
        iprot.skip(ftype)
13430
      iprot.readFieldEnd()
13431
    iprot.readStructEnd()
13432
 
13433
  def write(self, oprot):
13434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13436
      return
13437
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 13438
    if self.success is not None:
13439
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13440
      oprot.writeBool(self.success)
13441
      oprot.writeFieldEnd()
8579 kshitij.so 13442
    oprot.writeFieldStop()
13443
    oprot.writeStructEnd()
13444
 
13445
  def validate(self):
13446
    return
13447
 
13448
 
13449
  def __repr__(self):
13450
    L = ['%s=%r' % (key, value)
13451
      for key, value in self.__dict__.iteritems()]
13452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13453
 
13454
  def __eq__(self, other):
13455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13456
 
13457
  def __ne__(self, other):
13458
    return not (self == other)
13459
 
13460
class updateBanner_args:
13461
  """
13462
  Attributes:
13463
   - banner
13464
  """
13465
 
13466
  thrift_spec = (
13467
    None, # 0
13468
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
13469
  )
13470
 
13471
  def __init__(self, banner=None,):
13472
    self.banner = banner
13473
 
13474
  def read(self, iprot):
13475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13477
      return
13478
    iprot.readStructBegin()
13479
    while True:
13480
      (fname, ftype, fid) = iprot.readFieldBegin()
13481
      if ftype == TType.STOP:
13482
        break
13483
      if fid == 1:
13484
        if ftype == TType.STRUCT:
13485
          self.banner = Banner()
13486
          self.banner.read(iprot)
6850 kshitij.so 13487
        else:
13488
          iprot.skip(ftype)
13489
      else:
13490
        iprot.skip(ftype)
13491
      iprot.readFieldEnd()
13492
    iprot.readStructEnd()
13493
 
13494
  def write(self, oprot):
13495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13497
      return
8579 kshitij.so 13498
    oprot.writeStructBegin('updateBanner_args')
13499
    if self.banner is not None:
13500
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
13501
      self.banner.write(oprot)
6850 kshitij.so 13502
      oprot.writeFieldEnd()
13503
    oprot.writeFieldStop()
13504
    oprot.writeStructEnd()
13505
 
13506
  def validate(self):
13507
    return
13508
 
13509
 
13510
  def __repr__(self):
13511
    L = ['%s=%r' % (key, value)
13512
      for key, value in self.__dict__.iteritems()]
13513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13514
 
13515
  def __eq__(self, other):
13516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13517
 
13518
  def __ne__(self, other):
13519
    return not (self == other)
13520
 
8579 kshitij.so 13521
class updateBanner_result:
6850 kshitij.so 13522
  """
13523
  Attributes:
13524
   - success
13525
  """
13526
 
13527
  thrift_spec = (
13528
    (0, TType.BOOL, 'success', None, None, ), # 0
13529
  )
13530
 
13531
  def __init__(self, success=None,):
13532
    self.success = success
13533
 
13534
  def read(self, iprot):
13535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13537
      return
13538
    iprot.readStructBegin()
13539
    while True:
13540
      (fname, ftype, fid) = iprot.readFieldBegin()
13541
      if ftype == TType.STOP:
13542
        break
13543
      if fid == 0:
13544
        if ftype == TType.BOOL:
13545
          self.success = iprot.readBool();
13546
        else:
13547
          iprot.skip(ftype)
13548
      else:
13549
        iprot.skip(ftype)
13550
      iprot.readFieldEnd()
13551
    iprot.readStructEnd()
13552
 
13553
  def write(self, oprot):
13554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13556
      return
8579 kshitij.so 13557
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 13558
    if self.success is not None:
13559
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13560
      oprot.writeBool(self.success)
13561
      oprot.writeFieldEnd()
13562
    oprot.writeFieldStop()
13563
    oprot.writeStructEnd()
13564
 
13565
  def validate(self):
13566
    return
13567
 
13568
 
13569
  def __repr__(self):
13570
    L = ['%s=%r' % (key, value)
13571
      for key, value in self.__dict__.iteritems()]
13572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13573
 
13574
  def __eq__(self, other):
13575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13576
 
13577
  def __ne__(self, other):
13578
    return not (self == other)
13579
 
13580
class getAllBanners_args:
13581
 
13582
  thrift_spec = (
13583
  )
13584
 
13585
  def read(self, iprot):
13586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13588
      return
13589
    iprot.readStructBegin()
13590
    while True:
13591
      (fname, ftype, fid) = iprot.readFieldBegin()
13592
      if ftype == TType.STOP:
13593
        break
13594
      else:
13595
        iprot.skip(ftype)
13596
      iprot.readFieldEnd()
13597
    iprot.readStructEnd()
13598
 
13599
  def write(self, oprot):
13600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13602
      return
13603
    oprot.writeStructBegin('getAllBanners_args')
13604
    oprot.writeFieldStop()
13605
    oprot.writeStructEnd()
13606
 
13607
  def validate(self):
13608
    return
13609
 
13610
 
13611
  def __repr__(self):
13612
    L = ['%s=%r' % (key, value)
13613
      for key, value in self.__dict__.iteritems()]
13614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13615
 
13616
  def __eq__(self, other):
13617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13618
 
13619
  def __ne__(self, other):
13620
    return not (self == other)
13621
 
13622
class getAllBanners_result:
13623
  """
13624
  Attributes:
13625
   - success
13626
  """
13627
 
13628
  thrift_spec = (
8579 kshitij.so 13629
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 13630
  )
13631
 
13632
  def __init__(self, success=None,):
13633
    self.success = success
13634
 
13635
  def read(self, iprot):
13636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13638
      return
13639
    iprot.readStructBegin()
13640
    while True:
13641
      (fname, ftype, fid) = iprot.readFieldBegin()
13642
      if ftype == TType.STOP:
13643
        break
13644
      if fid == 0:
13645
        if ftype == TType.LIST:
13646
          self.success = []
8590 kshitij.so 13647
          (_etype198, _size195) = iprot.readListBegin()
13648
          for _i199 in xrange(_size195):
13649
            _elem200 = Banner()
13650
            _elem200.read(iprot)
13651
            self.success.append(_elem200)
6850 kshitij.so 13652
          iprot.readListEnd()
13653
        else:
13654
          iprot.skip(ftype)
13655
      else:
13656
        iprot.skip(ftype)
13657
      iprot.readFieldEnd()
13658
    iprot.readStructEnd()
13659
 
13660
  def write(self, oprot):
13661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13663
      return
13664
    oprot.writeStructBegin('getAllBanners_result')
13665
    if self.success is not None:
13666
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 13667
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13668
      for iter201 in self.success:
13669
        iter201.write(oprot)
6850 kshitij.so 13670
      oprot.writeListEnd()
13671
      oprot.writeFieldEnd()
13672
    oprot.writeFieldStop()
13673
    oprot.writeStructEnd()
13674
 
13675
  def validate(self):
13676
    return
13677
 
13678
 
13679
  def __repr__(self):
13680
    L = ['%s=%r' % (key, value)
13681
      for key, value in self.__dict__.iteritems()]
13682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13683
 
13684
  def __eq__(self, other):
13685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13686
 
13687
  def __ne__(self, other):
13688
    return not (self == other)
13689
 
13690
class deleteBanner_args:
13691
  """
13692
  Attributes:
13693
   - bannerName
9155 kshitij.so 13694
   - bannerType
6850 kshitij.so 13695
  """
13696
 
13697
  thrift_spec = (
13698
    None, # 0
13699
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13700
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13701
  )
13702
 
9155 kshitij.so 13703
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13704
    self.bannerName = bannerName
9155 kshitij.so 13705
    self.bannerType = bannerType
6850 kshitij.so 13706
 
13707
  def read(self, iprot):
13708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13710
      return
13711
    iprot.readStructBegin()
13712
    while True:
13713
      (fname, ftype, fid) = iprot.readFieldBegin()
13714
      if ftype == TType.STOP:
13715
        break
13716
      if fid == 1:
13717
        if ftype == TType.STRING:
13718
          self.bannerName = iprot.readString();
13719
        else:
13720
          iprot.skip(ftype)
9155 kshitij.so 13721
      elif fid == 2:
13722
        if ftype == TType.I32:
13723
          self.bannerType = iprot.readI32();
13724
        else:
13725
          iprot.skip(ftype)
6850 kshitij.so 13726
      else:
13727
        iprot.skip(ftype)
13728
      iprot.readFieldEnd()
13729
    iprot.readStructEnd()
13730
 
13731
  def write(self, oprot):
13732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13734
      return
13735
    oprot.writeStructBegin('deleteBanner_args')
13736
    if self.bannerName is not None:
13737
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13738
      oprot.writeString(self.bannerName)
13739
      oprot.writeFieldEnd()
9155 kshitij.so 13740
    if self.bannerType is not None:
13741
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13742
      oprot.writeI32(self.bannerType)
13743
      oprot.writeFieldEnd()
6850 kshitij.so 13744
    oprot.writeFieldStop()
13745
    oprot.writeStructEnd()
13746
 
13747
  def validate(self):
13748
    return
13749
 
13750
 
13751
  def __repr__(self):
13752
    L = ['%s=%r' % (key, value)
13753
      for key, value in self.__dict__.iteritems()]
13754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13755
 
13756
  def __eq__(self, other):
13757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13758
 
13759
  def __ne__(self, other):
13760
    return not (self == other)
13761
 
13762
class deleteBanner_result:
13763
  """
13764
  Attributes:
13765
   - success
13766
  """
13767
 
13768
  thrift_spec = (
13769
    (0, TType.BOOL, 'success', None, None, ), # 0
13770
  )
13771
 
13772
  def __init__(self, success=None,):
13773
    self.success = success
13774
 
13775
  def read(self, iprot):
13776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13778
      return
13779
    iprot.readStructBegin()
13780
    while True:
13781
      (fname, ftype, fid) = iprot.readFieldBegin()
13782
      if ftype == TType.STOP:
13783
        break
13784
      if fid == 0:
13785
        if ftype == TType.BOOL:
13786
          self.success = iprot.readBool();
13787
        else:
13788
          iprot.skip(ftype)
13789
      else:
13790
        iprot.skip(ftype)
13791
      iprot.readFieldEnd()
13792
    iprot.readStructEnd()
13793
 
13794
  def write(self, oprot):
13795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13797
      return
13798
    oprot.writeStructBegin('deleteBanner_result')
13799
    if self.success is not None:
13800
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13801
      oprot.writeBool(self.success)
13802
      oprot.writeFieldEnd()
13803
    oprot.writeFieldStop()
13804
    oprot.writeStructEnd()
13805
 
13806
  def validate(self):
13807
    return
13808
 
13809
 
13810
  def __repr__(self):
13811
    L = ['%s=%r' % (key, value)
13812
      for key, value in self.__dict__.iteritems()]
13813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13814
 
13815
  def __eq__(self, other):
13816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13817
 
13818
  def __ne__(self, other):
13819
    return not (self == other)
13820
 
13821
class getBannerDetails_args:
13822
  """
13823
  Attributes:
13824
   - bannerName
9155 kshitij.so 13825
   - bannerType
6850 kshitij.so 13826
  """
13827
 
13828
  thrift_spec = (
13829
    None, # 0
13830
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13831
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 13832
  )
13833
 
9155 kshitij.so 13834
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 13835
    self.bannerName = bannerName
9155 kshitij.so 13836
    self.bannerType = bannerType
6850 kshitij.so 13837
 
13838
  def read(self, iprot):
13839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13841
      return
13842
    iprot.readStructBegin()
13843
    while True:
13844
      (fname, ftype, fid) = iprot.readFieldBegin()
13845
      if ftype == TType.STOP:
13846
        break
13847
      if fid == 1:
13848
        if ftype == TType.STRING:
13849
          self.bannerName = iprot.readString();
13850
        else:
13851
          iprot.skip(ftype)
9155 kshitij.so 13852
      elif fid == 2:
13853
        if ftype == TType.I32:
13854
          self.bannerType = iprot.readI32();
13855
        else:
13856
          iprot.skip(ftype)
6850 kshitij.so 13857
      else:
13858
        iprot.skip(ftype)
13859
      iprot.readFieldEnd()
13860
    iprot.readStructEnd()
13861
 
13862
  def write(self, oprot):
13863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13865
      return
13866
    oprot.writeStructBegin('getBannerDetails_args')
13867
    if self.bannerName is not None:
13868
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13869
      oprot.writeString(self.bannerName)
13870
      oprot.writeFieldEnd()
9155 kshitij.so 13871
    if self.bannerType is not None:
13872
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13873
      oprot.writeI32(self.bannerType)
13874
      oprot.writeFieldEnd()
6850 kshitij.so 13875
    oprot.writeFieldStop()
13876
    oprot.writeStructEnd()
13877
 
13878
  def validate(self):
13879
    return
13880
 
13881
 
13882
  def __repr__(self):
13883
    L = ['%s=%r' % (key, value)
13884
      for key, value in self.__dict__.iteritems()]
13885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13886
 
13887
  def __eq__(self, other):
13888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13889
 
13890
  def __ne__(self, other):
13891
    return not (self == other)
13892
 
13893
class getBannerDetails_result:
13894
  """
13895
  Attributes:
13896
   - success
13897
  """
13898
 
13899
  thrift_spec = (
13900
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
13901
  )
13902
 
13903
  def __init__(self, success=None,):
13904
    self.success = success
13905
 
13906
  def read(self, iprot):
13907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13909
      return
13910
    iprot.readStructBegin()
13911
    while True:
13912
      (fname, ftype, fid) = iprot.readFieldBegin()
13913
      if ftype == TType.STOP:
13914
        break
13915
      if fid == 0:
13916
        if ftype == TType.STRUCT:
13917
          self.success = Banner()
13918
          self.success.read(iprot)
13919
        else:
13920
          iprot.skip(ftype)
13921
      else:
13922
        iprot.skip(ftype)
13923
      iprot.readFieldEnd()
13924
    iprot.readStructEnd()
13925
 
13926
  def write(self, oprot):
13927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13929
      return
13930
    oprot.writeStructBegin('getBannerDetails_result')
13931
    if self.success is not None:
13932
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13933
      self.success.write(oprot)
13934
      oprot.writeFieldEnd()
13935
    oprot.writeFieldStop()
13936
    oprot.writeStructEnd()
13937
 
13938
  def validate(self):
13939
    return
13940
 
13941
 
13942
  def __repr__(self):
13943
    L = ['%s=%r' % (key, value)
13944
      for key, value in self.__dict__.iteritems()]
13945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13946
 
13947
  def __eq__(self, other):
13948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13949
 
13950
  def __ne__(self, other):
13951
    return not (self == other)
13952
 
13953
class getActiveBanners_args:
13954
 
13955
  thrift_spec = (
13956
  )
13957
 
13958
  def read(self, iprot):
13959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13961
      return
13962
    iprot.readStructBegin()
13963
    while True:
13964
      (fname, ftype, fid) = iprot.readFieldBegin()
13965
      if ftype == TType.STOP:
13966
        break
13967
      else:
13968
        iprot.skip(ftype)
13969
      iprot.readFieldEnd()
13970
    iprot.readStructEnd()
13971
 
13972
  def write(self, oprot):
13973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13975
      return
13976
    oprot.writeStructBegin('getActiveBanners_args')
13977
    oprot.writeFieldStop()
13978
    oprot.writeStructEnd()
13979
 
13980
  def validate(self):
13981
    return
13982
 
13983
 
13984
  def __repr__(self):
13985
    L = ['%s=%r' % (key, value)
13986
      for key, value in self.__dict__.iteritems()]
13987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13988
 
13989
  def __eq__(self, other):
13990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13991
 
13992
  def __ne__(self, other):
13993
    return not (self == other)
13994
 
13995
class getActiveBanners_result:
13996
  """
13997
  Attributes:
13998
   - success
13999
  """
14000
 
14001
  thrift_spec = (
8579 kshitij.so 14002
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 14003
  )
14004
 
14005
  def __init__(self, success=None,):
14006
    self.success = success
14007
 
14008
  def read(self, iprot):
14009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14011
      return
14012
    iprot.readStructBegin()
14013
    while True:
14014
      (fname, ftype, fid) = iprot.readFieldBegin()
14015
      if ftype == TType.STOP:
14016
        break
14017
      if fid == 0:
8579 kshitij.so 14018
        if ftype == TType.MAP:
14019
          self.success = {}
8590 kshitij.so 14020
          (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() 
14021
          for _i206 in xrange(_size202):
14022
            _key207 = iprot.readString();
14023
            _val208 = []
14024
            (_etype212, _size209) = iprot.readListBegin()
14025
            for _i213 in xrange(_size209):
14026
              _elem214 = Banner()
14027
              _elem214.read(iprot)
14028
              _val208.append(_elem214)
8579 kshitij.so 14029
            iprot.readListEnd()
8590 kshitij.so 14030
            self.success[_key207] = _val208
8579 kshitij.so 14031
          iprot.readMapEnd()
6850 kshitij.so 14032
        else:
14033
          iprot.skip(ftype)
14034
      else:
14035
        iprot.skip(ftype)
14036
      iprot.readFieldEnd()
14037
    iprot.readStructEnd()
14038
 
14039
  def write(self, oprot):
14040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14042
      return
14043
    oprot.writeStructBegin('getActiveBanners_result')
14044
    if self.success is not None:
8579 kshitij.so 14045
      oprot.writeFieldBegin('success', TType.MAP, 0)
14046
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
8590 kshitij.so 14047
      for kiter215,viter216 in self.success.items():
14048
        oprot.writeString(kiter215)
14049
        oprot.writeListBegin(TType.STRUCT, len(viter216))
14050
        for iter217 in viter216:
14051
          iter217.write(oprot)
8579 kshitij.so 14052
        oprot.writeListEnd()
14053
      oprot.writeMapEnd()
6850 kshitij.so 14054
      oprot.writeFieldEnd()
14055
    oprot.writeFieldStop()
14056
    oprot.writeStructEnd()
14057
 
14058
  def validate(self):
14059
    return
14060
 
14061
 
14062
  def __repr__(self):
14063
    L = ['%s=%r' % (key, value)
14064
      for key, value in self.__dict__.iteritems()]
14065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14066
 
14067
  def __eq__(self, other):
14068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14069
 
14070
  def __ne__(self, other):
14071
    return not (self == other)
14072
 
6849 kshitij.so 14073
class addBannerMap_args:
14074
  """
14075
  Attributes:
8579 kshitij.so 14076
   - bannerMaps
6849 kshitij.so 14077
  """
14078
 
14079
  thrift_spec = (
14080
    None, # 0
8579 kshitij.so 14081
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 14082
  )
14083
 
8579 kshitij.so 14084
  def __init__(self, bannerMaps=None,):
14085
    self.bannerMaps = bannerMaps
6849 kshitij.so 14086
 
14087
  def read(self, iprot):
14088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14090
      return
14091
    iprot.readStructBegin()
14092
    while True:
14093
      (fname, ftype, fid) = iprot.readFieldBegin()
14094
      if ftype == TType.STOP:
14095
        break
14096
      if fid == 1:
8579 kshitij.so 14097
        if ftype == TType.LIST:
14098
          self.bannerMaps = []
8590 kshitij.so 14099
          (_etype221, _size218) = iprot.readListBegin()
14100
          for _i222 in xrange(_size218):
14101
            _elem223 = BannerMap()
14102
            _elem223.read(iprot)
14103
            self.bannerMaps.append(_elem223)
8579 kshitij.so 14104
          iprot.readListEnd()
6849 kshitij.so 14105
        else:
14106
          iprot.skip(ftype)
8579 kshitij.so 14107
      else:
14108
        iprot.skip(ftype)
14109
      iprot.readFieldEnd()
14110
    iprot.readStructEnd()
14111
 
14112
  def write(self, oprot):
14113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14115
      return
14116
    oprot.writeStructBegin('addBannerMap_args')
14117
    if self.bannerMaps is not None:
14118
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
14119
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
8590 kshitij.so 14120
      for iter224 in self.bannerMaps:
14121
        iter224.write(oprot)
8579 kshitij.so 14122
      oprot.writeListEnd()
14123
      oprot.writeFieldEnd()
14124
    oprot.writeFieldStop()
14125
    oprot.writeStructEnd()
14126
 
14127
  def validate(self):
14128
    return
14129
 
14130
 
14131
  def __repr__(self):
14132
    L = ['%s=%r' % (key, value)
14133
      for key, value in self.__dict__.iteritems()]
14134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14135
 
14136
  def __eq__(self, other):
14137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14138
 
14139
  def __ne__(self, other):
14140
    return not (self == other)
14141
 
14142
class addBannerMap_result:
14143
  """
14144
  Attributes:
14145
   - success
14146
  """
14147
 
14148
  thrift_spec = (
14149
    (0, TType.BOOL, 'success', None, None, ), # 0
14150
  )
14151
 
14152
  def __init__(self, success=None,):
14153
    self.success = success
14154
 
14155
  def read(self, iprot):
14156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14158
      return
14159
    iprot.readStructBegin()
14160
    while True:
14161
      (fname, ftype, fid) = iprot.readFieldBegin()
14162
      if ftype == TType.STOP:
14163
        break
14164
      if fid == 0:
14165
        if ftype == TType.BOOL:
14166
          self.success = iprot.readBool();
6849 kshitij.so 14167
        else:
14168
          iprot.skip(ftype)
8579 kshitij.so 14169
      else:
14170
        iprot.skip(ftype)
14171
      iprot.readFieldEnd()
14172
    iprot.readStructEnd()
14173
 
14174
  def write(self, oprot):
14175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14177
      return
14178
    oprot.writeStructBegin('addBannerMap_result')
14179
    if self.success is not None:
14180
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14181
      oprot.writeBool(self.success)
14182
      oprot.writeFieldEnd()
14183
    oprot.writeFieldStop()
14184
    oprot.writeStructEnd()
14185
 
14186
  def validate(self):
14187
    return
14188
 
14189
 
14190
  def __repr__(self):
14191
    L = ['%s=%r' % (key, value)
14192
      for key, value in self.__dict__.iteritems()]
14193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14194
 
14195
  def __eq__(self, other):
14196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14197
 
14198
  def __ne__(self, other):
14199
    return not (self == other)
14200
 
14201
class updateBannerMap_args:
14202
  """
14203
  Attributes:
14204
   - bannerMap
14205
  """
14206
 
14207
  thrift_spec = (
14208
    None, # 0
14209
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
14210
  )
14211
 
14212
  def __init__(self, bannerMap=None,):
14213
    self.bannerMap = bannerMap
14214
 
14215
  def read(self, iprot):
14216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14218
      return
14219
    iprot.readStructBegin()
14220
    while True:
14221
      (fname, ftype, fid) = iprot.readFieldBegin()
14222
      if ftype == TType.STOP:
14223
        break
14224
      if fid == 1:
14225
        if ftype == TType.STRUCT:
14226
          self.bannerMap = BannerMap()
14227
          self.bannerMap.read(iprot)
6849 kshitij.so 14228
        else:
14229
          iprot.skip(ftype)
14230
      else:
14231
        iprot.skip(ftype)
14232
      iprot.readFieldEnd()
14233
    iprot.readStructEnd()
14234
 
14235
  def write(self, oprot):
14236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14238
      return
8579 kshitij.so 14239
    oprot.writeStructBegin('updateBannerMap_args')
14240
    if self.bannerMap is not None:
14241
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
14242
      self.bannerMap.write(oprot)
6849 kshitij.so 14243
      oprot.writeFieldEnd()
14244
    oprot.writeFieldStop()
14245
    oprot.writeStructEnd()
14246
 
14247
  def validate(self):
14248
    return
14249
 
14250
 
14251
  def __repr__(self):
14252
    L = ['%s=%r' % (key, value)
14253
      for key, value in self.__dict__.iteritems()]
14254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14255
 
14256
  def __eq__(self, other):
14257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14258
 
14259
  def __ne__(self, other):
14260
    return not (self == other)
14261
 
8579 kshitij.so 14262
class updateBannerMap_result:
6849 kshitij.so 14263
  """
14264
  Attributes:
14265
   - success
14266
  """
14267
 
14268
  thrift_spec = (
14269
    (0, TType.BOOL, 'success', None, None, ), # 0
14270
  )
14271
 
14272
  def __init__(self, success=None,):
14273
    self.success = success
14274
 
14275
  def read(self, iprot):
14276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14278
      return
14279
    iprot.readStructBegin()
14280
    while True:
14281
      (fname, ftype, fid) = iprot.readFieldBegin()
14282
      if ftype == TType.STOP:
14283
        break
14284
      if fid == 0:
14285
        if ftype == TType.BOOL:
14286
          self.success = iprot.readBool();
14287
        else:
14288
          iprot.skip(ftype)
14289
      else:
14290
        iprot.skip(ftype)
14291
      iprot.readFieldEnd()
14292
    iprot.readStructEnd()
14293
 
14294
  def write(self, oprot):
14295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14297
      return
8579 kshitij.so 14298
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 14299
    if self.success is not None:
14300
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14301
      oprot.writeBool(self.success)
14302
      oprot.writeFieldEnd()
14303
    oprot.writeFieldStop()
14304
    oprot.writeStructEnd()
14305
 
14306
  def validate(self):
14307
    return
14308
 
14309
 
14310
  def __repr__(self):
14311
    L = ['%s=%r' % (key, value)
14312
      for key, value in self.__dict__.iteritems()]
14313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14314
 
14315
  def __eq__(self, other):
14316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14317
 
14318
  def __ne__(self, other):
14319
    return not (self == other)
14320
 
14321
class deleteBannerMap_args:
14322
  """
14323
  Attributes:
14324
   - bannerName
14325
  """
14326
 
14327
  thrift_spec = (
14328
    None, # 0
14329
    (1, TType.STRING, 'bannerName', None, None, ), # 1
14330
  )
14331
 
14332
  def __init__(self, bannerName=None,):
14333
    self.bannerName = bannerName
14334
 
14335
  def read(self, iprot):
14336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14338
      return
14339
    iprot.readStructBegin()
14340
    while True:
14341
      (fname, ftype, fid) = iprot.readFieldBegin()
14342
      if ftype == TType.STOP:
14343
        break
14344
      if fid == 1:
14345
        if ftype == TType.STRING:
14346
          self.bannerName = iprot.readString();
14347
        else:
14348
          iprot.skip(ftype)
14349
      else:
14350
        iprot.skip(ftype)
14351
      iprot.readFieldEnd()
14352
    iprot.readStructEnd()
14353
 
14354
  def write(self, oprot):
14355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14357
      return
14358
    oprot.writeStructBegin('deleteBannerMap_args')
14359
    if self.bannerName is not None:
14360
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14361
      oprot.writeString(self.bannerName)
14362
      oprot.writeFieldEnd()
14363
    oprot.writeFieldStop()
14364
    oprot.writeStructEnd()
14365
 
14366
  def validate(self):
14367
    return
14368
 
14369
 
14370
  def __repr__(self):
14371
    L = ['%s=%r' % (key, value)
14372
      for key, value in self.__dict__.iteritems()]
14373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14374
 
14375
  def __eq__(self, other):
14376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14377
 
14378
  def __ne__(self, other):
14379
    return not (self == other)
14380
 
14381
class deleteBannerMap_result:
14382
  """
14383
  Attributes:
14384
   - success
14385
  """
14386
 
14387
  thrift_spec = (
14388
    (0, TType.BOOL, 'success', None, None, ), # 0
14389
  )
14390
 
14391
  def __init__(self, success=None,):
14392
    self.success = success
14393
 
14394
  def read(self, iprot):
14395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14397
      return
14398
    iprot.readStructBegin()
14399
    while True:
14400
      (fname, ftype, fid) = iprot.readFieldBegin()
14401
      if ftype == TType.STOP:
14402
        break
14403
      if fid == 0:
14404
        if ftype == TType.BOOL:
14405
          self.success = iprot.readBool();
14406
        else:
14407
          iprot.skip(ftype)
14408
      else:
14409
        iprot.skip(ftype)
14410
      iprot.readFieldEnd()
14411
    iprot.readStructEnd()
14412
 
14413
  def write(self, oprot):
14414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14416
      return
14417
    oprot.writeStructBegin('deleteBannerMap_result')
14418
    if self.success is not None:
14419
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14420
      oprot.writeBool(self.success)
14421
      oprot.writeFieldEnd()
14422
    oprot.writeFieldStop()
14423
    oprot.writeStructEnd()
14424
 
14425
  def validate(self):
14426
    return
14427
 
14428
 
14429
  def __repr__(self):
14430
    L = ['%s=%r' % (key, value)
14431
      for key, value in self.__dict__.iteritems()]
14432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14433
 
14434
  def __eq__(self, other):
14435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14436
 
14437
  def __ne__(self, other):
14438
    return not (self == other)
14439
 
14440
class getBannerMapDetails_args:
14441
  """
14442
  Attributes:
14443
   - bannerName
9155 kshitij.so 14444
   - bannerType
6849 kshitij.so 14445
  """
14446
 
14447
  thrift_spec = (
14448
    None, # 0
14449
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14450
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 14451
  )
14452
 
9155 kshitij.so 14453
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 14454
    self.bannerName = bannerName
9155 kshitij.so 14455
    self.bannerType = bannerType
6849 kshitij.so 14456
 
14457
  def read(self, iprot):
14458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14460
      return
14461
    iprot.readStructBegin()
14462
    while True:
14463
      (fname, ftype, fid) = iprot.readFieldBegin()
14464
      if ftype == TType.STOP:
14465
        break
14466
      if fid == 1:
14467
        if ftype == TType.STRING:
14468
          self.bannerName = iprot.readString();
14469
        else:
14470
          iprot.skip(ftype)
9155 kshitij.so 14471
      elif fid == 2:
14472
        if ftype == TType.I32:
14473
          self.bannerType = iprot.readI32();
14474
        else:
14475
          iprot.skip(ftype)
6849 kshitij.so 14476
      else:
14477
        iprot.skip(ftype)
14478
      iprot.readFieldEnd()
14479
    iprot.readStructEnd()
14480
 
14481
  def write(self, oprot):
14482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14484
      return
14485
    oprot.writeStructBegin('getBannerMapDetails_args')
14486
    if self.bannerName is not None:
14487
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14488
      oprot.writeString(self.bannerName)
14489
      oprot.writeFieldEnd()
9155 kshitij.so 14490
    if self.bannerType is not None:
14491
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14492
      oprot.writeI32(self.bannerType)
14493
      oprot.writeFieldEnd()
6849 kshitij.so 14494
    oprot.writeFieldStop()
14495
    oprot.writeStructEnd()
14496
 
14497
  def validate(self):
14498
    return
14499
 
14500
 
14501
  def __repr__(self):
14502
    L = ['%s=%r' % (key, value)
14503
      for key, value in self.__dict__.iteritems()]
14504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14505
 
14506
  def __eq__(self, other):
14507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14508
 
14509
  def __ne__(self, other):
14510
    return not (self == other)
14511
 
14512
class getBannerMapDetails_result:
14513
  """
14514
  Attributes:
14515
   - success
14516
  """
14517
 
14518
  thrift_spec = (
14519
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
14520
  )
14521
 
14522
  def __init__(self, success=None,):
14523
    self.success = success
14524
 
14525
  def read(self, iprot):
14526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14528
      return
14529
    iprot.readStructBegin()
14530
    while True:
14531
      (fname, ftype, fid) = iprot.readFieldBegin()
14532
      if ftype == TType.STOP:
14533
        break
14534
      if fid == 0:
14535
        if ftype == TType.LIST:
14536
          self.success = []
8590 kshitij.so 14537
          (_etype228, _size225) = iprot.readListBegin()
14538
          for _i229 in xrange(_size225):
14539
            _elem230 = BannerMap()
14540
            _elem230.read(iprot)
14541
            self.success.append(_elem230)
6849 kshitij.so 14542
          iprot.readListEnd()
14543
        else:
14544
          iprot.skip(ftype)
14545
      else:
14546
        iprot.skip(ftype)
14547
      iprot.readFieldEnd()
14548
    iprot.readStructEnd()
14549
 
14550
  def write(self, oprot):
14551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14553
      return
14554
    oprot.writeStructBegin('getBannerMapDetails_result')
14555
    if self.success is not None:
14556
      oprot.writeFieldBegin('success', TType.LIST, 0)
14557
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14558
      for iter231 in self.success:
14559
        iter231.write(oprot)
6849 kshitij.so 14560
      oprot.writeListEnd()
14561
      oprot.writeFieldEnd()
14562
    oprot.writeFieldStop()
14563
    oprot.writeStructEnd()
14564
 
14565
  def validate(self):
14566
    return
14567
 
14568
 
14569
  def __repr__(self):
14570
    L = ['%s=%r' % (key, value)
14571
      for key, value in self.__dict__.iteritems()]
14572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14573
 
14574
  def __eq__(self, other):
14575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14576
 
14577
  def __ne__(self, other):
14578
    return not (self == other)
14579
 
8579 kshitij.so 14580
class addBannerUri_args:
14581
  """
14582
  Attributes:
14583
   - bannerUriMappings
14584
  """
14585
 
14586
  thrift_spec = (
14587
    None, # 0
14588
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
14589
  )
14590
 
14591
  def __init__(self, bannerUriMappings=None,):
14592
    self.bannerUriMappings = bannerUriMappings
14593
 
14594
  def read(self, iprot):
14595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14597
      return
14598
    iprot.readStructBegin()
14599
    while True:
14600
      (fname, ftype, fid) = iprot.readFieldBegin()
14601
      if ftype == TType.STOP:
14602
        break
14603
      if fid == 1:
14604
        if ftype == TType.LIST:
14605
          self.bannerUriMappings = []
8590 kshitij.so 14606
          (_etype235, _size232) = iprot.readListBegin()
14607
          for _i236 in xrange(_size232):
14608
            _elem237 = BannerUriMapping()
14609
            _elem237.read(iprot)
14610
            self.bannerUriMappings.append(_elem237)
8579 kshitij.so 14611
          iprot.readListEnd()
14612
        else:
14613
          iprot.skip(ftype)
14614
      else:
14615
        iprot.skip(ftype)
14616
      iprot.readFieldEnd()
14617
    iprot.readStructEnd()
14618
 
14619
  def write(self, oprot):
14620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14622
      return
14623
    oprot.writeStructBegin('addBannerUri_args')
14624
    if self.bannerUriMappings is not None:
14625
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
14626
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
8590 kshitij.so 14627
      for iter238 in self.bannerUriMappings:
14628
        iter238.write(oprot)
8579 kshitij.so 14629
      oprot.writeListEnd()
14630
      oprot.writeFieldEnd()
14631
    oprot.writeFieldStop()
14632
    oprot.writeStructEnd()
14633
 
14634
  def validate(self):
14635
    return
14636
 
14637
 
14638
  def __repr__(self):
14639
    L = ['%s=%r' % (key, value)
14640
      for key, value in self.__dict__.iteritems()]
14641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14642
 
14643
  def __eq__(self, other):
14644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14645
 
14646
  def __ne__(self, other):
14647
    return not (self == other)
14648
 
14649
class addBannerUri_result:
14650
 
14651
  thrift_spec = (
14652
  )
14653
 
14654
  def read(self, iprot):
14655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14657
      return
14658
    iprot.readStructBegin()
14659
    while True:
14660
      (fname, ftype, fid) = iprot.readFieldBegin()
14661
      if ftype == TType.STOP:
14662
        break
14663
      else:
14664
        iprot.skip(ftype)
14665
      iprot.readFieldEnd()
14666
    iprot.readStructEnd()
14667
 
14668
  def write(self, oprot):
14669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14671
      return
14672
    oprot.writeStructBegin('addBannerUri_result')
14673
    oprot.writeFieldStop()
14674
    oprot.writeStructEnd()
14675
 
14676
  def validate(self):
14677
    return
14678
 
14679
 
14680
  def __repr__(self):
14681
    L = ['%s=%r' % (key, value)
14682
      for key, value in self.__dict__.iteritems()]
14683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14684
 
14685
  def __eq__(self, other):
14686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14687
 
14688
  def __ne__(self, other):
14689
    return not (self == other)
14690
 
14691
class getUriMapping_args:
14692
  """
14693
  Attributes:
14694
   - bannerName
9155 kshitij.so 14695
   - bannerType
8579 kshitij.so 14696
  """
14697
 
14698
  thrift_spec = (
14699
    None, # 0
14700
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 14701
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 14702
  )
14703
 
9155 kshitij.so 14704
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 14705
    self.bannerName = bannerName
9155 kshitij.so 14706
    self.bannerType = bannerType
8579 kshitij.so 14707
 
14708
  def read(self, iprot):
14709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14711
      return
14712
    iprot.readStructBegin()
14713
    while True:
14714
      (fname, ftype, fid) = iprot.readFieldBegin()
14715
      if ftype == TType.STOP:
14716
        break
14717
      if fid == 1:
14718
        if ftype == TType.STRING:
14719
          self.bannerName = iprot.readString();
14720
        else:
14721
          iprot.skip(ftype)
9155 kshitij.so 14722
      elif fid == 2:
14723
        if ftype == TType.I32:
14724
          self.bannerType = iprot.readI32();
14725
        else:
14726
          iprot.skip(ftype)
8579 kshitij.so 14727
      else:
14728
        iprot.skip(ftype)
14729
      iprot.readFieldEnd()
14730
    iprot.readStructEnd()
14731
 
14732
  def write(self, oprot):
14733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14735
      return
14736
    oprot.writeStructBegin('getUriMapping_args')
14737
    if self.bannerName is not None:
14738
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
14739
      oprot.writeString(self.bannerName)
14740
      oprot.writeFieldEnd()
9155 kshitij.so 14741
    if self.bannerType is not None:
14742
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
14743
      oprot.writeI32(self.bannerType)
14744
      oprot.writeFieldEnd()
8579 kshitij.so 14745
    oprot.writeFieldStop()
14746
    oprot.writeStructEnd()
14747
 
14748
  def validate(self):
14749
    return
14750
 
14751
 
14752
  def __repr__(self):
14753
    L = ['%s=%r' % (key, value)
14754
      for key, value in self.__dict__.iteritems()]
14755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14756
 
14757
  def __eq__(self, other):
14758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14759
 
14760
  def __ne__(self, other):
14761
    return not (self == other)
14762
 
14763
class getUriMapping_result:
14764
  """
14765
  Attributes:
14766
   - success
14767
  """
14768
 
14769
  thrift_spec = (
14770
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
14771
  )
14772
 
14773
  def __init__(self, success=None,):
14774
    self.success = success
14775
 
14776
  def read(self, iprot):
14777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14779
      return
14780
    iprot.readStructBegin()
14781
    while True:
14782
      (fname, ftype, fid) = iprot.readFieldBegin()
14783
      if ftype == TType.STOP:
14784
        break
14785
      if fid == 0:
14786
        if ftype == TType.LIST:
14787
          self.success = []
8590 kshitij.so 14788
          (_etype242, _size239) = iprot.readListBegin()
14789
          for _i243 in xrange(_size239):
14790
            _elem244 = BannerUriMapping()
14791
            _elem244.read(iprot)
14792
            self.success.append(_elem244)
8579 kshitij.so 14793
          iprot.readListEnd()
14794
        else:
14795
          iprot.skip(ftype)
14796
      else:
14797
        iprot.skip(ftype)
14798
      iprot.readFieldEnd()
14799
    iprot.readStructEnd()
14800
 
14801
  def write(self, oprot):
14802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14804
      return
14805
    oprot.writeStructBegin('getUriMapping_result')
14806
    if self.success is not None:
14807
      oprot.writeFieldBegin('success', TType.LIST, 0)
14808
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 14809
      for iter245 in self.success:
14810
        iter245.write(oprot)
8579 kshitij.so 14811
      oprot.writeListEnd()
14812
      oprot.writeFieldEnd()
14813
    oprot.writeFieldStop()
14814
    oprot.writeStructEnd()
14815
 
14816
  def validate(self):
14817
    return
14818
 
14819
 
14820
  def __repr__(self):
14821
    L = ['%s=%r' % (key, value)
14822
      for key, value in self.__dict__.iteritems()]
14823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14824
 
14825
  def __eq__(self, other):
14826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14827
 
14828
  def __ne__(self, other):
14829
    return not (self == other)
14830
 
14831
class addCampaign_args:
14832
  """
14833
  Attributes:
14834
   - campaign
14835
  """
14836
 
14837
  thrift_spec = (
14838
    None, # 0
14839
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
14840
  )
14841
 
14842
  def __init__(self, campaign=None,):
14843
    self.campaign = campaign
14844
 
14845
  def read(self, iprot):
14846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14848
      return
14849
    iprot.readStructBegin()
14850
    while True:
14851
      (fname, ftype, fid) = iprot.readFieldBegin()
14852
      if ftype == TType.STOP:
14853
        break
14854
      if fid == 1:
14855
        if ftype == TType.STRUCT:
14856
          self.campaign = Campaign()
14857
          self.campaign.read(iprot)
14858
        else:
14859
          iprot.skip(ftype)
14860
      else:
14861
        iprot.skip(ftype)
14862
      iprot.readFieldEnd()
14863
    iprot.readStructEnd()
14864
 
14865
  def write(self, oprot):
14866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14868
      return
14869
    oprot.writeStructBegin('addCampaign_args')
14870
    if self.campaign is not None:
14871
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
14872
      self.campaign.write(oprot)
14873
      oprot.writeFieldEnd()
14874
    oprot.writeFieldStop()
14875
    oprot.writeStructEnd()
14876
 
14877
  def validate(self):
14878
    return
14879
 
14880
 
14881
  def __repr__(self):
14882
    L = ['%s=%r' % (key, value)
14883
      for key, value in self.__dict__.iteritems()]
14884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14885
 
14886
  def __eq__(self, other):
14887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14888
 
14889
  def __ne__(self, other):
14890
    return not (self == other)
14891
 
14892
class addCampaign_result:
14893
 
14894
  thrift_spec = (
14895
  )
14896
 
14897
  def read(self, iprot):
14898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14900
      return
14901
    iprot.readStructBegin()
14902
    while True:
14903
      (fname, ftype, fid) = iprot.readFieldBegin()
14904
      if ftype == TType.STOP:
14905
        break
14906
      else:
14907
        iprot.skip(ftype)
14908
      iprot.readFieldEnd()
14909
    iprot.readStructEnd()
14910
 
14911
  def write(self, oprot):
14912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14914
      return
14915
    oprot.writeStructBegin('addCampaign_result')
14916
    oprot.writeFieldStop()
14917
    oprot.writeStructEnd()
14918
 
14919
  def validate(self):
14920
    return
14921
 
14922
 
14923
  def __repr__(self):
14924
    L = ['%s=%r' % (key, value)
14925
      for key, value in self.__dict__.iteritems()]
14926
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14927
 
14928
  def __eq__(self, other):
14929
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14930
 
14931
  def __ne__(self, other):
14932
    return not (self == other)
14933
 
14934
class getCampaigns_args:
14935
  """
14936
  Attributes:
14937
   - campaignName
14938
  """
14939
 
14940
  thrift_spec = (
14941
    None, # 0
14942
    (1, TType.STRING, 'campaignName', None, None, ), # 1
14943
  )
14944
 
14945
  def __init__(self, campaignName=None,):
14946
    self.campaignName = campaignName
14947
 
14948
  def read(self, iprot):
14949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14951
      return
14952
    iprot.readStructBegin()
14953
    while True:
14954
      (fname, ftype, fid) = iprot.readFieldBegin()
14955
      if ftype == TType.STOP:
14956
        break
14957
      if fid == 1:
14958
        if ftype == TType.STRING:
14959
          self.campaignName = iprot.readString();
14960
        else:
14961
          iprot.skip(ftype)
14962
      else:
14963
        iprot.skip(ftype)
14964
      iprot.readFieldEnd()
14965
    iprot.readStructEnd()
14966
 
14967
  def write(self, oprot):
14968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14970
      return
14971
    oprot.writeStructBegin('getCampaigns_args')
14972
    if self.campaignName is not None:
14973
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
14974
      oprot.writeString(self.campaignName)
14975
      oprot.writeFieldEnd()
14976
    oprot.writeFieldStop()
14977
    oprot.writeStructEnd()
14978
 
14979
  def validate(self):
14980
    return
14981
 
14982
 
14983
  def __repr__(self):
14984
    L = ['%s=%r' % (key, value)
14985
      for key, value in self.__dict__.iteritems()]
14986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14987
 
14988
  def __eq__(self, other):
14989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14990
 
14991
  def __ne__(self, other):
14992
    return not (self == other)
14993
 
14994
class getCampaigns_result:
14995
  """
14996
  Attributes:
14997
   - success
14998
  """
14999
 
15000
  thrift_spec = (
15001
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
15002
  )
15003
 
15004
  def __init__(self, success=None,):
15005
    self.success = success
15006
 
15007
  def read(self, iprot):
15008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15010
      return
15011
    iprot.readStructBegin()
15012
    while True:
15013
      (fname, ftype, fid) = iprot.readFieldBegin()
15014
      if ftype == TType.STOP:
15015
        break
15016
      if fid == 0:
15017
        if ftype == TType.LIST:
15018
          self.success = []
8590 kshitij.so 15019
          (_etype249, _size246) = iprot.readListBegin()
15020
          for _i250 in xrange(_size246):
15021
            _elem251 = Campaign()
15022
            _elem251.read(iprot)
15023
            self.success.append(_elem251)
8579 kshitij.so 15024
          iprot.readListEnd()
15025
        else:
15026
          iprot.skip(ftype)
15027
      else:
15028
        iprot.skip(ftype)
15029
      iprot.readFieldEnd()
15030
    iprot.readStructEnd()
15031
 
15032
  def write(self, oprot):
15033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15035
      return
15036
    oprot.writeStructBegin('getCampaigns_result')
15037
    if self.success is not None:
15038
      oprot.writeFieldBegin('success', TType.LIST, 0)
15039
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 15040
      for iter252 in self.success:
15041
        iter252.write(oprot)
8579 kshitij.so 15042
      oprot.writeListEnd()
15043
      oprot.writeFieldEnd()
15044
    oprot.writeFieldStop()
15045
    oprot.writeStructEnd()
15046
 
15047
  def validate(self):
15048
    return
15049
 
15050
 
15051
  def __repr__(self):
15052
    L = ['%s=%r' % (key, value)
15053
      for key, value in self.__dict__.iteritems()]
15054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15055
 
15056
  def __eq__(self, other):
15057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15058
 
15059
  def __ne__(self, other):
15060
    return not (self == other)
15061
 
15062
class deleteCampaign_args:
15063
  """
15064
  Attributes:
15065
   - campaignId
15066
  """
15067
 
15068
  thrift_spec = (
15069
    None, # 0
15070
    (1, TType.I64, 'campaignId', None, None, ), # 1
15071
  )
15072
 
15073
  def __init__(self, campaignId=None,):
15074
    self.campaignId = campaignId
15075
 
15076
  def read(self, iprot):
15077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15079
      return
15080
    iprot.readStructBegin()
15081
    while True:
15082
      (fname, ftype, fid) = iprot.readFieldBegin()
15083
      if ftype == TType.STOP:
15084
        break
15085
      if fid == 1:
15086
        if ftype == TType.I64:
15087
          self.campaignId = iprot.readI64();
15088
        else:
15089
          iprot.skip(ftype)
15090
      else:
15091
        iprot.skip(ftype)
15092
      iprot.readFieldEnd()
15093
    iprot.readStructEnd()
15094
 
15095
  def write(self, oprot):
15096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15098
      return
15099
    oprot.writeStructBegin('deleteCampaign_args')
15100
    if self.campaignId is not None:
15101
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
15102
      oprot.writeI64(self.campaignId)
15103
      oprot.writeFieldEnd()
15104
    oprot.writeFieldStop()
15105
    oprot.writeStructEnd()
15106
 
15107
  def validate(self):
15108
    return
15109
 
15110
 
15111
  def __repr__(self):
15112
    L = ['%s=%r' % (key, value)
15113
      for key, value in self.__dict__.iteritems()]
15114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15115
 
15116
  def __eq__(self, other):
15117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15118
 
15119
  def __ne__(self, other):
15120
    return not (self == other)
15121
 
15122
class deleteCampaign_result:
15123
 
15124
  thrift_spec = (
15125
  )
15126
 
15127
  def read(self, iprot):
15128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15130
      return
15131
    iprot.readStructBegin()
15132
    while True:
15133
      (fname, ftype, fid) = iprot.readFieldBegin()
15134
      if ftype == TType.STOP:
15135
        break
15136
      else:
15137
        iprot.skip(ftype)
15138
      iprot.readFieldEnd()
15139
    iprot.readStructEnd()
15140
 
15141
  def write(self, oprot):
15142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15144
      return
15145
    oprot.writeStructBegin('deleteCampaign_result')
15146
    oprot.writeFieldStop()
15147
    oprot.writeStructEnd()
15148
 
15149
  def validate(self):
15150
    return
15151
 
15152
 
15153
  def __repr__(self):
15154
    L = ['%s=%r' % (key, value)
15155
      for key, value in self.__dict__.iteritems()]
15156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15157
 
15158
  def __eq__(self, other):
15159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15160
 
15161
  def __ne__(self, other):
15162
    return not (self == other)
15163
 
15164
class getAllCampaigns_args:
15165
 
15166
  thrift_spec = (
15167
  )
15168
 
15169
  def read(self, iprot):
15170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15172
      return
15173
    iprot.readStructBegin()
15174
    while True:
15175
      (fname, ftype, fid) = iprot.readFieldBegin()
15176
      if ftype == TType.STOP:
15177
        break
15178
      else:
15179
        iprot.skip(ftype)
15180
      iprot.readFieldEnd()
15181
    iprot.readStructEnd()
15182
 
15183
  def write(self, oprot):
15184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15186
      return
15187
    oprot.writeStructBegin('getAllCampaigns_args')
15188
    oprot.writeFieldStop()
15189
    oprot.writeStructEnd()
15190
 
15191
  def validate(self):
15192
    return
15193
 
15194
 
15195
  def __repr__(self):
15196
    L = ['%s=%r' % (key, value)
15197
      for key, value in self.__dict__.iteritems()]
15198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15199
 
15200
  def __eq__(self, other):
15201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15202
 
15203
  def __ne__(self, other):
15204
    return not (self == other)
15205
 
15206
class getAllCampaigns_result:
15207
  """
15208
  Attributes:
15209
   - success
15210
  """
15211
 
15212
  thrift_spec = (
15213
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
15214
  )
15215
 
15216
  def __init__(self, success=None,):
15217
    self.success = success
15218
 
15219
  def read(self, iprot):
15220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15222
      return
15223
    iprot.readStructBegin()
15224
    while True:
15225
      (fname, ftype, fid) = iprot.readFieldBegin()
15226
      if ftype == TType.STOP:
15227
        break
15228
      if fid == 0:
15229
        if ftype == TType.LIST:
15230
          self.success = []
8590 kshitij.so 15231
          (_etype256, _size253) = iprot.readListBegin()
15232
          for _i257 in xrange(_size253):
15233
            _elem258 = iprot.readString();
15234
            self.success.append(_elem258)
8579 kshitij.so 15235
          iprot.readListEnd()
15236
        else:
15237
          iprot.skip(ftype)
15238
      else:
15239
        iprot.skip(ftype)
15240
      iprot.readFieldEnd()
15241
    iprot.readStructEnd()
15242
 
15243
  def write(self, oprot):
15244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15246
      return
15247
    oprot.writeStructBegin('getAllCampaigns_result')
15248
    if self.success is not None:
15249
      oprot.writeFieldBegin('success', TType.LIST, 0)
15250
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 15251
      for iter259 in self.success:
15252
        oprot.writeString(iter259)
8579 kshitij.so 15253
      oprot.writeListEnd()
15254
      oprot.writeFieldEnd()
15255
    oprot.writeFieldStop()
15256
    oprot.writeStructEnd()
15257
 
15258
  def validate(self):
15259
    return
15260
 
15261
 
15262
  def __repr__(self):
15263
    L = ['%s=%r' % (key, value)
15264
      for key, value in self.__dict__.iteritems()]
15265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15266
 
15267
  def __eq__(self, other):
15268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15269
 
15270
  def __ne__(self, other):
15271
    return not (self == other)
15272
 
9155 kshitij.so 15273
class getActiveBannersForMobileSite_args:
15274
 
15275
  thrift_spec = (
15276
  )
15277
 
15278
  def read(self, iprot):
15279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15281
      return
15282
    iprot.readStructBegin()
15283
    while True:
15284
      (fname, ftype, fid) = iprot.readFieldBegin()
15285
      if ftype == TType.STOP:
15286
        break
15287
      else:
15288
        iprot.skip(ftype)
15289
      iprot.readFieldEnd()
15290
    iprot.readStructEnd()
15291
 
15292
  def write(self, oprot):
15293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15295
      return
15296
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
15297
    oprot.writeFieldStop()
15298
    oprot.writeStructEnd()
15299
 
15300
  def validate(self):
15301
    return
15302
 
15303
 
15304
  def __repr__(self):
15305
    L = ['%s=%r' % (key, value)
15306
      for key, value in self.__dict__.iteritems()]
15307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15308
 
15309
  def __eq__(self, other):
15310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15311
 
15312
  def __ne__(self, other):
15313
    return not (self == other)
15314
 
15315
class getActiveBannersForMobileSite_result:
15316
  """
15317
  Attributes:
15318
   - success
15319
  """
15320
 
15321
  thrift_spec = (
15322
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
15323
  )
15324
 
15325
  def __init__(self, success=None,):
15326
    self.success = success
15327
 
15328
  def read(self, iprot):
15329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15331
      return
15332
    iprot.readStructBegin()
15333
    while True:
15334
      (fname, ftype, fid) = iprot.readFieldBegin()
15335
      if ftype == TType.STOP:
15336
        break
15337
      if fid == 0:
15338
        if ftype == TType.MAP:
15339
          self.success = {}
15340
          (_ktype261, _vtype262, _size260 ) = iprot.readMapBegin() 
15341
          for _i264 in xrange(_size260):
15342
            _key265 = iprot.readString();
15343
            _val266 = []
15344
            (_etype270, _size267) = iprot.readListBegin()
15345
            for _i271 in xrange(_size267):
15346
              _elem272 = Banner()
15347
              _elem272.read(iprot)
15348
              _val266.append(_elem272)
15349
            iprot.readListEnd()
15350
            self.success[_key265] = _val266
15351
          iprot.readMapEnd()
15352
        else:
15353
          iprot.skip(ftype)
15354
      else:
15355
        iprot.skip(ftype)
15356
      iprot.readFieldEnd()
15357
    iprot.readStructEnd()
15358
 
15359
  def write(self, oprot):
15360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15362
      return
15363
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
15364
    if self.success is not None:
15365
      oprot.writeFieldBegin('success', TType.MAP, 0)
15366
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
15367
      for kiter273,viter274 in self.success.items():
15368
        oprot.writeString(kiter273)
15369
        oprot.writeListBegin(TType.STRUCT, len(viter274))
15370
        for iter275 in viter274:
15371
          iter275.write(oprot)
15372
        oprot.writeListEnd()
15373
      oprot.writeMapEnd()
15374
      oprot.writeFieldEnd()
15375
    oprot.writeFieldStop()
15376
    oprot.writeStructEnd()
15377
 
15378
  def validate(self):
15379
    return
15380
 
15381
 
15382
  def __repr__(self):
15383
    L = ['%s=%r' % (key, value)
15384
      for key, value in self.__dict__.iteritems()]
15385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15386
 
15387
  def __eq__(self, other):
15388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15389
 
15390
  def __ne__(self, other):
15391
    return not (self == other)
15392
 
5944 mandeep.dh 15393
class deleteSimilarItem_args:
15394
  """
15395
  Attributes:
15396
   - itemId
15397
   - catalogItemId
15398
  """
15399
 
15400
  thrift_spec = (
15401
    None, # 0
15402
    (1, TType.I64, 'itemId', None, None, ), # 1
15403
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
15404
  )
15405
 
15406
  def __init__(self, itemId=None, catalogItemId=None,):
15407
    self.itemId = itemId
15408
    self.catalogItemId = catalogItemId
15409
 
15410
  def read(self, iprot):
15411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15413
      return
15414
    iprot.readStructBegin()
15415
    while True:
15416
      (fname, ftype, fid) = iprot.readFieldBegin()
15417
      if ftype == TType.STOP:
15418
        break
15419
      if fid == 1:
15420
        if ftype == TType.I64:
15421
          self.itemId = iprot.readI64();
15422
        else:
15423
          iprot.skip(ftype)
15424
      elif fid == 2:
15425
        if ftype == TType.I64:
15426
          self.catalogItemId = iprot.readI64();
15427
        else:
15428
          iprot.skip(ftype)
15429
      else:
15430
        iprot.skip(ftype)
15431
      iprot.readFieldEnd()
15432
    iprot.readStructEnd()
15433
 
15434
  def write(self, oprot):
15435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15437
      return
15438
    oprot.writeStructBegin('deleteSimilarItem_args')
15439
    if self.itemId is not None:
15440
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15441
      oprot.writeI64(self.itemId)
15442
      oprot.writeFieldEnd()
15443
    if self.catalogItemId is not None:
15444
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
15445
      oprot.writeI64(self.catalogItemId)
15446
      oprot.writeFieldEnd()
15447
    oprot.writeFieldStop()
15448
    oprot.writeStructEnd()
15449
 
15450
  def validate(self):
15451
    return
15452
 
15453
 
15454
  def __repr__(self):
15455
    L = ['%s=%r' % (key, value)
15456
      for key, value in self.__dict__.iteritems()]
15457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15458
 
15459
  def __eq__(self, other):
15460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15461
 
15462
  def __ne__(self, other):
15463
    return not (self == other)
15464
 
15465
class deleteSimilarItem_result:
15466
  """
15467
  Attributes:
15468
   - success
15469
   - cex
15470
  """
15471
 
15472
  thrift_spec = (
15473
    (0, TType.BOOL, 'success', None, None, ), # 0
15474
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
15475
  )
15476
 
15477
  def __init__(self, success=None, cex=None,):
15478
    self.success = success
15479
    self.cex = cex
15480
 
15481
  def read(self, iprot):
15482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15484
      return
15485
    iprot.readStructBegin()
15486
    while True:
15487
      (fname, ftype, fid) = iprot.readFieldBegin()
15488
      if ftype == TType.STOP:
15489
        break
15490
      if fid == 0:
15491
        if ftype == TType.BOOL:
15492
          self.success = iprot.readBool();
15493
        else:
15494
          iprot.skip(ftype)
15495
      elif fid == 1:
15496
        if ftype == TType.STRUCT:
15497
          self.cex = CatalogServiceException()
15498
          self.cex.read(iprot)
15499
        else:
15500
          iprot.skip(ftype)
15501
      else:
15502
        iprot.skip(ftype)
15503
      iprot.readFieldEnd()
15504
    iprot.readStructEnd()
15505
 
15506
  def write(self, oprot):
15507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15509
      return
15510
    oprot.writeStructBegin('deleteSimilarItem_result')
15511
    if self.success is not None:
15512
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15513
      oprot.writeBool(self.success)
15514
      oprot.writeFieldEnd()
15515
    if self.cex is not None:
15516
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
15517
      self.cex.write(oprot)
15518
      oprot.writeFieldEnd()
15519
    oprot.writeFieldStop()
15520
    oprot.writeStructEnd()
15521
 
15522
  def validate(self):
15523
    return
15524
 
15525
 
15526
  def __repr__(self):
15527
    L = ['%s=%r' % (key, value)
15528
      for key, value in self.__dict__.iteritems()]
15529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15530
 
15531
  def __eq__(self, other):
15532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15533
 
15534
  def __ne__(self, other):
15535
    return not (self == other)
15536
 
15537
class checkSimilarItem_args:
15538
  """
15539
  Attributes:
15540
   - brand
15541
   - modelNumber
15542
   - modelName
15543
   - color
15544
  """
15545
 
15546
  thrift_spec = (
15547
    None, # 0
15548
    (1, TType.STRING, 'brand', None, None, ), # 1
15549
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
15550
    (3, TType.STRING, 'modelName', None, None, ), # 3
15551
    (4, TType.STRING, 'color', None, None, ), # 4
15552
  )
15553
 
15554
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
15555
    self.brand = brand
15556
    self.modelNumber = modelNumber
15557
    self.modelName = modelName
15558
    self.color = color
15559
 
15560
  def read(self, iprot):
15561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15563
      return
15564
    iprot.readStructBegin()
15565
    while True:
15566
      (fname, ftype, fid) = iprot.readFieldBegin()
15567
      if ftype == TType.STOP:
15568
        break
15569
      if fid == 1:
15570
        if ftype == TType.STRING:
15571
          self.brand = iprot.readString();
15572
        else:
15573
          iprot.skip(ftype)
15574
      elif fid == 2:
15575
        if ftype == TType.STRING:
15576
          self.modelNumber = iprot.readString();
15577
        else:
15578
          iprot.skip(ftype)
15579
      elif fid == 3:
15580
        if ftype == TType.STRING:
15581
          self.modelName = iprot.readString();
15582
        else:
15583
          iprot.skip(ftype)
15584
      elif fid == 4:
15585
        if ftype == TType.STRING:
15586
          self.color = iprot.readString();
15587
        else:
15588
          iprot.skip(ftype)
15589
      else:
15590
        iprot.skip(ftype)
15591
      iprot.readFieldEnd()
15592
    iprot.readStructEnd()
15593
 
15594
  def write(self, oprot):
15595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15597
      return
15598
    oprot.writeStructBegin('checkSimilarItem_args')
15599
    if self.brand is not None:
15600
      oprot.writeFieldBegin('brand', TType.STRING, 1)
15601
      oprot.writeString(self.brand)
15602
      oprot.writeFieldEnd()
15603
    if self.modelNumber is not None:
15604
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
15605
      oprot.writeString(self.modelNumber)
15606
      oprot.writeFieldEnd()
15607
    if self.modelName is not None:
15608
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
15609
      oprot.writeString(self.modelName)
15610
      oprot.writeFieldEnd()
15611
    if self.color is not None:
15612
      oprot.writeFieldBegin('color', TType.STRING, 4)
15613
      oprot.writeString(self.color)
15614
      oprot.writeFieldEnd()
15615
    oprot.writeFieldStop()
15616
    oprot.writeStructEnd()
15617
 
15618
  def validate(self):
15619
    return
15620
 
15621
 
15622
  def __repr__(self):
15623
    L = ['%s=%r' % (key, value)
15624
      for key, value in self.__dict__.iteritems()]
15625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15626
 
15627
  def __eq__(self, other):
15628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15629
 
15630
  def __ne__(self, other):
15631
    return not (self == other)
15632
 
15633
class checkSimilarItem_result:
15634
  """
15635
  Attributes:
15636
   - success
15637
  """
15638
 
15639
  thrift_spec = (
15640
    (0, TType.I64, 'success', None, None, ), # 0
15641
  )
15642
 
15643
  def __init__(self, success=None,):
15644
    self.success = success
15645
 
15646
  def read(self, iprot):
15647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15649
      return
15650
    iprot.readStructBegin()
15651
    while True:
15652
      (fname, ftype, fid) = iprot.readFieldBegin()
15653
      if ftype == TType.STOP:
15654
        break
15655
      if fid == 0:
15656
        if ftype == TType.I64:
15657
          self.success = iprot.readI64();
15658
        else:
15659
          iprot.skip(ftype)
15660
      else:
15661
        iprot.skip(ftype)
15662
      iprot.readFieldEnd()
15663
    iprot.readStructEnd()
15664
 
15665
  def write(self, oprot):
15666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15668
      return
15669
    oprot.writeStructBegin('checkSimilarItem_result')
15670
    if self.success is not None:
15671
      oprot.writeFieldBegin('success', TType.I64, 0)
15672
      oprot.writeI64(self.success)
15673
      oprot.writeFieldEnd()
15674
    oprot.writeFieldStop()
15675
    oprot.writeStructEnd()
15676
 
15677
  def validate(self):
15678
    return
15679
 
15680
 
15681
  def __repr__(self):
15682
    L = ['%s=%r' % (key, value)
15683
      for key, value in self.__dict__.iteritems()]
15684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15685
 
15686
  def __eq__(self, other):
15687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15688
 
15689
  def __ne__(self, other):
15690
    return not (self == other)
15691
 
15692
class validateRiskyStatus_args:
15693
  """
15694
  Attributes:
15695
   - itemId
15696
  """
15697
 
15698
  thrift_spec = (
15699
    None, # 0
15700
    (1, TType.I64, 'itemId', None, None, ), # 1
15701
  )
15702
 
15703
  def __init__(self, itemId=None,):
15704
    self.itemId = itemId
15705
 
15706
  def read(self, iprot):
15707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15709
      return
15710
    iprot.readStructBegin()
15711
    while True:
15712
      (fname, ftype, fid) = iprot.readFieldBegin()
15713
      if ftype == TType.STOP:
15714
        break
15715
      if fid == 1:
15716
        if ftype == TType.I64:
15717
          self.itemId = iprot.readI64();
15718
        else:
15719
          iprot.skip(ftype)
15720
      else:
15721
        iprot.skip(ftype)
15722
      iprot.readFieldEnd()
15723
    iprot.readStructEnd()
15724
 
15725
  def write(self, oprot):
15726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15728
      return
15729
    oprot.writeStructBegin('validateRiskyStatus_args')
15730
    if self.itemId is not None:
15731
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15732
      oprot.writeI64(self.itemId)
15733
      oprot.writeFieldEnd()
15734
    oprot.writeFieldStop()
15735
    oprot.writeStructEnd()
15736
 
15737
  def validate(self):
15738
    return
15739
 
15740
 
15741
  def __repr__(self):
15742
    L = ['%s=%r' % (key, value)
15743
      for key, value in self.__dict__.iteritems()]
15744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15745
 
15746
  def __eq__(self, other):
15747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15748
 
15749
  def __ne__(self, other):
15750
    return not (self == other)
15751
 
15752
class validateRiskyStatus_result:
15753
 
15754
  thrift_spec = (
15755
  )
15756
 
15757
  def read(self, iprot):
15758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15760
      return
15761
    iprot.readStructBegin()
15762
    while True:
15763
      (fname, ftype, fid) = iprot.readFieldBegin()
15764
      if ftype == TType.STOP:
15765
        break
15766
      else:
15767
        iprot.skip(ftype)
15768
      iprot.readFieldEnd()
15769
    iprot.readStructEnd()
15770
 
15771
  def write(self, oprot):
15772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15774
      return
15775
    oprot.writeStructBegin('validateRiskyStatus_result')
15776
    oprot.writeFieldStop()
15777
    oprot.writeStructEnd()
15778
 
15779
  def validate(self):
15780
    return
15781
 
15782
 
15783
  def __repr__(self):
15784
    L = ['%s=%r' % (key, value)
15785
      for key, value in self.__dict__.iteritems()]
15786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15787
 
15788
  def __eq__(self, other):
15789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15790
 
15791
  def __ne__(self, other):
15792
    return not (self == other)
15793
 
15794
class changeItemRiskyFlag_args:
15795
  """
15796
  Attributes:
15797
   - itemId
15798
   - risky
15799
  """
15800
 
15801
  thrift_spec = (
15802
    None, # 0
15803
    (1, TType.I64, 'itemId', None, None, ), # 1
15804
    (2, TType.BOOL, 'risky', None, None, ), # 2
15805
  )
15806
 
15807
  def __init__(self, itemId=None, risky=None,):
15808
    self.itemId = itemId
15809
    self.risky = risky
15810
 
15811
  def read(self, iprot):
15812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15814
      return
15815
    iprot.readStructBegin()
15816
    while True:
15817
      (fname, ftype, fid) = iprot.readFieldBegin()
15818
      if ftype == TType.STOP:
15819
        break
15820
      if fid == 1:
15821
        if ftype == TType.I64:
15822
          self.itemId = iprot.readI64();
15823
        else:
15824
          iprot.skip(ftype)
15825
      elif fid == 2:
15826
        if ftype == TType.BOOL:
15827
          self.risky = iprot.readBool();
15828
        else:
15829
          iprot.skip(ftype)
15830
      else:
15831
        iprot.skip(ftype)
15832
      iprot.readFieldEnd()
15833
    iprot.readStructEnd()
15834
 
15835
  def write(self, oprot):
15836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15838
      return
15839
    oprot.writeStructBegin('changeItemRiskyFlag_args')
15840
    if self.itemId is not None:
15841
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15842
      oprot.writeI64(self.itemId)
15843
      oprot.writeFieldEnd()
15844
    if self.risky is not None:
15845
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
15846
      oprot.writeBool(self.risky)
15847
      oprot.writeFieldEnd()
15848
    oprot.writeFieldStop()
15849
    oprot.writeStructEnd()
15850
 
15851
  def validate(self):
15852
    return
15853
 
15854
 
15855
  def __repr__(self):
15856
    L = ['%s=%r' % (key, value)
15857
      for key, value in self.__dict__.iteritems()]
15858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15859
 
15860
  def __eq__(self, other):
15861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15862
 
15863
  def __ne__(self, other):
15864
    return not (self == other)
15865
 
15866
class changeItemRiskyFlag_result:
15867
 
15868
  thrift_spec = (
15869
  )
15870
 
15871
  def read(self, iprot):
15872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15874
      return
15875
    iprot.readStructBegin()
15876
    while True:
15877
      (fname, ftype, fid) = iprot.readFieldBegin()
15878
      if ftype == TType.STOP:
15879
        break
15880
      else:
15881
        iprot.skip(ftype)
15882
      iprot.readFieldEnd()
15883
    iprot.readStructEnd()
15884
 
15885
  def write(self, oprot):
15886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15888
      return
15889
    oprot.writeStructBegin('changeItemRiskyFlag_result')
15890
    oprot.writeFieldStop()
15891
    oprot.writeStructEnd()
15892
 
15893
  def validate(self):
15894
    return
15895
 
15896
 
15897
  def __repr__(self):
15898
    L = ['%s=%r' % (key, value)
15899
      for key, value in self.__dict__.iteritems()]
15900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15901
 
15902
  def __eq__(self, other):
15903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15904
 
15905
  def __ne__(self, other):
15906
    return not (self == other)
15907
 
15908
class getItemsByRiskyFlag_args:
15909
 
15910
  thrift_spec = (
15911
  )
15912
 
15913
  def read(self, iprot):
15914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15916
      return
15917
    iprot.readStructBegin()
15918
    while True:
15919
      (fname, ftype, fid) = iprot.readFieldBegin()
15920
      if ftype == TType.STOP:
15921
        break
15922
      else:
15923
        iprot.skip(ftype)
15924
      iprot.readFieldEnd()
15925
    iprot.readStructEnd()
15926
 
15927
  def write(self, oprot):
15928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15930
      return
15931
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
15932
    oprot.writeFieldStop()
15933
    oprot.writeStructEnd()
15934
 
15935
  def validate(self):
15936
    return
15937
 
15938
 
15939
  def __repr__(self):
15940
    L = ['%s=%r' % (key, value)
15941
      for key, value in self.__dict__.iteritems()]
15942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15943
 
15944
  def __eq__(self, other):
15945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15946
 
15947
  def __ne__(self, other):
15948
    return not (self == other)
15949
 
15950
class getItemsByRiskyFlag_result:
15951
  """
15952
  Attributes:
15953
   - success
15954
  """
15955
 
15956
  thrift_spec = (
15957
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
15958
  )
15959
 
15960
  def __init__(self, success=None,):
15961
    self.success = success
15962
 
15963
  def read(self, iprot):
15964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15966
      return
15967
    iprot.readStructBegin()
15968
    while True:
15969
      (fname, ftype, fid) = iprot.readFieldBegin()
15970
      if ftype == TType.STOP:
15971
        break
15972
      if fid == 0:
15973
        if ftype == TType.LIST:
15974
          self.success = []
9155 kshitij.so 15975
          (_etype279, _size276) = iprot.readListBegin()
15976
          for _i280 in xrange(_size276):
15977
            _elem281 = Item()
15978
            _elem281.read(iprot)
15979
            self.success.append(_elem281)
5944 mandeep.dh 15980
          iprot.readListEnd()
15981
        else:
15982
          iprot.skip(ftype)
15983
      else:
15984
        iprot.skip(ftype)
15985
      iprot.readFieldEnd()
15986
    iprot.readStructEnd()
15987
 
15988
  def write(self, oprot):
15989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15991
      return
15992
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
15993
    if self.success is not None:
15994
      oprot.writeFieldBegin('success', TType.LIST, 0)
15995
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15996
      for iter282 in self.success:
15997
        iter282.write(oprot)
5944 mandeep.dh 15998
      oprot.writeListEnd()
15999
      oprot.writeFieldEnd()
16000
    oprot.writeFieldStop()
16001
    oprot.writeStructEnd()
16002
 
16003
  def validate(self):
16004
    return
16005
 
16006
 
16007
  def __repr__(self):
16008
    L = ['%s=%r' % (key, value)
16009
      for key, value in self.__dict__.iteritems()]
16010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16011
 
16012
  def __eq__(self, other):
16013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16014
 
16015
  def __ne__(self, other):
16016
    return not (self == other)
16017
 
16018
class getItemsForMasterSheet_args:
16019
  """
16020
  Attributes:
16021
   - category
16022
   - brand
16023
  """
16024
 
16025
  thrift_spec = (
16026
    None, # 0
16027
    (1, TType.STRING, 'category', None, None, ), # 1
16028
    (2, TType.STRING, 'brand', None, None, ), # 2
16029
  )
16030
 
16031
  def __init__(self, category=None, brand=None,):
16032
    self.category = category
16033
    self.brand = brand
16034
 
16035
  def read(self, iprot):
16036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16038
      return
16039
    iprot.readStructBegin()
16040
    while True:
16041
      (fname, ftype, fid) = iprot.readFieldBegin()
16042
      if ftype == TType.STOP:
16043
        break
16044
      if fid == 1:
16045
        if ftype == TType.STRING:
16046
          self.category = iprot.readString();
16047
        else:
16048
          iprot.skip(ftype)
16049
      elif fid == 2:
16050
        if ftype == TType.STRING:
16051
          self.brand = iprot.readString();
16052
        else:
16053
          iprot.skip(ftype)
16054
      else:
16055
        iprot.skip(ftype)
16056
      iprot.readFieldEnd()
16057
    iprot.readStructEnd()
16058
 
16059
  def write(self, oprot):
16060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16062
      return
16063
    oprot.writeStructBegin('getItemsForMasterSheet_args')
16064
    if self.category is not None:
16065
      oprot.writeFieldBegin('category', TType.STRING, 1)
16066
      oprot.writeString(self.category)
16067
      oprot.writeFieldEnd()
16068
    if self.brand is not None:
16069
      oprot.writeFieldBegin('brand', TType.STRING, 2)
16070
      oprot.writeString(self.brand)
16071
      oprot.writeFieldEnd()
16072
    oprot.writeFieldStop()
16073
    oprot.writeStructEnd()
16074
 
16075
  def validate(self):
16076
    return
16077
 
16078
 
16079
  def __repr__(self):
16080
    L = ['%s=%r' % (key, value)
16081
      for key, value in self.__dict__.iteritems()]
16082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16083
 
16084
  def __eq__(self, other):
16085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16086
 
16087
  def __ne__(self, other):
16088
    return not (self == other)
16089
 
16090
class getItemsForMasterSheet_result:
16091
  """
16092
  Attributes:
16093
   - success
16094
  """
16095
 
16096
  thrift_spec = (
16097
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
16098
  )
16099
 
16100
  def __init__(self, success=None,):
16101
    self.success = success
16102
 
16103
  def read(self, iprot):
16104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16106
      return
16107
    iprot.readStructBegin()
16108
    while True:
16109
      (fname, ftype, fid) = iprot.readFieldBegin()
16110
      if ftype == TType.STOP:
16111
        break
16112
      if fid == 0:
16113
        if ftype == TType.LIST:
16114
          self.success = []
9155 kshitij.so 16115
          (_etype286, _size283) = iprot.readListBegin()
16116
          for _i287 in xrange(_size283):
16117
            _elem288 = Item()
16118
            _elem288.read(iprot)
16119
            self.success.append(_elem288)
5944 mandeep.dh 16120
          iprot.readListEnd()
16121
        else:
16122
          iprot.skip(ftype)
16123
      else:
16124
        iprot.skip(ftype)
16125
      iprot.readFieldEnd()
16126
    iprot.readStructEnd()
16127
 
16128
  def write(self, oprot):
16129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16131
      return
16132
    oprot.writeStructBegin('getItemsForMasterSheet_result')
16133
    if self.success is not None:
16134
      oprot.writeFieldBegin('success', TType.LIST, 0)
16135
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16136
      for iter289 in self.success:
16137
        iter289.write(oprot)
5944 mandeep.dh 16138
      oprot.writeListEnd()
16139
      oprot.writeFieldEnd()
16140
    oprot.writeFieldStop()
16141
    oprot.writeStructEnd()
16142
 
16143
  def validate(self):
16144
    return
16145
 
16146
 
16147
  def __repr__(self):
16148
    L = ['%s=%r' % (key, value)
16149
      for key, value in self.__dict__.iteritems()]
16150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16151
 
16152
  def __eq__(self, other):
16153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16154
 
16155
  def __ne__(self, other):
16156
    return not (self == other)
16157
 
16158
class getSimilarItemsCatalogIds_args:
16159
  """
16160
  Attributes:
16161
   - beginIndex
16162
   - totalItems
16163
   - itemId
16164
  """
16165
 
16166
  thrift_spec = (
16167
    None, # 0
16168
    (1, TType.I64, 'beginIndex', None, None, ), # 1
16169
    (2, TType.I64, 'totalItems', None, None, ), # 2
16170
    (3, TType.I64, 'itemId', None, None, ), # 3
16171
  )
16172
 
16173
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
16174
    self.beginIndex = beginIndex
16175
    self.totalItems = totalItems
16176
    self.itemId = itemId
16177
 
16178
  def read(self, iprot):
16179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16181
      return
16182
    iprot.readStructBegin()
16183
    while True:
16184
      (fname, ftype, fid) = iprot.readFieldBegin()
16185
      if ftype == TType.STOP:
16186
        break
16187
      if fid == 1:
16188
        if ftype == TType.I64:
16189
          self.beginIndex = iprot.readI64();
16190
        else:
16191
          iprot.skip(ftype)
16192
      elif fid == 2:
16193
        if ftype == TType.I64:
16194
          self.totalItems = iprot.readI64();
16195
        else:
16196
          iprot.skip(ftype)
16197
      elif fid == 3:
16198
        if ftype == TType.I64:
16199
          self.itemId = iprot.readI64();
16200
        else:
16201
          iprot.skip(ftype)
16202
      else:
16203
        iprot.skip(ftype)
16204
      iprot.readFieldEnd()
16205
    iprot.readStructEnd()
16206
 
16207
  def write(self, oprot):
16208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16210
      return
16211
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
16212
    if self.beginIndex is not None:
16213
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
16214
      oprot.writeI64(self.beginIndex)
16215
      oprot.writeFieldEnd()
16216
    if self.totalItems is not None:
16217
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
16218
      oprot.writeI64(self.totalItems)
16219
      oprot.writeFieldEnd()
16220
    if self.itemId is not None:
16221
      oprot.writeFieldBegin('itemId', TType.I64, 3)
16222
      oprot.writeI64(self.itemId)
16223
      oprot.writeFieldEnd()
16224
    oprot.writeFieldStop()
16225
    oprot.writeStructEnd()
16226
 
16227
  def validate(self):
16228
    return
16229
 
16230
 
16231
  def __repr__(self):
16232
    L = ['%s=%r' % (key, value)
16233
      for key, value in self.__dict__.iteritems()]
16234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16235
 
16236
  def __eq__(self, other):
16237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16238
 
16239
  def __ne__(self, other):
16240
    return not (self == other)
16241
 
16242
class getSimilarItemsCatalogIds_result:
16243
  """
16244
  Attributes:
16245
   - success
16246
  """
16247
 
16248
  thrift_spec = (
16249
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
16250
  )
16251
 
16252
  def __init__(self, success=None,):
16253
    self.success = success
16254
 
16255
  def read(self, iprot):
16256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16258
      return
16259
    iprot.readStructBegin()
16260
    while True:
16261
      (fname, ftype, fid) = iprot.readFieldBegin()
16262
      if ftype == TType.STOP:
16263
        break
16264
      if fid == 0:
16265
        if ftype == TType.LIST:
16266
          self.success = []
9155 kshitij.so 16267
          (_etype293, _size290) = iprot.readListBegin()
16268
          for _i294 in xrange(_size290):
16269
            _elem295 = iprot.readI64();
16270
            self.success.append(_elem295)
5944 mandeep.dh 16271
          iprot.readListEnd()
16272
        else:
16273
          iprot.skip(ftype)
16274
      else:
16275
        iprot.skip(ftype)
16276
      iprot.readFieldEnd()
16277
    iprot.readStructEnd()
16278
 
16279
  def write(self, oprot):
16280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16282
      return
16283
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
16284
    if self.success is not None:
16285
      oprot.writeFieldBegin('success', TType.LIST, 0)
16286
      oprot.writeListBegin(TType.I64, len(self.success))
9155 kshitij.so 16287
      for iter296 in self.success:
16288
        oprot.writeI64(iter296)
5944 mandeep.dh 16289
      oprot.writeListEnd()
16290
      oprot.writeFieldEnd()
16291
    oprot.writeFieldStop()
16292
    oprot.writeStructEnd()
16293
 
16294
  def validate(self):
16295
    return
16296
 
16297
 
16298
  def __repr__(self):
16299
    L = ['%s=%r' % (key, value)
16300
      for key, value in self.__dict__.iteritems()]
16301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16302
 
16303
  def __eq__(self, other):
16304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16305
 
16306
  def __ne__(self, other):
16307
    return not (self == other)
16308
 
16309
class addProductNotification_args:
16310
  """
16311
  Attributes:
16312
   - itemId
16313
   - email
16314
  """
16315
 
16316
  thrift_spec = None
16317
  def __init__(self, itemId=None, email=None,):
16318
    self.itemId = itemId
16319
    self.email = email
16320
 
16321
  def read(self, iprot):
16322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16324
      return
16325
    iprot.readStructBegin()
16326
    while True:
16327
      (fname, ftype, fid) = iprot.readFieldBegin()
16328
      if ftype == TType.STOP:
16329
        break
16330
      if fid == -1:
16331
        if ftype == TType.I64:
16332
          self.itemId = iprot.readI64();
16333
        else:
16334
          iprot.skip(ftype)
16335
      elif fid == -2:
16336
        if ftype == TType.STRING:
16337
          self.email = iprot.readString();
16338
        else:
16339
          iprot.skip(ftype)
16340
      else:
16341
        iprot.skip(ftype)
16342
      iprot.readFieldEnd()
16343
    iprot.readStructEnd()
16344
 
16345
  def write(self, oprot):
16346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16348
      return
16349
    oprot.writeStructBegin('addProductNotification_args')
16350
    if self.email is not None:
16351
      oprot.writeFieldBegin('email', TType.STRING, -2)
16352
      oprot.writeString(self.email)
16353
      oprot.writeFieldEnd()
16354
    if self.itemId is not None:
16355
      oprot.writeFieldBegin('itemId', TType.I64, -1)
16356
      oprot.writeI64(self.itemId)
16357
      oprot.writeFieldEnd()
16358
    oprot.writeFieldStop()
16359
    oprot.writeStructEnd()
16360
 
16361
  def validate(self):
16362
    return
16363
 
16364
 
16365
  def __repr__(self):
16366
    L = ['%s=%r' % (key, value)
16367
      for key, value in self.__dict__.iteritems()]
16368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16369
 
16370
  def __eq__(self, other):
16371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16372
 
16373
  def __ne__(self, other):
16374
    return not (self == other)
16375
 
16376
class addProductNotification_result:
16377
  """
16378
  Attributes:
16379
   - success
16380
  """
16381
 
16382
  thrift_spec = (
16383
    (0, TType.BOOL, 'success', None, None, ), # 0
16384
  )
16385
 
16386
  def __init__(self, success=None,):
16387
    self.success = success
16388
 
16389
  def read(self, iprot):
16390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16392
      return
16393
    iprot.readStructBegin()
16394
    while True:
16395
      (fname, ftype, fid) = iprot.readFieldBegin()
16396
      if ftype == TType.STOP:
16397
        break
16398
      if fid == 0:
16399
        if ftype == TType.BOOL:
16400
          self.success = iprot.readBool();
16401
        else:
16402
          iprot.skip(ftype)
16403
      else:
16404
        iprot.skip(ftype)
16405
      iprot.readFieldEnd()
16406
    iprot.readStructEnd()
16407
 
16408
  def write(self, oprot):
16409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16411
      return
16412
    oprot.writeStructBegin('addProductNotification_result')
16413
    if self.success is not None:
16414
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16415
      oprot.writeBool(self.success)
16416
      oprot.writeFieldEnd()
16417
    oprot.writeFieldStop()
16418
    oprot.writeStructEnd()
16419
 
16420
  def validate(self):
16421
    return
16422
 
16423
 
16424
  def __repr__(self):
16425
    L = ['%s=%r' % (key, value)
16426
      for key, value in self.__dict__.iteritems()]
16427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16428
 
16429
  def __eq__(self, other):
16430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16431
 
16432
  def __ne__(self, other):
16433
    return not (self == other)
16434
 
16435
class sendProductNotifications_args:
16436
 
16437
  thrift_spec = (
16438
  )
16439
 
16440
  def read(self, iprot):
16441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16443
      return
16444
    iprot.readStructBegin()
16445
    while True:
16446
      (fname, ftype, fid) = iprot.readFieldBegin()
16447
      if ftype == TType.STOP:
16448
        break
16449
      else:
16450
        iprot.skip(ftype)
16451
      iprot.readFieldEnd()
16452
    iprot.readStructEnd()
16453
 
16454
  def write(self, oprot):
16455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16457
      return
16458
    oprot.writeStructBegin('sendProductNotifications_args')
16459
    oprot.writeFieldStop()
16460
    oprot.writeStructEnd()
16461
 
16462
  def validate(self):
16463
    return
16464
 
16465
 
16466
  def __repr__(self):
16467
    L = ['%s=%r' % (key, value)
16468
      for key, value in self.__dict__.iteritems()]
16469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16470
 
16471
  def __eq__(self, other):
16472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16473
 
16474
  def __ne__(self, other):
16475
    return not (self == other)
16476
 
16477
class sendProductNotifications_result:
16478
  """
16479
  Attributes:
16480
   - success
16481
  """
16482
 
16483
  thrift_spec = (
16484
    (0, TType.BOOL, 'success', None, None, ), # 0
16485
  )
16486
 
16487
  def __init__(self, success=None,):
16488
    self.success = success
16489
 
16490
  def read(self, iprot):
16491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16493
      return
16494
    iprot.readStructBegin()
16495
    while True:
16496
      (fname, ftype, fid) = iprot.readFieldBegin()
16497
      if ftype == TType.STOP:
16498
        break
16499
      if fid == 0:
16500
        if ftype == TType.BOOL:
16501
          self.success = iprot.readBool();
16502
        else:
16503
          iprot.skip(ftype)
16504
      else:
16505
        iprot.skip(ftype)
16506
      iprot.readFieldEnd()
16507
    iprot.readStructEnd()
16508
 
16509
  def write(self, oprot):
16510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16512
      return
16513
    oprot.writeStructBegin('sendProductNotifications_result')
16514
    if self.success is not None:
16515
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16516
      oprot.writeBool(self.success)
16517
      oprot.writeFieldEnd()
16518
    oprot.writeFieldStop()
16519
    oprot.writeStructEnd()
16520
 
16521
  def validate(self):
16522
    return
16523
 
16524
 
16525
  def __repr__(self):
16526
    L = ['%s=%r' % (key, value)
16527
      for key, value in self.__dict__.iteritems()]
16528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16529
 
16530
  def __eq__(self, other):
16531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16532
 
16533
  def __ne__(self, other):
16534
    return not (self == other)
16535
 
16536
class getAllBrandsByCategory_args:
16537
  """
16538
  Attributes:
16539
   - categoryId
16540
  """
16541
 
16542
  thrift_spec = (
16543
    None, # 0
16544
    (1, TType.I64, 'categoryId', None, None, ), # 1
16545
  )
16546
 
16547
  def __init__(self, categoryId=None,):
16548
    self.categoryId = categoryId
16549
 
16550
  def read(self, iprot):
16551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16553
      return
16554
    iprot.readStructBegin()
16555
    while True:
16556
      (fname, ftype, fid) = iprot.readFieldBegin()
16557
      if ftype == TType.STOP:
16558
        break
16559
      if fid == 1:
16560
        if ftype == TType.I64:
16561
          self.categoryId = iprot.readI64();
16562
        else:
16563
          iprot.skip(ftype)
16564
      else:
16565
        iprot.skip(ftype)
16566
      iprot.readFieldEnd()
16567
    iprot.readStructEnd()
16568
 
16569
  def write(self, oprot):
16570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16572
      return
16573
    oprot.writeStructBegin('getAllBrandsByCategory_args')
16574
    if self.categoryId is not None:
16575
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
16576
      oprot.writeI64(self.categoryId)
16577
      oprot.writeFieldEnd()
16578
    oprot.writeFieldStop()
16579
    oprot.writeStructEnd()
16580
 
16581
  def validate(self):
16582
    return
16583
 
16584
 
16585
  def __repr__(self):
16586
    L = ['%s=%r' % (key, value)
16587
      for key, value in self.__dict__.iteritems()]
16588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16589
 
16590
  def __eq__(self, other):
16591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16592
 
16593
  def __ne__(self, other):
16594
    return not (self == other)
16595
 
16596
class getAllBrandsByCategory_result:
16597
  """
16598
  Attributes:
16599
   - success
16600
  """
16601
 
16602
  thrift_spec = (
16603
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16604
  )
16605
 
16606
  def __init__(self, success=None,):
16607
    self.success = success
16608
 
16609
  def read(self, iprot):
16610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16612
      return
16613
    iprot.readStructBegin()
16614
    while True:
16615
      (fname, ftype, fid) = iprot.readFieldBegin()
16616
      if ftype == TType.STOP:
16617
        break
16618
      if fid == 0:
16619
        if ftype == TType.LIST:
16620
          self.success = []
9155 kshitij.so 16621
          (_etype300, _size297) = iprot.readListBegin()
16622
          for _i301 in xrange(_size297):
16623
            _elem302 = iprot.readString();
16624
            self.success.append(_elem302)
5944 mandeep.dh 16625
          iprot.readListEnd()
16626
        else:
16627
          iprot.skip(ftype)
16628
      else:
16629
        iprot.skip(ftype)
16630
      iprot.readFieldEnd()
16631
    iprot.readStructEnd()
16632
 
16633
  def write(self, oprot):
16634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16636
      return
16637
    oprot.writeStructBegin('getAllBrandsByCategory_result')
16638
    if self.success is not None:
16639
      oprot.writeFieldBegin('success', TType.LIST, 0)
16640
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16641
      for iter303 in self.success:
16642
        oprot.writeString(iter303)
5944 mandeep.dh 16643
      oprot.writeListEnd()
16644
      oprot.writeFieldEnd()
16645
    oprot.writeFieldStop()
16646
    oprot.writeStructEnd()
16647
 
16648
  def validate(self):
16649
    return
16650
 
16651
 
16652
  def __repr__(self):
16653
    L = ['%s=%r' % (key, value)
16654
      for key, value in self.__dict__.iteritems()]
16655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16656
 
16657
  def __eq__(self, other):
16658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16659
 
16660
  def __ne__(self, other):
16661
    return not (self == other)
16662
 
16663
class getAllBrands_args:
16664
 
16665
  thrift_spec = (
16666
  )
16667
 
16668
  def read(self, iprot):
16669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16671
      return
16672
    iprot.readStructBegin()
16673
    while True:
16674
      (fname, ftype, fid) = iprot.readFieldBegin()
16675
      if ftype == TType.STOP:
16676
        break
16677
      else:
16678
        iprot.skip(ftype)
16679
      iprot.readFieldEnd()
16680
    iprot.readStructEnd()
16681
 
16682
  def write(self, oprot):
16683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16685
      return
16686
    oprot.writeStructBegin('getAllBrands_args')
16687
    oprot.writeFieldStop()
16688
    oprot.writeStructEnd()
16689
 
16690
  def validate(self):
16691
    return
16692
 
16693
 
16694
  def __repr__(self):
16695
    L = ['%s=%r' % (key, value)
16696
      for key, value in self.__dict__.iteritems()]
16697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16698
 
16699
  def __eq__(self, other):
16700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16701
 
16702
  def __ne__(self, other):
16703
    return not (self == other)
16704
 
16705
class getAllBrands_result:
16706
  """
16707
  Attributes:
16708
   - success
16709
  """
16710
 
16711
  thrift_spec = (
16712
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16713
  )
16714
 
16715
  def __init__(self, success=None,):
16716
    self.success = success
16717
 
16718
  def read(self, iprot):
16719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16721
      return
16722
    iprot.readStructBegin()
16723
    while True:
16724
      (fname, ftype, fid) = iprot.readFieldBegin()
16725
      if ftype == TType.STOP:
16726
        break
16727
      if fid == 0:
16728
        if ftype == TType.LIST:
16729
          self.success = []
9155 kshitij.so 16730
          (_etype307, _size304) = iprot.readListBegin()
16731
          for _i308 in xrange(_size304):
16732
            _elem309 = iprot.readString();
16733
            self.success.append(_elem309)
5944 mandeep.dh 16734
          iprot.readListEnd()
16735
        else:
16736
          iprot.skip(ftype)
16737
      else:
16738
        iprot.skip(ftype)
16739
      iprot.readFieldEnd()
16740
    iprot.readStructEnd()
16741
 
16742
  def write(self, oprot):
16743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16745
      return
16746
    oprot.writeStructBegin('getAllBrands_result')
16747
    if self.success is not None:
16748
      oprot.writeFieldBegin('success', TType.LIST, 0)
16749
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 16750
      for iter310 in self.success:
16751
        oprot.writeString(iter310)
5944 mandeep.dh 16752
      oprot.writeListEnd()
16753
      oprot.writeFieldEnd()
16754
    oprot.writeFieldStop()
16755
    oprot.writeStructEnd()
16756
 
16757
  def validate(self):
16758
    return
16759
 
16760
 
16761
  def __repr__(self):
16762
    L = ['%s=%r' % (key, value)
16763
      for key, value in self.__dict__.iteritems()]
16764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16765
 
16766
  def __eq__(self, other):
16767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16768
 
16769
  def __ne__(self, other):
16770
    return not (self == other)
16771
 
16772
class getAllSources_args:
16773
 
16774
  thrift_spec = (
16775
  )
16776
 
16777
  def read(self, iprot):
16778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16780
      return
16781
    iprot.readStructBegin()
16782
    while True:
16783
      (fname, ftype, fid) = iprot.readFieldBegin()
16784
      if ftype == TType.STOP:
16785
        break
16786
      else:
16787
        iprot.skip(ftype)
16788
      iprot.readFieldEnd()
16789
    iprot.readStructEnd()
16790
 
16791
  def write(self, oprot):
16792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16794
      return
16795
    oprot.writeStructBegin('getAllSources_args')
16796
    oprot.writeFieldStop()
16797
    oprot.writeStructEnd()
16798
 
16799
  def validate(self):
16800
    return
16801
 
16802
 
16803
  def __repr__(self):
16804
    L = ['%s=%r' % (key, value)
16805
      for key, value in self.__dict__.iteritems()]
16806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16807
 
16808
  def __eq__(self, other):
16809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16810
 
16811
  def __ne__(self, other):
16812
    return not (self == other)
16813
 
16814
class getAllSources_result:
16815
  """
16816
  Attributes:
16817
   - success
16818
  """
16819
 
16820
  thrift_spec = (
16821
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
16822
  )
16823
 
16824
  def __init__(self, success=None,):
16825
    self.success = success
16826
 
16827
  def read(self, iprot):
16828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16830
      return
16831
    iprot.readStructBegin()
16832
    while True:
16833
      (fname, ftype, fid) = iprot.readFieldBegin()
16834
      if ftype == TType.STOP:
16835
        break
16836
      if fid == 0:
16837
        if ftype == TType.LIST:
16838
          self.success = []
9155 kshitij.so 16839
          (_etype314, _size311) = iprot.readListBegin()
16840
          for _i315 in xrange(_size311):
16841
            _elem316 = Source()
16842
            _elem316.read(iprot)
16843
            self.success.append(_elem316)
5944 mandeep.dh 16844
          iprot.readListEnd()
16845
        else:
16846
          iprot.skip(ftype)
16847
      else:
16848
        iprot.skip(ftype)
16849
      iprot.readFieldEnd()
16850
    iprot.readStructEnd()
16851
 
16852
  def write(self, oprot):
16853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16855
      return
16856
    oprot.writeStructBegin('getAllSources_result')
16857
    if self.success is not None:
16858
      oprot.writeFieldBegin('success', TType.LIST, 0)
16859
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16860
      for iter317 in self.success:
16861
        iter317.write(oprot)
5944 mandeep.dh 16862
      oprot.writeListEnd()
16863
      oprot.writeFieldEnd()
16864
    oprot.writeFieldStop()
16865
    oprot.writeStructEnd()
16866
 
16867
  def validate(self):
16868
    return
16869
 
16870
 
16871
  def __repr__(self):
16872
    L = ['%s=%r' % (key, value)
16873
      for key, value in self.__dict__.iteritems()]
16874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16875
 
16876
  def __eq__(self, other):
16877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16878
 
16879
  def __ne__(self, other):
16880
    return not (self == other)
16881
 
16882
class getItemPricingBySource_args:
16883
  """
16884
  Attributes:
16885
   - itemId
16886
   - sourceId
16887
  """
16888
 
16889
  thrift_spec = (
16890
    None, # 0
16891
    (1, TType.I64, 'itemId', None, None, ), # 1
16892
    (2, TType.I64, 'sourceId', None, None, ), # 2
16893
  )
16894
 
16895
  def __init__(self, itemId=None, sourceId=None,):
16896
    self.itemId = itemId
16897
    self.sourceId = sourceId
16898
 
16899
  def read(self, iprot):
16900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16902
      return
16903
    iprot.readStructBegin()
16904
    while True:
16905
      (fname, ftype, fid) = iprot.readFieldBegin()
16906
      if ftype == TType.STOP:
16907
        break
16908
      if fid == 1:
16909
        if ftype == TType.I64:
16910
          self.itemId = iprot.readI64();
16911
        else:
16912
          iprot.skip(ftype)
16913
      elif fid == 2:
16914
        if ftype == TType.I64:
16915
          self.sourceId = iprot.readI64();
16916
        else:
16917
          iprot.skip(ftype)
16918
      else:
16919
        iprot.skip(ftype)
16920
      iprot.readFieldEnd()
16921
    iprot.readStructEnd()
16922
 
16923
  def write(self, oprot):
16924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16926
      return
16927
    oprot.writeStructBegin('getItemPricingBySource_args')
16928
    if self.itemId is not None:
16929
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16930
      oprot.writeI64(self.itemId)
16931
      oprot.writeFieldEnd()
16932
    if self.sourceId is not None:
16933
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
16934
      oprot.writeI64(self.sourceId)
16935
      oprot.writeFieldEnd()
16936
    oprot.writeFieldStop()
16937
    oprot.writeStructEnd()
16938
 
16939
  def validate(self):
16940
    return
16941
 
16942
 
16943
  def __repr__(self):
16944
    L = ['%s=%r' % (key, value)
16945
      for key, value in self.__dict__.iteritems()]
16946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16947
 
16948
  def __eq__(self, other):
16949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16950
 
16951
  def __ne__(self, other):
16952
    return not (self == other)
16953
 
16954
class getItemPricingBySource_result:
16955
  """
16956
  Attributes:
16957
   - success
16958
   - cex
16959
  """
16960
 
16961
  thrift_spec = (
16962
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
16963
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16964
  )
16965
 
16966
  def __init__(self, success=None, cex=None,):
16967
    self.success = success
16968
    self.cex = cex
16969
 
16970
  def read(self, iprot):
16971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16973
      return
16974
    iprot.readStructBegin()
16975
    while True:
16976
      (fname, ftype, fid) = iprot.readFieldBegin()
16977
      if ftype == TType.STOP:
16978
        break
16979
      if fid == 0:
16980
        if ftype == TType.STRUCT:
16981
          self.success = SourceItemPricing()
16982
          self.success.read(iprot)
16983
        else:
16984
          iprot.skip(ftype)
16985
      elif fid == 1:
16986
        if ftype == TType.STRUCT:
16987
          self.cex = CatalogServiceException()
16988
          self.cex.read(iprot)
16989
        else:
16990
          iprot.skip(ftype)
16991
      else:
16992
        iprot.skip(ftype)
16993
      iprot.readFieldEnd()
16994
    iprot.readStructEnd()
16995
 
16996
  def write(self, oprot):
16997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16999
      return
17000
    oprot.writeStructBegin('getItemPricingBySource_result')
17001
    if self.success is not None:
17002
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
17003
      self.success.write(oprot)
17004
      oprot.writeFieldEnd()
17005
    if self.cex is not None:
17006
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17007
      self.cex.write(oprot)
17008
      oprot.writeFieldEnd()
17009
    oprot.writeFieldStop()
17010
    oprot.writeStructEnd()
17011
 
17012
  def validate(self):
17013
    return
17014
 
17015
 
17016
  def __repr__(self):
17017
    L = ['%s=%r' % (key, value)
17018
      for key, value in self.__dict__.iteritems()]
17019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17020
 
17021
  def __eq__(self, other):
17022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17023
 
17024
  def __ne__(self, other):
17025
    return not (self == other)
17026
 
17027
class addSourceItemPricing_args:
17028
  """
17029
  Attributes:
17030
   - sourceItemPricing
17031
  """
17032
 
17033
  thrift_spec = (
17034
    None, # 0
17035
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
17036
  )
17037
 
17038
  def __init__(self, sourceItemPricing=None,):
17039
    self.sourceItemPricing = sourceItemPricing
17040
 
17041
  def read(self, iprot):
17042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17044
      return
17045
    iprot.readStructBegin()
17046
    while True:
17047
      (fname, ftype, fid) = iprot.readFieldBegin()
17048
      if ftype == TType.STOP:
17049
        break
17050
      if fid == 1:
17051
        if ftype == TType.STRUCT:
17052
          self.sourceItemPricing = SourceItemPricing()
17053
          self.sourceItemPricing.read(iprot)
17054
        else:
17055
          iprot.skip(ftype)
17056
      else:
17057
        iprot.skip(ftype)
17058
      iprot.readFieldEnd()
17059
    iprot.readStructEnd()
17060
 
17061
  def write(self, oprot):
17062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17064
      return
17065
    oprot.writeStructBegin('addSourceItemPricing_args')
17066
    if self.sourceItemPricing is not None:
17067
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
17068
      self.sourceItemPricing.write(oprot)
17069
      oprot.writeFieldEnd()
17070
    oprot.writeFieldStop()
17071
    oprot.writeStructEnd()
17072
 
17073
  def validate(self):
17074
    return
17075
 
17076
 
17077
  def __repr__(self):
17078
    L = ['%s=%r' % (key, value)
17079
      for key, value in self.__dict__.iteritems()]
17080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17081
 
17082
  def __eq__(self, other):
17083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17084
 
17085
  def __ne__(self, other):
17086
    return not (self == other)
17087
 
17088
class addSourceItemPricing_result:
17089
  """
17090
  Attributes:
17091
   - cex
17092
  """
17093
 
17094
  thrift_spec = (
17095
    None, # 0
17096
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17097
  )
17098
 
17099
  def __init__(self, cex=None,):
17100
    self.cex = cex
17101
 
17102
  def read(self, iprot):
17103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17105
      return
17106
    iprot.readStructBegin()
17107
    while True:
17108
      (fname, ftype, fid) = iprot.readFieldBegin()
17109
      if ftype == TType.STOP:
17110
        break
17111
      if fid == 1:
17112
        if ftype == TType.STRUCT:
17113
          self.cex = CatalogServiceException()
17114
          self.cex.read(iprot)
17115
        else:
17116
          iprot.skip(ftype)
17117
      else:
17118
        iprot.skip(ftype)
17119
      iprot.readFieldEnd()
17120
    iprot.readStructEnd()
17121
 
17122
  def write(self, oprot):
17123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17125
      return
17126
    oprot.writeStructBegin('addSourceItemPricing_result')
17127
    if self.cex is not None:
17128
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17129
      self.cex.write(oprot)
17130
      oprot.writeFieldEnd()
17131
    oprot.writeFieldStop()
17132
    oprot.writeStructEnd()
17133
 
17134
  def validate(self):
17135
    return
17136
 
17137
 
17138
  def __repr__(self):
17139
    L = ['%s=%r' % (key, value)
17140
      for key, value in self.__dict__.iteritems()]
17141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17142
 
17143
  def __eq__(self, other):
17144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17145
 
17146
  def __ne__(self, other):
17147
    return not (self == other)
17148
 
17149
class getAllSourcePricing_args:
17150
  """
17151
  Attributes:
17152
   - itemId
17153
  """
17154
 
17155
  thrift_spec = (
17156
    None, # 0
17157
    (1, TType.I64, 'itemId', None, None, ), # 1
17158
  )
17159
 
17160
  def __init__(self, itemId=None,):
17161
    self.itemId = itemId
17162
 
17163
  def read(self, iprot):
17164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17166
      return
17167
    iprot.readStructBegin()
17168
    while True:
17169
      (fname, ftype, fid) = iprot.readFieldBegin()
17170
      if ftype == TType.STOP:
17171
        break
17172
      if fid == 1:
17173
        if ftype == TType.I64:
17174
          self.itemId = iprot.readI64();
17175
        else:
17176
          iprot.skip(ftype)
17177
      else:
17178
        iprot.skip(ftype)
17179
      iprot.readFieldEnd()
17180
    iprot.readStructEnd()
17181
 
17182
  def write(self, oprot):
17183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17185
      return
17186
    oprot.writeStructBegin('getAllSourcePricing_args')
17187
    if self.itemId is not None:
17188
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17189
      oprot.writeI64(self.itemId)
17190
      oprot.writeFieldEnd()
17191
    oprot.writeFieldStop()
17192
    oprot.writeStructEnd()
17193
 
17194
  def validate(self):
17195
    return
17196
 
17197
 
17198
  def __repr__(self):
17199
    L = ['%s=%r' % (key, value)
17200
      for key, value in self.__dict__.iteritems()]
17201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17202
 
17203
  def __eq__(self, other):
17204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17205
 
17206
  def __ne__(self, other):
17207
    return not (self == other)
17208
 
17209
class getAllSourcePricing_result:
17210
  """
17211
  Attributes:
17212
   - success
17213
   - cex
17214
  """
17215
 
17216
  thrift_spec = (
17217
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
17218
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17219
  )
17220
 
17221
  def __init__(self, success=None, cex=None,):
17222
    self.success = success
17223
    self.cex = cex
17224
 
17225
  def read(self, iprot):
17226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17228
      return
17229
    iprot.readStructBegin()
17230
    while True:
17231
      (fname, ftype, fid) = iprot.readFieldBegin()
17232
      if ftype == TType.STOP:
17233
        break
17234
      if fid == 0:
17235
        if ftype == TType.LIST:
17236
          self.success = []
9155 kshitij.so 17237
          (_etype321, _size318) = iprot.readListBegin()
17238
          for _i322 in xrange(_size318):
17239
            _elem323 = SourceItemPricing()
17240
            _elem323.read(iprot)
17241
            self.success.append(_elem323)
5944 mandeep.dh 17242
          iprot.readListEnd()
17243
        else:
17244
          iprot.skip(ftype)
17245
      elif fid == 1:
17246
        if ftype == TType.STRUCT:
17247
          self.cex = CatalogServiceException()
17248
          self.cex.read(iprot)
17249
        else:
17250
          iprot.skip(ftype)
17251
      else:
17252
        iprot.skip(ftype)
17253
      iprot.readFieldEnd()
17254
    iprot.readStructEnd()
17255
 
17256
  def write(self, oprot):
17257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17259
      return
17260
    oprot.writeStructBegin('getAllSourcePricing_result')
17261
    if self.success is not None:
17262
      oprot.writeFieldBegin('success', TType.LIST, 0)
17263
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17264
      for iter324 in self.success:
17265
        iter324.write(oprot)
5944 mandeep.dh 17266
      oprot.writeListEnd()
17267
      oprot.writeFieldEnd()
17268
    if self.cex is not None:
17269
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17270
      self.cex.write(oprot)
17271
      oprot.writeFieldEnd()
17272
    oprot.writeFieldStop()
17273
    oprot.writeStructEnd()
17274
 
17275
  def validate(self):
17276
    return
17277
 
17278
 
17279
  def __repr__(self):
17280
    L = ['%s=%r' % (key, value)
17281
      for key, value in self.__dict__.iteritems()]
17282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17283
 
17284
  def __eq__(self, other):
17285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17286
 
17287
  def __ne__(self, other):
17288
    return not (self == other)
17289
 
17290
class getItemForSource_args:
17291
  """
17292
  Attributes:
17293
   - item_id
17294
   - sourceId
17295
  """
17296
 
17297
  thrift_spec = (
17298
    None, # 0
17299
    (1, TType.I64, 'item_id', None, None, ), # 1
17300
    (2, TType.I64, 'sourceId', None, None, ), # 2
17301
  )
17302
 
17303
  def __init__(self, item_id=None, sourceId=None,):
17304
    self.item_id = item_id
17305
    self.sourceId = sourceId
17306
 
17307
  def read(self, iprot):
17308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17310
      return
17311
    iprot.readStructBegin()
17312
    while True:
17313
      (fname, ftype, fid) = iprot.readFieldBegin()
17314
      if ftype == TType.STOP:
17315
        break
17316
      if fid == 1:
17317
        if ftype == TType.I64:
17318
          self.item_id = iprot.readI64();
17319
        else:
17320
          iprot.skip(ftype)
17321
      elif fid == 2:
17322
        if ftype == TType.I64:
17323
          self.sourceId = iprot.readI64();
17324
        else:
17325
          iprot.skip(ftype)
17326
      else:
17327
        iprot.skip(ftype)
17328
      iprot.readFieldEnd()
17329
    iprot.readStructEnd()
17330
 
17331
  def write(self, oprot):
17332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17334
      return
17335
    oprot.writeStructBegin('getItemForSource_args')
17336
    if self.item_id is not None:
17337
      oprot.writeFieldBegin('item_id', TType.I64, 1)
17338
      oprot.writeI64(self.item_id)
17339
      oprot.writeFieldEnd()
17340
    if self.sourceId is not None:
17341
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
17342
      oprot.writeI64(self.sourceId)
17343
      oprot.writeFieldEnd()
17344
    oprot.writeFieldStop()
17345
    oprot.writeStructEnd()
17346
 
17347
  def validate(self):
17348
    return
17349
 
17350
 
17351
  def __repr__(self):
17352
    L = ['%s=%r' % (key, value)
17353
      for key, value in self.__dict__.iteritems()]
17354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17355
 
17356
  def __eq__(self, other):
17357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17358
 
17359
  def __ne__(self, other):
17360
    return not (self == other)
17361
 
17362
class getItemForSource_result:
17363
  """
17364
  Attributes:
17365
   - success
17366
   - cex
17367
  """
17368
 
17369
  thrift_spec = (
17370
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
17371
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17372
  )
17373
 
17374
  def __init__(self, success=None, cex=None,):
17375
    self.success = success
17376
    self.cex = cex
17377
 
17378
  def read(self, iprot):
17379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17381
      return
17382
    iprot.readStructBegin()
17383
    while True:
17384
      (fname, ftype, fid) = iprot.readFieldBegin()
17385
      if ftype == TType.STOP:
17386
        break
17387
      if fid == 0:
17388
        if ftype == TType.STRUCT:
17389
          self.success = Item()
17390
          self.success.read(iprot)
17391
        else:
17392
          iprot.skip(ftype)
17393
      elif fid == 1:
17394
        if ftype == TType.STRUCT:
17395
          self.cex = CatalogServiceException()
17396
          self.cex.read(iprot)
17397
        else:
17398
          iprot.skip(ftype)
17399
      else:
17400
        iprot.skip(ftype)
17401
      iprot.readFieldEnd()
17402
    iprot.readStructEnd()
17403
 
17404
  def write(self, oprot):
17405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17407
      return
17408
    oprot.writeStructBegin('getItemForSource_result')
17409
    if self.success is not None:
17410
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
17411
      self.success.write(oprot)
17412
      oprot.writeFieldEnd()
17413
    if self.cex is not None:
17414
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17415
      self.cex.write(oprot)
17416
      oprot.writeFieldEnd()
17417
    oprot.writeFieldStop()
17418
    oprot.writeStructEnd()
17419
 
17420
  def validate(self):
17421
    return
17422
 
17423
 
17424
  def __repr__(self):
17425
    L = ['%s=%r' % (key, value)
17426
      for key, value in self.__dict__.iteritems()]
17427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17428
 
17429
  def __eq__(self, other):
17430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17431
 
17432
  def __ne__(self, other):
17433
    return not (self == other)
17434
 
17435
class searchItemsInRange_args:
17436
  """
17437
  Attributes:
17438
   - searchTerms
17439
   - offset
17440
   - limit
17441
  """
17442
 
17443
  thrift_spec = (
17444
    None, # 0
17445
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
17446
    (2, TType.I64, 'offset', None, None, ), # 2
17447
    (3, TType.I64, 'limit', None, None, ), # 3
17448
  )
17449
 
17450
  def __init__(self, searchTerms=None, offset=None, limit=None,):
17451
    self.searchTerms = searchTerms
17452
    self.offset = offset
17453
    self.limit = limit
17454
 
17455
  def read(self, iprot):
17456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17458
      return
17459
    iprot.readStructBegin()
17460
    while True:
17461
      (fname, ftype, fid) = iprot.readFieldBegin()
17462
      if ftype == TType.STOP:
17463
        break
17464
      if fid == 1:
17465
        if ftype == TType.LIST:
17466
          self.searchTerms = []
9155 kshitij.so 17467
          (_etype328, _size325) = iprot.readListBegin()
17468
          for _i329 in xrange(_size325):
17469
            _elem330 = iprot.readString();
17470
            self.searchTerms.append(_elem330)
5944 mandeep.dh 17471
          iprot.readListEnd()
17472
        else:
17473
          iprot.skip(ftype)
17474
      elif fid == 2:
17475
        if ftype == TType.I64:
17476
          self.offset = iprot.readI64();
17477
        else:
17478
          iprot.skip(ftype)
17479
      elif fid == 3:
17480
        if ftype == TType.I64:
17481
          self.limit = iprot.readI64();
17482
        else:
17483
          iprot.skip(ftype)
17484
      else:
17485
        iprot.skip(ftype)
17486
      iprot.readFieldEnd()
17487
    iprot.readStructEnd()
17488
 
17489
  def write(self, oprot):
17490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17492
      return
17493
    oprot.writeStructBegin('searchItemsInRange_args')
17494
    if self.searchTerms is not None:
17495
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
17496
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 17497
      for iter331 in self.searchTerms:
17498
        oprot.writeString(iter331)
5944 mandeep.dh 17499
      oprot.writeListEnd()
17500
      oprot.writeFieldEnd()
17501
    if self.offset is not None:
17502
      oprot.writeFieldBegin('offset', TType.I64, 2)
17503
      oprot.writeI64(self.offset)
17504
      oprot.writeFieldEnd()
17505
    if self.limit is not None:
17506
      oprot.writeFieldBegin('limit', TType.I64, 3)
17507
      oprot.writeI64(self.limit)
17508
      oprot.writeFieldEnd()
17509
    oprot.writeFieldStop()
17510
    oprot.writeStructEnd()
17511
 
17512
  def validate(self):
17513
    return
17514
 
17515
 
17516
  def __repr__(self):
17517
    L = ['%s=%r' % (key, value)
17518
      for key, value in self.__dict__.iteritems()]
17519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17520
 
17521
  def __eq__(self, other):
17522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17523
 
17524
  def __ne__(self, other):
17525
    return not (self == other)
17526
 
17527
class searchItemsInRange_result:
17528
  """
17529
  Attributes:
17530
   - success
17531
  """
17532
 
17533
  thrift_spec = (
17534
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17535
  )
17536
 
17537
  def __init__(self, success=None,):
17538
    self.success = success
17539
 
17540
  def read(self, iprot):
17541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17543
      return
17544
    iprot.readStructBegin()
17545
    while True:
17546
      (fname, ftype, fid) = iprot.readFieldBegin()
17547
      if ftype == TType.STOP:
17548
        break
17549
      if fid == 0:
17550
        if ftype == TType.LIST:
17551
          self.success = []
9155 kshitij.so 17552
          (_etype335, _size332) = iprot.readListBegin()
17553
          for _i336 in xrange(_size332):
17554
            _elem337 = Item()
17555
            _elem337.read(iprot)
17556
            self.success.append(_elem337)
5944 mandeep.dh 17557
          iprot.readListEnd()
17558
        else:
17559
          iprot.skip(ftype)
17560
      else:
17561
        iprot.skip(ftype)
17562
      iprot.readFieldEnd()
17563
    iprot.readStructEnd()
17564
 
17565
  def write(self, oprot):
17566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17568
      return
17569
    oprot.writeStructBegin('searchItemsInRange_result')
17570
    if self.success is not None:
17571
      oprot.writeFieldBegin('success', TType.LIST, 0)
17572
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17573
      for iter338 in self.success:
17574
        iter338.write(oprot)
5944 mandeep.dh 17575
      oprot.writeListEnd()
17576
      oprot.writeFieldEnd()
17577
    oprot.writeFieldStop()
17578
    oprot.writeStructEnd()
17579
 
17580
  def validate(self):
17581
    return
17582
 
17583
 
17584
  def __repr__(self):
17585
    L = ['%s=%r' % (key, value)
17586
      for key, value in self.__dict__.iteritems()]
17587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17588
 
17589
  def __eq__(self, other):
17590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17591
 
17592
  def __ne__(self, other):
17593
    return not (self == other)
17594
 
17595
class getSearchResultCount_args:
17596
  """
17597
  Attributes:
17598
   - searchTerms
17599
  """
17600
 
17601
  thrift_spec = (
17602
    None, # 0
17603
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
17604
  )
17605
 
17606
  def __init__(self, searchTerms=None,):
17607
    self.searchTerms = searchTerms
17608
 
17609
  def read(self, iprot):
17610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17612
      return
17613
    iprot.readStructBegin()
17614
    while True:
17615
      (fname, ftype, fid) = iprot.readFieldBegin()
17616
      if ftype == TType.STOP:
17617
        break
17618
      if fid == 1:
17619
        if ftype == TType.LIST:
17620
          self.searchTerms = []
9155 kshitij.so 17621
          (_etype342, _size339) = iprot.readListBegin()
17622
          for _i343 in xrange(_size339):
17623
            _elem344 = iprot.readString();
17624
            self.searchTerms.append(_elem344)
5944 mandeep.dh 17625
          iprot.readListEnd()
17626
        else:
17627
          iprot.skip(ftype)
17628
      else:
17629
        iprot.skip(ftype)
17630
      iprot.readFieldEnd()
17631
    iprot.readStructEnd()
17632
 
17633
  def write(self, oprot):
17634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17636
      return
17637
    oprot.writeStructBegin('getSearchResultCount_args')
17638
    if self.searchTerms is not None:
17639
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
17640
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 17641
      for iter345 in self.searchTerms:
17642
        oprot.writeString(iter345)
5944 mandeep.dh 17643
      oprot.writeListEnd()
17644
      oprot.writeFieldEnd()
17645
    oprot.writeFieldStop()
17646
    oprot.writeStructEnd()
17647
 
17648
  def validate(self):
17649
    return
17650
 
17651
 
17652
  def __repr__(self):
17653
    L = ['%s=%r' % (key, value)
17654
      for key, value in self.__dict__.iteritems()]
17655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17656
 
17657
  def __eq__(self, other):
17658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17659
 
17660
  def __ne__(self, other):
17661
    return not (self == other)
17662
 
17663
class getSearchResultCount_result:
17664
  """
17665
  Attributes:
17666
   - success
17667
  """
17668
 
17669
  thrift_spec = (
17670
    (0, TType.I32, 'success', None, None, ), # 0
17671
  )
17672
 
17673
  def __init__(self, success=None,):
17674
    self.success = success
17675
 
17676
  def read(self, iprot):
17677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17679
      return
17680
    iprot.readStructBegin()
17681
    while True:
17682
      (fname, ftype, fid) = iprot.readFieldBegin()
17683
      if ftype == TType.STOP:
17684
        break
17685
      if fid == 0:
17686
        if ftype == TType.I32:
17687
          self.success = iprot.readI32();
17688
        else:
17689
          iprot.skip(ftype)
17690
      else:
17691
        iprot.skip(ftype)
17692
      iprot.readFieldEnd()
17693
    iprot.readStructEnd()
17694
 
17695
  def write(self, oprot):
17696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17698
      return
17699
    oprot.writeStructBegin('getSearchResultCount_result')
17700
    if self.success is not None:
17701
      oprot.writeFieldBegin('success', TType.I32, 0)
17702
      oprot.writeI32(self.success)
17703
      oprot.writeFieldEnd()
17704
    oprot.writeFieldStop()
17705
    oprot.writeStructEnd()
17706
 
17707
  def validate(self):
17708
    return
17709
 
17710
 
17711
  def __repr__(self):
17712
    L = ['%s=%r' % (key, value)
17713
      for key, value in self.__dict__.iteritems()]
17714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17715
 
17716
  def __eq__(self, other):
17717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17718
 
17719
  def __ne__(self, other):
17720
    return not (self == other)
17721
 
17722
class getProductNotifications_args:
17723
  """
17724
  Attributes:
17725
   - startDateTime
17726
  """
17727
 
17728
  thrift_spec = (
17729
    None, # 0
17730
    (1, TType.I64, 'startDateTime', None, None, ), # 1
17731
  )
17732
 
17733
  def __init__(self, startDateTime=None,):
17734
    self.startDateTime = startDateTime
17735
 
17736
  def read(self, iprot):
17737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17739
      return
17740
    iprot.readStructBegin()
17741
    while True:
17742
      (fname, ftype, fid) = iprot.readFieldBegin()
17743
      if ftype == TType.STOP:
17744
        break
17745
      if fid == 1:
17746
        if ftype == TType.I64:
17747
          self.startDateTime = iprot.readI64();
17748
        else:
17749
          iprot.skip(ftype)
17750
      else:
17751
        iprot.skip(ftype)
17752
      iprot.readFieldEnd()
17753
    iprot.readStructEnd()
17754
 
17755
  def write(self, oprot):
17756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17758
      return
17759
    oprot.writeStructBegin('getProductNotifications_args')
17760
    if self.startDateTime is not None:
17761
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17762
      oprot.writeI64(self.startDateTime)
17763
      oprot.writeFieldEnd()
17764
    oprot.writeFieldStop()
17765
    oprot.writeStructEnd()
17766
 
17767
  def validate(self):
17768
    return
17769
 
17770
 
17771
  def __repr__(self):
17772
    L = ['%s=%r' % (key, value)
17773
      for key, value in self.__dict__.iteritems()]
17774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17775
 
17776
  def __eq__(self, other):
17777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17778
 
17779
  def __ne__(self, other):
17780
    return not (self == other)
17781
 
17782
class getProductNotifications_result:
17783
  """
17784
  Attributes:
17785
   - success
17786
  """
17787
 
17788
  thrift_spec = (
17789
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
17790
  )
17791
 
17792
  def __init__(self, success=None,):
17793
    self.success = success
17794
 
17795
  def read(self, iprot):
17796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17798
      return
17799
    iprot.readStructBegin()
17800
    while True:
17801
      (fname, ftype, fid) = iprot.readFieldBegin()
17802
      if ftype == TType.STOP:
17803
        break
17804
      if fid == 0:
17805
        if ftype == TType.LIST:
17806
          self.success = []
9155 kshitij.so 17807
          (_etype349, _size346) = iprot.readListBegin()
17808
          for _i350 in xrange(_size346):
17809
            _elem351 = ProductNotificationRequest()
17810
            _elem351.read(iprot)
17811
            self.success.append(_elem351)
5944 mandeep.dh 17812
          iprot.readListEnd()
17813
        else:
17814
          iprot.skip(ftype)
17815
      else:
17816
        iprot.skip(ftype)
17817
      iprot.readFieldEnd()
17818
    iprot.readStructEnd()
17819
 
17820
  def write(self, oprot):
17821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17823
      return
17824
    oprot.writeStructBegin('getProductNotifications_result')
17825
    if self.success is not None:
17826
      oprot.writeFieldBegin('success', TType.LIST, 0)
17827
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17828
      for iter352 in self.success:
17829
        iter352.write(oprot)
5944 mandeep.dh 17830
      oprot.writeListEnd()
17831
      oprot.writeFieldEnd()
17832
    oprot.writeFieldStop()
17833
    oprot.writeStructEnd()
17834
 
17835
  def validate(self):
17836
    return
17837
 
17838
 
17839
  def __repr__(self):
17840
    L = ['%s=%r' % (key, value)
17841
      for key, value in self.__dict__.iteritems()]
17842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17843
 
17844
  def __eq__(self, other):
17845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17846
 
17847
  def __ne__(self, other):
17848
    return not (self == other)
17849
 
17850
class getProductNotificationRequestCount_args:
17851
  """
17852
  Attributes:
17853
   - startDateTime
7897 amar.kumar 17854
   - categoryId
5944 mandeep.dh 17855
  """
17856
 
17857
  thrift_spec = (
17858
    None, # 0
17859
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 17860
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 17861
  )
17862
 
7897 amar.kumar 17863
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 17864
    self.startDateTime = startDateTime
7897 amar.kumar 17865
    self.categoryId = categoryId
5944 mandeep.dh 17866
 
17867
  def read(self, iprot):
17868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17870
      return
17871
    iprot.readStructBegin()
17872
    while True:
17873
      (fname, ftype, fid) = iprot.readFieldBegin()
17874
      if ftype == TType.STOP:
17875
        break
17876
      if fid == 1:
17877
        if ftype == TType.I64:
17878
          self.startDateTime = iprot.readI64();
17879
        else:
17880
          iprot.skip(ftype)
7897 amar.kumar 17881
      elif fid == 2:
17882
        if ftype == TType.I64:
17883
          self.categoryId = iprot.readI64();
17884
        else:
17885
          iprot.skip(ftype)
5944 mandeep.dh 17886
      else:
17887
        iprot.skip(ftype)
17888
      iprot.readFieldEnd()
17889
    iprot.readStructEnd()
17890
 
17891
  def write(self, oprot):
17892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17894
      return
17895
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
17896
    if self.startDateTime is not None:
17897
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
17898
      oprot.writeI64(self.startDateTime)
17899
      oprot.writeFieldEnd()
7897 amar.kumar 17900
    if self.categoryId is not None:
17901
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
17902
      oprot.writeI64(self.categoryId)
17903
      oprot.writeFieldEnd()
5944 mandeep.dh 17904
    oprot.writeFieldStop()
17905
    oprot.writeStructEnd()
17906
 
17907
  def validate(self):
17908
    return
17909
 
17910
 
17911
  def __repr__(self):
17912
    L = ['%s=%r' % (key, value)
17913
      for key, value in self.__dict__.iteritems()]
17914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17915
 
17916
  def __eq__(self, other):
17917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17918
 
17919
  def __ne__(self, other):
17920
    return not (self == other)
17921
 
17922
class getProductNotificationRequestCount_result:
17923
  """
17924
  Attributes:
17925
   - success
17926
  """
17927
 
17928
  thrift_spec = (
17929
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
17930
  )
17931
 
17932
  def __init__(self, success=None,):
17933
    self.success = success
17934
 
17935
  def read(self, iprot):
17936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17938
      return
17939
    iprot.readStructBegin()
17940
    while True:
17941
      (fname, ftype, fid) = iprot.readFieldBegin()
17942
      if ftype == TType.STOP:
17943
        break
17944
      if fid == 0:
17945
        if ftype == TType.LIST:
17946
          self.success = []
9155 kshitij.so 17947
          (_etype356, _size353) = iprot.readListBegin()
17948
          for _i357 in xrange(_size353):
17949
            _elem358 = ProductNotificationRequestCount()
17950
            _elem358.read(iprot)
17951
            self.success.append(_elem358)
5944 mandeep.dh 17952
          iprot.readListEnd()
17953
        else:
17954
          iprot.skip(ftype)
17955
      else:
17956
        iprot.skip(ftype)
17957
      iprot.readFieldEnd()
17958
    iprot.readStructEnd()
17959
 
17960
  def write(self, oprot):
17961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17963
      return
17964
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
17965
    if self.success is not None:
17966
      oprot.writeFieldBegin('success', TType.LIST, 0)
17967
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17968
      for iter359 in self.success:
17969
        iter359.write(oprot)
5944 mandeep.dh 17970
      oprot.writeListEnd()
17971
      oprot.writeFieldEnd()
17972
    oprot.writeFieldStop()
17973
    oprot.writeStructEnd()
17974
 
17975
  def validate(self):
17976
    return
17977
 
17978
 
17979
  def __repr__(self):
17980
    L = ['%s=%r' % (key, value)
17981
      for key, value in self.__dict__.iteritems()]
17982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17983
 
17984
  def __eq__(self, other):
17985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17986
 
17987
  def __ne__(self, other):
17988
    return not (self == other)
17989
 
17990
class addAuthorizationLog_args:
17991
  """
17992
  Attributes:
17993
   - itemId
17994
   - username
17995
   - reason
17996
  """
17997
 
17998
  thrift_spec = (
17999
    None, # 0
18000
    (1, TType.I64, 'itemId', None, None, ), # 1
18001
    (2, TType.STRING, 'username', None, None, ), # 2
18002
    (3, TType.STRING, 'reason', None, None, ), # 3
18003
  )
18004
 
18005
  def __init__(self, itemId=None, username=None, reason=None,):
18006
    self.itemId = itemId
18007
    self.username = username
18008
    self.reason = reason
18009
 
18010
  def read(self, iprot):
18011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18013
      return
18014
    iprot.readStructBegin()
18015
    while True:
18016
      (fname, ftype, fid) = iprot.readFieldBegin()
18017
      if ftype == TType.STOP:
18018
        break
18019
      if fid == 1:
18020
        if ftype == TType.I64:
18021
          self.itemId = iprot.readI64();
18022
        else:
18023
          iprot.skip(ftype)
18024
      elif fid == 2:
18025
        if ftype == TType.STRING:
18026
          self.username = iprot.readString();
18027
        else:
18028
          iprot.skip(ftype)
18029
      elif fid == 3:
18030
        if ftype == TType.STRING:
18031
          self.reason = iprot.readString();
18032
        else:
18033
          iprot.skip(ftype)
18034
      else:
18035
        iprot.skip(ftype)
18036
      iprot.readFieldEnd()
18037
    iprot.readStructEnd()
18038
 
18039
  def write(self, oprot):
18040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18042
      return
18043
    oprot.writeStructBegin('addAuthorizationLog_args')
18044
    if self.itemId is not None:
18045
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18046
      oprot.writeI64(self.itemId)
18047
      oprot.writeFieldEnd()
18048
    if self.username is not None:
18049
      oprot.writeFieldBegin('username', TType.STRING, 2)
18050
      oprot.writeString(self.username)
18051
      oprot.writeFieldEnd()
18052
    if self.reason is not None:
18053
      oprot.writeFieldBegin('reason', TType.STRING, 3)
18054
      oprot.writeString(self.reason)
18055
      oprot.writeFieldEnd()
18056
    oprot.writeFieldStop()
18057
    oprot.writeStructEnd()
18058
 
18059
  def validate(self):
18060
    return
18061
 
18062
 
18063
  def __repr__(self):
18064
    L = ['%s=%r' % (key, value)
18065
      for key, value in self.__dict__.iteritems()]
18066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18067
 
18068
  def __eq__(self, other):
18069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18070
 
18071
  def __ne__(self, other):
18072
    return not (self == other)
18073
 
18074
class addAuthorizationLog_result:
18075
  """
18076
  Attributes:
18077
   - success
18078
   - cex
18079
  """
18080
 
18081
  thrift_spec = (
18082
    (0, TType.BOOL, 'success', None, None, ), # 0
18083
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18084
  )
18085
 
18086
  def __init__(self, success=None, cex=None,):
18087
    self.success = success
18088
    self.cex = cex
18089
 
18090
  def read(self, iprot):
18091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18093
      return
18094
    iprot.readStructBegin()
18095
    while True:
18096
      (fname, ftype, fid) = iprot.readFieldBegin()
18097
      if ftype == TType.STOP:
18098
        break
18099
      if fid == 0:
18100
        if ftype == TType.BOOL:
18101
          self.success = iprot.readBool();
18102
        else:
18103
          iprot.skip(ftype)
18104
      elif fid == 1:
18105
        if ftype == TType.STRUCT:
18106
          self.cex = CatalogServiceException()
18107
          self.cex.read(iprot)
18108
        else:
18109
          iprot.skip(ftype)
18110
      else:
18111
        iprot.skip(ftype)
18112
      iprot.readFieldEnd()
18113
    iprot.readStructEnd()
18114
 
18115
  def write(self, oprot):
18116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18118
      return
18119
    oprot.writeStructBegin('addAuthorizationLog_result')
18120
    if self.success is not None:
18121
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18122
      oprot.writeBool(self.success)
18123
      oprot.writeFieldEnd()
18124
    if self.cex is not None:
18125
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18126
      self.cex.write(oprot)
18127
      oprot.writeFieldEnd()
18128
    oprot.writeFieldStop()
18129
    oprot.writeStructEnd()
18130
 
18131
  def validate(self):
18132
    return
18133
 
18134
 
18135
  def __repr__(self):
18136
    L = ['%s=%r' % (key, value)
18137
      for key, value in self.__dict__.iteritems()]
18138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18139
 
18140
  def __eq__(self, other):
18141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18142
 
18143
  def __ne__(self, other):
18144
    return not (self == other)
18145
 
18146
class addupdateVoucherForItem_args:
18147
  """
18148
  Attributes:
18149
   - catalog_item_id
18150
   - voucherType
18151
   - voucherAmount
18152
  """
18153
 
18154
  thrift_spec = (
18155
    None, # 0
18156
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18157
    (2, TType.I64, 'voucherType', None, None, ), # 2
18158
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
18159
  )
18160
 
18161
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
18162
    self.catalog_item_id = catalog_item_id
18163
    self.voucherType = voucherType
18164
    self.voucherAmount = voucherAmount
18165
 
18166
  def read(self, iprot):
18167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18169
      return
18170
    iprot.readStructBegin()
18171
    while True:
18172
      (fname, ftype, fid) = iprot.readFieldBegin()
18173
      if ftype == TType.STOP:
18174
        break
18175
      if fid == 1:
18176
        if ftype == TType.I64:
18177
          self.catalog_item_id = iprot.readI64();
18178
        else:
18179
          iprot.skip(ftype)
18180
      elif fid == 2:
18181
        if ftype == TType.I64:
18182
          self.voucherType = iprot.readI64();
18183
        else:
18184
          iprot.skip(ftype)
18185
      elif fid == 3:
18186
        if ftype == TType.I64:
18187
          self.voucherAmount = iprot.readI64();
18188
        else:
18189
          iprot.skip(ftype)
18190
      else:
18191
        iprot.skip(ftype)
18192
      iprot.readFieldEnd()
18193
    iprot.readStructEnd()
18194
 
18195
  def write(self, oprot):
18196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18198
      return
18199
    oprot.writeStructBegin('addupdateVoucherForItem_args')
18200
    if self.catalog_item_id is not None:
18201
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18202
      oprot.writeI64(self.catalog_item_id)
18203
      oprot.writeFieldEnd()
18204
    if self.voucherType is not None:
18205
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
18206
      oprot.writeI64(self.voucherType)
18207
      oprot.writeFieldEnd()
18208
    if self.voucherAmount is not None:
18209
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
18210
      oprot.writeI64(self.voucherAmount)
18211
      oprot.writeFieldEnd()
18212
    oprot.writeFieldStop()
18213
    oprot.writeStructEnd()
18214
 
18215
  def validate(self):
18216
    return
18217
 
18218
 
18219
  def __repr__(self):
18220
    L = ['%s=%r' % (key, value)
18221
      for key, value in self.__dict__.iteritems()]
18222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18223
 
18224
  def __eq__(self, other):
18225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18226
 
18227
  def __ne__(self, other):
18228
    return not (self == other)
18229
 
18230
class addupdateVoucherForItem_result:
18231
  """
18232
  Attributes:
18233
   - success
18234
   - cex
18235
  """
18236
 
18237
  thrift_spec = (
18238
    (0, TType.BOOL, 'success', None, None, ), # 0
18239
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18240
  )
18241
 
18242
  def __init__(self, success=None, cex=None,):
18243
    self.success = success
18244
    self.cex = cex
18245
 
18246
  def read(self, iprot):
18247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18249
      return
18250
    iprot.readStructBegin()
18251
    while True:
18252
      (fname, ftype, fid) = iprot.readFieldBegin()
18253
      if ftype == TType.STOP:
18254
        break
18255
      if fid == 0:
18256
        if ftype == TType.BOOL:
18257
          self.success = iprot.readBool();
18258
        else:
18259
          iprot.skip(ftype)
18260
      elif fid == 1:
18261
        if ftype == TType.STRUCT:
18262
          self.cex = CatalogServiceException()
18263
          self.cex.read(iprot)
18264
        else:
18265
          iprot.skip(ftype)
18266
      else:
18267
        iprot.skip(ftype)
18268
      iprot.readFieldEnd()
18269
    iprot.readStructEnd()
18270
 
18271
  def write(self, oprot):
18272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18274
      return
18275
    oprot.writeStructBegin('addupdateVoucherForItem_result')
18276
    if self.success is not None:
18277
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18278
      oprot.writeBool(self.success)
18279
      oprot.writeFieldEnd()
18280
    if self.cex is not None:
18281
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18282
      self.cex.write(oprot)
18283
      oprot.writeFieldEnd()
18284
    oprot.writeFieldStop()
18285
    oprot.writeStructEnd()
18286
 
18287
  def validate(self):
18288
    return
18289
 
18290
 
18291
  def __repr__(self):
18292
    L = ['%s=%r' % (key, value)
18293
      for key, value in self.__dict__.iteritems()]
18294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18295
 
18296
  def __eq__(self, other):
18297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18298
 
18299
  def __ne__(self, other):
18300
    return not (self == other)
18301
 
18302
class deleteVoucherForItem_args:
18303
  """
18304
  Attributes:
18305
   - catalog_item_id
18306
   - voucherType
18307
  """
18308
 
18309
  thrift_spec = (
18310
    None, # 0
18311
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18312
    (2, TType.I64, 'voucherType', None, None, ), # 2
18313
  )
18314
 
18315
  def __init__(self, catalog_item_id=None, voucherType=None,):
18316
    self.catalog_item_id = catalog_item_id
18317
    self.voucherType = voucherType
18318
 
18319
  def read(self, iprot):
18320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18322
      return
18323
    iprot.readStructBegin()
18324
    while True:
18325
      (fname, ftype, fid) = iprot.readFieldBegin()
18326
      if ftype == TType.STOP:
18327
        break
18328
      if fid == 1:
18329
        if ftype == TType.I64:
18330
          self.catalog_item_id = iprot.readI64();
18331
        else:
18332
          iprot.skip(ftype)
18333
      elif fid == 2:
18334
        if ftype == TType.I64:
18335
          self.voucherType = iprot.readI64();
18336
        else:
18337
          iprot.skip(ftype)
18338
      else:
18339
        iprot.skip(ftype)
18340
      iprot.readFieldEnd()
18341
    iprot.readStructEnd()
18342
 
18343
  def write(self, oprot):
18344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18346
      return
18347
    oprot.writeStructBegin('deleteVoucherForItem_args')
18348
    if self.catalog_item_id is not None:
18349
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18350
      oprot.writeI64(self.catalog_item_id)
18351
      oprot.writeFieldEnd()
18352
    if self.voucherType is not None:
18353
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
18354
      oprot.writeI64(self.voucherType)
18355
      oprot.writeFieldEnd()
18356
    oprot.writeFieldStop()
18357
    oprot.writeStructEnd()
18358
 
18359
  def validate(self):
18360
    return
18361
 
18362
 
18363
  def __repr__(self):
18364
    L = ['%s=%r' % (key, value)
18365
      for key, value in self.__dict__.iteritems()]
18366
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18367
 
18368
  def __eq__(self, other):
18369
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18370
 
18371
  def __ne__(self, other):
18372
    return not (self == other)
18373
 
18374
class deleteVoucherForItem_result:
18375
  """
18376
  Attributes:
18377
   - success
18378
   - cex
18379
  """
18380
 
18381
  thrift_spec = (
18382
    (0, TType.BOOL, 'success', None, None, ), # 0
18383
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18384
  )
18385
 
18386
  def __init__(self, success=None, cex=None,):
18387
    self.success = success
18388
    self.cex = cex
18389
 
18390
  def read(self, iprot):
18391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18393
      return
18394
    iprot.readStructBegin()
18395
    while True:
18396
      (fname, ftype, fid) = iprot.readFieldBegin()
18397
      if ftype == TType.STOP:
18398
        break
18399
      if fid == 0:
18400
        if ftype == TType.BOOL:
18401
          self.success = iprot.readBool();
18402
        else:
18403
          iprot.skip(ftype)
18404
      elif fid == 1:
18405
        if ftype == TType.STRUCT:
18406
          self.cex = CatalogServiceException()
18407
          self.cex.read(iprot)
18408
        else:
18409
          iprot.skip(ftype)
18410
      else:
18411
        iprot.skip(ftype)
18412
      iprot.readFieldEnd()
18413
    iprot.readStructEnd()
18414
 
18415
  def write(self, oprot):
18416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18418
      return
18419
    oprot.writeStructBegin('deleteVoucherForItem_result')
18420
    if self.success is not None:
18421
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18422
      oprot.writeBool(self.success)
18423
      oprot.writeFieldEnd()
18424
    if self.cex is not None:
18425
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18426
      self.cex.write(oprot)
18427
      oprot.writeFieldEnd()
18428
    oprot.writeFieldStop()
18429
    oprot.writeStructEnd()
18430
 
18431
  def validate(self):
18432
    return
18433
 
18434
 
18435
  def __repr__(self):
18436
    L = ['%s=%r' % (key, value)
18437
      for key, value in self.__dict__.iteritems()]
18438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18439
 
18440
  def __eq__(self, other):
18441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18442
 
18443
  def __ne__(self, other):
18444
    return not (self == other)
18445
 
18446
class getVoucherAmount_args:
18447
  """
18448
  Attributes:
18449
   - itemId
18450
   - voucherType
18451
  """
18452
 
18453
  thrift_spec = (
18454
    None, # 0
18455
    (1, TType.I64, 'itemId', None, None, ), # 1
18456
    (2, TType.I64, 'voucherType', None, None, ), # 2
18457
  )
18458
 
18459
  def __init__(self, itemId=None, voucherType=None,):
18460
    self.itemId = itemId
18461
    self.voucherType = voucherType
18462
 
18463
  def read(self, iprot):
18464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18466
      return
18467
    iprot.readStructBegin()
18468
    while True:
18469
      (fname, ftype, fid) = iprot.readFieldBegin()
18470
      if ftype == TType.STOP:
18471
        break
18472
      if fid == 1:
18473
        if ftype == TType.I64:
18474
          self.itemId = iprot.readI64();
18475
        else:
18476
          iprot.skip(ftype)
18477
      elif fid == 2:
18478
        if ftype == TType.I64:
18479
          self.voucherType = iprot.readI64();
18480
        else:
18481
          iprot.skip(ftype)
18482
      else:
18483
        iprot.skip(ftype)
18484
      iprot.readFieldEnd()
18485
    iprot.readStructEnd()
18486
 
18487
  def write(self, oprot):
18488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18490
      return
18491
    oprot.writeStructBegin('getVoucherAmount_args')
18492
    if self.itemId is not None:
18493
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18494
      oprot.writeI64(self.itemId)
18495
      oprot.writeFieldEnd()
18496
    if self.voucherType is not None:
18497
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
18498
      oprot.writeI64(self.voucherType)
18499
      oprot.writeFieldEnd()
18500
    oprot.writeFieldStop()
18501
    oprot.writeStructEnd()
18502
 
18503
  def validate(self):
18504
    return
18505
 
18506
 
18507
  def __repr__(self):
18508
    L = ['%s=%r' % (key, value)
18509
      for key, value in self.__dict__.iteritems()]
18510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18511
 
18512
  def __eq__(self, other):
18513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18514
 
18515
  def __ne__(self, other):
18516
    return not (self == other)
18517
 
18518
class getVoucherAmount_result:
18519
  """
18520
  Attributes:
18521
   - success
18522
  """
18523
 
18524
  thrift_spec = (
18525
    (0, TType.I64, 'success', None, None, ), # 0
18526
  )
18527
 
18528
  def __init__(self, success=None,):
18529
    self.success = success
18530
 
18531
  def read(self, iprot):
18532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18534
      return
18535
    iprot.readStructBegin()
18536
    while True:
18537
      (fname, ftype, fid) = iprot.readFieldBegin()
18538
      if ftype == TType.STOP:
18539
        break
18540
      if fid == 0:
18541
        if ftype == TType.I64:
18542
          self.success = iprot.readI64();
18543
        else:
18544
          iprot.skip(ftype)
18545
      else:
18546
        iprot.skip(ftype)
18547
      iprot.readFieldEnd()
18548
    iprot.readStructEnd()
18549
 
18550
  def write(self, oprot):
18551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18553
      return
18554
    oprot.writeStructBegin('getVoucherAmount_result')
18555
    if self.success is not None:
18556
      oprot.writeFieldBegin('success', TType.I64, 0)
18557
      oprot.writeI64(self.success)
18558
      oprot.writeFieldEnd()
18559
    oprot.writeFieldStop()
18560
    oprot.writeStructEnd()
18561
 
18562
  def validate(self):
18563
    return
18564
 
18565
 
18566
  def __repr__(self):
18567
    L = ['%s=%r' % (key, value)
18568
      for key, value in self.__dict__.iteritems()]
18569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18570
 
18571
  def __eq__(self, other):
18572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18573
 
18574
  def __ne__(self, other):
18575
    return not (self == other)
18576
 
18577
class getAllItemVouchers_args:
18578
  """
18579
  Attributes:
18580
   - itemId
18581
  """
18582
 
18583
  thrift_spec = (
18584
    None, # 0
18585
    (1, TType.I64, 'itemId', None, None, ), # 1
18586
  )
18587
 
18588
  def __init__(self, itemId=None,):
18589
    self.itemId = itemId
18590
 
18591
  def read(self, iprot):
18592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18594
      return
18595
    iprot.readStructBegin()
18596
    while True:
18597
      (fname, ftype, fid) = iprot.readFieldBegin()
18598
      if ftype == TType.STOP:
18599
        break
18600
      if fid == 1:
18601
        if ftype == TType.I64:
18602
          self.itemId = iprot.readI64();
18603
        else:
18604
          iprot.skip(ftype)
18605
      else:
18606
        iprot.skip(ftype)
18607
      iprot.readFieldEnd()
18608
    iprot.readStructEnd()
18609
 
18610
  def write(self, oprot):
18611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18613
      return
18614
    oprot.writeStructBegin('getAllItemVouchers_args')
18615
    if self.itemId is not None:
18616
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18617
      oprot.writeI64(self.itemId)
18618
      oprot.writeFieldEnd()
18619
    oprot.writeFieldStop()
18620
    oprot.writeStructEnd()
18621
 
18622
  def validate(self):
18623
    return
18624
 
18625
 
18626
  def __repr__(self):
18627
    L = ['%s=%r' % (key, value)
18628
      for key, value in self.__dict__.iteritems()]
18629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18630
 
18631
  def __eq__(self, other):
18632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18633
 
18634
  def __ne__(self, other):
18635
    return not (self == other)
18636
 
18637
class getAllItemVouchers_result:
18638
  """
18639
  Attributes:
18640
   - success
18641
  """
18642
 
18643
  thrift_spec = (
18644
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
18645
  )
18646
 
18647
  def __init__(self, success=None,):
18648
    self.success = success
18649
 
18650
  def read(self, iprot):
18651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18653
      return
18654
    iprot.readStructBegin()
18655
    while True:
18656
      (fname, ftype, fid) = iprot.readFieldBegin()
18657
      if ftype == TType.STOP:
18658
        break
18659
      if fid == 0:
18660
        if ftype == TType.LIST:
18661
          self.success = []
9155 kshitij.so 18662
          (_etype363, _size360) = iprot.readListBegin()
18663
          for _i364 in xrange(_size360):
18664
            _elem365 = VoucherItemMapping()
18665
            _elem365.read(iprot)
18666
            self.success.append(_elem365)
5944 mandeep.dh 18667
          iprot.readListEnd()
18668
        else:
18669
          iprot.skip(ftype)
18670
      else:
18671
        iprot.skip(ftype)
18672
      iprot.readFieldEnd()
18673
    iprot.readStructEnd()
18674
 
18675
  def write(self, oprot):
18676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18678
      return
18679
    oprot.writeStructBegin('getAllItemVouchers_result')
18680
    if self.success is not None:
18681
      oprot.writeFieldBegin('success', TType.LIST, 0)
18682
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18683
      for iter366 in self.success:
18684
        iter366.write(oprot)
5944 mandeep.dh 18685
      oprot.writeListEnd()
18686
      oprot.writeFieldEnd()
18687
    oprot.writeFieldStop()
18688
    oprot.writeStructEnd()
18689
 
18690
  def validate(self):
18691
    return
18692
 
18693
 
18694
  def __repr__(self):
18695
    L = ['%s=%r' % (key, value)
18696
      for key, value in self.__dict__.iteritems()]
18697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18698
 
18699
  def __eq__(self, other):
18700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18701
 
18702
  def __ne__(self, other):
18703
    return not (self == other)
18704
 
18705
class isValidCatalogItemId_args:
18706
  """
18707
  Attributes:
18708
   - catalog_item_id
18709
  """
18710
 
18711
  thrift_spec = (
18712
    None, # 0
18713
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
18714
  )
18715
 
18716
  def __init__(self, catalog_item_id=None,):
18717
    self.catalog_item_id = catalog_item_id
18718
 
18719
  def read(self, iprot):
18720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18722
      return
18723
    iprot.readStructBegin()
18724
    while True:
18725
      (fname, ftype, fid) = iprot.readFieldBegin()
18726
      if ftype == TType.STOP:
18727
        break
18728
      if fid == 1:
18729
        if ftype == TType.I64:
18730
          self.catalog_item_id = iprot.readI64();
18731
        else:
18732
          iprot.skip(ftype)
18733
      else:
18734
        iprot.skip(ftype)
18735
      iprot.readFieldEnd()
18736
    iprot.readStructEnd()
18737
 
18738
  def write(self, oprot):
18739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18741
      return
18742
    oprot.writeStructBegin('isValidCatalogItemId_args')
18743
    if self.catalog_item_id is not None:
18744
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
18745
      oprot.writeI64(self.catalog_item_id)
18746
      oprot.writeFieldEnd()
18747
    oprot.writeFieldStop()
18748
    oprot.writeStructEnd()
18749
 
18750
  def validate(self):
18751
    return
18752
 
18753
 
18754
  def __repr__(self):
18755
    L = ['%s=%r' % (key, value)
18756
      for key, value in self.__dict__.iteritems()]
18757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18758
 
18759
  def __eq__(self, other):
18760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18761
 
18762
  def __ne__(self, other):
18763
    return not (self == other)
18764
 
18765
class isValidCatalogItemId_result:
18766
  """
18767
  Attributes:
18768
   - success
18769
  """
18770
 
18771
  thrift_spec = (
18772
    (0, TType.BOOL, 'success', None, None, ), # 0
18773
  )
18774
 
18775
  def __init__(self, success=None,):
18776
    self.success = success
18777
 
18778
  def read(self, iprot):
18779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18781
      return
18782
    iprot.readStructBegin()
18783
    while True:
18784
      (fname, ftype, fid) = iprot.readFieldBegin()
18785
      if ftype == TType.STOP:
18786
        break
18787
      if fid == 0:
18788
        if ftype == TType.BOOL:
18789
          self.success = iprot.readBool();
18790
        else:
18791
          iprot.skip(ftype)
18792
      else:
18793
        iprot.skip(ftype)
18794
      iprot.readFieldEnd()
18795
    iprot.readStructEnd()
18796
 
18797
  def write(self, oprot):
18798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18800
      return
18801
    oprot.writeStructBegin('isValidCatalogItemId_result')
18802
    if self.success is not None:
18803
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18804
      oprot.writeBool(self.success)
18805
      oprot.writeFieldEnd()
18806
    oprot.writeFieldStop()
18807
    oprot.writeStructEnd()
18808
 
18809
  def validate(self):
18810
    return
18811
 
18812
 
18813
  def __repr__(self):
18814
    L = ['%s=%r' % (key, value)
18815
      for key, value in self.__dict__.iteritems()]
18816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18817
 
18818
  def __eq__(self, other):
18819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18820
 
18821
  def __ne__(self, other):
18822
    return not (self == other)
6039 amit.gupta 18823
 
18824
class getVatPercentageForItem_args:
18825
  """
18826
  Attributes:
18827
   - itemId
7330 amit.gupta 18828
   - stateId
6039 amit.gupta 18829
   - price
18830
  """
18831
 
18832
  thrift_spec = (
18833
    None, # 0
18834
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 18835
    (2, TType.I64, 'stateId', None, None, ), # 2
18836
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 18837
  )
18838
 
7330 amit.gupta 18839
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 18840
    self.itemId = itemId
7330 amit.gupta 18841
    self.stateId = stateId
6039 amit.gupta 18842
    self.price = price
18843
 
18844
  def read(self, iprot):
18845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18847
      return
18848
    iprot.readStructBegin()
18849
    while True:
18850
      (fname, ftype, fid) = iprot.readFieldBegin()
18851
      if ftype == TType.STOP:
18852
        break
18853
      if fid == 1:
18854
        if ftype == TType.I64:
18855
          self.itemId = iprot.readI64();
18856
        else:
18857
          iprot.skip(ftype)
18858
      elif fid == 2:
7330 amit.gupta 18859
        if ftype == TType.I64:
18860
          self.stateId = iprot.readI64();
18861
        else:
18862
          iprot.skip(ftype)
18863
      elif fid == 3:
6039 amit.gupta 18864
        if ftype == TType.DOUBLE:
18865
          self.price = iprot.readDouble();
18866
        else:
18867
          iprot.skip(ftype)
18868
      else:
18869
        iprot.skip(ftype)
18870
      iprot.readFieldEnd()
18871
    iprot.readStructEnd()
18872
 
18873
  def write(self, oprot):
18874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18876
      return
18877
    oprot.writeStructBegin('getVatPercentageForItem_args')
18878
    if self.itemId is not None:
18879
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18880
      oprot.writeI64(self.itemId)
18881
      oprot.writeFieldEnd()
7330 amit.gupta 18882
    if self.stateId is not None:
18883
      oprot.writeFieldBegin('stateId', TType.I64, 2)
18884
      oprot.writeI64(self.stateId)
18885
      oprot.writeFieldEnd()
6039 amit.gupta 18886
    if self.price is not None:
7330 amit.gupta 18887
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 18888
      oprot.writeDouble(self.price)
18889
      oprot.writeFieldEnd()
18890
    oprot.writeFieldStop()
18891
    oprot.writeStructEnd()
18892
 
18893
  def validate(self):
18894
    return
18895
 
18896
 
18897
  def __repr__(self):
18898
    L = ['%s=%r' % (key, value)
18899
      for key, value in self.__dict__.iteritems()]
18900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18901
 
18902
  def __eq__(self, other):
18903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18904
 
18905
  def __ne__(self, other):
18906
    return not (self == other)
18907
 
18908
class getVatPercentageForItem_result:
18909
  """
18910
  Attributes:
18911
   - success
7340 amit.gupta 18912
   - cex
6039 amit.gupta 18913
  """
18914
 
18915
  thrift_spec = (
18916
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 18917
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 18918
  )
18919
 
7340 amit.gupta 18920
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 18921
    self.success = success
7340 amit.gupta 18922
    self.cex = cex
6039 amit.gupta 18923
 
18924
  def read(self, iprot):
18925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18927
      return
18928
    iprot.readStructBegin()
18929
    while True:
18930
      (fname, ftype, fid) = iprot.readFieldBegin()
18931
      if ftype == TType.STOP:
18932
        break
18933
      if fid == 0:
18934
        if ftype == TType.DOUBLE:
18935
          self.success = iprot.readDouble();
18936
        else:
18937
          iprot.skip(ftype)
7340 amit.gupta 18938
      elif fid == 1:
18939
        if ftype == TType.STRUCT:
18940
          self.cex = CatalogServiceException()
18941
          self.cex.read(iprot)
18942
        else:
18943
          iprot.skip(ftype)
6039 amit.gupta 18944
      else:
18945
        iprot.skip(ftype)
18946
      iprot.readFieldEnd()
18947
    iprot.readStructEnd()
18948
 
18949
  def write(self, oprot):
18950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18952
      return
18953
    oprot.writeStructBegin('getVatPercentageForItem_result')
18954
    if self.success is not None:
18955
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
18956
      oprot.writeDouble(self.success)
18957
      oprot.writeFieldEnd()
7340 amit.gupta 18958
    if self.cex is not None:
18959
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18960
      self.cex.write(oprot)
18961
      oprot.writeFieldEnd()
6039 amit.gupta 18962
    oprot.writeFieldStop()
18963
    oprot.writeStructEnd()
18964
 
18965
  def validate(self):
18966
    return
18967
 
18968
 
18969
  def __repr__(self):
18970
    L = ['%s=%r' % (key, value)
18971
      for key, value in self.__dict__.iteritems()]
18972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18973
 
18974
  def __eq__(self, other):
18975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18976
 
18977
  def __ne__(self, other):
18978
    return not (self == other)
18979
 
18980
class getVatAmountForItem_args:
18981
  """
18982
  Attributes:
18983
   - itemId
18984
   - price
18985
  """
18986
 
18987
  thrift_spec = (
18988
    None, # 0
18989
    (1, TType.I64, 'itemId', None, None, ), # 1
18990
    (2, TType.DOUBLE, 'price', None, None, ), # 2
18991
  )
18992
 
18993
  def __init__(self, itemId=None, price=None,):
18994
    self.itemId = itemId
18995
    self.price = price
18996
 
18997
  def read(self, iprot):
18998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19000
      return
19001
    iprot.readStructBegin()
19002
    while True:
19003
      (fname, ftype, fid) = iprot.readFieldBegin()
19004
      if ftype == TType.STOP:
19005
        break
19006
      if fid == 1:
19007
        if ftype == TType.I64:
19008
          self.itemId = iprot.readI64();
19009
        else:
19010
          iprot.skip(ftype)
19011
      elif fid == 2:
19012
        if ftype == TType.DOUBLE:
19013
          self.price = iprot.readDouble();
19014
        else:
19015
          iprot.skip(ftype)
19016
      else:
19017
        iprot.skip(ftype)
19018
      iprot.readFieldEnd()
19019
    iprot.readStructEnd()
19020
 
19021
  def write(self, oprot):
19022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19024
      return
19025
    oprot.writeStructBegin('getVatAmountForItem_args')
19026
    if self.itemId is not None:
19027
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19028
      oprot.writeI64(self.itemId)
19029
      oprot.writeFieldEnd()
19030
    if self.price is not None:
19031
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
19032
      oprot.writeDouble(self.price)
19033
      oprot.writeFieldEnd()
19034
    oprot.writeFieldStop()
19035
    oprot.writeStructEnd()
19036
 
19037
  def validate(self):
19038
    return
19039
 
19040
 
19041
  def __repr__(self):
19042
    L = ['%s=%r' % (key, value)
19043
      for key, value in self.__dict__.iteritems()]
19044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19045
 
19046
  def __eq__(self, other):
19047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19048
 
19049
  def __ne__(self, other):
19050
    return not (self == other)
19051
 
19052
class getVatAmountForItem_result:
19053
  """
19054
  Attributes:
19055
   - success
19056
  """
19057
 
19058
  thrift_spec = (
19059
    (0, TType.DOUBLE, 'success', None, None, ), # 0
19060
  )
19061
 
19062
  def __init__(self, success=None,):
19063
    self.success = success
19064
 
19065
  def read(self, iprot):
19066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19068
      return
19069
    iprot.readStructBegin()
19070
    while True:
19071
      (fname, ftype, fid) = iprot.readFieldBegin()
19072
      if ftype == TType.STOP:
19073
        break
19074
      if fid == 0:
19075
        if ftype == TType.DOUBLE:
19076
          self.success = iprot.readDouble();
19077
        else:
19078
          iprot.skip(ftype)
19079
      else:
19080
        iprot.skip(ftype)
19081
      iprot.readFieldEnd()
19082
    iprot.readStructEnd()
19083
 
19084
  def write(self, oprot):
19085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19087
      return
19088
    oprot.writeStructBegin('getVatAmountForItem_result')
19089
    if self.success is not None:
19090
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
19091
      oprot.writeDouble(self.success)
19092
      oprot.writeFieldEnd()
19093
    oprot.writeFieldStop()
19094
    oprot.writeStructEnd()
19095
 
19096
  def validate(self):
19097
    return
19098
 
19099
 
19100
  def __repr__(self):
19101
    L = ['%s=%r' % (key, value)
19102
      for key, value in self.__dict__.iteritems()]
19103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19104
 
19105
  def __eq__(self, other):
19106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19107
 
19108
  def __ne__(self, other):
19109
    return not (self == other)
6531 vikram.rag 19110
 
19111
class getAllIgnoredInventoryUpdateItemsList_args:
19112
  """
19113
  Attributes:
19114
   - offset
19115
   - limit
19116
  """
19117
 
19118
  thrift_spec = (
19119
    None, # 0
19120
    (1, TType.I32, 'offset', None, None, ), # 1
19121
    (2, TType.I32, 'limit', None, None, ), # 2
19122
  )
19123
 
19124
  def __init__(self, offset=None, limit=None,):
19125
    self.offset = offset
19126
    self.limit = limit
19127
 
19128
  def read(self, iprot):
19129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19131
      return
19132
    iprot.readStructBegin()
19133
    while True:
19134
      (fname, ftype, fid) = iprot.readFieldBegin()
19135
      if ftype == TType.STOP:
19136
        break
19137
      if fid == 1:
19138
        if ftype == TType.I32:
19139
          self.offset = iprot.readI32();
19140
        else:
19141
          iprot.skip(ftype)
19142
      elif fid == 2:
19143
        if ftype == TType.I32:
19144
          self.limit = iprot.readI32();
19145
        else:
19146
          iprot.skip(ftype)
19147
      else:
19148
        iprot.skip(ftype)
19149
      iprot.readFieldEnd()
19150
    iprot.readStructEnd()
19151
 
19152
  def write(self, oprot):
19153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19155
      return
19156
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
19157
    if self.offset is not None:
19158
      oprot.writeFieldBegin('offset', TType.I32, 1)
19159
      oprot.writeI32(self.offset)
19160
      oprot.writeFieldEnd()
19161
    if self.limit is not None:
19162
      oprot.writeFieldBegin('limit', TType.I32, 2)
19163
      oprot.writeI32(self.limit)
19164
      oprot.writeFieldEnd()
19165
    oprot.writeFieldStop()
19166
    oprot.writeStructEnd()
19167
 
19168
  def validate(self):
19169
    return
19170
 
19171
 
19172
  def __repr__(self):
19173
    L = ['%s=%r' % (key, value)
19174
      for key, value in self.__dict__.iteritems()]
19175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19176
 
19177
  def __eq__(self, other):
19178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19179
 
19180
  def __ne__(self, other):
19181
    return not (self == other)
19182
 
19183
class getAllIgnoredInventoryUpdateItemsList_result:
19184
  """
19185
  Attributes:
19186
   - success
19187
  """
19188
 
19189
  thrift_spec = (
19190
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19191
  )
19192
 
19193
  def __init__(self, success=None,):
19194
    self.success = success
19195
 
19196
  def read(self, iprot):
19197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19199
      return
19200
    iprot.readStructBegin()
19201
    while True:
19202
      (fname, ftype, fid) = iprot.readFieldBegin()
19203
      if ftype == TType.STOP:
19204
        break
19205
      if fid == 0:
19206
        if ftype == TType.LIST:
19207
          self.success = []
9155 kshitij.so 19208
          (_etype370, _size367) = iprot.readListBegin()
19209
          for _i371 in xrange(_size367):
19210
            _elem372 = Item()
19211
            _elem372.read(iprot)
19212
            self.success.append(_elem372)
6531 vikram.rag 19213
          iprot.readListEnd()
19214
        else:
19215
          iprot.skip(ftype)
19216
      else:
19217
        iprot.skip(ftype)
19218
      iprot.readFieldEnd()
19219
    iprot.readStructEnd()
19220
 
19221
  def write(self, oprot):
19222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19224
      return
19225
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
19226
    if self.success is not None:
19227
      oprot.writeFieldBegin('success', TType.LIST, 0)
19228
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19229
      for iter373 in self.success:
19230
        iter373.write(oprot)
6531 vikram.rag 19231
      oprot.writeListEnd()
19232
      oprot.writeFieldEnd()
19233
    oprot.writeFieldStop()
19234
    oprot.writeStructEnd()
19235
 
19236
  def validate(self):
19237
    return
19238
 
19239
 
19240
  def __repr__(self):
19241
    L = ['%s=%r' % (key, value)
19242
      for key, value in self.__dict__.iteritems()]
19243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19244
 
19245
  def __eq__(self, other):
19246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19247
 
19248
  def __ne__(self, other):
19249
    return not (self == other)
6805 anupam.sin 19250
 
6821 amar.kumar 19251
class getAllAliveItems_args:
19252
 
19253
  thrift_spec = (
19254
  )
19255
 
19256
  def read(self, iprot):
19257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19259
      return
19260
    iprot.readStructBegin()
19261
    while True:
19262
      (fname, ftype, fid) = iprot.readFieldBegin()
19263
      if ftype == TType.STOP:
19264
        break
19265
      else:
19266
        iprot.skip(ftype)
19267
      iprot.readFieldEnd()
19268
    iprot.readStructEnd()
19269
 
19270
  def write(self, oprot):
19271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19273
      return
19274
    oprot.writeStructBegin('getAllAliveItems_args')
19275
    oprot.writeFieldStop()
19276
    oprot.writeStructEnd()
19277
 
19278
  def validate(self):
19279
    return
19280
 
19281
 
19282
  def __repr__(self):
19283
    L = ['%s=%r' % (key, value)
19284
      for key, value in self.__dict__.iteritems()]
19285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19286
 
19287
  def __eq__(self, other):
19288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19289
 
19290
  def __ne__(self, other):
19291
    return not (self == other)
19292
 
19293
class getAllAliveItems_result:
19294
  """
19295
  Attributes:
19296
   - success
19297
  """
19298
 
19299
  thrift_spec = (
19300
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19301
  )
19302
 
19303
  def __init__(self, success=None,):
19304
    self.success = success
19305
 
19306
  def read(self, iprot):
19307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19309
      return
19310
    iprot.readStructBegin()
19311
    while True:
19312
      (fname, ftype, fid) = iprot.readFieldBegin()
19313
      if ftype == TType.STOP:
19314
        break
19315
      if fid == 0:
19316
        if ftype == TType.LIST:
19317
          self.success = []
9155 kshitij.so 19318
          (_etype377, _size374) = iprot.readListBegin()
19319
          for _i378 in xrange(_size374):
19320
            _elem379 = Item()
19321
            _elem379.read(iprot)
19322
            self.success.append(_elem379)
6821 amar.kumar 19323
          iprot.readListEnd()
19324
        else:
19325
          iprot.skip(ftype)
19326
      else:
19327
        iprot.skip(ftype)
19328
      iprot.readFieldEnd()
19329
    iprot.readStructEnd()
19330
 
19331
  def write(self, oprot):
19332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19334
      return
19335
    oprot.writeStructBegin('getAllAliveItems_result')
19336
    if self.success is not None:
19337
      oprot.writeFieldBegin('success', TType.LIST, 0)
19338
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19339
      for iter380 in self.success:
19340
        iter380.write(oprot)
6821 amar.kumar 19341
      oprot.writeListEnd()
19342
      oprot.writeFieldEnd()
19343
    oprot.writeFieldStop()
19344
    oprot.writeStructEnd()
19345
 
19346
  def validate(self):
19347
    return
19348
 
19349
 
19350
  def __repr__(self):
19351
    L = ['%s=%r' % (key, value)
19352
      for key, value in self.__dict__.iteritems()]
19353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19354
 
19355
  def __eq__(self, other):
19356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19357
 
19358
  def __ne__(self, other):
19359
    return not (self == other)
19360
 
6805 anupam.sin 19361
class getInsuranceAmount_args:
19362
  """
19363
  Attributes:
19364
   - itemId
6921 anupam.sin 19365
   - price
6805 anupam.sin 19366
   - insurerId
19367
   - quantity
19368
  """
19369
 
19370
  thrift_spec = (
19371
    None, # 0
19372
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 19373
    (2, TType.DOUBLE, 'price', None, None, ), # 2
19374
    (3, TType.I64, 'insurerId', None, None, ), # 3
19375
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 19376
  )
19377
 
6921 anupam.sin 19378
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 19379
    self.itemId = itemId
6921 anupam.sin 19380
    self.price = price
6805 anupam.sin 19381
    self.insurerId = insurerId
19382
    self.quantity = quantity
19383
 
19384
  def read(self, iprot):
19385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19387
      return
19388
    iprot.readStructBegin()
19389
    while True:
19390
      (fname, ftype, fid) = iprot.readFieldBegin()
19391
      if ftype == TType.STOP:
19392
        break
19393
      if fid == 1:
19394
        if ftype == TType.I64:
19395
          self.itemId = iprot.readI64();
19396
        else:
19397
          iprot.skip(ftype)
19398
      elif fid == 2:
6921 anupam.sin 19399
        if ftype == TType.DOUBLE:
19400
          self.price = iprot.readDouble();
19401
        else:
19402
          iprot.skip(ftype)
19403
      elif fid == 3:
6805 anupam.sin 19404
        if ftype == TType.I64:
19405
          self.insurerId = iprot.readI64();
19406
        else:
19407
          iprot.skip(ftype)
6921 anupam.sin 19408
      elif fid == 4:
6805 anupam.sin 19409
        if ftype == TType.I64:
19410
          self.quantity = iprot.readI64();
19411
        else:
19412
          iprot.skip(ftype)
19413
      else:
19414
        iprot.skip(ftype)
19415
      iprot.readFieldEnd()
19416
    iprot.readStructEnd()
19417
 
19418
  def write(self, oprot):
19419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19421
      return
19422
    oprot.writeStructBegin('getInsuranceAmount_args')
19423
    if self.itemId is not None:
19424
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19425
      oprot.writeI64(self.itemId)
19426
      oprot.writeFieldEnd()
6921 anupam.sin 19427
    if self.price is not None:
19428
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
19429
      oprot.writeDouble(self.price)
19430
      oprot.writeFieldEnd()
6805 anupam.sin 19431
    if self.insurerId is not None:
6921 anupam.sin 19432
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 19433
      oprot.writeI64(self.insurerId)
19434
      oprot.writeFieldEnd()
19435
    if self.quantity is not None:
6921 anupam.sin 19436
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 19437
      oprot.writeI64(self.quantity)
19438
      oprot.writeFieldEnd()
19439
    oprot.writeFieldStop()
19440
    oprot.writeStructEnd()
19441
 
19442
  def validate(self):
19443
    return
19444
 
19445
 
19446
  def __repr__(self):
19447
    L = ['%s=%r' % (key, value)
19448
      for key, value in self.__dict__.iteritems()]
19449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19450
 
19451
  def __eq__(self, other):
19452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19453
 
19454
  def __ne__(self, other):
19455
    return not (self == other)
19456
 
19457
class getInsuranceAmount_result:
19458
  """
19459
  Attributes:
19460
   - success
19461
  """
19462
 
19463
  thrift_spec = (
19464
    (0, TType.I64, 'success', None, None, ), # 0
19465
  )
19466
 
19467
  def __init__(self, success=None,):
19468
    self.success = success
19469
 
19470
  def read(self, iprot):
19471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19473
      return
19474
    iprot.readStructBegin()
19475
    while True:
19476
      (fname, ftype, fid) = iprot.readFieldBegin()
19477
      if ftype == TType.STOP:
19478
        break
19479
      if fid == 0:
19480
        if ftype == TType.I64:
19481
          self.success = iprot.readI64();
19482
        else:
19483
          iprot.skip(ftype)
19484
      else:
19485
        iprot.skip(ftype)
19486
      iprot.readFieldEnd()
19487
    iprot.readStructEnd()
19488
 
19489
  def write(self, oprot):
19490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19492
      return
19493
    oprot.writeStructBegin('getInsuranceAmount_result')
19494
    if self.success is not None:
19495
      oprot.writeFieldBegin('success', TType.I64, 0)
19496
      oprot.writeI64(self.success)
19497
      oprot.writeFieldEnd()
19498
    oprot.writeFieldStop()
19499
    oprot.writeStructEnd()
19500
 
19501
  def validate(self):
19502
    return
19503
 
19504
 
19505
  def __repr__(self):
19506
    L = ['%s=%r' % (key, value)
19507
      for key, value in self.__dict__.iteritems()]
19508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19509
 
19510
  def __eq__(self, other):
19511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19512
 
19513
  def __ne__(self, other):
19514
    return not (self == other)
19515
 
19516
class getInsurer_args:
19517
  """
19518
  Attributes:
19519
   - insurerId
19520
  """
19521
 
19522
  thrift_spec = (
19523
    None, # 0
19524
    (1, TType.I64, 'insurerId', None, None, ), # 1
19525
  )
19526
 
19527
  def __init__(self, insurerId=None,):
19528
    self.insurerId = insurerId
19529
 
19530
  def read(self, iprot):
19531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19533
      return
19534
    iprot.readStructBegin()
19535
    while True:
19536
      (fname, ftype, fid) = iprot.readFieldBegin()
19537
      if ftype == TType.STOP:
19538
        break
19539
      if fid == 1:
19540
        if ftype == TType.I64:
19541
          self.insurerId = iprot.readI64();
19542
        else:
19543
          iprot.skip(ftype)
19544
      else:
19545
        iprot.skip(ftype)
19546
      iprot.readFieldEnd()
19547
    iprot.readStructEnd()
19548
 
19549
  def write(self, oprot):
19550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19552
      return
19553
    oprot.writeStructBegin('getInsurer_args')
19554
    if self.insurerId is not None:
19555
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19556
      oprot.writeI64(self.insurerId)
19557
      oprot.writeFieldEnd()
19558
    oprot.writeFieldStop()
19559
    oprot.writeStructEnd()
19560
 
19561
  def validate(self):
19562
    return
19563
 
19564
 
19565
  def __repr__(self):
19566
    L = ['%s=%r' % (key, value)
19567
      for key, value in self.__dict__.iteritems()]
19568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19569
 
19570
  def __eq__(self, other):
19571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19572
 
19573
  def __ne__(self, other):
19574
    return not (self == other)
19575
 
19576
class getInsurer_result:
19577
  """
19578
  Attributes:
19579
   - success
19580
  """
19581
 
19582
  thrift_spec = (
19583
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
19584
  )
19585
 
19586
  def __init__(self, success=None,):
19587
    self.success = success
19588
 
19589
  def read(self, iprot):
19590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19592
      return
19593
    iprot.readStructBegin()
19594
    while True:
19595
      (fname, ftype, fid) = iprot.readFieldBegin()
19596
      if ftype == TType.STOP:
19597
        break
19598
      if fid == 0:
19599
        if ftype == TType.STRUCT:
19600
          self.success = Insurer()
19601
          self.success.read(iprot)
19602
        else:
19603
          iprot.skip(ftype)
19604
      else:
19605
        iprot.skip(ftype)
19606
      iprot.readFieldEnd()
19607
    iprot.readStructEnd()
19608
 
19609
  def write(self, oprot):
19610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19612
      return
19613
    oprot.writeStructBegin('getInsurer_result')
19614
    if self.success is not None:
19615
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19616
      self.success.write(oprot)
19617
      oprot.writeFieldEnd()
19618
    oprot.writeFieldStop()
19619
    oprot.writeStructEnd()
19620
 
19621
  def validate(self):
19622
    return
19623
 
19624
 
19625
  def __repr__(self):
19626
    L = ['%s=%r' % (key, value)
19627
      for key, value in self.__dict__.iteritems()]
19628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19629
 
19630
  def __eq__(self, other):
19631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19632
 
19633
  def __ne__(self, other):
19634
    return not (self == other)
6838 vikram.rag 19635
 
19636
class getAllInsurers_args:
19637
 
19638
  thrift_spec = (
19639
  )
19640
 
19641
  def read(self, iprot):
19642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19644
      return
19645
    iprot.readStructBegin()
19646
    while True:
19647
      (fname, ftype, fid) = iprot.readFieldBegin()
19648
      if ftype == TType.STOP:
19649
        break
19650
      else:
19651
        iprot.skip(ftype)
19652
      iprot.readFieldEnd()
19653
    iprot.readStructEnd()
19654
 
19655
  def write(self, oprot):
19656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19658
      return
19659
    oprot.writeStructBegin('getAllInsurers_args')
19660
    oprot.writeFieldStop()
19661
    oprot.writeStructEnd()
19662
 
19663
  def validate(self):
19664
    return
19665
 
19666
 
19667
  def __repr__(self):
19668
    L = ['%s=%r' % (key, value)
19669
      for key, value in self.__dict__.iteritems()]
19670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19671
 
19672
  def __eq__(self, other):
19673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19674
 
19675
  def __ne__(self, other):
19676
    return not (self == other)
19677
 
19678
class getAllInsurers_result:
19679
  """
19680
  Attributes:
19681
   - success
19682
  """
19683
 
19684
  thrift_spec = (
19685
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
19686
  )
19687
 
19688
  def __init__(self, success=None,):
19689
    self.success = success
19690
 
19691
  def read(self, iprot):
19692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19694
      return
19695
    iprot.readStructBegin()
19696
    while True:
19697
      (fname, ftype, fid) = iprot.readFieldBegin()
19698
      if ftype == TType.STOP:
19699
        break
19700
      if fid == 0:
19701
        if ftype == TType.LIST:
19702
          self.success = []
9155 kshitij.so 19703
          (_etype384, _size381) = iprot.readListBegin()
19704
          for _i385 in xrange(_size381):
19705
            _elem386 = Insurer()
19706
            _elem386.read(iprot)
19707
            self.success.append(_elem386)
6838 vikram.rag 19708
          iprot.readListEnd()
19709
        else:
19710
          iprot.skip(ftype)
19711
      else:
19712
        iprot.skip(ftype)
19713
      iprot.readFieldEnd()
19714
    iprot.readStructEnd()
19715
 
19716
  def write(self, oprot):
19717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19719
      return
19720
    oprot.writeStructBegin('getAllInsurers_result')
19721
    if self.success is not None:
19722
      oprot.writeFieldBegin('success', TType.LIST, 0)
19723
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19724
      for iter387 in self.success:
19725
        iter387.write(oprot)
6838 vikram.rag 19726
      oprot.writeListEnd()
19727
      oprot.writeFieldEnd()
19728
    oprot.writeFieldStop()
19729
    oprot.writeStructEnd()
19730
 
19731
  def validate(self):
19732
    return
19733
 
19734
 
19735
  def __repr__(self):
19736
    L = ['%s=%r' % (key, value)
19737
      for key, value in self.__dict__.iteritems()]
19738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19739
 
19740
  def __eq__(self, other):
19741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19742
 
19743
  def __ne__(self, other):
19744
    return not (self == other)
6962 rajveer 19745
 
19746
class updateInsuranceDeclaredAmount_args:
19747
  """
19748
  Attributes:
19749
   - insurerId
19750
   - amount
19751
  """
19752
 
19753
  thrift_spec = (
19754
    None, # 0
19755
    (1, TType.I64, 'insurerId', None, None, ), # 1
19756
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
19757
  )
19758
 
19759
  def __init__(self, insurerId=None, amount=None,):
19760
    self.insurerId = insurerId
19761
    self.amount = amount
19762
 
19763
  def read(self, iprot):
19764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19766
      return
19767
    iprot.readStructBegin()
19768
    while True:
19769
      (fname, ftype, fid) = iprot.readFieldBegin()
19770
      if ftype == TType.STOP:
19771
        break
19772
      if fid == 1:
19773
        if ftype == TType.I64:
19774
          self.insurerId = iprot.readI64();
19775
        else:
19776
          iprot.skip(ftype)
19777
      elif fid == 2:
19778
        if ftype == TType.DOUBLE:
19779
          self.amount = iprot.readDouble();
19780
        else:
19781
          iprot.skip(ftype)
19782
      else:
19783
        iprot.skip(ftype)
19784
      iprot.readFieldEnd()
19785
    iprot.readStructEnd()
19786
 
19787
  def write(self, oprot):
19788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19790
      return
19791
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
19792
    if self.insurerId is not None:
19793
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
19794
      oprot.writeI64(self.insurerId)
19795
      oprot.writeFieldEnd()
19796
    if self.amount is not None:
19797
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
19798
      oprot.writeDouble(self.amount)
19799
      oprot.writeFieldEnd()
19800
    oprot.writeFieldStop()
19801
    oprot.writeStructEnd()
19802
 
19803
  def validate(self):
19804
    return
19805
 
19806
 
19807
  def __repr__(self):
19808
    L = ['%s=%r' % (key, value)
19809
      for key, value in self.__dict__.iteritems()]
19810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19811
 
19812
  def __eq__(self, other):
19813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19814
 
19815
  def __ne__(self, other):
19816
    return not (self == other)
19817
 
19818
class updateInsuranceDeclaredAmount_result:
19819
 
19820
  thrift_spec = (
19821
  )
19822
 
19823
  def read(self, iprot):
19824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19826
      return
19827
    iprot.readStructBegin()
19828
    while True:
19829
      (fname, ftype, fid) = iprot.readFieldBegin()
19830
      if ftype == TType.STOP:
19831
        break
19832
      else:
19833
        iprot.skip(ftype)
19834
      iprot.readFieldEnd()
19835
    iprot.readStructEnd()
19836
 
19837
  def write(self, oprot):
19838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19840
      return
19841
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
19842
    oprot.writeFieldStop()
19843
    oprot.writeStructEnd()
19844
 
19845
  def validate(self):
19846
    return
19847
 
19848
 
19849
  def __repr__(self):
19850
    L = ['%s=%r' % (key, value)
19851
      for key, value in self.__dict__.iteritems()]
19852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19853
 
19854
  def __eq__(self, other):
19855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19856
 
19857
  def __ne__(self, other):
19858
    return not (self == other)
7190 amar.kumar 19859
 
19860
class getFreebieForItem_args:
19861
  """
19862
  Attributes:
19863
   - itemId
19864
  """
19865
 
19866
  thrift_spec = (
19867
    None, # 0
19868
    (1, TType.I64, 'itemId', None, None, ), # 1
19869
  )
19870
 
19871
  def __init__(self, itemId=None,):
19872
    self.itemId = itemId
19873
 
19874
  def read(self, iprot):
19875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19877
      return
19878
    iprot.readStructBegin()
19879
    while True:
19880
      (fname, ftype, fid) = iprot.readFieldBegin()
19881
      if ftype == TType.STOP:
19882
        break
19883
      if fid == 1:
19884
        if ftype == TType.I64:
19885
          self.itemId = iprot.readI64();
19886
        else:
19887
          iprot.skip(ftype)
19888
      else:
19889
        iprot.skip(ftype)
19890
      iprot.readFieldEnd()
19891
    iprot.readStructEnd()
19892
 
19893
  def write(self, oprot):
19894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19896
      return
19897
    oprot.writeStructBegin('getFreebieForItem_args')
19898
    if self.itemId is not None:
19899
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19900
      oprot.writeI64(self.itemId)
19901
      oprot.writeFieldEnd()
19902
    oprot.writeFieldStop()
19903
    oprot.writeStructEnd()
19904
 
19905
  def validate(self):
19906
    return
19907
 
19908
 
19909
  def __repr__(self):
19910
    L = ['%s=%r' % (key, value)
19911
      for key, value in self.__dict__.iteritems()]
19912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19913
 
19914
  def __eq__(self, other):
19915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19916
 
19917
  def __ne__(self, other):
19918
    return not (self == other)
19919
 
19920
class getFreebieForItem_result:
19921
  """
19922
  Attributes:
19923
   - success
19924
  """
19925
 
19926
  thrift_spec = (
19927
    (0, TType.I64, 'success', None, None, ), # 0
19928
  )
19929
 
19930
  def __init__(self, success=None,):
19931
    self.success = success
19932
 
19933
  def read(self, iprot):
19934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19936
      return
19937
    iprot.readStructBegin()
19938
    while True:
19939
      (fname, ftype, fid) = iprot.readFieldBegin()
19940
      if ftype == TType.STOP:
19941
        break
19942
      if fid == 0:
19943
        if ftype == TType.I64:
19944
          self.success = iprot.readI64();
19945
        else:
19946
          iprot.skip(ftype)
19947
      else:
19948
        iprot.skip(ftype)
19949
      iprot.readFieldEnd()
19950
    iprot.readStructEnd()
19951
 
19952
  def write(self, oprot):
19953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19955
      return
19956
    oprot.writeStructBegin('getFreebieForItem_result')
19957
    if self.success is not None:
19958
      oprot.writeFieldBegin('success', TType.I64, 0)
19959
      oprot.writeI64(self.success)
19960
      oprot.writeFieldEnd()
19961
    oprot.writeFieldStop()
19962
    oprot.writeStructEnd()
19963
 
19964
  def validate(self):
19965
    return
19966
 
19967
 
19968
  def __repr__(self):
19969
    L = ['%s=%r' % (key, value)
19970
      for key, value in self.__dict__.iteritems()]
19971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19972
 
19973
  def __eq__(self, other):
19974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19975
 
19976
  def __ne__(self, other):
19977
    return not (self == other)
19978
 
19979
class addOrUpdateFreebieForItem_args:
19980
  """
19981
  Attributes:
19982
   - freebieItem
19983
  """
19984
 
19985
  thrift_spec = (
19986
    None, # 0
19987
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
19988
  )
19989
 
19990
  def __init__(self, freebieItem=None,):
19991
    self.freebieItem = freebieItem
19992
 
19993
  def read(self, iprot):
19994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19996
      return
19997
    iprot.readStructBegin()
19998
    while True:
19999
      (fname, ftype, fid) = iprot.readFieldBegin()
20000
      if ftype == TType.STOP:
20001
        break
20002
      if fid == 1:
20003
        if ftype == TType.STRUCT:
20004
          self.freebieItem = FreebieItem()
20005
          self.freebieItem.read(iprot)
20006
        else:
20007
          iprot.skip(ftype)
20008
      else:
20009
        iprot.skip(ftype)
20010
      iprot.readFieldEnd()
20011
    iprot.readStructEnd()
20012
 
20013
  def write(self, oprot):
20014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20016
      return
20017
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
20018
    if self.freebieItem is not None:
20019
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
20020
      self.freebieItem.write(oprot)
20021
      oprot.writeFieldEnd()
20022
    oprot.writeFieldStop()
20023
    oprot.writeStructEnd()
20024
 
20025
  def validate(self):
20026
    return
20027
 
20028
 
20029
  def __repr__(self):
20030
    L = ['%s=%r' % (key, value)
20031
      for key, value in self.__dict__.iteritems()]
20032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20033
 
20034
  def __eq__(self, other):
20035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20036
 
20037
  def __ne__(self, other):
20038
    return not (self == other)
20039
 
20040
class addOrUpdateFreebieForItem_result:
20041
 
20042
  thrift_spec = (
20043
  )
20044
 
20045
  def read(self, iprot):
20046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20048
      return
20049
    iprot.readStructBegin()
20050
    while True:
20051
      (fname, ftype, fid) = iprot.readFieldBegin()
20052
      if ftype == TType.STOP:
20053
        break
20054
      else:
20055
        iprot.skip(ftype)
20056
      iprot.readFieldEnd()
20057
    iprot.readStructEnd()
20058
 
20059
  def write(self, oprot):
20060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20062
      return
20063
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
20064
    oprot.writeFieldStop()
20065
    oprot.writeStructEnd()
20066
 
20067
  def validate(self):
20068
    return
20069
 
20070
 
20071
  def __repr__(self):
20072
    L = ['%s=%r' % (key, value)
20073
      for key, value in self.__dict__.iteritems()]
20074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20075
 
20076
  def __eq__(self, other):
20077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20078
 
20079
  def __ne__(self, other):
20080
    return not (self == other)
7256 rajveer 20081
 
7272 amit.gupta 20082
class addOrUpdateBrandInfo_args:
20083
  """
20084
  Attributes:
20085
   - brandInfo
20086
  """
20087
 
20088
  thrift_spec = (
20089
    None, # 0
20090
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
20091
  )
20092
 
20093
  def __init__(self, brandInfo=None,):
20094
    self.brandInfo = brandInfo
20095
 
20096
  def read(self, iprot):
20097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20099
      return
20100
    iprot.readStructBegin()
20101
    while True:
20102
      (fname, ftype, fid) = iprot.readFieldBegin()
20103
      if ftype == TType.STOP:
20104
        break
20105
      if fid == 1:
20106
        if ftype == TType.STRUCT:
20107
          self.brandInfo = BrandInfo()
20108
          self.brandInfo.read(iprot)
20109
        else:
20110
          iprot.skip(ftype)
20111
      else:
20112
        iprot.skip(ftype)
20113
      iprot.readFieldEnd()
20114
    iprot.readStructEnd()
20115
 
20116
  def write(self, oprot):
20117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20119
      return
20120
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
20121
    if self.brandInfo is not None:
20122
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
20123
      self.brandInfo.write(oprot)
20124
      oprot.writeFieldEnd()
20125
    oprot.writeFieldStop()
20126
    oprot.writeStructEnd()
20127
 
20128
  def validate(self):
20129
    return
20130
 
20131
 
20132
  def __repr__(self):
20133
    L = ['%s=%r' % (key, value)
20134
      for key, value in self.__dict__.iteritems()]
20135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20136
 
20137
  def __eq__(self, other):
20138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20139
 
20140
  def __ne__(self, other):
20141
    return not (self == other)
20142
 
20143
class addOrUpdateBrandInfo_result:
20144
 
20145
  thrift_spec = (
20146
  )
20147
 
20148
  def read(self, iprot):
20149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20151
      return
20152
    iprot.readStructBegin()
20153
    while True:
20154
      (fname, ftype, fid) = iprot.readFieldBegin()
20155
      if ftype == TType.STOP:
20156
        break
20157
      else:
20158
        iprot.skip(ftype)
20159
      iprot.readFieldEnd()
20160
    iprot.readStructEnd()
20161
 
20162
  def write(self, oprot):
20163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20165
      return
20166
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
20167
    oprot.writeFieldStop()
20168
    oprot.writeStructEnd()
20169
 
20170
  def validate(self):
20171
    return
20172
 
20173
 
20174
  def __repr__(self):
20175
    L = ['%s=%r' % (key, value)
20176
      for key, value in self.__dict__.iteritems()]
20177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20178
 
20179
  def __eq__(self, other):
20180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20181
 
20182
  def __ne__(self, other):
20183
    return not (self == other)
20184
 
20185
class getBrandInfo_args:
20186
 
20187
  thrift_spec = (
20188
  )
20189
 
20190
  def read(self, iprot):
20191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20193
      return
20194
    iprot.readStructBegin()
20195
    while True:
20196
      (fname, ftype, fid) = iprot.readFieldBegin()
20197
      if ftype == TType.STOP:
20198
        break
20199
      else:
20200
        iprot.skip(ftype)
20201
      iprot.readFieldEnd()
20202
    iprot.readStructEnd()
20203
 
20204
  def write(self, oprot):
20205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20207
      return
20208
    oprot.writeStructBegin('getBrandInfo_args')
20209
    oprot.writeFieldStop()
20210
    oprot.writeStructEnd()
20211
 
20212
  def validate(self):
20213
    return
20214
 
20215
 
20216
  def __repr__(self):
20217
    L = ['%s=%r' % (key, value)
20218
      for key, value in self.__dict__.iteritems()]
20219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20220
 
20221
  def __eq__(self, other):
20222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20223
 
20224
  def __ne__(self, other):
20225
    return not (self == other)
20226
 
20227
class getBrandInfo_result:
20228
  """
20229
  Attributes:
20230
   - success
20231
  """
20232
 
20233
  thrift_spec = (
20234
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
20235
  )
20236
 
20237
  def __init__(self, success=None,):
20238
    self.success = success
20239
 
20240
  def read(self, iprot):
20241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20243
      return
20244
    iprot.readStructBegin()
20245
    while True:
20246
      (fname, ftype, fid) = iprot.readFieldBegin()
20247
      if ftype == TType.STOP:
20248
        break
20249
      if fid == 0:
20250
        if ftype == TType.MAP:
20251
          self.success = {}
9155 kshitij.so 20252
          (_ktype389, _vtype390, _size388 ) = iprot.readMapBegin() 
20253
          for _i392 in xrange(_size388):
20254
            _key393 = iprot.readString();
20255
            _val394 = BrandInfo()
20256
            _val394.read(iprot)
20257
            self.success[_key393] = _val394
7272 amit.gupta 20258
          iprot.readMapEnd()
20259
        else:
20260
          iprot.skip(ftype)
20261
      else:
20262
        iprot.skip(ftype)
20263
      iprot.readFieldEnd()
20264
    iprot.readStructEnd()
20265
 
20266
  def write(self, oprot):
20267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20269
      return
20270
    oprot.writeStructBegin('getBrandInfo_result')
20271
    if self.success is not None:
20272
      oprot.writeFieldBegin('success', TType.MAP, 0)
20273
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
9155 kshitij.so 20274
      for kiter395,viter396 in self.success.items():
20275
        oprot.writeString(kiter395)
20276
        viter396.write(oprot)
7272 amit.gupta 20277
      oprot.writeMapEnd()
20278
      oprot.writeFieldEnd()
20279
    oprot.writeFieldStop()
20280
    oprot.writeStructEnd()
20281
 
20282
  def validate(self):
20283
    return
20284
 
20285
 
20286
  def __repr__(self):
20287
    L = ['%s=%r' % (key, value)
20288
      for key, value in self.__dict__.iteritems()]
20289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20290
 
20291
  def __eq__(self, other):
20292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20293
 
20294
  def __ne__(self, other):
20295
    return not (self == other)
20296
 
7256 rajveer 20297
class getStorePricing_args:
20298
  """
20299
  Attributes:
20300
   - itemId
20301
  """
20302
 
20303
  thrift_spec = (
20304
    None, # 0
20305
    (1, TType.I64, 'itemId', None, None, ), # 1
20306
  )
20307
 
20308
  def __init__(self, itemId=None,):
20309
    self.itemId = itemId
20310
 
20311
  def read(self, iprot):
20312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20314
      return
20315
    iprot.readStructBegin()
20316
    while True:
20317
      (fname, ftype, fid) = iprot.readFieldBegin()
20318
      if ftype == TType.STOP:
20319
        break
20320
      if fid == 1:
20321
        if ftype == TType.I64:
20322
          self.itemId = iprot.readI64();
20323
        else:
20324
          iprot.skip(ftype)
20325
      else:
20326
        iprot.skip(ftype)
20327
      iprot.readFieldEnd()
20328
    iprot.readStructEnd()
20329
 
20330
  def write(self, oprot):
20331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20333
      return
20334
    oprot.writeStructBegin('getStorePricing_args')
20335
    if self.itemId is not None:
20336
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20337
      oprot.writeI64(self.itemId)
20338
      oprot.writeFieldEnd()
20339
    oprot.writeFieldStop()
20340
    oprot.writeStructEnd()
20341
 
20342
  def validate(self):
20343
    return
20344
 
20345
 
20346
  def __repr__(self):
20347
    L = ['%s=%r' % (key, value)
20348
      for key, value in self.__dict__.iteritems()]
20349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20350
 
20351
  def __eq__(self, other):
20352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20353
 
20354
  def __ne__(self, other):
20355
    return not (self == other)
20356
 
20357
class getStorePricing_result:
20358
  """
20359
  Attributes:
20360
   - success
20361
  """
20362
 
20363
  thrift_spec = (
20364
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
20365
  )
20366
 
20367
  def __init__(self, success=None,):
20368
    self.success = success
20369
 
20370
  def read(self, iprot):
20371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20373
      return
20374
    iprot.readStructBegin()
20375
    while True:
20376
      (fname, ftype, fid) = iprot.readFieldBegin()
20377
      if ftype == TType.STOP:
20378
        break
20379
      if fid == 0:
20380
        if ftype == TType.STRUCT:
20381
          self.success = StorePricing()
20382
          self.success.read(iprot)
20383
        else:
20384
          iprot.skip(ftype)
20385
      else:
20386
        iprot.skip(ftype)
20387
      iprot.readFieldEnd()
20388
    iprot.readStructEnd()
20389
 
20390
  def write(self, oprot):
20391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20393
      return
20394
    oprot.writeStructBegin('getStorePricing_result')
20395
    if self.success is not None:
20396
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20397
      self.success.write(oprot)
20398
      oprot.writeFieldEnd()
20399
    oprot.writeFieldStop()
20400
    oprot.writeStructEnd()
20401
 
20402
  def validate(self):
20403
    return
20404
 
20405
 
20406
  def __repr__(self):
20407
    L = ['%s=%r' % (key, value)
20408
      for key, value in self.__dict__.iteritems()]
20409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20410
 
20411
  def __eq__(self, other):
20412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20413
 
20414
  def __ne__(self, other):
20415
    return not (self == other)
7265 rajveer 20416
 
7306 rajveer 20417
class getStorePricings_args:
20418
  """
20419
  Attributes:
20420
   - itemIds
20421
  """
20422
 
20423
  thrift_spec = (
20424
    None, # 0
20425
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
20426
  )
20427
 
20428
  def __init__(self, itemIds=None,):
20429
    self.itemIds = itemIds
20430
 
20431
  def read(self, iprot):
20432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20434
      return
20435
    iprot.readStructBegin()
20436
    while True:
20437
      (fname, ftype, fid) = iprot.readFieldBegin()
20438
      if ftype == TType.STOP:
20439
        break
20440
      if fid == 1:
20441
        if ftype == TType.LIST:
20442
          self.itemIds = []
9155 kshitij.so 20443
          (_etype400, _size397) = iprot.readListBegin()
20444
          for _i401 in xrange(_size397):
20445
            _elem402 = iprot.readI64();
20446
            self.itemIds.append(_elem402)
7306 rajveer 20447
          iprot.readListEnd()
20448
        else:
20449
          iprot.skip(ftype)
20450
      else:
20451
        iprot.skip(ftype)
20452
      iprot.readFieldEnd()
20453
    iprot.readStructEnd()
20454
 
20455
  def write(self, oprot):
20456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20458
      return
20459
    oprot.writeStructBegin('getStorePricings_args')
20460
    if self.itemIds is not None:
20461
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
20462
      oprot.writeListBegin(TType.I64, len(self.itemIds))
9155 kshitij.so 20463
      for iter403 in self.itemIds:
20464
        oprot.writeI64(iter403)
7306 rajveer 20465
      oprot.writeListEnd()
20466
      oprot.writeFieldEnd()
20467
    oprot.writeFieldStop()
20468
    oprot.writeStructEnd()
20469
 
20470
  def validate(self):
20471
    return
20472
 
20473
 
20474
  def __repr__(self):
20475
    L = ['%s=%r' % (key, value)
20476
      for key, value in self.__dict__.iteritems()]
20477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20478
 
20479
  def __eq__(self, other):
20480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20481
 
20482
  def __ne__(self, other):
20483
    return not (self == other)
20484
 
20485
class getStorePricings_result:
20486
  """
20487
  Attributes:
20488
   - success
20489
  """
20490
 
20491
  thrift_spec = (
20492
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
20493
  )
20494
 
20495
  def __init__(self, success=None,):
20496
    self.success = success
20497
 
20498
  def read(self, iprot):
20499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20501
      return
20502
    iprot.readStructBegin()
20503
    while True:
20504
      (fname, ftype, fid) = iprot.readFieldBegin()
20505
      if ftype == TType.STOP:
20506
        break
20507
      if fid == 0:
20508
        if ftype == TType.LIST:
20509
          self.success = []
9155 kshitij.so 20510
          (_etype407, _size404) = iprot.readListBegin()
20511
          for _i408 in xrange(_size404):
20512
            _elem409 = StorePricing()
20513
            _elem409.read(iprot)
20514
            self.success.append(_elem409)
7306 rajveer 20515
          iprot.readListEnd()
20516
        else:
20517
          iprot.skip(ftype)
20518
      else:
20519
        iprot.skip(ftype)
20520
      iprot.readFieldEnd()
20521
    iprot.readStructEnd()
20522
 
20523
  def write(self, oprot):
20524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20526
      return
20527
    oprot.writeStructBegin('getStorePricings_result')
20528
    if self.success is not None:
20529
      oprot.writeFieldBegin('success', TType.LIST, 0)
20530
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20531
      for iter410 in self.success:
20532
        iter410.write(oprot)
7306 rajveer 20533
      oprot.writeListEnd()
20534
      oprot.writeFieldEnd()
20535
    oprot.writeFieldStop()
20536
    oprot.writeStructEnd()
20537
 
20538
  def validate(self):
20539
    return
20540
 
20541
 
20542
  def __repr__(self):
20543
    L = ['%s=%r' % (key, value)
20544
      for key, value in self.__dict__.iteritems()]
20545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20546
 
20547
  def __eq__(self, other):
20548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20549
 
20550
  def __ne__(self, other):
20551
    return not (self == other)
20552
 
7265 rajveer 20553
class updateStorePricing_args:
20554
  """
20555
  Attributes:
20556
   - sp
7382 rajveer 20557
   - allColors
7265 rajveer 20558
  """
20559
 
20560
  thrift_spec = (
20561
    None, # 0
20562
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 20563
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 20564
  )
20565
 
7382 rajveer 20566
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 20567
    self.sp = sp
7382 rajveer 20568
    self.allColors = allColors
7265 rajveer 20569
 
20570
  def read(self, iprot):
20571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20573
      return
20574
    iprot.readStructBegin()
20575
    while True:
20576
      (fname, ftype, fid) = iprot.readFieldBegin()
20577
      if ftype == TType.STOP:
20578
        break
20579
      if fid == 1:
20580
        if ftype == TType.STRUCT:
20581
          self.sp = StorePricing()
20582
          self.sp.read(iprot)
20583
        else:
20584
          iprot.skip(ftype)
7382 rajveer 20585
      elif fid == 2:
20586
        if ftype == TType.BOOL:
20587
          self.allColors = iprot.readBool();
20588
        else:
20589
          iprot.skip(ftype)
7265 rajveer 20590
      else:
20591
        iprot.skip(ftype)
20592
      iprot.readFieldEnd()
20593
    iprot.readStructEnd()
20594
 
20595
  def write(self, oprot):
20596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20598
      return
20599
    oprot.writeStructBegin('updateStorePricing_args')
20600
    if self.sp is not None:
20601
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
20602
      self.sp.write(oprot)
20603
      oprot.writeFieldEnd()
7382 rajveer 20604
    if self.allColors is not None:
20605
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
20606
      oprot.writeBool(self.allColors)
20607
      oprot.writeFieldEnd()
7265 rajveer 20608
    oprot.writeFieldStop()
20609
    oprot.writeStructEnd()
20610
 
20611
  def validate(self):
20612
    return
20613
 
20614
 
20615
  def __repr__(self):
20616
    L = ['%s=%r' % (key, value)
20617
      for key, value in self.__dict__.iteritems()]
20618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20619
 
20620
  def __eq__(self, other):
20621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20622
 
20623
  def __ne__(self, other):
20624
    return not (self == other)
20625
 
20626
class updateStorePricing_result:
20627
 
20628
  thrift_spec = (
20629
  )
20630
 
20631
  def read(self, iprot):
20632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20634
      return
20635
    iprot.readStructBegin()
20636
    while True:
20637
      (fname, ftype, fid) = iprot.readFieldBegin()
20638
      if ftype == TType.STOP:
20639
        break
20640
      else:
20641
        iprot.skip(ftype)
20642
      iprot.readFieldEnd()
20643
    iprot.readStructEnd()
20644
 
20645
  def write(self, oprot):
20646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20648
      return
20649
    oprot.writeStructBegin('updateStorePricing_result')
20650
    oprot.writeFieldStop()
20651
    oprot.writeStructEnd()
20652
 
20653
  def validate(self):
20654
    return
20655
 
20656
 
20657
  def __repr__(self):
20658
    L = ['%s=%r' % (key, value)
20659
      for key, value in self.__dict__.iteritems()]
20660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20661
 
20662
  def __eq__(self, other):
20663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20664
 
20665
  def __ne__(self, other):
20666
    return not (self == other)
7281 kshitij.so 20667
 
20668
class getAllAmazonListedItems_args:
20669
 
20670
  thrift_spec = (
20671
  )
20672
 
20673
  def read(self, iprot):
20674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20676
      return
20677
    iprot.readStructBegin()
20678
    while True:
20679
      (fname, ftype, fid) = iprot.readFieldBegin()
20680
      if ftype == TType.STOP:
20681
        break
20682
      else:
20683
        iprot.skip(ftype)
20684
      iprot.readFieldEnd()
20685
    iprot.readStructEnd()
20686
 
20687
  def write(self, oprot):
20688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20690
      return
20691
    oprot.writeStructBegin('getAllAmazonListedItems_args')
20692
    oprot.writeFieldStop()
20693
    oprot.writeStructEnd()
20694
 
20695
  def validate(self):
20696
    return
20697
 
20698
 
20699
  def __repr__(self):
20700
    L = ['%s=%r' % (key, value)
20701
      for key, value in self.__dict__.iteritems()]
20702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20703
 
20704
  def __eq__(self, other):
20705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20706
 
20707
  def __ne__(self, other):
20708
    return not (self == other)
20709
 
20710
class getAllAmazonListedItems_result:
20711
  """
20712
  Attributes:
20713
   - success
20714
  """
20715
 
20716
  thrift_spec = (
20717
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20718
  )
20719
 
20720
  def __init__(self, success=None,):
20721
    self.success = success
20722
 
20723
  def read(self, iprot):
20724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20726
      return
20727
    iprot.readStructBegin()
20728
    while True:
20729
      (fname, ftype, fid) = iprot.readFieldBegin()
20730
      if ftype == TType.STOP:
20731
        break
20732
      if fid == 0:
20733
        if ftype == TType.LIST:
20734
          self.success = []
9155 kshitij.so 20735
          (_etype414, _size411) = iprot.readListBegin()
20736
          for _i415 in xrange(_size411):
20737
            _elem416 = Amazonlisted()
20738
            _elem416.read(iprot)
20739
            self.success.append(_elem416)
7281 kshitij.so 20740
          iprot.readListEnd()
20741
        else:
20742
          iprot.skip(ftype)
20743
      else:
20744
        iprot.skip(ftype)
20745
      iprot.readFieldEnd()
20746
    iprot.readStructEnd()
20747
 
20748
  def write(self, oprot):
20749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20751
      return
20752
    oprot.writeStructBegin('getAllAmazonListedItems_result')
20753
    if self.success is not None:
20754
      oprot.writeFieldBegin('success', TType.LIST, 0)
20755
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20756
      for iter417 in self.success:
20757
        iter417.write(oprot)
7281 kshitij.so 20758
      oprot.writeListEnd()
20759
      oprot.writeFieldEnd()
20760
    oprot.writeFieldStop()
20761
    oprot.writeStructEnd()
20762
 
20763
  def validate(self):
20764
    return
20765
 
20766
 
20767
  def __repr__(self):
20768
    L = ['%s=%r' % (key, value)
20769
      for key, value in self.__dict__.iteritems()]
20770
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20771
 
20772
  def __eq__(self, other):
20773
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20774
 
20775
  def __ne__(self, other):
20776
    return not (self == other)
20777
 
8619 kshitij.so 20778
class searchAmazonItems_args:
20779
  """
20780
  Attributes:
20781
   - searchTerm
20782
   - offset
20783
   - limit
20784
  """
20785
 
20786
  thrift_spec = (
20787
    None, # 0
20788
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20789
    (2, TType.I64, 'offset', None, None, ), # 2
20790
    (3, TType.I64, 'limit', None, None, ), # 3
20791
  )
20792
 
20793
  def __init__(self, searchTerm=None, offset=None, limit=None,):
20794
    self.searchTerm = searchTerm
20795
    self.offset = offset
20796
    self.limit = limit
20797
 
20798
  def read(self, iprot):
20799
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20800
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20801
      return
20802
    iprot.readStructBegin()
20803
    while True:
20804
      (fname, ftype, fid) = iprot.readFieldBegin()
20805
      if ftype == TType.STOP:
20806
        break
20807
      if fid == 1:
20808
        if ftype == TType.LIST:
20809
          self.searchTerm = []
9155 kshitij.so 20810
          (_etype421, _size418) = iprot.readListBegin()
20811
          for _i422 in xrange(_size418):
20812
            _elem423 = iprot.readString();
20813
            self.searchTerm.append(_elem423)
8619 kshitij.so 20814
          iprot.readListEnd()
20815
        else:
20816
          iprot.skip(ftype)
20817
      elif fid == 2:
20818
        if ftype == TType.I64:
20819
          self.offset = iprot.readI64();
20820
        else:
20821
          iprot.skip(ftype)
20822
      elif fid == 3:
20823
        if ftype == TType.I64:
20824
          self.limit = iprot.readI64();
20825
        else:
20826
          iprot.skip(ftype)
20827
      else:
20828
        iprot.skip(ftype)
20829
      iprot.readFieldEnd()
20830
    iprot.readStructEnd()
20831
 
20832
  def write(self, oprot):
20833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20835
      return
20836
    oprot.writeStructBegin('searchAmazonItems_args')
20837
    if self.searchTerm is not None:
20838
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20839
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20840
      for iter424 in self.searchTerm:
20841
        oprot.writeString(iter424)
8619 kshitij.so 20842
      oprot.writeListEnd()
20843
      oprot.writeFieldEnd()
20844
    if self.offset is not None:
20845
      oprot.writeFieldBegin('offset', TType.I64, 2)
20846
      oprot.writeI64(self.offset)
20847
      oprot.writeFieldEnd()
20848
    if self.limit is not None:
20849
      oprot.writeFieldBegin('limit', TType.I64, 3)
20850
      oprot.writeI64(self.limit)
20851
      oprot.writeFieldEnd()
20852
    oprot.writeFieldStop()
20853
    oprot.writeStructEnd()
20854
 
20855
  def validate(self):
20856
    return
20857
 
20858
 
20859
  def __repr__(self):
20860
    L = ['%s=%r' % (key, value)
20861
      for key, value in self.__dict__.iteritems()]
20862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20863
 
20864
  def __eq__(self, other):
20865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20866
 
20867
  def __ne__(self, other):
20868
    return not (self == other)
20869
 
20870
class searchAmazonItems_result:
20871
  """
20872
  Attributes:
20873
   - success
20874
  """
20875
 
20876
  thrift_spec = (
20877
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20878
  )
20879
 
20880
  def __init__(self, success=None,):
20881
    self.success = success
20882
 
20883
  def read(self, iprot):
20884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20886
      return
20887
    iprot.readStructBegin()
20888
    while True:
20889
      (fname, ftype, fid) = iprot.readFieldBegin()
20890
      if ftype == TType.STOP:
20891
        break
20892
      if fid == 0:
20893
        if ftype == TType.LIST:
20894
          self.success = []
9155 kshitij.so 20895
          (_etype428, _size425) = iprot.readListBegin()
20896
          for _i429 in xrange(_size425):
20897
            _elem430 = Amazonlisted()
20898
            _elem430.read(iprot)
20899
            self.success.append(_elem430)
8619 kshitij.so 20900
          iprot.readListEnd()
20901
        else:
20902
          iprot.skip(ftype)
20903
      else:
20904
        iprot.skip(ftype)
20905
      iprot.readFieldEnd()
20906
    iprot.readStructEnd()
20907
 
20908
  def write(self, oprot):
20909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20911
      return
20912
    oprot.writeStructBegin('searchAmazonItems_result')
20913
    if self.success is not None:
20914
      oprot.writeFieldBegin('success', TType.LIST, 0)
20915
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20916
      for iter431 in self.success:
20917
        iter431.write(oprot)
8619 kshitij.so 20918
      oprot.writeListEnd()
20919
      oprot.writeFieldEnd()
20920
    oprot.writeFieldStop()
20921
    oprot.writeStructEnd()
20922
 
20923
  def validate(self):
20924
    return
20925
 
20926
 
20927
  def __repr__(self):
20928
    L = ['%s=%r' % (key, value)
20929
      for key, value in self.__dict__.iteritems()]
20930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20931
 
20932
  def __eq__(self, other):
20933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20934
 
20935
  def __ne__(self, other):
20936
    return not (self == other)
20937
 
20938
class getAmazonSearchResultCount_args:
20939
  """
20940
  Attributes:
20941
   - searchTerm
20942
  """
20943
 
20944
  thrift_spec = (
20945
    None, # 0
20946
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
20947
  )
20948
 
20949
  def __init__(self, searchTerm=None,):
20950
    self.searchTerm = searchTerm
20951
 
20952
  def read(self, iprot):
20953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20955
      return
20956
    iprot.readStructBegin()
20957
    while True:
20958
      (fname, ftype, fid) = iprot.readFieldBegin()
20959
      if ftype == TType.STOP:
20960
        break
20961
      if fid == 1:
20962
        if ftype == TType.LIST:
20963
          self.searchTerm = []
9155 kshitij.so 20964
          (_etype435, _size432) = iprot.readListBegin()
20965
          for _i436 in xrange(_size432):
20966
            _elem437 = iprot.readString();
20967
            self.searchTerm.append(_elem437)
8619 kshitij.so 20968
          iprot.readListEnd()
20969
        else:
20970
          iprot.skip(ftype)
20971
      else:
20972
        iprot.skip(ftype)
20973
      iprot.readFieldEnd()
20974
    iprot.readStructEnd()
20975
 
20976
  def write(self, oprot):
20977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20979
      return
20980
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
20981
    if self.searchTerm is not None:
20982
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
20983
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 20984
      for iter438 in self.searchTerm:
20985
        oprot.writeString(iter438)
8619 kshitij.so 20986
      oprot.writeListEnd()
20987
      oprot.writeFieldEnd()
20988
    oprot.writeFieldStop()
20989
    oprot.writeStructEnd()
20990
 
20991
  def validate(self):
20992
    return
20993
 
20994
 
20995
  def __repr__(self):
20996
    L = ['%s=%r' % (key, value)
20997
      for key, value in self.__dict__.iteritems()]
20998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20999
 
21000
  def __eq__(self, other):
21001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21002
 
21003
  def __ne__(self, other):
21004
    return not (self == other)
21005
 
21006
class getAmazonSearchResultCount_result:
21007
  """
21008
  Attributes:
21009
   - success
21010
  """
21011
 
21012
  thrift_spec = (
21013
    (0, TType.I64, 'success', None, None, ), # 0
21014
  )
21015
 
21016
  def __init__(self, success=None,):
21017
    self.success = success
21018
 
21019
  def read(self, iprot):
21020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21022
      return
21023
    iprot.readStructBegin()
21024
    while True:
21025
      (fname, ftype, fid) = iprot.readFieldBegin()
21026
      if ftype == TType.STOP:
21027
        break
21028
      if fid == 0:
21029
        if ftype == TType.I64:
21030
          self.success = iprot.readI64();
21031
        else:
21032
          iprot.skip(ftype)
21033
      else:
21034
        iprot.skip(ftype)
21035
      iprot.readFieldEnd()
21036
    iprot.readStructEnd()
21037
 
21038
  def write(self, oprot):
21039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21041
      return
21042
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
21043
    if self.success is not None:
21044
      oprot.writeFieldBegin('success', TType.I64, 0)
21045
      oprot.writeI64(self.success)
21046
      oprot.writeFieldEnd()
21047
    oprot.writeFieldStop()
21048
    oprot.writeStructEnd()
21049
 
21050
  def validate(self):
21051
    return
21052
 
21053
 
21054
  def __repr__(self):
21055
    L = ['%s=%r' % (key, value)
21056
      for key, value in self.__dict__.iteritems()]
21057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21058
 
21059
  def __eq__(self, other):
21060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21061
 
21062
  def __ne__(self, other):
21063
    return not (self == other)
21064
 
21065
class getCountForAmazonlistedItems_args:
21066
 
21067
  thrift_spec = (
21068
  )
21069
 
21070
  def read(self, iprot):
21071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21073
      return
21074
    iprot.readStructBegin()
21075
    while True:
21076
      (fname, ftype, fid) = iprot.readFieldBegin()
21077
      if ftype == TType.STOP:
21078
        break
21079
      else:
21080
        iprot.skip(ftype)
21081
      iprot.readFieldEnd()
21082
    iprot.readStructEnd()
21083
 
21084
  def write(self, oprot):
21085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21087
      return
21088
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
21089
    oprot.writeFieldStop()
21090
    oprot.writeStructEnd()
21091
 
21092
  def validate(self):
21093
    return
21094
 
21095
 
21096
  def __repr__(self):
21097
    L = ['%s=%r' % (key, value)
21098
      for key, value in self.__dict__.iteritems()]
21099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21100
 
21101
  def __eq__(self, other):
21102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21103
 
21104
  def __ne__(self, other):
21105
    return not (self == other)
21106
 
21107
class getCountForAmazonlistedItems_result:
21108
  """
21109
  Attributes:
21110
   - success
21111
  """
21112
 
21113
  thrift_spec = (
21114
    (0, TType.I64, 'success', None, None, ), # 0
21115
  )
21116
 
21117
  def __init__(self, success=None,):
21118
    self.success = success
21119
 
21120
  def read(self, iprot):
21121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21123
      return
21124
    iprot.readStructBegin()
21125
    while True:
21126
      (fname, ftype, fid) = iprot.readFieldBegin()
21127
      if ftype == TType.STOP:
21128
        break
21129
      if fid == 0:
21130
        if ftype == TType.I64:
21131
          self.success = iprot.readI64();
21132
        else:
21133
          iprot.skip(ftype)
21134
      else:
21135
        iprot.skip(ftype)
21136
      iprot.readFieldEnd()
21137
    iprot.readStructEnd()
21138
 
21139
  def write(self, oprot):
21140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21142
      return
21143
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
21144
    if self.success is not None:
21145
      oprot.writeFieldBegin('success', TType.I64, 0)
21146
      oprot.writeI64(self.success)
21147
      oprot.writeFieldEnd()
21148
    oprot.writeFieldStop()
21149
    oprot.writeStructEnd()
21150
 
21151
  def validate(self):
21152
    return
21153
 
21154
 
21155
  def __repr__(self):
21156
    L = ['%s=%r' % (key, value)
21157
      for key, value in self.__dict__.iteritems()]
21158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21159
 
21160
  def __eq__(self, other):
21161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21162
 
21163
  def __ne__(self, other):
21164
    return not (self == other)
21165
 
7281 kshitij.so 21166
class getAmazonItemDetails_args:
21167
  """
21168
  Attributes:
21169
   - itemId
21170
  """
21171
 
21172
  thrift_spec = (
21173
    None, # 0
21174
    (1, TType.I64, 'itemId', None, None, ), # 1
21175
  )
21176
 
21177
  def __init__(self, itemId=None,):
21178
    self.itemId = itemId
21179
 
21180
  def read(self, iprot):
21181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21183
      return
21184
    iprot.readStructBegin()
21185
    while True:
21186
      (fname, ftype, fid) = iprot.readFieldBegin()
21187
      if ftype == TType.STOP:
21188
        break
21189
      if fid == 1:
21190
        if ftype == TType.I64:
21191
          self.itemId = iprot.readI64();
21192
        else:
21193
          iprot.skip(ftype)
21194
      else:
21195
        iprot.skip(ftype)
21196
      iprot.readFieldEnd()
21197
    iprot.readStructEnd()
21198
 
21199
  def write(self, oprot):
21200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21202
      return
21203
    oprot.writeStructBegin('getAmazonItemDetails_args')
21204
    if self.itemId is not None:
21205
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21206
      oprot.writeI64(self.itemId)
21207
      oprot.writeFieldEnd()
21208
    oprot.writeFieldStop()
21209
    oprot.writeStructEnd()
21210
 
21211
  def validate(self):
21212
    return
21213
 
21214
 
21215
  def __repr__(self):
21216
    L = ['%s=%r' % (key, value)
21217
      for key, value in self.__dict__.iteritems()]
21218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21219
 
21220
  def __eq__(self, other):
21221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21222
 
21223
  def __ne__(self, other):
21224
    return not (self == other)
21225
 
21226
class getAmazonItemDetails_result:
21227
  """
21228
  Attributes:
21229
   - success
21230
  """
21231
 
21232
  thrift_spec = (
21233
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
21234
  )
21235
 
21236
  def __init__(self, success=None,):
21237
    self.success = success
21238
 
21239
  def read(self, iprot):
21240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21242
      return
21243
    iprot.readStructBegin()
21244
    while True:
21245
      (fname, ftype, fid) = iprot.readFieldBegin()
21246
      if ftype == TType.STOP:
21247
        break
21248
      if fid == 0:
21249
        if ftype == TType.STRUCT:
21250
          self.success = Amazonlisted()
21251
          self.success.read(iprot)
21252
        else:
21253
          iprot.skip(ftype)
21254
      else:
21255
        iprot.skip(ftype)
21256
      iprot.readFieldEnd()
21257
    iprot.readStructEnd()
21258
 
21259
  def write(self, oprot):
21260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21262
      return
21263
    oprot.writeStructBegin('getAmazonItemDetails_result')
21264
    if self.success is not None:
21265
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21266
      self.success.write(oprot)
21267
      oprot.writeFieldEnd()
21268
    oprot.writeFieldStop()
21269
    oprot.writeStructEnd()
21270
 
21271
  def validate(self):
21272
    return
21273
 
21274
 
21275
  def __repr__(self):
21276
    L = ['%s=%r' % (key, value)
21277
      for key, value in self.__dict__.iteritems()]
21278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21279
 
21280
  def __eq__(self, other):
21281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21282
 
21283
  def __ne__(self, other):
21284
    return not (self == other)
21285
 
21286
class updateAmazonItemDetails_args:
21287
  """
21288
  Attributes:
8168 kshitij.so 21289
   - amazonlisted
7281 kshitij.so 21290
  """
21291
 
21292
  thrift_spec = (
21293
    None, # 0
8168 kshitij.so 21294
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 21295
  )
21296
 
8168 kshitij.so 21297
  def __init__(self, amazonlisted=None,):
21298
    self.amazonlisted = amazonlisted
7281 kshitij.so 21299
 
21300
  def read(self, iprot):
21301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21303
      return
21304
    iprot.readStructBegin()
21305
    while True:
21306
      (fname, ftype, fid) = iprot.readFieldBegin()
21307
      if ftype == TType.STOP:
21308
        break
21309
      if fid == 1:
8168 kshitij.so 21310
        if ftype == TType.STRUCT:
21311
          self.amazonlisted = Amazonlisted()
21312
          self.amazonlisted.read(iprot)
7281 kshitij.so 21313
        else:
21314
          iprot.skip(ftype)
21315
      else:
21316
        iprot.skip(ftype)
21317
      iprot.readFieldEnd()
21318
    iprot.readStructEnd()
21319
 
21320
  def write(self, oprot):
21321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21323
      return
21324
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 21325
    if self.amazonlisted is not None:
21326
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
21327
      self.amazonlisted.write(oprot)
7281 kshitij.so 21328
      oprot.writeFieldEnd()
21329
    oprot.writeFieldStop()
21330
    oprot.writeStructEnd()
21331
 
21332
  def validate(self):
21333
    return
21334
 
21335
 
21336
  def __repr__(self):
21337
    L = ['%s=%r' % (key, value)
21338
      for key, value in self.__dict__.iteritems()]
21339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21340
 
21341
  def __eq__(self, other):
21342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21343
 
21344
  def __ne__(self, other):
21345
    return not (self == other)
21346
 
21347
class updateAmazonItemDetails_result:
21348
 
21349
  thrift_spec = (
21350
  )
21351
 
21352
  def read(self, iprot):
21353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21355
      return
21356
    iprot.readStructBegin()
21357
    while True:
21358
      (fname, ftype, fid) = iprot.readFieldBegin()
21359
      if ftype == TType.STOP:
21360
        break
21361
      else:
21362
        iprot.skip(ftype)
21363
      iprot.readFieldEnd()
21364
    iprot.readStructEnd()
21365
 
21366
  def write(self, oprot):
21367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21369
      return
21370
    oprot.writeStructBegin('updateAmazonItemDetails_result')
21371
    oprot.writeFieldStop()
21372
    oprot.writeStructEnd()
21373
 
21374
  def validate(self):
21375
    return
21376
 
21377
 
21378
  def __repr__(self):
21379
    L = ['%s=%r' % (key, value)
21380
      for key, value in self.__dict__.iteritems()]
21381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21382
 
21383
  def __eq__(self, other):
21384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21385
 
21386
  def __ne__(self, other):
21387
    return not (self == other)
21388
 
21389
class addAmazonItem_args:
21390
  """
21391
  Attributes:
21392
   - amazonlisted
21393
  """
21394
 
21395
  thrift_spec = (
21396
    None, # 0
21397
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
21398
  )
21399
 
21400
  def __init__(self, amazonlisted=None,):
21401
    self.amazonlisted = amazonlisted
21402
 
21403
  def read(self, iprot):
21404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21406
      return
21407
    iprot.readStructBegin()
21408
    while True:
21409
      (fname, ftype, fid) = iprot.readFieldBegin()
21410
      if ftype == TType.STOP:
21411
        break
21412
      if fid == 1:
21413
        if ftype == TType.STRUCT:
21414
          self.amazonlisted = Amazonlisted()
21415
          self.amazonlisted.read(iprot)
21416
        else:
21417
          iprot.skip(ftype)
21418
      else:
21419
        iprot.skip(ftype)
21420
      iprot.readFieldEnd()
21421
    iprot.readStructEnd()
21422
 
21423
  def write(self, oprot):
21424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21426
      return
21427
    oprot.writeStructBegin('addAmazonItem_args')
21428
    if self.amazonlisted is not None:
21429
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
21430
      self.amazonlisted.write(oprot)
21431
      oprot.writeFieldEnd()
21432
    oprot.writeFieldStop()
21433
    oprot.writeStructEnd()
21434
 
21435
  def validate(self):
21436
    return
21437
 
21438
 
21439
  def __repr__(self):
21440
    L = ['%s=%r' % (key, value)
21441
      for key, value in self.__dict__.iteritems()]
21442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21443
 
21444
  def __eq__(self, other):
21445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21446
 
21447
  def __ne__(self, other):
21448
    return not (self == other)
21449
 
21450
class addAmazonItem_result:
21451
 
21452
  thrift_spec = (
21453
  )
21454
 
21455
  def read(self, iprot):
21456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21458
      return
21459
    iprot.readStructBegin()
21460
    while True:
21461
      (fname, ftype, fid) = iprot.readFieldBegin()
21462
      if ftype == TType.STOP:
21463
        break
21464
      else:
21465
        iprot.skip(ftype)
21466
      iprot.readFieldEnd()
21467
    iprot.readStructEnd()
21468
 
21469
  def write(self, oprot):
21470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21472
      return
21473
    oprot.writeStructBegin('addAmazonItem_result')
21474
    oprot.writeFieldStop()
21475
    oprot.writeStructEnd()
21476
 
21477
  def validate(self):
21478
    return
21479
 
21480
 
21481
  def __repr__(self):
21482
    L = ['%s=%r' % (key, value)
21483
      for key, value in self.__dict__.iteritems()]
21484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21485
 
21486
  def __eq__(self, other):
21487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21488
 
21489
  def __ne__(self, other):
21490
    return not (self == other)
7291 vikram.rag 21491
 
21492
class getAsinItems_args:
21493
 
21494
  thrift_spec = (
21495
  )
21496
 
21497
  def read(self, iprot):
21498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21500
      return
21501
    iprot.readStructBegin()
21502
    while True:
21503
      (fname, ftype, fid) = iprot.readFieldBegin()
21504
      if ftype == TType.STOP:
21505
        break
21506
      else:
21507
        iprot.skip(ftype)
21508
      iprot.readFieldEnd()
21509
    iprot.readStructEnd()
21510
 
21511
  def write(self, oprot):
21512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21514
      return
21515
    oprot.writeStructBegin('getAsinItems_args')
21516
    oprot.writeFieldStop()
21517
    oprot.writeStructEnd()
21518
 
21519
  def validate(self):
21520
    return
21521
 
21522
 
21523
  def __repr__(self):
21524
    L = ['%s=%r' % (key, value)
21525
      for key, value in self.__dict__.iteritems()]
21526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21527
 
21528
  def __eq__(self, other):
21529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21530
 
21531
  def __ne__(self, other):
21532
    return not (self == other)
21533
 
21534
class getAsinItems_result:
21535
  """
21536
  Attributes:
21537
   - success
21538
  """
21539
 
21540
  thrift_spec = (
21541
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
21542
  )
21543
 
21544
  def __init__(self, success=None,):
21545
    self.success = success
21546
 
21547
  def read(self, iprot):
21548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21550
      return
21551
    iprot.readStructBegin()
21552
    while True:
21553
      (fname, ftype, fid) = iprot.readFieldBegin()
21554
      if ftype == TType.STOP:
21555
        break
21556
      if fid == 0:
21557
        if ftype == TType.LIST:
21558
          self.success = []
9155 kshitij.so 21559
          (_etype442, _size439) = iprot.readListBegin()
21560
          for _i443 in xrange(_size439):
21561
            _elem444 = Item()
21562
            _elem444.read(iprot)
21563
            self.success.append(_elem444)
7291 vikram.rag 21564
          iprot.readListEnd()
21565
        else:
21566
          iprot.skip(ftype)
21567
      else:
21568
        iprot.skip(ftype)
21569
      iprot.readFieldEnd()
21570
    iprot.readStructEnd()
21571
 
21572
  def write(self, oprot):
21573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21575
      return
21576
    oprot.writeStructBegin('getAsinItems_result')
21577
    if self.success is not None:
21578
      oprot.writeFieldBegin('success', TType.LIST, 0)
21579
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21580
      for iter445 in self.success:
21581
        iter445.write(oprot)
7291 vikram.rag 21582
      oprot.writeListEnd()
21583
      oprot.writeFieldEnd()
21584
    oprot.writeFieldStop()
21585
    oprot.writeStructEnd()
21586
 
21587
  def validate(self):
21588
    return
21589
 
21590
 
21591
  def __repr__(self):
21592
    L = ['%s=%r' % (key, value)
21593
      for key, value in self.__dict__.iteritems()]
21594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21595
 
21596
  def __eq__(self, other):
21597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21598
 
21599
  def __ne__(self, other):
21600
    return not (self == other)
21601
 
21602
class getAllFbaListedItems_args:
21603
 
21604
  thrift_spec = (
21605
  )
21606
 
21607
  def read(self, iprot):
21608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21610
      return
21611
    iprot.readStructBegin()
21612
    while True:
21613
      (fname, ftype, fid) = iprot.readFieldBegin()
21614
      if ftype == TType.STOP:
21615
        break
21616
      else:
21617
        iprot.skip(ftype)
21618
      iprot.readFieldEnd()
21619
    iprot.readStructEnd()
21620
 
21621
  def write(self, oprot):
21622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21624
      return
21625
    oprot.writeStructBegin('getAllFbaListedItems_args')
21626
    oprot.writeFieldStop()
21627
    oprot.writeStructEnd()
21628
 
21629
  def validate(self):
21630
    return
21631
 
21632
 
21633
  def __repr__(self):
21634
    L = ['%s=%r' % (key, value)
21635
      for key, value in self.__dict__.iteritems()]
21636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21637
 
21638
  def __eq__(self, other):
21639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21640
 
21641
  def __ne__(self, other):
21642
    return not (self == other)
21643
 
21644
class getAllFbaListedItems_result:
21645
  """
21646
  Attributes:
21647
   - success
21648
  """
21649
 
21650
  thrift_spec = (
21651
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21652
  )
21653
 
21654
  def __init__(self, success=None,):
21655
    self.success = success
21656
 
21657
  def read(self, iprot):
21658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21660
      return
21661
    iprot.readStructBegin()
21662
    while True:
21663
      (fname, ftype, fid) = iprot.readFieldBegin()
21664
      if ftype == TType.STOP:
21665
        break
21666
      if fid == 0:
21667
        if ftype == TType.LIST:
21668
          self.success = []
9155 kshitij.so 21669
          (_etype449, _size446) = iprot.readListBegin()
21670
          for _i450 in xrange(_size446):
21671
            _elem451 = Amazonlisted()
21672
            _elem451.read(iprot)
21673
            self.success.append(_elem451)
7291 vikram.rag 21674
          iprot.readListEnd()
21675
        else:
21676
          iprot.skip(ftype)
21677
      else:
21678
        iprot.skip(ftype)
21679
      iprot.readFieldEnd()
21680
    iprot.readStructEnd()
21681
 
21682
  def write(self, oprot):
21683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21685
      return
21686
    oprot.writeStructBegin('getAllFbaListedItems_result')
21687
    if self.success is not None:
21688
      oprot.writeFieldBegin('success', TType.LIST, 0)
21689
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21690
      for iter452 in self.success:
21691
        iter452.write(oprot)
7291 vikram.rag 21692
      oprot.writeListEnd()
21693
      oprot.writeFieldEnd()
21694
    oprot.writeFieldStop()
21695
    oprot.writeStructEnd()
21696
 
21697
  def validate(self):
21698
    return
21699
 
21700
 
21701
  def __repr__(self):
21702
    L = ['%s=%r' % (key, value)
21703
      for key, value in self.__dict__.iteritems()]
21704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21705
 
21706
  def __eq__(self, other):
21707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21708
 
21709
  def __ne__(self, other):
21710
    return not (self == other)
21711
 
21712
class getAllNonFbaListedItems_args:
21713
 
21714
  thrift_spec = (
21715
  )
21716
 
21717
  def read(self, iprot):
21718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21720
      return
21721
    iprot.readStructBegin()
21722
    while True:
21723
      (fname, ftype, fid) = iprot.readFieldBegin()
21724
      if ftype == TType.STOP:
21725
        break
21726
      else:
21727
        iprot.skip(ftype)
21728
      iprot.readFieldEnd()
21729
    iprot.readStructEnd()
21730
 
21731
  def write(self, oprot):
21732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21734
      return
21735
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
21736
    oprot.writeFieldStop()
21737
    oprot.writeStructEnd()
21738
 
21739
  def validate(self):
21740
    return
21741
 
21742
 
21743
  def __repr__(self):
21744
    L = ['%s=%r' % (key, value)
21745
      for key, value in self.__dict__.iteritems()]
21746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21747
 
21748
  def __eq__(self, other):
21749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21750
 
21751
  def __ne__(self, other):
21752
    return not (self == other)
21753
 
21754
class getAllNonFbaListedItems_result:
21755
  """
21756
  Attributes:
21757
   - success
21758
  """
21759
 
21760
  thrift_spec = (
21761
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21762
  )
21763
 
21764
  def __init__(self, success=None,):
21765
    self.success = success
21766
 
21767
  def read(self, iprot):
21768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21770
      return
21771
    iprot.readStructBegin()
21772
    while True:
21773
      (fname, ftype, fid) = iprot.readFieldBegin()
21774
      if ftype == TType.STOP:
21775
        break
21776
      if fid == 0:
21777
        if ftype == TType.LIST:
21778
          self.success = []
9155 kshitij.so 21779
          (_etype456, _size453) = iprot.readListBegin()
21780
          for _i457 in xrange(_size453):
21781
            _elem458 = Amazonlisted()
21782
            _elem458.read(iprot)
21783
            self.success.append(_elem458)
7291 vikram.rag 21784
          iprot.readListEnd()
21785
        else:
21786
          iprot.skip(ftype)
21787
      else:
21788
        iprot.skip(ftype)
21789
      iprot.readFieldEnd()
21790
    iprot.readStructEnd()
21791
 
21792
  def write(self, oprot):
21793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21795
      return
21796
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
21797
    if self.success is not None:
21798
      oprot.writeFieldBegin('success', TType.LIST, 0)
21799
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21800
      for iter459 in self.success:
21801
        iter459.write(oprot)
7291 vikram.rag 21802
      oprot.writeListEnd()
21803
      oprot.writeFieldEnd()
21804
    oprot.writeFieldStop()
21805
    oprot.writeStructEnd()
21806
 
21807
  def validate(self):
21808
    return
21809
 
21810
 
21811
  def __repr__(self):
21812
    L = ['%s=%r' % (key, value)
21813
      for key, value in self.__dict__.iteritems()]
21814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21815
 
21816
  def __eq__(self, other):
21817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21818
 
21819
  def __ne__(self, other):
21820
    return not (self == other)
7460 kshitij.so 21821
 
21822
class updateItemInventory_args:
21823
  """
21824
  Attributes:
21825
   - itemId
21826
   - holdInventory
21827
   - defaultInventory
21828
  """
21829
 
21830
  thrift_spec = (
21831
    None, # 0
21832
    (1, TType.I64, 'itemId', None, None, ), # 1
21833
    (2, TType.I64, 'holdInventory', None, None, ), # 2
21834
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
21835
  )
21836
 
21837
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
21838
    self.itemId = itemId
21839
    self.holdInventory = holdInventory
21840
    self.defaultInventory = defaultInventory
21841
 
21842
  def read(self, iprot):
21843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21845
      return
21846
    iprot.readStructBegin()
21847
    while True:
21848
      (fname, ftype, fid) = iprot.readFieldBegin()
21849
      if ftype == TType.STOP:
21850
        break
21851
      if fid == 1:
21852
        if ftype == TType.I64:
21853
          self.itemId = iprot.readI64();
21854
        else:
21855
          iprot.skip(ftype)
21856
      elif fid == 2:
21857
        if ftype == TType.I64:
21858
          self.holdInventory = iprot.readI64();
21859
        else:
21860
          iprot.skip(ftype)
21861
      elif fid == 3:
21862
        if ftype == TType.I64:
21863
          self.defaultInventory = iprot.readI64();
21864
        else:
21865
          iprot.skip(ftype)
21866
      else:
21867
        iprot.skip(ftype)
21868
      iprot.readFieldEnd()
21869
    iprot.readStructEnd()
21870
 
21871
  def write(self, oprot):
21872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21874
      return
21875
    oprot.writeStructBegin('updateItemInventory_args')
21876
    if self.itemId is not None:
21877
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21878
      oprot.writeI64(self.itemId)
21879
      oprot.writeFieldEnd()
21880
    if self.holdInventory is not None:
21881
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
21882
      oprot.writeI64(self.holdInventory)
21883
      oprot.writeFieldEnd()
21884
    if self.defaultInventory is not None:
21885
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
21886
      oprot.writeI64(self.defaultInventory)
21887
      oprot.writeFieldEnd()
21888
    oprot.writeFieldStop()
21889
    oprot.writeStructEnd()
21890
 
21891
  def validate(self):
21892
    return
21893
 
21894
 
21895
  def __repr__(self):
21896
    L = ['%s=%r' % (key, value)
21897
      for key, value in self.__dict__.iteritems()]
21898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21899
 
21900
  def __eq__(self, other):
21901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21902
 
21903
  def __ne__(self, other):
21904
    return not (self == other)
21905
 
21906
class updateItemInventory_result:
21907
  """
21908
  Attributes:
21909
   - success
21910
  """
21911
 
21912
  thrift_spec = (
21913
    (0, TType.BOOL, 'success', None, None, ), # 0
21914
  )
21915
 
21916
  def __init__(self, success=None,):
21917
    self.success = success
21918
 
21919
  def read(self, iprot):
21920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21922
      return
21923
    iprot.readStructBegin()
21924
    while True:
21925
      (fname, ftype, fid) = iprot.readFieldBegin()
21926
      if ftype == TType.STOP:
21927
        break
21928
      if fid == 0:
21929
        if ftype == TType.BOOL:
21930
          self.success = iprot.readBool();
21931
        else:
21932
          iprot.skip(ftype)
21933
      else:
21934
        iprot.skip(ftype)
21935
      iprot.readFieldEnd()
21936
    iprot.readStructEnd()
21937
 
21938
  def write(self, oprot):
21939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21941
      return
21942
    oprot.writeStructBegin('updateItemInventory_result')
21943
    if self.success is not None:
21944
      oprot.writeFieldBegin('success', TType.BOOL, 0)
21945
      oprot.writeBool(self.success)
21946
      oprot.writeFieldEnd()
21947
    oprot.writeFieldStop()
21948
    oprot.writeStructEnd()
21949
 
21950
  def validate(self):
21951
    return
21952
 
21953
 
21954
  def __repr__(self):
21955
    L = ['%s=%r' % (key, value)
21956
      for key, value in self.__dict__.iteritems()]
21957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21958
 
21959
  def __eq__(self, other):
21960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21961
 
21962
  def __ne__(self, other):
21963
    return not (self == other)
7770 kshitij.so 21964
 
21965
class updateTimestampForAmazonFeeds_args:
21966
  """
21967
  Attributes:
21968
   - type
21969
   - sku
21970
   - timestamp
21971
  """
21972
 
21973
  thrift_spec = (
21974
    None, # 0
21975
    (1, TType.STRING, 'type', None, None, ), # 1
21976
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
21977
    (3, TType.I64, 'timestamp', None, None, ), # 3
21978
  )
21979
 
21980
  def __init__(self, type=None, sku=None, timestamp=None,):
21981
    self.type = type
21982
    self.sku = sku
21983
    self.timestamp = timestamp
21984
 
21985
  def read(self, iprot):
21986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21988
      return
21989
    iprot.readStructBegin()
21990
    while True:
21991
      (fname, ftype, fid) = iprot.readFieldBegin()
21992
      if ftype == TType.STOP:
21993
        break
21994
      if fid == 1:
21995
        if ftype == TType.STRING:
21996
          self.type = iprot.readString();
21997
        else:
21998
          iprot.skip(ftype)
21999
      elif fid == 2:
22000
        if ftype == TType.LIST:
22001
          self.sku = []
9155 kshitij.so 22002
          (_etype463, _size460) = iprot.readListBegin()
22003
          for _i464 in xrange(_size460):
22004
            _elem465 = iprot.readI64();
22005
            self.sku.append(_elem465)
7770 kshitij.so 22006
          iprot.readListEnd()
22007
        else:
22008
          iprot.skip(ftype)
22009
      elif fid == 3:
22010
        if ftype == TType.I64:
22011
          self.timestamp = iprot.readI64();
22012
        else:
22013
          iprot.skip(ftype)
22014
      else:
22015
        iprot.skip(ftype)
22016
      iprot.readFieldEnd()
22017
    iprot.readStructEnd()
22018
 
22019
  def write(self, oprot):
22020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22022
      return
22023
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
22024
    if self.type is not None:
22025
      oprot.writeFieldBegin('type', TType.STRING, 1)
22026
      oprot.writeString(self.type)
22027
      oprot.writeFieldEnd()
22028
    if self.sku is not None:
22029
      oprot.writeFieldBegin('sku', TType.LIST, 2)
22030
      oprot.writeListBegin(TType.I64, len(self.sku))
9155 kshitij.so 22031
      for iter466 in self.sku:
22032
        oprot.writeI64(iter466)
7770 kshitij.so 22033
      oprot.writeListEnd()
22034
      oprot.writeFieldEnd()
22035
    if self.timestamp is not None:
22036
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
22037
      oprot.writeI64(self.timestamp)
22038
      oprot.writeFieldEnd()
22039
    oprot.writeFieldStop()
22040
    oprot.writeStructEnd()
22041
 
22042
  def validate(self):
22043
    return
22044
 
22045
 
22046
  def __repr__(self):
22047
    L = ['%s=%r' % (key, value)
22048
      for key, value in self.__dict__.iteritems()]
22049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22050
 
22051
  def __eq__(self, other):
22052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22053
 
22054
  def __ne__(self, other):
22055
    return not (self == other)
22056
 
22057
class updateTimestampForAmazonFeeds_result:
22058
  """
22059
  Attributes:
22060
   - success
22061
  """
22062
 
22063
  thrift_spec = (
22064
    (0, TType.BOOL, 'success', None, None, ), # 0
22065
  )
22066
 
22067
  def __init__(self, success=None,):
22068
    self.success = success
22069
 
22070
  def read(self, iprot):
22071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22073
      return
22074
    iprot.readStructBegin()
22075
    while True:
22076
      (fname, ftype, fid) = iprot.readFieldBegin()
22077
      if ftype == TType.STOP:
22078
        break
22079
      if fid == 0:
22080
        if ftype == TType.BOOL:
22081
          self.success = iprot.readBool();
22082
        else:
22083
          iprot.skip(ftype)
22084
      else:
22085
        iprot.skip(ftype)
22086
      iprot.readFieldEnd()
22087
    iprot.readStructEnd()
22088
 
22089
  def write(self, oprot):
22090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22092
      return
22093
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
22094
    if self.success is not None:
22095
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22096
      oprot.writeBool(self.success)
22097
      oprot.writeFieldEnd()
22098
    oprot.writeFieldStop()
22099
    oprot.writeStructEnd()
22100
 
22101
  def validate(self):
22102
    return
22103
 
22104
 
22105
  def __repr__(self):
22106
    L = ['%s=%r' % (key, value)
22107
      for key, value in self.__dict__.iteritems()]
22108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22109
 
22110
  def __eq__(self, other):
22111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22112
 
22113
  def __ne__(self, other):
22114
    return not (self == other)
7897 amar.kumar 22115
 
22116
class getAllParentCategories_args:
22117
 
22118
  thrift_spec = (
22119
  )
22120
 
22121
  def read(self, iprot):
22122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22124
      return
22125
    iprot.readStructBegin()
22126
    while True:
22127
      (fname, ftype, fid) = iprot.readFieldBegin()
22128
      if ftype == TType.STOP:
22129
        break
22130
      else:
22131
        iprot.skip(ftype)
22132
      iprot.readFieldEnd()
22133
    iprot.readStructEnd()
22134
 
22135
  def write(self, oprot):
22136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22138
      return
22139
    oprot.writeStructBegin('getAllParentCategories_args')
22140
    oprot.writeFieldStop()
22141
    oprot.writeStructEnd()
22142
 
22143
  def validate(self):
22144
    return
22145
 
22146
 
22147
  def __repr__(self):
22148
    L = ['%s=%r' % (key, value)
22149
      for key, value in self.__dict__.iteritems()]
22150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22151
 
22152
  def __eq__(self, other):
22153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22154
 
22155
  def __ne__(self, other):
22156
    return not (self == other)
22157
 
22158
class getAllParentCategories_result:
22159
  """
22160
  Attributes:
22161
   - success
22162
  """
22163
 
22164
  thrift_spec = (
22165
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
22166
  )
22167
 
22168
  def __init__(self, success=None,):
22169
    self.success = success
22170
 
22171
  def read(self, iprot):
22172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22174
      return
22175
    iprot.readStructBegin()
22176
    while True:
22177
      (fname, ftype, fid) = iprot.readFieldBegin()
22178
      if ftype == TType.STOP:
22179
        break
22180
      if fid == 0:
22181
        if ftype == TType.LIST:
22182
          self.success = []
9155 kshitij.so 22183
          (_etype470, _size467) = iprot.readListBegin()
22184
          for _i471 in xrange(_size467):
22185
            _elem472 = Category()
22186
            _elem472.read(iprot)
22187
            self.success.append(_elem472)
7897 amar.kumar 22188
          iprot.readListEnd()
22189
        else:
22190
          iprot.skip(ftype)
22191
      else:
22192
        iprot.skip(ftype)
22193
      iprot.readFieldEnd()
22194
    iprot.readStructEnd()
22195
 
22196
  def write(self, oprot):
22197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22199
      return
22200
    oprot.writeStructBegin('getAllParentCategories_result')
22201
    if self.success is not None:
22202
      oprot.writeFieldBegin('success', TType.LIST, 0)
22203
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22204
      for iter473 in self.success:
22205
        iter473.write(oprot)
7897 amar.kumar 22206
      oprot.writeListEnd()
22207
      oprot.writeFieldEnd()
22208
    oprot.writeFieldStop()
22209
    oprot.writeStructEnd()
22210
 
22211
  def validate(self):
22212
    return
22213
 
22214
 
22215
  def __repr__(self):
22216
    L = ['%s=%r' % (key, value)
22217
      for key, value in self.__dict__.iteritems()]
22218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22219
 
22220
  def __eq__(self, other):
22221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22222
 
22223
  def __ne__(self, other):
22224
    return not (self == other)
7977 kshitij.so 22225
 
22226
class addPageViewEvent_args:
22227
  """
22228
  Attributes:
22229
   - pageViewEvents
22230
  """
22231
 
22232
  thrift_spec = (
22233
    None, # 0
22234
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
22235
  )
22236
 
22237
  def __init__(self, pageViewEvents=None,):
22238
    self.pageViewEvents = pageViewEvents
22239
 
22240
  def read(self, iprot):
22241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22243
      return
22244
    iprot.readStructBegin()
22245
    while True:
22246
      (fname, ftype, fid) = iprot.readFieldBegin()
22247
      if ftype == TType.STOP:
22248
        break
22249
      if fid == 1:
22250
        if ftype == TType.STRUCT:
22251
          self.pageViewEvents = PageViewEvents()
22252
          self.pageViewEvents.read(iprot)
22253
        else:
22254
          iprot.skip(ftype)
22255
      else:
22256
        iprot.skip(ftype)
22257
      iprot.readFieldEnd()
22258
    iprot.readStructEnd()
22259
 
22260
  def write(self, oprot):
22261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22263
      return
22264
    oprot.writeStructBegin('addPageViewEvent_args')
22265
    if self.pageViewEvents is not None:
22266
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
22267
      self.pageViewEvents.write(oprot)
22268
      oprot.writeFieldEnd()
22269
    oprot.writeFieldStop()
22270
    oprot.writeStructEnd()
22271
 
22272
  def validate(self):
22273
    return
22274
 
22275
 
22276
  def __repr__(self):
22277
    L = ['%s=%r' % (key, value)
22278
      for key, value in self.__dict__.iteritems()]
22279
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22280
 
22281
  def __eq__(self, other):
22282
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22283
 
22284
  def __ne__(self, other):
22285
    return not (self == other)
22286
 
22287
class addPageViewEvent_result:
22288
 
22289
  thrift_spec = (
22290
  )
22291
 
22292
  def read(self, iprot):
22293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22295
      return
22296
    iprot.readStructBegin()
22297
    while True:
22298
      (fname, ftype, fid) = iprot.readFieldBegin()
22299
      if ftype == TType.STOP:
22300
        break
22301
      else:
22302
        iprot.skip(ftype)
22303
      iprot.readFieldEnd()
22304
    iprot.readStructEnd()
22305
 
22306
  def write(self, oprot):
22307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22309
      return
22310
    oprot.writeStructBegin('addPageViewEvent_result')
22311
    oprot.writeFieldStop()
22312
    oprot.writeStructEnd()
22313
 
22314
  def validate(self):
22315
    return
22316
 
22317
 
22318
  def __repr__(self):
22319
    L = ['%s=%r' % (key, value)
22320
      for key, value in self.__dict__.iteritems()]
22321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22322
 
22323
  def __eq__(self, other):
22324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22325
 
22326
  def __ne__(self, other):
22327
    return not (self == other)
22328
 
22329
class addCartEvent_args:
22330
  """
22331
  Attributes:
22332
   - cartEvents
22333
  """
22334
 
22335
  thrift_spec = (
22336
    None, # 0
22337
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
22338
  )
22339
 
22340
  def __init__(self, cartEvents=None,):
22341
    self.cartEvents = cartEvents
22342
 
22343
  def read(self, iprot):
22344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22346
      return
22347
    iprot.readStructBegin()
22348
    while True:
22349
      (fname, ftype, fid) = iprot.readFieldBegin()
22350
      if ftype == TType.STOP:
22351
        break
22352
      if fid == 1:
22353
        if ftype == TType.STRUCT:
22354
          self.cartEvents = CartEvents()
22355
          self.cartEvents.read(iprot)
22356
        else:
22357
          iprot.skip(ftype)
22358
      else:
22359
        iprot.skip(ftype)
22360
      iprot.readFieldEnd()
22361
    iprot.readStructEnd()
22362
 
22363
  def write(self, oprot):
22364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22366
      return
22367
    oprot.writeStructBegin('addCartEvent_args')
22368
    if self.cartEvents is not None:
22369
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
22370
      self.cartEvents.write(oprot)
22371
      oprot.writeFieldEnd()
22372
    oprot.writeFieldStop()
22373
    oprot.writeStructEnd()
22374
 
22375
  def validate(self):
22376
    return
22377
 
22378
 
22379
  def __repr__(self):
22380
    L = ['%s=%r' % (key, value)
22381
      for key, value in self.__dict__.iteritems()]
22382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22383
 
22384
  def __eq__(self, other):
22385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22386
 
22387
  def __ne__(self, other):
22388
    return not (self == other)
22389
 
22390
class addCartEvent_result:
22391
 
22392
  thrift_spec = (
22393
  )
22394
 
22395
  def read(self, iprot):
22396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22398
      return
22399
    iprot.readStructBegin()
22400
    while True:
22401
      (fname, ftype, fid) = iprot.readFieldBegin()
22402
      if ftype == TType.STOP:
22403
        break
22404
      else:
22405
        iprot.skip(ftype)
22406
      iprot.readFieldEnd()
22407
    iprot.readStructEnd()
22408
 
22409
  def write(self, oprot):
22410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22412
      return
22413
    oprot.writeStructBegin('addCartEvent_result')
22414
    oprot.writeFieldStop()
22415
    oprot.writeStructEnd()
22416
 
22417
  def validate(self):
22418
    return
22419
 
22420
 
22421
  def __repr__(self):
22422
    L = ['%s=%r' % (key, value)
22423
      for key, value in self.__dict__.iteritems()]
22424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22425
 
22426
  def __eq__(self, other):
22427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22428
 
22429
  def __ne__(self, other):
22430
    return not (self == other)
8139 kshitij.so 22431
 
8182 amar.kumar 22432
class addEbayItem_args:
22433
  """
22434
  Attributes:
22435
   - ebayItem
22436
  """
22437
 
22438
  thrift_spec = (
22439
    None, # 0
22440
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
22441
  )
22442
 
22443
  def __init__(self, ebayItem=None,):
22444
    self.ebayItem = ebayItem
22445
 
22446
  def read(self, iprot):
22447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22449
      return
22450
    iprot.readStructBegin()
22451
    while True:
22452
      (fname, ftype, fid) = iprot.readFieldBegin()
22453
      if ftype == TType.STOP:
22454
        break
22455
      if fid == 1:
22456
        if ftype == TType.STRUCT:
22457
          self.ebayItem = EbayItem()
22458
          self.ebayItem.read(iprot)
22459
        else:
22460
          iprot.skip(ftype)
22461
      else:
22462
        iprot.skip(ftype)
22463
      iprot.readFieldEnd()
22464
    iprot.readStructEnd()
22465
 
22466
  def write(self, oprot):
22467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22469
      return
22470
    oprot.writeStructBegin('addEbayItem_args')
22471
    if self.ebayItem is not None:
22472
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
22473
      self.ebayItem.write(oprot)
22474
      oprot.writeFieldEnd()
22475
    oprot.writeFieldStop()
22476
    oprot.writeStructEnd()
22477
 
22478
  def validate(self):
22479
    return
22480
 
22481
 
22482
  def __repr__(self):
22483
    L = ['%s=%r' % (key, value)
22484
      for key, value in self.__dict__.iteritems()]
22485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22486
 
22487
  def __eq__(self, other):
22488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22489
 
22490
  def __ne__(self, other):
22491
    return not (self == other)
22492
 
22493
class addEbayItem_result:
22494
 
22495
  thrift_spec = (
22496
  )
22497
 
22498
  def read(self, iprot):
22499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22501
      return
22502
    iprot.readStructBegin()
22503
    while True:
22504
      (fname, ftype, fid) = iprot.readFieldBegin()
22505
      if ftype == TType.STOP:
22506
        break
22507
      else:
22508
        iprot.skip(ftype)
22509
      iprot.readFieldEnd()
22510
    iprot.readStructEnd()
22511
 
22512
  def write(self, oprot):
22513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22515
      return
22516
    oprot.writeStructBegin('addEbayItem_result')
22517
    oprot.writeFieldStop()
22518
    oprot.writeStructEnd()
22519
 
22520
  def validate(self):
22521
    return
22522
 
22523
 
22524
  def __repr__(self):
22525
    L = ['%s=%r' % (key, value)
22526
      for key, value in self.__dict__.iteritems()]
22527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22528
 
22529
  def __eq__(self, other):
22530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22531
 
22532
  def __ne__(self, other):
22533
    return not (self == other)
22534
 
22535
class getEbayItem_args:
22536
  """
22537
  Attributes:
22538
   - listingId
22539
  """
22540
 
22541
  thrift_spec = (
22542
    None, # 0
22543
    (1, TType.STRING, 'listingId', None, None, ), # 1
22544
  )
22545
 
22546
  def __init__(self, listingId=None,):
22547
    self.listingId = listingId
22548
 
22549
  def read(self, iprot):
22550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22552
      return
22553
    iprot.readStructBegin()
22554
    while True:
22555
      (fname, ftype, fid) = iprot.readFieldBegin()
22556
      if ftype == TType.STOP:
22557
        break
22558
      if fid == 1:
22559
        if ftype == TType.STRING:
22560
          self.listingId = iprot.readString();
22561
        else:
22562
          iprot.skip(ftype)
22563
      else:
22564
        iprot.skip(ftype)
22565
      iprot.readFieldEnd()
22566
    iprot.readStructEnd()
22567
 
22568
  def write(self, oprot):
22569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22571
      return
22572
    oprot.writeStructBegin('getEbayItem_args')
22573
    if self.listingId is not None:
22574
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
22575
      oprot.writeString(self.listingId)
22576
      oprot.writeFieldEnd()
22577
    oprot.writeFieldStop()
22578
    oprot.writeStructEnd()
22579
 
22580
  def validate(self):
22581
    return
22582
 
22583
 
22584
  def __repr__(self):
22585
    L = ['%s=%r' % (key, value)
22586
      for key, value in self.__dict__.iteritems()]
22587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22588
 
22589
  def __eq__(self, other):
22590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22591
 
22592
  def __ne__(self, other):
22593
    return not (self == other)
22594
 
22595
class getEbayItem_result:
22596
  """
22597
  Attributes:
22598
   - success
22599
  """
22600
 
22601
  thrift_spec = (
22602
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
22603
  )
22604
 
22605
  def __init__(self, success=None,):
22606
    self.success = success
22607
 
22608
  def read(self, iprot):
22609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22611
      return
22612
    iprot.readStructBegin()
22613
    while True:
22614
      (fname, ftype, fid) = iprot.readFieldBegin()
22615
      if ftype == TType.STOP:
22616
        break
22617
      if fid == 0:
22618
        if ftype == TType.STRUCT:
22619
          self.success = EbayItem()
22620
          self.success.read(iprot)
22621
        else:
22622
          iprot.skip(ftype)
22623
      else:
22624
        iprot.skip(ftype)
22625
      iprot.readFieldEnd()
22626
    iprot.readStructEnd()
22627
 
22628
  def write(self, oprot):
22629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22631
      return
22632
    oprot.writeStructBegin('getEbayItem_result')
22633
    if self.success is not None:
22634
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22635
      self.success.write(oprot)
22636
      oprot.writeFieldEnd()
22637
    oprot.writeFieldStop()
22638
    oprot.writeStructEnd()
22639
 
22640
  def validate(self):
22641
    return
22642
 
22643
 
22644
  def __repr__(self):
22645
    L = ['%s=%r' % (key, value)
22646
      for key, value in self.__dict__.iteritems()]
22647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22648
 
22649
  def __eq__(self, other):
22650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22651
 
22652
  def __ne__(self, other):
22653
    return not (self == other)
22654
 
22655
class updateEbayItem_args:
22656
  """
22657
  Attributes:
22658
   - ebayItem
22659
  """
22660
 
22661
  thrift_spec = (
22662
    None, # 0
22663
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
22664
  )
22665
 
22666
  def __init__(self, ebayItem=None,):
22667
    self.ebayItem = ebayItem
22668
 
22669
  def read(self, iprot):
22670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22672
      return
22673
    iprot.readStructBegin()
22674
    while True:
22675
      (fname, ftype, fid) = iprot.readFieldBegin()
22676
      if ftype == TType.STOP:
22677
        break
22678
      if fid == 1:
22679
        if ftype == TType.STRUCT:
22680
          self.ebayItem = EbayItem()
22681
          self.ebayItem.read(iprot)
22682
        else:
22683
          iprot.skip(ftype)
22684
      else:
22685
        iprot.skip(ftype)
22686
      iprot.readFieldEnd()
22687
    iprot.readStructEnd()
22688
 
22689
  def write(self, oprot):
22690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22692
      return
22693
    oprot.writeStructBegin('updateEbayItem_args')
22694
    if self.ebayItem is not None:
22695
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
22696
      self.ebayItem.write(oprot)
22697
      oprot.writeFieldEnd()
22698
    oprot.writeFieldStop()
22699
    oprot.writeStructEnd()
22700
 
22701
  def validate(self):
22702
    return
22703
 
22704
 
22705
  def __repr__(self):
22706
    L = ['%s=%r' % (key, value)
22707
      for key, value in self.__dict__.iteritems()]
22708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22709
 
22710
  def __eq__(self, other):
22711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22712
 
22713
  def __ne__(self, other):
22714
    return not (self == other)
22715
 
22716
class updateEbayItem_result:
22717
 
22718
  thrift_spec = (
22719
  )
22720
 
22721
  def read(self, iprot):
22722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22724
      return
22725
    iprot.readStructBegin()
22726
    while True:
22727
      (fname, ftype, fid) = iprot.readFieldBegin()
22728
      if ftype == TType.STOP:
22729
        break
22730
      else:
22731
        iprot.skip(ftype)
22732
      iprot.readFieldEnd()
22733
    iprot.readStructEnd()
22734
 
22735
  def write(self, oprot):
22736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22738
      return
22739
    oprot.writeStructBegin('updateEbayItem_result')
22740
    oprot.writeFieldStop()
22741
    oprot.writeStructEnd()
22742
 
22743
  def validate(self):
22744
    return
22745
 
22746
 
22747
  def __repr__(self):
22748
    L = ['%s=%r' % (key, value)
22749
      for key, value in self.__dict__.iteritems()]
22750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22751
 
22752
  def __eq__(self, other):
22753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22754
 
22755
  def __ne__(self, other):
22756
    return not (self == other)
22757
 
8139 kshitij.so 22758
class getAmazonListedItems_args:
22759
  """
22760
  Attributes:
22761
   - offset
22762
   - limit
22763
  """
22764
 
22765
  thrift_spec = (
22766
    None, # 0
22767
    (1, TType.I64, 'offset', None, None, ), # 1
22768
    (2, TType.I64, 'limit', None, None, ), # 2
22769
  )
22770
 
22771
  def __init__(self, offset=None, limit=None,):
22772
    self.offset = offset
22773
    self.limit = limit
22774
 
22775
  def read(self, iprot):
22776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22778
      return
22779
    iprot.readStructBegin()
22780
    while True:
22781
      (fname, ftype, fid) = iprot.readFieldBegin()
22782
      if ftype == TType.STOP:
22783
        break
22784
      if fid == 1:
22785
        if ftype == TType.I64:
22786
          self.offset = iprot.readI64();
22787
        else:
22788
          iprot.skip(ftype)
22789
      elif fid == 2:
22790
        if ftype == TType.I64:
22791
          self.limit = iprot.readI64();
22792
        else:
22793
          iprot.skip(ftype)
22794
      else:
22795
        iprot.skip(ftype)
22796
      iprot.readFieldEnd()
22797
    iprot.readStructEnd()
22798
 
22799
  def write(self, oprot):
22800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22802
      return
22803
    oprot.writeStructBegin('getAmazonListedItems_args')
22804
    if self.offset is not None:
22805
      oprot.writeFieldBegin('offset', TType.I64, 1)
22806
      oprot.writeI64(self.offset)
22807
      oprot.writeFieldEnd()
22808
    if self.limit is not None:
22809
      oprot.writeFieldBegin('limit', TType.I64, 2)
22810
      oprot.writeI64(self.limit)
22811
      oprot.writeFieldEnd()
22812
    oprot.writeFieldStop()
22813
    oprot.writeStructEnd()
22814
 
22815
  def validate(self):
22816
    return
22817
 
22818
 
22819
  def __repr__(self):
22820
    L = ['%s=%r' % (key, value)
22821
      for key, value in self.__dict__.iteritems()]
22822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22823
 
22824
  def __eq__(self, other):
22825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22826
 
22827
  def __ne__(self, other):
22828
    return not (self == other)
22829
 
22830
class getAmazonListedItems_result:
22831
  """
22832
  Attributes:
22833
   - success
22834
  """
22835
 
22836
  thrift_spec = (
22837
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22838
  )
22839
 
22840
  def __init__(self, success=None,):
22841
    self.success = success
22842
 
22843
  def read(self, iprot):
22844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22846
      return
22847
    iprot.readStructBegin()
22848
    while True:
22849
      (fname, ftype, fid) = iprot.readFieldBegin()
22850
      if ftype == TType.STOP:
22851
        break
22852
      if fid == 0:
22853
        if ftype == TType.LIST:
22854
          self.success = []
9155 kshitij.so 22855
          (_etype477, _size474) = iprot.readListBegin()
22856
          for _i478 in xrange(_size474):
22857
            _elem479 = Amazonlisted()
22858
            _elem479.read(iprot)
22859
            self.success.append(_elem479)
8139 kshitij.so 22860
          iprot.readListEnd()
22861
        else:
22862
          iprot.skip(ftype)
22863
      else:
22864
        iprot.skip(ftype)
22865
      iprot.readFieldEnd()
22866
    iprot.readStructEnd()
22867
 
22868
  def write(self, oprot):
22869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22871
      return
22872
    oprot.writeStructBegin('getAmazonListedItems_result')
22873
    if self.success is not None:
22874
      oprot.writeFieldBegin('success', TType.LIST, 0)
22875
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22876
      for iter480 in self.success:
22877
        iter480.write(oprot)
8139 kshitij.so 22878
      oprot.writeListEnd()
22879
      oprot.writeFieldEnd()
22880
    oprot.writeFieldStop()
22881
    oprot.writeStructEnd()
22882
 
22883
  def validate(self):
22884
    return
22885
 
22886
 
22887
  def __repr__(self):
22888
    L = ['%s=%r' % (key, value)
22889
      for key, value in self.__dict__.iteritems()]
22890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22891
 
22892
  def __eq__(self, other):
22893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22894
 
22895
  def __ne__(self, other):
22896
    return not (self == other)
8168 kshitij.so 22897
 
22898
class updateAmazonAttributesInBulk_args:
22899
  """
22900
  Attributes:
22901
   - amazonlisted
22902
  """
22903
 
22904
  thrift_spec = (
22905
    None, # 0
22906
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
22907
  )
22908
 
22909
  def __init__(self, amazonlisted=None,):
22910
    self.amazonlisted = amazonlisted
22911
 
22912
  def read(self, iprot):
22913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22915
      return
22916
    iprot.readStructBegin()
22917
    while True:
22918
      (fname, ftype, fid) = iprot.readFieldBegin()
22919
      if ftype == TType.STOP:
22920
        break
22921
      if fid == 1:
22922
        if ftype == TType.MAP:
22923
          self.amazonlisted = {}
9155 kshitij.so 22924
          (_ktype482, _vtype483, _size481 ) = iprot.readMapBegin() 
22925
          for _i485 in xrange(_size481):
22926
            _key486 = iprot.readI64();
22927
            _val487 = Amazonlisted()
22928
            _val487.read(iprot)
22929
            self.amazonlisted[_key486] = _val487
8168 kshitij.so 22930
          iprot.readMapEnd()
22931
        else:
22932
          iprot.skip(ftype)
22933
      else:
22934
        iprot.skip(ftype)
22935
      iprot.readFieldEnd()
22936
    iprot.readStructEnd()
22937
 
22938
  def write(self, oprot):
22939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22941
      return
22942
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
22943
    if self.amazonlisted is not None:
22944
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
22945
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
9155 kshitij.so 22946
      for kiter488,viter489 in self.amazonlisted.items():
22947
        oprot.writeI64(kiter488)
22948
        viter489.write(oprot)
8168 kshitij.so 22949
      oprot.writeMapEnd()
22950
      oprot.writeFieldEnd()
22951
    oprot.writeFieldStop()
22952
    oprot.writeStructEnd()
22953
 
22954
  def validate(self):
22955
    return
22956
 
22957
 
22958
  def __repr__(self):
22959
    L = ['%s=%r' % (key, value)
22960
      for key, value in self.__dict__.iteritems()]
22961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22962
 
22963
  def __eq__(self, other):
22964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22965
 
22966
  def __ne__(self, other):
22967
    return not (self == other)
22968
 
22969
class updateAmazonAttributesInBulk_result:
22970
  """
22971
  Attributes:
22972
   - success
22973
  """
22974
 
22975
  thrift_spec = (
22976
    (0, TType.BOOL, 'success', None, None, ), # 0
22977
  )
22978
 
22979
  def __init__(self, success=None,):
22980
    self.success = success
22981
 
22982
  def read(self, iprot):
22983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22985
      return
22986
    iprot.readStructBegin()
22987
    while True:
22988
      (fname, ftype, fid) = iprot.readFieldBegin()
22989
      if ftype == TType.STOP:
22990
        break
22991
      if fid == 0:
22992
        if ftype == TType.BOOL:
22993
          self.success = iprot.readBool();
22994
        else:
22995
          iprot.skip(ftype)
22996
      else:
22997
        iprot.skip(ftype)
22998
      iprot.readFieldEnd()
22999
    iprot.readStructEnd()
23000
 
23001
  def write(self, oprot):
23002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23004
      return
23005
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
23006
    if self.success is not None:
23007
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23008
      oprot.writeBool(self.success)
23009
      oprot.writeFieldEnd()
23010
    oprot.writeFieldStop()
23011
    oprot.writeStructEnd()
23012
 
23013
  def validate(self):
23014
    return
23015
 
23016
 
23017
  def __repr__(self):
23018
    L = ['%s=%r' % (key, value)
23019
      for key, value in self.__dict__.iteritems()]
23020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23021
 
23022
  def __eq__(self, other):
23023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23024
 
23025
  def __ne__(self, other):
23026
    return not (self == other)
8379 vikram.rag 23027
 
23028
class getAllItemstoListOnFba_args:
23029
 
23030
  thrift_spec = (
23031
  )
23032
 
23033
  def read(self, iprot):
23034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23036
      return
23037
    iprot.readStructBegin()
23038
    while True:
23039
      (fname, ftype, fid) = iprot.readFieldBegin()
23040
      if ftype == TType.STOP:
23041
        break
23042
      else:
23043
        iprot.skip(ftype)
23044
      iprot.readFieldEnd()
23045
    iprot.readStructEnd()
23046
 
23047
  def write(self, oprot):
23048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23050
      return
23051
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
23052
    oprot.writeFieldStop()
23053
    oprot.writeStructEnd()
23054
 
23055
  def validate(self):
23056
    return
23057
 
23058
 
23059
  def __repr__(self):
23060
    L = ['%s=%r' % (key, value)
23061
      for key, value in self.__dict__.iteritems()]
23062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23063
 
23064
  def __eq__(self, other):
23065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23066
 
23067
  def __ne__(self, other):
23068
    return not (self == other)
23069
 
23070
class getAllItemstoListOnFba_result:
23071
  """
23072
  Attributes:
23073
   - success
23074
  """
23075
 
23076
  thrift_spec = (
23077
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23078
  )
23079
 
23080
  def __init__(self, success=None,):
23081
    self.success = success
23082
 
23083
  def read(self, iprot):
23084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23086
      return
23087
    iprot.readStructBegin()
23088
    while True:
23089
      (fname, ftype, fid) = iprot.readFieldBegin()
23090
      if ftype == TType.STOP:
23091
        break
23092
      if fid == 0:
23093
        if ftype == TType.LIST:
23094
          self.success = []
9155 kshitij.so 23095
          (_etype493, _size490) = iprot.readListBegin()
23096
          for _i494 in xrange(_size490):
23097
            _elem495 = Amazonlisted()
23098
            _elem495.read(iprot)
23099
            self.success.append(_elem495)
8379 vikram.rag 23100
          iprot.readListEnd()
23101
        else:
23102
          iprot.skip(ftype)
23103
      else:
23104
        iprot.skip(ftype)
23105
      iprot.readFieldEnd()
23106
    iprot.readStructEnd()
23107
 
23108
  def write(self, oprot):
23109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23111
      return
23112
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
23113
    if self.success is not None:
23114
      oprot.writeFieldBegin('success', TType.LIST, 0)
23115
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23116
      for iter496 in self.success:
23117
        iter496.write(oprot)
8379 vikram.rag 23118
      oprot.writeListEnd()
23119
      oprot.writeFieldEnd()
23120
    oprot.writeFieldStop()
23121
    oprot.writeStructEnd()
23122
 
23123
  def validate(self):
23124
    return
23125
 
23126
 
23127
  def __repr__(self):
23128
    L = ['%s=%r' % (key, value)
23129
      for key, value in self.__dict__.iteritems()]
23130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23131
 
23132
  def __eq__(self, other):
23133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23134
 
23135
  def __ne__(self, other):
23136
    return not (self == other)
23137
 
23138
class getAllItemstoListOnNonFba_args:
23139
 
23140
  thrift_spec = (
23141
  )
23142
 
23143
  def read(self, iprot):
23144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23146
      return
23147
    iprot.readStructBegin()
23148
    while True:
23149
      (fname, ftype, fid) = iprot.readFieldBegin()
23150
      if ftype == TType.STOP:
23151
        break
23152
      else:
23153
        iprot.skip(ftype)
23154
      iprot.readFieldEnd()
23155
    iprot.readStructEnd()
23156
 
23157
  def write(self, oprot):
23158
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23159
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23160
      return
23161
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
23162
    oprot.writeFieldStop()
23163
    oprot.writeStructEnd()
23164
 
23165
  def validate(self):
23166
    return
23167
 
23168
 
23169
  def __repr__(self):
23170
    L = ['%s=%r' % (key, value)
23171
      for key, value in self.__dict__.iteritems()]
23172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23173
 
23174
  def __eq__(self, other):
23175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23176
 
23177
  def __ne__(self, other):
23178
    return not (self == other)
23179
 
23180
class getAllItemstoListOnNonFba_result:
23181
  """
23182
  Attributes:
23183
   - success
23184
  """
23185
 
23186
  thrift_spec = (
23187
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23188
  )
23189
 
23190
  def __init__(self, success=None,):
23191
    self.success = success
23192
 
23193
  def read(self, iprot):
23194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23196
      return
23197
    iprot.readStructBegin()
23198
    while True:
23199
      (fname, ftype, fid) = iprot.readFieldBegin()
23200
      if ftype == TType.STOP:
23201
        break
23202
      if fid == 0:
23203
        if ftype == TType.LIST:
23204
          self.success = []
9155 kshitij.so 23205
          (_etype500, _size497) = iprot.readListBegin()
23206
          for _i501 in xrange(_size497):
23207
            _elem502 = Amazonlisted()
23208
            _elem502.read(iprot)
23209
            self.success.append(_elem502)
8379 vikram.rag 23210
          iprot.readListEnd()
23211
        else:
23212
          iprot.skip(ftype)
23213
      else:
23214
        iprot.skip(ftype)
23215
      iprot.readFieldEnd()
23216
    iprot.readStructEnd()
23217
 
23218
  def write(self, oprot):
23219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23221
      return
23222
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
23223
    if self.success is not None:
23224
      oprot.writeFieldBegin('success', TType.LIST, 0)
23225
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23226
      for iter503 in self.success:
23227
        iter503.write(oprot)
8379 vikram.rag 23228
      oprot.writeListEnd()
23229
      oprot.writeFieldEnd()
23230
    oprot.writeFieldStop()
23231
    oprot.writeStructEnd()
23232
 
23233
  def validate(self):
23234
    return
23235
 
23236
 
23237
  def __repr__(self):
23238
    L = ['%s=%r' % (key, value)
23239
      for key, value in self.__dict__.iteritems()]
23240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23241
 
23242
  def __eq__(self, other):
23243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23244
 
23245
  def __ne__(self, other):
23246
    return not (self == other)
8616 vikram.rag 23247
 
9242 kshitij.so 23248
class updateAsin_args:
23249
  """
23250
  Attributes:
23251
   - item
23252
  """
8616 vikram.rag 23253
 
23254
  thrift_spec = (
9242 kshitij.so 23255
    None, # 0
23256
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 23257
  )
23258
 
9242 kshitij.so 23259
  def __init__(self, item=None,):
23260
    self.item = item
23261
 
8616 vikram.rag 23262
  def read(self, iprot):
23263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23265
      return
23266
    iprot.readStructBegin()
23267
    while True:
23268
      (fname, ftype, fid) = iprot.readFieldBegin()
23269
      if ftype == TType.STOP:
23270
        break
9242 kshitij.so 23271
      if fid == 1:
23272
        if ftype == TType.MAP:
23273
          self.item = {}
23274
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
23275
          for _i508 in xrange(_size504):
23276
            _key509 = iprot.readI64();
23277
            _val510 = Item()
23278
            _val510.read(iprot)
23279
            self.item[_key509] = _val510
23280
          iprot.readMapEnd()
23281
        else:
23282
          iprot.skip(ftype)
8616 vikram.rag 23283
      else:
23284
        iprot.skip(ftype)
23285
      iprot.readFieldEnd()
23286
    iprot.readStructEnd()
23287
 
23288
  def write(self, oprot):
23289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23291
      return
9242 kshitij.so 23292
    oprot.writeStructBegin('updateAsin_args')
23293
    if self.item is not None:
23294
      oprot.writeFieldBegin('item', TType.MAP, 1)
23295
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
23296
      for kiter511,viter512 in self.item.items():
23297
        oprot.writeI64(kiter511)
23298
        viter512.write(oprot)
23299
      oprot.writeMapEnd()
23300
      oprot.writeFieldEnd()
8616 vikram.rag 23301
    oprot.writeFieldStop()
23302
    oprot.writeStructEnd()
23303
 
23304
  def validate(self):
23305
    return
23306
 
23307
 
23308
  def __repr__(self):
23309
    L = ['%s=%r' % (key, value)
23310
      for key, value in self.__dict__.iteritems()]
23311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23312
 
23313
  def __eq__(self, other):
23314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23315
 
23316
  def __ne__(self, other):
23317
    return not (self == other)
23318
 
9242 kshitij.so 23319
class updateAsin_result:
8616 vikram.rag 23320
 
23321
  thrift_spec = (
23322
  )
23323
 
23324
  def read(self, iprot):
23325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23327
      return
23328
    iprot.readStructBegin()
23329
    while True:
23330
      (fname, ftype, fid) = iprot.readFieldBegin()
23331
      if ftype == TType.STOP:
23332
        break
23333
      else:
23334
        iprot.skip(ftype)
23335
      iprot.readFieldEnd()
23336
    iprot.readStructEnd()
23337
 
23338
  def write(self, oprot):
23339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23341
      return
9242 kshitij.so 23342
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 23343
    oprot.writeFieldStop()
23344
    oprot.writeStructEnd()
23345
 
23346
  def validate(self):
23347
    return
23348
 
23349
 
23350
  def __repr__(self):
23351
    L = ['%s=%r' % (key, value)
23352
      for key, value in self.__dict__.iteritems()]
23353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23354
 
23355
  def __eq__(self, other):
23356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23357
 
23358
  def __ne__(self, other):
23359
    return not (self == other)
8619 kshitij.so 23360
 
9242 kshitij.so 23361
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 23362
  """
23363
  Attributes:
9242 kshitij.so 23364
   - snapdealitem
8619 kshitij.so 23365
  """
23366
 
9242 kshitij.so 23367
  thrift_spec = None
23368
  def __init__(self, snapdealitem=None,):
23369
    self.snapdealitem = snapdealitem
8619 kshitij.so 23370
 
23371
  def read(self, iprot):
23372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23374
      return
23375
    iprot.readStructBegin()
23376
    while True:
23377
      (fname, ftype, fid) = iprot.readFieldBegin()
23378
      if ftype == TType.STOP:
23379
        break
9242 kshitij.so 23380
      if fid == -1:
23381
        if ftype == TType.STRUCT:
23382
          self.snapdealitem = SnapdealItem()
23383
          self.snapdealitem.read(iprot)
8619 kshitij.so 23384
        else:
23385
          iprot.skip(ftype)
23386
      else:
23387
        iprot.skip(ftype)
23388
      iprot.readFieldEnd()
23389
    iprot.readStructEnd()
23390
 
23391
  def write(self, oprot):
23392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23394
      return
9242 kshitij.so 23395
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
23396
    if self.snapdealitem is not None:
23397
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
23398
      self.snapdealitem.write(oprot)
8619 kshitij.so 23399
      oprot.writeFieldEnd()
23400
    oprot.writeFieldStop()
23401
    oprot.writeStructEnd()
23402
 
23403
  def validate(self):
23404
    return
23405
 
23406
 
23407
  def __repr__(self):
23408
    L = ['%s=%r' % (key, value)
23409
      for key, value in self.__dict__.iteritems()]
23410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23411
 
23412
  def __eq__(self, other):
23413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23414
 
23415
  def __ne__(self, other):
23416
    return not (self == other)
23417
 
9242 kshitij.so 23418
class addOrUpdateSnapdealItem_result:
23419
  """
23420
  Attributes:
23421
   - success
23422
  """
8619 kshitij.so 23423
 
23424
  thrift_spec = (
9242 kshitij.so 23425
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 23426
  )
23427
 
9242 kshitij.so 23428
  def __init__(self, success=None,):
23429
    self.success = success
23430
 
8619 kshitij.so 23431
  def read(self, iprot):
23432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23434
      return
23435
    iprot.readStructBegin()
23436
    while True:
23437
      (fname, ftype, fid) = iprot.readFieldBegin()
23438
      if ftype == TType.STOP:
23439
        break
9242 kshitij.so 23440
      if fid == 0:
23441
        if ftype == TType.BOOL:
23442
          self.success = iprot.readBool();
23443
        else:
23444
          iprot.skip(ftype)
8619 kshitij.so 23445
      else:
23446
        iprot.skip(ftype)
23447
      iprot.readFieldEnd()
23448
    iprot.readStructEnd()
23449
 
23450
  def write(self, oprot):
23451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23453
      return
9242 kshitij.so 23454
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
23455
    if self.success is not None:
23456
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23457
      oprot.writeBool(self.success)
23458
      oprot.writeFieldEnd()
8619 kshitij.so 23459
    oprot.writeFieldStop()
23460
    oprot.writeStructEnd()
23461
 
23462
  def validate(self):
23463
    return
23464
 
23465
 
23466
  def __repr__(self):
23467
    L = ['%s=%r' % (key, value)
23468
      for key, value in self.__dict__.iteritems()]
23469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23470
 
23471
  def __eq__(self, other):
23472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23473
 
23474
  def __ne__(self, other):
23475
    return not (self == other)
8739 vikram.rag 23476
 
9242 kshitij.so 23477
class getSnapdealItem_args:
8739 vikram.rag 23478
  """
23479
  Attributes:
9242 kshitij.so 23480
   - item_id
8739 vikram.rag 23481
  """
23482
 
9242 kshitij.so 23483
  thrift_spec = (
23484
    None, # 0
23485
    (1, TType.I64, 'item_id', None, None, ), # 1
23486
  )
8739 vikram.rag 23487
 
9242 kshitij.so 23488
  def __init__(self, item_id=None,):
23489
    self.item_id = item_id
23490
 
8739 vikram.rag 23491
  def read(self, iprot):
23492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23494
      return
23495
    iprot.readStructBegin()
23496
    while True:
23497
      (fname, ftype, fid) = iprot.readFieldBegin()
23498
      if ftype == TType.STOP:
23499
        break
9242 kshitij.so 23500
      if fid == 1:
23501
        if ftype == TType.I64:
23502
          self.item_id = iprot.readI64();
8739 vikram.rag 23503
        else:
23504
          iprot.skip(ftype)
23505
      else:
23506
        iprot.skip(ftype)
23507
      iprot.readFieldEnd()
23508
    iprot.readStructEnd()
23509
 
23510
  def write(self, oprot):
23511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23513
      return
9242 kshitij.so 23514
    oprot.writeStructBegin('getSnapdealItem_args')
23515
    if self.item_id is not None:
23516
      oprot.writeFieldBegin('item_id', TType.I64, 1)
23517
      oprot.writeI64(self.item_id)
8739 vikram.rag 23518
      oprot.writeFieldEnd()
23519
    oprot.writeFieldStop()
23520
    oprot.writeStructEnd()
23521
 
23522
  def validate(self):
23523
    return
23524
 
23525
 
23526
  def __repr__(self):
23527
    L = ['%s=%r' % (key, value)
23528
      for key, value in self.__dict__.iteritems()]
23529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23530
 
23531
  def __eq__(self, other):
23532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23533
 
23534
  def __ne__(self, other):
23535
    return not (self == other)
23536
 
9242 kshitij.so 23537
class getSnapdealItem_result:
8739 vikram.rag 23538
  """
23539
  Attributes:
23540
   - success
23541
  """
23542
 
23543
  thrift_spec = (
9242 kshitij.so 23544
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 23545
  )
23546
 
23547
  def __init__(self, success=None,):
23548
    self.success = success
23549
 
23550
  def read(self, iprot):
23551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23553
      return
23554
    iprot.readStructBegin()
23555
    while True:
23556
      (fname, ftype, fid) = iprot.readFieldBegin()
23557
      if ftype == TType.STOP:
23558
        break
23559
      if fid == 0:
9242 kshitij.so 23560
        if ftype == TType.STRUCT:
23561
          self.success = SnapdealItem()
23562
          self.success.read(iprot)
8739 vikram.rag 23563
        else:
23564
          iprot.skip(ftype)
23565
      else:
23566
        iprot.skip(ftype)
23567
      iprot.readFieldEnd()
23568
    iprot.readStructEnd()
23569
 
23570
  def write(self, oprot):
23571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23573
      return
9242 kshitij.so 23574
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 23575
    if self.success is not None:
9242 kshitij.so 23576
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23577
      self.success.write(oprot)
8739 vikram.rag 23578
      oprot.writeFieldEnd()
23579
    oprot.writeFieldStop()
23580
    oprot.writeStructEnd()
23581
 
23582
  def validate(self):
23583
    return
23584
 
23585
 
23586
  def __repr__(self):
23587
    L = ['%s=%r' % (key, value)
23588
      for key, value in self.__dict__.iteritems()]
23589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23590
 
23591
  def __eq__(self, other):
23592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23593
 
23594
  def __ne__(self, other):
23595
    return not (self == other)
23596
 
9242 kshitij.so 23597
class getSnapdealItemDetails_args:
8739 vikram.rag 23598
  """
23599
  Attributes:
23600
   - item_id
23601
  """
23602
 
23603
  thrift_spec = (
23604
    None, # 0
23605
    (1, TType.I64, 'item_id', None, None, ), # 1
23606
  )
23607
 
23608
  def __init__(self, item_id=None,):
23609
    self.item_id = item_id
23610
 
23611
  def read(self, iprot):
23612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23614
      return
23615
    iprot.readStructBegin()
23616
    while True:
23617
      (fname, ftype, fid) = iprot.readFieldBegin()
23618
      if ftype == TType.STOP:
23619
        break
23620
      if fid == 1:
23621
        if ftype == TType.I64:
23622
          self.item_id = iprot.readI64();
23623
        else:
23624
          iprot.skip(ftype)
23625
      else:
23626
        iprot.skip(ftype)
23627
      iprot.readFieldEnd()
23628
    iprot.readStructEnd()
23629
 
23630
  def write(self, oprot):
23631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23633
      return
9242 kshitij.so 23634
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 23635
    if self.item_id is not None:
23636
      oprot.writeFieldBegin('item_id', TType.I64, 1)
23637
      oprot.writeI64(self.item_id)
23638
      oprot.writeFieldEnd()
23639
    oprot.writeFieldStop()
23640
    oprot.writeStructEnd()
23641
 
23642
  def validate(self):
23643
    return
23644
 
23645
 
23646
  def __repr__(self):
23647
    L = ['%s=%r' % (key, value)
23648
      for key, value in self.__dict__.iteritems()]
23649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23650
 
23651
  def __eq__(self, other):
23652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23653
 
23654
  def __ne__(self, other):
23655
    return not (self == other)
23656
 
9242 kshitij.so 23657
class getSnapdealItemDetails_result:
8739 vikram.rag 23658
  """
23659
  Attributes:
23660
   - success
23661
  """
23662
 
23663
  thrift_spec = (
9242 kshitij.so 23664
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 23665
  )
23666
 
23667
  def __init__(self, success=None,):
23668
    self.success = success
23669
 
23670
  def read(self, iprot):
23671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23673
      return
23674
    iprot.readStructBegin()
23675
    while True:
23676
      (fname, ftype, fid) = iprot.readFieldBegin()
23677
      if ftype == TType.STOP:
23678
        break
23679
      if fid == 0:
23680
        if ftype == TType.STRUCT:
9242 kshitij.so 23681
          self.success = SnapdealItemDetails()
8739 vikram.rag 23682
          self.success.read(iprot)
23683
        else:
23684
          iprot.skip(ftype)
23685
      else:
23686
        iprot.skip(ftype)
23687
      iprot.readFieldEnd()
23688
    iprot.readStructEnd()
23689
 
23690
  def write(self, oprot):
23691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23693
      return
9242 kshitij.so 23694
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 23695
    if self.success is not None:
23696
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23697
      self.success.write(oprot)
23698
      oprot.writeFieldEnd()
23699
    oprot.writeFieldStop()
23700
    oprot.writeStructEnd()
23701
 
23702
  def validate(self):
23703
    return
23704
 
23705
 
23706
  def __repr__(self):
23707
    L = ['%s=%r' % (key, value)
23708
      for key, value in self.__dict__.iteritems()]
23709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23710
 
23711
  def __eq__(self, other):
23712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23713
 
23714
  def __ne__(self, other):
23715
    return not (self == other)
23716
 
23717
class getAllSnapdealItems_args:
23718
 
23719
  thrift_spec = (
23720
  )
23721
 
23722
  def read(self, iprot):
23723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23725
      return
23726
    iprot.readStructBegin()
23727
    while True:
23728
      (fname, ftype, fid) = iprot.readFieldBegin()
23729
      if ftype == TType.STOP:
23730
        break
23731
      else:
23732
        iprot.skip(ftype)
23733
      iprot.readFieldEnd()
23734
    iprot.readStructEnd()
23735
 
23736
  def write(self, oprot):
23737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23739
      return
23740
    oprot.writeStructBegin('getAllSnapdealItems_args')
23741
    oprot.writeFieldStop()
23742
    oprot.writeStructEnd()
23743
 
23744
  def validate(self):
23745
    return
23746
 
23747
 
23748
  def __repr__(self):
23749
    L = ['%s=%r' % (key, value)
23750
      for key, value in self.__dict__.iteritems()]
23751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23752
 
23753
  def __eq__(self, other):
23754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23755
 
23756
  def __ne__(self, other):
23757
    return not (self == other)
23758
 
23759
class getAllSnapdealItems_result:
23760
  """
23761
  Attributes:
23762
   - success
23763
  """
23764
 
23765
  thrift_spec = (
9242 kshitij.so 23766
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 23767
  )
23768
 
23769
  def __init__(self, success=None,):
23770
    self.success = success
23771
 
23772
  def read(self, iprot):
23773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23775
      return
23776
    iprot.readStructBegin()
23777
    while True:
23778
      (fname, ftype, fid) = iprot.readFieldBegin()
23779
      if ftype == TType.STOP:
23780
        break
23781
      if fid == 0:
23782
        if ftype == TType.LIST:
23783
          self.success = []
9242 kshitij.so 23784
          (_etype516, _size513) = iprot.readListBegin()
23785
          for _i517 in xrange(_size513):
23786
            _elem518 = SnapdealItemDetails()
23787
            _elem518.read(iprot)
23788
            self.success.append(_elem518)
23789
          iprot.readListEnd()
23790
        else:
23791
          iprot.skip(ftype)
23792
      else:
23793
        iprot.skip(ftype)
23794
      iprot.readFieldEnd()
23795
    iprot.readStructEnd()
23796
 
23797
  def write(self, oprot):
23798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23800
      return
23801
    oprot.writeStructBegin('getAllSnapdealItems_result')
23802
    if self.success is not None:
23803
      oprot.writeFieldBegin('success', TType.LIST, 0)
23804
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23805
      for iter519 in self.success:
23806
        iter519.write(oprot)
23807
      oprot.writeListEnd()
23808
      oprot.writeFieldEnd()
23809
    oprot.writeFieldStop()
23810
    oprot.writeStructEnd()
23811
 
23812
  def validate(self):
23813
    return
23814
 
23815
 
23816
  def __repr__(self):
23817
    L = ['%s=%r' % (key, value)
23818
      for key, value in self.__dict__.iteritems()]
23819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23820
 
23821
  def __eq__(self, other):
23822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23823
 
23824
  def __ne__(self, other):
23825
    return not (self == other)
23826
 
23827
class getSnapdealItems_args:
23828
  """
23829
  Attributes:
23830
   - offset
23831
   - limit
23832
  """
23833
 
23834
  thrift_spec = (
23835
    None, # 0
23836
    (1, TType.I64, 'offset', None, None, ), # 1
23837
    (2, TType.I64, 'limit', None, None, ), # 2
23838
  )
23839
 
23840
  def __init__(self, offset=None, limit=None,):
23841
    self.offset = offset
23842
    self.limit = limit
23843
 
23844
  def read(self, iprot):
23845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23847
      return
23848
    iprot.readStructBegin()
23849
    while True:
23850
      (fname, ftype, fid) = iprot.readFieldBegin()
23851
      if ftype == TType.STOP:
23852
        break
23853
      if fid == 1:
23854
        if ftype == TType.I64:
23855
          self.offset = iprot.readI64();
23856
        else:
23857
          iprot.skip(ftype)
23858
      elif fid == 2:
23859
        if ftype == TType.I64:
23860
          self.limit = iprot.readI64();
23861
        else:
23862
          iprot.skip(ftype)
23863
      else:
23864
        iprot.skip(ftype)
23865
      iprot.readFieldEnd()
23866
    iprot.readStructEnd()
23867
 
23868
  def write(self, oprot):
23869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23871
      return
23872
    oprot.writeStructBegin('getSnapdealItems_args')
23873
    if self.offset is not None:
23874
      oprot.writeFieldBegin('offset', TType.I64, 1)
23875
      oprot.writeI64(self.offset)
23876
      oprot.writeFieldEnd()
23877
    if self.limit is not None:
23878
      oprot.writeFieldBegin('limit', TType.I64, 2)
23879
      oprot.writeI64(self.limit)
23880
      oprot.writeFieldEnd()
23881
    oprot.writeFieldStop()
23882
    oprot.writeStructEnd()
23883
 
23884
  def validate(self):
23885
    return
23886
 
23887
 
23888
  def __repr__(self):
23889
    L = ['%s=%r' % (key, value)
23890
      for key, value in self.__dict__.iteritems()]
23891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23892
 
23893
  def __eq__(self, other):
23894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23895
 
23896
  def __ne__(self, other):
23897
    return not (self == other)
23898
 
23899
class getSnapdealItems_result:
23900
  """
23901
  Attributes:
23902
   - success
23903
  """
23904
 
23905
  thrift_spec = (
23906
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23907
  )
23908
 
23909
  def __init__(self, success=None,):
23910
    self.success = success
23911
 
23912
  def read(self, iprot):
23913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23915
      return
23916
    iprot.readStructBegin()
23917
    while True:
23918
      (fname, ftype, fid) = iprot.readFieldBegin()
23919
      if ftype == TType.STOP:
23920
        break
23921
      if fid == 0:
23922
        if ftype == TType.LIST:
23923
          self.success = []
9155 kshitij.so 23924
          (_etype523, _size520) = iprot.readListBegin()
23925
          for _i524 in xrange(_size520):
9242 kshitij.so 23926
            _elem525 = SnapdealItemDetails()
9155 kshitij.so 23927
            _elem525.read(iprot)
23928
            self.success.append(_elem525)
8739 vikram.rag 23929
          iprot.readListEnd()
23930
        else:
23931
          iprot.skip(ftype)
23932
      else:
23933
        iprot.skip(ftype)
23934
      iprot.readFieldEnd()
23935
    iprot.readStructEnd()
23936
 
23937
  def write(self, oprot):
23938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23940
      return
9242 kshitij.so 23941
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 23942
    if self.success is not None:
23943
      oprot.writeFieldBegin('success', TType.LIST, 0)
23944
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 23945
      for iter526 in self.success:
23946
        iter526.write(oprot)
8739 vikram.rag 23947
      oprot.writeListEnd()
23948
      oprot.writeFieldEnd()
23949
    oprot.writeFieldStop()
23950
    oprot.writeStructEnd()
23951
 
23952
  def validate(self):
23953
    return
23954
 
23955
 
23956
  def __repr__(self):
23957
    L = ['%s=%r' % (key, value)
23958
      for key, value in self.__dict__.iteritems()]
23959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23960
 
23961
  def __eq__(self, other):
23962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23963
 
23964
  def __ne__(self, other):
23965
    return not (self == other)
9242 kshitij.so 23966
 
23967
class searchSnapdealItems_args:
23968
  """
23969
  Attributes:
23970
   - searchTerm
23971
   - offset
23972
   - limit
23973
  """
23974
 
23975
  thrift_spec = (
23976
    None, # 0
23977
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
23978
    (2, TType.I64, 'offset', None, None, ), # 2
23979
    (3, TType.I64, 'limit', None, None, ), # 3
23980
  )
23981
 
23982
  def __init__(self, searchTerm=None, offset=None, limit=None,):
23983
    self.searchTerm = searchTerm
23984
    self.offset = offset
23985
    self.limit = limit
23986
 
23987
  def read(self, iprot):
23988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23990
      return
23991
    iprot.readStructBegin()
23992
    while True:
23993
      (fname, ftype, fid) = iprot.readFieldBegin()
23994
      if ftype == TType.STOP:
23995
        break
23996
      if fid == 1:
23997
        if ftype == TType.LIST:
23998
          self.searchTerm = []
23999
          (_etype530, _size527) = iprot.readListBegin()
24000
          for _i531 in xrange(_size527):
24001
            _elem532 = iprot.readString();
24002
            self.searchTerm.append(_elem532)
24003
          iprot.readListEnd()
24004
        else:
24005
          iprot.skip(ftype)
24006
      elif fid == 2:
24007
        if ftype == TType.I64:
24008
          self.offset = iprot.readI64();
24009
        else:
24010
          iprot.skip(ftype)
24011
      elif fid == 3:
24012
        if ftype == TType.I64:
24013
          self.limit = iprot.readI64();
24014
        else:
24015
          iprot.skip(ftype)
24016
      else:
24017
        iprot.skip(ftype)
24018
      iprot.readFieldEnd()
24019
    iprot.readStructEnd()
24020
 
24021
  def write(self, oprot):
24022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24024
      return
24025
    oprot.writeStructBegin('searchSnapdealItems_args')
24026
    if self.searchTerm is not None:
24027
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
24028
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
24029
      for iter533 in self.searchTerm:
24030
        oprot.writeString(iter533)
24031
      oprot.writeListEnd()
24032
      oprot.writeFieldEnd()
24033
    if self.offset is not None:
24034
      oprot.writeFieldBegin('offset', TType.I64, 2)
24035
      oprot.writeI64(self.offset)
24036
      oprot.writeFieldEnd()
24037
    if self.limit is not None:
24038
      oprot.writeFieldBegin('limit', TType.I64, 3)
24039
      oprot.writeI64(self.limit)
24040
      oprot.writeFieldEnd()
24041
    oprot.writeFieldStop()
24042
    oprot.writeStructEnd()
24043
 
24044
  def validate(self):
24045
    return
24046
 
24047
 
24048
  def __repr__(self):
24049
    L = ['%s=%r' % (key, value)
24050
      for key, value in self.__dict__.iteritems()]
24051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24052
 
24053
  def __eq__(self, other):
24054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24055
 
24056
  def __ne__(self, other):
24057
    return not (self == other)
24058
 
24059
class searchSnapdealItems_result:
24060
  """
24061
  Attributes:
24062
   - success
24063
  """
24064
 
24065
  thrift_spec = (
24066
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
24067
  )
24068
 
24069
  def __init__(self, success=None,):
24070
    self.success = success
24071
 
24072
  def read(self, iprot):
24073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24075
      return
24076
    iprot.readStructBegin()
24077
    while True:
24078
      (fname, ftype, fid) = iprot.readFieldBegin()
24079
      if ftype == TType.STOP:
24080
        break
24081
      if fid == 0:
24082
        if ftype == TType.LIST:
24083
          self.success = []
24084
          (_etype537, _size534) = iprot.readListBegin()
24085
          for _i538 in xrange(_size534):
24086
            _elem539 = SnapdealItemDetails()
24087
            _elem539.read(iprot)
24088
            self.success.append(_elem539)
24089
          iprot.readListEnd()
24090
        else:
24091
          iprot.skip(ftype)
24092
      else:
24093
        iprot.skip(ftype)
24094
      iprot.readFieldEnd()
24095
    iprot.readStructEnd()
24096
 
24097
  def write(self, oprot):
24098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24100
      return
24101
    oprot.writeStructBegin('searchSnapdealItems_result')
24102
    if self.success is not None:
24103
      oprot.writeFieldBegin('success', TType.LIST, 0)
24104
      oprot.writeListBegin(TType.STRUCT, len(self.success))
24105
      for iter540 in self.success:
24106
        iter540.write(oprot)
24107
      oprot.writeListEnd()
24108
      oprot.writeFieldEnd()
24109
    oprot.writeFieldStop()
24110
    oprot.writeStructEnd()
24111
 
24112
  def validate(self):
24113
    return
24114
 
24115
 
24116
  def __repr__(self):
24117
    L = ['%s=%r' % (key, value)
24118
      for key, value in self.__dict__.iteritems()]
24119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24120
 
24121
  def __eq__(self, other):
24122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24123
 
24124
  def __ne__(self, other):
24125
    return not (self == other)
24126
 
24127
class getCountForSnapdealItems_args:
24128
 
24129
  thrift_spec = (
24130
  )
24131
 
24132
  def read(self, iprot):
24133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24135
      return
24136
    iprot.readStructBegin()
24137
    while True:
24138
      (fname, ftype, fid) = iprot.readFieldBegin()
24139
      if ftype == TType.STOP:
24140
        break
24141
      else:
24142
        iprot.skip(ftype)
24143
      iprot.readFieldEnd()
24144
    iprot.readStructEnd()
24145
 
24146
  def write(self, oprot):
24147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24149
      return
24150
    oprot.writeStructBegin('getCountForSnapdealItems_args')
24151
    oprot.writeFieldStop()
24152
    oprot.writeStructEnd()
24153
 
24154
  def validate(self):
24155
    return
24156
 
24157
 
24158
  def __repr__(self):
24159
    L = ['%s=%r' % (key, value)
24160
      for key, value in self.__dict__.iteritems()]
24161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24162
 
24163
  def __eq__(self, other):
24164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24165
 
24166
  def __ne__(self, other):
24167
    return not (self == other)
24168
 
24169
class getCountForSnapdealItems_result:
24170
  """
24171
  Attributes:
24172
   - success
24173
  """
24174
 
24175
  thrift_spec = (
24176
    (0, TType.I64, 'success', None, None, ), # 0
24177
  )
24178
 
24179
  def __init__(self, success=None,):
24180
    self.success = success
24181
 
24182
  def read(self, iprot):
24183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24185
      return
24186
    iprot.readStructBegin()
24187
    while True:
24188
      (fname, ftype, fid) = iprot.readFieldBegin()
24189
      if ftype == TType.STOP:
24190
        break
24191
      if fid == 0:
24192
        if ftype == TType.I64:
24193
          self.success = iprot.readI64();
24194
        else:
24195
          iprot.skip(ftype)
24196
      else:
24197
        iprot.skip(ftype)
24198
      iprot.readFieldEnd()
24199
    iprot.readStructEnd()
24200
 
24201
  def write(self, oprot):
24202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24204
      return
24205
    oprot.writeStructBegin('getCountForSnapdealItems_result')
24206
    if self.success is not None:
24207
      oprot.writeFieldBegin('success', TType.I64, 0)
24208
      oprot.writeI64(self.success)
24209
      oprot.writeFieldEnd()
24210
    oprot.writeFieldStop()
24211
    oprot.writeStructEnd()
24212
 
24213
  def validate(self):
24214
    return
24215
 
24216
 
24217
  def __repr__(self):
24218
    L = ['%s=%r' % (key, value)
24219
      for key, value in self.__dict__.iteritems()]
24220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24221
 
24222
  def __eq__(self, other):
24223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24224
 
24225
  def __ne__(self, other):
24226
    return not (self == other)
24227
 
24228
class getSnapdealSearchResultCount_args:
24229
  """
24230
  Attributes:
24231
   - searchTerm
24232
  """
24233
 
24234
  thrift_spec = (
24235
    None, # 0
24236
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
24237
  )
24238
 
24239
  def __init__(self, searchTerm=None,):
24240
    self.searchTerm = searchTerm
24241
 
24242
  def read(self, iprot):
24243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24245
      return
24246
    iprot.readStructBegin()
24247
    while True:
24248
      (fname, ftype, fid) = iprot.readFieldBegin()
24249
      if ftype == TType.STOP:
24250
        break
24251
      if fid == 1:
24252
        if ftype == TType.LIST:
24253
          self.searchTerm = []
24254
          (_etype544, _size541) = iprot.readListBegin()
24255
          for _i545 in xrange(_size541):
24256
            _elem546 = iprot.readString();
24257
            self.searchTerm.append(_elem546)
24258
          iprot.readListEnd()
24259
        else:
24260
          iprot.skip(ftype)
24261
      else:
24262
        iprot.skip(ftype)
24263
      iprot.readFieldEnd()
24264
    iprot.readStructEnd()
24265
 
24266
  def write(self, oprot):
24267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24269
      return
24270
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
24271
    if self.searchTerm is not None:
24272
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
24273
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
24274
      for iter547 in self.searchTerm:
24275
        oprot.writeString(iter547)
24276
      oprot.writeListEnd()
24277
      oprot.writeFieldEnd()
24278
    oprot.writeFieldStop()
24279
    oprot.writeStructEnd()
24280
 
24281
  def validate(self):
24282
    return
24283
 
24284
 
24285
  def __repr__(self):
24286
    L = ['%s=%r' % (key, value)
24287
      for key, value in self.__dict__.iteritems()]
24288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24289
 
24290
  def __eq__(self, other):
24291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24292
 
24293
  def __ne__(self, other):
24294
    return not (self == other)
24295
 
24296
class getSnapdealSearchResultCount_result:
24297
  """
24298
  Attributes:
24299
   - success
24300
  """
24301
 
24302
  thrift_spec = (
24303
    (0, TType.I64, 'success', None, None, ), # 0
24304
  )
24305
 
24306
  def __init__(self, success=None,):
24307
    self.success = success
24308
 
24309
  def read(self, iprot):
24310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24312
      return
24313
    iprot.readStructBegin()
24314
    while True:
24315
      (fname, ftype, fid) = iprot.readFieldBegin()
24316
      if ftype == TType.STOP:
24317
        break
24318
      if fid == 0:
24319
        if ftype == TType.I64:
24320
          self.success = iprot.readI64();
24321
        else:
24322
          iprot.skip(ftype)
24323
      else:
24324
        iprot.skip(ftype)
24325
      iprot.readFieldEnd()
24326
    iprot.readStructEnd()
24327
 
24328
  def write(self, oprot):
24329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24331
      return
24332
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
24333
    if self.success is not None:
24334
      oprot.writeFieldBegin('success', TType.I64, 0)
24335
      oprot.writeI64(self.success)
24336
      oprot.writeFieldEnd()
24337
    oprot.writeFieldStop()
24338
    oprot.writeStructEnd()
24339
 
24340
  def validate(self):
24341
    return
24342
 
24343
 
24344
  def __repr__(self):
24345
    L = ['%s=%r' % (key, value)
24346
      for key, value in self.__dict__.iteritems()]
24347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24348
 
24349
  def __eq__(self, other):
24350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24351
 
24352
  def __ne__(self, other):
24353
    return not (self == other)
9299 kshitij.so 24354
 
24355
class getPrefferedInsurerForItem_args:
24356
  """
24357
  Attributes:
24358
   - itemId
24359
   - insurerType
24360
  """
24361
 
24362
  thrift_spec = (
24363
    None, # 0
24364
    (1, TType.I64, 'itemId', None, None, ), # 1
24365
    (2, TType.I32, 'insurerType', None, None, ), # 2
24366
  )
24367
 
24368
  def __init__(self, itemId=None, insurerType=None,):
24369
    self.itemId = itemId
24370
    self.insurerType = insurerType
24371
 
24372
  def read(self, iprot):
24373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24375
      return
24376
    iprot.readStructBegin()
24377
    while True:
24378
      (fname, ftype, fid) = iprot.readFieldBegin()
24379
      if ftype == TType.STOP:
24380
        break
24381
      if fid == 1:
24382
        if ftype == TType.I64:
24383
          self.itemId = iprot.readI64();
24384
        else:
24385
          iprot.skip(ftype)
24386
      elif fid == 2:
24387
        if ftype == TType.I32:
24388
          self.insurerType = iprot.readI32();
24389
        else:
24390
          iprot.skip(ftype)
24391
      else:
24392
        iprot.skip(ftype)
24393
      iprot.readFieldEnd()
24394
    iprot.readStructEnd()
24395
 
24396
  def write(self, oprot):
24397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24399
      return
24400
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
24401
    if self.itemId is not None:
24402
      oprot.writeFieldBegin('itemId', TType.I64, 1)
24403
      oprot.writeI64(self.itemId)
24404
      oprot.writeFieldEnd()
24405
    if self.insurerType is not None:
24406
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
24407
      oprot.writeI32(self.insurerType)
24408
      oprot.writeFieldEnd()
24409
    oprot.writeFieldStop()
24410
    oprot.writeStructEnd()
24411
 
24412
  def validate(self):
24413
    return
24414
 
24415
 
24416
  def __repr__(self):
24417
    L = ['%s=%r' % (key, value)
24418
      for key, value in self.__dict__.iteritems()]
24419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24420
 
24421
  def __eq__(self, other):
24422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24423
 
24424
  def __ne__(self, other):
24425
    return not (self == other)
24426
 
24427
class getPrefferedInsurerForItem_result:
24428
  """
24429
  Attributes:
24430
   - success
24431
  """
24432
 
24433
  thrift_spec = (
24434
    (0, TType.I64, 'success', None, None, ), # 0
24435
  )
24436
 
24437
  def __init__(self, success=None,):
24438
    self.success = success
24439
 
24440
  def read(self, iprot):
24441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24443
      return
24444
    iprot.readStructBegin()
24445
    while True:
24446
      (fname, ftype, fid) = iprot.readFieldBegin()
24447
      if ftype == TType.STOP:
24448
        break
24449
      if fid == 0:
24450
        if ftype == TType.I64:
24451
          self.success = iprot.readI64();
24452
        else:
24453
          iprot.skip(ftype)
24454
      else:
24455
        iprot.skip(ftype)
24456
      iprot.readFieldEnd()
24457
    iprot.readStructEnd()
24458
 
24459
  def write(self, oprot):
24460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24462
      return
24463
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
24464
    if self.success is not None:
24465
      oprot.writeFieldBegin('success', TType.I64, 0)
24466
      oprot.writeI64(self.success)
24467
      oprot.writeFieldEnd()
24468
    oprot.writeFieldStop()
24469
    oprot.writeStructEnd()
24470
 
24471
  def validate(self):
24472
    return
24473
 
24474
 
24475
  def __repr__(self):
24476
    L = ['%s=%r' % (key, value)
24477
      for key, value in self.__dict__.iteritems()]
24478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24479
 
24480
  def __eq__(self, other):
24481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24482
 
24483
  def __ne__(self, other):
24484
    return not (self == other)
9456 vikram.rag 24485
 
24486
class getSnapdealItembySkuAtSnapdeal_args:
24487
  """
24488
  Attributes:
24489
   - skuAtSnapdeal
24490
  """
24491
 
24492
  thrift_spec = None
24493
  def __init__(self, skuAtSnapdeal=None,):
24494
    self.skuAtSnapdeal = skuAtSnapdeal
24495
 
24496
  def read(self, iprot):
24497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24499
      return
24500
    iprot.readStructBegin()
24501
    while True:
24502
      (fname, ftype, fid) = iprot.readFieldBegin()
24503
      if ftype == TType.STOP:
24504
        break
24505
      if fid == -1:
24506
        if ftype == TType.STRING:
24507
          self.skuAtSnapdeal = iprot.readString();
24508
        else:
24509
          iprot.skip(ftype)
24510
      else:
24511
        iprot.skip(ftype)
24512
      iprot.readFieldEnd()
24513
    iprot.readStructEnd()
24514
 
24515
  def write(self, oprot):
24516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24518
      return
24519
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
24520
    if self.skuAtSnapdeal is not None:
24521
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
24522
      oprot.writeString(self.skuAtSnapdeal)
24523
      oprot.writeFieldEnd()
24524
    oprot.writeFieldStop()
24525
    oprot.writeStructEnd()
24526
 
24527
  def validate(self):
24528
    return
24529
 
24530
 
24531
  def __repr__(self):
24532
    L = ['%s=%r' % (key, value)
24533
      for key, value in self.__dict__.iteritems()]
24534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24535
 
24536
  def __eq__(self, other):
24537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24538
 
24539
  def __ne__(self, other):
24540
    return not (self == other)
24541
 
24542
class getSnapdealItembySkuAtSnapdeal_result:
24543
  """
24544
  Attributes:
24545
   - success
24546
  """
24547
 
24548
  thrift_spec = (
24549
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
24550
  )
24551
 
24552
  def __init__(self, success=None,):
24553
    self.success = success
24554
 
24555
  def read(self, iprot):
24556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24558
      return
24559
    iprot.readStructBegin()
24560
    while True:
24561
      (fname, ftype, fid) = iprot.readFieldBegin()
24562
      if ftype == TType.STOP:
24563
        break
24564
      if fid == 0:
24565
        if ftype == TType.STRUCT:
24566
          self.success = SnapdealItem()
24567
          self.success.read(iprot)
24568
        else:
24569
          iprot.skip(ftype)
24570
      else:
24571
        iprot.skip(ftype)
24572
      iprot.readFieldEnd()
24573
    iprot.readStructEnd()
24574
 
24575
  def write(self, oprot):
24576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24578
      return
24579
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
24580
    if self.success is not None:
24581
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24582
      self.success.write(oprot)
24583
      oprot.writeFieldEnd()
24584
    oprot.writeFieldStop()
24585
    oprot.writeStructEnd()
24586
 
24587
  def validate(self):
24588
    return
24589
 
24590
 
24591
  def __repr__(self):
24592
    L = ['%s=%r' % (key, value)
24593
      for key, value in self.__dict__.iteritems()]
24594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24595
 
24596
  def __eq__(self, other):
24597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24598
 
24599
  def __ne__(self, other):
24600
    return not (self == other)
9621 manish.sha 24601
 
24602
class getProductFeedSubmit_args:
24603
  """
24604
  Attributes:
24605
   - catalogItemId
24606
  """
24607
 
24608
  thrift_spec = (
24609
    None, # 0
24610
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
24611
  )
24612
 
24613
  def __init__(self, catalogItemId=None,):
24614
    self.catalogItemId = catalogItemId
24615
 
24616
  def read(self, iprot):
24617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24619
      return
24620
    iprot.readStructBegin()
24621
    while True:
24622
      (fname, ftype, fid) = iprot.readFieldBegin()
24623
      if ftype == TType.STOP:
24624
        break
24625
      if fid == 1:
24626
        if ftype == TType.I64:
24627
          self.catalogItemId = iprot.readI64();
24628
        else:
24629
          iprot.skip(ftype)
24630
      else:
24631
        iprot.skip(ftype)
24632
      iprot.readFieldEnd()
24633
    iprot.readStructEnd()
24634
 
24635
  def write(self, oprot):
24636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24638
      return
24639
    oprot.writeStructBegin('getProductFeedSubmit_args')
24640
    if self.catalogItemId is not None:
24641
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
24642
      oprot.writeI64(self.catalogItemId)
24643
      oprot.writeFieldEnd()
24644
    oprot.writeFieldStop()
24645
    oprot.writeStructEnd()
24646
 
24647
  def validate(self):
24648
    return
24649
 
24650
 
24651
  def __repr__(self):
24652
    L = ['%s=%r' % (key, value)
24653
      for key, value in self.__dict__.iteritems()]
24654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24655
 
24656
  def __eq__(self, other):
24657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24658
 
24659
  def __ne__(self, other):
24660
    return not (self == other)
24661
 
24662
class getProductFeedSubmit_result:
24663
  """
24664
  Attributes:
24665
   - success
24666
   - cex
24667
  """
24668
 
24669
  thrift_spec = (
24670
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
24671
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24672
  )
24673
 
24674
  def __init__(self, success=None, cex=None,):
24675
    self.success = success
24676
    self.cex = cex
24677
 
24678
  def read(self, iprot):
24679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24681
      return
24682
    iprot.readStructBegin()
24683
    while True:
24684
      (fname, ftype, fid) = iprot.readFieldBegin()
24685
      if ftype == TType.STOP:
24686
        break
24687
      if fid == 0:
24688
        if ftype == TType.STRUCT:
24689
          self.success = ProductFeedSubmit()
24690
          self.success.read(iprot)
24691
        else:
24692
          iprot.skip(ftype)
24693
      elif fid == 1:
24694
        if ftype == TType.STRUCT:
24695
          self.cex = CatalogServiceException()
24696
          self.cex.read(iprot)
24697
        else:
24698
          iprot.skip(ftype)
24699
      else:
24700
        iprot.skip(ftype)
24701
      iprot.readFieldEnd()
24702
    iprot.readStructEnd()
24703
 
24704
  def write(self, oprot):
24705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24707
      return
24708
    oprot.writeStructBegin('getProductFeedSubmit_result')
24709
    if self.success is not None:
24710
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24711
      self.success.write(oprot)
24712
      oprot.writeFieldEnd()
24713
    if self.cex is not None:
24714
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24715
      self.cex.write(oprot)
24716
      oprot.writeFieldEnd()
24717
    oprot.writeFieldStop()
24718
    oprot.writeStructEnd()
24719
 
24720
  def validate(self):
24721
    return
24722
 
24723
 
24724
  def __repr__(self):
24725
    L = ['%s=%r' % (key, value)
24726
      for key, value in self.__dict__.iteritems()]
24727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24728
 
24729
  def __eq__(self, other):
24730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24731
 
24732
  def __ne__(self, other):
24733
    return not (self == other)
24734
 
24735
class addProductFeedSubmit_args:
24736
  """
24737
  Attributes:
24738
   - productFeedSubmit
24739
  """
24740
 
24741
  thrift_spec = (
24742
    None, # 0
24743
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24744
  )
24745
 
24746
  def __init__(self, productFeedSubmit=None,):
24747
    self.productFeedSubmit = productFeedSubmit
24748
 
24749
  def read(self, iprot):
24750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24752
      return
24753
    iprot.readStructBegin()
24754
    while True:
24755
      (fname, ftype, fid) = iprot.readFieldBegin()
24756
      if ftype == TType.STOP:
24757
        break
24758
      if fid == 1:
24759
        if ftype == TType.STRUCT:
24760
          self.productFeedSubmit = ProductFeedSubmit()
24761
          self.productFeedSubmit.read(iprot)
24762
        else:
24763
          iprot.skip(ftype)
24764
      else:
24765
        iprot.skip(ftype)
24766
      iprot.readFieldEnd()
24767
    iprot.readStructEnd()
24768
 
24769
  def write(self, oprot):
24770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24772
      return
24773
    oprot.writeStructBegin('addProductFeedSubmit_args')
24774
    if self.productFeedSubmit is not None:
24775
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24776
      self.productFeedSubmit.write(oprot)
24777
      oprot.writeFieldEnd()
24778
    oprot.writeFieldStop()
24779
    oprot.writeStructEnd()
24780
 
24781
  def validate(self):
24782
    return
24783
 
24784
 
24785
  def __repr__(self):
24786
    L = ['%s=%r' % (key, value)
24787
      for key, value in self.__dict__.iteritems()]
24788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24789
 
24790
  def __eq__(self, other):
24791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24792
 
24793
  def __ne__(self, other):
24794
    return not (self == other)
24795
 
24796
class addProductFeedSubmit_result:
24797
  """
24798
  Attributes:
24799
   - success
24800
   - cex
24801
  """
24802
 
24803
  thrift_spec = (
24804
    (0, TType.BOOL, 'success', None, None, ), # 0
24805
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24806
  )
24807
 
24808
  def __init__(self, success=None, cex=None,):
24809
    self.success = success
24810
    self.cex = cex
24811
 
24812
  def read(self, iprot):
24813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24815
      return
24816
    iprot.readStructBegin()
24817
    while True:
24818
      (fname, ftype, fid) = iprot.readFieldBegin()
24819
      if ftype == TType.STOP:
24820
        break
24821
      if fid == 0:
24822
        if ftype == TType.BOOL:
24823
          self.success = iprot.readBool();
24824
        else:
24825
          iprot.skip(ftype)
24826
      elif fid == 1:
24827
        if ftype == TType.STRUCT:
24828
          self.cex = CatalogServiceException()
24829
          self.cex.read(iprot)
24830
        else:
24831
          iprot.skip(ftype)
24832
      else:
24833
        iprot.skip(ftype)
24834
      iprot.readFieldEnd()
24835
    iprot.readStructEnd()
24836
 
24837
  def write(self, oprot):
24838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24840
      return
24841
    oprot.writeStructBegin('addProductFeedSubmit_result')
24842
    if self.success is not None:
24843
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24844
      oprot.writeBool(self.success)
24845
      oprot.writeFieldEnd()
24846
    if self.cex is not None:
24847
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24848
      self.cex.write(oprot)
24849
      oprot.writeFieldEnd()
24850
    oprot.writeFieldStop()
24851
    oprot.writeStructEnd()
24852
 
24853
  def validate(self):
24854
    return
24855
 
24856
 
24857
  def __repr__(self):
24858
    L = ['%s=%r' % (key, value)
24859
      for key, value in self.__dict__.iteritems()]
24860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24861
 
24862
  def __eq__(self, other):
24863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24864
 
24865
  def __ne__(self, other):
24866
    return not (self == other)
24867
 
24868
class updateProductFeedSubmit_args:
24869
  """
24870
  Attributes:
24871
   - productFeedSubmit
24872
  """
24873
 
24874
  thrift_spec = (
24875
    None, # 0
24876
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
24877
  )
24878
 
24879
  def __init__(self, productFeedSubmit=None,):
24880
    self.productFeedSubmit = productFeedSubmit
24881
 
24882
  def read(self, iprot):
24883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24885
      return
24886
    iprot.readStructBegin()
24887
    while True:
24888
      (fname, ftype, fid) = iprot.readFieldBegin()
24889
      if ftype == TType.STOP:
24890
        break
24891
      if fid == 1:
24892
        if ftype == TType.STRUCT:
24893
          self.productFeedSubmit = ProductFeedSubmit()
24894
          self.productFeedSubmit.read(iprot)
24895
        else:
24896
          iprot.skip(ftype)
24897
      else:
24898
        iprot.skip(ftype)
24899
      iprot.readFieldEnd()
24900
    iprot.readStructEnd()
24901
 
24902
  def write(self, oprot):
24903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24905
      return
24906
    oprot.writeStructBegin('updateProductFeedSubmit_args')
24907
    if self.productFeedSubmit is not None:
24908
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
24909
      self.productFeedSubmit.write(oprot)
24910
      oprot.writeFieldEnd()
24911
    oprot.writeFieldStop()
24912
    oprot.writeStructEnd()
24913
 
24914
  def validate(self):
24915
    return
24916
 
24917
 
24918
  def __repr__(self):
24919
    L = ['%s=%r' % (key, value)
24920
      for key, value in self.__dict__.iteritems()]
24921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24922
 
24923
  def __eq__(self, other):
24924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24925
 
24926
  def __ne__(self, other):
24927
    return not (self == other)
24928
 
24929
class updateProductFeedSubmit_result:
24930
  """
24931
  Attributes:
24932
   - success
24933
   - cex
24934
  """
24935
 
24936
  thrift_spec = (
24937
    (0, TType.BOOL, 'success', None, None, ), # 0
24938
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
24939
  )
24940
 
24941
  def __init__(self, success=None, cex=None,):
24942
    self.success = success
24943
    self.cex = cex
24944
 
24945
  def read(self, iprot):
24946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24948
      return
24949
    iprot.readStructBegin()
24950
    while True:
24951
      (fname, ftype, fid) = iprot.readFieldBegin()
24952
      if ftype == TType.STOP:
24953
        break
24954
      if fid == 0:
24955
        if ftype == TType.BOOL:
24956
          self.success = iprot.readBool();
24957
        else:
24958
          iprot.skip(ftype)
24959
      elif fid == 1:
24960
        if ftype == TType.STRUCT:
24961
          self.cex = CatalogServiceException()
24962
          self.cex.read(iprot)
24963
        else:
24964
          iprot.skip(ftype)
24965
      else:
24966
        iprot.skip(ftype)
24967
      iprot.readFieldEnd()
24968
    iprot.readStructEnd()
24969
 
24970
  def write(self, oprot):
24971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24973
      return
24974
    oprot.writeStructBegin('updateProductFeedSubmit_result')
24975
    if self.success is not None:
24976
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24977
      oprot.writeBool(self.success)
24978
      oprot.writeFieldEnd()
24979
    if self.cex is not None:
24980
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
24981
      self.cex.write(oprot)
24982
      oprot.writeFieldEnd()
24983
    oprot.writeFieldStop()
24984
    oprot.writeStructEnd()
24985
 
24986
  def validate(self):
24987
    return
24988
 
24989
 
24990
  def __repr__(self):
24991
    L = ['%s=%r' % (key, value)
24992
      for key, value in self.__dict__.iteritems()]
24993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24994
 
24995
  def __eq__(self, other):
24996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24997
 
24998
  def __ne__(self, other):
24999
    return not (self == other)
25000
 
25001
class deleteProductFeedSubmit_args:
25002
  """
25003
  Attributes:
25004
   - catalogItemId
25005
  """
25006
 
25007
  thrift_spec = (
25008
    None, # 0
25009
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
25010
  )
25011
 
25012
  def __init__(self, catalogItemId=None,):
25013
    self.catalogItemId = catalogItemId
25014
 
25015
  def read(self, iprot):
25016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25018
      return
25019
    iprot.readStructBegin()
25020
    while True:
25021
      (fname, ftype, fid) = iprot.readFieldBegin()
25022
      if ftype == TType.STOP:
25023
        break
25024
      if fid == 1:
25025
        if ftype == TType.I64:
25026
          self.catalogItemId = iprot.readI64();
25027
        else:
25028
          iprot.skip(ftype)
25029
      else:
25030
        iprot.skip(ftype)
25031
      iprot.readFieldEnd()
25032
    iprot.readStructEnd()
25033
 
25034
  def write(self, oprot):
25035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25037
      return
25038
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
25039
    if self.catalogItemId is not None:
25040
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
25041
      oprot.writeI64(self.catalogItemId)
25042
      oprot.writeFieldEnd()
25043
    oprot.writeFieldStop()
25044
    oprot.writeStructEnd()
25045
 
25046
  def validate(self):
25047
    return
25048
 
25049
 
25050
  def __repr__(self):
25051
    L = ['%s=%r' % (key, value)
25052
      for key, value in self.__dict__.iteritems()]
25053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25054
 
25055
  def __eq__(self, other):
25056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25057
 
25058
  def __ne__(self, other):
25059
    return not (self == other)
25060
 
25061
class deleteProductFeedSubmit_result:
25062
  """
25063
  Attributes:
25064
   - success
25065
   - cex
25066
  """
25067
 
25068
  thrift_spec = (
25069
    (0, TType.BOOL, 'success', None, None, ), # 0
25070
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25071
  )
25072
 
25073
  def __init__(self, success=None, cex=None,):
25074
    self.success = success
25075
    self.cex = cex
25076
 
25077
  def read(self, iprot):
25078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25080
      return
25081
    iprot.readStructBegin()
25082
    while True:
25083
      (fname, ftype, fid) = iprot.readFieldBegin()
25084
      if ftype == TType.STOP:
25085
        break
25086
      if fid == 0:
25087
        if ftype == TType.BOOL:
25088
          self.success = iprot.readBool();
25089
        else:
25090
          iprot.skip(ftype)
25091
      elif fid == 1:
25092
        if ftype == TType.STRUCT:
25093
          self.cex = CatalogServiceException()
25094
          self.cex.read(iprot)
25095
        else:
25096
          iprot.skip(ftype)
25097
      else:
25098
        iprot.skip(ftype)
25099
      iprot.readFieldEnd()
25100
    iprot.readStructEnd()
25101
 
25102
  def write(self, oprot):
25103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25105
      return
25106
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
25107
    if self.success is not None:
25108
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25109
      oprot.writeBool(self.success)
25110
      oprot.writeFieldEnd()
25111
    if self.cex is not None:
25112
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25113
      self.cex.write(oprot)
25114
      oprot.writeFieldEnd()
25115
    oprot.writeFieldStop()
25116
    oprot.writeStructEnd()
25117
 
25118
  def validate(self):
25119
    return
25120
 
25121
 
25122
  def __repr__(self):
25123
    L = ['%s=%r' % (key, value)
25124
      for key, value in self.__dict__.iteritems()]
25125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25126
 
25127
  def __eq__(self, other):
25128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25129
 
25130
  def __ne__(self, other):
25131
    return not (self == other)
25132
 
25133
class getAllProductFeedSubmit_args:
25134
 
25135
  thrift_spec = (
25136
  )
25137
 
25138
  def read(self, iprot):
25139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25141
      return
25142
    iprot.readStructBegin()
25143
    while True:
25144
      (fname, ftype, fid) = iprot.readFieldBegin()
25145
      if ftype == TType.STOP:
25146
        break
25147
      else:
25148
        iprot.skip(ftype)
25149
      iprot.readFieldEnd()
25150
    iprot.readStructEnd()
25151
 
25152
  def write(self, oprot):
25153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25155
      return
25156
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
25157
    oprot.writeFieldStop()
25158
    oprot.writeStructEnd()
25159
 
25160
  def validate(self):
25161
    return
25162
 
25163
 
25164
  def __repr__(self):
25165
    L = ['%s=%r' % (key, value)
25166
      for key, value in self.__dict__.iteritems()]
25167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25168
 
25169
  def __eq__(self, other):
25170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25171
 
25172
  def __ne__(self, other):
25173
    return not (self == other)
25174
 
25175
class getAllProductFeedSubmit_result:
25176
  """
25177
  Attributes:
25178
   - success
25179
   - cex
25180
  """
25181
 
25182
  thrift_spec = (
25183
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
25184
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
25185
  )
25186
 
25187
  def __init__(self, success=None, cex=None,):
25188
    self.success = success
25189
    self.cex = cex
25190
 
25191
  def read(self, iprot):
25192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25194
      return
25195
    iprot.readStructBegin()
25196
    while True:
25197
      (fname, ftype, fid) = iprot.readFieldBegin()
25198
      if ftype == TType.STOP:
25199
        break
25200
      if fid == 0:
25201
        if ftype == TType.LIST:
25202
          self.success = []
25203
          (_etype551, _size548) = iprot.readListBegin()
25204
          for _i552 in xrange(_size548):
25205
            _elem553 = ProductFeedSubmit()
25206
            _elem553.read(iprot)
25207
            self.success.append(_elem553)
25208
          iprot.readListEnd()
25209
        else:
25210
          iprot.skip(ftype)
25211
      elif fid == 1:
25212
        if ftype == TType.STRUCT:
25213
          self.cex = CatalogServiceException()
25214
          self.cex.read(iprot)
25215
        else:
25216
          iprot.skip(ftype)
25217
      else:
25218
        iprot.skip(ftype)
25219
      iprot.readFieldEnd()
25220
    iprot.readStructEnd()
25221
 
25222
  def write(self, oprot):
25223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25225
      return
25226
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
25227
    if self.success is not None:
25228
      oprot.writeFieldBegin('success', TType.LIST, 0)
25229
      oprot.writeListBegin(TType.STRUCT, len(self.success))
25230
      for iter554 in self.success:
25231
        iter554.write(oprot)
25232
      oprot.writeListEnd()
25233
      oprot.writeFieldEnd()
25234
    if self.cex is not None:
25235
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
25236
      self.cex.write(oprot)
25237
      oprot.writeFieldEnd()
25238
    oprot.writeFieldStop()
25239
    oprot.writeStructEnd()
25240
 
25241
  def validate(self):
25242
    return
25243
 
25244
 
25245
  def __repr__(self):
25246
    L = ['%s=%r' % (key, value)
25247
      for key, value in self.__dict__.iteritems()]
25248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25249
 
25250
  def __eq__(self, other):
25251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25252
 
25253
  def __ne__(self, other):
25254
    return not (self == other)
9724 kshitij.so 25255
 
25256
class getMarketplacedetailsForItem_args:
25257
  """
25258
  Attributes:
25259
   - itemId
25260
   - sourceId
25261
  """
25262
 
25263
  thrift_spec = (
25264
    None, # 0
25265
    (1, TType.I64, 'itemId', None, None, ), # 1
25266
    (2, TType.I64, 'sourceId', None, None, ), # 2
25267
  )
25268
 
25269
  def __init__(self, itemId=None, sourceId=None,):
25270
    self.itemId = itemId
25271
    self.sourceId = sourceId
25272
 
25273
  def read(self, iprot):
25274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25276
      return
25277
    iprot.readStructBegin()
25278
    while True:
25279
      (fname, ftype, fid) = iprot.readFieldBegin()
25280
      if ftype == TType.STOP:
25281
        break
25282
      if fid == 1:
25283
        if ftype == TType.I64:
25284
          self.itemId = iprot.readI64();
25285
        else:
25286
          iprot.skip(ftype)
25287
      elif fid == 2:
25288
        if ftype == TType.I64:
25289
          self.sourceId = iprot.readI64();
25290
        else:
25291
          iprot.skip(ftype)
25292
      else:
25293
        iprot.skip(ftype)
25294
      iprot.readFieldEnd()
25295
    iprot.readStructEnd()
25296
 
25297
  def write(self, oprot):
25298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25300
      return
25301
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
25302
    if self.itemId is not None:
25303
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25304
      oprot.writeI64(self.itemId)
25305
      oprot.writeFieldEnd()
25306
    if self.sourceId is not None:
25307
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
25308
      oprot.writeI64(self.sourceId)
25309
      oprot.writeFieldEnd()
25310
    oprot.writeFieldStop()
25311
    oprot.writeStructEnd()
25312
 
25313
  def validate(self):
25314
    return
25315
 
25316
 
25317
  def __repr__(self):
25318
    L = ['%s=%r' % (key, value)
25319
      for key, value in self.__dict__.iteritems()]
25320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25321
 
25322
  def __eq__(self, other):
25323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25324
 
25325
  def __ne__(self, other):
25326
    return not (self == other)
25327
 
25328
class getMarketplacedetailsForItem_result:
25329
  """
25330
  Attributes:
25331
   - success
25332
  """
25333
 
25334
  thrift_spec = (
25335
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
25336
  )
25337
 
25338
  def __init__(self, success=None,):
25339
    self.success = success
25340
 
25341
  def read(self, iprot):
25342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25344
      return
25345
    iprot.readStructBegin()
25346
    while True:
25347
      (fname, ftype, fid) = iprot.readFieldBegin()
25348
      if ftype == TType.STOP:
25349
        break
25350
      if fid == 0:
25351
        if ftype == TType.STRUCT:
25352
          self.success = MarketplaceItems()
25353
          self.success.read(iprot)
25354
        else:
25355
          iprot.skip(ftype)
25356
      else:
25357
        iprot.skip(ftype)
25358
      iprot.readFieldEnd()
25359
    iprot.readStructEnd()
25360
 
25361
  def write(self, oprot):
25362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25364
      return
25365
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
25366
    if self.success is not None:
25367
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25368
      self.success.write(oprot)
25369
      oprot.writeFieldEnd()
25370
    oprot.writeFieldStop()
25371
    oprot.writeStructEnd()
25372
 
25373
  def validate(self):
25374
    return
25375
 
25376
 
25377
  def __repr__(self):
25378
    L = ['%s=%r' % (key, value)
25379
      for key, value in self.__dict__.iteritems()]
25380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25381
 
25382
  def __eq__(self, other):
25383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25384
 
25385
  def __ne__(self, other):
25386
    return not (self == other)
25387
 
25388
class updateMarketplaceAttributesForItem_args:
25389
  """
25390
  Attributes:
25391
   - marketPlaceItem
25392
  """
25393
 
25394
  thrift_spec = (
25395
    None, # 0
25396
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
25397
  )
25398
 
25399
  def __init__(self, marketPlaceItem=None,):
25400
    self.marketPlaceItem = marketPlaceItem
25401
 
25402
  def read(self, iprot):
25403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25405
      return
25406
    iprot.readStructBegin()
25407
    while True:
25408
      (fname, ftype, fid) = iprot.readFieldBegin()
25409
      if ftype == TType.STOP:
25410
        break
25411
      if fid == 1:
25412
        if ftype == TType.STRUCT:
25413
          self.marketPlaceItem = MarketplaceItems()
25414
          self.marketPlaceItem.read(iprot)
25415
        else:
25416
          iprot.skip(ftype)
25417
      else:
25418
        iprot.skip(ftype)
25419
      iprot.readFieldEnd()
25420
    iprot.readStructEnd()
25421
 
25422
  def write(self, oprot):
25423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25425
      return
25426
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
25427
    if self.marketPlaceItem is not None:
25428
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
25429
      self.marketPlaceItem.write(oprot)
25430
      oprot.writeFieldEnd()
25431
    oprot.writeFieldStop()
25432
    oprot.writeStructEnd()
25433
 
25434
  def validate(self):
25435
    return
25436
 
25437
 
25438
  def __repr__(self):
25439
    L = ['%s=%r' % (key, value)
25440
      for key, value in self.__dict__.iteritems()]
25441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25442
 
25443
  def __eq__(self, other):
25444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25445
 
25446
  def __ne__(self, other):
25447
    return not (self == other)
25448
 
25449
class updateMarketplaceAttributesForItem_result:
25450
  """
25451
  Attributes:
25452
   - success
25453
  """
25454
 
25455
  thrift_spec = (
25456
    (0, TType.BOOL, 'success', None, None, ), # 0
25457
  )
25458
 
25459
  def __init__(self, success=None,):
25460
    self.success = success
25461
 
25462
  def read(self, iprot):
25463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25465
      return
25466
    iprot.readStructBegin()
25467
    while True:
25468
      (fname, ftype, fid) = iprot.readFieldBegin()
25469
      if ftype == TType.STOP:
25470
        break
25471
      if fid == 0:
25472
        if ftype == TType.BOOL:
25473
          self.success = iprot.readBool();
25474
        else:
25475
          iprot.skip(ftype)
25476
      else:
25477
        iprot.skip(ftype)
25478
      iprot.readFieldEnd()
25479
    iprot.readStructEnd()
25480
 
25481
  def write(self, oprot):
25482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25484
      return
25485
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
25486
    if self.success is not None:
25487
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25488
      oprot.writeBool(self.success)
25489
      oprot.writeFieldEnd()
25490
    oprot.writeFieldStop()
25491
    oprot.writeStructEnd()
25492
 
25493
  def validate(self):
25494
    return
25495
 
25496
 
25497
  def __repr__(self):
25498
    L = ['%s=%r' % (key, value)
25499
      for key, value in self.__dict__.iteritems()]
25500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25501
 
25502
  def __eq__(self, other):
25503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25504
 
25505
  def __ne__(self, other):
25506
    return not (self == other)
9776 vikram.rag 25507
 
9779 kshitij.so 25508
class getCostingForMarketplace_args:
25509
  """
25510
  Attributes:
25511
   - source
25512
   - item_id
25513
  """
25514
 
25515
  thrift_spec = (
25516
    None, # 0
25517
    (1, TType.I64, 'source', None, None, ), # 1
25518
    (2, TType.I64, 'item_id', None, None, ), # 2
25519
  )
25520
 
25521
  def __init__(self, source=None, item_id=None,):
25522
    self.source = source
25523
    self.item_id = item_id
25524
 
25525
  def read(self, iprot):
25526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25528
      return
25529
    iprot.readStructBegin()
25530
    while True:
25531
      (fname, ftype, fid) = iprot.readFieldBegin()
25532
      if ftype == TType.STOP:
25533
        break
25534
      if fid == 1:
25535
        if ftype == TType.I64:
25536
          self.source = iprot.readI64();
25537
        else:
25538
          iprot.skip(ftype)
25539
      elif fid == 2:
25540
        if ftype == TType.I64:
25541
          self.item_id = iprot.readI64();
25542
        else:
25543
          iprot.skip(ftype)
25544
      else:
25545
        iprot.skip(ftype)
25546
      iprot.readFieldEnd()
25547
    iprot.readStructEnd()
25548
 
25549
  def write(self, oprot):
25550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25552
      return
25553
    oprot.writeStructBegin('getCostingForMarketplace_args')
25554
    if self.source is not None:
25555
      oprot.writeFieldBegin('source', TType.I64, 1)
25556
      oprot.writeI64(self.source)
25557
      oprot.writeFieldEnd()
25558
    if self.item_id is not None:
25559
      oprot.writeFieldBegin('item_id', TType.I64, 2)
25560
      oprot.writeI64(self.item_id)
25561
      oprot.writeFieldEnd()
25562
    oprot.writeFieldStop()
25563
    oprot.writeStructEnd()
25564
 
25565
  def validate(self):
25566
    return
25567
 
25568
 
25569
  def __repr__(self):
25570
    L = ['%s=%r' % (key, value)
25571
      for key, value in self.__dict__.iteritems()]
25572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25573
 
25574
  def __eq__(self, other):
25575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25576
 
25577
  def __ne__(self, other):
25578
    return not (self == other)
25579
 
25580
class getCostingForMarketplace_result:
25581
  """
25582
  Attributes:
25583
   - success
25584
  """
25585
 
25586
  thrift_spec = (
25587
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
25588
  )
25589
 
25590
  def __init__(self, success=None,):
25591
    self.success = success
25592
 
25593
  def read(self, iprot):
25594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25596
      return
25597
    iprot.readStructBegin()
25598
    while True:
25599
      (fname, ftype, fid) = iprot.readFieldBegin()
25600
      if ftype == TType.STOP:
25601
        break
25602
      if fid == 0:
25603
        if ftype == TType.STRUCT:
25604
          self.success = MarketplacePercentage()
25605
          self.success.read(iprot)
25606
        else:
25607
          iprot.skip(ftype)
25608
      else:
25609
        iprot.skip(ftype)
25610
      iprot.readFieldEnd()
25611
    iprot.readStructEnd()
25612
 
25613
  def write(self, oprot):
25614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25616
      return
25617
    oprot.writeStructBegin('getCostingForMarketplace_result')
25618
    if self.success is not None:
25619
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25620
      self.success.write(oprot)
25621
      oprot.writeFieldEnd()
25622
    oprot.writeFieldStop()
25623
    oprot.writeStructEnd()
25624
 
25625
  def validate(self):
25626
    return
25627
 
25628
 
25629
  def __repr__(self):
25630
    L = ['%s=%r' % (key, value)
25631
      for key, value in self.__dict__.iteritems()]
25632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25633
 
25634
  def __eq__(self, other):
25635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25636
 
25637
  def __ne__(self, other):
25638
    return not (self == other)
25639
 
9776 vikram.rag 25640
class getMarketPlaceItemsForPriceUpdate_args:
25641
  """
25642
  Attributes:
25643
   - source
25644
  """
25645
 
25646
  thrift_spec = (
25647
    None, # 0
25648
    (1, TType.I64, 'source', None, None, ), # 1
25649
  )
25650
 
25651
  def __init__(self, source=None,):
25652
    self.source = source
25653
 
25654
  def read(self, iprot):
25655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25657
      return
25658
    iprot.readStructBegin()
25659
    while True:
25660
      (fname, ftype, fid) = iprot.readFieldBegin()
25661
      if ftype == TType.STOP:
25662
        break
25663
      if fid == 1:
25664
        if ftype == TType.I64:
25665
          self.source = iprot.readI64();
25666
        else:
25667
          iprot.skip(ftype)
25668
      else:
25669
        iprot.skip(ftype)
25670
      iprot.readFieldEnd()
25671
    iprot.readStructEnd()
25672
 
25673
  def write(self, oprot):
25674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25676
      return
25677
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
25678
    if self.source is not None:
25679
      oprot.writeFieldBegin('source', TType.I64, 1)
25680
      oprot.writeI64(self.source)
25681
      oprot.writeFieldEnd()
25682
    oprot.writeFieldStop()
25683
    oprot.writeStructEnd()
25684
 
25685
  def validate(self):
25686
    return
25687
 
25688
 
25689
  def __repr__(self):
25690
    L = ['%s=%r' % (key, value)
25691
      for key, value in self.__dict__.iteritems()]
25692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25693
 
25694
  def __eq__(self, other):
25695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25696
 
25697
  def __ne__(self, other):
25698
    return not (self == other)
25699
 
25700
class getMarketPlaceItemsForPriceUpdate_result:
25701
  """
25702
  Attributes:
25703
   - success
25704
  """
25705
 
25706
  thrift_spec = (
25707
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
25708
  )
25709
 
25710
  def __init__(self, success=None,):
25711
    self.success = success
25712
 
25713
  def read(self, iprot):
25714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25716
      return
25717
    iprot.readStructBegin()
25718
    while True:
25719
      (fname, ftype, fid) = iprot.readFieldBegin()
25720
      if ftype == TType.STOP:
25721
        break
25722
      if fid == 0:
25723
        if ftype == TType.LIST:
25724
          self.success = []
25725
          (_etype558, _size555) = iprot.readListBegin()
25726
          for _i559 in xrange(_size555):
25727
            _elem560 = MarketPlaceItemPrice()
25728
            _elem560.read(iprot)
25729
            self.success.append(_elem560)
25730
          iprot.readListEnd()
25731
        else:
25732
          iprot.skip(ftype)
25733
      else:
25734
        iprot.skip(ftype)
25735
      iprot.readFieldEnd()
25736
    iprot.readStructEnd()
25737
 
25738
  def write(self, oprot):
25739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25741
      return
25742
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
25743
    if self.success is not None:
25744
      oprot.writeFieldBegin('success', TType.LIST, 0)
25745
      oprot.writeListBegin(TType.STRUCT, len(self.success))
25746
      for iter561 in self.success:
25747
        iter561.write(oprot)
25748
      oprot.writeListEnd()
25749
      oprot.writeFieldEnd()
25750
    oprot.writeFieldStop()
25751
    oprot.writeStructEnd()
25752
 
25753
  def validate(self):
25754
    return
25755
 
25756
 
25757
  def __repr__(self):
25758
    L = ['%s=%r' % (key, value)
25759
      for key, value in self.__dict__.iteritems()]
25760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25761
 
25762
  def __eq__(self, other):
25763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25764
 
25765
  def __ne__(self, other):
25766
    return not (self == other)
25767
 
25768
class updateMarketPlacePriceUpdateStatus_args:
25769
  """
25770
  Attributes:
25771
   - skulist
25772
   - timestamp
9816 kshitij.so 25773
   - source
9776 vikram.rag 25774
  """
25775
 
25776
  thrift_spec = (
25777
    None, # 0
25778
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
25779
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 25780
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 25781
  )
25782
 
9816 kshitij.so 25783
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 25784
    self.skulist = skulist
25785
    self.timestamp = timestamp
9816 kshitij.so 25786
    self.source = source
9776 vikram.rag 25787
 
25788
  def read(self, iprot):
25789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25791
      return
25792
    iprot.readStructBegin()
25793
    while True:
25794
      (fname, ftype, fid) = iprot.readFieldBegin()
25795
      if ftype == TType.STOP:
25796
        break
25797
      if fid == 1:
25798
        if ftype == TType.LIST:
25799
          self.skulist = []
25800
          (_etype565, _size562) = iprot.readListBegin()
25801
          for _i566 in xrange(_size562):
25802
            _elem567 = iprot.readI64();
25803
            self.skulist.append(_elem567)
25804
          iprot.readListEnd()
25805
        else:
25806
          iprot.skip(ftype)
25807
      elif fid == 2:
25808
        if ftype == TType.I64:
25809
          self.timestamp = iprot.readI64();
25810
        else:
25811
          iprot.skip(ftype)
9816 kshitij.so 25812
      elif fid == 3:
25813
        if ftype == TType.I64:
25814
          self.source = iprot.readI64();
25815
        else:
25816
          iprot.skip(ftype)
9776 vikram.rag 25817
      else:
25818
        iprot.skip(ftype)
25819
      iprot.readFieldEnd()
25820
    iprot.readStructEnd()
25821
 
25822
  def write(self, oprot):
25823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25825
      return
25826
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
25827
    if self.skulist is not None:
25828
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
25829
      oprot.writeListBegin(TType.I64, len(self.skulist))
25830
      for iter568 in self.skulist:
25831
        oprot.writeI64(iter568)
25832
      oprot.writeListEnd()
25833
      oprot.writeFieldEnd()
25834
    if self.timestamp is not None:
25835
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
25836
      oprot.writeI64(self.timestamp)
25837
      oprot.writeFieldEnd()
9816 kshitij.so 25838
    if self.source is not None:
25839
      oprot.writeFieldBegin('source', TType.I64, 3)
25840
      oprot.writeI64(self.source)
25841
      oprot.writeFieldEnd()
9776 vikram.rag 25842
    oprot.writeFieldStop()
25843
    oprot.writeStructEnd()
25844
 
25845
  def validate(self):
25846
    return
25847
 
25848
 
25849
  def __repr__(self):
25850
    L = ['%s=%r' % (key, value)
25851
      for key, value in self.__dict__.iteritems()]
25852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25853
 
25854
  def __eq__(self, other):
25855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25856
 
25857
  def __ne__(self, other):
25858
    return not (self == other)
25859
 
25860
class updateMarketPlacePriceUpdateStatus_result:
25861
 
25862
  thrift_spec = (
25863
  )
25864
 
25865
  def read(self, iprot):
25866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25868
      return
25869
    iprot.readStructBegin()
25870
    while True:
25871
      (fname, ftype, fid) = iprot.readFieldBegin()
25872
      if ftype == TType.STOP:
25873
        break
25874
      else:
25875
        iprot.skip(ftype)
25876
      iprot.readFieldEnd()
25877
    iprot.readStructEnd()
25878
 
25879
  def write(self, oprot):
25880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25882
      return
25883
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
25884
    oprot.writeFieldStop()
25885
    oprot.writeStructEnd()
25886
 
25887
  def validate(self):
25888
    return
25889
 
25890
 
25891
  def __repr__(self):
25892
    L = ['%s=%r' % (key, value)
25893
      for key, value in self.__dict__.iteritems()]
25894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25895
 
25896
  def __eq__(self, other):
25897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25898
 
25899
  def __ne__(self, other):
25900
    return not (self == other)
9861 rajveer 25901
 
25902
class updateItemHoldInventory_args:
25903
  """
25904
  Attributes:
25905
   - itemHoldMap
25906
  """
25907
 
25908
  thrift_spec = (
25909
    None, # 0
25910
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
25911
  )
25912
 
25913
  def __init__(self, itemHoldMap=None,):
25914
    self.itemHoldMap = itemHoldMap
25915
 
25916
  def read(self, iprot):
25917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25919
      return
25920
    iprot.readStructBegin()
25921
    while True:
25922
      (fname, ftype, fid) = iprot.readFieldBegin()
25923
      if ftype == TType.STOP:
25924
        break
25925
      if fid == 1:
25926
        if ftype == TType.MAP:
25927
          self.itemHoldMap = {}
25928
          (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin() 
25929
          for _i573 in xrange(_size569):
25930
            _key574 = iprot.readI64();
25931
            _val575 = iprot.readI64();
25932
            self.itemHoldMap[_key574] = _val575
25933
          iprot.readMapEnd()
25934
        else:
25935
          iprot.skip(ftype)
25936
      else:
25937
        iprot.skip(ftype)
25938
      iprot.readFieldEnd()
25939
    iprot.readStructEnd()
25940
 
25941
  def write(self, oprot):
25942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25944
      return
25945
    oprot.writeStructBegin('updateItemHoldInventory_args')
25946
    if self.itemHoldMap is not None:
25947
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
25948
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
25949
      for kiter576,viter577 in self.itemHoldMap.items():
25950
        oprot.writeI64(kiter576)
25951
        oprot.writeI64(viter577)
25952
      oprot.writeMapEnd()
25953
      oprot.writeFieldEnd()
25954
    oprot.writeFieldStop()
25955
    oprot.writeStructEnd()
25956
 
25957
  def validate(self):
25958
    return
25959
 
25960
 
25961
  def __repr__(self):
25962
    L = ['%s=%r' % (key, value)
25963
      for key, value in self.__dict__.iteritems()]
25964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25965
 
25966
  def __eq__(self, other):
25967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25968
 
25969
  def __ne__(self, other):
25970
    return not (self == other)
25971
 
25972
class updateItemHoldInventory_result:
25973
 
25974
  thrift_spec = (
25975
  )
25976
 
25977
  def read(self, iprot):
25978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25980
      return
25981
    iprot.readStructBegin()
25982
    while True:
25983
      (fname, ftype, fid) = iprot.readFieldBegin()
25984
      if ftype == TType.STOP:
25985
        break
25986
      else:
25987
        iprot.skip(ftype)
25988
      iprot.readFieldEnd()
25989
    iprot.readStructEnd()
25990
 
25991
  def write(self, oprot):
25992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25994
      return
25995
    oprot.writeStructBegin('updateItemHoldInventory_result')
25996
    oprot.writeFieldStop()
25997
    oprot.writeStructEnd()
25998
 
25999
  def validate(self):
26000
    return
26001
 
26002
 
26003
  def __repr__(self):
26004
    L = ['%s=%r' % (key, value)
26005
      for key, value in self.__dict__.iteritems()]
26006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26007
 
26008
  def __eq__(self, other):
26009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26010
 
26011
  def __ne__(self, other):
26012
    return not (self == other)
9895 vikram.rag 26013
 
26014
class updateNlcAtMarketplaces_args:
26015
  """
26016
  Attributes:
26017
   - item_id
26018
   - vendor_id
26019
   - nlc
26020
  """
26021
 
26022
  thrift_spec = None
26023
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
26024
    self.item_id = item_id
26025
    self.vendor_id = vendor_id
26026
    self.nlc = nlc
26027
 
26028
  def read(self, iprot):
26029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26031
      return
26032
    iprot.readStructBegin()
26033
    while True:
26034
      (fname, ftype, fid) = iprot.readFieldBegin()
26035
      if ftype == TType.STOP:
26036
        break
26037
      if fid == 1:
26038
        if ftype == TType.I64:
26039
          self.item_id = iprot.readI64();
26040
        else:
26041
          iprot.skip(ftype)
26042
      elif fid == 2:
26043
        if ftype == TType.I64:
26044
          self.vendor_id = iprot.readI64();
26045
        else:
26046
          iprot.skip(ftype)
26047
      elif fid == -1:
26048
        if ftype == TType.DOUBLE:
26049
          self.nlc = iprot.readDouble();
26050
        else:
26051
          iprot.skip(ftype)
26052
      else:
26053
        iprot.skip(ftype)
26054
      iprot.readFieldEnd()
26055
    iprot.readStructEnd()
26056
 
26057
  def write(self, oprot):
26058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26060
      return
26061
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
26062
    if self.nlc is not None:
26063
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
26064
      oprot.writeDouble(self.nlc)
26065
      oprot.writeFieldEnd()
26066
    if self.item_id is not None:
26067
      oprot.writeFieldBegin('item_id', TType.I64, 1)
26068
      oprot.writeI64(self.item_id)
26069
      oprot.writeFieldEnd()
26070
    if self.vendor_id is not None:
26071
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
26072
      oprot.writeI64(self.vendor_id)
26073
      oprot.writeFieldEnd()
26074
    oprot.writeFieldStop()
26075
    oprot.writeStructEnd()
26076
 
26077
  def validate(self):
26078
    return
26079
 
26080
 
26081
  def __repr__(self):
26082
    L = ['%s=%r' % (key, value)
26083
      for key, value in self.__dict__.iteritems()]
26084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26085
 
26086
  def __eq__(self, other):
26087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26088
 
26089
  def __ne__(self, other):
26090
    return not (self == other)
26091
 
26092
class updateNlcAtMarketplaces_result:
26093
 
26094
  thrift_spec = (
26095
  )
26096
 
26097
  def read(self, iprot):
26098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26100
      return
26101
    iprot.readStructBegin()
26102
    while True:
26103
      (fname, ftype, fid) = iprot.readFieldBegin()
26104
      if ftype == TType.STOP:
26105
        break
26106
      else:
26107
        iprot.skip(ftype)
26108
      iprot.readFieldEnd()
26109
    iprot.readStructEnd()
26110
 
26111
  def write(self, oprot):
26112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26114
      return
26115
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
26116
    oprot.writeFieldStop()
26117
    oprot.writeStructEnd()
26118
 
26119
  def validate(self):
26120
    return
26121
 
26122
 
26123
  def __repr__(self):
26124
    L = ['%s=%r' % (key, value)
26125
      for key, value in self.__dict__.iteritems()]
26126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26127
 
26128
  def __eq__(self, other):
26129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26130
 
26131
  def __ne__(self, other):
26132
    return not (self == other)
9945 vikram.rag 26133
 
26134
class getAllFlipkartItems_args:
26135
 
26136
  thrift_spec = (
26137
  )
26138
 
26139
  def read(self, iprot):
26140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26142
      return
26143
    iprot.readStructBegin()
26144
    while True:
26145
      (fname, ftype, fid) = iprot.readFieldBegin()
26146
      if ftype == TType.STOP:
26147
        break
26148
      else:
26149
        iprot.skip(ftype)
26150
      iprot.readFieldEnd()
26151
    iprot.readStructEnd()
26152
 
26153
  def write(self, oprot):
26154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26156
      return
26157
    oprot.writeStructBegin('getAllFlipkartItems_args')
26158
    oprot.writeFieldStop()
26159
    oprot.writeStructEnd()
26160
 
26161
  def validate(self):
26162
    return
26163
 
26164
 
26165
  def __repr__(self):
26166
    L = ['%s=%r' % (key, value)
26167
      for key, value in self.__dict__.iteritems()]
26168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26169
 
26170
  def __eq__(self, other):
26171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26172
 
26173
  def __ne__(self, other):
26174
    return not (self == other)
26175
 
26176
class getAllFlipkartItems_result:
26177
  """
26178
  Attributes:
26179
   - success
26180
  """
26181
 
26182
  thrift_spec = (
26183
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
26184
  )
26185
 
26186
  def __init__(self, success=None,):
26187
    self.success = success
26188
 
26189
  def read(self, iprot):
26190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26192
      return
26193
    iprot.readStructBegin()
26194
    while True:
26195
      (fname, ftype, fid) = iprot.readFieldBegin()
26196
      if ftype == TType.STOP:
26197
        break
26198
      if fid == 0:
26199
        if ftype == TType.LIST:
26200
          self.success = []
26201
          (_etype581, _size578) = iprot.readListBegin()
26202
          for _i582 in xrange(_size578):
26203
            _elem583 = FlipkartItem()
26204
            _elem583.read(iprot)
26205
            self.success.append(_elem583)
26206
          iprot.readListEnd()
26207
        else:
26208
          iprot.skip(ftype)
26209
      else:
26210
        iprot.skip(ftype)
26211
      iprot.readFieldEnd()
26212
    iprot.readStructEnd()
26213
 
26214
  def write(self, oprot):
26215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26217
      return
26218
    oprot.writeStructBegin('getAllFlipkartItems_result')
26219
    if self.success is not None:
26220
      oprot.writeFieldBegin('success', TType.LIST, 0)
26221
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26222
      for iter584 in self.success:
26223
        iter584.write(oprot)
26224
      oprot.writeListEnd()
26225
      oprot.writeFieldEnd()
26226
    oprot.writeFieldStop()
26227
    oprot.writeStructEnd()
26228
 
26229
  def validate(self):
26230
    return
26231
 
26232
 
26233
  def __repr__(self):
26234
    L = ['%s=%r' % (key, value)
26235
      for key, value in self.__dict__.iteritems()]
26236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26237
 
26238
  def __eq__(self, other):
26239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26240
 
26241
  def __ne__(self, other):
26242
    return not (self == other)
10097 kshitij.so 26243
 
26244
class addOrUpdateFlipkartItem_args:
26245
  """
26246
  Attributes:
26247
   - flipkartitem
26248
  """
26249
 
26250
  thrift_spec = None
26251
  def __init__(self, flipkartitem=None,):
26252
    self.flipkartitem = flipkartitem
26253
 
26254
  def read(self, iprot):
26255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26257
      return
26258
    iprot.readStructBegin()
26259
    while True:
26260
      (fname, ftype, fid) = iprot.readFieldBegin()
26261
      if ftype == TType.STOP:
26262
        break
26263
      if fid == -1:
26264
        if ftype == TType.STRUCT:
26265
          self.flipkartitem = FlipkartItem()
26266
          self.flipkartitem.read(iprot)
26267
        else:
26268
          iprot.skip(ftype)
26269
      else:
26270
        iprot.skip(ftype)
26271
      iprot.readFieldEnd()
26272
    iprot.readStructEnd()
26273
 
26274
  def write(self, oprot):
26275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26277
      return
26278
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
26279
    if self.flipkartitem is not None:
26280
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
26281
      self.flipkartitem.write(oprot)
26282
      oprot.writeFieldEnd()
26283
    oprot.writeFieldStop()
26284
    oprot.writeStructEnd()
26285
 
26286
  def validate(self):
26287
    return
26288
 
26289
 
26290
  def __repr__(self):
26291
    L = ['%s=%r' % (key, value)
26292
      for key, value in self.__dict__.iteritems()]
26293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26294
 
26295
  def __eq__(self, other):
26296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26297
 
26298
  def __ne__(self, other):
26299
    return not (self == other)
26300
 
26301
class addOrUpdateFlipkartItem_result:
26302
  """
26303
  Attributes:
26304
   - success
26305
  """
26306
 
26307
  thrift_spec = (
26308
    (0, TType.BOOL, 'success', None, None, ), # 0
26309
  )
26310
 
26311
  def __init__(self, success=None,):
26312
    self.success = success
26313
 
26314
  def read(self, iprot):
26315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26317
      return
26318
    iprot.readStructBegin()
26319
    while True:
26320
      (fname, ftype, fid) = iprot.readFieldBegin()
26321
      if ftype == TType.STOP:
26322
        break
26323
      if fid == 0:
26324
        if ftype == TType.BOOL:
26325
          self.success = iprot.readBool();
26326
        else:
26327
          iprot.skip(ftype)
26328
      else:
26329
        iprot.skip(ftype)
26330
      iprot.readFieldEnd()
26331
    iprot.readStructEnd()
26332
 
26333
  def write(self, oprot):
26334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26336
      return
26337
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
26338
    if self.success is not None:
26339
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26340
      oprot.writeBool(self.success)
26341
      oprot.writeFieldEnd()
26342
    oprot.writeFieldStop()
26343
    oprot.writeStructEnd()
26344
 
26345
  def validate(self):
26346
    return
26347
 
26348
 
26349
  def __repr__(self):
26350
    L = ['%s=%r' % (key, value)
26351
      for key, value in self.__dict__.iteritems()]
26352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26353
 
26354
  def __eq__(self, other):
26355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26356
 
26357
  def __ne__(self, other):
26358
    return not (self == other)
26359
 
26360
class getFlipkartItem_args:
26361
  """
26362
  Attributes:
26363
   - item_id
26364
  """
26365
 
26366
  thrift_spec = (
26367
    None, # 0
26368
    (1, TType.I64, 'item_id', None, None, ), # 1
26369
  )
26370
 
26371
  def __init__(self, item_id=None,):
26372
    self.item_id = item_id
26373
 
26374
  def read(self, iprot):
26375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26377
      return
26378
    iprot.readStructBegin()
26379
    while True:
26380
      (fname, ftype, fid) = iprot.readFieldBegin()
26381
      if ftype == TType.STOP:
26382
        break
26383
      if fid == 1:
26384
        if ftype == TType.I64:
26385
          self.item_id = iprot.readI64();
26386
        else:
26387
          iprot.skip(ftype)
26388
      else:
26389
        iprot.skip(ftype)
26390
      iprot.readFieldEnd()
26391
    iprot.readStructEnd()
26392
 
26393
  def write(self, oprot):
26394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26396
      return
26397
    oprot.writeStructBegin('getFlipkartItem_args')
26398
    if self.item_id is not None:
26399
      oprot.writeFieldBegin('item_id', TType.I64, 1)
26400
      oprot.writeI64(self.item_id)
26401
      oprot.writeFieldEnd()
26402
    oprot.writeFieldStop()
26403
    oprot.writeStructEnd()
26404
 
26405
  def validate(self):
26406
    return
26407
 
26408
 
26409
  def __repr__(self):
26410
    L = ['%s=%r' % (key, value)
26411
      for key, value in self.__dict__.iteritems()]
26412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26413
 
26414
  def __eq__(self, other):
26415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26416
 
26417
  def __ne__(self, other):
26418
    return not (self == other)
26419
 
26420
class getFlipkartItem_result:
26421
  """
26422
  Attributes:
26423
   - success
26424
  """
26425
 
26426
  thrift_spec = (
26427
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
26428
  )
26429
 
26430
  def __init__(self, success=None,):
26431
    self.success = success
26432
 
26433
  def read(self, iprot):
26434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26436
      return
26437
    iprot.readStructBegin()
26438
    while True:
26439
      (fname, ftype, fid) = iprot.readFieldBegin()
26440
      if ftype == TType.STOP:
26441
        break
26442
      if fid == 0:
26443
        if ftype == TType.STRUCT:
26444
          self.success = FlipkartItem()
26445
          self.success.read(iprot)
26446
        else:
26447
          iprot.skip(ftype)
26448
      else:
26449
        iprot.skip(ftype)
26450
      iprot.readFieldEnd()
26451
    iprot.readStructEnd()
26452
 
26453
  def write(self, oprot):
26454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26456
      return
26457
    oprot.writeStructBegin('getFlipkartItem_result')
26458
    if self.success is not None:
26459
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26460
      self.success.write(oprot)
26461
      oprot.writeFieldEnd()
26462
    oprot.writeFieldStop()
26463
    oprot.writeStructEnd()
26464
 
26465
  def validate(self):
26466
    return
26467
 
26468
 
26469
  def __repr__(self):
26470
    L = ['%s=%r' % (key, value)
26471
      for key, value in self.__dict__.iteritems()]
26472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26473
 
26474
  def __eq__(self, other):
26475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26476
 
26477
  def __ne__(self, other):
26478
    return not (self == other)
26479
 
26480
class getFlipkartItemDetails_args:
26481
  """
26482
  Attributes:
26483
   - item_id
26484
  """
26485
 
26486
  thrift_spec = (
26487
    None, # 0
26488
    (1, TType.I64, 'item_id', None, None, ), # 1
26489
  )
26490
 
26491
  def __init__(self, item_id=None,):
26492
    self.item_id = item_id
26493
 
26494
  def read(self, iprot):
26495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26497
      return
26498
    iprot.readStructBegin()
26499
    while True:
26500
      (fname, ftype, fid) = iprot.readFieldBegin()
26501
      if ftype == TType.STOP:
26502
        break
26503
      if fid == 1:
26504
        if ftype == TType.I64:
26505
          self.item_id = iprot.readI64();
26506
        else:
26507
          iprot.skip(ftype)
26508
      else:
26509
        iprot.skip(ftype)
26510
      iprot.readFieldEnd()
26511
    iprot.readStructEnd()
26512
 
26513
  def write(self, oprot):
26514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26516
      return
26517
    oprot.writeStructBegin('getFlipkartItemDetails_args')
26518
    if self.item_id is not None:
26519
      oprot.writeFieldBegin('item_id', TType.I64, 1)
26520
      oprot.writeI64(self.item_id)
26521
      oprot.writeFieldEnd()
26522
    oprot.writeFieldStop()
26523
    oprot.writeStructEnd()
26524
 
26525
  def validate(self):
26526
    return
26527
 
26528
 
26529
  def __repr__(self):
26530
    L = ['%s=%r' % (key, value)
26531
      for key, value in self.__dict__.iteritems()]
26532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26533
 
26534
  def __eq__(self, other):
26535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26536
 
26537
  def __ne__(self, other):
26538
    return not (self == other)
26539
 
26540
class getFlipkartItemDetails_result:
26541
  """
26542
  Attributes:
26543
   - success
26544
  """
26545
 
26546
  thrift_spec = (
26547
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
26548
  )
26549
 
26550
  def __init__(self, success=None,):
26551
    self.success = success
26552
 
26553
  def read(self, iprot):
26554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26556
      return
26557
    iprot.readStructBegin()
26558
    while True:
26559
      (fname, ftype, fid) = iprot.readFieldBegin()
26560
      if ftype == TType.STOP:
26561
        break
26562
      if fid == 0:
26563
        if ftype == TType.STRUCT:
26564
          self.success = FlipkartItemDetails()
26565
          self.success.read(iprot)
26566
        else:
26567
          iprot.skip(ftype)
26568
      else:
26569
        iprot.skip(ftype)
26570
      iprot.readFieldEnd()
26571
    iprot.readStructEnd()
26572
 
26573
  def write(self, oprot):
26574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26576
      return
26577
    oprot.writeStructBegin('getFlipkartItemDetails_result')
26578
    if self.success is not None:
26579
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26580
      self.success.write(oprot)
26581
      oprot.writeFieldEnd()
26582
    oprot.writeFieldStop()
26583
    oprot.writeStructEnd()
26584
 
26585
  def validate(self):
26586
    return
26587
 
26588
 
26589
  def __repr__(self):
26590
    L = ['%s=%r' % (key, value)
26591
      for key, value in self.__dict__.iteritems()]
26592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26593
 
26594
  def __eq__(self, other):
26595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26596
 
26597
  def __ne__(self, other):
26598
    return not (self == other)
26599
 
26600
class getFlipkartItems_args:
26601
  """
26602
  Attributes:
26603
   - offset
26604
   - limit
26605
  """
26606
 
26607
  thrift_spec = (
26608
    None, # 0
26609
    (1, TType.I64, 'offset', None, None, ), # 1
26610
    (2, TType.I64, 'limit', None, None, ), # 2
26611
  )
26612
 
26613
  def __init__(self, offset=None, limit=None,):
26614
    self.offset = offset
26615
    self.limit = limit
26616
 
26617
  def read(self, iprot):
26618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26620
      return
26621
    iprot.readStructBegin()
26622
    while True:
26623
      (fname, ftype, fid) = iprot.readFieldBegin()
26624
      if ftype == TType.STOP:
26625
        break
26626
      if fid == 1:
26627
        if ftype == TType.I64:
26628
          self.offset = iprot.readI64();
26629
        else:
26630
          iprot.skip(ftype)
26631
      elif fid == 2:
26632
        if ftype == TType.I64:
26633
          self.limit = iprot.readI64();
26634
        else:
26635
          iprot.skip(ftype)
26636
      else:
26637
        iprot.skip(ftype)
26638
      iprot.readFieldEnd()
26639
    iprot.readStructEnd()
26640
 
26641
  def write(self, oprot):
26642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26644
      return
26645
    oprot.writeStructBegin('getFlipkartItems_args')
26646
    if self.offset is not None:
26647
      oprot.writeFieldBegin('offset', TType.I64, 1)
26648
      oprot.writeI64(self.offset)
26649
      oprot.writeFieldEnd()
26650
    if self.limit is not None:
26651
      oprot.writeFieldBegin('limit', TType.I64, 2)
26652
      oprot.writeI64(self.limit)
26653
      oprot.writeFieldEnd()
26654
    oprot.writeFieldStop()
26655
    oprot.writeStructEnd()
26656
 
26657
  def validate(self):
26658
    return
26659
 
26660
 
26661
  def __repr__(self):
26662
    L = ['%s=%r' % (key, value)
26663
      for key, value in self.__dict__.iteritems()]
26664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26665
 
26666
  def __eq__(self, other):
26667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26668
 
26669
  def __ne__(self, other):
26670
    return not (self == other)
26671
 
26672
class getFlipkartItems_result:
26673
  """
26674
  Attributes:
26675
   - success
26676
  """
26677
 
26678
  thrift_spec = (
26679
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
26680
  )
26681
 
26682
  def __init__(self, success=None,):
26683
    self.success = success
26684
 
26685
  def read(self, iprot):
26686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26688
      return
26689
    iprot.readStructBegin()
26690
    while True:
26691
      (fname, ftype, fid) = iprot.readFieldBegin()
26692
      if ftype == TType.STOP:
26693
        break
26694
      if fid == 0:
26695
        if ftype == TType.LIST:
26696
          self.success = []
26697
          (_etype588, _size585) = iprot.readListBegin()
26698
          for _i589 in xrange(_size585):
26699
            _elem590 = FlipkartItemDetails()
26700
            _elem590.read(iprot)
26701
            self.success.append(_elem590)
26702
          iprot.readListEnd()
26703
        else:
26704
          iprot.skip(ftype)
26705
      else:
26706
        iprot.skip(ftype)
26707
      iprot.readFieldEnd()
26708
    iprot.readStructEnd()
26709
 
26710
  def write(self, oprot):
26711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26713
      return
26714
    oprot.writeStructBegin('getFlipkartItems_result')
26715
    if self.success is not None:
26716
      oprot.writeFieldBegin('success', TType.LIST, 0)
26717
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26718
      for iter591 in self.success:
26719
        iter591.write(oprot)
26720
      oprot.writeListEnd()
26721
      oprot.writeFieldEnd()
26722
    oprot.writeFieldStop()
26723
    oprot.writeStructEnd()
26724
 
26725
  def validate(self):
26726
    return
26727
 
26728
 
26729
  def __repr__(self):
26730
    L = ['%s=%r' % (key, value)
26731
      for key, value in self.__dict__.iteritems()]
26732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26733
 
26734
  def __eq__(self, other):
26735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26736
 
26737
  def __ne__(self, other):
26738
    return not (self == other)
26739
 
26740
class searchFlipkartItems_args:
26741
  """
26742
  Attributes:
26743
   - searchTerm
26744
   - offset
26745
   - limit
26746
  """
26747
 
26748
  thrift_spec = (
26749
    None, # 0
26750
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
26751
    (2, TType.I64, 'offset', None, None, ), # 2
26752
    (3, TType.I64, 'limit', None, None, ), # 3
26753
  )
26754
 
26755
  def __init__(self, searchTerm=None, offset=None, limit=None,):
26756
    self.searchTerm = searchTerm
26757
    self.offset = offset
26758
    self.limit = limit
26759
 
26760
  def read(self, iprot):
26761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26763
      return
26764
    iprot.readStructBegin()
26765
    while True:
26766
      (fname, ftype, fid) = iprot.readFieldBegin()
26767
      if ftype == TType.STOP:
26768
        break
26769
      if fid == 1:
26770
        if ftype == TType.LIST:
26771
          self.searchTerm = []
26772
          (_etype595, _size592) = iprot.readListBegin()
26773
          for _i596 in xrange(_size592):
26774
            _elem597 = iprot.readString();
26775
            self.searchTerm.append(_elem597)
26776
          iprot.readListEnd()
26777
        else:
26778
          iprot.skip(ftype)
26779
      elif fid == 2:
26780
        if ftype == TType.I64:
26781
          self.offset = iprot.readI64();
26782
        else:
26783
          iprot.skip(ftype)
26784
      elif fid == 3:
26785
        if ftype == TType.I64:
26786
          self.limit = iprot.readI64();
26787
        else:
26788
          iprot.skip(ftype)
26789
      else:
26790
        iprot.skip(ftype)
26791
      iprot.readFieldEnd()
26792
    iprot.readStructEnd()
26793
 
26794
  def write(self, oprot):
26795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26797
      return
26798
    oprot.writeStructBegin('searchFlipkartItems_args')
26799
    if self.searchTerm is not None:
26800
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
26801
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
26802
      for iter598 in self.searchTerm:
26803
        oprot.writeString(iter598)
26804
      oprot.writeListEnd()
26805
      oprot.writeFieldEnd()
26806
    if self.offset is not None:
26807
      oprot.writeFieldBegin('offset', TType.I64, 2)
26808
      oprot.writeI64(self.offset)
26809
      oprot.writeFieldEnd()
26810
    if self.limit is not None:
26811
      oprot.writeFieldBegin('limit', TType.I64, 3)
26812
      oprot.writeI64(self.limit)
26813
      oprot.writeFieldEnd()
26814
    oprot.writeFieldStop()
26815
    oprot.writeStructEnd()
26816
 
26817
  def validate(self):
26818
    return
26819
 
26820
 
26821
  def __repr__(self):
26822
    L = ['%s=%r' % (key, value)
26823
      for key, value in self.__dict__.iteritems()]
26824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26825
 
26826
  def __eq__(self, other):
26827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26828
 
26829
  def __ne__(self, other):
26830
    return not (self == other)
26831
 
26832
class searchFlipkartItems_result:
26833
  """
26834
  Attributes:
26835
   - success
26836
  """
26837
 
26838
  thrift_spec = (
26839
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
26840
  )
26841
 
26842
  def __init__(self, success=None,):
26843
    self.success = success
26844
 
26845
  def read(self, iprot):
26846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26848
      return
26849
    iprot.readStructBegin()
26850
    while True:
26851
      (fname, ftype, fid) = iprot.readFieldBegin()
26852
      if ftype == TType.STOP:
26853
        break
26854
      if fid == 0:
26855
        if ftype == TType.LIST:
26856
          self.success = []
26857
          (_etype602, _size599) = iprot.readListBegin()
26858
          for _i603 in xrange(_size599):
26859
            _elem604 = FlipkartItemDetails()
26860
            _elem604.read(iprot)
26861
            self.success.append(_elem604)
26862
          iprot.readListEnd()
26863
        else:
26864
          iprot.skip(ftype)
26865
      else:
26866
        iprot.skip(ftype)
26867
      iprot.readFieldEnd()
26868
    iprot.readStructEnd()
26869
 
26870
  def write(self, oprot):
26871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26873
      return
26874
    oprot.writeStructBegin('searchFlipkartItems_result')
26875
    if self.success is not None:
26876
      oprot.writeFieldBegin('success', TType.LIST, 0)
26877
      oprot.writeListBegin(TType.STRUCT, len(self.success))
26878
      for iter605 in self.success:
26879
        iter605.write(oprot)
26880
      oprot.writeListEnd()
26881
      oprot.writeFieldEnd()
26882
    oprot.writeFieldStop()
26883
    oprot.writeStructEnd()
26884
 
26885
  def validate(self):
26886
    return
26887
 
26888
 
26889
  def __repr__(self):
26890
    L = ['%s=%r' % (key, value)
26891
      for key, value in self.__dict__.iteritems()]
26892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26893
 
26894
  def __eq__(self, other):
26895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26896
 
26897
  def __ne__(self, other):
26898
    return not (self == other)
26899
 
26900
class getCountForFlipkartItems_args:
26901
 
26902
  thrift_spec = (
26903
  )
26904
 
26905
  def read(self, iprot):
26906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26908
      return
26909
    iprot.readStructBegin()
26910
    while True:
26911
      (fname, ftype, fid) = iprot.readFieldBegin()
26912
      if ftype == TType.STOP:
26913
        break
26914
      else:
26915
        iprot.skip(ftype)
26916
      iprot.readFieldEnd()
26917
    iprot.readStructEnd()
26918
 
26919
  def write(self, oprot):
26920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26922
      return
26923
    oprot.writeStructBegin('getCountForFlipkartItems_args')
26924
    oprot.writeFieldStop()
26925
    oprot.writeStructEnd()
26926
 
26927
  def validate(self):
26928
    return
26929
 
26930
 
26931
  def __repr__(self):
26932
    L = ['%s=%r' % (key, value)
26933
      for key, value in self.__dict__.iteritems()]
26934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26935
 
26936
  def __eq__(self, other):
26937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26938
 
26939
  def __ne__(self, other):
26940
    return not (self == other)
26941
 
26942
class getCountForFlipkartItems_result:
26943
  """
26944
  Attributes:
26945
   - success
26946
  """
26947
 
26948
  thrift_spec = (
26949
    (0, TType.I64, 'success', None, None, ), # 0
26950
  )
26951
 
26952
  def __init__(self, success=None,):
26953
    self.success = success
26954
 
26955
  def read(self, iprot):
26956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26958
      return
26959
    iprot.readStructBegin()
26960
    while True:
26961
      (fname, ftype, fid) = iprot.readFieldBegin()
26962
      if ftype == TType.STOP:
26963
        break
26964
      if fid == 0:
26965
        if ftype == TType.I64:
26966
          self.success = iprot.readI64();
26967
        else:
26968
          iprot.skip(ftype)
26969
      else:
26970
        iprot.skip(ftype)
26971
      iprot.readFieldEnd()
26972
    iprot.readStructEnd()
26973
 
26974
  def write(self, oprot):
26975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26977
      return
26978
    oprot.writeStructBegin('getCountForFlipkartItems_result')
26979
    if self.success is not None:
26980
      oprot.writeFieldBegin('success', TType.I64, 0)
26981
      oprot.writeI64(self.success)
26982
      oprot.writeFieldEnd()
26983
    oprot.writeFieldStop()
26984
    oprot.writeStructEnd()
26985
 
26986
  def validate(self):
26987
    return
26988
 
26989
 
26990
  def __repr__(self):
26991
    L = ['%s=%r' % (key, value)
26992
      for key, value in self.__dict__.iteritems()]
26993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26994
 
26995
  def __eq__(self, other):
26996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26997
 
26998
  def __ne__(self, other):
26999
    return not (self == other)
27000
 
27001
class getFlipkartSearchResultCount_args:
27002
  """
27003
  Attributes:
27004
   - searchTerm
27005
  """
27006
 
27007
  thrift_spec = (
27008
    None, # 0
27009
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
27010
  )
27011
 
27012
  def __init__(self, searchTerm=None,):
27013
    self.searchTerm = searchTerm
27014
 
27015
  def read(self, iprot):
27016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27018
      return
27019
    iprot.readStructBegin()
27020
    while True:
27021
      (fname, ftype, fid) = iprot.readFieldBegin()
27022
      if ftype == TType.STOP:
27023
        break
27024
      if fid == 1:
27025
        if ftype == TType.LIST:
27026
          self.searchTerm = []
27027
          (_etype609, _size606) = iprot.readListBegin()
27028
          for _i610 in xrange(_size606):
27029
            _elem611 = iprot.readString();
27030
            self.searchTerm.append(_elem611)
27031
          iprot.readListEnd()
27032
        else:
27033
          iprot.skip(ftype)
27034
      else:
27035
        iprot.skip(ftype)
27036
      iprot.readFieldEnd()
27037
    iprot.readStructEnd()
27038
 
27039
  def write(self, oprot):
27040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27042
      return
27043
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
27044
    if self.searchTerm is not None:
27045
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
27046
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
27047
      for iter612 in self.searchTerm:
27048
        oprot.writeString(iter612)
27049
      oprot.writeListEnd()
27050
      oprot.writeFieldEnd()
27051
    oprot.writeFieldStop()
27052
    oprot.writeStructEnd()
27053
 
27054
  def validate(self):
27055
    return
27056
 
27057
 
27058
  def __repr__(self):
27059
    L = ['%s=%r' % (key, value)
27060
      for key, value in self.__dict__.iteritems()]
27061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27062
 
27063
  def __eq__(self, other):
27064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27065
 
27066
  def __ne__(self, other):
27067
    return not (self == other)
27068
 
27069
class getFlipkartSearchResultCount_result:
27070
  """
27071
  Attributes:
27072
   - success
27073
  """
27074
 
27075
  thrift_spec = (
27076
    (0, TType.I64, 'success', None, None, ), # 0
27077
  )
27078
 
27079
  def __init__(self, success=None,):
27080
    self.success = success
27081
 
27082
  def read(self, iprot):
27083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27085
      return
27086
    iprot.readStructBegin()
27087
    while True:
27088
      (fname, ftype, fid) = iprot.readFieldBegin()
27089
      if ftype == TType.STOP:
27090
        break
27091
      if fid == 0:
27092
        if ftype == TType.I64:
27093
          self.success = iprot.readI64();
27094
        else:
27095
          iprot.skip(ftype)
27096
      else:
27097
        iprot.skip(ftype)
27098
      iprot.readFieldEnd()
27099
    iprot.readStructEnd()
27100
 
27101
  def write(self, oprot):
27102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27104
      return
27105
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
27106
    if self.success is not None:
27107
      oprot.writeFieldBegin('success', TType.I64, 0)
27108
      oprot.writeI64(self.success)
27109
      oprot.writeFieldEnd()
27110
    oprot.writeFieldStop()
27111
    oprot.writeStructEnd()
27112
 
27113
  def validate(self):
27114
    return
27115
 
27116
 
27117
  def __repr__(self):
27118
    L = ['%s=%r' % (key, value)
27119
      for key, value in self.__dict__.iteritems()]
27120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27121
 
27122
  def __eq__(self, other):
27123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27124
 
27125
  def __ne__(self, other):
27126
    return not (self == other)
27127
 
27128
class getAllFkItems_args:
27129
 
27130
  thrift_spec = (
27131
  )
27132
 
27133
  def read(self, iprot):
27134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27136
      return
27137
    iprot.readStructBegin()
27138
    while True:
27139
      (fname, ftype, fid) = iprot.readFieldBegin()
27140
      if ftype == TType.STOP:
27141
        break
27142
      else:
27143
        iprot.skip(ftype)
27144
      iprot.readFieldEnd()
27145
    iprot.readStructEnd()
27146
 
27147
  def write(self, oprot):
27148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27150
      return
27151
    oprot.writeStructBegin('getAllFkItems_args')
27152
    oprot.writeFieldStop()
27153
    oprot.writeStructEnd()
27154
 
27155
  def validate(self):
27156
    return
27157
 
27158
 
27159
  def __repr__(self):
27160
    L = ['%s=%r' % (key, value)
27161
      for key, value in self.__dict__.iteritems()]
27162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27163
 
27164
  def __eq__(self, other):
27165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27166
 
27167
  def __ne__(self, other):
27168
    return not (self == other)
27169
 
27170
class getAllFkItems_result:
27171
  """
27172
  Attributes:
27173
   - success
27174
  """
27175
 
27176
  thrift_spec = (
27177
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
27178
  )
27179
 
27180
  def __init__(self, success=None,):
27181
    self.success = success
27182
 
27183
  def read(self, iprot):
27184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27186
      return
27187
    iprot.readStructBegin()
27188
    while True:
27189
      (fname, ftype, fid) = iprot.readFieldBegin()
27190
      if ftype == TType.STOP:
27191
        break
27192
      if fid == 0:
27193
        if ftype == TType.LIST:
27194
          self.success = []
27195
          (_etype616, _size613) = iprot.readListBegin()
27196
          for _i617 in xrange(_size613):
27197
            _elem618 = FlipkartItemDetails()
27198
            _elem618.read(iprot)
27199
            self.success.append(_elem618)
27200
          iprot.readListEnd()
27201
        else:
27202
          iprot.skip(ftype)
27203
      else:
27204
        iprot.skip(ftype)
27205
      iprot.readFieldEnd()
27206
    iprot.readStructEnd()
27207
 
27208
  def write(self, oprot):
27209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27211
      return
27212
    oprot.writeStructBegin('getAllFkItems_result')
27213
    if self.success is not None:
27214
      oprot.writeFieldBegin('success', TType.LIST, 0)
27215
      oprot.writeListBegin(TType.STRUCT, len(self.success))
27216
      for iter619 in self.success:
27217
        iter619.write(oprot)
27218
      oprot.writeListEnd()
27219
      oprot.writeFieldEnd()
27220
    oprot.writeFieldStop()
27221
    oprot.writeStructEnd()
27222
 
27223
  def validate(self):
27224
    return
27225
 
27226
 
27227
  def __repr__(self):
27228
    L = ['%s=%r' % (key, value)
27229
      for key, value in self.__dict__.iteritems()]
27230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27231
 
27232
  def __eq__(self, other):
27233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27234
 
27235
  def __ne__(self, other):
27236
    return not (self == other)