Subversion Repositories SmartDukaan

Rev

Rev 9299 | Rev 9621 | 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
 
9456 vikram.rag 967
 
5944 mandeep.dh 968
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
969
  def __init__(self, iprot, oprot=None):
970
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
971
 
972
  def addItem(self, item):
973
    """
974
    Availability and inventory attributes
975
 
976
    Parameters:
977
     - item
978
    """
979
    self.send_addItem(item)
980
    return self.recv_addItem()
981
 
982
  def send_addItem(self, item):
983
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
984
    args = addItem_args()
985
    args.item = item
986
    args.write(self._oprot)
987
    self._oprot.writeMessageEnd()
988
    self._oprot.trans.flush()
989
 
990
  def recv_addItem(self, ):
991
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
992
    if mtype == TMessageType.EXCEPTION:
993
      x = TApplicationException()
994
      x.read(self._iprot)
995
      self._iprot.readMessageEnd()
996
      raise x
997
    result = addItem_result()
998
    result.read(self._iprot)
999
    self._iprot.readMessageEnd()
1000
    if result.success is not None:
1001
      return result.success
1002
    if result.cex is not None:
1003
      raise result.cex
1004
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1005
 
1006
  def updateItem(self, item):
1007
    """
1008
    Parameters:
1009
     - item
1010
    """
1011
    self.send_updateItem(item)
1012
    return self.recv_updateItem()
1013
 
1014
  def send_updateItem(self, item):
1015
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1016
    args = updateItem_args()
1017
    args.item = item
1018
    args.write(self._oprot)
1019
    self._oprot.writeMessageEnd()
1020
    self._oprot.trans.flush()
1021
 
1022
  def recv_updateItem(self, ):
1023
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1024
    if mtype == TMessageType.EXCEPTION:
1025
      x = TApplicationException()
1026
      x.read(self._iprot)
1027
      self._iprot.readMessageEnd()
1028
      raise x
1029
    result = updateItem_result()
1030
    result.read(self._iprot)
1031
    self._iprot.readMessageEnd()
1032
    if result.success is not None:
1033
      return result.success
1034
    if result.cex is not None:
1035
      raise result.cex
1036
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1037
 
1038
  def isActive(self, itemId):
1039
    """
1040
    Checks if the item given to the corresponding itemId is active. If it's active,
1041
    whether it's risky and if it's risky, its inventory position.
1042
 
1043
    Parameters:
1044
     - itemId
1045
    """
1046
    self.send_isActive(itemId)
1047
    return self.recv_isActive()
1048
 
1049
  def send_isActive(self, itemId):
1050
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1051
    args = isActive_args()
1052
    args.itemId = itemId
1053
    args.write(self._oprot)
1054
    self._oprot.writeMessageEnd()
1055
    self._oprot.trans.flush()
1056
 
1057
  def recv_isActive(self, ):
1058
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1059
    if mtype == TMessageType.EXCEPTION:
1060
      x = TApplicationException()
1061
      x.read(self._iprot)
1062
      self._iprot.readMessageEnd()
1063
      raise x
1064
    result = isActive_result()
1065
    result.read(self._iprot)
1066
    self._iprot.readMessageEnd()
1067
    if result.success is not None:
1068
      return result.success
1069
    if result.isex is not None:
1070
      raise result.isex
1071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1072
 
7438 amit.gupta 1073
  def getItemsStatus(self, itemIds):
1074
    """
1075
    Parameters:
1076
     - itemIds
1077
    """
1078
    self.send_getItemsStatus(itemIds)
1079
    return self.recv_getItemsStatus()
1080
 
1081
  def send_getItemsStatus(self, itemIds):
1082
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1083
    args = getItemsStatus_args()
1084
    args.itemIds = itemIds
1085
    args.write(self._oprot)
1086
    self._oprot.writeMessageEnd()
1087
    self._oprot.trans.flush()
1088
 
1089
  def recv_getItemsStatus(self, ):
1090
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1091
    if mtype == TMessageType.EXCEPTION:
1092
      x = TApplicationException()
1093
      x.read(self._iprot)
1094
      self._iprot.readMessageEnd()
1095
      raise x
1096
    result = getItemsStatus_result()
1097
    result.read(self._iprot)
1098
    self._iprot.readMessageEnd()
1099
    if result.success is not None:
1100
      return result.success
1101
    if result.isex is not None:
1102
      raise result.isex
1103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1104
 
5944 mandeep.dh 1105
  def getItemStatusDescription(self, itemId):
1106
    """
1107
    Parameters:
1108
     - itemId
1109
    """
1110
    self.send_getItemStatusDescription(itemId)
1111
    return self.recv_getItemStatusDescription()
1112
 
1113
  def send_getItemStatusDescription(self, itemId):
1114
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1115
    args = getItemStatusDescription_args()
1116
    args.itemId = itemId
1117
    args.write(self._oprot)
1118
    self._oprot.writeMessageEnd()
1119
    self._oprot.trans.flush()
1120
 
1121
  def recv_getItemStatusDescription(self, ):
1122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1123
    if mtype == TMessageType.EXCEPTION:
1124
      x = TApplicationException()
1125
      x.read(self._iprot)
1126
      self._iprot.readMessageEnd()
1127
      raise x
1128
    result = getItemStatusDescription_result()
1129
    result.read(self._iprot)
1130
    self._iprot.readMessageEnd()
1131
    if result.success is not None:
1132
      return result.success
1133
    if result.isex is not None:
1134
      raise result.isex
1135
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1136
 
1137
  def startItemOn(self, item_id, timestamp):
1138
    """
1139
    Parameters:
1140
     - item_id
1141
     - timestamp
1142
    """
1143
    self.send_startItemOn(item_id, timestamp)
1144
    self.recv_startItemOn()
1145
 
1146
  def send_startItemOn(self, item_id, timestamp):
1147
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1148
    args = startItemOn_args()
1149
    args.item_id = item_id
1150
    args.timestamp = timestamp
1151
    args.write(self._oprot)
1152
    self._oprot.writeMessageEnd()
1153
    self._oprot.trans.flush()
1154
 
1155
  def recv_startItemOn(self, ):
1156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1157
    if mtype == TMessageType.EXCEPTION:
1158
      x = TApplicationException()
1159
      x.read(self._iprot)
1160
      self._iprot.readMessageEnd()
1161
      raise x
1162
    result = startItemOn_result()
1163
    result.read(self._iprot)
1164
    self._iprot.readMessageEnd()
1165
    if result.cex is not None:
1166
      raise result.cex
1167
    return
1168
 
1169
  def retireItemOn(self, item_id, timestamp):
1170
    """
1171
    Parameters:
1172
     - item_id
1173
     - timestamp
1174
    """
1175
    self.send_retireItemOn(item_id, timestamp)
1176
    self.recv_retireItemOn()
1177
 
1178
  def send_retireItemOn(self, item_id, timestamp):
1179
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1180
    args = retireItemOn_args()
1181
    args.item_id = item_id
1182
    args.timestamp = timestamp
1183
    args.write(self._oprot)
1184
    self._oprot.writeMessageEnd()
1185
    self._oprot.trans.flush()
1186
 
1187
  def recv_retireItemOn(self, ):
1188
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1189
    if mtype == TMessageType.EXCEPTION:
1190
      x = TApplicationException()
1191
      x.read(self._iprot)
1192
      self._iprot.readMessageEnd()
1193
      raise x
1194
    result = retireItemOn_result()
1195
    result.read(self._iprot)
1196
    self._iprot.readMessageEnd()
1197
    if result.cex is not None:
1198
      raise result.cex
1199
    return
1200
 
1201
  def changeItemStatus(self, item_id, timestamp, newstatus):
1202
    """
1203
    Parameters:
1204
     - item_id
1205
     - timestamp
1206
     - newstatus
1207
    """
1208
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1209
    self.recv_changeItemStatus()
1210
 
1211
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1212
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1213
    args = changeItemStatus_args()
1214
    args.item_id = item_id
1215
    args.timestamp = timestamp
1216
    args.newstatus = newstatus
1217
    args.write(self._oprot)
1218
    self._oprot.writeMessageEnd()
1219
    self._oprot.trans.flush()
1220
 
1221
  def recv_changeItemStatus(self, ):
1222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1223
    if mtype == TMessageType.EXCEPTION:
1224
      x = TApplicationException()
1225
      x.read(self._iprot)
1226
      self._iprot.readMessageEnd()
1227
      raise x
1228
    result = changeItemStatus_result()
1229
    result.read(self._iprot)
1230
    self._iprot.readMessageEnd()
1231
    if result.cex is not None:
1232
      raise result.cex
1233
    return
1234
 
1235
  def getItem(self, item_id):
1236
    """
1237
    Parameters:
1238
     - item_id
1239
    """
1240
    self.send_getItem(item_id)
1241
    return self.recv_getItem()
1242
 
1243
  def send_getItem(self, item_id):
1244
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1245
    args = getItem_args()
1246
    args.item_id = item_id
1247
    args.write(self._oprot)
1248
    self._oprot.writeMessageEnd()
1249
    self._oprot.trans.flush()
1250
 
1251
  def recv_getItem(self, ):
1252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1253
    if mtype == TMessageType.EXCEPTION:
1254
      x = TApplicationException()
1255
      x.read(self._iprot)
1256
      self._iprot.readMessageEnd()
1257
      raise x
1258
    result = getItem_result()
1259
    result.read(self._iprot)
1260
    self._iprot.readMessageEnd()
1261
    if result.success is not None:
1262
      return result.success
1263
    if result.cex is not None:
1264
      raise result.cex
1265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1266
 
1267
  def getItemsByCatalogId(self, catalog_item_id):
1268
    """
1269
    Parameters:
1270
     - catalog_item_id
1271
    """
1272
    self.send_getItemsByCatalogId(catalog_item_id)
1273
    return self.recv_getItemsByCatalogId()
1274
 
1275
  def send_getItemsByCatalogId(self, catalog_item_id):
1276
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1277
    args = getItemsByCatalogId_args()
1278
    args.catalog_item_id = catalog_item_id
1279
    args.write(self._oprot)
1280
    self._oprot.writeMessageEnd()
1281
    self._oprot.trans.flush()
1282
 
1283
  def recv_getItemsByCatalogId(self, ):
1284
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1285
    if mtype == TMessageType.EXCEPTION:
1286
      x = TApplicationException()
1287
      x.read(self._iprot)
1288
      self._iprot.readMessageEnd()
1289
      raise x
1290
    result = getItemsByCatalogId_result()
1291
    result.read(self._iprot)
1292
    self._iprot.readMessageEnd()
1293
    if result.success is not None:
1294
      return result.success
1295
    if result.cex is not None:
1296
      raise result.cex
1297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1298
 
1299
  def getValidItemsByCatalogId(self, catalog_item_id):
1300
    """
1301
    Parameters:
1302
     - catalog_item_id
1303
    """
1304
    self.send_getValidItemsByCatalogId(catalog_item_id)
1305
    return self.recv_getValidItemsByCatalogId()
1306
 
1307
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1308
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1309
    args = getValidItemsByCatalogId_args()
1310
    args.catalog_item_id = catalog_item_id
1311
    args.write(self._oprot)
1312
    self._oprot.writeMessageEnd()
1313
    self._oprot.trans.flush()
1314
 
1315
  def recv_getValidItemsByCatalogId(self, ):
1316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1317
    if mtype == TMessageType.EXCEPTION:
1318
      x = TApplicationException()
1319
      x.read(self._iprot)
1320
      self._iprot.readMessageEnd()
1321
      raise x
1322
    result = getValidItemsByCatalogId_result()
1323
    result.read(self._iprot)
1324
    self._iprot.readMessageEnd()
1325
    if result.success is not None:
1326
      return result.success
1327
    if result.cex is not None:
1328
      raise result.cex
1329
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1330
 
1331
  def getAllItems(self, isActive):
1332
    """
1333
    Parameters:
1334
     - isActive
1335
    """
1336
    self.send_getAllItems(isActive)
1337
    return self.recv_getAllItems()
1338
 
1339
  def send_getAllItems(self, isActive):
1340
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1341
    args = getAllItems_args()
1342
    args.isActive = isActive
1343
    args.write(self._oprot)
1344
    self._oprot.writeMessageEnd()
1345
    self._oprot.trans.flush()
1346
 
1347
  def recv_getAllItems(self, ):
1348
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1349
    if mtype == TMessageType.EXCEPTION:
1350
      x = TApplicationException()
1351
      x.read(self._iprot)
1352
      self._iprot.readMessageEnd()
1353
      raise x
1354
    result = getAllItems_result()
1355
    result.read(self._iprot)
1356
    self._iprot.readMessageEnd()
1357
    if result.success is not None:
1358
      return result.success
1359
    if result.cex is not None:
1360
      raise result.cex
1361
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1362
 
1363
  def getAllItemsByStatus(self, itemStatus):
1364
    """
1365
    Parameters:
1366
     - itemStatus
1367
    """
1368
    self.send_getAllItemsByStatus(itemStatus)
1369
    return self.recv_getAllItemsByStatus()
1370
 
1371
  def send_getAllItemsByStatus(self, itemStatus):
1372
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1373
    args = getAllItemsByStatus_args()
1374
    args.itemStatus = itemStatus
1375
    args.write(self._oprot)
1376
    self._oprot.writeMessageEnd()
1377
    self._oprot.trans.flush()
1378
 
1379
  def recv_getAllItemsByStatus(self, ):
1380
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1381
    if mtype == TMessageType.EXCEPTION:
1382
      x = TApplicationException()
1383
      x.read(self._iprot)
1384
      self._iprot.readMessageEnd()
1385
      raise x
1386
    result = getAllItemsByStatus_result()
1387
    result.read(self._iprot)
1388
    self._iprot.readMessageEnd()
1389
    if result.success is not None:
1390
      return result.success
1391
    if result.cex is not None:
1392
      raise result.cex
1393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1394
 
9253 rajveer 1395
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1396
    """
1397
    Parameters:
1398
     - entityId
1399
     - category
1400
     - brand
1401
     - modelName
1402
     - modelNumber
9253 rajveer 1403
     - isAndroid
5944 mandeep.dh 1404
    """
9253 rajveer 1405
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1406
    return self.recv_markItemAsContentComplete()
1407
 
9253 rajveer 1408
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1409
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1410
    args = markItemAsContentComplete_args()
1411
    args.entityId = entityId
1412
    args.category = category
1413
    args.brand = brand
1414
    args.modelName = modelName
1415
    args.modelNumber = modelNumber
9253 rajveer 1416
    args.isAndroid = isAndroid
5944 mandeep.dh 1417
    args.write(self._oprot)
1418
    self._oprot.writeMessageEnd()
1419
    self._oprot.trans.flush()
1420
 
1421
  def recv_markItemAsContentComplete(self, ):
1422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1423
    if mtype == TMessageType.EXCEPTION:
1424
      x = TApplicationException()
1425
      x.read(self._iprot)
1426
      self._iprot.readMessageEnd()
1427
      raise x
1428
    result = markItemAsContentComplete_result()
1429
    result.read(self._iprot)
1430
    self._iprot.readMessageEnd()
1431
    if result.success is not None:
1432
      return result.success
1433
    if result.cex is not None:
1434
      raise result.cex
1435
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1436
 
1437
  def getAllItemsInRange(self, offset, limit):
1438
    """
1439
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1440
 
1441
    Parameters:
1442
     - offset
1443
     - limit
1444
    """
1445
    self.send_getAllItemsInRange(offset, limit)
1446
    return self.recv_getAllItemsInRange()
1447
 
1448
  def send_getAllItemsInRange(self, offset, limit):
1449
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1450
    args = getAllItemsInRange_args()
1451
    args.offset = offset
1452
    args.limit = limit
1453
    args.write(self._oprot)
1454
    self._oprot.writeMessageEnd()
1455
    self._oprot.trans.flush()
1456
 
1457
  def recv_getAllItemsInRange(self, ):
1458
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1459
    if mtype == TMessageType.EXCEPTION:
1460
      x = TApplicationException()
1461
      x.read(self._iprot)
1462
      self._iprot.readMessageEnd()
1463
      raise x
1464
    result = getAllItemsInRange_result()
1465
    result.read(self._iprot)
1466
    self._iprot.readMessageEnd()
1467
    if result.success is not None:
1468
      return result.success
1469
    if result.cex is not None:
1470
      raise result.cex
1471
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1472
 
1473
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1474
    """
1475
    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.
1476
 
1477
    Parameters:
1478
     - itemStatus
1479
     - offset
1480
     - limit
1481
    """
1482
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1483
    return self.recv_getAllItemsByStatusInRange()
1484
 
1485
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1486
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1487
    args = getAllItemsByStatusInRange_args()
1488
    args.itemStatus = itemStatus
1489
    args.offset = offset
1490
    args.limit = limit
1491
    args.write(self._oprot)
1492
    self._oprot.writeMessageEnd()
1493
    self._oprot.trans.flush()
1494
 
1495
  def recv_getAllItemsByStatusInRange(self, ):
1496
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1497
    if mtype == TMessageType.EXCEPTION:
1498
      x = TApplicationException()
1499
      x.read(self._iprot)
1500
      self._iprot.readMessageEnd()
1501
      raise x
1502
    result = getAllItemsByStatusInRange_result()
1503
    result.read(self._iprot)
1504
    self._iprot.readMessageEnd()
1505
    if result.success is not None:
1506
      return result.success
1507
    if result.cex is not None:
1508
      raise result.cex
1509
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1510
 
1511
  def getItemCountByStatus(self, useStatus, itemStatus):
1512
    """
1513
    Gets a count of all items by status
1514
 
1515
    Parameters:
1516
     - useStatus
1517
     - itemStatus
1518
    """
1519
    self.send_getItemCountByStatus(useStatus, itemStatus)
1520
    return self.recv_getItemCountByStatus()
1521
 
1522
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1523
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1524
    args = getItemCountByStatus_args()
1525
    args.useStatus = useStatus
1526
    args.itemStatus = itemStatus
1527
    args.write(self._oprot)
1528
    self._oprot.writeMessageEnd()
1529
    self._oprot.trans.flush()
1530
 
1531
  def recv_getItemCountByStatus(self, ):
1532
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1533
    if mtype == TMessageType.EXCEPTION:
1534
      x = TApplicationException()
1535
      x.read(self._iprot)
1536
      self._iprot.readMessageEnd()
1537
      raise x
1538
    result = getItemCountByStatus_result()
1539
    result.read(self._iprot)
1540
    self._iprot.readMessageEnd()
1541
    if result.success is not None:
1542
      return result.success
1543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1544
 
1545
  def getBestSellers(self, ):
1546
    self.send_getBestSellers()
1547
    return self.recv_getBestSellers()
1548
 
1549
  def send_getBestSellers(self, ):
1550
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1551
    args = getBestSellers_args()
1552
    args.write(self._oprot)
1553
    self._oprot.writeMessageEnd()
1554
    self._oprot.trans.flush()
1555
 
1556
  def recv_getBestSellers(self, ):
1557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1558
    if mtype == TMessageType.EXCEPTION:
1559
      x = TApplicationException()
1560
      x.read(self._iprot)
1561
      self._iprot.readMessageEnd()
1562
      raise x
1563
    result = getBestSellers_result()
1564
    result.read(self._iprot)
1565
    self._iprot.readMessageEnd()
1566
    if result.success is not None:
1567
      return result.success
1568
    if result.isex is not None:
1569
      raise result.isex
1570
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1571
 
1572
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1573
    """
1574
    Parameters:
1575
     - beginIndex
1576
     - totalItems
1577
     - brand
1578
     - category
1579
    """
1580
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1581
    return self.recv_getBestSellersCatalogIds()
1582
 
1583
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1584
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1585
    args = getBestSellersCatalogIds_args()
1586
    args.beginIndex = beginIndex
1587
    args.totalItems = totalItems
1588
    args.brand = brand
1589
    args.category = category
1590
    args.write(self._oprot)
1591
    self._oprot.writeMessageEnd()
1592
    self._oprot.trans.flush()
1593
 
1594
  def recv_getBestSellersCatalogIds(self, ):
1595
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1596
    if mtype == TMessageType.EXCEPTION:
1597
      x = TApplicationException()
1598
      x.read(self._iprot)
1599
      self._iprot.readMessageEnd()
1600
      raise x
1601
    result = getBestSellersCatalogIds_result()
1602
    result.read(self._iprot)
1603
    self._iprot.readMessageEnd()
1604
    if result.success is not None:
1605
      return result.success
1606
    if result.cex is not None:
1607
      raise result.cex
1608
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1609
 
1610
  def getBestSellersCount(self, ):
1611
    self.send_getBestSellersCount()
1612
    return self.recv_getBestSellersCount()
1613
 
1614
  def send_getBestSellersCount(self, ):
1615
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1616
    args = getBestSellersCount_args()
1617
    args.write(self._oprot)
1618
    self._oprot.writeMessageEnd()
1619
    self._oprot.trans.flush()
1620
 
1621
  def recv_getBestSellersCount(self, ):
1622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1623
    if mtype == TMessageType.EXCEPTION:
1624
      x = TApplicationException()
1625
      x.read(self._iprot)
1626
      self._iprot.readMessageEnd()
1627
      raise x
1628
    result = getBestSellersCount_result()
1629
    result.read(self._iprot)
1630
    self._iprot.readMessageEnd()
1631
    if result.success is not None:
1632
      return result.success
1633
    if result.cex is not None:
1634
      raise result.cex
1635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1636
 
1637
  def getBestDeals(self, ):
1638
    self.send_getBestDeals()
1639
    return self.recv_getBestDeals()
1640
 
1641
  def send_getBestDeals(self, ):
1642
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1643
    args = getBestDeals_args()
1644
    args.write(self._oprot)
1645
    self._oprot.writeMessageEnd()
1646
    self._oprot.trans.flush()
1647
 
1648
  def recv_getBestDeals(self, ):
1649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1650
    if mtype == TMessageType.EXCEPTION:
1651
      x = TApplicationException()
1652
      x.read(self._iprot)
1653
      self._iprot.readMessageEnd()
1654
      raise x
1655
    result = getBestDeals_result()
1656
    result.read(self._iprot)
1657
    self._iprot.readMessageEnd()
1658
    if result.success is not None:
1659
      return result.success
1660
    if result.isex is not None:
1661
      raise result.isex
1662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1663
 
1664
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1665
    """
1666
    Parameters:
1667
     - beginIndex
1668
     - totalItems
1669
     - brand
1670
     - category
1671
    """
1672
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1673
    return self.recv_getBestDealsCatalogIds()
1674
 
1675
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1676
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1677
    args = getBestDealsCatalogIds_args()
1678
    args.beginIndex = beginIndex
1679
    args.totalItems = totalItems
1680
    args.brand = brand
1681
    args.category = category
1682
    args.write(self._oprot)
1683
    self._oprot.writeMessageEnd()
1684
    self._oprot.trans.flush()
1685
 
1686
  def recv_getBestDealsCatalogIds(self, ):
1687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1688
    if mtype == TMessageType.EXCEPTION:
1689
      x = TApplicationException()
1690
      x.read(self._iprot)
1691
      self._iprot.readMessageEnd()
1692
      raise x
1693
    result = getBestDealsCatalogIds_result()
1694
    result.read(self._iprot)
1695
    self._iprot.readMessageEnd()
1696
    if result.success is not None:
1697
      return result.success
1698
    if result.cex is not None:
1699
      raise result.cex
1700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1701
 
1702
  def getBestDealsCount(self, ):
1703
    self.send_getBestDealsCount()
1704
    return self.recv_getBestDealsCount()
1705
 
1706
  def send_getBestDealsCount(self, ):
1707
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1708
    args = getBestDealsCount_args()
1709
    args.write(self._oprot)
1710
    self._oprot.writeMessageEnd()
1711
    self._oprot.trans.flush()
1712
 
1713
  def recv_getBestDealsCount(self, ):
1714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1715
    if mtype == TMessageType.EXCEPTION:
1716
      x = TApplicationException()
1717
      x.read(self._iprot)
1718
      self._iprot.readMessageEnd()
1719
      raise x
1720
    result = getBestDealsCount_result()
1721
    result.read(self._iprot)
1722
    self._iprot.readMessageEnd()
1723
    if result.success is not None:
1724
      return result.success
1725
    if result.cex is not None:
1726
      raise result.cex
1727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1728
 
1729
  def getComingSoon(self, ):
1730
    self.send_getComingSoon()
1731
    return self.recv_getComingSoon()
1732
 
1733
  def send_getComingSoon(self, ):
1734
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1735
    args = getComingSoon_args()
1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_getComingSoon(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = getComingSoon_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
1750
    if result.success is not None:
1751
      return result.success
1752
    if result.isex is not None:
1753
      raise result.isex
1754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1755
 
1756
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1757
    """
1758
    Parameters:
1759
     - beginIndex
1760
     - totalItems
1761
     - brand
1762
     - category
1763
    """
1764
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1765
    return self.recv_getComingSoonCatalogIds()
1766
 
1767
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1768
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1769
    args = getComingSoonCatalogIds_args()
1770
    args.beginIndex = beginIndex
1771
    args.totalItems = totalItems
1772
    args.brand = brand
1773
    args.category = category
1774
    args.write(self._oprot)
1775
    self._oprot.writeMessageEnd()
1776
    self._oprot.trans.flush()
1777
 
1778
  def recv_getComingSoonCatalogIds(self, ):
1779
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1780
    if mtype == TMessageType.EXCEPTION:
1781
      x = TApplicationException()
1782
      x.read(self._iprot)
1783
      self._iprot.readMessageEnd()
1784
      raise x
1785
    result = getComingSoonCatalogIds_result()
1786
    result.read(self._iprot)
1787
    self._iprot.readMessageEnd()
1788
    if result.success is not None:
1789
      return result.success
1790
    if result.cex is not None:
1791
      raise result.cex
1792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1793
 
1794
  def getComingSoonCount(self, ):
1795
    self.send_getComingSoonCount()
1796
    return self.recv_getComingSoonCount()
1797
 
1798
  def send_getComingSoonCount(self, ):
1799
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1800
    args = getComingSoonCount_args()
1801
    args.write(self._oprot)
1802
    self._oprot.writeMessageEnd()
1803
    self._oprot.trans.flush()
1804
 
1805
  def recv_getComingSoonCount(self, ):
1806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1807
    if mtype == TMessageType.EXCEPTION:
1808
      x = TApplicationException()
1809
      x.read(self._iprot)
1810
      self._iprot.readMessageEnd()
1811
      raise x
1812
    result = getComingSoonCount_result()
1813
    result.read(self._iprot)
1814
    self._iprot.readMessageEnd()
1815
    if result.success is not None:
1816
      return result.success
1817
    if result.cex is not None:
1818
      raise result.cex
1819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1820
 
1821
  def getLatestArrivals(self, ):
1822
    """
1823
    Returns a list of items sorted in the descending order by start date.
1824
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1825
    """
1826
    self.send_getLatestArrivals()
1827
    return self.recv_getLatestArrivals()
1828
 
1829
  def send_getLatestArrivals(self, ):
1830
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1831
    args = getLatestArrivals_args()
1832
    args.write(self._oprot)
1833
    self._oprot.writeMessageEnd()
1834
    self._oprot.trans.flush()
1835
 
1836
  def recv_getLatestArrivals(self, ):
1837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1838
    if mtype == TMessageType.EXCEPTION:
1839
      x = TApplicationException()
1840
      x.read(self._iprot)
1841
      self._iprot.readMessageEnd()
1842
      raise x
1843
    result = getLatestArrivals_result()
1844
    result.read(self._iprot)
1845
    self._iprot.readMessageEnd()
1846
    if result.success is not None:
1847
      return result.success
1848
    if result.isex is not None:
1849
      raise result.isex
1850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1851
 
1852
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1853
    """
1854
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1855
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1856
 
1857
    Parameters:
1858
     - beginIndex
1859
     - totalItems
1860
     - brand
1861
     - categories
1862
    """
1863
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1864
    return self.recv_getLatestArrivalsCatalogIds()
1865
 
1866
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1867
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1868
    args = getLatestArrivalsCatalogIds_args()
1869
    args.beginIndex = beginIndex
1870
    args.totalItems = totalItems
1871
    args.brand = brand
1872
    args.categories = categories
1873
    args.write(self._oprot)
1874
    self._oprot.writeMessageEnd()
1875
    self._oprot.trans.flush()
1876
 
1877
  def recv_getLatestArrivalsCatalogIds(self, ):
1878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1879
    if mtype == TMessageType.EXCEPTION:
1880
      x = TApplicationException()
1881
      x.read(self._iprot)
1882
      self._iprot.readMessageEnd()
1883
      raise x
1884
    result = getLatestArrivalsCatalogIds_result()
1885
    result.read(self._iprot)
1886
    self._iprot.readMessageEnd()
1887
    if result.success is not None:
1888
      return result.success
1889
    if result.cex is not None:
1890
      raise result.cex
1891
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1892
 
1893
  def getLatestArrivalsCount(self, ):
1894
    """
1895
    Get the total number of latest arrivals we are willing to show.
1896
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1897
    """
1898
    self.send_getLatestArrivalsCount()
1899
    return self.recv_getLatestArrivalsCount()
1900
 
1901
  def send_getLatestArrivalsCount(self, ):
1902
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1903
    args = getLatestArrivalsCount_args()
1904
    args.write(self._oprot)
1905
    self._oprot.writeMessageEnd()
1906
    self._oprot.trans.flush()
1907
 
1908
  def recv_getLatestArrivalsCount(self, ):
1909
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1910
    if mtype == TMessageType.EXCEPTION:
1911
      x = TApplicationException()
1912
      x.read(self._iprot)
1913
      self._iprot.readMessageEnd()
1914
      raise x
1915
    result = getLatestArrivalsCount_result()
1916
    result.read(self._iprot)
1917
    self._iprot.readMessageEnd()
1918
    if result.success is not None:
1919
      return result.success
1920
    if result.cex is not None:
1921
      raise result.cex
1922
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1923
 
1924
  def generateNewEntityID(self, ):
1925
    self.send_generateNewEntityID()
1926
    return self.recv_generateNewEntityID()
1927
 
1928
  def send_generateNewEntityID(self, ):
1929
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1930
    args = generateNewEntityID_args()
1931
    args.write(self._oprot)
1932
    self._oprot.writeMessageEnd()
1933
    self._oprot.trans.flush()
1934
 
1935
  def recv_generateNewEntityID(self, ):
1936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1937
    if mtype == TMessageType.EXCEPTION:
1938
      x = TApplicationException()
1939
      x.read(self._iprot)
1940
      self._iprot.readMessageEnd()
1941
      raise x
1942
    result = generateNewEntityID_result()
1943
    result.read(self._iprot)
1944
    self._iprot.readMessageEnd()
1945
    if result.success is not None:
1946
      return result.success
1947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1948
 
1949
  def addCategory(self, category):
1950
    """
1951
    All category related functions
1952
 
1953
    Parameters:
1954
     - category
1955
    """
1956
    self.send_addCategory(category)
1957
    return self.recv_addCategory()
1958
 
1959
  def send_addCategory(self, category):
1960
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1961
    args = addCategory_args()
1962
    args.category = category
1963
    args.write(self._oprot)
1964
    self._oprot.writeMessageEnd()
1965
    self._oprot.trans.flush()
1966
 
1967
  def recv_addCategory(self, ):
1968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1969
    if mtype == TMessageType.EXCEPTION:
1970
      x = TApplicationException()
1971
      x.read(self._iprot)
1972
      self._iprot.readMessageEnd()
1973
      raise x
1974
    result = addCategory_result()
1975
    result.read(self._iprot)
1976
    self._iprot.readMessageEnd()
1977
    if result.success is not None:
1978
      return result.success
1979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1980
 
1981
  def getCategory(self, id):
1982
    """
1983
    Parameters:
1984
     - id
1985
    """
1986
    self.send_getCategory(id)
1987
    return self.recv_getCategory()
1988
 
1989
  def send_getCategory(self, id):
1990
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1991
    args = getCategory_args()
1992
    args.id = id
1993
    args.write(self._oprot)
1994
    self._oprot.writeMessageEnd()
1995
    self._oprot.trans.flush()
1996
 
1997
  def recv_getCategory(self, ):
1998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1999
    if mtype == TMessageType.EXCEPTION:
2000
      x = TApplicationException()
2001
      x.read(self._iprot)
2002
      self._iprot.readMessageEnd()
2003
      raise x
2004
    result = getCategory_result()
2005
    result.read(self._iprot)
2006
    self._iprot.readMessageEnd()
2007
    if result.success is not None:
2008
      return result.success
2009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2010
 
2011
  def getAllCategories(self, ):
2012
    self.send_getAllCategories()
2013
    return self.recv_getAllCategories()
2014
 
2015
  def send_getAllCategories(self, ):
2016
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2017
    args = getAllCategories_args()
2018
    args.write(self._oprot)
2019
    self._oprot.writeMessageEnd()
2020
    self._oprot.trans.flush()
2021
 
2022
  def recv_getAllCategories(self, ):
2023
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2024
    if mtype == TMessageType.EXCEPTION:
2025
      x = TApplicationException()
2026
      x.read(self._iprot)
2027
      self._iprot.readMessageEnd()
2028
      raise x
2029
    result = getAllCategories_result()
2030
    result.read(self._iprot)
2031
    self._iprot.readMessageEnd()
2032
    if result.success is not None:
2033
      return result.success
2034
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2035
 
2036
  def getAllSimilarItems(self, itemId):
2037
    """
2038
    Returns the list of similar items.
2039
 
2040
    Parameters:
2041
     - itemId
2042
    """
2043
    self.send_getAllSimilarItems(itemId)
2044
    return self.recv_getAllSimilarItems()
2045
 
2046
  def send_getAllSimilarItems(self, itemId):
2047
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2048
    args = getAllSimilarItems_args()
2049
    args.itemId = itemId
2050
    args.write(self._oprot)
2051
    self._oprot.writeMessageEnd()
2052
    self._oprot.trans.flush()
2053
 
2054
  def recv_getAllSimilarItems(self, ):
2055
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2056
    if mtype == TMessageType.EXCEPTION:
2057
      x = TApplicationException()
2058
      x.read(self._iprot)
2059
      self._iprot.readMessageEnd()
2060
      raise x
2061
    result = getAllSimilarItems_result()
2062
    result.read(self._iprot)
2063
    self._iprot.readMessageEnd()
2064
    if result.success is not None:
2065
      return result.success
2066
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2067
 
2068
  def addSimilarItem(self, itemId, catalogItemId):
2069
    """
2070
    Adds similar item.
2071
 
2072
    Parameters:
2073
     - itemId
2074
     - catalogItemId
2075
    """
2076
    self.send_addSimilarItem(itemId, catalogItemId)
2077
    return self.recv_addSimilarItem()
2078
 
2079
  def send_addSimilarItem(self, itemId, catalogItemId):
2080
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2081
    args = addSimilarItem_args()
2082
    args.itemId = itemId
2083
    args.catalogItemId = catalogItemId
2084
    args.write(self._oprot)
2085
    self._oprot.writeMessageEnd()
2086
    self._oprot.trans.flush()
2087
 
2088
  def recv_addSimilarItem(self, ):
2089
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2090
    if mtype == TMessageType.EXCEPTION:
2091
      x = TApplicationException()
2092
      x.read(self._iprot)
2093
      self._iprot.readMessageEnd()
2094
      raise x
2095
    result = addSimilarItem_result()
2096
    result.read(self._iprot)
2097
    self._iprot.readMessageEnd()
2098
    if result.success is not None:
2099
      return result.success
2100
    if result.cex is not None:
2101
      raise result.cex
2102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2103
 
6512 kshitij.so 2104
  def addTag(self, displayName, itemId):
2105
    """
2106
    Tag Related
2107
 
2108
    Parameters:
2109
     - displayName
2110
     - itemId
2111
    """
2112
    self.send_addTag(displayName, itemId)
2113
    return self.recv_addTag()
2114
 
2115
  def send_addTag(self, displayName, itemId):
2116
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2117
    args = addTag_args()
2118
    args.displayName = displayName
2119
    args.itemId = itemId
2120
    args.write(self._oprot)
2121
    self._oprot.writeMessageEnd()
2122
    self._oprot.trans.flush()
2123
 
2124
  def recv_addTag(self, ):
2125
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2126
    if mtype == TMessageType.EXCEPTION:
2127
      x = TApplicationException()
2128
      x.read(self._iprot)
2129
      self._iprot.readMessageEnd()
2130
      raise x
2131
    result = addTag_result()
2132
    result.read(self._iprot)
2133
    self._iprot.readMessageEnd()
2134
    if result.success is not None:
2135
      return result.success
2136
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2137
 
2138
  def deleteEntityTag(self, displayName, itemId):
2139
    """
2140
    Parameters:
2141
     - displayName
2142
     - itemId
2143
    """
2144
    self.send_deleteEntityTag(displayName, itemId)
2145
    return self.recv_deleteEntityTag()
2146
 
2147
  def send_deleteEntityTag(self, displayName, itemId):
2148
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2149
    args = deleteEntityTag_args()
2150
    args.displayName = displayName
2151
    args.itemId = itemId
2152
    args.write(self._oprot)
2153
    self._oprot.writeMessageEnd()
2154
    self._oprot.trans.flush()
2155
 
2156
  def recv_deleteEntityTag(self, ):
2157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2158
    if mtype == TMessageType.EXCEPTION:
2159
      x = TApplicationException()
2160
      x.read(self._iprot)
2161
      self._iprot.readMessageEnd()
2162
      raise x
2163
    result = deleteEntityTag_result()
2164
    result.read(self._iprot)
2165
    self._iprot.readMessageEnd()
2166
    if result.success is not None:
2167
      return result.success
2168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2169
 
2170
  def deleteTag(self, displayName):
2171
    """
2172
    Parameters:
2173
     - displayName
2174
    """
2175
    self.send_deleteTag(displayName)
2176
    return self.recv_deleteTag()
2177
 
2178
  def send_deleteTag(self, displayName):
2179
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2180
    args = deleteTag_args()
2181
    args.displayName = displayName
2182
    args.write(self._oprot)
2183
    self._oprot.writeMessageEnd()
2184
    self._oprot.trans.flush()
2185
 
2186
  def recv_deleteTag(self, ):
2187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2188
    if mtype == TMessageType.EXCEPTION:
2189
      x = TApplicationException()
2190
      x.read(self._iprot)
2191
      self._iprot.readMessageEnd()
2192
      raise x
2193
    result = deleteTag_result()
2194
    result.read(self._iprot)
2195
    self._iprot.readMessageEnd()
2196
    if result.success is not None:
2197
      return result.success
2198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2199
 
2200
  def getAllTags(self, ):
2201
    self.send_getAllTags()
2202
    return self.recv_getAllTags()
2203
 
2204
  def send_getAllTags(self, ):
2205
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2206
    args = getAllTags_args()
2207
    args.write(self._oprot)
2208
    self._oprot.writeMessageEnd()
2209
    self._oprot.trans.flush()
2210
 
2211
  def recv_getAllTags(self, ):
2212
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2213
    if mtype == TMessageType.EXCEPTION:
2214
      x = TApplicationException()
2215
      x.read(self._iprot)
2216
      self._iprot.readMessageEnd()
2217
      raise x
2218
    result = getAllTags_result()
2219
    result.read(self._iprot)
2220
    self._iprot.readMessageEnd()
2221
    if result.success is not None:
2222
      return result.success
2223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2224
 
2225
  def getAllEntitiesByTagName(self, displayName):
2226
    """
2227
    Parameters:
2228
     - displayName
2229
    """
2230
    self.send_getAllEntitiesByTagName(displayName)
2231
    return self.recv_getAllEntitiesByTagName()
2232
 
2233
  def send_getAllEntitiesByTagName(self, displayName):
2234
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2235
    args = getAllEntitiesByTagName_args()
2236
    args.displayName = displayName
2237
    args.write(self._oprot)
2238
    self._oprot.writeMessageEnd()
2239
    self._oprot.trans.flush()
2240
 
2241
  def recv_getAllEntitiesByTagName(self, ):
2242
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2243
    if mtype == TMessageType.EXCEPTION:
2244
      x = TApplicationException()
2245
      x.read(self._iprot)
2246
      self._iprot.readMessageEnd()
2247
      raise x
2248
    result = getAllEntitiesByTagName_result()
2249
    result.read(self._iprot)
2250
    self._iprot.readMessageEnd()
2251
    if result.success is not None:
2252
      return result.success
2253
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2254
 
6845 amit.gupta 2255
  def getAllEntityTags(self, ):
2256
    self.send_getAllEntityTags()
2257
    return self.recv_getAllEntityTags()
2258
 
2259
  def send_getAllEntityTags(self, ):
2260
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2261
    args = getAllEntityTags_args()
2262
    args.write(self._oprot)
2263
    self._oprot.writeMessageEnd()
2264
    self._oprot.trans.flush()
2265
 
2266
  def recv_getAllEntityTags(self, ):
2267
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2268
    if mtype == TMessageType.EXCEPTION:
2269
      x = TApplicationException()
2270
      x.read(self._iprot)
2271
      self._iprot.readMessageEnd()
2272
      raise x
2273
    result = getAllEntityTags_result()
2274
    result.read(self._iprot)
2275
    self._iprot.readMessageEnd()
2276
    if result.success is not None:
2277
      return result.success
2278
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2279
 
8590 kshitij.so 2280
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2281
    """
8579 kshitij.so 2282
    Banner Related
2283
 
6850 kshitij.so 2284
    Parameters:
8590 kshitij.so 2285
     - bannerCongregate
6850 kshitij.so 2286
    """
8590 kshitij.so 2287
    self.send_addBanner(bannerCongregate)
2288
    self.recv_addBanner()
6850 kshitij.so 2289
 
8590 kshitij.so 2290
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2291
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2292
    args = addBanner_args()
8590 kshitij.so 2293
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2294
    args.write(self._oprot)
2295
    self._oprot.writeMessageEnd()
2296
    self._oprot.trans.flush()
2297
 
2298
  def recv_addBanner(self, ):
2299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2300
    if mtype == TMessageType.EXCEPTION:
2301
      x = TApplicationException()
2302
      x.read(self._iprot)
2303
      self._iprot.readMessageEnd()
2304
      raise x
2305
    result = addBanner_result()
2306
    result.read(self._iprot)
2307
    self._iprot.readMessageEnd()
8590 kshitij.so 2308
    return
6850 kshitij.so 2309
 
8579 kshitij.so 2310
  def updateBanner(self, banner):
2311
    """
2312
    Parameters:
2313
     - banner
2314
    """
2315
    self.send_updateBanner(banner)
2316
    return self.recv_updateBanner()
2317
 
2318
  def send_updateBanner(self, banner):
2319
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2320
    args = updateBanner_args()
2321
    args.banner = banner
2322
    args.write(self._oprot)
2323
    self._oprot.writeMessageEnd()
2324
    self._oprot.trans.flush()
2325
 
2326
  def recv_updateBanner(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 = updateBanner_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, "updateBanner failed: unknown result");
2339
 
6850 kshitij.so 2340
  def getAllBanners(self, ):
2341
    self.send_getAllBanners()
2342
    return self.recv_getAllBanners()
2343
 
2344
  def send_getAllBanners(self, ):
2345
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2346
    args = getAllBanners_args()
2347
    args.write(self._oprot)
2348
    self._oprot.writeMessageEnd()
2349
    self._oprot.trans.flush()
2350
 
2351
  def recv_getAllBanners(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 = getAllBanners_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, "getAllBanners failed: unknown result");
2364
 
9155 kshitij.so 2365
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2366
    """
2367
    Parameters:
2368
     - bannerName
9155 kshitij.so 2369
     - bannerType
6850 kshitij.so 2370
    """
9155 kshitij.so 2371
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2372
    return self.recv_deleteBanner()
2373
 
9155 kshitij.so 2374
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2375
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2376
    args = deleteBanner_args()
2377
    args.bannerName = bannerName
9155 kshitij.so 2378
    args.bannerType = bannerType
6850 kshitij.so 2379
    args.write(self._oprot)
2380
    self._oprot.writeMessageEnd()
2381
    self._oprot.trans.flush()
2382
 
2383
  def recv_deleteBanner(self, ):
2384
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2385
    if mtype == TMessageType.EXCEPTION:
2386
      x = TApplicationException()
2387
      x.read(self._iprot)
2388
      self._iprot.readMessageEnd()
2389
      raise x
2390
    result = deleteBanner_result()
2391
    result.read(self._iprot)
2392
    self._iprot.readMessageEnd()
2393
    if result.success is not None:
2394
      return result.success
2395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2396
 
9155 kshitij.so 2397
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2398
    """
2399
    Parameters:
2400
     - bannerName
9155 kshitij.so 2401
     - bannerType
6850 kshitij.so 2402
    """
9155 kshitij.so 2403
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2404
    return self.recv_getBannerDetails()
2405
 
9155 kshitij.so 2406
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2407
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2408
    args = getBannerDetails_args()
2409
    args.bannerName = bannerName
9155 kshitij.so 2410
    args.bannerType = bannerType
6850 kshitij.so 2411
    args.write(self._oprot)
2412
    self._oprot.writeMessageEnd()
2413
    self._oprot.trans.flush()
2414
 
2415
  def recv_getBannerDetails(self, ):
2416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2417
    if mtype == TMessageType.EXCEPTION:
2418
      x = TApplicationException()
2419
      x.read(self._iprot)
2420
      self._iprot.readMessageEnd()
2421
      raise x
2422
    result = getBannerDetails_result()
2423
    result.read(self._iprot)
2424
    self._iprot.readMessageEnd()
2425
    if result.success is not None:
2426
      return result.success
2427
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2428
 
2429
  def getActiveBanners(self, ):
2430
    self.send_getActiveBanners()
2431
    return self.recv_getActiveBanners()
2432
 
2433
  def send_getActiveBanners(self, ):
2434
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2435
    args = getActiveBanners_args()
2436
    args.write(self._oprot)
2437
    self._oprot.writeMessageEnd()
2438
    self._oprot.trans.flush()
2439
 
2440
  def recv_getActiveBanners(self, ):
2441
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2442
    if mtype == TMessageType.EXCEPTION:
2443
      x = TApplicationException()
2444
      x.read(self._iprot)
2445
      self._iprot.readMessageEnd()
2446
      raise x
2447
    result = getActiveBanners_result()
2448
    result.read(self._iprot)
2449
    self._iprot.readMessageEnd()
2450
    if result.success is not None:
2451
      return result.success
2452
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2453
 
8579 kshitij.so 2454
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2455
    """
2456
    Parameters:
8579 kshitij.so 2457
     - bannerMaps
6849 kshitij.so 2458
    """
8579 kshitij.so 2459
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2460
    return self.recv_addBannerMap()
2461
 
8579 kshitij.so 2462
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2463
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2464
    args = addBannerMap_args()
8579 kshitij.so 2465
    args.bannerMaps = bannerMaps
6849 kshitij.so 2466
    args.write(self._oprot)
2467
    self._oprot.writeMessageEnd()
2468
    self._oprot.trans.flush()
2469
 
2470
  def recv_addBannerMap(self, ):
2471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2472
    if mtype == TMessageType.EXCEPTION:
2473
      x = TApplicationException()
2474
      x.read(self._iprot)
2475
      self._iprot.readMessageEnd()
2476
      raise x
2477
    result = addBannerMap_result()
2478
    result.read(self._iprot)
2479
    self._iprot.readMessageEnd()
2480
    if result.success is not None:
2481
      return result.success
2482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2483
 
8579 kshitij.so 2484
  def updateBannerMap(self, bannerMap):
2485
    """
2486
    Parameters:
2487
     - bannerMap
2488
    """
2489
    self.send_updateBannerMap(bannerMap)
2490
    return self.recv_updateBannerMap()
2491
 
2492
  def send_updateBannerMap(self, bannerMap):
2493
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2494
    args = updateBannerMap_args()
2495
    args.bannerMap = bannerMap
2496
    args.write(self._oprot)
2497
    self._oprot.writeMessageEnd()
2498
    self._oprot.trans.flush()
2499
 
2500
  def recv_updateBannerMap(self, ):
2501
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2502
    if mtype == TMessageType.EXCEPTION:
2503
      x = TApplicationException()
2504
      x.read(self._iprot)
2505
      self._iprot.readMessageEnd()
2506
      raise x
2507
    result = updateBannerMap_result()
2508
    result.read(self._iprot)
2509
    self._iprot.readMessageEnd()
2510
    if result.success is not None:
2511
      return result.success
2512
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2513
 
6849 kshitij.so 2514
  def deleteBannerMap(self, bannerName):
2515
    """
2516
    Parameters:
2517
     - bannerName
2518
    """
2519
    self.send_deleteBannerMap(bannerName)
2520
    return self.recv_deleteBannerMap()
2521
 
2522
  def send_deleteBannerMap(self, bannerName):
2523
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2524
    args = deleteBannerMap_args()
2525
    args.bannerName = bannerName
2526
    args.write(self._oprot)
2527
    self._oprot.writeMessageEnd()
2528
    self._oprot.trans.flush()
2529
 
2530
  def recv_deleteBannerMap(self, ):
2531
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2532
    if mtype == TMessageType.EXCEPTION:
2533
      x = TApplicationException()
2534
      x.read(self._iprot)
2535
      self._iprot.readMessageEnd()
2536
      raise x
2537
    result = deleteBannerMap_result()
2538
    result.read(self._iprot)
2539
    self._iprot.readMessageEnd()
2540
    if result.success is not None:
2541
      return result.success
2542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2543
 
9155 kshitij.so 2544
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2545
    """
2546
    Parameters:
2547
     - bannerName
9155 kshitij.so 2548
     - bannerType
6849 kshitij.so 2549
    """
9155 kshitij.so 2550
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2551
    return self.recv_getBannerMapDetails()
2552
 
9155 kshitij.so 2553
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2554
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2555
    args = getBannerMapDetails_args()
2556
    args.bannerName = bannerName
9155 kshitij.so 2557
    args.bannerType = bannerType
6849 kshitij.so 2558
    args.write(self._oprot)
2559
    self._oprot.writeMessageEnd()
2560
    self._oprot.trans.flush()
2561
 
2562
  def recv_getBannerMapDetails(self, ):
2563
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2564
    if mtype == TMessageType.EXCEPTION:
2565
      x = TApplicationException()
2566
      x.read(self._iprot)
2567
      self._iprot.readMessageEnd()
2568
      raise x
2569
    result = getBannerMapDetails_result()
2570
    result.read(self._iprot)
2571
    self._iprot.readMessageEnd()
2572
    if result.success is not None:
2573
      return result.success
2574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2575
 
8579 kshitij.so 2576
  def addBannerUri(self, bannerUriMappings):
2577
    """
2578
    Parameters:
2579
     - bannerUriMappings
2580
    """
2581
    self.send_addBannerUri(bannerUriMappings)
2582
    self.recv_addBannerUri()
2583
 
2584
  def send_addBannerUri(self, bannerUriMappings):
2585
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2586
    args = addBannerUri_args()
2587
    args.bannerUriMappings = bannerUriMappings
2588
    args.write(self._oprot)
2589
    self._oprot.writeMessageEnd()
2590
    self._oprot.trans.flush()
2591
 
2592
  def recv_addBannerUri(self, ):
2593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2594
    if mtype == TMessageType.EXCEPTION:
2595
      x = TApplicationException()
2596
      x.read(self._iprot)
2597
      self._iprot.readMessageEnd()
2598
      raise x
2599
    result = addBannerUri_result()
2600
    result.read(self._iprot)
2601
    self._iprot.readMessageEnd()
2602
    return
2603
 
9155 kshitij.so 2604
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2605
    """
2606
    Parameters:
2607
     - bannerName
9155 kshitij.so 2608
     - bannerType
8579 kshitij.so 2609
    """
9155 kshitij.so 2610
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2611
    return self.recv_getUriMapping()
2612
 
9155 kshitij.so 2613
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2614
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2615
    args = getUriMapping_args()
2616
    args.bannerName = bannerName
9155 kshitij.so 2617
    args.bannerType = bannerType
8579 kshitij.so 2618
    args.write(self._oprot)
2619
    self._oprot.writeMessageEnd()
2620
    self._oprot.trans.flush()
2621
 
2622
  def recv_getUriMapping(self, ):
2623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2624
    if mtype == TMessageType.EXCEPTION:
2625
      x = TApplicationException()
2626
      x.read(self._iprot)
2627
      self._iprot.readMessageEnd()
2628
      raise x
2629
    result = getUriMapping_result()
2630
    result.read(self._iprot)
2631
    self._iprot.readMessageEnd()
2632
    if result.success is not None:
2633
      return result.success
2634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2635
 
2636
  def addCampaign(self, campaign):
2637
    """
2638
    Parameters:
2639
     - campaign
2640
    """
2641
    self.send_addCampaign(campaign)
2642
    self.recv_addCampaign()
2643
 
2644
  def send_addCampaign(self, campaign):
2645
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2646
    args = addCampaign_args()
2647
    args.campaign = campaign
2648
    args.write(self._oprot)
2649
    self._oprot.writeMessageEnd()
2650
    self._oprot.trans.flush()
2651
 
2652
  def recv_addCampaign(self, ):
2653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2654
    if mtype == TMessageType.EXCEPTION:
2655
      x = TApplicationException()
2656
      x.read(self._iprot)
2657
      self._iprot.readMessageEnd()
2658
      raise x
2659
    result = addCampaign_result()
2660
    result.read(self._iprot)
2661
    self._iprot.readMessageEnd()
2662
    return
2663
 
2664
  def getCampaigns(self, campaignName):
2665
    """
2666
    Parameters:
2667
     - campaignName
2668
    """
2669
    self.send_getCampaigns(campaignName)
2670
    return self.recv_getCampaigns()
2671
 
2672
  def send_getCampaigns(self, campaignName):
2673
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
2674
    args = getCampaigns_args()
2675
    args.campaignName = campaignName
2676
    args.write(self._oprot)
2677
    self._oprot.writeMessageEnd()
2678
    self._oprot.trans.flush()
2679
 
2680
  def recv_getCampaigns(self, ):
2681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2682
    if mtype == TMessageType.EXCEPTION:
2683
      x = TApplicationException()
2684
      x.read(self._iprot)
2685
      self._iprot.readMessageEnd()
2686
      raise x
2687
    result = getCampaigns_result()
2688
    result.read(self._iprot)
2689
    self._iprot.readMessageEnd()
2690
    if result.success is not None:
2691
      return result.success
2692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
2693
 
2694
  def deleteCampaign(self, campaignId):
2695
    """
2696
    Parameters:
2697
     - campaignId
2698
    """
2699
    self.send_deleteCampaign(campaignId)
2700
    self.recv_deleteCampaign()
2701
 
2702
  def send_deleteCampaign(self, campaignId):
2703
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
2704
    args = deleteCampaign_args()
2705
    args.campaignId = campaignId
2706
    args.write(self._oprot)
2707
    self._oprot.writeMessageEnd()
2708
    self._oprot.trans.flush()
2709
 
2710
  def recv_deleteCampaign(self, ):
2711
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2712
    if mtype == TMessageType.EXCEPTION:
2713
      x = TApplicationException()
2714
      x.read(self._iprot)
2715
      self._iprot.readMessageEnd()
2716
      raise x
2717
    result = deleteCampaign_result()
2718
    result.read(self._iprot)
2719
    self._iprot.readMessageEnd()
2720
    return
2721
 
2722
  def getAllCampaigns(self, ):
2723
    self.send_getAllCampaigns()
2724
    return self.recv_getAllCampaigns()
2725
 
2726
  def send_getAllCampaigns(self, ):
2727
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
2728
    args = getAllCampaigns_args()
2729
    args.write(self._oprot)
2730
    self._oprot.writeMessageEnd()
2731
    self._oprot.trans.flush()
2732
 
2733
  def recv_getAllCampaigns(self, ):
2734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2735
    if mtype == TMessageType.EXCEPTION:
2736
      x = TApplicationException()
2737
      x.read(self._iprot)
2738
      self._iprot.readMessageEnd()
2739
      raise x
2740
    result = getAllCampaigns_result()
2741
    result.read(self._iprot)
2742
    self._iprot.readMessageEnd()
2743
    if result.success is not None:
2744
      return result.success
2745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
2746
 
9155 kshitij.so 2747
  def getActiveBannersForMobileSite(self, ):
2748
    self.send_getActiveBannersForMobileSite()
2749
    return self.recv_getActiveBannersForMobileSite()
2750
 
2751
  def send_getActiveBannersForMobileSite(self, ):
2752
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
2753
    args = getActiveBannersForMobileSite_args()
2754
    args.write(self._oprot)
2755
    self._oprot.writeMessageEnd()
2756
    self._oprot.trans.flush()
2757
 
2758
  def recv_getActiveBannersForMobileSite(self, ):
2759
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2760
    if mtype == TMessageType.EXCEPTION:
2761
      x = TApplicationException()
2762
      x.read(self._iprot)
2763
      self._iprot.readMessageEnd()
2764
      raise x
2765
    result = getActiveBannersForMobileSite_result()
2766
    result.read(self._iprot)
2767
    self._iprot.readMessageEnd()
2768
    if result.success is not None:
2769
      return result.success
2770
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
2771
 
5944 mandeep.dh 2772
  def deleteSimilarItem(self, itemId, catalogItemId):
2773
    """
2774
    Delete similar item.
2775
 
2776
    Parameters:
2777
     - itemId
2778
     - catalogItemId
2779
    """
2780
    self.send_deleteSimilarItem(itemId, catalogItemId)
2781
    return self.recv_deleteSimilarItem()
2782
 
2783
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2784
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2785
    args = deleteSimilarItem_args()
2786
    args.itemId = itemId
2787
    args.catalogItemId = catalogItemId
2788
    args.write(self._oprot)
2789
    self._oprot.writeMessageEnd()
2790
    self._oprot.trans.flush()
2791
 
2792
  def recv_deleteSimilarItem(self, ):
2793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2794
    if mtype == TMessageType.EXCEPTION:
2795
      x = TApplicationException()
2796
      x.read(self._iprot)
2797
      self._iprot.readMessageEnd()
2798
      raise x
2799
    result = deleteSimilarItem_result()
2800
    result.read(self._iprot)
2801
    self._iprot.readMessageEnd()
2802
    if result.success is not None:
2803
      return result.success
2804
    if result.cex is not None:
2805
      raise result.cex
2806
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2807
 
2808
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2809
    """
2810
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2811
    If yes, returns the itemId else returns 0
2812
 
2813
    Parameters:
2814
     - brand
2815
     - modelNumber
2816
     - modelName
2817
     - color
2818
    """
2819
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2820
    return self.recv_checkSimilarItem()
2821
 
2822
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2823
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2824
    args = checkSimilarItem_args()
2825
    args.brand = brand
2826
    args.modelNumber = modelNumber
2827
    args.modelName = modelName
2828
    args.color = color
2829
    args.write(self._oprot)
2830
    self._oprot.writeMessageEnd()
2831
    self._oprot.trans.flush()
2832
 
2833
  def recv_checkSimilarItem(self, ):
2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2835
    if mtype == TMessageType.EXCEPTION:
2836
      x = TApplicationException()
2837
      x.read(self._iprot)
2838
      self._iprot.readMessageEnd()
2839
      raise x
2840
    result = checkSimilarItem_result()
2841
    result.read(self._iprot)
2842
    self._iprot.readMessageEnd()
2843
    if result.success is not None:
2844
      return result.success
2845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2846
 
2847
  def validateRiskyStatus(self, itemId):
2848
    """
2849
    Check wether item is risky and change status if inventory is not available for risky items
2850
 
2851
    Parameters:
2852
     - itemId
2853
    """
2854
    self.send_validateRiskyStatus(itemId)
2855
    self.recv_validateRiskyStatus()
2856
 
2857
  def send_validateRiskyStatus(self, itemId):
2858
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2859
    args = validateRiskyStatus_args()
2860
    args.itemId = itemId
2861
    args.write(self._oprot)
2862
    self._oprot.writeMessageEnd()
2863
    self._oprot.trans.flush()
2864
 
2865
  def recv_validateRiskyStatus(self, ):
2866
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2867
    if mtype == TMessageType.EXCEPTION:
2868
      x = TApplicationException()
2869
      x.read(self._iprot)
2870
      self._iprot.readMessageEnd()
2871
      raise x
2872
    result = validateRiskyStatus_result()
2873
    result.read(self._iprot)
2874
    self._iprot.readMessageEnd()
2875
    return
2876
 
2877
  def changeItemRiskyFlag(self, itemId, risky):
2878
    """
2879
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2880
 
2881
    Parameters:
2882
     - itemId
2883
     - risky
2884
    """
2885
    self.send_changeItemRiskyFlag(itemId, risky)
2886
    self.recv_changeItemRiskyFlag()
2887
 
2888
  def send_changeItemRiskyFlag(self, itemId, risky):
2889
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2890
    args = changeItemRiskyFlag_args()
2891
    args.itemId = itemId
2892
    args.risky = risky
2893
    args.write(self._oprot)
2894
    self._oprot.writeMessageEnd()
2895
    self._oprot.trans.flush()
2896
 
2897
  def recv_changeItemRiskyFlag(self, ):
2898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2899
    if mtype == TMessageType.EXCEPTION:
2900
      x = TApplicationException()
2901
      x.read(self._iprot)
2902
      self._iprot.readMessageEnd()
2903
      raise x
2904
    result = changeItemRiskyFlag_result()
2905
    result.read(self._iprot)
2906
    self._iprot.readMessageEnd()
2907
    return
2908
 
2909
  def getItemsByRiskyFlag(self, ):
2910
    """
2911
    Returns list of items marked as risky.
2912
    """
2913
    self.send_getItemsByRiskyFlag()
2914
    return self.recv_getItemsByRiskyFlag()
2915
 
2916
  def send_getItemsByRiskyFlag(self, ):
2917
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2918
    args = getItemsByRiskyFlag_args()
2919
    args.write(self._oprot)
2920
    self._oprot.writeMessageEnd()
2921
    self._oprot.trans.flush()
2922
 
2923
  def recv_getItemsByRiskyFlag(self, ):
2924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2925
    if mtype == TMessageType.EXCEPTION:
2926
      x = TApplicationException()
2927
      x.read(self._iprot)
2928
      self._iprot.readMessageEnd()
2929
      raise x
2930
    result = getItemsByRiskyFlag_result()
2931
    result.read(self._iprot)
2932
    self._iprot.readMessageEnd()
2933
    if result.success is not None:
2934
      return result.success
2935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2936
 
2937
  def getItemsForMasterSheet(self, category, brand):
2938
    """
2939
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2940
 
2941
    Parameters:
2942
     - category
2943
     - brand
2944
    """
2945
    self.send_getItemsForMasterSheet(category, brand)
2946
    return self.recv_getItemsForMasterSheet()
2947
 
2948
  def send_getItemsForMasterSheet(self, category, brand):
2949
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2950
    args = getItemsForMasterSheet_args()
2951
    args.category = category
2952
    args.brand = brand
2953
    args.write(self._oprot)
2954
    self._oprot.writeMessageEnd()
2955
    self._oprot.trans.flush()
2956
 
2957
  def recv_getItemsForMasterSheet(self, ):
2958
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2959
    if mtype == TMessageType.EXCEPTION:
2960
      x = TApplicationException()
2961
      x.read(self._iprot)
2962
      self._iprot.readMessageEnd()
2963
      raise x
2964
    result = getItemsForMasterSheet_result()
2965
    result.read(self._iprot)
2966
    self._iprot.readMessageEnd()
2967
    if result.success is not None:
2968
      return result.success
2969
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2970
 
2971
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2972
    """
2973
    Returns list of catalog ids of items with same similarity index as of the given itemId
2974
 
2975
    Parameters:
2976
     - beginIndex
2977
     - totalItems
2978
     - itemId
2979
    """
2980
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2981
    return self.recv_getSimilarItemsCatalogIds()
2982
 
2983
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2984
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2985
    args = getSimilarItemsCatalogIds_args()
2986
    args.beginIndex = beginIndex
2987
    args.totalItems = totalItems
2988
    args.itemId = itemId
2989
    args.write(self._oprot)
2990
    self._oprot.writeMessageEnd()
2991
    self._oprot.trans.flush()
2992
 
2993
  def recv_getSimilarItemsCatalogIds(self, ):
2994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2995
    if mtype == TMessageType.EXCEPTION:
2996
      x = TApplicationException()
2997
      x.read(self._iprot)
2998
      self._iprot.readMessageEnd()
2999
      raise x
3000
    result = getSimilarItemsCatalogIds_result()
3001
    result.read(self._iprot)
3002
    self._iprot.readMessageEnd()
3003
    if result.success is not None:
3004
      return result.success
3005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3006
 
3007
  def addProductNotification(self, itemId, email):
3008
    """
3009
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3010
 
3011
    Parameters:
3012
     - itemId
3013
     - email
3014
    """
3015
    self.send_addProductNotification(itemId, email)
3016
    return self.recv_addProductNotification()
3017
 
3018
  def send_addProductNotification(self, itemId, email):
3019
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3020
    args = addProductNotification_args()
3021
    args.itemId = itemId
3022
    args.email = email
3023
    args.write(self._oprot)
3024
    self._oprot.writeMessageEnd()
3025
    self._oprot.trans.flush()
3026
 
3027
  def recv_addProductNotification(self, ):
3028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3029
    if mtype == TMessageType.EXCEPTION:
3030
      x = TApplicationException()
3031
      x.read(self._iprot)
3032
      self._iprot.readMessageEnd()
3033
      raise x
3034
    result = addProductNotification_result()
3035
    result.read(self._iprot)
3036
    self._iprot.readMessageEnd()
3037
    if result.success is not None:
3038
      return result.success
3039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3040
 
3041
  def sendProductNotifications(self, ):
3042
    """
3043
    Send the product notifications to the users for items which has stock.
3044
    """
3045
    self.send_sendProductNotifications()
3046
    return self.recv_sendProductNotifications()
3047
 
3048
  def send_sendProductNotifications(self, ):
3049
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3050
    args = sendProductNotifications_args()
3051
    args.write(self._oprot)
3052
    self._oprot.writeMessageEnd()
3053
    self._oprot.trans.flush()
3054
 
3055
  def recv_sendProductNotifications(self, ):
3056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3057
    if mtype == TMessageType.EXCEPTION:
3058
      x = TApplicationException()
3059
      x.read(self._iprot)
3060
      self._iprot.readMessageEnd()
3061
      raise x
3062
    result = sendProductNotifications_result()
3063
    result.read(self._iprot)
3064
    self._iprot.readMessageEnd()
3065
    if result.success is not None:
3066
      return result.success
3067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3068
 
3069
  def getAllBrandsByCategory(self, categoryId):
3070
    """
3071
    Returns list of brand names for a given category Id
3072
 
3073
    Parameters:
3074
     - categoryId
3075
    """
3076
    self.send_getAllBrandsByCategory(categoryId)
3077
    return self.recv_getAllBrandsByCategory()
3078
 
3079
  def send_getAllBrandsByCategory(self, categoryId):
3080
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3081
    args = getAllBrandsByCategory_args()
3082
    args.categoryId = categoryId
3083
    args.write(self._oprot)
3084
    self._oprot.writeMessageEnd()
3085
    self._oprot.trans.flush()
3086
 
3087
  def recv_getAllBrandsByCategory(self, ):
3088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3089
    if mtype == TMessageType.EXCEPTION:
3090
      x = TApplicationException()
3091
      x.read(self._iprot)
3092
      self._iprot.readMessageEnd()
3093
      raise x
3094
    result = getAllBrandsByCategory_result()
3095
    result.read(self._iprot)
3096
    self._iprot.readMessageEnd()
3097
    if result.success is not None:
3098
      return result.success
3099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3100
 
3101
  def getAllBrands(self, ):
3102
    """
3103
    Returns list of brand names
3104
    """
3105
    self.send_getAllBrands()
3106
    return self.recv_getAllBrands()
3107
 
3108
  def send_getAllBrands(self, ):
3109
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3110
    args = getAllBrands_args()
3111
    args.write(self._oprot)
3112
    self._oprot.writeMessageEnd()
3113
    self._oprot.trans.flush()
3114
 
3115
  def recv_getAllBrands(self, ):
3116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3117
    if mtype == TMessageType.EXCEPTION:
3118
      x = TApplicationException()
3119
      x.read(self._iprot)
3120
      self._iprot.readMessageEnd()
3121
      raise x
3122
    result = getAllBrands_result()
3123
    result.read(self._iprot)
3124
    self._iprot.readMessageEnd()
3125
    if result.success is not None:
3126
      return result.success
3127
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3128
 
3129
  def getAllSources(self, ):
3130
    """
3131
    Return list of all sources
3132
    """
3133
    self.send_getAllSources()
3134
    return self.recv_getAllSources()
3135
 
3136
  def send_getAllSources(self, ):
3137
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3138
    args = getAllSources_args()
3139
    args.write(self._oprot)
3140
    self._oprot.writeMessageEnd()
3141
    self._oprot.trans.flush()
3142
 
3143
  def recv_getAllSources(self, ):
3144
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3145
    if mtype == TMessageType.EXCEPTION:
3146
      x = TApplicationException()
3147
      x.read(self._iprot)
3148
      self._iprot.readMessageEnd()
3149
      raise x
3150
    result = getAllSources_result()
3151
    result.read(self._iprot)
3152
    self._iprot.readMessageEnd()
3153
    if result.success is not None:
3154
      return result.success
3155
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3156
 
3157
  def getItemPricingBySource(self, itemId, sourceId):
3158
    """
3159
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3160
 
3161
    Parameters:
3162
     - itemId
3163
     - sourceId
3164
    """
3165
    self.send_getItemPricingBySource(itemId, sourceId)
3166
    return self.recv_getItemPricingBySource()
3167
 
3168
  def send_getItemPricingBySource(self, itemId, sourceId):
3169
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3170
    args = getItemPricingBySource_args()
3171
    args.itemId = itemId
3172
    args.sourceId = sourceId
3173
    args.write(self._oprot)
3174
    self._oprot.writeMessageEnd()
3175
    self._oprot.trans.flush()
3176
 
3177
  def recv_getItemPricingBySource(self, ):
3178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3179
    if mtype == TMessageType.EXCEPTION:
3180
      x = TApplicationException()
3181
      x.read(self._iprot)
3182
      self._iprot.readMessageEnd()
3183
      raise x
3184
    result = getItemPricingBySource_result()
3185
    result.read(self._iprot)
3186
    self._iprot.readMessageEnd()
3187
    if result.success is not None:
3188
      return result.success
3189
    if result.cex is not None:
3190
      raise result.cex
3191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3192
 
3193
  def addSourceItemPricing(self, sourceItemPricing):
3194
    """
3195
    Adds prices to be displayed corresponding to the item if user comes from a source.
3196
    If item is not found or source is not found, it will throw exception.
3197
 
3198
    Parameters:
3199
     - sourceItemPricing
3200
    """
3201
    self.send_addSourceItemPricing(sourceItemPricing)
3202
    self.recv_addSourceItemPricing()
3203
 
3204
  def send_addSourceItemPricing(self, sourceItemPricing):
3205
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3206
    args = addSourceItemPricing_args()
3207
    args.sourceItemPricing = sourceItemPricing
3208
    args.write(self._oprot)
3209
    self._oprot.writeMessageEnd()
3210
    self._oprot.trans.flush()
3211
 
3212
  def recv_addSourceItemPricing(self, ):
3213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3214
    if mtype == TMessageType.EXCEPTION:
3215
      x = TApplicationException()
3216
      x.read(self._iprot)
3217
      self._iprot.readMessageEnd()
3218
      raise x
3219
    result = addSourceItemPricing_result()
3220
    result.read(self._iprot)
3221
    self._iprot.readMessageEnd()
3222
    if result.cex is not None:
3223
      raise result.cex
3224
    return
3225
 
3226
  def getAllSourcePricing(self, itemId):
3227
    """
3228
    Returns the list of source pricing information of an item.
3229
    Raises an exception if item not found corresponding to itemId
3230
 
3231
    Parameters:
3232
     - itemId
3233
    """
3234
    self.send_getAllSourcePricing(itemId)
3235
    return self.recv_getAllSourcePricing()
3236
 
3237
  def send_getAllSourcePricing(self, itemId):
3238
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3239
    args = getAllSourcePricing_args()
3240
    args.itemId = itemId
3241
    args.write(self._oprot)
3242
    self._oprot.writeMessageEnd()
3243
    self._oprot.trans.flush()
3244
 
3245
  def recv_getAllSourcePricing(self, ):
3246
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3247
    if mtype == TMessageType.EXCEPTION:
3248
      x = TApplicationException()
3249
      x.read(self._iprot)
3250
      self._iprot.readMessageEnd()
3251
      raise x
3252
    result = getAllSourcePricing_result()
3253
    result.read(self._iprot)
3254
    self._iprot.readMessageEnd()
3255
    if result.success is not None:
3256
      return result.success
3257
    if result.cex is not None:
3258
      raise result.cex
3259
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3260
 
3261
  def getItemForSource(self, item_id, sourceId):
3262
    """
3263
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3264
 
3265
    Parameters:
3266
     - item_id
3267
     - sourceId
3268
    """
3269
    self.send_getItemForSource(item_id, sourceId)
3270
    return self.recv_getItemForSource()
3271
 
3272
  def send_getItemForSource(self, item_id, sourceId):
3273
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3274
    args = getItemForSource_args()
3275
    args.item_id = item_id
3276
    args.sourceId = sourceId
3277
    args.write(self._oprot)
3278
    self._oprot.writeMessageEnd()
3279
    self._oprot.trans.flush()
3280
 
3281
  def recv_getItemForSource(self, ):
3282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3283
    if mtype == TMessageType.EXCEPTION:
3284
      x = TApplicationException()
3285
      x.read(self._iprot)
3286
      self._iprot.readMessageEnd()
3287
      raise x
3288
    result = getItemForSource_result()
3289
    result.read(self._iprot)
3290
    self._iprot.readMessageEnd()
3291
    if result.success is not None:
3292
      return result.success
3293
    if result.cex is not None:
3294
      raise result.cex
3295
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3296
 
3297
  def searchItemsInRange(self, searchTerms, offset, limit):
3298
    """
3299
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3300
 
3301
    Parameters:
3302
     - searchTerms
3303
     - offset
3304
     - limit
3305
    """
3306
    self.send_searchItemsInRange(searchTerms, offset, limit)
3307
    return self.recv_searchItemsInRange()
3308
 
3309
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3310
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3311
    args = searchItemsInRange_args()
3312
    args.searchTerms = searchTerms
3313
    args.offset = offset
3314
    args.limit = limit
3315
    args.write(self._oprot)
3316
    self._oprot.writeMessageEnd()
3317
    self._oprot.trans.flush()
3318
 
3319
  def recv_searchItemsInRange(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 = searchItemsInRange_result()
3327
    result.read(self._iprot)
3328
    self._iprot.readMessageEnd()
3329
    if result.success is not None:
3330
      return result.success
3331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3332
 
3333
  def getSearchResultCount(self, searchTerms):
3334
    """
3335
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3336
 
3337
    Parameters:
3338
     - searchTerms
3339
    """
3340
    self.send_getSearchResultCount(searchTerms)
3341
    return self.recv_getSearchResultCount()
3342
 
3343
  def send_getSearchResultCount(self, searchTerms):
3344
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3345
    args = getSearchResultCount_args()
3346
    args.searchTerms = searchTerms
3347
    args.write(self._oprot)
3348
    self._oprot.writeMessageEnd()
3349
    self._oprot.trans.flush()
3350
 
3351
  def recv_getSearchResultCount(self, ):
3352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3353
    if mtype == TMessageType.EXCEPTION:
3354
      x = TApplicationException()
3355
      x.read(self._iprot)
3356
      self._iprot.readMessageEnd()
3357
      raise x
3358
    result = getSearchResultCount_result()
3359
    result.read(self._iprot)
3360
    self._iprot.readMessageEnd()
3361
    if result.success is not None:
3362
      return result.success
3363
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3364
 
3365
  def getProductNotifications(self, startDateTime):
3366
    """
3367
    Returns a list of product notifications added after a supplied datetime
3368
 
3369
    Parameters:
3370
     - startDateTime
3371
    """
3372
    self.send_getProductNotifications(startDateTime)
3373
    return self.recv_getProductNotifications()
3374
 
3375
  def send_getProductNotifications(self, startDateTime):
3376
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3377
    args = getProductNotifications_args()
3378
    args.startDateTime = startDateTime
3379
    args.write(self._oprot)
3380
    self._oprot.writeMessageEnd()
3381
    self._oprot.trans.flush()
3382
 
3383
  def recv_getProductNotifications(self, ):
3384
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3385
    if mtype == TMessageType.EXCEPTION:
3386
      x = TApplicationException()
3387
      x.read(self._iprot)
3388
      self._iprot.readMessageEnd()
3389
      raise x
3390
    result = getProductNotifications_result()
3391
    result.read(self._iprot)
3392
    self._iprot.readMessageEnd()
3393
    if result.success is not None:
3394
      return result.success
3395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3396
 
7897 amar.kumar 3397
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3398
    """
3399
    Returns a list of count of requests for product notification against each item
3400
 
3401
    Parameters:
3402
     - startDateTime
7897 amar.kumar 3403
     - categoryId
5944 mandeep.dh 3404
    """
7897 amar.kumar 3405
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3406
    return self.recv_getProductNotificationRequestCount()
3407
 
7897 amar.kumar 3408
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3409
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3410
    args = getProductNotificationRequestCount_args()
3411
    args.startDateTime = startDateTime
7897 amar.kumar 3412
    args.categoryId = categoryId
5944 mandeep.dh 3413
    args.write(self._oprot)
3414
    self._oprot.writeMessageEnd()
3415
    self._oprot.trans.flush()
3416
 
3417
  def recv_getProductNotificationRequestCount(self, ):
3418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3419
    if mtype == TMessageType.EXCEPTION:
3420
      x = TApplicationException()
3421
      x.read(self._iprot)
3422
      self._iprot.readMessageEnd()
3423
      raise x
3424
    result = getProductNotificationRequestCount_result()
3425
    result.read(self._iprot)
3426
    self._iprot.readMessageEnd()
3427
    if result.success is not None:
3428
      return result.success
3429
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3430
 
3431
  def addAuthorizationLog(self, itemId, username, reason):
3432
    """
3433
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3434
 
3435
    Parameters:
3436
     - itemId
3437
     - username
3438
     - reason
3439
    """
3440
    self.send_addAuthorizationLog(itemId, username, reason)
3441
    return self.recv_addAuthorizationLog()
3442
 
3443
  def send_addAuthorizationLog(self, itemId, username, reason):
3444
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3445
    args = addAuthorizationLog_args()
3446
    args.itemId = itemId
3447
    args.username = username
3448
    args.reason = reason
3449
    args.write(self._oprot)
3450
    self._oprot.writeMessageEnd()
3451
    self._oprot.trans.flush()
3452
 
3453
  def recv_addAuthorizationLog(self, ):
3454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3455
    if mtype == TMessageType.EXCEPTION:
3456
      x = TApplicationException()
3457
      x.read(self._iprot)
3458
      self._iprot.readMessageEnd()
3459
      raise x
3460
    result = addAuthorizationLog_result()
3461
    result.read(self._iprot)
3462
    self._iprot.readMessageEnd()
3463
    if result.success is not None:
3464
      return result.success
3465
    if result.cex is not None:
3466
      raise result.cex
3467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3468
 
3469
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3470
    """
3471
    Parameters:
3472
     - catalog_item_id
3473
     - voucherType
3474
     - voucherAmount
3475
    """
3476
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3477
    return self.recv_addupdateVoucherForItem()
3478
 
3479
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3480
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3481
    args = addupdateVoucherForItem_args()
3482
    args.catalog_item_id = catalog_item_id
3483
    args.voucherType = voucherType
3484
    args.voucherAmount = voucherAmount
3485
    args.write(self._oprot)
3486
    self._oprot.writeMessageEnd()
3487
    self._oprot.trans.flush()
3488
 
3489
  def recv_addupdateVoucherForItem(self, ):
3490
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3491
    if mtype == TMessageType.EXCEPTION:
3492
      x = TApplicationException()
3493
      x.read(self._iprot)
3494
      self._iprot.readMessageEnd()
3495
      raise x
3496
    result = addupdateVoucherForItem_result()
3497
    result.read(self._iprot)
3498
    self._iprot.readMessageEnd()
3499
    if result.success is not None:
3500
      return result.success
3501
    if result.cex is not None:
3502
      raise result.cex
3503
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3504
 
3505
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3506
    """
3507
    Parameters:
3508
     - catalog_item_id
3509
     - voucherType
3510
    """
3511
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3512
    return self.recv_deleteVoucherForItem()
3513
 
3514
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3515
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3516
    args = deleteVoucherForItem_args()
3517
    args.catalog_item_id = catalog_item_id
3518
    args.voucherType = voucherType
3519
    args.write(self._oprot)
3520
    self._oprot.writeMessageEnd()
3521
    self._oprot.trans.flush()
3522
 
3523
  def recv_deleteVoucherForItem(self, ):
3524
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3525
    if mtype == TMessageType.EXCEPTION:
3526
      x = TApplicationException()
3527
      x.read(self._iprot)
3528
      self._iprot.readMessageEnd()
3529
      raise x
3530
    result = deleteVoucherForItem_result()
3531
    result.read(self._iprot)
3532
    self._iprot.readMessageEnd()
3533
    if result.success is not None:
3534
      return result.success
3535
    if result.cex is not None:
3536
      raise result.cex
3537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3538
 
3539
  def getVoucherAmount(self, itemId, voucherType):
3540
    """
3541
    Parameters:
3542
     - itemId
3543
     - voucherType
3544
    """
3545
    self.send_getVoucherAmount(itemId, voucherType)
3546
    return self.recv_getVoucherAmount()
3547
 
3548
  def send_getVoucherAmount(self, itemId, voucherType):
3549
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3550
    args = getVoucherAmount_args()
3551
    args.itemId = itemId
3552
    args.voucherType = voucherType
3553
    args.write(self._oprot)
3554
    self._oprot.writeMessageEnd()
3555
    self._oprot.trans.flush()
3556
 
3557
  def recv_getVoucherAmount(self, ):
3558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3559
    if mtype == TMessageType.EXCEPTION:
3560
      x = TApplicationException()
3561
      x.read(self._iprot)
3562
      self._iprot.readMessageEnd()
3563
      raise x
3564
    result = getVoucherAmount_result()
3565
    result.read(self._iprot)
3566
    self._iprot.readMessageEnd()
3567
    if result.success is not None:
3568
      return result.success
3569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3570
 
3571
  def getAllItemVouchers(self, itemId):
3572
    """
3573
    Parameters:
3574
     - itemId
3575
    """
3576
    self.send_getAllItemVouchers(itemId)
3577
    return self.recv_getAllItemVouchers()
3578
 
3579
  def send_getAllItemVouchers(self, itemId):
3580
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3581
    args = getAllItemVouchers_args()
3582
    args.itemId = itemId
3583
    args.write(self._oprot)
3584
    self._oprot.writeMessageEnd()
3585
    self._oprot.trans.flush()
3586
 
3587
  def recv_getAllItemVouchers(self, ):
3588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3589
    if mtype == TMessageType.EXCEPTION:
3590
      x = TApplicationException()
3591
      x.read(self._iprot)
3592
      self._iprot.readMessageEnd()
3593
      raise x
3594
    result = getAllItemVouchers_result()
3595
    result.read(self._iprot)
3596
    self._iprot.readMessageEnd()
3597
    if result.success is not None:
3598
      return result.success
3599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3600
 
3601
  def isValidCatalogItemId(self, catalog_item_id):
3602
    """
3603
    Parameters:
3604
     - catalog_item_id
3605
    """
3606
    self.send_isValidCatalogItemId(catalog_item_id)
3607
    return self.recv_isValidCatalogItemId()
3608
 
3609
  def send_isValidCatalogItemId(self, catalog_item_id):
3610
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3611
    args = isValidCatalogItemId_args()
3612
    args.catalog_item_id = catalog_item_id
3613
    args.write(self._oprot)
3614
    self._oprot.writeMessageEnd()
3615
    self._oprot.trans.flush()
3616
 
3617
  def recv_isValidCatalogItemId(self, ):
3618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3619
    if mtype == TMessageType.EXCEPTION:
3620
      x = TApplicationException()
3621
      x.read(self._iprot)
3622
      self._iprot.readMessageEnd()
3623
      raise x
3624
    result = isValidCatalogItemId_result()
3625
    result.read(self._iprot)
3626
    self._iprot.readMessageEnd()
3627
    if result.success is not None:
3628
      return result.success
3629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3630
 
7330 amit.gupta 3631
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3632
    """
3633
    Parameters:
3634
     - itemId
7330 amit.gupta 3635
     - stateId
6039 amit.gupta 3636
     - price
3637
    """
7330 amit.gupta 3638
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3639
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3640
 
7330 amit.gupta 3641
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3642
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3643
    args = getVatPercentageForItem_args()
3644
    args.itemId = itemId
7330 amit.gupta 3645
    args.stateId = stateId
6039 amit.gupta 3646
    args.price = price
3647
    args.write(self._oprot)
3648
    self._oprot.writeMessageEnd()
3649
    self._oprot.trans.flush()
3650
 
3651
  def recv_getVatPercentageForItem(self, ):
3652
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3653
    if mtype == TMessageType.EXCEPTION:
3654
      x = TApplicationException()
3655
      x.read(self._iprot)
3656
      self._iprot.readMessageEnd()
3657
      raise x
3658
    result = getVatPercentageForItem_result()
3659
    result.read(self._iprot)
3660
    self._iprot.readMessageEnd()
3661
    if result.success is not None:
3662
      return result.success
7340 amit.gupta 3663
    if result.cex is not None:
3664
      raise result.cex
6039 amit.gupta 3665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3666
 
3667
  def getVatAmountForItem(self, itemId, price):
3668
    """
3669
    Parameters:
3670
     - itemId
3671
     - price
3672
    """
3673
    self.send_getVatAmountForItem(itemId, price)
3674
    return self.recv_getVatAmountForItem()
3675
 
3676
  def send_getVatAmountForItem(self, itemId, price):
3677
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3678
    args = getVatAmountForItem_args()
3679
    args.itemId = itemId
3680
    args.price = price
3681
    args.write(self._oprot)
3682
    self._oprot.writeMessageEnd()
3683
    self._oprot.trans.flush()
3684
 
3685
  def recv_getVatAmountForItem(self, ):
3686
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3687
    if mtype == TMessageType.EXCEPTION:
3688
      x = TApplicationException()
3689
      x.read(self._iprot)
3690
      self._iprot.readMessageEnd()
3691
      raise x
3692
    result = getVatAmountForItem_result()
3693
    result.read(self._iprot)
3694
    self._iprot.readMessageEnd()
3695
    if result.success is not None:
3696
      return result.success
3697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3698
 
6531 vikram.rag 3699
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3700
    """
3701
    Parameters:
3702
     - offset
3703
     - limit
3704
    """
3705
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3706
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3707
 
6531 vikram.rag 3708
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3709
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3710
    args = getAllIgnoredInventoryUpdateItemsList_args()
3711
    args.offset = offset
3712
    args.limit = limit
3713
    args.write(self._oprot)
3714
    self._oprot.writeMessageEnd()
3715
    self._oprot.trans.flush()
3716
 
3717
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3719
    if mtype == TMessageType.EXCEPTION:
3720
      x = TApplicationException()
3721
      x.read(self._iprot)
3722
      self._iprot.readMessageEnd()
3723
      raise x
3724
    result = getAllIgnoredInventoryUpdateItemsList_result()
3725
    result.read(self._iprot)
3726
    self._iprot.readMessageEnd()
3727
    if result.success is not None:
3728
      return result.success
3729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3730
 
6821 amar.kumar 3731
  def getAllAliveItems(self, ):
3732
    self.send_getAllAliveItems()
3733
    return self.recv_getAllAliveItems()
3734
 
3735
  def send_getAllAliveItems(self, ):
3736
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3737
    args = getAllAliveItems_args()
3738
    args.write(self._oprot)
3739
    self._oprot.writeMessageEnd()
3740
    self._oprot.trans.flush()
3741
 
3742
  def recv_getAllAliveItems(self, ):
3743
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3744
    if mtype == TMessageType.EXCEPTION:
3745
      x = TApplicationException()
3746
      x.read(self._iprot)
3747
      self._iprot.readMessageEnd()
3748
      raise x
3749
    result = getAllAliveItems_result()
3750
    result.read(self._iprot)
3751
    self._iprot.readMessageEnd()
3752
    if result.success is not None:
3753
      return result.success
3754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3755
 
6921 anupam.sin 3756
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3757
    """
3758
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3759
 
6805 anupam.sin 3760
    Parameters:
3761
     - itemId
6921 anupam.sin 3762
     - price
6805 anupam.sin 3763
     - insurerId
3764
     - quantity
3765
    """
6921 anupam.sin 3766
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3767
    return self.recv_getInsuranceAmount()
3768
 
6921 anupam.sin 3769
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3770
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3771
    args = getInsuranceAmount_args()
3772
    args.itemId = itemId
6921 anupam.sin 3773
    args.price = price
6805 anupam.sin 3774
    args.insurerId = insurerId
3775
    args.quantity = quantity
3776
    args.write(self._oprot)
3777
    self._oprot.writeMessageEnd()
3778
    self._oprot.trans.flush()
3779
 
3780
  def recv_getInsuranceAmount(self, ):
3781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3782
    if mtype == TMessageType.EXCEPTION:
3783
      x = TApplicationException()
3784
      x.read(self._iprot)
3785
      self._iprot.readMessageEnd()
3786
      raise x
3787
    result = getInsuranceAmount_result()
3788
    result.read(self._iprot)
3789
    self._iprot.readMessageEnd()
3790
    if result.success is not None:
3791
      return result.success
3792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3793
 
3794
  def getInsurer(self, insurerId):
3795
    """
3796
    Parameters:
3797
     - insurerId
3798
    """
3799
    self.send_getInsurer(insurerId)
3800
    return self.recv_getInsurer()
3801
 
3802
  def send_getInsurer(self, insurerId):
3803
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3804
    args = getInsurer_args()
3805
    args.insurerId = insurerId
3806
    args.write(self._oprot)
3807
    self._oprot.writeMessageEnd()
3808
    self._oprot.trans.flush()
3809
 
3810
  def recv_getInsurer(self, ):
3811
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3812
    if mtype == TMessageType.EXCEPTION:
3813
      x = TApplicationException()
3814
      x.read(self._iprot)
3815
      self._iprot.readMessageEnd()
3816
      raise x
3817
    result = getInsurer_result()
3818
    result.read(self._iprot)
3819
    self._iprot.readMessageEnd()
3820
    if result.success is not None:
3821
      return result.success
3822
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3823
 
6838 vikram.rag 3824
  def getAllInsurers(self, ):
3825
    self.send_getAllInsurers()
3826
    return self.recv_getAllInsurers()
6805 anupam.sin 3827
 
6838 vikram.rag 3828
  def send_getAllInsurers(self, ):
3829
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3830
    args = getAllInsurers_args()
3831
    args.write(self._oprot)
3832
    self._oprot.writeMessageEnd()
3833
    self._oprot.trans.flush()
3834
 
3835
  def recv_getAllInsurers(self, ):
3836
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3837
    if mtype == TMessageType.EXCEPTION:
3838
      x = TApplicationException()
3839
      x.read(self._iprot)
3840
      self._iprot.readMessageEnd()
3841
      raise x
3842
    result = getAllInsurers_result()
3843
    result.read(self._iprot)
3844
    self._iprot.readMessageEnd()
3845
    if result.success is not None:
3846
      return result.success
3847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3848
 
6962 rajveer 3849
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3850
    """
3851
    Parameters:
3852
     - insurerId
3853
     - amount
3854
    """
3855
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3856
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3857
 
6962 rajveer 3858
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3859
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3860
    args = updateInsuranceDeclaredAmount_args()
3861
    args.insurerId = insurerId
3862
    args.amount = amount
3863
    args.write(self._oprot)
3864
    self._oprot.writeMessageEnd()
3865
    self._oprot.trans.flush()
3866
 
3867
  def recv_updateInsuranceDeclaredAmount(self, ):
3868
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3869
    if mtype == TMessageType.EXCEPTION:
3870
      x = TApplicationException()
3871
      x.read(self._iprot)
3872
      self._iprot.readMessageEnd()
3873
      raise x
3874
    result = updateInsuranceDeclaredAmount_result()
3875
    result.read(self._iprot)
3876
    self._iprot.readMessageEnd()
3877
    return
3878
 
7190 amar.kumar 3879
  def getFreebieForItem(self, itemId):
3880
    """
3881
    Parameters:
3882
     - itemId
3883
    """
3884
    self.send_getFreebieForItem(itemId)
3885
    return self.recv_getFreebieForItem()
6962 rajveer 3886
 
7190 amar.kumar 3887
  def send_getFreebieForItem(self, itemId):
3888
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3889
    args = getFreebieForItem_args()
3890
    args.itemId = itemId
3891
    args.write(self._oprot)
3892
    self._oprot.writeMessageEnd()
3893
    self._oprot.trans.flush()
3894
 
3895
  def recv_getFreebieForItem(self, ):
3896
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3897
    if mtype == TMessageType.EXCEPTION:
3898
      x = TApplicationException()
3899
      x.read(self._iprot)
3900
      self._iprot.readMessageEnd()
3901
      raise x
3902
    result = getFreebieForItem_result()
3903
    result.read(self._iprot)
3904
    self._iprot.readMessageEnd()
3905
    if result.success is not None:
3906
      return result.success
3907
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3908
 
3909
  def addOrUpdateFreebieForItem(self, freebieItem):
3910
    """
3911
    Parameters:
3912
     - freebieItem
3913
    """
3914
    self.send_addOrUpdateFreebieForItem(freebieItem)
3915
    self.recv_addOrUpdateFreebieForItem()
3916
 
3917
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3918
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3919
    args = addOrUpdateFreebieForItem_args()
3920
    args.freebieItem = freebieItem
3921
    args.write(self._oprot)
3922
    self._oprot.writeMessageEnd()
3923
    self._oprot.trans.flush()
3924
 
3925
  def recv_addOrUpdateFreebieForItem(self, ):
3926
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3927
    if mtype == TMessageType.EXCEPTION:
3928
      x = TApplicationException()
3929
      x.read(self._iprot)
3930
      self._iprot.readMessageEnd()
3931
      raise x
3932
    result = addOrUpdateFreebieForItem_result()
3933
    result.read(self._iprot)
3934
    self._iprot.readMessageEnd()
3935
    return
3936
 
7272 amit.gupta 3937
  def addOrUpdateBrandInfo(self, brandInfo):
3938
    """
3939
    Parameters:
3940
     - brandInfo
3941
    """
3942
    self.send_addOrUpdateBrandInfo(brandInfo)
3943
    self.recv_addOrUpdateBrandInfo()
3944
 
3945
  def send_addOrUpdateBrandInfo(self, brandInfo):
3946
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
3947
    args = addOrUpdateBrandInfo_args()
3948
    args.brandInfo = brandInfo
3949
    args.write(self._oprot)
3950
    self._oprot.writeMessageEnd()
3951
    self._oprot.trans.flush()
3952
 
3953
  def recv_addOrUpdateBrandInfo(self, ):
3954
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3955
    if mtype == TMessageType.EXCEPTION:
3956
      x = TApplicationException()
3957
      x.read(self._iprot)
3958
      self._iprot.readMessageEnd()
3959
      raise x
3960
    result = addOrUpdateBrandInfo_result()
3961
    result.read(self._iprot)
3962
    self._iprot.readMessageEnd()
3963
    return
3964
 
3965
  def getBrandInfo(self, ):
3966
    self.send_getBrandInfo()
3967
    return self.recv_getBrandInfo()
3968
 
3969
  def send_getBrandInfo(self, ):
3970
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
3971
    args = getBrandInfo_args()
3972
    args.write(self._oprot)
3973
    self._oprot.writeMessageEnd()
3974
    self._oprot.trans.flush()
3975
 
3976
  def recv_getBrandInfo(self, ):
3977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3978
    if mtype == TMessageType.EXCEPTION:
3979
      x = TApplicationException()
3980
      x.read(self._iprot)
3981
      self._iprot.readMessageEnd()
3982
      raise x
3983
    result = getBrandInfo_result()
3984
    result.read(self._iprot)
3985
    self._iprot.readMessageEnd()
3986
    if result.success is not None:
3987
      return result.success
3988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
3989
 
7256 rajveer 3990
  def getStorePricing(self, itemId):
3991
    """
3992
    Parameters:
3993
     - itemId
3994
    """
3995
    self.send_getStorePricing(itemId)
3996
    return self.recv_getStorePricing()
7190 amar.kumar 3997
 
7256 rajveer 3998
  def send_getStorePricing(self, itemId):
3999
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4000
    args = getStorePricing_args()
4001
    args.itemId = itemId
4002
    args.write(self._oprot)
4003
    self._oprot.writeMessageEnd()
4004
    self._oprot.trans.flush()
4005
 
4006
  def recv_getStorePricing(self, ):
4007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4008
    if mtype == TMessageType.EXCEPTION:
4009
      x = TApplicationException()
4010
      x.read(self._iprot)
4011
      self._iprot.readMessageEnd()
4012
      raise x
4013
    result = getStorePricing_result()
4014
    result.read(self._iprot)
4015
    self._iprot.readMessageEnd()
4016
    if result.success is not None:
4017
      return result.success
4018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4019
 
7306 rajveer 4020
  def getStorePricings(self, itemIds):
4021
    """
4022
    Parameters:
4023
     - itemIds
4024
    """
4025
    self.send_getStorePricings(itemIds)
4026
    return self.recv_getStorePricings()
4027
 
4028
  def send_getStorePricings(self, itemIds):
4029
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4030
    args = getStorePricings_args()
4031
    args.itemIds = itemIds
4032
    args.write(self._oprot)
4033
    self._oprot.writeMessageEnd()
4034
    self._oprot.trans.flush()
4035
 
4036
  def recv_getStorePricings(self, ):
4037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4038
    if mtype == TMessageType.EXCEPTION:
4039
      x = TApplicationException()
4040
      x.read(self._iprot)
4041
      self._iprot.readMessageEnd()
4042
      raise x
4043
    result = getStorePricings_result()
4044
    result.read(self._iprot)
4045
    self._iprot.readMessageEnd()
4046
    if result.success is not None:
4047
      return result.success
4048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4049
 
7382 rajveer 4050
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4051
    """
4052
    Parameters:
4053
     - sp
7382 rajveer 4054
     - allColors
7265 rajveer 4055
    """
7382 rajveer 4056
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4057
    self.recv_updateStorePricing()
7256 rajveer 4058
 
7382 rajveer 4059
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4060
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4061
    args = updateStorePricing_args()
4062
    args.sp = sp
7382 rajveer 4063
    args.allColors = allColors
7265 rajveer 4064
    args.write(self._oprot)
4065
    self._oprot.writeMessageEnd()
4066
    self._oprot.trans.flush()
4067
 
4068
  def recv_updateStorePricing(self, ):
4069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4070
    if mtype == TMessageType.EXCEPTION:
4071
      x = TApplicationException()
4072
      x.read(self._iprot)
4073
      self._iprot.readMessageEnd()
4074
      raise x
4075
    result = updateStorePricing_result()
4076
    result.read(self._iprot)
4077
    self._iprot.readMessageEnd()
4078
    return
4079
 
7281 kshitij.so 4080
  def getAllAmazonListedItems(self, ):
4081
    self.send_getAllAmazonListedItems()
4082
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4083
 
7281 kshitij.so 4084
  def send_getAllAmazonListedItems(self, ):
4085
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4086
    args = getAllAmazonListedItems_args()
4087
    args.write(self._oprot)
4088
    self._oprot.writeMessageEnd()
4089
    self._oprot.trans.flush()
4090
 
4091
  def recv_getAllAmazonListedItems(self, ):
4092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4093
    if mtype == TMessageType.EXCEPTION:
4094
      x = TApplicationException()
4095
      x.read(self._iprot)
4096
      self._iprot.readMessageEnd()
4097
      raise x
4098
    result = getAllAmazonListedItems_result()
4099
    result.read(self._iprot)
4100
    self._iprot.readMessageEnd()
4101
    if result.success is not None:
4102
      return result.success
4103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4104
 
8619 kshitij.so 4105
  def searchAmazonItems(self, searchTerm, offset, limit):
4106
    """
4107
    Parameters:
4108
     - searchTerm
4109
     - offset
4110
     - limit
4111
    """
4112
    self.send_searchAmazonItems(searchTerm, offset, limit)
4113
    return self.recv_searchAmazonItems()
4114
 
4115
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4116
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4117
    args = searchAmazonItems_args()
4118
    args.searchTerm = searchTerm
4119
    args.offset = offset
4120
    args.limit = limit
4121
    args.write(self._oprot)
4122
    self._oprot.writeMessageEnd()
4123
    self._oprot.trans.flush()
4124
 
4125
  def recv_searchAmazonItems(self, ):
4126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4127
    if mtype == TMessageType.EXCEPTION:
4128
      x = TApplicationException()
4129
      x.read(self._iprot)
4130
      self._iprot.readMessageEnd()
4131
      raise x
4132
    result = searchAmazonItems_result()
4133
    result.read(self._iprot)
4134
    self._iprot.readMessageEnd()
4135
    if result.success is not None:
4136
      return result.success
4137
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4138
 
4139
  def getAmazonSearchResultCount(self, searchTerm):
4140
    """
4141
    Parameters:
4142
     - searchTerm
4143
    """
4144
    self.send_getAmazonSearchResultCount(searchTerm)
4145
    return self.recv_getAmazonSearchResultCount()
4146
 
4147
  def send_getAmazonSearchResultCount(self, searchTerm):
4148
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4149
    args = getAmazonSearchResultCount_args()
4150
    args.searchTerm = searchTerm
4151
    args.write(self._oprot)
4152
    self._oprot.writeMessageEnd()
4153
    self._oprot.trans.flush()
4154
 
4155
  def recv_getAmazonSearchResultCount(self, ):
4156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4157
    if mtype == TMessageType.EXCEPTION:
4158
      x = TApplicationException()
4159
      x.read(self._iprot)
4160
      self._iprot.readMessageEnd()
4161
      raise x
4162
    result = getAmazonSearchResultCount_result()
4163
    result.read(self._iprot)
4164
    self._iprot.readMessageEnd()
4165
    if result.success is not None:
4166
      return result.success
4167
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4168
 
4169
  def getCountForAmazonlistedItems(self, ):
4170
    self.send_getCountForAmazonlistedItems()
4171
    return self.recv_getCountForAmazonlistedItems()
4172
 
4173
  def send_getCountForAmazonlistedItems(self, ):
4174
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4175
    args = getCountForAmazonlistedItems_args()
4176
    args.write(self._oprot)
4177
    self._oprot.writeMessageEnd()
4178
    self._oprot.trans.flush()
4179
 
4180
  def recv_getCountForAmazonlistedItems(self, ):
4181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4182
    if mtype == TMessageType.EXCEPTION:
4183
      x = TApplicationException()
4184
      x.read(self._iprot)
4185
      self._iprot.readMessageEnd()
4186
      raise x
4187
    result = getCountForAmazonlistedItems_result()
4188
    result.read(self._iprot)
4189
    self._iprot.readMessageEnd()
4190
    if result.success is not None:
4191
      return result.success
4192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4193
 
7281 kshitij.so 4194
  def getAmazonItemDetails(self, itemId):
4195
    """
4196
    Parameters:
4197
     - itemId
4198
    """
4199
    self.send_getAmazonItemDetails(itemId)
4200
    return self.recv_getAmazonItemDetails()
4201
 
4202
  def send_getAmazonItemDetails(self, itemId):
4203
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4204
    args = getAmazonItemDetails_args()
4205
    args.itemId = itemId
4206
    args.write(self._oprot)
4207
    self._oprot.writeMessageEnd()
4208
    self._oprot.trans.flush()
4209
 
4210
  def recv_getAmazonItemDetails(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 = getAmazonItemDetails_result()
4218
    result.read(self._iprot)
4219
    self._iprot.readMessageEnd()
4220
    if result.success is not None:
4221
      return result.success
4222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4223
 
8168 kshitij.so 4224
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4225
    """
4226
    Parameters:
8168 kshitij.so 4227
     - amazonlisted
7281 kshitij.so 4228
    """
8168 kshitij.so 4229
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4230
    self.recv_updateAmazonItemDetails()
4231
 
8168 kshitij.so 4232
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4233
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4234
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4235
    args.amazonlisted = amazonlisted
7281 kshitij.so 4236
    args.write(self._oprot)
4237
    self._oprot.writeMessageEnd()
4238
    self._oprot.trans.flush()
4239
 
4240
  def recv_updateAmazonItemDetails(self, ):
4241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4242
    if mtype == TMessageType.EXCEPTION:
4243
      x = TApplicationException()
4244
      x.read(self._iprot)
4245
      self._iprot.readMessageEnd()
4246
      raise x
4247
    result = updateAmazonItemDetails_result()
4248
    result.read(self._iprot)
4249
    self._iprot.readMessageEnd()
4250
    return
4251
 
4252
  def addAmazonItem(self, amazonlisted):
4253
    """
4254
    Parameters:
4255
     - amazonlisted
4256
    """
4257
    self.send_addAmazonItem(amazonlisted)
4258
    self.recv_addAmazonItem()
4259
 
4260
  def send_addAmazonItem(self, amazonlisted):
4261
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4262
    args = addAmazonItem_args()
4263
    args.amazonlisted = amazonlisted
4264
    args.write(self._oprot)
4265
    self._oprot.writeMessageEnd()
4266
    self._oprot.trans.flush()
4267
 
4268
  def recv_addAmazonItem(self, ):
4269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4270
    if mtype == TMessageType.EXCEPTION:
4271
      x = TApplicationException()
4272
      x.read(self._iprot)
4273
      self._iprot.readMessageEnd()
4274
      raise x
4275
    result = addAmazonItem_result()
4276
    result.read(self._iprot)
4277
    self._iprot.readMessageEnd()
4278
    return
4279
 
7291 vikram.rag 4280
  def getAsinItems(self, ):
4281
    self.send_getAsinItems()
4282
    return self.recv_getAsinItems()
7281 kshitij.so 4283
 
7291 vikram.rag 4284
  def send_getAsinItems(self, ):
4285
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4286
    args = getAsinItems_args()
4287
    args.write(self._oprot)
4288
    self._oprot.writeMessageEnd()
4289
    self._oprot.trans.flush()
4290
 
4291
  def recv_getAsinItems(self, ):
4292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4293
    if mtype == TMessageType.EXCEPTION:
4294
      x = TApplicationException()
4295
      x.read(self._iprot)
4296
      self._iprot.readMessageEnd()
4297
      raise x
4298
    result = getAsinItems_result()
4299
    result.read(self._iprot)
4300
    self._iprot.readMessageEnd()
4301
    if result.success is not None:
4302
      return result.success
4303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4304
 
4305
  def getAllFbaListedItems(self, ):
4306
    self.send_getAllFbaListedItems()
4307
    return self.recv_getAllFbaListedItems()
4308
 
4309
  def send_getAllFbaListedItems(self, ):
4310
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4311
    args = getAllFbaListedItems_args()
4312
    args.write(self._oprot)
4313
    self._oprot.writeMessageEnd()
4314
    self._oprot.trans.flush()
4315
 
4316
  def recv_getAllFbaListedItems(self, ):
4317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4318
    if mtype == TMessageType.EXCEPTION:
4319
      x = TApplicationException()
4320
      x.read(self._iprot)
4321
      self._iprot.readMessageEnd()
4322
      raise x
4323
    result = getAllFbaListedItems_result()
4324
    result.read(self._iprot)
4325
    self._iprot.readMessageEnd()
4326
    if result.success is not None:
4327
      return result.success
4328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4329
 
4330
  def getAllNonFbaListedItems(self, ):
4331
    self.send_getAllNonFbaListedItems()
4332
    return self.recv_getAllNonFbaListedItems()
4333
 
4334
  def send_getAllNonFbaListedItems(self, ):
4335
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4336
    args = getAllNonFbaListedItems_args()
4337
    args.write(self._oprot)
4338
    self._oprot.writeMessageEnd()
4339
    self._oprot.trans.flush()
4340
 
4341
  def recv_getAllNonFbaListedItems(self, ):
4342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4343
    if mtype == TMessageType.EXCEPTION:
4344
      x = TApplicationException()
4345
      x.read(self._iprot)
4346
      self._iprot.readMessageEnd()
4347
      raise x
4348
    result = getAllNonFbaListedItems_result()
4349
    result.read(self._iprot)
4350
    self._iprot.readMessageEnd()
4351
    if result.success is not None:
4352
      return result.success
4353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4354
 
7460 kshitij.so 4355
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4356
    """
4357
    Parameters:
4358
     - itemId
4359
     - holdInventory
4360
     - defaultInventory
4361
    """
4362
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4363
    return self.recv_updateItemInventory()
7291 vikram.rag 4364
 
7460 kshitij.so 4365
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4366
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4367
    args = updateItemInventory_args()
4368
    args.itemId = itemId
4369
    args.holdInventory = holdInventory
4370
    args.defaultInventory = defaultInventory
4371
    args.write(self._oprot)
4372
    self._oprot.writeMessageEnd()
4373
    self._oprot.trans.flush()
4374
 
4375
  def recv_updateItemInventory(self, ):
4376
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4377
    if mtype == TMessageType.EXCEPTION:
4378
      x = TApplicationException()
4379
      x.read(self._iprot)
4380
      self._iprot.readMessageEnd()
4381
      raise x
4382
    result = updateItemInventory_result()
4383
    result.read(self._iprot)
4384
    self._iprot.readMessageEnd()
4385
    if result.success is not None:
4386
      return result.success
4387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4388
 
7770 kshitij.so 4389
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4390
    """
4391
    Parameters:
4392
     - type
4393
     - sku
4394
     - timestamp
4395
    """
4396
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4397
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4398
 
7770 kshitij.so 4399
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4400
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4401
    args = updateTimestampForAmazonFeeds_args()
4402
    args.type = type
4403
    args.sku = sku
4404
    args.timestamp = timestamp
4405
    args.write(self._oprot)
4406
    self._oprot.writeMessageEnd()
4407
    self._oprot.trans.flush()
4408
 
4409
  def recv_updateTimestampForAmazonFeeds(self, ):
4410
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4411
    if mtype == TMessageType.EXCEPTION:
4412
      x = TApplicationException()
4413
      x.read(self._iprot)
4414
      self._iprot.readMessageEnd()
4415
      raise x
4416
    result = updateTimestampForAmazonFeeds_result()
4417
    result.read(self._iprot)
4418
    self._iprot.readMessageEnd()
4419
    if result.success is not None:
4420
      return result.success
4421
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4422
 
7897 amar.kumar 4423
  def getAllParentCategories(self, ):
4424
    self.send_getAllParentCategories()
4425
    return self.recv_getAllParentCategories()
7770 kshitij.so 4426
 
7897 amar.kumar 4427
  def send_getAllParentCategories(self, ):
4428
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4429
    args = getAllParentCategories_args()
4430
    args.write(self._oprot)
4431
    self._oprot.writeMessageEnd()
4432
    self._oprot.trans.flush()
4433
 
4434
  def recv_getAllParentCategories(self, ):
4435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4436
    if mtype == TMessageType.EXCEPTION:
4437
      x = TApplicationException()
4438
      x.read(self._iprot)
4439
      self._iprot.readMessageEnd()
4440
      raise x
4441
    result = getAllParentCategories_result()
4442
    result.read(self._iprot)
4443
    self._iprot.readMessageEnd()
4444
    if result.success is not None:
4445
      return result.success
4446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4447
 
7977 kshitij.so 4448
  def addPageViewEvent(self, pageViewEvents):
4449
    """
4450
    Parameters:
4451
     - pageViewEvents
4452
    """
4453
    self.send_addPageViewEvent(pageViewEvents)
4454
    self.recv_addPageViewEvent()
7897 amar.kumar 4455
 
7977 kshitij.so 4456
  def send_addPageViewEvent(self, pageViewEvents):
4457
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4458
    args = addPageViewEvent_args()
4459
    args.pageViewEvents = pageViewEvents
4460
    args.write(self._oprot)
4461
    self._oprot.writeMessageEnd()
4462
    self._oprot.trans.flush()
4463
 
4464
  def recv_addPageViewEvent(self, ):
4465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4466
    if mtype == TMessageType.EXCEPTION:
4467
      x = TApplicationException()
4468
      x.read(self._iprot)
4469
      self._iprot.readMessageEnd()
4470
      raise x
4471
    result = addPageViewEvent_result()
4472
    result.read(self._iprot)
4473
    self._iprot.readMessageEnd()
4474
    return
4475
 
4476
  def addCartEvent(self, cartEvents):
4477
    """
4478
    Parameters:
4479
     - cartEvents
4480
    """
4481
    self.send_addCartEvent(cartEvents)
4482
    self.recv_addCartEvent()
4483
 
4484
  def send_addCartEvent(self, cartEvents):
4485
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4486
    args = addCartEvent_args()
4487
    args.cartEvents = cartEvents
4488
    args.write(self._oprot)
4489
    self._oprot.writeMessageEnd()
4490
    self._oprot.trans.flush()
4491
 
4492
  def recv_addCartEvent(self, ):
4493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4494
    if mtype == TMessageType.EXCEPTION:
4495
      x = TApplicationException()
4496
      x.read(self._iprot)
4497
      self._iprot.readMessageEnd()
4498
      raise x
4499
    result = addCartEvent_result()
4500
    result.read(self._iprot)
4501
    self._iprot.readMessageEnd()
4502
    return
4503
 
8182 amar.kumar 4504
  def addEbayItem(self, ebayItem):
4505
    """
4506
    Parameters:
4507
     - ebayItem
4508
    """
4509
    self.send_addEbayItem(ebayItem)
4510
    self.recv_addEbayItem()
4511
 
4512
  def send_addEbayItem(self, ebayItem):
4513
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4514
    args = addEbayItem_args()
4515
    args.ebayItem = ebayItem
4516
    args.write(self._oprot)
4517
    self._oprot.writeMessageEnd()
4518
    self._oprot.trans.flush()
4519
 
4520
  def recv_addEbayItem(self, ):
4521
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4522
    if mtype == TMessageType.EXCEPTION:
4523
      x = TApplicationException()
4524
      x.read(self._iprot)
4525
      self._iprot.readMessageEnd()
4526
      raise x
4527
    result = addEbayItem_result()
4528
    result.read(self._iprot)
4529
    self._iprot.readMessageEnd()
4530
    return
4531
 
4532
  def getEbayItem(self, listingId):
4533
    """
4534
    Parameters:
4535
     - listingId
4536
    """
4537
    self.send_getEbayItem(listingId)
4538
    return self.recv_getEbayItem()
4539
 
4540
  def send_getEbayItem(self, listingId):
4541
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4542
    args = getEbayItem_args()
4543
    args.listingId = listingId
4544
    args.write(self._oprot)
4545
    self._oprot.writeMessageEnd()
4546
    self._oprot.trans.flush()
4547
 
4548
  def recv_getEbayItem(self, ):
4549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4550
    if mtype == TMessageType.EXCEPTION:
4551
      x = TApplicationException()
4552
      x.read(self._iprot)
4553
      self._iprot.readMessageEnd()
4554
      raise x
4555
    result = getEbayItem_result()
4556
    result.read(self._iprot)
4557
    self._iprot.readMessageEnd()
4558
    if result.success is not None:
4559
      return result.success
4560
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4561
 
4562
  def updateEbayItem(self, ebayItem):
4563
    """
4564
    Parameters:
4565
     - ebayItem
4566
    """
4567
    self.send_updateEbayItem(ebayItem)
4568
    self.recv_updateEbayItem()
4569
 
4570
  def send_updateEbayItem(self, ebayItem):
4571
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4572
    args = updateEbayItem_args()
4573
    args.ebayItem = ebayItem
4574
    args.write(self._oprot)
4575
    self._oprot.writeMessageEnd()
4576
    self._oprot.trans.flush()
4577
 
4578
  def recv_updateEbayItem(self, ):
4579
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4580
    if mtype == TMessageType.EXCEPTION:
4581
      x = TApplicationException()
4582
      x.read(self._iprot)
4583
      self._iprot.readMessageEnd()
4584
      raise x
4585
    result = updateEbayItem_result()
4586
    result.read(self._iprot)
4587
    self._iprot.readMessageEnd()
4588
    return
4589
 
8139 kshitij.so 4590
  def getAmazonListedItems(self, offset, limit):
4591
    """
4592
    Parameters:
4593
     - offset
4594
     - limit
4595
    """
4596
    self.send_getAmazonListedItems(offset, limit)
4597
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4598
 
8139 kshitij.so 4599
  def send_getAmazonListedItems(self, offset, limit):
4600
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4601
    args = getAmazonListedItems_args()
4602
    args.offset = offset
4603
    args.limit = limit
4604
    args.write(self._oprot)
4605
    self._oprot.writeMessageEnd()
4606
    self._oprot.trans.flush()
4607
 
4608
  def recv_getAmazonListedItems(self, ):
4609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4610
    if mtype == TMessageType.EXCEPTION:
4611
      x = TApplicationException()
4612
      x.read(self._iprot)
4613
      self._iprot.readMessageEnd()
4614
      raise x
4615
    result = getAmazonListedItems_result()
4616
    result.read(self._iprot)
4617
    self._iprot.readMessageEnd()
4618
    if result.success is not None:
4619
      return result.success
4620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4621
 
8168 kshitij.so 4622
  def updateAmazonAttributesInBulk(self, amazonlisted):
4623
    """
4624
    Parameters:
4625
     - amazonlisted
4626
    """
4627
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4628
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4629
 
8168 kshitij.so 4630
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4631
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4632
    args = updateAmazonAttributesInBulk_args()
4633
    args.amazonlisted = amazonlisted
4634
    args.write(self._oprot)
4635
    self._oprot.writeMessageEnd()
4636
    self._oprot.trans.flush()
4637
 
4638
  def recv_updateAmazonAttributesInBulk(self, ):
4639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4640
    if mtype == TMessageType.EXCEPTION:
4641
      x = TApplicationException()
4642
      x.read(self._iprot)
4643
      self._iprot.readMessageEnd()
4644
      raise x
4645
    result = updateAmazonAttributesInBulk_result()
4646
    result.read(self._iprot)
4647
    self._iprot.readMessageEnd()
4648
    if result.success is not None:
4649
      return result.success
4650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4651
 
8379 vikram.rag 4652
  def getAllItemstoListOnFba(self, ):
4653
    self.send_getAllItemstoListOnFba()
4654
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4655
 
8379 vikram.rag 4656
  def send_getAllItemstoListOnFba(self, ):
4657
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
4658
    args = getAllItemstoListOnFba_args()
4659
    args.write(self._oprot)
4660
    self._oprot.writeMessageEnd()
4661
    self._oprot.trans.flush()
4662
 
4663
  def recv_getAllItemstoListOnFba(self, ):
4664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4665
    if mtype == TMessageType.EXCEPTION:
4666
      x = TApplicationException()
4667
      x.read(self._iprot)
4668
      self._iprot.readMessageEnd()
4669
      raise x
4670
    result = getAllItemstoListOnFba_result()
4671
    result.read(self._iprot)
4672
    self._iprot.readMessageEnd()
4673
    if result.success is not None:
4674
      return result.success
4675
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
4676
 
4677
  def getAllItemstoListOnNonFba(self, ):
4678
    self.send_getAllItemstoListOnNonFba()
4679
    return self.recv_getAllItemstoListOnNonFba()
4680
 
4681
  def send_getAllItemstoListOnNonFba(self, ):
4682
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
4683
    args = getAllItemstoListOnNonFba_args()
4684
    args.write(self._oprot)
4685
    self._oprot.writeMessageEnd()
4686
    self._oprot.trans.flush()
4687
 
4688
  def recv_getAllItemstoListOnNonFba(self, ):
4689
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4690
    if mtype == TMessageType.EXCEPTION:
4691
      x = TApplicationException()
4692
      x.read(self._iprot)
4693
      self._iprot.readMessageEnd()
4694
      raise x
4695
    result = getAllItemstoListOnNonFba_result()
4696
    result.read(self._iprot)
4697
    self._iprot.readMessageEnd()
4698
    if result.success is not None:
4699
      return result.success
4700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4701
 
8619 kshitij.so 4702
  def updateAsin(self, item):
4703
    """
4704
    Parameters:
4705
     - item
4706
    """
4707
    self.send_updateAsin(item)
4708
    self.recv_updateAsin()
8616 vikram.rag 4709
 
8619 kshitij.so 4710
  def send_updateAsin(self, item):
4711
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
4712
    args = updateAsin_args()
4713
    args.item = item
4714
    args.write(self._oprot)
4715
    self._oprot.writeMessageEnd()
4716
    self._oprot.trans.flush()
4717
 
4718
  def recv_updateAsin(self, ):
4719
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4720
    if mtype == TMessageType.EXCEPTION:
4721
      x = TApplicationException()
4722
      x.read(self._iprot)
4723
      self._iprot.readMessageEnd()
4724
      raise x
4725
    result = updateAsin_result()
4726
    result.read(self._iprot)
4727
    self._iprot.readMessageEnd()
4728
    return
4729
 
8739 vikram.rag 4730
  def addOrUpdateSnapdealItem(self, snapdealitem):
4731
    """
4732
    Parameters:
4733
     - snapdealitem
4734
    """
4735
    self.send_addOrUpdateSnapdealItem(snapdealitem)
4736
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 4737
 
8739 vikram.rag 4738
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
4739
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
4740
    args = addOrUpdateSnapdealItem_args()
4741
    args.snapdealitem = snapdealitem
4742
    args.write(self._oprot)
4743
    self._oprot.writeMessageEnd()
4744
    self._oprot.trans.flush()
4745
 
4746
  def recv_addOrUpdateSnapdealItem(self, ):
4747
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4748
    if mtype == TMessageType.EXCEPTION:
4749
      x = TApplicationException()
4750
      x.read(self._iprot)
4751
      self._iprot.readMessageEnd()
4752
      raise x
4753
    result = addOrUpdateSnapdealItem_result()
4754
    result.read(self._iprot)
4755
    self._iprot.readMessageEnd()
4756
    if result.success is not None:
4757
      return result.success
4758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
4759
 
4760
  def getSnapdealItem(self, item_id):
4761
    """
4762
    Parameters:
4763
     - item_id
4764
    """
4765
    self.send_getSnapdealItem(item_id)
4766
    return self.recv_getSnapdealItem()
4767
 
4768
  def send_getSnapdealItem(self, item_id):
4769
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
4770
    args = getSnapdealItem_args()
4771
    args.item_id = item_id
4772
    args.write(self._oprot)
4773
    self._oprot.writeMessageEnd()
4774
    self._oprot.trans.flush()
4775
 
4776
  def recv_getSnapdealItem(self, ):
4777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4778
    if mtype == TMessageType.EXCEPTION:
4779
      x = TApplicationException()
4780
      x.read(self._iprot)
4781
      self._iprot.readMessageEnd()
4782
      raise x
4783
    result = getSnapdealItem_result()
4784
    result.read(self._iprot)
4785
    self._iprot.readMessageEnd()
4786
    if result.success is not None:
4787
      return result.success
4788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4789
 
9242 kshitij.so 4790
  def getSnapdealItemDetails(self, item_id):
4791
    """
4792
    Parameters:
4793
     - item_id
4794
    """
4795
    self.send_getSnapdealItemDetails(item_id)
4796
    return self.recv_getSnapdealItemDetails()
4797
 
4798
  def send_getSnapdealItemDetails(self, item_id):
4799
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
4800
    args = getSnapdealItemDetails_args()
4801
    args.item_id = item_id
4802
    args.write(self._oprot)
4803
    self._oprot.writeMessageEnd()
4804
    self._oprot.trans.flush()
4805
 
4806
  def recv_getSnapdealItemDetails(self, ):
4807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4808
    if mtype == TMessageType.EXCEPTION:
4809
      x = TApplicationException()
4810
      x.read(self._iprot)
4811
      self._iprot.readMessageEnd()
4812
      raise x
4813
    result = getSnapdealItemDetails_result()
4814
    result.read(self._iprot)
4815
    self._iprot.readMessageEnd()
4816
    if result.success is not None:
4817
      return result.success
4818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
4819
 
8739 vikram.rag 4820
  def getAllSnapdealItems(self, ):
4821
    self.send_getAllSnapdealItems()
4822
    return self.recv_getAllSnapdealItems()
4823
 
4824
  def send_getAllSnapdealItems(self, ):
4825
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
4826
    args = getAllSnapdealItems_args()
4827
    args.write(self._oprot)
4828
    self._oprot.writeMessageEnd()
4829
    self._oprot.trans.flush()
4830
 
4831
  def recv_getAllSnapdealItems(self, ):
4832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4833
    if mtype == TMessageType.EXCEPTION:
4834
      x = TApplicationException()
4835
      x.read(self._iprot)
4836
      self._iprot.readMessageEnd()
4837
      raise x
4838
    result = getAllSnapdealItems_result()
4839
    result.read(self._iprot)
4840
    self._iprot.readMessageEnd()
4841
    if result.success is not None:
4842
      return result.success
4843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4844
 
9242 kshitij.so 4845
  def getSnapdealItems(self, offset, limit):
4846
    """
4847
    Parameters:
4848
     - offset
4849
     - limit
4850
    """
4851
    self.send_getSnapdealItems(offset, limit)
4852
    return self.recv_getSnapdealItems()
8739 vikram.rag 4853
 
9242 kshitij.so 4854
  def send_getSnapdealItems(self, offset, limit):
4855
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
4856
    args = getSnapdealItems_args()
4857
    args.offset = offset
4858
    args.limit = limit
4859
    args.write(self._oprot)
4860
    self._oprot.writeMessageEnd()
4861
    self._oprot.trans.flush()
4862
 
4863
  def recv_getSnapdealItems(self, ):
4864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4865
    if mtype == TMessageType.EXCEPTION:
4866
      x = TApplicationException()
4867
      x.read(self._iprot)
4868
      self._iprot.readMessageEnd()
4869
      raise x
4870
    result = getSnapdealItems_result()
4871
    result.read(self._iprot)
4872
    self._iprot.readMessageEnd()
4873
    if result.success is not None:
4874
      return result.success
4875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
4876
 
4877
  def searchSnapdealItems(self, searchTerm, offset, limit):
4878
    """
4879
    Parameters:
4880
     - searchTerm
4881
     - offset
4882
     - limit
4883
    """
4884
    self.send_searchSnapdealItems(searchTerm, offset, limit)
4885
    return self.recv_searchSnapdealItems()
4886
 
4887
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
4888
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
4889
    args = searchSnapdealItems_args()
4890
    args.searchTerm = searchTerm
4891
    args.offset = offset
4892
    args.limit = limit
4893
    args.write(self._oprot)
4894
    self._oprot.writeMessageEnd()
4895
    self._oprot.trans.flush()
4896
 
4897
  def recv_searchSnapdealItems(self, ):
4898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4899
    if mtype == TMessageType.EXCEPTION:
4900
      x = TApplicationException()
4901
      x.read(self._iprot)
4902
      self._iprot.readMessageEnd()
4903
      raise x
4904
    result = searchSnapdealItems_result()
4905
    result.read(self._iprot)
4906
    self._iprot.readMessageEnd()
4907
    if result.success is not None:
4908
      return result.success
4909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
4910
 
4911
  def getCountForSnapdealItems(self, ):
4912
    self.send_getCountForSnapdealItems()
4913
    return self.recv_getCountForSnapdealItems()
4914
 
4915
  def send_getCountForSnapdealItems(self, ):
4916
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
4917
    args = getCountForSnapdealItems_args()
4918
    args.write(self._oprot)
4919
    self._oprot.writeMessageEnd()
4920
    self._oprot.trans.flush()
4921
 
4922
  def recv_getCountForSnapdealItems(self, ):
4923
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4924
    if mtype == TMessageType.EXCEPTION:
4925
      x = TApplicationException()
4926
      x.read(self._iprot)
4927
      self._iprot.readMessageEnd()
4928
      raise x
4929
    result = getCountForSnapdealItems_result()
4930
    result.read(self._iprot)
4931
    self._iprot.readMessageEnd()
4932
    if result.success is not None:
4933
      return result.success
4934
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
4935
 
4936
  def getSnapdealSearchResultCount(self, searchTerm):
4937
    """
4938
    Parameters:
4939
     - searchTerm
4940
    """
4941
    self.send_getSnapdealSearchResultCount(searchTerm)
4942
    return self.recv_getSnapdealSearchResultCount()
4943
 
4944
  def send_getSnapdealSearchResultCount(self, searchTerm):
4945
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
4946
    args = getSnapdealSearchResultCount_args()
4947
    args.searchTerm = searchTerm
4948
    args.write(self._oprot)
4949
    self._oprot.writeMessageEnd()
4950
    self._oprot.trans.flush()
4951
 
4952
  def recv_getSnapdealSearchResultCount(self, ):
4953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4954
    if mtype == TMessageType.EXCEPTION:
4955
      x = TApplicationException()
4956
      x.read(self._iprot)
4957
      self._iprot.readMessageEnd()
4958
      raise x
4959
    result = getSnapdealSearchResultCount_result()
4960
    result.read(self._iprot)
4961
    self._iprot.readMessageEnd()
4962
    if result.success is not None:
4963
      return result.success
4964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
4965
 
9299 kshitij.so 4966
  def getPrefferedInsurerForItem(self, itemId, insurerType):
4967
    """
4968
    Parameters:
4969
     - itemId
4970
     - insurerType
4971
    """
4972
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
4973
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 4974
 
9299 kshitij.so 4975
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
4976
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
4977
    args = getPrefferedInsurerForItem_args()
4978
    args.itemId = itemId
4979
    args.insurerType = insurerType
4980
    args.write(self._oprot)
4981
    self._oprot.writeMessageEnd()
4982
    self._oprot.trans.flush()
4983
 
4984
  def recv_getPrefferedInsurerForItem(self, ):
4985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4986
    if mtype == TMessageType.EXCEPTION:
4987
      x = TApplicationException()
4988
      x.read(self._iprot)
4989
      self._iprot.readMessageEnd()
4990
      raise x
4991
    result = getPrefferedInsurerForItem_result()
4992
    result.read(self._iprot)
4993
    self._iprot.readMessageEnd()
4994
    if result.success is not None:
4995
      return result.success
4996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
4997
 
9456 vikram.rag 4998
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
4999
    """
5000
    Parameters:
5001
     - skuAtSnapdeal
5002
    """
5003
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5004
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5005
 
9456 vikram.rag 5006
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5007
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5008
    args = getSnapdealItembySkuAtSnapdeal_args()
5009
    args.skuAtSnapdeal = skuAtSnapdeal
5010
    args.write(self._oprot)
5011
    self._oprot.writeMessageEnd()
5012
    self._oprot.trans.flush()
5013
 
5014
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5016
    if mtype == TMessageType.EXCEPTION:
5017
      x = TApplicationException()
5018
      x.read(self._iprot)
5019
      self._iprot.readMessageEnd()
5020
      raise x
5021
    result = getSnapdealItembySkuAtSnapdeal_result()
5022
    result.read(self._iprot)
5023
    self._iprot.readMessageEnd()
5024
    if result.success is not None:
5025
      return result.success
5026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5027
 
5028
 
5944 mandeep.dh 5029
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5030
  def __init__(self, handler):
5031
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5032
    self._processMap["addItem"] = Processor.process_addItem
5033
    self._processMap["updateItem"] = Processor.process_updateItem
5034
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 5035
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 5036
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
5037
    self._processMap["startItemOn"] = Processor.process_startItemOn
5038
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
5039
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
5040
    self._processMap["getItem"] = Processor.process_getItem
5041
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
5042
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
5043
    self._processMap["getAllItems"] = Processor.process_getAllItems
5044
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
5045
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
5046
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
5047
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
5048
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
5049
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
5050
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
5051
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
5052
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
5053
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
5054
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
5055
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
5056
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
5057
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
5058
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
5059
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
5060
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
5061
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
5062
    self._processMap["addCategory"] = Processor.process_addCategory
5063
    self._processMap["getCategory"] = Processor.process_getCategory
5064
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
5065
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
5066
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 5067
    self._processMap["addTag"] = Processor.process_addTag
5068
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
5069
    self._processMap["deleteTag"] = Processor.process_deleteTag
5070
    self._processMap["getAllTags"] = Processor.process_getAllTags
5071
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 5072
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 5073
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 5074
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 5075
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
5076
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
5077
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
5078
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 5079
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 5080
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 5081
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
5082
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 5083
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
5084
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
5085
    self._processMap["addCampaign"] = Processor.process_addCampaign
5086
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
5087
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
5088
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 5089
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 5090
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
5091
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
5092
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
5093
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
5094
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
5095
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
5096
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
5097
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
5098
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
5099
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
5100
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
5101
    self._processMap["getAllSources"] = Processor.process_getAllSources
5102
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
5103
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
5104
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
5105
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
5106
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
5107
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
5108
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
5109
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
5110
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
5111
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
5112
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
5113
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
5114
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
5115
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 5116
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
5117
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 5118
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 5119
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 5120
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
5121
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 5122
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 5123
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 5124
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
5125
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 5126
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
5127
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 5128
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 5129
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 5130
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 5131
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 5132
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
5133
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
5134
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 5135
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
5136
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
5137
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 5138
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
5139
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
5140
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 5141
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 5142
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 5143
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 5144
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
5145
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 5146
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
5147
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
5148
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 5149
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 5150
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 5151
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
5152
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 5153
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 5154
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
5155
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 5156
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 5157
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 5158
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
5159
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
5160
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
5161
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 5162
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 5163
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
5944 mandeep.dh 5164
 
5165
  def process(self, iprot, oprot):
5166
    (name, type, seqid) = iprot.readMessageBegin()
5167
    if name not in self._processMap:
5168
      iprot.skip(TType.STRUCT)
5169
      iprot.readMessageEnd()
5170
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
5171
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
5172
      x.write(oprot)
5173
      oprot.writeMessageEnd()
5174
      oprot.trans.flush()
5175
      return
5176
    else:
5177
      self._processMap[name](self, seqid, iprot, oprot)
5178
    return True
5179
 
5180
  def process_addItem(self, seqid, iprot, oprot):
5181
    args = addItem_args()
5182
    args.read(iprot)
5183
    iprot.readMessageEnd()
5184
    result = addItem_result()
5185
    try:
5186
      result.success = self._handler.addItem(args.item)
5187
    except CatalogServiceException, cex:
5188
      result.cex = cex
5189
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
5190
    result.write(oprot)
5191
    oprot.writeMessageEnd()
5192
    oprot.trans.flush()
5193
 
5194
  def process_updateItem(self, seqid, iprot, oprot):
5195
    args = updateItem_args()
5196
    args.read(iprot)
5197
    iprot.readMessageEnd()
5198
    result = updateItem_result()
5199
    try:
5200
      result.success = self._handler.updateItem(args.item)
5201
    except CatalogServiceException, cex:
5202
      result.cex = cex
5203
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
5204
    result.write(oprot)
5205
    oprot.writeMessageEnd()
5206
    oprot.trans.flush()
5207
 
5208
  def process_isActive(self, seqid, iprot, oprot):
5209
    args = isActive_args()
5210
    args.read(iprot)
5211
    iprot.readMessageEnd()
5212
    result = isActive_result()
5213
    try:
5214
      result.success = self._handler.isActive(args.itemId)
5215
    except CatalogServiceException, isex:
5216
      result.isex = isex
5217
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
5218
    result.write(oprot)
5219
    oprot.writeMessageEnd()
5220
    oprot.trans.flush()
5221
 
7438 amit.gupta 5222
  def process_getItemsStatus(self, seqid, iprot, oprot):
5223
    args = getItemsStatus_args()
5224
    args.read(iprot)
5225
    iprot.readMessageEnd()
5226
    result = getItemsStatus_result()
5227
    try:
5228
      result.success = self._handler.getItemsStatus(args.itemIds)
5229
    except CatalogServiceException, isex:
5230
      result.isex = isex
5231
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
5232
    result.write(oprot)
5233
    oprot.writeMessageEnd()
5234
    oprot.trans.flush()
5235
 
5944 mandeep.dh 5236
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
5237
    args = getItemStatusDescription_args()
5238
    args.read(iprot)
5239
    iprot.readMessageEnd()
5240
    result = getItemStatusDescription_result()
5241
    try:
5242
      result.success = self._handler.getItemStatusDescription(args.itemId)
5243
    except CatalogServiceException, isex:
5244
      result.isex = isex
5245
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
5246
    result.write(oprot)
5247
    oprot.writeMessageEnd()
5248
    oprot.trans.flush()
5249
 
5250
  def process_startItemOn(self, seqid, iprot, oprot):
5251
    args = startItemOn_args()
5252
    args.read(iprot)
5253
    iprot.readMessageEnd()
5254
    result = startItemOn_result()
5255
    try:
5256
      self._handler.startItemOn(args.item_id, args.timestamp)
5257
    except CatalogServiceException, cex:
5258
      result.cex = cex
5259
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
5260
    result.write(oprot)
5261
    oprot.writeMessageEnd()
5262
    oprot.trans.flush()
5263
 
5264
  def process_retireItemOn(self, seqid, iprot, oprot):
5265
    args = retireItemOn_args()
5266
    args.read(iprot)
5267
    iprot.readMessageEnd()
5268
    result = retireItemOn_result()
5269
    try:
5270
      self._handler.retireItemOn(args.item_id, args.timestamp)
5271
    except CatalogServiceException, cex:
5272
      result.cex = cex
5273
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
5274
    result.write(oprot)
5275
    oprot.writeMessageEnd()
5276
    oprot.trans.flush()
5277
 
5278
  def process_changeItemStatus(self, seqid, iprot, oprot):
5279
    args = changeItemStatus_args()
5280
    args.read(iprot)
5281
    iprot.readMessageEnd()
5282
    result = changeItemStatus_result()
5283
    try:
5284
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
5285
    except CatalogServiceException, cex:
5286
      result.cex = cex
5287
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
5288
    result.write(oprot)
5289
    oprot.writeMessageEnd()
5290
    oprot.trans.flush()
5291
 
5292
  def process_getItem(self, seqid, iprot, oprot):
5293
    args = getItem_args()
5294
    args.read(iprot)
5295
    iprot.readMessageEnd()
5296
    result = getItem_result()
5297
    try:
5298
      result.success = self._handler.getItem(args.item_id)
5299
    except CatalogServiceException, cex:
5300
      result.cex = cex
5301
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
5302
    result.write(oprot)
5303
    oprot.writeMessageEnd()
5304
    oprot.trans.flush()
5305
 
5306
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
5307
    args = getItemsByCatalogId_args()
5308
    args.read(iprot)
5309
    iprot.readMessageEnd()
5310
    result = getItemsByCatalogId_result()
5311
    try:
5312
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
5313
    except CatalogServiceException, cex:
5314
      result.cex = cex
5315
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
5316
    result.write(oprot)
5317
    oprot.writeMessageEnd()
5318
    oprot.trans.flush()
5319
 
5320
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
5321
    args = getValidItemsByCatalogId_args()
5322
    args.read(iprot)
5323
    iprot.readMessageEnd()
5324
    result = getValidItemsByCatalogId_result()
5325
    try:
5326
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
5327
    except CatalogServiceException, cex:
5328
      result.cex = cex
5329
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
5330
    result.write(oprot)
5331
    oprot.writeMessageEnd()
5332
    oprot.trans.flush()
5333
 
5334
  def process_getAllItems(self, seqid, iprot, oprot):
5335
    args = getAllItems_args()
5336
    args.read(iprot)
5337
    iprot.readMessageEnd()
5338
    result = getAllItems_result()
5339
    try:
5340
      result.success = self._handler.getAllItems(args.isActive)
5341
    except CatalogServiceException, cex:
5342
      result.cex = cex
5343
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
5344
    result.write(oprot)
5345
    oprot.writeMessageEnd()
5346
    oprot.trans.flush()
5347
 
5348
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
5349
    args = getAllItemsByStatus_args()
5350
    args.read(iprot)
5351
    iprot.readMessageEnd()
5352
    result = getAllItemsByStatus_result()
5353
    try:
5354
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
5355
    except CatalogServiceException, cex:
5356
      result.cex = cex
5357
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
5358
    result.write(oprot)
5359
    oprot.writeMessageEnd()
5360
    oprot.trans.flush()
5361
 
5362
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
5363
    args = markItemAsContentComplete_args()
5364
    args.read(iprot)
5365
    iprot.readMessageEnd()
5366
    result = markItemAsContentComplete_result()
5367
    try:
9253 rajveer 5368
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 5369
    except CatalogServiceException, cex:
5370
      result.cex = cex
5371
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
5372
    result.write(oprot)
5373
    oprot.writeMessageEnd()
5374
    oprot.trans.flush()
5375
 
5376
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
5377
    args = getAllItemsInRange_args()
5378
    args.read(iprot)
5379
    iprot.readMessageEnd()
5380
    result = getAllItemsInRange_result()
5381
    try:
5382
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
5383
    except CatalogServiceException, cex:
5384
      result.cex = cex
5385
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
5386
    result.write(oprot)
5387
    oprot.writeMessageEnd()
5388
    oprot.trans.flush()
5389
 
5390
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
5391
    args = getAllItemsByStatusInRange_args()
5392
    args.read(iprot)
5393
    iprot.readMessageEnd()
5394
    result = getAllItemsByStatusInRange_result()
5395
    try:
5396
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
5397
    except CatalogServiceException, cex:
5398
      result.cex = cex
5399
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
5400
    result.write(oprot)
5401
    oprot.writeMessageEnd()
5402
    oprot.trans.flush()
5403
 
5404
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
5405
    args = getItemCountByStatus_args()
5406
    args.read(iprot)
5407
    iprot.readMessageEnd()
5408
    result = getItemCountByStatus_result()
5409
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
5410
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
5411
    result.write(oprot)
5412
    oprot.writeMessageEnd()
5413
    oprot.trans.flush()
5414
 
5415
  def process_getBestSellers(self, seqid, iprot, oprot):
5416
    args = getBestSellers_args()
5417
    args.read(iprot)
5418
    iprot.readMessageEnd()
5419
    result = getBestSellers_result()
5420
    try:
5421
      result.success = self._handler.getBestSellers()
5422
    except CatalogServiceException, isex:
5423
      result.isex = isex
5424
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
5425
    result.write(oprot)
5426
    oprot.writeMessageEnd()
5427
    oprot.trans.flush()
5428
 
5429
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
5430
    args = getBestSellersCatalogIds_args()
5431
    args.read(iprot)
5432
    iprot.readMessageEnd()
5433
    result = getBestSellersCatalogIds_result()
5434
    try:
5435
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5436
    except CatalogServiceException, cex:
5437
      result.cex = cex
5438
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
5439
    result.write(oprot)
5440
    oprot.writeMessageEnd()
5441
    oprot.trans.flush()
5442
 
5443
  def process_getBestSellersCount(self, seqid, iprot, oprot):
5444
    args = getBestSellersCount_args()
5445
    args.read(iprot)
5446
    iprot.readMessageEnd()
5447
    result = getBestSellersCount_result()
5448
    try:
5449
      result.success = self._handler.getBestSellersCount()
5450
    except CatalogServiceException, cex:
5451
      result.cex = cex
5452
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
5453
    result.write(oprot)
5454
    oprot.writeMessageEnd()
5455
    oprot.trans.flush()
5456
 
5457
  def process_getBestDeals(self, seqid, iprot, oprot):
5458
    args = getBestDeals_args()
5459
    args.read(iprot)
5460
    iprot.readMessageEnd()
5461
    result = getBestDeals_result()
5462
    try:
5463
      result.success = self._handler.getBestDeals()
5464
    except CatalogServiceException, isex:
5465
      result.isex = isex
5466
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
5467
    result.write(oprot)
5468
    oprot.writeMessageEnd()
5469
    oprot.trans.flush()
5470
 
5471
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
5472
    args = getBestDealsCatalogIds_args()
5473
    args.read(iprot)
5474
    iprot.readMessageEnd()
5475
    result = getBestDealsCatalogIds_result()
5476
    try:
5477
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5478
    except CatalogServiceException, cex:
5479
      result.cex = cex
5480
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
5481
    result.write(oprot)
5482
    oprot.writeMessageEnd()
5483
    oprot.trans.flush()
5484
 
5485
  def process_getBestDealsCount(self, seqid, iprot, oprot):
5486
    args = getBestDealsCount_args()
5487
    args.read(iprot)
5488
    iprot.readMessageEnd()
5489
    result = getBestDealsCount_result()
5490
    try:
5491
      result.success = self._handler.getBestDealsCount()
5492
    except CatalogServiceException, cex:
5493
      result.cex = cex
5494
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
5495
    result.write(oprot)
5496
    oprot.writeMessageEnd()
5497
    oprot.trans.flush()
5498
 
5499
  def process_getComingSoon(self, seqid, iprot, oprot):
5500
    args = getComingSoon_args()
5501
    args.read(iprot)
5502
    iprot.readMessageEnd()
5503
    result = getComingSoon_result()
5504
    try:
5505
      result.success = self._handler.getComingSoon()
5506
    except CatalogServiceException, isex:
5507
      result.isex = isex
5508
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
5509
    result.write(oprot)
5510
    oprot.writeMessageEnd()
5511
    oprot.trans.flush()
5512
 
5513
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
5514
    args = getComingSoonCatalogIds_args()
5515
    args.read(iprot)
5516
    iprot.readMessageEnd()
5517
    result = getComingSoonCatalogIds_result()
5518
    try:
5519
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
5520
    except CatalogServiceException, cex:
5521
      result.cex = cex
5522
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
5523
    result.write(oprot)
5524
    oprot.writeMessageEnd()
5525
    oprot.trans.flush()
5526
 
5527
  def process_getComingSoonCount(self, seqid, iprot, oprot):
5528
    args = getComingSoonCount_args()
5529
    args.read(iprot)
5530
    iprot.readMessageEnd()
5531
    result = getComingSoonCount_result()
5532
    try:
5533
      result.success = self._handler.getComingSoonCount()
5534
    except CatalogServiceException, cex:
5535
      result.cex = cex
5536
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
5537
    result.write(oprot)
5538
    oprot.writeMessageEnd()
5539
    oprot.trans.flush()
5540
 
5541
  def process_getLatestArrivals(self, seqid, iprot, oprot):
5542
    args = getLatestArrivals_args()
5543
    args.read(iprot)
5544
    iprot.readMessageEnd()
5545
    result = getLatestArrivals_result()
5546
    try:
5547
      result.success = self._handler.getLatestArrivals()
5548
    except CatalogServiceException, isex:
5549
      result.isex = isex
5550
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
5551
    result.write(oprot)
5552
    oprot.writeMessageEnd()
5553
    oprot.trans.flush()
5554
 
5555
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
5556
    args = getLatestArrivalsCatalogIds_args()
5557
    args.read(iprot)
5558
    iprot.readMessageEnd()
5559
    result = getLatestArrivalsCatalogIds_result()
5560
    try:
5561
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
5562
    except CatalogServiceException, cex:
5563
      result.cex = cex
5564
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
5565
    result.write(oprot)
5566
    oprot.writeMessageEnd()
5567
    oprot.trans.flush()
5568
 
5569
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
5570
    args = getLatestArrivalsCount_args()
5571
    args.read(iprot)
5572
    iprot.readMessageEnd()
5573
    result = getLatestArrivalsCount_result()
5574
    try:
5575
      result.success = self._handler.getLatestArrivalsCount()
5576
    except CatalogServiceException, cex:
5577
      result.cex = cex
5578
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
5579
    result.write(oprot)
5580
    oprot.writeMessageEnd()
5581
    oprot.trans.flush()
5582
 
5583
  def process_generateNewEntityID(self, seqid, iprot, oprot):
5584
    args = generateNewEntityID_args()
5585
    args.read(iprot)
5586
    iprot.readMessageEnd()
5587
    result = generateNewEntityID_result()
5588
    result.success = self._handler.generateNewEntityID()
5589
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
5590
    result.write(oprot)
5591
    oprot.writeMessageEnd()
5592
    oprot.trans.flush()
5593
 
5594
  def process_addCategory(self, seqid, iprot, oprot):
5595
    args = addCategory_args()
5596
    args.read(iprot)
5597
    iprot.readMessageEnd()
5598
    result = addCategory_result()
5599
    result.success = self._handler.addCategory(args.category)
5600
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
5601
    result.write(oprot)
5602
    oprot.writeMessageEnd()
5603
    oprot.trans.flush()
5604
 
5605
  def process_getCategory(self, seqid, iprot, oprot):
5606
    args = getCategory_args()
5607
    args.read(iprot)
5608
    iprot.readMessageEnd()
5609
    result = getCategory_result()
5610
    result.success = self._handler.getCategory(args.id)
5611
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
5612
    result.write(oprot)
5613
    oprot.writeMessageEnd()
5614
    oprot.trans.flush()
5615
 
5616
  def process_getAllCategories(self, seqid, iprot, oprot):
5617
    args = getAllCategories_args()
5618
    args.read(iprot)
5619
    iprot.readMessageEnd()
5620
    result = getAllCategories_result()
5621
    result.success = self._handler.getAllCategories()
5622
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
5623
    result.write(oprot)
5624
    oprot.writeMessageEnd()
5625
    oprot.trans.flush()
5626
 
5627
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
5628
    args = getAllSimilarItems_args()
5629
    args.read(iprot)
5630
    iprot.readMessageEnd()
5631
    result = getAllSimilarItems_result()
5632
    result.success = self._handler.getAllSimilarItems(args.itemId)
5633
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
5634
    result.write(oprot)
5635
    oprot.writeMessageEnd()
5636
    oprot.trans.flush()
5637
 
5638
  def process_addSimilarItem(self, seqid, iprot, oprot):
5639
    args = addSimilarItem_args()
5640
    args.read(iprot)
5641
    iprot.readMessageEnd()
5642
    result = addSimilarItem_result()
5643
    try:
5644
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
5645
    except CatalogServiceException, cex:
5646
      result.cex = cex
5647
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
5648
    result.write(oprot)
5649
    oprot.writeMessageEnd()
5650
    oprot.trans.flush()
5651
 
6512 kshitij.so 5652
  def process_addTag(self, seqid, iprot, oprot):
5653
    args = addTag_args()
5654
    args.read(iprot)
5655
    iprot.readMessageEnd()
5656
    result = addTag_result()
5657
    result.success = self._handler.addTag(args.displayName, args.itemId)
5658
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
5659
    result.write(oprot)
5660
    oprot.writeMessageEnd()
5661
    oprot.trans.flush()
5662
 
5663
  def process_deleteEntityTag(self, seqid, iprot, oprot):
5664
    args = deleteEntityTag_args()
5665
    args.read(iprot)
5666
    iprot.readMessageEnd()
5667
    result = deleteEntityTag_result()
5668
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
5669
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
5670
    result.write(oprot)
5671
    oprot.writeMessageEnd()
5672
    oprot.trans.flush()
5673
 
5674
  def process_deleteTag(self, seqid, iprot, oprot):
5675
    args = deleteTag_args()
5676
    args.read(iprot)
5677
    iprot.readMessageEnd()
5678
    result = deleteTag_result()
5679
    result.success = self._handler.deleteTag(args.displayName)
5680
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
5681
    result.write(oprot)
5682
    oprot.writeMessageEnd()
5683
    oprot.trans.flush()
5684
 
5685
  def process_getAllTags(self, seqid, iprot, oprot):
5686
    args = getAllTags_args()
5687
    args.read(iprot)
5688
    iprot.readMessageEnd()
5689
    result = getAllTags_result()
5690
    result.success = self._handler.getAllTags()
5691
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
5692
    result.write(oprot)
5693
    oprot.writeMessageEnd()
5694
    oprot.trans.flush()
5695
 
5696
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
5697
    args = getAllEntitiesByTagName_args()
5698
    args.read(iprot)
5699
    iprot.readMessageEnd()
5700
    result = getAllEntitiesByTagName_result()
5701
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
5702
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
5703
    result.write(oprot)
5704
    oprot.writeMessageEnd()
5705
    oprot.trans.flush()
5706
 
6845 amit.gupta 5707
  def process_getAllEntityTags(self, seqid, iprot, oprot):
5708
    args = getAllEntityTags_args()
5709
    args.read(iprot)
5710
    iprot.readMessageEnd()
5711
    result = getAllEntityTags_result()
5712
    result.success = self._handler.getAllEntityTags()
5713
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
5714
    result.write(oprot)
5715
    oprot.writeMessageEnd()
5716
    oprot.trans.flush()
5717
 
6850 kshitij.so 5718
  def process_addBanner(self, seqid, iprot, oprot):
5719
    args = addBanner_args()
5720
    args.read(iprot)
5721
    iprot.readMessageEnd()
5722
    result = addBanner_result()
8590 kshitij.so 5723
    self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 5724
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
5725
    result.write(oprot)
5726
    oprot.writeMessageEnd()
5727
    oprot.trans.flush()
5728
 
8579 kshitij.so 5729
  def process_updateBanner(self, seqid, iprot, oprot):
5730
    args = updateBanner_args()
5731
    args.read(iprot)
5732
    iprot.readMessageEnd()
5733
    result = updateBanner_result()
5734
    result.success = self._handler.updateBanner(args.banner)
5735
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
5736
    result.write(oprot)
5737
    oprot.writeMessageEnd()
5738
    oprot.trans.flush()
5739
 
6850 kshitij.so 5740
  def process_getAllBanners(self, seqid, iprot, oprot):
5741
    args = getAllBanners_args()
5742
    args.read(iprot)
5743
    iprot.readMessageEnd()
5744
    result = getAllBanners_result()
5745
    result.success = self._handler.getAllBanners()
5746
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
5747
    result.write(oprot)
5748
    oprot.writeMessageEnd()
5749
    oprot.trans.flush()
5750
 
5751
  def process_deleteBanner(self, seqid, iprot, oprot):
5752
    args = deleteBanner_args()
5753
    args.read(iprot)
5754
    iprot.readMessageEnd()
5755
    result = deleteBanner_result()
9155 kshitij.so 5756
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 5757
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
5758
    result.write(oprot)
5759
    oprot.writeMessageEnd()
5760
    oprot.trans.flush()
5761
 
5762
  def process_getBannerDetails(self, seqid, iprot, oprot):
5763
    args = getBannerDetails_args()
5764
    args.read(iprot)
5765
    iprot.readMessageEnd()
5766
    result = getBannerDetails_result()
9155 kshitij.so 5767
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 5768
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
5769
    result.write(oprot)
5770
    oprot.writeMessageEnd()
5771
    oprot.trans.flush()
5772
 
5773
  def process_getActiveBanners(self, seqid, iprot, oprot):
5774
    args = getActiveBanners_args()
5775
    args.read(iprot)
5776
    iprot.readMessageEnd()
5777
    result = getActiveBanners_result()
5778
    result.success = self._handler.getActiveBanners()
5779
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
5780
    result.write(oprot)
5781
    oprot.writeMessageEnd()
5782
    oprot.trans.flush()
5783
 
6849 kshitij.so 5784
  def process_addBannerMap(self, seqid, iprot, oprot):
5785
    args = addBannerMap_args()
5786
    args.read(iprot)
5787
    iprot.readMessageEnd()
5788
    result = addBannerMap_result()
8579 kshitij.so 5789
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 5790
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
5791
    result.write(oprot)
5792
    oprot.writeMessageEnd()
5793
    oprot.trans.flush()
5794
 
8579 kshitij.so 5795
  def process_updateBannerMap(self, seqid, iprot, oprot):
5796
    args = updateBannerMap_args()
5797
    args.read(iprot)
5798
    iprot.readMessageEnd()
5799
    result = updateBannerMap_result()
5800
    result.success = self._handler.updateBannerMap(args.bannerMap)
5801
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
5802
    result.write(oprot)
5803
    oprot.writeMessageEnd()
5804
    oprot.trans.flush()
5805
 
6849 kshitij.so 5806
  def process_deleteBannerMap(self, seqid, iprot, oprot):
5807
    args = deleteBannerMap_args()
5808
    args.read(iprot)
5809
    iprot.readMessageEnd()
5810
    result = deleteBannerMap_result()
5811
    result.success = self._handler.deleteBannerMap(args.bannerName)
5812
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
5813
    result.write(oprot)
5814
    oprot.writeMessageEnd()
5815
    oprot.trans.flush()
5816
 
5817
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
5818
    args = getBannerMapDetails_args()
5819
    args.read(iprot)
5820
    iprot.readMessageEnd()
5821
    result = getBannerMapDetails_result()
9155 kshitij.so 5822
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 5823
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
5824
    result.write(oprot)
5825
    oprot.writeMessageEnd()
5826
    oprot.trans.flush()
5827
 
8579 kshitij.so 5828
  def process_addBannerUri(self, seqid, iprot, oprot):
5829
    args = addBannerUri_args()
5830
    args.read(iprot)
5831
    iprot.readMessageEnd()
5832
    result = addBannerUri_result()
5833
    self._handler.addBannerUri(args.bannerUriMappings)
5834
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
5835
    result.write(oprot)
5836
    oprot.writeMessageEnd()
5837
    oprot.trans.flush()
5838
 
5839
  def process_getUriMapping(self, seqid, iprot, oprot):
5840
    args = getUriMapping_args()
5841
    args.read(iprot)
5842
    iprot.readMessageEnd()
5843
    result = getUriMapping_result()
9155 kshitij.so 5844
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 5845
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
5846
    result.write(oprot)
5847
    oprot.writeMessageEnd()
5848
    oprot.trans.flush()
5849
 
5850
  def process_addCampaign(self, seqid, iprot, oprot):
5851
    args = addCampaign_args()
5852
    args.read(iprot)
5853
    iprot.readMessageEnd()
5854
    result = addCampaign_result()
5855
    self._handler.addCampaign(args.campaign)
5856
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
5857
    result.write(oprot)
5858
    oprot.writeMessageEnd()
5859
    oprot.trans.flush()
5860
 
5861
  def process_getCampaigns(self, seqid, iprot, oprot):
5862
    args = getCampaigns_args()
5863
    args.read(iprot)
5864
    iprot.readMessageEnd()
5865
    result = getCampaigns_result()
5866
    result.success = self._handler.getCampaigns(args.campaignName)
5867
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
5868
    result.write(oprot)
5869
    oprot.writeMessageEnd()
5870
    oprot.trans.flush()
5871
 
5872
  def process_deleteCampaign(self, seqid, iprot, oprot):
5873
    args = deleteCampaign_args()
5874
    args.read(iprot)
5875
    iprot.readMessageEnd()
5876
    result = deleteCampaign_result()
5877
    self._handler.deleteCampaign(args.campaignId)
5878
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
5879
    result.write(oprot)
5880
    oprot.writeMessageEnd()
5881
    oprot.trans.flush()
5882
 
5883
  def process_getAllCampaigns(self, seqid, iprot, oprot):
5884
    args = getAllCampaigns_args()
5885
    args.read(iprot)
5886
    iprot.readMessageEnd()
5887
    result = getAllCampaigns_result()
5888
    result.success = self._handler.getAllCampaigns()
5889
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
5890
    result.write(oprot)
5891
    oprot.writeMessageEnd()
5892
    oprot.trans.flush()
5893
 
9155 kshitij.so 5894
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
5895
    args = getActiveBannersForMobileSite_args()
5896
    args.read(iprot)
5897
    iprot.readMessageEnd()
5898
    result = getActiveBannersForMobileSite_result()
5899
    result.success = self._handler.getActiveBannersForMobileSite()
5900
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
5901
    result.write(oprot)
5902
    oprot.writeMessageEnd()
5903
    oprot.trans.flush()
5904
 
5944 mandeep.dh 5905
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
5906
    args = deleteSimilarItem_args()
5907
    args.read(iprot)
5908
    iprot.readMessageEnd()
5909
    result = deleteSimilarItem_result()
5910
    try:
5911
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
5912
    except CatalogServiceException, cex:
5913
      result.cex = cex
5914
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
5915
    result.write(oprot)
5916
    oprot.writeMessageEnd()
5917
    oprot.trans.flush()
5918
 
5919
  def process_checkSimilarItem(self, seqid, iprot, oprot):
5920
    args = checkSimilarItem_args()
5921
    args.read(iprot)
5922
    iprot.readMessageEnd()
5923
    result = checkSimilarItem_result()
5924
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
5925
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
5926
    result.write(oprot)
5927
    oprot.writeMessageEnd()
5928
    oprot.trans.flush()
5929
 
5930
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
5931
    args = validateRiskyStatus_args()
5932
    args.read(iprot)
5933
    iprot.readMessageEnd()
5934
    result = validateRiskyStatus_result()
5935
    self._handler.validateRiskyStatus(args.itemId)
5936
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
5937
    result.write(oprot)
5938
    oprot.writeMessageEnd()
5939
    oprot.trans.flush()
5940
 
5941
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
5942
    args = changeItemRiskyFlag_args()
5943
    args.read(iprot)
5944
    iprot.readMessageEnd()
5945
    result = changeItemRiskyFlag_result()
5946
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
5947
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
5948
    result.write(oprot)
5949
    oprot.writeMessageEnd()
5950
    oprot.trans.flush()
5951
 
5952
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
5953
    args = getItemsByRiskyFlag_args()
5954
    args.read(iprot)
5955
    iprot.readMessageEnd()
5956
    result = getItemsByRiskyFlag_result()
5957
    result.success = self._handler.getItemsByRiskyFlag()
5958
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
5959
    result.write(oprot)
5960
    oprot.writeMessageEnd()
5961
    oprot.trans.flush()
5962
 
5963
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
5964
    args = getItemsForMasterSheet_args()
5965
    args.read(iprot)
5966
    iprot.readMessageEnd()
5967
    result = getItemsForMasterSheet_result()
5968
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
5969
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
5970
    result.write(oprot)
5971
    oprot.writeMessageEnd()
5972
    oprot.trans.flush()
5973
 
5974
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
5975
    args = getSimilarItemsCatalogIds_args()
5976
    args.read(iprot)
5977
    iprot.readMessageEnd()
5978
    result = getSimilarItemsCatalogIds_result()
5979
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
5980
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
5981
    result.write(oprot)
5982
    oprot.writeMessageEnd()
5983
    oprot.trans.flush()
5984
 
5985
  def process_addProductNotification(self, seqid, iprot, oprot):
5986
    args = addProductNotification_args()
5987
    args.read(iprot)
5988
    iprot.readMessageEnd()
5989
    result = addProductNotification_result()
5990
    result.success = self._handler.addProductNotification(args.itemId, args.email)
5991
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
5992
    result.write(oprot)
5993
    oprot.writeMessageEnd()
5994
    oprot.trans.flush()
5995
 
5996
  def process_sendProductNotifications(self, seqid, iprot, oprot):
5997
    args = sendProductNotifications_args()
5998
    args.read(iprot)
5999
    iprot.readMessageEnd()
6000
    result = sendProductNotifications_result()
6001
    result.success = self._handler.sendProductNotifications()
6002
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
6003
    result.write(oprot)
6004
    oprot.writeMessageEnd()
6005
    oprot.trans.flush()
6006
 
6007
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
6008
    args = getAllBrandsByCategory_args()
6009
    args.read(iprot)
6010
    iprot.readMessageEnd()
6011
    result = getAllBrandsByCategory_result()
6012
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
6013
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
6014
    result.write(oprot)
6015
    oprot.writeMessageEnd()
6016
    oprot.trans.flush()
6017
 
6018
  def process_getAllBrands(self, seqid, iprot, oprot):
6019
    args = getAllBrands_args()
6020
    args.read(iprot)
6021
    iprot.readMessageEnd()
6022
    result = getAllBrands_result()
6023
    result.success = self._handler.getAllBrands()
6024
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
6025
    result.write(oprot)
6026
    oprot.writeMessageEnd()
6027
    oprot.trans.flush()
6028
 
6029
  def process_getAllSources(self, seqid, iprot, oprot):
6030
    args = getAllSources_args()
6031
    args.read(iprot)
6032
    iprot.readMessageEnd()
6033
    result = getAllSources_result()
6034
    result.success = self._handler.getAllSources()
6035
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
6036
    result.write(oprot)
6037
    oprot.writeMessageEnd()
6038
    oprot.trans.flush()
6039
 
6040
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
6041
    args = getItemPricingBySource_args()
6042
    args.read(iprot)
6043
    iprot.readMessageEnd()
6044
    result = getItemPricingBySource_result()
6045
    try:
6046
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
6047
    except CatalogServiceException, cex:
6048
      result.cex = cex
6049
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
6050
    result.write(oprot)
6051
    oprot.writeMessageEnd()
6052
    oprot.trans.flush()
6053
 
6054
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
6055
    args = addSourceItemPricing_args()
6056
    args.read(iprot)
6057
    iprot.readMessageEnd()
6058
    result = addSourceItemPricing_result()
6059
    try:
6060
      self._handler.addSourceItemPricing(args.sourceItemPricing)
6061
    except CatalogServiceException, cex:
6062
      result.cex = cex
6063
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
6064
    result.write(oprot)
6065
    oprot.writeMessageEnd()
6066
    oprot.trans.flush()
6067
 
6068
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
6069
    args = getAllSourcePricing_args()
6070
    args.read(iprot)
6071
    iprot.readMessageEnd()
6072
    result = getAllSourcePricing_result()
6073
    try:
6074
      result.success = self._handler.getAllSourcePricing(args.itemId)
6075
    except CatalogServiceException, cex:
6076
      result.cex = cex
6077
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
6078
    result.write(oprot)
6079
    oprot.writeMessageEnd()
6080
    oprot.trans.flush()
6081
 
6082
  def process_getItemForSource(self, seqid, iprot, oprot):
6083
    args = getItemForSource_args()
6084
    args.read(iprot)
6085
    iprot.readMessageEnd()
6086
    result = getItemForSource_result()
6087
    try:
6088
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
6089
    except CatalogServiceException, cex:
6090
      result.cex = cex
6091
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
6092
    result.write(oprot)
6093
    oprot.writeMessageEnd()
6094
    oprot.trans.flush()
6095
 
6096
  def process_searchItemsInRange(self, seqid, iprot, oprot):
6097
    args = searchItemsInRange_args()
6098
    args.read(iprot)
6099
    iprot.readMessageEnd()
6100
    result = searchItemsInRange_result()
6101
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
6102
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
6103
    result.write(oprot)
6104
    oprot.writeMessageEnd()
6105
    oprot.trans.flush()
6106
 
6107
  def process_getSearchResultCount(self, seqid, iprot, oprot):
6108
    args = getSearchResultCount_args()
6109
    args.read(iprot)
6110
    iprot.readMessageEnd()
6111
    result = getSearchResultCount_result()
6112
    result.success = self._handler.getSearchResultCount(args.searchTerms)
6113
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
6114
    result.write(oprot)
6115
    oprot.writeMessageEnd()
6116
    oprot.trans.flush()
6117
 
6118
  def process_getProductNotifications(self, seqid, iprot, oprot):
6119
    args = getProductNotifications_args()
6120
    args.read(iprot)
6121
    iprot.readMessageEnd()
6122
    result = getProductNotifications_result()
6123
    result.success = self._handler.getProductNotifications(args.startDateTime)
6124
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
6125
    result.write(oprot)
6126
    oprot.writeMessageEnd()
6127
    oprot.trans.flush()
6128
 
6129
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
6130
    args = getProductNotificationRequestCount_args()
6131
    args.read(iprot)
6132
    iprot.readMessageEnd()
6133
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 6134
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 6135
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
6136
    result.write(oprot)
6137
    oprot.writeMessageEnd()
6138
    oprot.trans.flush()
6139
 
6140
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
6141
    args = addAuthorizationLog_args()
6142
    args.read(iprot)
6143
    iprot.readMessageEnd()
6144
    result = addAuthorizationLog_result()
6145
    try:
6146
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
6147
    except CatalogServiceException, cex:
6148
      result.cex = cex
6149
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
6150
    result.write(oprot)
6151
    oprot.writeMessageEnd()
6152
    oprot.trans.flush()
6153
 
6154
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
6155
    args = addupdateVoucherForItem_args()
6156
    args.read(iprot)
6157
    iprot.readMessageEnd()
6158
    result = addupdateVoucherForItem_result()
6159
    try:
6160
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
6161
    except CatalogServiceException, cex:
6162
      result.cex = cex
6163
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
6164
    result.write(oprot)
6165
    oprot.writeMessageEnd()
6166
    oprot.trans.flush()
6167
 
6168
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
6169
    args = deleteVoucherForItem_args()
6170
    args.read(iprot)
6171
    iprot.readMessageEnd()
6172
    result = deleteVoucherForItem_result()
6173
    try:
6174
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
6175
    except CatalogServiceException, cex:
6176
      result.cex = cex
6177
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
6178
    result.write(oprot)
6179
    oprot.writeMessageEnd()
6180
    oprot.trans.flush()
6181
 
6182
  def process_getVoucherAmount(self, seqid, iprot, oprot):
6183
    args = getVoucherAmount_args()
6184
    args.read(iprot)
6185
    iprot.readMessageEnd()
6186
    result = getVoucherAmount_result()
6187
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
6188
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
6189
    result.write(oprot)
6190
    oprot.writeMessageEnd()
6191
    oprot.trans.flush()
6192
 
6193
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
6194
    args = getAllItemVouchers_args()
6195
    args.read(iprot)
6196
    iprot.readMessageEnd()
6197
    result = getAllItemVouchers_result()
6198
    result.success = self._handler.getAllItemVouchers(args.itemId)
6199
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
6200
    result.write(oprot)
6201
    oprot.writeMessageEnd()
6202
    oprot.trans.flush()
6203
 
6204
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
6205
    args = isValidCatalogItemId_args()
6206
    args.read(iprot)
6207
    iprot.readMessageEnd()
6208
    result = isValidCatalogItemId_result()
6209
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
6210
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
6211
    result.write(oprot)
6212
    oprot.writeMessageEnd()
6213
    oprot.trans.flush()
6214
 
6039 amit.gupta 6215
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
6216
    args = getVatPercentageForItem_args()
6217
    args.read(iprot)
6218
    iprot.readMessageEnd()
6219
    result = getVatPercentageForItem_result()
7340 amit.gupta 6220
    try:
6221
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
6222
    except CatalogServiceException, cex:
6223
      result.cex = cex
6039 amit.gupta 6224
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
6225
    result.write(oprot)
6226
    oprot.writeMessageEnd()
6227
    oprot.trans.flush()
5944 mandeep.dh 6228
 
6039 amit.gupta 6229
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
6230
    args = getVatAmountForItem_args()
6231
    args.read(iprot)
6232
    iprot.readMessageEnd()
6233
    result = getVatAmountForItem_result()
6234
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
6235
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
6236
    result.write(oprot)
6237
    oprot.writeMessageEnd()
6238
    oprot.trans.flush()
6239
 
6531 vikram.rag 6240
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
6241
    args = getAllIgnoredInventoryUpdateItemsList_args()
6242
    args.read(iprot)
6243
    iprot.readMessageEnd()
6244
    result = getAllIgnoredInventoryUpdateItemsList_result()
6245
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
6246
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
6247
    result.write(oprot)
6248
    oprot.writeMessageEnd()
6249
    oprot.trans.flush()
6039 amit.gupta 6250
 
6821 amar.kumar 6251
  def process_getAllAliveItems(self, seqid, iprot, oprot):
6252
    args = getAllAliveItems_args()
6253
    args.read(iprot)
6254
    iprot.readMessageEnd()
6255
    result = getAllAliveItems_result()
6256
    result.success = self._handler.getAllAliveItems()
6257
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
6258
    result.write(oprot)
6259
    oprot.writeMessageEnd()
6260
    oprot.trans.flush()
6261
 
6805 anupam.sin 6262
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
6263
    args = getInsuranceAmount_args()
6264
    args.read(iprot)
6265
    iprot.readMessageEnd()
6266
    result = getInsuranceAmount_result()
6921 anupam.sin 6267
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 6268
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
6269
    result.write(oprot)
6270
    oprot.writeMessageEnd()
6271
    oprot.trans.flush()
6531 vikram.rag 6272
 
6805 anupam.sin 6273
  def process_getInsurer(self, seqid, iprot, oprot):
6274
    args = getInsurer_args()
6275
    args.read(iprot)
6276
    iprot.readMessageEnd()
6277
    result = getInsurer_result()
6278
    result.success = self._handler.getInsurer(args.insurerId)
6279
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
6280
    result.write(oprot)
6281
    oprot.writeMessageEnd()
6282
    oprot.trans.flush()
6283
 
6838 vikram.rag 6284
  def process_getAllInsurers(self, seqid, iprot, oprot):
6285
    args = getAllInsurers_args()
6286
    args.read(iprot)
6287
    iprot.readMessageEnd()
6288
    result = getAllInsurers_result()
6289
    result.success = self._handler.getAllInsurers()
6290
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
6291
    result.write(oprot)
6292
    oprot.writeMessageEnd()
6293
    oprot.trans.flush()
6805 anupam.sin 6294
 
6962 rajveer 6295
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
6296
    args = updateInsuranceDeclaredAmount_args()
6297
    args.read(iprot)
6298
    iprot.readMessageEnd()
6299
    result = updateInsuranceDeclaredAmount_result()
6300
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
6301
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
6302
    result.write(oprot)
6303
    oprot.writeMessageEnd()
6304
    oprot.trans.flush()
6838 vikram.rag 6305
 
7190 amar.kumar 6306
  def process_getFreebieForItem(self, seqid, iprot, oprot):
6307
    args = getFreebieForItem_args()
6308
    args.read(iprot)
6309
    iprot.readMessageEnd()
6310
    result = getFreebieForItem_result()
6311
    result.success = self._handler.getFreebieForItem(args.itemId)
6312
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
6313
    result.write(oprot)
6314
    oprot.writeMessageEnd()
6315
    oprot.trans.flush()
6962 rajveer 6316
 
7190 amar.kumar 6317
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
6318
    args = addOrUpdateFreebieForItem_args()
6319
    args.read(iprot)
6320
    iprot.readMessageEnd()
6321
    result = addOrUpdateFreebieForItem_result()
6322
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
6323
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
6324
    result.write(oprot)
6325
    oprot.writeMessageEnd()
6326
    oprot.trans.flush()
6327
 
7272 amit.gupta 6328
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
6329
    args = addOrUpdateBrandInfo_args()
6330
    args.read(iprot)
6331
    iprot.readMessageEnd()
6332
    result = addOrUpdateBrandInfo_result()
6333
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
6334
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
6335
    result.write(oprot)
6336
    oprot.writeMessageEnd()
6337
    oprot.trans.flush()
6338
 
6339
  def process_getBrandInfo(self, seqid, iprot, oprot):
6340
    args = getBrandInfo_args()
6341
    args.read(iprot)
6342
    iprot.readMessageEnd()
6343
    result = getBrandInfo_result()
6344
    result.success = self._handler.getBrandInfo()
6345
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
6346
    result.write(oprot)
6347
    oprot.writeMessageEnd()
6348
    oprot.trans.flush()
6349
 
7256 rajveer 6350
  def process_getStorePricing(self, seqid, iprot, oprot):
6351
    args = getStorePricing_args()
6352
    args.read(iprot)
6353
    iprot.readMessageEnd()
6354
    result = getStorePricing_result()
6355
    result.success = self._handler.getStorePricing(args.itemId)
6356
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
6357
    result.write(oprot)
6358
    oprot.writeMessageEnd()
6359
    oprot.trans.flush()
7190 amar.kumar 6360
 
7306 rajveer 6361
  def process_getStorePricings(self, seqid, iprot, oprot):
6362
    args = getStorePricings_args()
6363
    args.read(iprot)
6364
    iprot.readMessageEnd()
6365
    result = getStorePricings_result()
6366
    result.success = self._handler.getStorePricings(args.itemIds)
6367
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
6368
    result.write(oprot)
6369
    oprot.writeMessageEnd()
6370
    oprot.trans.flush()
6371
 
7265 rajveer 6372
  def process_updateStorePricing(self, seqid, iprot, oprot):
6373
    args = updateStorePricing_args()
6374
    args.read(iprot)
6375
    iprot.readMessageEnd()
6376
    result = updateStorePricing_result()
7382 rajveer 6377
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 6378
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
6379
    result.write(oprot)
6380
    oprot.writeMessageEnd()
6381
    oprot.trans.flush()
7256 rajveer 6382
 
7281 kshitij.so 6383
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
6384
    args = getAllAmazonListedItems_args()
6385
    args.read(iprot)
6386
    iprot.readMessageEnd()
6387
    result = getAllAmazonListedItems_result()
6388
    result.success = self._handler.getAllAmazonListedItems()
6389
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
6390
    result.write(oprot)
6391
    oprot.writeMessageEnd()
6392
    oprot.trans.flush()
7265 rajveer 6393
 
8619 kshitij.so 6394
  def process_searchAmazonItems(self, seqid, iprot, oprot):
6395
    args = searchAmazonItems_args()
6396
    args.read(iprot)
6397
    iprot.readMessageEnd()
6398
    result = searchAmazonItems_result()
6399
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
6400
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
6401
    result.write(oprot)
6402
    oprot.writeMessageEnd()
6403
    oprot.trans.flush()
6404
 
6405
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
6406
    args = getAmazonSearchResultCount_args()
6407
    args.read(iprot)
6408
    iprot.readMessageEnd()
6409
    result = getAmazonSearchResultCount_result()
6410
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
6411
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
6412
    result.write(oprot)
6413
    oprot.writeMessageEnd()
6414
    oprot.trans.flush()
6415
 
6416
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
6417
    args = getCountForAmazonlistedItems_args()
6418
    args.read(iprot)
6419
    iprot.readMessageEnd()
6420
    result = getCountForAmazonlistedItems_result()
6421
    result.success = self._handler.getCountForAmazonlistedItems()
6422
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
6423
    result.write(oprot)
6424
    oprot.writeMessageEnd()
6425
    oprot.trans.flush()
6426
 
7281 kshitij.so 6427
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
6428
    args = getAmazonItemDetails_args()
6429
    args.read(iprot)
6430
    iprot.readMessageEnd()
6431
    result = getAmazonItemDetails_result()
6432
    result.success = self._handler.getAmazonItemDetails(args.itemId)
6433
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
6434
    result.write(oprot)
6435
    oprot.writeMessageEnd()
6436
    oprot.trans.flush()
6437
 
6438
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
6439
    args = updateAmazonItemDetails_args()
6440
    args.read(iprot)
6441
    iprot.readMessageEnd()
6442
    result = updateAmazonItemDetails_result()
8168 kshitij.so 6443
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 6444
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
6445
    result.write(oprot)
6446
    oprot.writeMessageEnd()
6447
    oprot.trans.flush()
6448
 
6449
  def process_addAmazonItem(self, seqid, iprot, oprot):
6450
    args = addAmazonItem_args()
6451
    args.read(iprot)
6452
    iprot.readMessageEnd()
6453
    result = addAmazonItem_result()
6454
    self._handler.addAmazonItem(args.amazonlisted)
6455
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
6456
    result.write(oprot)
6457
    oprot.writeMessageEnd()
6458
    oprot.trans.flush()
6459
 
7291 vikram.rag 6460
  def process_getAsinItems(self, seqid, iprot, oprot):
6461
    args = getAsinItems_args()
6462
    args.read(iprot)
6463
    iprot.readMessageEnd()
6464
    result = getAsinItems_result()
6465
    result.success = self._handler.getAsinItems()
6466
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
6467
    result.write(oprot)
6468
    oprot.writeMessageEnd()
6469
    oprot.trans.flush()
7281 kshitij.so 6470
 
7291 vikram.rag 6471
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
6472
    args = getAllFbaListedItems_args()
6473
    args.read(iprot)
6474
    iprot.readMessageEnd()
6475
    result = getAllFbaListedItems_result()
6476
    result.success = self._handler.getAllFbaListedItems()
6477
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
6478
    result.write(oprot)
6479
    oprot.writeMessageEnd()
6480
    oprot.trans.flush()
6481
 
6482
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
6483
    args = getAllNonFbaListedItems_args()
6484
    args.read(iprot)
6485
    iprot.readMessageEnd()
6486
    result = getAllNonFbaListedItems_result()
6487
    result.success = self._handler.getAllNonFbaListedItems()
6488
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
6489
    result.write(oprot)
6490
    oprot.writeMessageEnd()
6491
    oprot.trans.flush()
6492
 
7460 kshitij.so 6493
  def process_updateItemInventory(self, seqid, iprot, oprot):
6494
    args = updateItemInventory_args()
6495
    args.read(iprot)
6496
    iprot.readMessageEnd()
6497
    result = updateItemInventory_result()
6498
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
6499
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
6500
    result.write(oprot)
6501
    oprot.writeMessageEnd()
6502
    oprot.trans.flush()
7291 vikram.rag 6503
 
7770 kshitij.so 6504
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
6505
    args = updateTimestampForAmazonFeeds_args()
6506
    args.read(iprot)
6507
    iprot.readMessageEnd()
6508
    result = updateTimestampForAmazonFeeds_result()
6509
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
6510
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
6511
    result.write(oprot)
6512
    oprot.writeMessageEnd()
6513
    oprot.trans.flush()
7460 kshitij.so 6514
 
7897 amar.kumar 6515
  def process_getAllParentCategories(self, seqid, iprot, oprot):
6516
    args = getAllParentCategories_args()
6517
    args.read(iprot)
6518
    iprot.readMessageEnd()
6519
    result = getAllParentCategories_result()
6520
    result.success = self._handler.getAllParentCategories()
6521
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
6522
    result.write(oprot)
6523
    oprot.writeMessageEnd()
6524
    oprot.trans.flush()
7770 kshitij.so 6525
 
7977 kshitij.so 6526
  def process_addPageViewEvent(self, seqid, iprot, oprot):
6527
    args = addPageViewEvent_args()
6528
    args.read(iprot)
6529
    iprot.readMessageEnd()
6530
    result = addPageViewEvent_result()
6531
    self._handler.addPageViewEvent(args.pageViewEvents)
6532
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
6533
    result.write(oprot)
6534
    oprot.writeMessageEnd()
6535
    oprot.trans.flush()
7897 amar.kumar 6536
 
7977 kshitij.so 6537
  def process_addCartEvent(self, seqid, iprot, oprot):
6538
    args = addCartEvent_args()
6539
    args.read(iprot)
6540
    iprot.readMessageEnd()
6541
    result = addCartEvent_result()
6542
    self._handler.addCartEvent(args.cartEvents)
6543
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
6544
    result.write(oprot)
6545
    oprot.writeMessageEnd()
6546
    oprot.trans.flush()
6547
 
8182 amar.kumar 6548
  def process_addEbayItem(self, seqid, iprot, oprot):
6549
    args = addEbayItem_args()
6550
    args.read(iprot)
6551
    iprot.readMessageEnd()
6552
    result = addEbayItem_result()
6553
    self._handler.addEbayItem(args.ebayItem)
6554
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
6555
    result.write(oprot)
6556
    oprot.writeMessageEnd()
6557
    oprot.trans.flush()
6558
 
6559
  def process_getEbayItem(self, seqid, iprot, oprot):
6560
    args = getEbayItem_args()
6561
    args.read(iprot)
6562
    iprot.readMessageEnd()
6563
    result = getEbayItem_result()
6564
    result.success = self._handler.getEbayItem(args.listingId)
6565
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
6566
    result.write(oprot)
6567
    oprot.writeMessageEnd()
6568
    oprot.trans.flush()
6569
 
6570
  def process_updateEbayItem(self, seqid, iprot, oprot):
6571
    args = updateEbayItem_args()
6572
    args.read(iprot)
6573
    iprot.readMessageEnd()
6574
    result = updateEbayItem_result()
6575
    self._handler.updateEbayItem(args.ebayItem)
6576
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
6577
    result.write(oprot)
6578
    oprot.writeMessageEnd()
6579
    oprot.trans.flush()
6580
 
8139 kshitij.so 6581
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
6582
    args = getAmazonListedItems_args()
6583
    args.read(iprot)
6584
    iprot.readMessageEnd()
6585
    result = getAmazonListedItems_result()
6586
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
6587
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
6588
    result.write(oprot)
6589
    oprot.writeMessageEnd()
6590
    oprot.trans.flush()
7977 kshitij.so 6591
 
8168 kshitij.so 6592
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
6593
    args = updateAmazonAttributesInBulk_args()
6594
    args.read(iprot)
6595
    iprot.readMessageEnd()
6596
    result = updateAmazonAttributesInBulk_result()
6597
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
6598
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
6599
    result.write(oprot)
6600
    oprot.writeMessageEnd()
6601
    oprot.trans.flush()
8139 kshitij.so 6602
 
8379 vikram.rag 6603
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
6604
    args = getAllItemstoListOnFba_args()
6605
    args.read(iprot)
6606
    iprot.readMessageEnd()
6607
    result = getAllItemstoListOnFba_result()
6608
    result.success = self._handler.getAllItemstoListOnFba()
6609
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
6610
    result.write(oprot)
6611
    oprot.writeMessageEnd()
6612
    oprot.trans.flush()
8168 kshitij.so 6613
 
8379 vikram.rag 6614
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
6615
    args = getAllItemstoListOnNonFba_args()
6616
    args.read(iprot)
6617
    iprot.readMessageEnd()
6618
    result = getAllItemstoListOnNonFba_result()
6619
    result.success = self._handler.getAllItemstoListOnNonFba()
6620
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
6621
    result.write(oprot)
6622
    oprot.writeMessageEnd()
6623
    oprot.trans.flush()
6624
 
8619 kshitij.so 6625
  def process_updateAsin(self, seqid, iprot, oprot):
6626
    args = updateAsin_args()
6627
    args.read(iprot)
6628
    iprot.readMessageEnd()
6629
    result = updateAsin_result()
6630
    self._handler.updateAsin(args.item)
6631
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
6632
    result.write(oprot)
6633
    oprot.writeMessageEnd()
6634
    oprot.trans.flush()
8616 vikram.rag 6635
 
8739 vikram.rag 6636
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
6637
    args = addOrUpdateSnapdealItem_args()
6638
    args.read(iprot)
6639
    iprot.readMessageEnd()
6640
    result = addOrUpdateSnapdealItem_result()
6641
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
6642
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
6643
    result.write(oprot)
6644
    oprot.writeMessageEnd()
6645
    oprot.trans.flush()
8619 kshitij.so 6646
 
8739 vikram.rag 6647
  def process_getSnapdealItem(self, seqid, iprot, oprot):
6648
    args = getSnapdealItem_args()
6649
    args.read(iprot)
6650
    iprot.readMessageEnd()
6651
    result = getSnapdealItem_result()
6652
    result.success = self._handler.getSnapdealItem(args.item_id)
6653
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
6654
    result.write(oprot)
6655
    oprot.writeMessageEnd()
6656
    oprot.trans.flush()
6657
 
9242 kshitij.so 6658
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
6659
    args = getSnapdealItemDetails_args()
6660
    args.read(iprot)
6661
    iprot.readMessageEnd()
6662
    result = getSnapdealItemDetails_result()
6663
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
6664
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
6665
    result.write(oprot)
6666
    oprot.writeMessageEnd()
6667
    oprot.trans.flush()
6668
 
8739 vikram.rag 6669
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
6670
    args = getAllSnapdealItems_args()
6671
    args.read(iprot)
6672
    iprot.readMessageEnd()
6673
    result = getAllSnapdealItems_result()
6674
    result.success = self._handler.getAllSnapdealItems()
6675
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
6676
    result.write(oprot)
6677
    oprot.writeMessageEnd()
6678
    oprot.trans.flush()
6679
 
9242 kshitij.so 6680
  def process_getSnapdealItems(self, seqid, iprot, oprot):
6681
    args = getSnapdealItems_args()
6682
    args.read(iprot)
6683
    iprot.readMessageEnd()
6684
    result = getSnapdealItems_result()
6685
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
6686
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
6687
    result.write(oprot)
6688
    oprot.writeMessageEnd()
6689
    oprot.trans.flush()
8739 vikram.rag 6690
 
9242 kshitij.so 6691
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
6692
    args = searchSnapdealItems_args()
6693
    args.read(iprot)
6694
    iprot.readMessageEnd()
6695
    result = searchSnapdealItems_result()
6696
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
6697
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
6698
    result.write(oprot)
6699
    oprot.writeMessageEnd()
6700
    oprot.trans.flush()
6701
 
6702
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
6703
    args = getCountForSnapdealItems_args()
6704
    args.read(iprot)
6705
    iprot.readMessageEnd()
6706
    result = getCountForSnapdealItems_result()
6707
    result.success = self._handler.getCountForSnapdealItems()
6708
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
6709
    result.write(oprot)
6710
    oprot.writeMessageEnd()
6711
    oprot.trans.flush()
6712
 
6713
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
6714
    args = getSnapdealSearchResultCount_args()
6715
    args.read(iprot)
6716
    iprot.readMessageEnd()
6717
    result = getSnapdealSearchResultCount_result()
6718
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
6719
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
6720
    result.write(oprot)
6721
    oprot.writeMessageEnd()
6722
    oprot.trans.flush()
6723
 
9299 kshitij.so 6724
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
6725
    args = getPrefferedInsurerForItem_args()
6726
    args.read(iprot)
6727
    iprot.readMessageEnd()
6728
    result = getPrefferedInsurerForItem_result()
6729
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
6730
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
6731
    result.write(oprot)
6732
    oprot.writeMessageEnd()
6733
    oprot.trans.flush()
9242 kshitij.so 6734
 
9456 vikram.rag 6735
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
6736
    args = getSnapdealItembySkuAtSnapdeal_args()
6737
    args.read(iprot)
6738
    iprot.readMessageEnd()
6739
    result = getSnapdealItembySkuAtSnapdeal_result()
6740
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
6741
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
6742
    result.write(oprot)
6743
    oprot.writeMessageEnd()
6744
    oprot.trans.flush()
9299 kshitij.so 6745
 
9456 vikram.rag 6746
 
5944 mandeep.dh 6747
# HELPER FUNCTIONS AND STRUCTURES
6748
 
6749
class addItem_args:
6750
  """
6751
  Attributes:
6752
   - item
6753
  """
6754
 
6755
  thrift_spec = (
6756
    None, # 0
6757
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
6758
  )
6759
 
6760
  def __init__(self, item=None,):
6761
    self.item = item
6762
 
6763
  def read(self, iprot):
6764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6766
      return
6767
    iprot.readStructBegin()
6768
    while True:
6769
      (fname, ftype, fid) = iprot.readFieldBegin()
6770
      if ftype == TType.STOP:
6771
        break
6772
      if fid == 1:
6773
        if ftype == TType.STRUCT:
6774
          self.item = Item()
6775
          self.item.read(iprot)
6776
        else:
6777
          iprot.skip(ftype)
6778
      else:
6779
        iprot.skip(ftype)
6780
      iprot.readFieldEnd()
6781
    iprot.readStructEnd()
6782
 
6783
  def write(self, oprot):
6784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6786
      return
6787
    oprot.writeStructBegin('addItem_args')
6788
    if self.item is not None:
6789
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
6790
      self.item.write(oprot)
6791
      oprot.writeFieldEnd()
6792
    oprot.writeFieldStop()
6793
    oprot.writeStructEnd()
6794
 
6795
  def validate(self):
6796
    return
6797
 
6798
 
6799
  def __repr__(self):
6800
    L = ['%s=%r' % (key, value)
6801
      for key, value in self.__dict__.iteritems()]
6802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6803
 
6804
  def __eq__(self, other):
6805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6806
 
6807
  def __ne__(self, other):
6808
    return not (self == other)
6809
 
6810
class addItem_result:
6811
  """
6812
  Attributes:
6813
   - success
6814
   - cex
6815
  """
6816
 
6817
  thrift_spec = (
6818
    (0, TType.I64, 'success', None, None, ), # 0
6819
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6820
  )
6821
 
6822
  def __init__(self, success=None, cex=None,):
6823
    self.success = success
6824
    self.cex = cex
6825
 
6826
  def read(self, iprot):
6827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6829
      return
6830
    iprot.readStructBegin()
6831
    while True:
6832
      (fname, ftype, fid) = iprot.readFieldBegin()
6833
      if ftype == TType.STOP:
6834
        break
6835
      if fid == 0:
6836
        if ftype == TType.I64:
6837
          self.success = iprot.readI64();
6838
        else:
6839
          iprot.skip(ftype)
6840
      elif fid == 1:
6841
        if ftype == TType.STRUCT:
6842
          self.cex = CatalogServiceException()
6843
          self.cex.read(iprot)
6844
        else:
6845
          iprot.skip(ftype)
6846
      else:
6847
        iprot.skip(ftype)
6848
      iprot.readFieldEnd()
6849
    iprot.readStructEnd()
6850
 
6851
  def write(self, oprot):
6852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6854
      return
6855
    oprot.writeStructBegin('addItem_result')
6856
    if self.success is not None:
6857
      oprot.writeFieldBegin('success', TType.I64, 0)
6858
      oprot.writeI64(self.success)
6859
      oprot.writeFieldEnd()
6860
    if self.cex is not None:
6861
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6862
      self.cex.write(oprot)
6863
      oprot.writeFieldEnd()
6864
    oprot.writeFieldStop()
6865
    oprot.writeStructEnd()
6866
 
6867
  def validate(self):
6868
    return
6869
 
6870
 
6871
  def __repr__(self):
6872
    L = ['%s=%r' % (key, value)
6873
      for key, value in self.__dict__.iteritems()]
6874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6875
 
6876
  def __eq__(self, other):
6877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6878
 
6879
  def __ne__(self, other):
6880
    return not (self == other)
6881
 
6882
class updateItem_args:
6883
  """
6884
  Attributes:
6885
   - item
6886
  """
6887
 
6888
  thrift_spec = (
6889
    None, # 0
6890
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
6891
  )
6892
 
6893
  def __init__(self, item=None,):
6894
    self.item = item
6895
 
6896
  def read(self, iprot):
6897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6899
      return
6900
    iprot.readStructBegin()
6901
    while True:
6902
      (fname, ftype, fid) = iprot.readFieldBegin()
6903
      if ftype == TType.STOP:
6904
        break
6905
      if fid == 1:
6906
        if ftype == TType.STRUCT:
6907
          self.item = Item()
6908
          self.item.read(iprot)
6909
        else:
6910
          iprot.skip(ftype)
6911
      else:
6912
        iprot.skip(ftype)
6913
      iprot.readFieldEnd()
6914
    iprot.readStructEnd()
6915
 
6916
  def write(self, oprot):
6917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6919
      return
6920
    oprot.writeStructBegin('updateItem_args')
6921
    if self.item is not None:
6922
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
6923
      self.item.write(oprot)
6924
      oprot.writeFieldEnd()
6925
    oprot.writeFieldStop()
6926
    oprot.writeStructEnd()
6927
 
6928
  def validate(self):
6929
    return
6930
 
6931
 
6932
  def __repr__(self):
6933
    L = ['%s=%r' % (key, value)
6934
      for key, value in self.__dict__.iteritems()]
6935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6936
 
6937
  def __eq__(self, other):
6938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6939
 
6940
  def __ne__(self, other):
6941
    return not (self == other)
6942
 
6943
class updateItem_result:
6944
  """
6945
  Attributes:
6946
   - success
6947
   - cex
6948
  """
6949
 
6950
  thrift_spec = (
6951
    (0, TType.I64, 'success', None, None, ), # 0
6952
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6953
  )
6954
 
6955
  def __init__(self, success=None, cex=None,):
6956
    self.success = success
6957
    self.cex = cex
6958
 
6959
  def read(self, iprot):
6960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6962
      return
6963
    iprot.readStructBegin()
6964
    while True:
6965
      (fname, ftype, fid) = iprot.readFieldBegin()
6966
      if ftype == TType.STOP:
6967
        break
6968
      if fid == 0:
6969
        if ftype == TType.I64:
6970
          self.success = iprot.readI64();
6971
        else:
6972
          iprot.skip(ftype)
6973
      elif fid == 1:
6974
        if ftype == TType.STRUCT:
6975
          self.cex = CatalogServiceException()
6976
          self.cex.read(iprot)
6977
        else:
6978
          iprot.skip(ftype)
6979
      else:
6980
        iprot.skip(ftype)
6981
      iprot.readFieldEnd()
6982
    iprot.readStructEnd()
6983
 
6984
  def write(self, oprot):
6985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6987
      return
6988
    oprot.writeStructBegin('updateItem_result')
6989
    if self.success is not None:
6990
      oprot.writeFieldBegin('success', TType.I64, 0)
6991
      oprot.writeI64(self.success)
6992
      oprot.writeFieldEnd()
6993
    if self.cex is not None:
6994
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6995
      self.cex.write(oprot)
6996
      oprot.writeFieldEnd()
6997
    oprot.writeFieldStop()
6998
    oprot.writeStructEnd()
6999
 
7000
  def validate(self):
7001
    return
7002
 
7003
 
7004
  def __repr__(self):
7005
    L = ['%s=%r' % (key, value)
7006
      for key, value in self.__dict__.iteritems()]
7007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7008
 
7009
  def __eq__(self, other):
7010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7011
 
7012
  def __ne__(self, other):
7013
    return not (self == other)
7014
 
7015
class isActive_args:
7016
  """
7017
  Attributes:
7018
   - itemId
7019
  """
7020
 
7021
  thrift_spec = (
7022
    None, # 0
7023
    (1, TType.I64, 'itemId', None, None, ), # 1
7024
  )
7025
 
7026
  def __init__(self, itemId=None,):
7027
    self.itemId = itemId
7028
 
7029
  def read(self, iprot):
7030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7032
      return
7033
    iprot.readStructBegin()
7034
    while True:
7035
      (fname, ftype, fid) = iprot.readFieldBegin()
7036
      if ftype == TType.STOP:
7037
        break
7038
      if fid == 1:
7039
        if ftype == TType.I64:
7040
          self.itemId = iprot.readI64();
7041
        else:
7042
          iprot.skip(ftype)
7043
      else:
7044
        iprot.skip(ftype)
7045
      iprot.readFieldEnd()
7046
    iprot.readStructEnd()
7047
 
7048
  def write(self, oprot):
7049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7051
      return
7052
    oprot.writeStructBegin('isActive_args')
7053
    if self.itemId is not None:
7054
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7055
      oprot.writeI64(self.itemId)
7056
      oprot.writeFieldEnd()
7057
    oprot.writeFieldStop()
7058
    oprot.writeStructEnd()
7059
 
7060
  def validate(self):
7061
    return
7062
 
7063
 
7064
  def __repr__(self):
7065
    L = ['%s=%r' % (key, value)
7066
      for key, value in self.__dict__.iteritems()]
7067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7068
 
7069
  def __eq__(self, other):
7070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7071
 
7072
  def __ne__(self, other):
7073
    return not (self == other)
7074
 
7075
class isActive_result:
7076
  """
7077
  Attributes:
7078
   - success
7079
   - isex
7080
  """
7081
 
7082
  thrift_spec = (
7083
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
7084
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7085
  )
7086
 
7087
  def __init__(self, success=None, isex=None,):
7088
    self.success = success
7089
    self.isex = isex
7090
 
7091
  def read(self, iprot):
7092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7094
      return
7095
    iprot.readStructBegin()
7096
    while True:
7097
      (fname, ftype, fid) = iprot.readFieldBegin()
7098
      if ftype == TType.STOP:
7099
        break
7100
      if fid == 0:
7101
        if ftype == TType.STRUCT:
7102
          self.success = ItemShippingInfo()
7103
          self.success.read(iprot)
7104
        else:
7105
          iprot.skip(ftype)
7106
      elif fid == 1:
7107
        if ftype == TType.STRUCT:
7108
          self.isex = CatalogServiceException()
7109
          self.isex.read(iprot)
7110
        else:
7111
          iprot.skip(ftype)
7112
      else:
7113
        iprot.skip(ftype)
7114
      iprot.readFieldEnd()
7115
    iprot.readStructEnd()
7116
 
7117
  def write(self, oprot):
7118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7120
      return
7121
    oprot.writeStructBegin('isActive_result')
7122
    if self.success is not None:
7123
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7124
      self.success.write(oprot)
7125
      oprot.writeFieldEnd()
7126
    if self.isex is not None:
7127
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7128
      self.isex.write(oprot)
7129
      oprot.writeFieldEnd()
7130
    oprot.writeFieldStop()
7131
    oprot.writeStructEnd()
7132
 
7133
  def validate(self):
7134
    return
7135
 
7136
 
7137
  def __repr__(self):
7138
    L = ['%s=%r' % (key, value)
7139
      for key, value in self.__dict__.iteritems()]
7140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7141
 
7142
  def __eq__(self, other):
7143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7144
 
7145
  def __ne__(self, other):
7146
    return not (self == other)
7147
 
7438 amit.gupta 7148
class getItemsStatus_args:
7149
  """
7150
  Attributes:
7151
   - itemIds
7152
  """
7153
 
7154
  thrift_spec = (
7155
    None, # 0
7156
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
7157
  )
7158
 
7159
  def __init__(self, itemIds=None,):
7160
    self.itemIds = itemIds
7161
 
7162
  def read(self, iprot):
7163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7165
      return
7166
    iprot.readStructBegin()
7167
    while True:
7168
      (fname, ftype, fid) = iprot.readFieldBegin()
7169
      if ftype == TType.STOP:
7170
        break
7171
      if fid == 1:
7172
        if ftype == TType.LIST:
7173
          self.itemIds = []
8590 kshitij.so 7174
          (_etype33, _size30) = iprot.readListBegin()
7175
          for _i34 in xrange(_size30):
7176
            _elem35 = iprot.readI64();
7177
            self.itemIds.append(_elem35)
7438 amit.gupta 7178
          iprot.readListEnd()
7179
        else:
7180
          iprot.skip(ftype)
7181
      else:
7182
        iprot.skip(ftype)
7183
      iprot.readFieldEnd()
7184
    iprot.readStructEnd()
7185
 
7186
  def write(self, oprot):
7187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7189
      return
7190
    oprot.writeStructBegin('getItemsStatus_args')
7191
    if self.itemIds is not None:
7192
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
7193
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 7194
      for iter36 in self.itemIds:
7195
        oprot.writeI64(iter36)
7438 amit.gupta 7196
      oprot.writeListEnd()
7197
      oprot.writeFieldEnd()
7198
    oprot.writeFieldStop()
7199
    oprot.writeStructEnd()
7200
 
7201
  def validate(self):
7202
    return
7203
 
7204
 
7205
  def __repr__(self):
7206
    L = ['%s=%r' % (key, value)
7207
      for key, value in self.__dict__.iteritems()]
7208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7209
 
7210
  def __eq__(self, other):
7211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7212
 
7213
  def __ne__(self, other):
7214
    return not (self == other)
7215
 
7216
class getItemsStatus_result:
7217
  """
7218
  Attributes:
7219
   - success
7220
   - isex
7221
  """
7222
 
7223
  thrift_spec = (
7224
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
7225
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7226
  )
7227
 
7228
  def __init__(self, success=None, isex=None,):
7229
    self.success = success
7230
    self.isex = isex
7231
 
7232
  def read(self, iprot):
7233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7235
      return
7236
    iprot.readStructBegin()
7237
    while True:
7238
      (fname, ftype, fid) = iprot.readFieldBegin()
7239
      if ftype == TType.STOP:
7240
        break
7241
      if fid == 0:
7242
        if ftype == TType.MAP:
7243
          self.success = {}
8590 kshitij.so 7244
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
7245
          for _i41 in xrange(_size37):
7246
            _key42 = iprot.readI64();
7247
            _val43 = iprot.readBool();
7248
            self.success[_key42] = _val43
7438 amit.gupta 7249
          iprot.readMapEnd()
7250
        else:
7251
          iprot.skip(ftype)
7252
      elif fid == 1:
7253
        if ftype == TType.STRUCT:
7254
          self.isex = CatalogServiceException()
7255
          self.isex.read(iprot)
7256
        else:
7257
          iprot.skip(ftype)
7258
      else:
7259
        iprot.skip(ftype)
7260
      iprot.readFieldEnd()
7261
    iprot.readStructEnd()
7262
 
7263
  def write(self, oprot):
7264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7266
      return
7267
    oprot.writeStructBegin('getItemsStatus_result')
7268
    if self.success is not None:
7269
      oprot.writeFieldBegin('success', TType.MAP, 0)
7270
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 7271
      for kiter44,viter45 in self.success.items():
7272
        oprot.writeI64(kiter44)
7273
        oprot.writeBool(viter45)
7438 amit.gupta 7274
      oprot.writeMapEnd()
7275
      oprot.writeFieldEnd()
7276
    if self.isex is not None:
7277
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7278
      self.isex.write(oprot)
7279
      oprot.writeFieldEnd()
7280
    oprot.writeFieldStop()
7281
    oprot.writeStructEnd()
7282
 
7283
  def validate(self):
7284
    return
7285
 
7286
 
7287
  def __repr__(self):
7288
    L = ['%s=%r' % (key, value)
7289
      for key, value in self.__dict__.iteritems()]
7290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7291
 
7292
  def __eq__(self, other):
7293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7294
 
7295
  def __ne__(self, other):
7296
    return not (self == other)
7297
 
5944 mandeep.dh 7298
class getItemStatusDescription_args:
7299
  """
7300
  Attributes:
7301
   - itemId
7302
  """
7303
 
7304
  thrift_spec = (
7305
    None, # 0
7306
    (1, TType.I64, 'itemId', None, None, ), # 1
7307
  )
7308
 
7309
  def __init__(self, itemId=None,):
7310
    self.itemId = itemId
7311
 
7312
  def read(self, iprot):
7313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7315
      return
7316
    iprot.readStructBegin()
7317
    while True:
7318
      (fname, ftype, fid) = iprot.readFieldBegin()
7319
      if ftype == TType.STOP:
7320
        break
7321
      if fid == 1:
7322
        if ftype == TType.I64:
7323
          self.itemId = iprot.readI64();
7324
        else:
7325
          iprot.skip(ftype)
7326
      else:
7327
        iprot.skip(ftype)
7328
      iprot.readFieldEnd()
7329
    iprot.readStructEnd()
7330
 
7331
  def write(self, oprot):
7332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7334
      return
7335
    oprot.writeStructBegin('getItemStatusDescription_args')
7336
    if self.itemId is not None:
7337
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7338
      oprot.writeI64(self.itemId)
7339
      oprot.writeFieldEnd()
7340
    oprot.writeFieldStop()
7341
    oprot.writeStructEnd()
7342
 
7343
  def validate(self):
7344
    return
7345
 
7346
 
7347
  def __repr__(self):
7348
    L = ['%s=%r' % (key, value)
7349
      for key, value in self.__dict__.iteritems()]
7350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7351
 
7352
  def __eq__(self, other):
7353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7354
 
7355
  def __ne__(self, other):
7356
    return not (self == other)
7357
 
7358
class getItemStatusDescription_result:
7359
  """
7360
  Attributes:
7361
   - success
7362
   - isex
7363
  """
7364
 
7365
  thrift_spec = (
7366
    (0, TType.STRING, 'success', None, None, ), # 0
7367
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7368
  )
7369
 
7370
  def __init__(self, success=None, isex=None,):
7371
    self.success = success
7372
    self.isex = isex
7373
 
7374
  def read(self, iprot):
7375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7377
      return
7378
    iprot.readStructBegin()
7379
    while True:
7380
      (fname, ftype, fid) = iprot.readFieldBegin()
7381
      if ftype == TType.STOP:
7382
        break
7383
      if fid == 0:
7384
        if ftype == TType.STRING:
7385
          self.success = iprot.readString();
7386
        else:
7387
          iprot.skip(ftype)
7388
      elif fid == 1:
7389
        if ftype == TType.STRUCT:
7390
          self.isex = CatalogServiceException()
7391
          self.isex.read(iprot)
7392
        else:
7393
          iprot.skip(ftype)
7394
      else:
7395
        iprot.skip(ftype)
7396
      iprot.readFieldEnd()
7397
    iprot.readStructEnd()
7398
 
7399
  def write(self, oprot):
7400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7402
      return
7403
    oprot.writeStructBegin('getItemStatusDescription_result')
7404
    if self.success is not None:
7405
      oprot.writeFieldBegin('success', TType.STRING, 0)
7406
      oprot.writeString(self.success)
7407
      oprot.writeFieldEnd()
7408
    if self.isex is not None:
7409
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7410
      self.isex.write(oprot)
7411
      oprot.writeFieldEnd()
7412
    oprot.writeFieldStop()
7413
    oprot.writeStructEnd()
7414
 
7415
  def validate(self):
7416
    return
7417
 
7418
 
7419
  def __repr__(self):
7420
    L = ['%s=%r' % (key, value)
7421
      for key, value in self.__dict__.iteritems()]
7422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7423
 
7424
  def __eq__(self, other):
7425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7426
 
7427
  def __ne__(self, other):
7428
    return not (self == other)
7429
 
7430
class startItemOn_args:
7431
  """
7432
  Attributes:
7433
   - item_id
7434
   - timestamp
7435
  """
7436
 
7437
  thrift_spec = (
7438
    None, # 0
7439
    (1, TType.I64, 'item_id', None, None, ), # 1
7440
    (2, TType.I64, 'timestamp', None, None, ), # 2
7441
  )
7442
 
7443
  def __init__(self, item_id=None, timestamp=None,):
7444
    self.item_id = item_id
7445
    self.timestamp = timestamp
7446
 
7447
  def read(self, iprot):
7448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7450
      return
7451
    iprot.readStructBegin()
7452
    while True:
7453
      (fname, ftype, fid) = iprot.readFieldBegin()
7454
      if ftype == TType.STOP:
7455
        break
7456
      if fid == 1:
7457
        if ftype == TType.I64:
7458
          self.item_id = iprot.readI64();
7459
        else:
7460
          iprot.skip(ftype)
7461
      elif fid == 2:
7462
        if ftype == TType.I64:
7463
          self.timestamp = iprot.readI64();
7464
        else:
7465
          iprot.skip(ftype)
7466
      else:
7467
        iprot.skip(ftype)
7468
      iprot.readFieldEnd()
7469
    iprot.readStructEnd()
7470
 
7471
  def write(self, oprot):
7472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7474
      return
7475
    oprot.writeStructBegin('startItemOn_args')
7476
    if self.item_id is not None:
7477
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7478
      oprot.writeI64(self.item_id)
7479
      oprot.writeFieldEnd()
7480
    if self.timestamp is not None:
7481
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
7482
      oprot.writeI64(self.timestamp)
7483
      oprot.writeFieldEnd()
7484
    oprot.writeFieldStop()
7485
    oprot.writeStructEnd()
7486
 
7487
  def validate(self):
7488
    return
7489
 
7490
 
7491
  def __repr__(self):
7492
    L = ['%s=%r' % (key, value)
7493
      for key, value in self.__dict__.iteritems()]
7494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7495
 
7496
  def __eq__(self, other):
7497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7498
 
7499
  def __ne__(self, other):
7500
    return not (self == other)
7501
 
7502
class startItemOn_result:
7503
  """
7504
  Attributes:
7505
   - cex
7506
  """
7507
 
7508
  thrift_spec = (
7509
    None, # 0
7510
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7511
  )
7512
 
7513
  def __init__(self, cex=None,):
7514
    self.cex = cex
7515
 
7516
  def read(self, iprot):
7517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7519
      return
7520
    iprot.readStructBegin()
7521
    while True:
7522
      (fname, ftype, fid) = iprot.readFieldBegin()
7523
      if ftype == TType.STOP:
7524
        break
7525
      if fid == 1:
7526
        if ftype == TType.STRUCT:
7527
          self.cex = CatalogServiceException()
7528
          self.cex.read(iprot)
7529
        else:
7530
          iprot.skip(ftype)
7531
      else:
7532
        iprot.skip(ftype)
7533
      iprot.readFieldEnd()
7534
    iprot.readStructEnd()
7535
 
7536
  def write(self, oprot):
7537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7539
      return
7540
    oprot.writeStructBegin('startItemOn_result')
7541
    if self.cex is not None:
7542
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7543
      self.cex.write(oprot)
7544
      oprot.writeFieldEnd()
7545
    oprot.writeFieldStop()
7546
    oprot.writeStructEnd()
7547
 
7548
  def validate(self):
7549
    return
7550
 
7551
 
7552
  def __repr__(self):
7553
    L = ['%s=%r' % (key, value)
7554
      for key, value in self.__dict__.iteritems()]
7555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7556
 
7557
  def __eq__(self, other):
7558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7559
 
7560
  def __ne__(self, other):
7561
    return not (self == other)
7562
 
7563
class retireItemOn_args:
7564
  """
7565
  Attributes:
7566
   - item_id
7567
   - timestamp
7568
  """
7569
 
7570
  thrift_spec = (
7571
    None, # 0
7572
    (1, TType.I64, 'item_id', None, None, ), # 1
7573
    (2, TType.I64, 'timestamp', None, None, ), # 2
7574
  )
7575
 
7576
  def __init__(self, item_id=None, timestamp=None,):
7577
    self.item_id = item_id
7578
    self.timestamp = timestamp
7579
 
7580
  def read(self, iprot):
7581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7583
      return
7584
    iprot.readStructBegin()
7585
    while True:
7586
      (fname, ftype, fid) = iprot.readFieldBegin()
7587
      if ftype == TType.STOP:
7588
        break
7589
      if fid == 1:
7590
        if ftype == TType.I64:
7591
          self.item_id = iprot.readI64();
7592
        else:
7593
          iprot.skip(ftype)
7594
      elif fid == 2:
7595
        if ftype == TType.I64:
7596
          self.timestamp = iprot.readI64();
7597
        else:
7598
          iprot.skip(ftype)
7599
      else:
7600
        iprot.skip(ftype)
7601
      iprot.readFieldEnd()
7602
    iprot.readStructEnd()
7603
 
7604
  def write(self, oprot):
7605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7607
      return
7608
    oprot.writeStructBegin('retireItemOn_args')
7609
    if self.item_id is not None:
7610
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7611
      oprot.writeI64(self.item_id)
7612
      oprot.writeFieldEnd()
7613
    if self.timestamp is not None:
7614
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
7615
      oprot.writeI64(self.timestamp)
7616
      oprot.writeFieldEnd()
7617
    oprot.writeFieldStop()
7618
    oprot.writeStructEnd()
7619
 
7620
  def validate(self):
7621
    return
7622
 
7623
 
7624
  def __repr__(self):
7625
    L = ['%s=%r' % (key, value)
7626
      for key, value in self.__dict__.iteritems()]
7627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7628
 
7629
  def __eq__(self, other):
7630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7631
 
7632
  def __ne__(self, other):
7633
    return not (self == other)
7634
 
7635
class retireItemOn_result:
7636
  """
7637
  Attributes:
7638
   - cex
7639
  """
7640
 
7641
  thrift_spec = (
7642
    None, # 0
7643
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7644
  )
7645
 
7646
  def __init__(self, cex=None,):
7647
    self.cex = cex
7648
 
7649
  def read(self, iprot):
7650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7652
      return
7653
    iprot.readStructBegin()
7654
    while True:
7655
      (fname, ftype, fid) = iprot.readFieldBegin()
7656
      if ftype == TType.STOP:
7657
        break
7658
      if fid == 1:
7659
        if ftype == TType.STRUCT:
7660
          self.cex = CatalogServiceException()
7661
          self.cex.read(iprot)
7662
        else:
7663
          iprot.skip(ftype)
7664
      else:
7665
        iprot.skip(ftype)
7666
      iprot.readFieldEnd()
7667
    iprot.readStructEnd()
7668
 
7669
  def write(self, oprot):
7670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7672
      return
7673
    oprot.writeStructBegin('retireItemOn_result')
7674
    if self.cex is not None:
7675
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7676
      self.cex.write(oprot)
7677
      oprot.writeFieldEnd()
7678
    oprot.writeFieldStop()
7679
    oprot.writeStructEnd()
7680
 
7681
  def validate(self):
7682
    return
7683
 
7684
 
7685
  def __repr__(self):
7686
    L = ['%s=%r' % (key, value)
7687
      for key, value in self.__dict__.iteritems()]
7688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7689
 
7690
  def __eq__(self, other):
7691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7692
 
7693
  def __ne__(self, other):
7694
    return not (self == other)
7695
 
7696
class changeItemStatus_args:
7697
  """
7698
  Attributes:
7699
   - item_id
7700
   - timestamp
7701
   - newstatus
7702
  """
7703
 
7704
  thrift_spec = (
7705
    None, # 0
7706
    (1, TType.I64, 'item_id', None, None, ), # 1
7707
    (2, TType.I64, 'timestamp', None, None, ), # 2
7708
    (3, TType.I32, 'newstatus', None, None, ), # 3
7709
  )
7710
 
7711
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
7712
    self.item_id = item_id
7713
    self.timestamp = timestamp
7714
    self.newstatus = newstatus
7715
 
7716
  def read(self, iprot):
7717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7719
      return
7720
    iprot.readStructBegin()
7721
    while True:
7722
      (fname, ftype, fid) = iprot.readFieldBegin()
7723
      if ftype == TType.STOP:
7724
        break
7725
      if fid == 1:
7726
        if ftype == TType.I64:
7727
          self.item_id = iprot.readI64();
7728
        else:
7729
          iprot.skip(ftype)
7730
      elif fid == 2:
7731
        if ftype == TType.I64:
7732
          self.timestamp = iprot.readI64();
7733
        else:
7734
          iprot.skip(ftype)
7735
      elif fid == 3:
7736
        if ftype == TType.I32:
7737
          self.newstatus = iprot.readI32();
7738
        else:
7739
          iprot.skip(ftype)
7740
      else:
7741
        iprot.skip(ftype)
7742
      iprot.readFieldEnd()
7743
    iprot.readStructEnd()
7744
 
7745
  def write(self, oprot):
7746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7748
      return
7749
    oprot.writeStructBegin('changeItemStatus_args')
7750
    if self.item_id is not None:
7751
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7752
      oprot.writeI64(self.item_id)
7753
      oprot.writeFieldEnd()
7754
    if self.timestamp is not None:
7755
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
7756
      oprot.writeI64(self.timestamp)
7757
      oprot.writeFieldEnd()
7758
    if self.newstatus is not None:
7759
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
7760
      oprot.writeI32(self.newstatus)
7761
      oprot.writeFieldEnd()
7762
    oprot.writeFieldStop()
7763
    oprot.writeStructEnd()
7764
 
7765
  def validate(self):
7766
    return
7767
 
7768
 
7769
  def __repr__(self):
7770
    L = ['%s=%r' % (key, value)
7771
      for key, value in self.__dict__.iteritems()]
7772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7773
 
7774
  def __eq__(self, other):
7775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7776
 
7777
  def __ne__(self, other):
7778
    return not (self == other)
7779
 
7780
class changeItemStatus_result:
7781
  """
7782
  Attributes:
7783
   - cex
7784
  """
7785
 
7786
  thrift_spec = (
7787
    None, # 0
7788
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7789
  )
7790
 
7791
  def __init__(self, cex=None,):
7792
    self.cex = cex
7793
 
7794
  def read(self, iprot):
7795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7797
      return
7798
    iprot.readStructBegin()
7799
    while True:
7800
      (fname, ftype, fid) = iprot.readFieldBegin()
7801
      if ftype == TType.STOP:
7802
        break
7803
      if fid == 1:
7804
        if ftype == TType.STRUCT:
7805
          self.cex = CatalogServiceException()
7806
          self.cex.read(iprot)
7807
        else:
7808
          iprot.skip(ftype)
7809
      else:
7810
        iprot.skip(ftype)
7811
      iprot.readFieldEnd()
7812
    iprot.readStructEnd()
7813
 
7814
  def write(self, oprot):
7815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7817
      return
7818
    oprot.writeStructBegin('changeItemStatus_result')
7819
    if self.cex is not None:
7820
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7821
      self.cex.write(oprot)
7822
      oprot.writeFieldEnd()
7823
    oprot.writeFieldStop()
7824
    oprot.writeStructEnd()
7825
 
7826
  def validate(self):
7827
    return
7828
 
7829
 
7830
  def __repr__(self):
7831
    L = ['%s=%r' % (key, value)
7832
      for key, value in self.__dict__.iteritems()]
7833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7834
 
7835
  def __eq__(self, other):
7836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7837
 
7838
  def __ne__(self, other):
7839
    return not (self == other)
7840
 
7841
class getItem_args:
7842
  """
7843
  Attributes:
7844
   - item_id
7845
  """
7846
 
7847
  thrift_spec = (
7848
    None, # 0
7849
    (1, TType.I64, 'item_id', None, None, ), # 1
7850
  )
7851
 
7852
  def __init__(self, item_id=None,):
7853
    self.item_id = item_id
7854
 
7855
  def read(self, iprot):
7856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7858
      return
7859
    iprot.readStructBegin()
7860
    while True:
7861
      (fname, ftype, fid) = iprot.readFieldBegin()
7862
      if ftype == TType.STOP:
7863
        break
7864
      if fid == 1:
7865
        if ftype == TType.I64:
7866
          self.item_id = iprot.readI64();
7867
        else:
7868
          iprot.skip(ftype)
7869
      else:
7870
        iprot.skip(ftype)
7871
      iprot.readFieldEnd()
7872
    iprot.readStructEnd()
7873
 
7874
  def write(self, oprot):
7875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7877
      return
7878
    oprot.writeStructBegin('getItem_args')
7879
    if self.item_id is not None:
7880
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7881
      oprot.writeI64(self.item_id)
7882
      oprot.writeFieldEnd()
7883
    oprot.writeFieldStop()
7884
    oprot.writeStructEnd()
7885
 
7886
  def validate(self):
7887
    return
7888
 
7889
 
7890
  def __repr__(self):
7891
    L = ['%s=%r' % (key, value)
7892
      for key, value in self.__dict__.iteritems()]
7893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7894
 
7895
  def __eq__(self, other):
7896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7897
 
7898
  def __ne__(self, other):
7899
    return not (self == other)
7900
 
7901
class getItem_result:
7902
  """
7903
  Attributes:
7904
   - success
7905
   - cex
7906
  """
7907
 
7908
  thrift_spec = (
7909
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
7910
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7911
  )
7912
 
7913
  def __init__(self, success=None, cex=None,):
7914
    self.success = success
7915
    self.cex = cex
7916
 
7917
  def read(self, iprot):
7918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7920
      return
7921
    iprot.readStructBegin()
7922
    while True:
7923
      (fname, ftype, fid) = iprot.readFieldBegin()
7924
      if ftype == TType.STOP:
7925
        break
7926
      if fid == 0:
7927
        if ftype == TType.STRUCT:
7928
          self.success = Item()
7929
          self.success.read(iprot)
7930
        else:
7931
          iprot.skip(ftype)
7932
      elif fid == 1:
7933
        if ftype == TType.STRUCT:
7934
          self.cex = CatalogServiceException()
7935
          self.cex.read(iprot)
7936
        else:
7937
          iprot.skip(ftype)
7938
      else:
7939
        iprot.skip(ftype)
7940
      iprot.readFieldEnd()
7941
    iprot.readStructEnd()
7942
 
7943
  def write(self, oprot):
7944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7946
      return
7947
    oprot.writeStructBegin('getItem_result')
7948
    if self.success is not None:
7949
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7950
      self.success.write(oprot)
7951
      oprot.writeFieldEnd()
7952
    if self.cex is not None:
7953
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7954
      self.cex.write(oprot)
7955
      oprot.writeFieldEnd()
7956
    oprot.writeFieldStop()
7957
    oprot.writeStructEnd()
7958
 
7959
  def validate(self):
7960
    return
7961
 
7962
 
7963
  def __repr__(self):
7964
    L = ['%s=%r' % (key, value)
7965
      for key, value in self.__dict__.iteritems()]
7966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7967
 
7968
  def __eq__(self, other):
7969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7970
 
7971
  def __ne__(self, other):
7972
    return not (self == other)
7973
 
7974
class getItemsByCatalogId_args:
7975
  """
7976
  Attributes:
7977
   - catalog_item_id
7978
  """
7979
 
7980
  thrift_spec = (
7981
    None, # 0
7982
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
7983
  )
7984
 
7985
  def __init__(self, catalog_item_id=None,):
7986
    self.catalog_item_id = catalog_item_id
7987
 
7988
  def read(self, iprot):
7989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7991
      return
7992
    iprot.readStructBegin()
7993
    while True:
7994
      (fname, ftype, fid) = iprot.readFieldBegin()
7995
      if ftype == TType.STOP:
7996
        break
7997
      if fid == 1:
7998
        if ftype == TType.I64:
7999
          self.catalog_item_id = iprot.readI64();
8000
        else:
8001
          iprot.skip(ftype)
8002
      else:
8003
        iprot.skip(ftype)
8004
      iprot.readFieldEnd()
8005
    iprot.readStructEnd()
8006
 
8007
  def write(self, oprot):
8008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8010
      return
8011
    oprot.writeStructBegin('getItemsByCatalogId_args')
8012
    if self.catalog_item_id is not None:
8013
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
8014
      oprot.writeI64(self.catalog_item_id)
8015
      oprot.writeFieldEnd()
8016
    oprot.writeFieldStop()
8017
    oprot.writeStructEnd()
8018
 
8019
  def validate(self):
8020
    return
8021
 
8022
 
8023
  def __repr__(self):
8024
    L = ['%s=%r' % (key, value)
8025
      for key, value in self.__dict__.iteritems()]
8026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8027
 
8028
  def __eq__(self, other):
8029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8030
 
8031
  def __ne__(self, other):
8032
    return not (self == other)
8033
 
8034
class getItemsByCatalogId_result:
8035
  """
8036
  Attributes:
8037
   - success
8038
   - cex
8039
  """
8040
 
8041
  thrift_spec = (
8042
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8043
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8044
  )
8045
 
8046
  def __init__(self, success=None, cex=None,):
8047
    self.success = success
8048
    self.cex = cex
8049
 
8050
  def read(self, iprot):
8051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8053
      return
8054
    iprot.readStructBegin()
8055
    while True:
8056
      (fname, ftype, fid) = iprot.readFieldBegin()
8057
      if ftype == TType.STOP:
8058
        break
8059
      if fid == 0:
8060
        if ftype == TType.LIST:
8061
          self.success = []
8590 kshitij.so 8062
          (_etype49, _size46) = iprot.readListBegin()
8063
          for _i50 in xrange(_size46):
8064
            _elem51 = Item()
8065
            _elem51.read(iprot)
8066
            self.success.append(_elem51)
5944 mandeep.dh 8067
          iprot.readListEnd()
8068
        else:
8069
          iprot.skip(ftype)
8070
      elif fid == 1:
8071
        if ftype == TType.STRUCT:
8072
          self.cex = CatalogServiceException()
8073
          self.cex.read(iprot)
8074
        else:
8075
          iprot.skip(ftype)
8076
      else:
8077
        iprot.skip(ftype)
8078
      iprot.readFieldEnd()
8079
    iprot.readStructEnd()
8080
 
8081
  def write(self, oprot):
8082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8084
      return
8085
    oprot.writeStructBegin('getItemsByCatalogId_result')
8086
    if self.success is not None:
8087
      oprot.writeFieldBegin('success', TType.LIST, 0)
8088
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8089
      for iter52 in self.success:
8090
        iter52.write(oprot)
5944 mandeep.dh 8091
      oprot.writeListEnd()
8092
      oprot.writeFieldEnd()
8093
    if self.cex is not None:
8094
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8095
      self.cex.write(oprot)
8096
      oprot.writeFieldEnd()
8097
    oprot.writeFieldStop()
8098
    oprot.writeStructEnd()
8099
 
8100
  def validate(self):
8101
    return
8102
 
8103
 
8104
  def __repr__(self):
8105
    L = ['%s=%r' % (key, value)
8106
      for key, value in self.__dict__.iteritems()]
8107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8108
 
8109
  def __eq__(self, other):
8110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8111
 
8112
  def __ne__(self, other):
8113
    return not (self == other)
8114
 
8115
class getValidItemsByCatalogId_args:
8116
  """
8117
  Attributes:
8118
   - catalog_item_id
8119
  """
8120
 
8121
  thrift_spec = (
8122
    None, # 0
8123
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
8124
  )
8125
 
8126
  def __init__(self, catalog_item_id=None,):
8127
    self.catalog_item_id = catalog_item_id
8128
 
8129
  def read(self, iprot):
8130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8132
      return
8133
    iprot.readStructBegin()
8134
    while True:
8135
      (fname, ftype, fid) = iprot.readFieldBegin()
8136
      if ftype == TType.STOP:
8137
        break
8138
      if fid == 1:
8139
        if ftype == TType.I64:
8140
          self.catalog_item_id = iprot.readI64();
8141
        else:
8142
          iprot.skip(ftype)
8143
      else:
8144
        iprot.skip(ftype)
8145
      iprot.readFieldEnd()
8146
    iprot.readStructEnd()
8147
 
8148
  def write(self, oprot):
8149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8151
      return
8152
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
8153
    if self.catalog_item_id is not None:
8154
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
8155
      oprot.writeI64(self.catalog_item_id)
8156
      oprot.writeFieldEnd()
8157
    oprot.writeFieldStop()
8158
    oprot.writeStructEnd()
8159
 
8160
  def validate(self):
8161
    return
8162
 
8163
 
8164
  def __repr__(self):
8165
    L = ['%s=%r' % (key, value)
8166
      for key, value in self.__dict__.iteritems()]
8167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8168
 
8169
  def __eq__(self, other):
8170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8171
 
8172
  def __ne__(self, other):
8173
    return not (self == other)
8174
 
8175
class getValidItemsByCatalogId_result:
8176
  """
8177
  Attributes:
8178
   - success
8179
   - cex
8180
  """
8181
 
8182
  thrift_spec = (
8183
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8184
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8185
  )
8186
 
8187
  def __init__(self, success=None, cex=None,):
8188
    self.success = success
8189
    self.cex = cex
8190
 
8191
  def read(self, iprot):
8192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8194
      return
8195
    iprot.readStructBegin()
8196
    while True:
8197
      (fname, ftype, fid) = iprot.readFieldBegin()
8198
      if ftype == TType.STOP:
8199
        break
8200
      if fid == 0:
8201
        if ftype == TType.LIST:
8202
          self.success = []
8590 kshitij.so 8203
          (_etype56, _size53) = iprot.readListBegin()
8204
          for _i57 in xrange(_size53):
8205
            _elem58 = Item()
8206
            _elem58.read(iprot)
8207
            self.success.append(_elem58)
5944 mandeep.dh 8208
          iprot.readListEnd()
8209
        else:
8210
          iprot.skip(ftype)
8211
      elif fid == 1:
8212
        if ftype == TType.STRUCT:
8213
          self.cex = CatalogServiceException()
8214
          self.cex.read(iprot)
8215
        else:
8216
          iprot.skip(ftype)
8217
      else:
8218
        iprot.skip(ftype)
8219
      iprot.readFieldEnd()
8220
    iprot.readStructEnd()
8221
 
8222
  def write(self, oprot):
8223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8225
      return
8226
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
8227
    if self.success is not None:
8228
      oprot.writeFieldBegin('success', TType.LIST, 0)
8229
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8230
      for iter59 in self.success:
8231
        iter59.write(oprot)
5944 mandeep.dh 8232
      oprot.writeListEnd()
8233
      oprot.writeFieldEnd()
8234
    if self.cex is not None:
8235
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8236
      self.cex.write(oprot)
8237
      oprot.writeFieldEnd()
8238
    oprot.writeFieldStop()
8239
    oprot.writeStructEnd()
8240
 
8241
  def validate(self):
8242
    return
8243
 
8244
 
8245
  def __repr__(self):
8246
    L = ['%s=%r' % (key, value)
8247
      for key, value in self.__dict__.iteritems()]
8248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8249
 
8250
  def __eq__(self, other):
8251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8252
 
8253
  def __ne__(self, other):
8254
    return not (self == other)
8255
 
8256
class getAllItems_args:
8257
  """
8258
  Attributes:
8259
   - isActive
8260
  """
8261
 
8262
  thrift_spec = (
8263
    None, # 0
8264
    (1, TType.BOOL, 'isActive', None, None, ), # 1
8265
  )
8266
 
8267
  def __init__(self, isActive=None,):
8268
    self.isActive = isActive
8269
 
8270
  def read(self, iprot):
8271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8273
      return
8274
    iprot.readStructBegin()
8275
    while True:
8276
      (fname, ftype, fid) = iprot.readFieldBegin()
8277
      if ftype == TType.STOP:
8278
        break
8279
      if fid == 1:
8280
        if ftype == TType.BOOL:
8281
          self.isActive = iprot.readBool();
8282
        else:
8283
          iprot.skip(ftype)
8284
      else:
8285
        iprot.skip(ftype)
8286
      iprot.readFieldEnd()
8287
    iprot.readStructEnd()
8288
 
8289
  def write(self, oprot):
8290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8292
      return
8293
    oprot.writeStructBegin('getAllItems_args')
8294
    if self.isActive is not None:
8295
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
8296
      oprot.writeBool(self.isActive)
8297
      oprot.writeFieldEnd()
8298
    oprot.writeFieldStop()
8299
    oprot.writeStructEnd()
8300
 
8301
  def validate(self):
8302
    return
8303
 
8304
 
8305
  def __repr__(self):
8306
    L = ['%s=%r' % (key, value)
8307
      for key, value in self.__dict__.iteritems()]
8308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8309
 
8310
  def __eq__(self, other):
8311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8312
 
8313
  def __ne__(self, other):
8314
    return not (self == other)
8315
 
8316
class getAllItems_result:
8317
  """
8318
  Attributes:
8319
   - success
8320
   - cex
8321
  """
8322
 
8323
  thrift_spec = (
8324
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8325
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8326
  )
8327
 
8328
  def __init__(self, success=None, cex=None,):
8329
    self.success = success
8330
    self.cex = cex
8331
 
8332
  def read(self, iprot):
8333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8335
      return
8336
    iprot.readStructBegin()
8337
    while True:
8338
      (fname, ftype, fid) = iprot.readFieldBegin()
8339
      if ftype == TType.STOP:
8340
        break
8341
      if fid == 0:
8342
        if ftype == TType.LIST:
8343
          self.success = []
8590 kshitij.so 8344
          (_etype63, _size60) = iprot.readListBegin()
8345
          for _i64 in xrange(_size60):
8346
            _elem65 = Item()
8347
            _elem65.read(iprot)
8348
            self.success.append(_elem65)
5944 mandeep.dh 8349
          iprot.readListEnd()
8350
        else:
8351
          iprot.skip(ftype)
8352
      elif fid == 1:
8353
        if ftype == TType.STRUCT:
8354
          self.cex = CatalogServiceException()
8355
          self.cex.read(iprot)
8356
        else:
8357
          iprot.skip(ftype)
8358
      else:
8359
        iprot.skip(ftype)
8360
      iprot.readFieldEnd()
8361
    iprot.readStructEnd()
8362
 
8363
  def write(self, oprot):
8364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8366
      return
8367
    oprot.writeStructBegin('getAllItems_result')
8368
    if self.success is not None:
8369
      oprot.writeFieldBegin('success', TType.LIST, 0)
8370
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8371
      for iter66 in self.success:
8372
        iter66.write(oprot)
5944 mandeep.dh 8373
      oprot.writeListEnd()
8374
      oprot.writeFieldEnd()
8375
    if self.cex is not None:
8376
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8377
      self.cex.write(oprot)
8378
      oprot.writeFieldEnd()
8379
    oprot.writeFieldStop()
8380
    oprot.writeStructEnd()
8381
 
8382
  def validate(self):
8383
    return
8384
 
8385
 
8386
  def __repr__(self):
8387
    L = ['%s=%r' % (key, value)
8388
      for key, value in self.__dict__.iteritems()]
8389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8390
 
8391
  def __eq__(self, other):
8392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8393
 
8394
  def __ne__(self, other):
8395
    return not (self == other)
8396
 
8397
class getAllItemsByStatus_args:
8398
  """
8399
  Attributes:
8400
   - itemStatus
8401
  """
8402
 
8403
  thrift_spec = (
8404
    None, # 0
8405
    (1, TType.I32, 'itemStatus', None, None, ), # 1
8406
  )
8407
 
8408
  def __init__(self, itemStatus=None,):
8409
    self.itemStatus = itemStatus
8410
 
8411
  def read(self, iprot):
8412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8414
      return
8415
    iprot.readStructBegin()
8416
    while True:
8417
      (fname, ftype, fid) = iprot.readFieldBegin()
8418
      if ftype == TType.STOP:
8419
        break
8420
      if fid == 1:
8421
        if ftype == TType.I32:
8422
          self.itemStatus = iprot.readI32();
8423
        else:
8424
          iprot.skip(ftype)
8425
      else:
8426
        iprot.skip(ftype)
8427
      iprot.readFieldEnd()
8428
    iprot.readStructEnd()
8429
 
8430
  def write(self, oprot):
8431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8433
      return
8434
    oprot.writeStructBegin('getAllItemsByStatus_args')
8435
    if self.itemStatus is not None:
8436
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
8437
      oprot.writeI32(self.itemStatus)
8438
      oprot.writeFieldEnd()
8439
    oprot.writeFieldStop()
8440
    oprot.writeStructEnd()
8441
 
8442
  def validate(self):
8443
    return
8444
 
8445
 
8446
  def __repr__(self):
8447
    L = ['%s=%r' % (key, value)
8448
      for key, value in self.__dict__.iteritems()]
8449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8450
 
8451
  def __eq__(self, other):
8452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8453
 
8454
  def __ne__(self, other):
8455
    return not (self == other)
8456
 
8457
class getAllItemsByStatus_result:
8458
  """
8459
  Attributes:
8460
   - success
8461
   - cex
8462
  """
8463
 
8464
  thrift_spec = (
8465
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8466
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8467
  )
8468
 
8469
  def __init__(self, success=None, cex=None,):
8470
    self.success = success
8471
    self.cex = cex
8472
 
8473
  def read(self, iprot):
8474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8476
      return
8477
    iprot.readStructBegin()
8478
    while True:
8479
      (fname, ftype, fid) = iprot.readFieldBegin()
8480
      if ftype == TType.STOP:
8481
        break
8482
      if fid == 0:
8483
        if ftype == TType.LIST:
8484
          self.success = []
8590 kshitij.so 8485
          (_etype70, _size67) = iprot.readListBegin()
8486
          for _i71 in xrange(_size67):
8487
            _elem72 = Item()
8488
            _elem72.read(iprot)
8489
            self.success.append(_elem72)
5944 mandeep.dh 8490
          iprot.readListEnd()
8491
        else:
8492
          iprot.skip(ftype)
8493
      elif fid == 1:
8494
        if ftype == TType.STRUCT:
8495
          self.cex = CatalogServiceException()
8496
          self.cex.read(iprot)
8497
        else:
8498
          iprot.skip(ftype)
8499
      else:
8500
        iprot.skip(ftype)
8501
      iprot.readFieldEnd()
8502
    iprot.readStructEnd()
8503
 
8504
  def write(self, oprot):
8505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8507
      return
8508
    oprot.writeStructBegin('getAllItemsByStatus_result')
8509
    if self.success is not None:
8510
      oprot.writeFieldBegin('success', TType.LIST, 0)
8511
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8512
      for iter73 in self.success:
8513
        iter73.write(oprot)
5944 mandeep.dh 8514
      oprot.writeListEnd()
8515
      oprot.writeFieldEnd()
8516
    if self.cex is not None:
8517
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8518
      self.cex.write(oprot)
8519
      oprot.writeFieldEnd()
8520
    oprot.writeFieldStop()
8521
    oprot.writeStructEnd()
8522
 
8523
  def validate(self):
8524
    return
8525
 
8526
 
8527
  def __repr__(self):
8528
    L = ['%s=%r' % (key, value)
8529
      for key, value in self.__dict__.iteritems()]
8530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8531
 
8532
  def __eq__(self, other):
8533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8534
 
8535
  def __ne__(self, other):
8536
    return not (self == other)
8537
 
8538
class markItemAsContentComplete_args:
8539
  """
8540
  Attributes:
8541
   - entityId
8542
   - category
8543
   - brand
8544
   - modelName
8545
   - modelNumber
9253 rajveer 8546
   - isAndroid
5944 mandeep.dh 8547
  """
8548
 
8549
  thrift_spec = (
8550
    None, # 0
8551
    (1, TType.I64, 'entityId', None, None, ), # 1
8552
    (2, TType.I64, 'category', None, None, ), # 2
8553
    (3, TType.STRING, 'brand', None, None, ), # 3
8554
    (4, TType.STRING, 'modelName', None, None, ), # 4
8555
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 8556
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 8557
  )
8558
 
9253 rajveer 8559
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 8560
    self.entityId = entityId
8561
    self.category = category
8562
    self.brand = brand
8563
    self.modelName = modelName
8564
    self.modelNumber = modelNumber
9253 rajveer 8565
    self.isAndroid = isAndroid
5944 mandeep.dh 8566
 
8567
  def read(self, iprot):
8568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8570
      return
8571
    iprot.readStructBegin()
8572
    while True:
8573
      (fname, ftype, fid) = iprot.readFieldBegin()
8574
      if ftype == TType.STOP:
8575
        break
8576
      if fid == 1:
8577
        if ftype == TType.I64:
8578
          self.entityId = iprot.readI64();
8579
        else:
8580
          iprot.skip(ftype)
8581
      elif fid == 2:
8582
        if ftype == TType.I64:
8583
          self.category = iprot.readI64();
8584
        else:
8585
          iprot.skip(ftype)
8586
      elif fid == 3:
8587
        if ftype == TType.STRING:
8588
          self.brand = iprot.readString();
8589
        else:
8590
          iprot.skip(ftype)
8591
      elif fid == 4:
8592
        if ftype == TType.STRING:
8593
          self.modelName = iprot.readString();
8594
        else:
8595
          iprot.skip(ftype)
8596
      elif fid == 5:
8597
        if ftype == TType.STRING:
8598
          self.modelNumber = iprot.readString();
8599
        else:
8600
          iprot.skip(ftype)
9253 rajveer 8601
      elif fid == 6:
8602
        if ftype == TType.BOOL:
8603
          self.isAndroid = iprot.readBool();
8604
        else:
8605
          iprot.skip(ftype)
5944 mandeep.dh 8606
      else:
8607
        iprot.skip(ftype)
8608
      iprot.readFieldEnd()
8609
    iprot.readStructEnd()
8610
 
8611
  def write(self, oprot):
8612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8614
      return
8615
    oprot.writeStructBegin('markItemAsContentComplete_args')
8616
    if self.entityId is not None:
8617
      oprot.writeFieldBegin('entityId', TType.I64, 1)
8618
      oprot.writeI64(self.entityId)
8619
      oprot.writeFieldEnd()
8620
    if self.category is not None:
8621
      oprot.writeFieldBegin('category', TType.I64, 2)
8622
      oprot.writeI64(self.category)
8623
      oprot.writeFieldEnd()
8624
    if self.brand is not None:
8625
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8626
      oprot.writeString(self.brand)
8627
      oprot.writeFieldEnd()
8628
    if self.modelName is not None:
8629
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
8630
      oprot.writeString(self.modelName)
8631
      oprot.writeFieldEnd()
8632
    if self.modelNumber is not None:
8633
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
8634
      oprot.writeString(self.modelNumber)
8635
      oprot.writeFieldEnd()
9253 rajveer 8636
    if self.isAndroid is not None:
8637
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
8638
      oprot.writeBool(self.isAndroid)
8639
      oprot.writeFieldEnd()
5944 mandeep.dh 8640
    oprot.writeFieldStop()
8641
    oprot.writeStructEnd()
8642
 
8643
  def validate(self):
8644
    return
8645
 
8646
 
8647
  def __repr__(self):
8648
    L = ['%s=%r' % (key, value)
8649
      for key, value in self.__dict__.iteritems()]
8650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8651
 
8652
  def __eq__(self, other):
8653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8654
 
8655
  def __ne__(self, other):
8656
    return not (self == other)
8657
 
8658
class markItemAsContentComplete_result:
8659
  """
8660
  Attributes:
8661
   - success
8662
   - cex
8663
  """
8664
 
8665
  thrift_spec = (
8666
    (0, TType.BOOL, 'success', None, None, ), # 0
8667
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8668
  )
8669
 
8670
  def __init__(self, success=None, cex=None,):
8671
    self.success = success
8672
    self.cex = cex
8673
 
8674
  def read(self, iprot):
8675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8677
      return
8678
    iprot.readStructBegin()
8679
    while True:
8680
      (fname, ftype, fid) = iprot.readFieldBegin()
8681
      if ftype == TType.STOP:
8682
        break
8683
      if fid == 0:
8684
        if ftype == TType.BOOL:
8685
          self.success = iprot.readBool();
8686
        else:
8687
          iprot.skip(ftype)
8688
      elif fid == 1:
8689
        if ftype == TType.STRUCT:
8690
          self.cex = CatalogServiceException()
8691
          self.cex.read(iprot)
8692
        else:
8693
          iprot.skip(ftype)
8694
      else:
8695
        iprot.skip(ftype)
8696
      iprot.readFieldEnd()
8697
    iprot.readStructEnd()
8698
 
8699
  def write(self, oprot):
8700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8702
      return
8703
    oprot.writeStructBegin('markItemAsContentComplete_result')
8704
    if self.success is not None:
8705
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8706
      oprot.writeBool(self.success)
8707
      oprot.writeFieldEnd()
8708
    if self.cex is not None:
8709
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8710
      self.cex.write(oprot)
8711
      oprot.writeFieldEnd()
8712
    oprot.writeFieldStop()
8713
    oprot.writeStructEnd()
8714
 
8715
  def validate(self):
8716
    return
8717
 
8718
 
8719
  def __repr__(self):
8720
    L = ['%s=%r' % (key, value)
8721
      for key, value in self.__dict__.iteritems()]
8722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8723
 
8724
  def __eq__(self, other):
8725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8726
 
8727
  def __ne__(self, other):
8728
    return not (self == other)
8729
 
8730
class getAllItemsInRange_args:
8731
  """
8732
  Attributes:
8733
   - offset
8734
   - limit
8735
  """
8736
 
8737
  thrift_spec = (
8738
    None, # 0
8739
    (1, TType.I64, 'offset', None, None, ), # 1
8740
    (2, TType.I64, 'limit', None, None, ), # 2
8741
  )
8742
 
8743
  def __init__(self, offset=None, limit=None,):
8744
    self.offset = offset
8745
    self.limit = limit
8746
 
8747
  def read(self, iprot):
8748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8750
      return
8751
    iprot.readStructBegin()
8752
    while True:
8753
      (fname, ftype, fid) = iprot.readFieldBegin()
8754
      if ftype == TType.STOP:
8755
        break
8756
      if fid == 1:
8757
        if ftype == TType.I64:
8758
          self.offset = iprot.readI64();
8759
        else:
8760
          iprot.skip(ftype)
8761
      elif fid == 2:
8762
        if ftype == TType.I64:
8763
          self.limit = iprot.readI64();
8764
        else:
8765
          iprot.skip(ftype)
8766
      else:
8767
        iprot.skip(ftype)
8768
      iprot.readFieldEnd()
8769
    iprot.readStructEnd()
8770
 
8771
  def write(self, oprot):
8772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8774
      return
8775
    oprot.writeStructBegin('getAllItemsInRange_args')
8776
    if self.offset is not None:
8777
      oprot.writeFieldBegin('offset', TType.I64, 1)
8778
      oprot.writeI64(self.offset)
8779
      oprot.writeFieldEnd()
8780
    if self.limit is not None:
8781
      oprot.writeFieldBegin('limit', TType.I64, 2)
8782
      oprot.writeI64(self.limit)
8783
      oprot.writeFieldEnd()
8784
    oprot.writeFieldStop()
8785
    oprot.writeStructEnd()
8786
 
8787
  def validate(self):
8788
    return
8789
 
8790
 
8791
  def __repr__(self):
8792
    L = ['%s=%r' % (key, value)
8793
      for key, value in self.__dict__.iteritems()]
8794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8795
 
8796
  def __eq__(self, other):
8797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8798
 
8799
  def __ne__(self, other):
8800
    return not (self == other)
8801
 
8802
class getAllItemsInRange_result:
8803
  """
8804
  Attributes:
8805
   - success
8806
   - cex
8807
  """
8808
 
8809
  thrift_spec = (
8810
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8811
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8812
  )
8813
 
8814
  def __init__(self, success=None, cex=None,):
8815
    self.success = success
8816
    self.cex = cex
8817
 
8818
  def read(self, iprot):
8819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8821
      return
8822
    iprot.readStructBegin()
8823
    while True:
8824
      (fname, ftype, fid) = iprot.readFieldBegin()
8825
      if ftype == TType.STOP:
8826
        break
8827
      if fid == 0:
8828
        if ftype == TType.LIST:
8829
          self.success = []
8590 kshitij.so 8830
          (_etype77, _size74) = iprot.readListBegin()
8831
          for _i78 in xrange(_size74):
8832
            _elem79 = Item()
8833
            _elem79.read(iprot)
8834
            self.success.append(_elem79)
5944 mandeep.dh 8835
          iprot.readListEnd()
8836
        else:
8837
          iprot.skip(ftype)
8838
      elif fid == 1:
8839
        if ftype == TType.STRUCT:
8840
          self.cex = CatalogServiceException()
8841
          self.cex.read(iprot)
8842
        else:
8843
          iprot.skip(ftype)
8844
      else:
8845
        iprot.skip(ftype)
8846
      iprot.readFieldEnd()
8847
    iprot.readStructEnd()
8848
 
8849
  def write(self, oprot):
8850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8852
      return
8853
    oprot.writeStructBegin('getAllItemsInRange_result')
8854
    if self.success is not None:
8855
      oprot.writeFieldBegin('success', TType.LIST, 0)
8856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 8857
      for iter80 in self.success:
8858
        iter80.write(oprot)
5944 mandeep.dh 8859
      oprot.writeListEnd()
8860
      oprot.writeFieldEnd()
8861
    if self.cex is not None:
8862
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8863
      self.cex.write(oprot)
8864
      oprot.writeFieldEnd()
8865
    oprot.writeFieldStop()
8866
    oprot.writeStructEnd()
8867
 
8868
  def validate(self):
8869
    return
8870
 
8871
 
8872
  def __repr__(self):
8873
    L = ['%s=%r' % (key, value)
8874
      for key, value in self.__dict__.iteritems()]
8875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8876
 
8877
  def __eq__(self, other):
8878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8879
 
8880
  def __ne__(self, other):
8881
    return not (self == other)
8882
 
8883
class getAllItemsByStatusInRange_args:
8884
  """
8885
  Attributes:
8886
   - itemStatus
8887
   - offset
8888
   - limit
8889
  """
8890
 
8891
  thrift_spec = (
8892
    None, # 0
8893
    (1, TType.I32, 'itemStatus', None, None, ), # 1
8894
    (2, TType.I64, 'offset', None, None, ), # 2
8895
    (3, TType.I64, 'limit', None, None, ), # 3
8896
  )
8897
 
8898
  def __init__(self, itemStatus=None, offset=None, limit=None,):
8899
    self.itemStatus = itemStatus
8900
    self.offset = offset
8901
    self.limit = limit
8902
 
8903
  def read(self, iprot):
8904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8906
      return
8907
    iprot.readStructBegin()
8908
    while True:
8909
      (fname, ftype, fid) = iprot.readFieldBegin()
8910
      if ftype == TType.STOP:
8911
        break
8912
      if fid == 1:
8913
        if ftype == TType.I32:
8914
          self.itemStatus = iprot.readI32();
8915
        else:
8916
          iprot.skip(ftype)
8917
      elif fid == 2:
8918
        if ftype == TType.I64:
8919
          self.offset = iprot.readI64();
8920
        else:
8921
          iprot.skip(ftype)
8922
      elif fid == 3:
8923
        if ftype == TType.I64:
8924
          self.limit = iprot.readI64();
8925
        else:
8926
          iprot.skip(ftype)
8927
      else:
8928
        iprot.skip(ftype)
8929
      iprot.readFieldEnd()
8930
    iprot.readStructEnd()
8931
 
8932
  def write(self, oprot):
8933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8935
      return
8936
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
8937
    if self.itemStatus is not None:
8938
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
8939
      oprot.writeI32(self.itemStatus)
8940
      oprot.writeFieldEnd()
8941
    if self.offset is not None:
8942
      oprot.writeFieldBegin('offset', TType.I64, 2)
8943
      oprot.writeI64(self.offset)
8944
      oprot.writeFieldEnd()
8945
    if self.limit is not None:
8946
      oprot.writeFieldBegin('limit', TType.I64, 3)
8947
      oprot.writeI64(self.limit)
8948
      oprot.writeFieldEnd()
8949
    oprot.writeFieldStop()
8950
    oprot.writeStructEnd()
8951
 
8952
  def validate(self):
8953
    return
8954
 
8955
 
8956
  def __repr__(self):
8957
    L = ['%s=%r' % (key, value)
8958
      for key, value in self.__dict__.iteritems()]
8959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8960
 
8961
  def __eq__(self, other):
8962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8963
 
8964
  def __ne__(self, other):
8965
    return not (self == other)
8966
 
8967
class getAllItemsByStatusInRange_result:
8968
  """
8969
  Attributes:
8970
   - success
8971
   - cex
8972
  """
8973
 
8974
  thrift_spec = (
8975
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8976
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8977
  )
8978
 
8979
  def __init__(self, success=None, cex=None,):
8980
    self.success = success
8981
    self.cex = cex
8982
 
8983
  def read(self, iprot):
8984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8986
      return
8987
    iprot.readStructBegin()
8988
    while True:
8989
      (fname, ftype, fid) = iprot.readFieldBegin()
8990
      if ftype == TType.STOP:
8991
        break
8992
      if fid == 0:
8993
        if ftype == TType.LIST:
8994
          self.success = []
8590 kshitij.so 8995
          (_etype84, _size81) = iprot.readListBegin()
8996
          for _i85 in xrange(_size81):
8997
            _elem86 = Item()
8998
            _elem86.read(iprot)
8999
            self.success.append(_elem86)
5944 mandeep.dh 9000
          iprot.readListEnd()
9001
        else:
9002
          iprot.skip(ftype)
9003
      elif fid == 1:
9004
        if ftype == TType.STRUCT:
9005
          self.cex = CatalogServiceException()
9006
          self.cex.read(iprot)
9007
        else:
9008
          iprot.skip(ftype)
9009
      else:
9010
        iprot.skip(ftype)
9011
      iprot.readFieldEnd()
9012
    iprot.readStructEnd()
9013
 
9014
  def write(self, oprot):
9015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9017
      return
9018
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
9019
    if self.success is not None:
9020
      oprot.writeFieldBegin('success', TType.LIST, 0)
9021
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9022
      for iter87 in self.success:
9023
        iter87.write(oprot)
5944 mandeep.dh 9024
      oprot.writeListEnd()
9025
      oprot.writeFieldEnd()
9026
    if self.cex is not None:
9027
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9028
      self.cex.write(oprot)
9029
      oprot.writeFieldEnd()
9030
    oprot.writeFieldStop()
9031
    oprot.writeStructEnd()
9032
 
9033
  def validate(self):
9034
    return
9035
 
9036
 
9037
  def __repr__(self):
9038
    L = ['%s=%r' % (key, value)
9039
      for key, value in self.__dict__.iteritems()]
9040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9041
 
9042
  def __eq__(self, other):
9043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9044
 
9045
  def __ne__(self, other):
9046
    return not (self == other)
9047
 
9048
class getItemCountByStatus_args:
9049
  """
9050
  Attributes:
9051
   - useStatus
9052
   - itemStatus
9053
  """
9054
 
9055
  thrift_spec = (
9056
    None, # 0
9057
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
9058
    (2, TType.I32, 'itemStatus', None, None, ), # 2
9059
  )
9060
 
9061
  def __init__(self, useStatus=None, itemStatus=None,):
9062
    self.useStatus = useStatus
9063
    self.itemStatus = itemStatus
9064
 
9065
  def read(self, iprot):
9066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9068
      return
9069
    iprot.readStructBegin()
9070
    while True:
9071
      (fname, ftype, fid) = iprot.readFieldBegin()
9072
      if ftype == TType.STOP:
9073
        break
9074
      if fid == 1:
9075
        if ftype == TType.BOOL:
9076
          self.useStatus = iprot.readBool();
9077
        else:
9078
          iprot.skip(ftype)
9079
      elif fid == 2:
9080
        if ftype == TType.I32:
9081
          self.itemStatus = iprot.readI32();
9082
        else:
9083
          iprot.skip(ftype)
9084
      else:
9085
        iprot.skip(ftype)
9086
      iprot.readFieldEnd()
9087
    iprot.readStructEnd()
9088
 
9089
  def write(self, oprot):
9090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9092
      return
9093
    oprot.writeStructBegin('getItemCountByStatus_args')
9094
    if self.useStatus is not None:
9095
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
9096
      oprot.writeBool(self.useStatus)
9097
      oprot.writeFieldEnd()
9098
    if self.itemStatus is not None:
9099
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
9100
      oprot.writeI32(self.itemStatus)
9101
      oprot.writeFieldEnd()
9102
    oprot.writeFieldStop()
9103
    oprot.writeStructEnd()
9104
 
9105
  def validate(self):
9106
    return
9107
 
9108
 
9109
  def __repr__(self):
9110
    L = ['%s=%r' % (key, value)
9111
      for key, value in self.__dict__.iteritems()]
9112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9113
 
9114
  def __eq__(self, other):
9115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9116
 
9117
  def __ne__(self, other):
9118
    return not (self == other)
9119
 
9120
class getItemCountByStatus_result:
9121
  """
9122
  Attributes:
9123
   - success
9124
  """
9125
 
9126
  thrift_spec = (
9127
    (0, TType.I32, 'success', None, None, ), # 0
9128
  )
9129
 
9130
  def __init__(self, success=None,):
9131
    self.success = success
9132
 
9133
  def read(self, iprot):
9134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9136
      return
9137
    iprot.readStructBegin()
9138
    while True:
9139
      (fname, ftype, fid) = iprot.readFieldBegin()
9140
      if ftype == TType.STOP:
9141
        break
9142
      if fid == 0:
9143
        if ftype == TType.I32:
9144
          self.success = iprot.readI32();
9145
        else:
9146
          iprot.skip(ftype)
9147
      else:
9148
        iprot.skip(ftype)
9149
      iprot.readFieldEnd()
9150
    iprot.readStructEnd()
9151
 
9152
  def write(self, oprot):
9153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9155
      return
9156
    oprot.writeStructBegin('getItemCountByStatus_result')
9157
    if self.success is not None:
9158
      oprot.writeFieldBegin('success', TType.I32, 0)
9159
      oprot.writeI32(self.success)
9160
      oprot.writeFieldEnd()
9161
    oprot.writeFieldStop()
9162
    oprot.writeStructEnd()
9163
 
9164
  def validate(self):
9165
    return
9166
 
9167
 
9168
  def __repr__(self):
9169
    L = ['%s=%r' % (key, value)
9170
      for key, value in self.__dict__.iteritems()]
9171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9172
 
9173
  def __eq__(self, other):
9174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9175
 
9176
  def __ne__(self, other):
9177
    return not (self == other)
9178
 
9179
class getBestSellers_args:
9180
 
9181
  thrift_spec = (
9182
  )
9183
 
9184
  def read(self, iprot):
9185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9187
      return
9188
    iprot.readStructBegin()
9189
    while True:
9190
      (fname, ftype, fid) = iprot.readFieldBegin()
9191
      if ftype == TType.STOP:
9192
        break
9193
      else:
9194
        iprot.skip(ftype)
9195
      iprot.readFieldEnd()
9196
    iprot.readStructEnd()
9197
 
9198
  def write(self, oprot):
9199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9201
      return
9202
    oprot.writeStructBegin('getBestSellers_args')
9203
    oprot.writeFieldStop()
9204
    oprot.writeStructEnd()
9205
 
9206
  def validate(self):
9207
    return
9208
 
9209
 
9210
  def __repr__(self):
9211
    L = ['%s=%r' % (key, value)
9212
      for key, value in self.__dict__.iteritems()]
9213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9214
 
9215
  def __eq__(self, other):
9216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9217
 
9218
  def __ne__(self, other):
9219
    return not (self == other)
9220
 
9221
class getBestSellers_result:
9222
  """
9223
  Attributes:
9224
   - success
9225
   - isex
9226
  """
9227
 
9228
  thrift_spec = (
9229
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9230
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9231
  )
9232
 
9233
  def __init__(self, success=None, isex=None,):
9234
    self.success = success
9235
    self.isex = isex
9236
 
9237
  def read(self, iprot):
9238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9240
      return
9241
    iprot.readStructBegin()
9242
    while True:
9243
      (fname, ftype, fid) = iprot.readFieldBegin()
9244
      if ftype == TType.STOP:
9245
        break
9246
      if fid == 0:
9247
        if ftype == TType.LIST:
9248
          self.success = []
8590 kshitij.so 9249
          (_etype91, _size88) = iprot.readListBegin()
9250
          for _i92 in xrange(_size88):
9251
            _elem93 = Item()
9252
            _elem93.read(iprot)
9253
            self.success.append(_elem93)
5944 mandeep.dh 9254
          iprot.readListEnd()
9255
        else:
9256
          iprot.skip(ftype)
9257
      elif fid == 1:
9258
        if ftype == TType.STRUCT:
9259
          self.isex = CatalogServiceException()
9260
          self.isex.read(iprot)
9261
        else:
9262
          iprot.skip(ftype)
9263
      else:
9264
        iprot.skip(ftype)
9265
      iprot.readFieldEnd()
9266
    iprot.readStructEnd()
9267
 
9268
  def write(self, oprot):
9269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9271
      return
9272
    oprot.writeStructBegin('getBestSellers_result')
9273
    if self.success is not None:
9274
      oprot.writeFieldBegin('success', TType.LIST, 0)
9275
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9276
      for iter94 in self.success:
9277
        iter94.write(oprot)
5944 mandeep.dh 9278
      oprot.writeListEnd()
9279
      oprot.writeFieldEnd()
9280
    if self.isex is not None:
9281
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9282
      self.isex.write(oprot)
9283
      oprot.writeFieldEnd()
9284
    oprot.writeFieldStop()
9285
    oprot.writeStructEnd()
9286
 
9287
  def validate(self):
9288
    return
9289
 
9290
 
9291
  def __repr__(self):
9292
    L = ['%s=%r' % (key, value)
9293
      for key, value in self.__dict__.iteritems()]
9294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9295
 
9296
  def __eq__(self, other):
9297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9298
 
9299
  def __ne__(self, other):
9300
    return not (self == other)
9301
 
9302
class getBestSellersCatalogIds_args:
9303
  """
9304
  Attributes:
9305
   - beginIndex
9306
   - totalItems
9307
   - brand
9308
   - category
9309
  """
9310
 
9311
  thrift_spec = (
9312
    None, # 0
9313
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9314
    (2, TType.I64, 'totalItems', None, None, ), # 2
9315
    (3, TType.STRING, 'brand', None, None, ), # 3
9316
    (4, TType.I64, 'category', None, None, ), # 4
9317
  )
9318
 
9319
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
9320
    self.beginIndex = beginIndex
9321
    self.totalItems = totalItems
9322
    self.brand = brand
9323
    self.category = category
9324
 
9325
  def read(self, iprot):
9326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9328
      return
9329
    iprot.readStructBegin()
9330
    while True:
9331
      (fname, ftype, fid) = iprot.readFieldBegin()
9332
      if ftype == TType.STOP:
9333
        break
9334
      if fid == 1:
9335
        if ftype == TType.I64:
9336
          self.beginIndex = iprot.readI64();
9337
        else:
9338
          iprot.skip(ftype)
9339
      elif fid == 2:
9340
        if ftype == TType.I64:
9341
          self.totalItems = iprot.readI64();
9342
        else:
9343
          iprot.skip(ftype)
9344
      elif fid == 3:
9345
        if ftype == TType.STRING:
9346
          self.brand = iprot.readString();
9347
        else:
9348
          iprot.skip(ftype)
9349
      elif fid == 4:
9350
        if ftype == TType.I64:
9351
          self.category = iprot.readI64();
9352
        else:
9353
          iprot.skip(ftype)
9354
      else:
9355
        iprot.skip(ftype)
9356
      iprot.readFieldEnd()
9357
    iprot.readStructEnd()
9358
 
9359
  def write(self, oprot):
9360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9362
      return
9363
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
9364
    if self.beginIndex is not None:
9365
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9366
      oprot.writeI64(self.beginIndex)
9367
      oprot.writeFieldEnd()
9368
    if self.totalItems is not None:
9369
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9370
      oprot.writeI64(self.totalItems)
9371
      oprot.writeFieldEnd()
9372
    if self.brand is not None:
9373
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9374
      oprot.writeString(self.brand)
9375
      oprot.writeFieldEnd()
9376
    if self.category is not None:
9377
      oprot.writeFieldBegin('category', TType.I64, 4)
9378
      oprot.writeI64(self.category)
9379
      oprot.writeFieldEnd()
9380
    oprot.writeFieldStop()
9381
    oprot.writeStructEnd()
9382
 
9383
  def validate(self):
9384
    return
9385
 
9386
 
9387
  def __repr__(self):
9388
    L = ['%s=%r' % (key, value)
9389
      for key, value in self.__dict__.iteritems()]
9390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9391
 
9392
  def __eq__(self, other):
9393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9394
 
9395
  def __ne__(self, other):
9396
    return not (self == other)
9397
 
9398
class getBestSellersCatalogIds_result:
9399
  """
9400
  Attributes:
9401
   - success
9402
   - cex
9403
  """
9404
 
9405
  thrift_spec = (
9406
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9407
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9408
  )
9409
 
9410
  def __init__(self, success=None, cex=None,):
9411
    self.success = success
9412
    self.cex = cex
9413
 
9414
  def read(self, iprot):
9415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9417
      return
9418
    iprot.readStructBegin()
9419
    while True:
9420
      (fname, ftype, fid) = iprot.readFieldBegin()
9421
      if ftype == TType.STOP:
9422
        break
9423
      if fid == 0:
9424
        if ftype == TType.LIST:
9425
          self.success = []
8590 kshitij.so 9426
          (_etype98, _size95) = iprot.readListBegin()
9427
          for _i99 in xrange(_size95):
9428
            _elem100 = iprot.readI64();
9429
            self.success.append(_elem100)
5944 mandeep.dh 9430
          iprot.readListEnd()
9431
        else:
9432
          iprot.skip(ftype)
9433
      elif fid == 1:
9434
        if ftype == TType.STRUCT:
9435
          self.cex = CatalogServiceException()
9436
          self.cex.read(iprot)
9437
        else:
9438
          iprot.skip(ftype)
9439
      else:
9440
        iprot.skip(ftype)
9441
      iprot.readFieldEnd()
9442
    iprot.readStructEnd()
9443
 
9444
  def write(self, oprot):
9445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9447
      return
9448
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
9449
    if self.success is not None:
9450
      oprot.writeFieldBegin('success', TType.LIST, 0)
9451
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 9452
      for iter101 in self.success:
9453
        oprot.writeI64(iter101)
5944 mandeep.dh 9454
      oprot.writeListEnd()
9455
      oprot.writeFieldEnd()
9456
    if self.cex is not None:
9457
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9458
      self.cex.write(oprot)
9459
      oprot.writeFieldEnd()
9460
    oprot.writeFieldStop()
9461
    oprot.writeStructEnd()
9462
 
9463
  def validate(self):
9464
    return
9465
 
9466
 
9467
  def __repr__(self):
9468
    L = ['%s=%r' % (key, value)
9469
      for key, value in self.__dict__.iteritems()]
9470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9471
 
9472
  def __eq__(self, other):
9473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9474
 
9475
  def __ne__(self, other):
9476
    return not (self == other)
9477
 
9478
class getBestSellersCount_args:
9479
 
9480
  thrift_spec = (
9481
  )
9482
 
9483
  def read(self, iprot):
9484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9486
      return
9487
    iprot.readStructBegin()
9488
    while True:
9489
      (fname, ftype, fid) = iprot.readFieldBegin()
9490
      if ftype == TType.STOP:
9491
        break
9492
      else:
9493
        iprot.skip(ftype)
9494
      iprot.readFieldEnd()
9495
    iprot.readStructEnd()
9496
 
9497
  def write(self, oprot):
9498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9500
      return
9501
    oprot.writeStructBegin('getBestSellersCount_args')
9502
    oprot.writeFieldStop()
9503
    oprot.writeStructEnd()
9504
 
9505
  def validate(self):
9506
    return
9507
 
9508
 
9509
  def __repr__(self):
9510
    L = ['%s=%r' % (key, value)
9511
      for key, value in self.__dict__.iteritems()]
9512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9513
 
9514
  def __eq__(self, other):
9515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9516
 
9517
  def __ne__(self, other):
9518
    return not (self == other)
9519
 
9520
class getBestSellersCount_result:
9521
  """
9522
  Attributes:
9523
   - success
9524
   - cex
9525
  """
9526
 
9527
  thrift_spec = (
9528
    (0, TType.I64, 'success', None, None, ), # 0
9529
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9530
  )
9531
 
9532
  def __init__(self, success=None, cex=None,):
9533
    self.success = success
9534
    self.cex = cex
9535
 
9536
  def read(self, iprot):
9537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9539
      return
9540
    iprot.readStructBegin()
9541
    while True:
9542
      (fname, ftype, fid) = iprot.readFieldBegin()
9543
      if ftype == TType.STOP:
9544
        break
9545
      if fid == 0:
9546
        if ftype == TType.I64:
9547
          self.success = iprot.readI64();
9548
        else:
9549
          iprot.skip(ftype)
9550
      elif fid == 1:
9551
        if ftype == TType.STRUCT:
9552
          self.cex = CatalogServiceException()
9553
          self.cex.read(iprot)
9554
        else:
9555
          iprot.skip(ftype)
9556
      else:
9557
        iprot.skip(ftype)
9558
      iprot.readFieldEnd()
9559
    iprot.readStructEnd()
9560
 
9561
  def write(self, oprot):
9562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9564
      return
9565
    oprot.writeStructBegin('getBestSellersCount_result')
9566
    if self.success is not None:
9567
      oprot.writeFieldBegin('success', TType.I64, 0)
9568
      oprot.writeI64(self.success)
9569
      oprot.writeFieldEnd()
9570
    if self.cex is not None:
9571
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9572
      self.cex.write(oprot)
9573
      oprot.writeFieldEnd()
9574
    oprot.writeFieldStop()
9575
    oprot.writeStructEnd()
9576
 
9577
  def validate(self):
9578
    return
9579
 
9580
 
9581
  def __repr__(self):
9582
    L = ['%s=%r' % (key, value)
9583
      for key, value in self.__dict__.iteritems()]
9584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9585
 
9586
  def __eq__(self, other):
9587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9588
 
9589
  def __ne__(self, other):
9590
    return not (self == other)
9591
 
9592
class getBestDeals_args:
9593
 
9594
  thrift_spec = (
9595
  )
9596
 
9597
  def read(self, iprot):
9598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9600
      return
9601
    iprot.readStructBegin()
9602
    while True:
9603
      (fname, ftype, fid) = iprot.readFieldBegin()
9604
      if ftype == TType.STOP:
9605
        break
9606
      else:
9607
        iprot.skip(ftype)
9608
      iprot.readFieldEnd()
9609
    iprot.readStructEnd()
9610
 
9611
  def write(self, oprot):
9612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9614
      return
9615
    oprot.writeStructBegin('getBestDeals_args')
9616
    oprot.writeFieldStop()
9617
    oprot.writeStructEnd()
9618
 
9619
  def validate(self):
9620
    return
9621
 
9622
 
9623
  def __repr__(self):
9624
    L = ['%s=%r' % (key, value)
9625
      for key, value in self.__dict__.iteritems()]
9626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9627
 
9628
  def __eq__(self, other):
9629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9630
 
9631
  def __ne__(self, other):
9632
    return not (self == other)
9633
 
9634
class getBestDeals_result:
9635
  """
9636
  Attributes:
9637
   - success
9638
   - isex
9639
  """
9640
 
9641
  thrift_spec = (
9642
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9643
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9644
  )
9645
 
9646
  def __init__(self, success=None, isex=None,):
9647
    self.success = success
9648
    self.isex = isex
9649
 
9650
  def read(self, iprot):
9651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9653
      return
9654
    iprot.readStructBegin()
9655
    while True:
9656
      (fname, ftype, fid) = iprot.readFieldBegin()
9657
      if ftype == TType.STOP:
9658
        break
9659
      if fid == 0:
9660
        if ftype == TType.LIST:
9661
          self.success = []
8590 kshitij.so 9662
          (_etype105, _size102) = iprot.readListBegin()
9663
          for _i106 in xrange(_size102):
9664
            _elem107 = Item()
9665
            _elem107.read(iprot)
9666
            self.success.append(_elem107)
5944 mandeep.dh 9667
          iprot.readListEnd()
9668
        else:
9669
          iprot.skip(ftype)
9670
      elif fid == 1:
9671
        if ftype == TType.STRUCT:
9672
          self.isex = CatalogServiceException()
9673
          self.isex.read(iprot)
9674
        else:
9675
          iprot.skip(ftype)
9676
      else:
9677
        iprot.skip(ftype)
9678
      iprot.readFieldEnd()
9679
    iprot.readStructEnd()
9680
 
9681
  def write(self, oprot):
9682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9684
      return
9685
    oprot.writeStructBegin('getBestDeals_result')
9686
    if self.success is not None:
9687
      oprot.writeFieldBegin('success', TType.LIST, 0)
9688
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 9689
      for iter108 in self.success:
9690
        iter108.write(oprot)
5944 mandeep.dh 9691
      oprot.writeListEnd()
9692
      oprot.writeFieldEnd()
9693
    if self.isex is not None:
9694
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9695
      self.isex.write(oprot)
9696
      oprot.writeFieldEnd()
9697
    oprot.writeFieldStop()
9698
    oprot.writeStructEnd()
9699
 
9700
  def validate(self):
9701
    return
9702
 
9703
 
9704
  def __repr__(self):
9705
    L = ['%s=%r' % (key, value)
9706
      for key, value in self.__dict__.iteritems()]
9707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9708
 
9709
  def __eq__(self, other):
9710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9711
 
9712
  def __ne__(self, other):
9713
    return not (self == other)
9714
 
9715
class getBestDealsCatalogIds_args:
9716
  """
9717
  Attributes:
9718
   - beginIndex
9719
   - totalItems
9720
   - brand
9721
   - category
9722
  """
9723
 
9724
  thrift_spec = (
9725
    None, # 0
9726
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9727
    (2, TType.I64, 'totalItems', None, None, ), # 2
9728
    (3, TType.STRING, 'brand', None, None, ), # 3
9729
    (4, TType.I64, 'category', None, None, ), # 4
9730
  )
9731
 
9732
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
9733
    self.beginIndex = beginIndex
9734
    self.totalItems = totalItems
9735
    self.brand = brand
9736
    self.category = category
9737
 
9738
  def read(self, iprot):
9739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9741
      return
9742
    iprot.readStructBegin()
9743
    while True:
9744
      (fname, ftype, fid) = iprot.readFieldBegin()
9745
      if ftype == TType.STOP:
9746
        break
9747
      if fid == 1:
9748
        if ftype == TType.I64:
9749
          self.beginIndex = iprot.readI64();
9750
        else:
9751
          iprot.skip(ftype)
9752
      elif fid == 2:
9753
        if ftype == TType.I64:
9754
          self.totalItems = iprot.readI64();
9755
        else:
9756
          iprot.skip(ftype)
9757
      elif fid == 3:
9758
        if ftype == TType.STRING:
9759
          self.brand = iprot.readString();
9760
        else:
9761
          iprot.skip(ftype)
9762
      elif fid == 4:
9763
        if ftype == TType.I64:
9764
          self.category = iprot.readI64();
9765
        else:
9766
          iprot.skip(ftype)
9767
      else:
9768
        iprot.skip(ftype)
9769
      iprot.readFieldEnd()
9770
    iprot.readStructEnd()
9771
 
9772
  def write(self, oprot):
9773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9775
      return
9776
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
9777
    if self.beginIndex is not None:
9778
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9779
      oprot.writeI64(self.beginIndex)
9780
      oprot.writeFieldEnd()
9781
    if self.totalItems is not None:
9782
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9783
      oprot.writeI64(self.totalItems)
9784
      oprot.writeFieldEnd()
9785
    if self.brand is not None:
9786
      oprot.writeFieldBegin('brand', TType.STRING, 3)
9787
      oprot.writeString(self.brand)
9788
      oprot.writeFieldEnd()
9789
    if self.category is not None:
9790
      oprot.writeFieldBegin('category', TType.I64, 4)
9791
      oprot.writeI64(self.category)
9792
      oprot.writeFieldEnd()
9793
    oprot.writeFieldStop()
9794
    oprot.writeStructEnd()
9795
 
9796
  def validate(self):
9797
    return
9798
 
9799
 
9800
  def __repr__(self):
9801
    L = ['%s=%r' % (key, value)
9802
      for key, value in self.__dict__.iteritems()]
9803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9804
 
9805
  def __eq__(self, other):
9806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9807
 
9808
  def __ne__(self, other):
9809
    return not (self == other)
9810
 
9811
class getBestDealsCatalogIds_result:
9812
  """
9813
  Attributes:
9814
   - success
9815
   - cex
9816
  """
9817
 
9818
  thrift_spec = (
9819
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9820
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9821
  )
9822
 
9823
  def __init__(self, success=None, cex=None,):
9824
    self.success = success
9825
    self.cex = cex
9826
 
9827
  def read(self, iprot):
9828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9830
      return
9831
    iprot.readStructBegin()
9832
    while True:
9833
      (fname, ftype, fid) = iprot.readFieldBegin()
9834
      if ftype == TType.STOP:
9835
        break
9836
      if fid == 0:
9837
        if ftype == TType.LIST:
9838
          self.success = []
8590 kshitij.so 9839
          (_etype112, _size109) = iprot.readListBegin()
9840
          for _i113 in xrange(_size109):
9841
            _elem114 = iprot.readI64();
9842
            self.success.append(_elem114)
5944 mandeep.dh 9843
          iprot.readListEnd()
9844
        else:
9845
          iprot.skip(ftype)
9846
      elif fid == 1:
9847
        if ftype == TType.STRUCT:
9848
          self.cex = CatalogServiceException()
9849
          self.cex.read(iprot)
9850
        else:
9851
          iprot.skip(ftype)
9852
      else:
9853
        iprot.skip(ftype)
9854
      iprot.readFieldEnd()
9855
    iprot.readStructEnd()
9856
 
9857
  def write(self, oprot):
9858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9860
      return
9861
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
9862
    if self.success is not None:
9863
      oprot.writeFieldBegin('success', TType.LIST, 0)
9864
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 9865
      for iter115 in self.success:
9866
        oprot.writeI64(iter115)
5944 mandeep.dh 9867
      oprot.writeListEnd()
9868
      oprot.writeFieldEnd()
9869
    if self.cex is not None:
9870
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9871
      self.cex.write(oprot)
9872
      oprot.writeFieldEnd()
9873
    oprot.writeFieldStop()
9874
    oprot.writeStructEnd()
9875
 
9876
  def validate(self):
9877
    return
9878
 
9879
 
9880
  def __repr__(self):
9881
    L = ['%s=%r' % (key, value)
9882
      for key, value in self.__dict__.iteritems()]
9883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9884
 
9885
  def __eq__(self, other):
9886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9887
 
9888
  def __ne__(self, other):
9889
    return not (self == other)
9890
 
9891
class getBestDealsCount_args:
9892
 
9893
  thrift_spec = (
9894
  )
9895
 
9896
  def read(self, iprot):
9897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9899
      return
9900
    iprot.readStructBegin()
9901
    while True:
9902
      (fname, ftype, fid) = iprot.readFieldBegin()
9903
      if ftype == TType.STOP:
9904
        break
9905
      else:
9906
        iprot.skip(ftype)
9907
      iprot.readFieldEnd()
9908
    iprot.readStructEnd()
9909
 
9910
  def write(self, oprot):
9911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9913
      return
9914
    oprot.writeStructBegin('getBestDealsCount_args')
9915
    oprot.writeFieldStop()
9916
    oprot.writeStructEnd()
9917
 
9918
  def validate(self):
9919
    return
9920
 
9921
 
9922
  def __repr__(self):
9923
    L = ['%s=%r' % (key, value)
9924
      for key, value in self.__dict__.iteritems()]
9925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9926
 
9927
  def __eq__(self, other):
9928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9929
 
9930
  def __ne__(self, other):
9931
    return not (self == other)
9932
 
9933
class getBestDealsCount_result:
9934
  """
9935
  Attributes:
9936
   - success
9937
   - cex
9938
  """
9939
 
9940
  thrift_spec = (
9941
    (0, TType.I64, 'success', None, None, ), # 0
9942
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9943
  )
9944
 
9945
  def __init__(self, success=None, cex=None,):
9946
    self.success = success
9947
    self.cex = cex
9948
 
9949
  def read(self, iprot):
9950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9952
      return
9953
    iprot.readStructBegin()
9954
    while True:
9955
      (fname, ftype, fid) = iprot.readFieldBegin()
9956
      if ftype == TType.STOP:
9957
        break
9958
      if fid == 0:
9959
        if ftype == TType.I64:
9960
          self.success = iprot.readI64();
9961
        else:
9962
          iprot.skip(ftype)
9963
      elif fid == 1:
9964
        if ftype == TType.STRUCT:
9965
          self.cex = CatalogServiceException()
9966
          self.cex.read(iprot)
9967
        else:
9968
          iprot.skip(ftype)
9969
      else:
9970
        iprot.skip(ftype)
9971
      iprot.readFieldEnd()
9972
    iprot.readStructEnd()
9973
 
9974
  def write(self, oprot):
9975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9977
      return
9978
    oprot.writeStructBegin('getBestDealsCount_result')
9979
    if self.success is not None:
9980
      oprot.writeFieldBegin('success', TType.I64, 0)
9981
      oprot.writeI64(self.success)
9982
      oprot.writeFieldEnd()
9983
    if self.cex is not None:
9984
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9985
      self.cex.write(oprot)
9986
      oprot.writeFieldEnd()
9987
    oprot.writeFieldStop()
9988
    oprot.writeStructEnd()
9989
 
9990
  def validate(self):
9991
    return
9992
 
9993
 
9994
  def __repr__(self):
9995
    L = ['%s=%r' % (key, value)
9996
      for key, value in self.__dict__.iteritems()]
9997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9998
 
9999
  def __eq__(self, other):
10000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10001
 
10002
  def __ne__(self, other):
10003
    return not (self == other)
10004
 
10005
class getComingSoon_args:
10006
 
10007
  thrift_spec = (
10008
  )
10009
 
10010
  def read(self, iprot):
10011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10013
      return
10014
    iprot.readStructBegin()
10015
    while True:
10016
      (fname, ftype, fid) = iprot.readFieldBegin()
10017
      if ftype == TType.STOP:
10018
        break
10019
      else:
10020
        iprot.skip(ftype)
10021
      iprot.readFieldEnd()
10022
    iprot.readStructEnd()
10023
 
10024
  def write(self, oprot):
10025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10027
      return
10028
    oprot.writeStructBegin('getComingSoon_args')
10029
    oprot.writeFieldStop()
10030
    oprot.writeStructEnd()
10031
 
10032
  def validate(self):
10033
    return
10034
 
10035
 
10036
  def __repr__(self):
10037
    L = ['%s=%r' % (key, value)
10038
      for key, value in self.__dict__.iteritems()]
10039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10040
 
10041
  def __eq__(self, other):
10042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10043
 
10044
  def __ne__(self, other):
10045
    return not (self == other)
10046
 
10047
class getComingSoon_result:
10048
  """
10049
  Attributes:
10050
   - success
10051
   - isex
10052
  """
10053
 
10054
  thrift_spec = (
10055
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10056
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10057
  )
10058
 
10059
  def __init__(self, success=None, isex=None,):
10060
    self.success = success
10061
    self.isex = isex
10062
 
10063
  def read(self, iprot):
10064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10066
      return
10067
    iprot.readStructBegin()
10068
    while True:
10069
      (fname, ftype, fid) = iprot.readFieldBegin()
10070
      if ftype == TType.STOP:
10071
        break
10072
      if fid == 0:
10073
        if ftype == TType.LIST:
10074
          self.success = []
8590 kshitij.so 10075
          (_etype119, _size116) = iprot.readListBegin()
10076
          for _i120 in xrange(_size116):
10077
            _elem121 = Item()
10078
            _elem121.read(iprot)
10079
            self.success.append(_elem121)
5944 mandeep.dh 10080
          iprot.readListEnd()
10081
        else:
10082
          iprot.skip(ftype)
10083
      elif fid == 1:
10084
        if ftype == TType.STRUCT:
10085
          self.isex = CatalogServiceException()
10086
          self.isex.read(iprot)
10087
        else:
10088
          iprot.skip(ftype)
10089
      else:
10090
        iprot.skip(ftype)
10091
      iprot.readFieldEnd()
10092
    iprot.readStructEnd()
10093
 
10094
  def write(self, oprot):
10095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10097
      return
10098
    oprot.writeStructBegin('getComingSoon_result')
10099
    if self.success is not None:
10100
      oprot.writeFieldBegin('success', TType.LIST, 0)
10101
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10102
      for iter122 in self.success:
10103
        iter122.write(oprot)
5944 mandeep.dh 10104
      oprot.writeListEnd()
10105
      oprot.writeFieldEnd()
10106
    if self.isex is not None:
10107
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10108
      self.isex.write(oprot)
10109
      oprot.writeFieldEnd()
10110
    oprot.writeFieldStop()
10111
    oprot.writeStructEnd()
10112
 
10113
  def validate(self):
10114
    return
10115
 
10116
 
10117
  def __repr__(self):
10118
    L = ['%s=%r' % (key, value)
10119
      for key, value in self.__dict__.iteritems()]
10120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10121
 
10122
  def __eq__(self, other):
10123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10124
 
10125
  def __ne__(self, other):
10126
    return not (self == other)
10127
 
10128
class getComingSoonCatalogIds_args:
10129
  """
10130
  Attributes:
10131
   - beginIndex
10132
   - totalItems
10133
   - brand
10134
   - category
10135
  """
10136
 
10137
  thrift_spec = (
10138
    None, # 0
10139
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10140
    (2, TType.I64, 'totalItems', None, None, ), # 2
10141
    (3, TType.STRING, 'brand', None, None, ), # 3
10142
    (4, TType.I64, 'category', None, None, ), # 4
10143
  )
10144
 
10145
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
10146
    self.beginIndex = beginIndex
10147
    self.totalItems = totalItems
10148
    self.brand = brand
10149
    self.category = category
10150
 
10151
  def read(self, iprot):
10152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10154
      return
10155
    iprot.readStructBegin()
10156
    while True:
10157
      (fname, ftype, fid) = iprot.readFieldBegin()
10158
      if ftype == TType.STOP:
10159
        break
10160
      if fid == 1:
10161
        if ftype == TType.I64:
10162
          self.beginIndex = iprot.readI64();
10163
        else:
10164
          iprot.skip(ftype)
10165
      elif fid == 2:
10166
        if ftype == TType.I64:
10167
          self.totalItems = iprot.readI64();
10168
        else:
10169
          iprot.skip(ftype)
10170
      elif fid == 3:
10171
        if ftype == TType.STRING:
10172
          self.brand = iprot.readString();
10173
        else:
10174
          iprot.skip(ftype)
10175
      elif fid == 4:
10176
        if ftype == TType.I64:
10177
          self.category = iprot.readI64();
10178
        else:
10179
          iprot.skip(ftype)
10180
      else:
10181
        iprot.skip(ftype)
10182
      iprot.readFieldEnd()
10183
    iprot.readStructEnd()
10184
 
10185
  def write(self, oprot):
10186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10188
      return
10189
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
10190
    if self.beginIndex is not None:
10191
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10192
      oprot.writeI64(self.beginIndex)
10193
      oprot.writeFieldEnd()
10194
    if self.totalItems is not None:
10195
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10196
      oprot.writeI64(self.totalItems)
10197
      oprot.writeFieldEnd()
10198
    if self.brand is not None:
10199
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10200
      oprot.writeString(self.brand)
10201
      oprot.writeFieldEnd()
10202
    if self.category is not None:
10203
      oprot.writeFieldBegin('category', TType.I64, 4)
10204
      oprot.writeI64(self.category)
10205
      oprot.writeFieldEnd()
10206
    oprot.writeFieldStop()
10207
    oprot.writeStructEnd()
10208
 
10209
  def validate(self):
10210
    return
10211
 
10212
 
10213
  def __repr__(self):
10214
    L = ['%s=%r' % (key, value)
10215
      for key, value in self.__dict__.iteritems()]
10216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10217
 
10218
  def __eq__(self, other):
10219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10220
 
10221
  def __ne__(self, other):
10222
    return not (self == other)
10223
 
10224
class getComingSoonCatalogIds_result:
10225
  """
10226
  Attributes:
10227
   - success
10228
   - cex
10229
  """
10230
 
10231
  thrift_spec = (
10232
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10233
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10234
  )
10235
 
10236
  def __init__(self, success=None, cex=None,):
10237
    self.success = success
10238
    self.cex = cex
10239
 
10240
  def read(self, iprot):
10241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10243
      return
10244
    iprot.readStructBegin()
10245
    while True:
10246
      (fname, ftype, fid) = iprot.readFieldBegin()
10247
      if ftype == TType.STOP:
10248
        break
10249
      if fid == 0:
10250
        if ftype == TType.LIST:
10251
          self.success = []
8590 kshitij.so 10252
          (_etype126, _size123) = iprot.readListBegin()
10253
          for _i127 in xrange(_size123):
10254
            _elem128 = iprot.readI64();
10255
            self.success.append(_elem128)
5944 mandeep.dh 10256
          iprot.readListEnd()
10257
        else:
10258
          iprot.skip(ftype)
10259
      elif fid == 1:
10260
        if ftype == TType.STRUCT:
10261
          self.cex = CatalogServiceException()
10262
          self.cex.read(iprot)
10263
        else:
10264
          iprot.skip(ftype)
10265
      else:
10266
        iprot.skip(ftype)
10267
      iprot.readFieldEnd()
10268
    iprot.readStructEnd()
10269
 
10270
  def write(self, oprot):
10271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10273
      return
10274
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
10275
    if self.success is not None:
10276
      oprot.writeFieldBegin('success', TType.LIST, 0)
10277
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10278
      for iter129 in self.success:
10279
        oprot.writeI64(iter129)
5944 mandeep.dh 10280
      oprot.writeListEnd()
10281
      oprot.writeFieldEnd()
10282
    if self.cex is not None:
10283
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10284
      self.cex.write(oprot)
10285
      oprot.writeFieldEnd()
10286
    oprot.writeFieldStop()
10287
    oprot.writeStructEnd()
10288
 
10289
  def validate(self):
10290
    return
10291
 
10292
 
10293
  def __repr__(self):
10294
    L = ['%s=%r' % (key, value)
10295
      for key, value in self.__dict__.iteritems()]
10296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10297
 
10298
  def __eq__(self, other):
10299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10300
 
10301
  def __ne__(self, other):
10302
    return not (self == other)
10303
 
10304
class getComingSoonCount_args:
10305
 
10306
  thrift_spec = (
10307
  )
10308
 
10309
  def read(self, iprot):
10310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10312
      return
10313
    iprot.readStructBegin()
10314
    while True:
10315
      (fname, ftype, fid) = iprot.readFieldBegin()
10316
      if ftype == TType.STOP:
10317
        break
10318
      else:
10319
        iprot.skip(ftype)
10320
      iprot.readFieldEnd()
10321
    iprot.readStructEnd()
10322
 
10323
  def write(self, oprot):
10324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10326
      return
10327
    oprot.writeStructBegin('getComingSoonCount_args')
10328
    oprot.writeFieldStop()
10329
    oprot.writeStructEnd()
10330
 
10331
  def validate(self):
10332
    return
10333
 
10334
 
10335
  def __repr__(self):
10336
    L = ['%s=%r' % (key, value)
10337
      for key, value in self.__dict__.iteritems()]
10338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10339
 
10340
  def __eq__(self, other):
10341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10342
 
10343
  def __ne__(self, other):
10344
    return not (self == other)
10345
 
10346
class getComingSoonCount_result:
10347
  """
10348
  Attributes:
10349
   - success
10350
   - cex
10351
  """
10352
 
10353
  thrift_spec = (
10354
    (0, TType.I64, 'success', None, None, ), # 0
10355
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10356
  )
10357
 
10358
  def __init__(self, success=None, cex=None,):
10359
    self.success = success
10360
    self.cex = cex
10361
 
10362
  def read(self, iprot):
10363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10365
      return
10366
    iprot.readStructBegin()
10367
    while True:
10368
      (fname, ftype, fid) = iprot.readFieldBegin()
10369
      if ftype == TType.STOP:
10370
        break
10371
      if fid == 0:
10372
        if ftype == TType.I64:
10373
          self.success = iprot.readI64();
10374
        else:
10375
          iprot.skip(ftype)
10376
      elif fid == 1:
10377
        if ftype == TType.STRUCT:
10378
          self.cex = CatalogServiceException()
10379
          self.cex.read(iprot)
10380
        else:
10381
          iprot.skip(ftype)
10382
      else:
10383
        iprot.skip(ftype)
10384
      iprot.readFieldEnd()
10385
    iprot.readStructEnd()
10386
 
10387
  def write(self, oprot):
10388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10390
      return
10391
    oprot.writeStructBegin('getComingSoonCount_result')
10392
    if self.success is not None:
10393
      oprot.writeFieldBegin('success', TType.I64, 0)
10394
      oprot.writeI64(self.success)
10395
      oprot.writeFieldEnd()
10396
    if self.cex is not None:
10397
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10398
      self.cex.write(oprot)
10399
      oprot.writeFieldEnd()
10400
    oprot.writeFieldStop()
10401
    oprot.writeStructEnd()
10402
 
10403
  def validate(self):
10404
    return
10405
 
10406
 
10407
  def __repr__(self):
10408
    L = ['%s=%r' % (key, value)
10409
      for key, value in self.__dict__.iteritems()]
10410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10411
 
10412
  def __eq__(self, other):
10413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10414
 
10415
  def __ne__(self, other):
10416
    return not (self == other)
10417
 
10418
class getLatestArrivals_args:
10419
 
10420
  thrift_spec = (
10421
  )
10422
 
10423
  def read(self, iprot):
10424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10426
      return
10427
    iprot.readStructBegin()
10428
    while True:
10429
      (fname, ftype, fid) = iprot.readFieldBegin()
10430
      if ftype == TType.STOP:
10431
        break
10432
      else:
10433
        iprot.skip(ftype)
10434
      iprot.readFieldEnd()
10435
    iprot.readStructEnd()
10436
 
10437
  def write(self, oprot):
10438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10440
      return
10441
    oprot.writeStructBegin('getLatestArrivals_args')
10442
    oprot.writeFieldStop()
10443
    oprot.writeStructEnd()
10444
 
10445
  def validate(self):
10446
    return
10447
 
10448
 
10449
  def __repr__(self):
10450
    L = ['%s=%r' % (key, value)
10451
      for key, value in self.__dict__.iteritems()]
10452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10453
 
10454
  def __eq__(self, other):
10455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10456
 
10457
  def __ne__(self, other):
10458
    return not (self == other)
10459
 
10460
class getLatestArrivals_result:
10461
  """
10462
  Attributes:
10463
   - success
10464
   - isex
10465
  """
10466
 
10467
  thrift_spec = (
10468
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10469
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10470
  )
10471
 
10472
  def __init__(self, success=None, isex=None,):
10473
    self.success = success
10474
    self.isex = isex
10475
 
10476
  def read(self, iprot):
10477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10479
      return
10480
    iprot.readStructBegin()
10481
    while True:
10482
      (fname, ftype, fid) = iprot.readFieldBegin()
10483
      if ftype == TType.STOP:
10484
        break
10485
      if fid == 0:
10486
        if ftype == TType.LIST:
10487
          self.success = []
8590 kshitij.so 10488
          (_etype133, _size130) = iprot.readListBegin()
10489
          for _i134 in xrange(_size130):
10490
            _elem135 = Item()
10491
            _elem135.read(iprot)
10492
            self.success.append(_elem135)
5944 mandeep.dh 10493
          iprot.readListEnd()
10494
        else:
10495
          iprot.skip(ftype)
10496
      elif fid == 1:
10497
        if ftype == TType.STRUCT:
10498
          self.isex = CatalogServiceException()
10499
          self.isex.read(iprot)
10500
        else:
10501
          iprot.skip(ftype)
10502
      else:
10503
        iprot.skip(ftype)
10504
      iprot.readFieldEnd()
10505
    iprot.readStructEnd()
10506
 
10507
  def write(self, oprot):
10508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10510
      return
10511
    oprot.writeStructBegin('getLatestArrivals_result')
10512
    if self.success is not None:
10513
      oprot.writeFieldBegin('success', TType.LIST, 0)
10514
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10515
      for iter136 in self.success:
10516
        iter136.write(oprot)
5944 mandeep.dh 10517
      oprot.writeListEnd()
10518
      oprot.writeFieldEnd()
10519
    if self.isex is not None:
10520
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10521
      self.isex.write(oprot)
10522
      oprot.writeFieldEnd()
10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
10526
  def validate(self):
10527
    return
10528
 
10529
 
10530
  def __repr__(self):
10531
    L = ['%s=%r' % (key, value)
10532
      for key, value in self.__dict__.iteritems()]
10533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10534
 
10535
  def __eq__(self, other):
10536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10537
 
10538
  def __ne__(self, other):
10539
    return not (self == other)
10540
 
10541
class getLatestArrivalsCatalogIds_args:
10542
  """
10543
  Attributes:
10544
   - beginIndex
10545
   - totalItems
10546
   - brand
10547
   - categories
10548
  """
10549
 
10550
  thrift_spec = (
10551
    None, # 0
10552
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10553
    (2, TType.I64, 'totalItems', None, None, ), # 2
10554
    (3, TType.STRING, 'brand', None, None, ), # 3
10555
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
10556
  )
10557
 
10558
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
10559
    self.beginIndex = beginIndex
10560
    self.totalItems = totalItems
10561
    self.brand = brand
10562
    self.categories = categories
10563
 
10564
  def read(self, iprot):
10565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10567
      return
10568
    iprot.readStructBegin()
10569
    while True:
10570
      (fname, ftype, fid) = iprot.readFieldBegin()
10571
      if ftype == TType.STOP:
10572
        break
10573
      if fid == 1:
10574
        if ftype == TType.I64:
10575
          self.beginIndex = iprot.readI64();
10576
        else:
10577
          iprot.skip(ftype)
10578
      elif fid == 2:
10579
        if ftype == TType.I64:
10580
          self.totalItems = iprot.readI64();
10581
        else:
10582
          iprot.skip(ftype)
10583
      elif fid == 3:
10584
        if ftype == TType.STRING:
10585
          self.brand = iprot.readString();
10586
        else:
10587
          iprot.skip(ftype)
10588
      elif fid == 4:
10589
        if ftype == TType.LIST:
10590
          self.categories = []
8590 kshitij.so 10591
          (_etype140, _size137) = iprot.readListBegin()
10592
          for _i141 in xrange(_size137):
10593
            _elem142 = iprot.readI64();
10594
            self.categories.append(_elem142)
5944 mandeep.dh 10595
          iprot.readListEnd()
10596
        else:
10597
          iprot.skip(ftype)
10598
      else:
10599
        iprot.skip(ftype)
10600
      iprot.readFieldEnd()
10601
    iprot.readStructEnd()
10602
 
10603
  def write(self, oprot):
10604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10606
      return
10607
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
10608
    if self.beginIndex is not None:
10609
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10610
      oprot.writeI64(self.beginIndex)
10611
      oprot.writeFieldEnd()
10612
    if self.totalItems is not None:
10613
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10614
      oprot.writeI64(self.totalItems)
10615
      oprot.writeFieldEnd()
10616
    if self.brand is not None:
10617
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10618
      oprot.writeString(self.brand)
10619
      oprot.writeFieldEnd()
10620
    if self.categories is not None:
10621
      oprot.writeFieldBegin('categories', TType.LIST, 4)
10622
      oprot.writeListBegin(TType.I64, len(self.categories))
8590 kshitij.so 10623
      for iter143 in self.categories:
10624
        oprot.writeI64(iter143)
5944 mandeep.dh 10625
      oprot.writeListEnd()
10626
      oprot.writeFieldEnd()
10627
    oprot.writeFieldStop()
10628
    oprot.writeStructEnd()
10629
 
10630
  def validate(self):
10631
    return
10632
 
10633
 
10634
  def __repr__(self):
10635
    L = ['%s=%r' % (key, value)
10636
      for key, value in self.__dict__.iteritems()]
10637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10638
 
10639
  def __eq__(self, other):
10640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10641
 
10642
  def __ne__(self, other):
10643
    return not (self == other)
10644
 
10645
class getLatestArrivalsCatalogIds_result:
10646
  """
10647
  Attributes:
10648
   - success
10649
   - cex
10650
  """
10651
 
10652
  thrift_spec = (
10653
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10654
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10655
  )
10656
 
10657
  def __init__(self, success=None, cex=None,):
10658
    self.success = success
10659
    self.cex = cex
10660
 
10661
  def read(self, iprot):
10662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10664
      return
10665
    iprot.readStructBegin()
10666
    while True:
10667
      (fname, ftype, fid) = iprot.readFieldBegin()
10668
      if ftype == TType.STOP:
10669
        break
10670
      if fid == 0:
10671
        if ftype == TType.LIST:
10672
          self.success = []
8590 kshitij.so 10673
          (_etype147, _size144) = iprot.readListBegin()
10674
          for _i148 in xrange(_size144):
10675
            _elem149 = iprot.readI64();
10676
            self.success.append(_elem149)
5944 mandeep.dh 10677
          iprot.readListEnd()
10678
        else:
10679
          iprot.skip(ftype)
10680
      elif fid == 1:
10681
        if ftype == TType.STRUCT:
10682
          self.cex = CatalogServiceException()
10683
          self.cex.read(iprot)
10684
        else:
10685
          iprot.skip(ftype)
10686
      else:
10687
        iprot.skip(ftype)
10688
      iprot.readFieldEnd()
10689
    iprot.readStructEnd()
10690
 
10691
  def write(self, oprot):
10692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10694
      return
10695
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
10696
    if self.success is not None:
10697
      oprot.writeFieldBegin('success', TType.LIST, 0)
10698
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 10699
      for iter150 in self.success:
10700
        oprot.writeI64(iter150)
5944 mandeep.dh 10701
      oprot.writeListEnd()
10702
      oprot.writeFieldEnd()
10703
    if self.cex is not None:
10704
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10705
      self.cex.write(oprot)
10706
      oprot.writeFieldEnd()
10707
    oprot.writeFieldStop()
10708
    oprot.writeStructEnd()
10709
 
10710
  def validate(self):
10711
    return
10712
 
10713
 
10714
  def __repr__(self):
10715
    L = ['%s=%r' % (key, value)
10716
      for key, value in self.__dict__.iteritems()]
10717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10718
 
10719
  def __eq__(self, other):
10720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10721
 
10722
  def __ne__(self, other):
10723
    return not (self == other)
10724
 
10725
class getLatestArrivalsCount_args:
10726
 
10727
  thrift_spec = (
10728
  )
10729
 
10730
  def read(self, iprot):
10731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10733
      return
10734
    iprot.readStructBegin()
10735
    while True:
10736
      (fname, ftype, fid) = iprot.readFieldBegin()
10737
      if ftype == TType.STOP:
10738
        break
10739
      else:
10740
        iprot.skip(ftype)
10741
      iprot.readFieldEnd()
10742
    iprot.readStructEnd()
10743
 
10744
  def write(self, oprot):
10745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10747
      return
10748
    oprot.writeStructBegin('getLatestArrivalsCount_args')
10749
    oprot.writeFieldStop()
10750
    oprot.writeStructEnd()
10751
 
10752
  def validate(self):
10753
    return
10754
 
10755
 
10756
  def __repr__(self):
10757
    L = ['%s=%r' % (key, value)
10758
      for key, value in self.__dict__.iteritems()]
10759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10760
 
10761
  def __eq__(self, other):
10762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10763
 
10764
  def __ne__(self, other):
10765
    return not (self == other)
10766
 
10767
class getLatestArrivalsCount_result:
10768
  """
10769
  Attributes:
10770
   - success
10771
   - cex
10772
  """
10773
 
10774
  thrift_spec = (
10775
    (0, TType.I64, 'success', None, None, ), # 0
10776
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10777
  )
10778
 
10779
  def __init__(self, success=None, cex=None,):
10780
    self.success = success
10781
    self.cex = cex
10782
 
10783
  def read(self, iprot):
10784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10786
      return
10787
    iprot.readStructBegin()
10788
    while True:
10789
      (fname, ftype, fid) = iprot.readFieldBegin()
10790
      if ftype == TType.STOP:
10791
        break
10792
      if fid == 0:
10793
        if ftype == TType.I64:
10794
          self.success = iprot.readI64();
10795
        else:
10796
          iprot.skip(ftype)
10797
      elif fid == 1:
10798
        if ftype == TType.STRUCT:
10799
          self.cex = CatalogServiceException()
10800
          self.cex.read(iprot)
10801
        else:
10802
          iprot.skip(ftype)
10803
      else:
10804
        iprot.skip(ftype)
10805
      iprot.readFieldEnd()
10806
    iprot.readStructEnd()
10807
 
10808
  def write(self, oprot):
10809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10811
      return
10812
    oprot.writeStructBegin('getLatestArrivalsCount_result')
10813
    if self.success is not None:
10814
      oprot.writeFieldBegin('success', TType.I64, 0)
10815
      oprot.writeI64(self.success)
10816
      oprot.writeFieldEnd()
10817
    if self.cex is not None:
10818
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10819
      self.cex.write(oprot)
10820
      oprot.writeFieldEnd()
10821
    oprot.writeFieldStop()
10822
    oprot.writeStructEnd()
10823
 
10824
  def validate(self):
10825
    return
10826
 
10827
 
10828
  def __repr__(self):
10829
    L = ['%s=%r' % (key, value)
10830
      for key, value in self.__dict__.iteritems()]
10831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10832
 
10833
  def __eq__(self, other):
10834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10835
 
10836
  def __ne__(self, other):
10837
    return not (self == other)
10838
 
10839
class generateNewEntityID_args:
10840
 
10841
  thrift_spec = (
10842
  )
10843
 
10844
  def read(self, iprot):
10845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10847
      return
10848
    iprot.readStructBegin()
10849
    while True:
10850
      (fname, ftype, fid) = iprot.readFieldBegin()
10851
      if ftype == TType.STOP:
10852
        break
10853
      else:
10854
        iprot.skip(ftype)
10855
      iprot.readFieldEnd()
10856
    iprot.readStructEnd()
10857
 
10858
  def write(self, oprot):
10859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10861
      return
10862
    oprot.writeStructBegin('generateNewEntityID_args')
10863
    oprot.writeFieldStop()
10864
    oprot.writeStructEnd()
10865
 
10866
  def validate(self):
10867
    return
10868
 
10869
 
10870
  def __repr__(self):
10871
    L = ['%s=%r' % (key, value)
10872
      for key, value in self.__dict__.iteritems()]
10873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10874
 
10875
  def __eq__(self, other):
10876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10877
 
10878
  def __ne__(self, other):
10879
    return not (self == other)
10880
 
10881
class generateNewEntityID_result:
10882
  """
10883
  Attributes:
10884
   - success
10885
  """
10886
 
10887
  thrift_spec = (
10888
    (0, TType.I64, 'success', None, None, ), # 0
10889
  )
10890
 
10891
  def __init__(self, success=None,):
10892
    self.success = success
10893
 
10894
  def read(self, iprot):
10895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10897
      return
10898
    iprot.readStructBegin()
10899
    while True:
10900
      (fname, ftype, fid) = iprot.readFieldBegin()
10901
      if ftype == TType.STOP:
10902
        break
10903
      if fid == 0:
10904
        if ftype == TType.I64:
10905
          self.success = iprot.readI64();
10906
        else:
10907
          iprot.skip(ftype)
10908
      else:
10909
        iprot.skip(ftype)
10910
      iprot.readFieldEnd()
10911
    iprot.readStructEnd()
10912
 
10913
  def write(self, oprot):
10914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10916
      return
10917
    oprot.writeStructBegin('generateNewEntityID_result')
10918
    if self.success is not None:
10919
      oprot.writeFieldBegin('success', TType.I64, 0)
10920
      oprot.writeI64(self.success)
10921
      oprot.writeFieldEnd()
10922
    oprot.writeFieldStop()
10923
    oprot.writeStructEnd()
10924
 
10925
  def validate(self):
10926
    return
10927
 
10928
 
10929
  def __repr__(self):
10930
    L = ['%s=%r' % (key, value)
10931
      for key, value in self.__dict__.iteritems()]
10932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10933
 
10934
  def __eq__(self, other):
10935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10936
 
10937
  def __ne__(self, other):
10938
    return not (self == other)
10939
 
10940
class addCategory_args:
10941
  """
10942
  Attributes:
10943
   - category
10944
  """
10945
 
10946
  thrift_spec = (
10947
    None, # 0
10948
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
10949
  )
10950
 
10951
  def __init__(self, category=None,):
10952
    self.category = category
10953
 
10954
  def read(self, iprot):
10955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10957
      return
10958
    iprot.readStructBegin()
10959
    while True:
10960
      (fname, ftype, fid) = iprot.readFieldBegin()
10961
      if ftype == TType.STOP:
10962
        break
10963
      if fid == 1:
10964
        if ftype == TType.STRUCT:
10965
          self.category = Category()
10966
          self.category.read(iprot)
10967
        else:
10968
          iprot.skip(ftype)
10969
      else:
10970
        iprot.skip(ftype)
10971
      iprot.readFieldEnd()
10972
    iprot.readStructEnd()
10973
 
10974
  def write(self, oprot):
10975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10977
      return
10978
    oprot.writeStructBegin('addCategory_args')
10979
    if self.category is not None:
10980
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
10981
      self.category.write(oprot)
10982
      oprot.writeFieldEnd()
10983
    oprot.writeFieldStop()
10984
    oprot.writeStructEnd()
10985
 
10986
  def validate(self):
10987
    return
10988
 
10989
 
10990
  def __repr__(self):
10991
    L = ['%s=%r' % (key, value)
10992
      for key, value in self.__dict__.iteritems()]
10993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10994
 
10995
  def __eq__(self, other):
10996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10997
 
10998
  def __ne__(self, other):
10999
    return not (self == other)
11000
 
11001
class addCategory_result:
11002
  """
11003
  Attributes:
11004
   - success
11005
  """
11006
 
11007
  thrift_spec = (
11008
    (0, TType.BOOL, 'success', None, None, ), # 0
11009
  )
11010
 
11011
  def __init__(self, success=None,):
11012
    self.success = success
11013
 
11014
  def read(self, iprot):
11015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11017
      return
11018
    iprot.readStructBegin()
11019
    while True:
11020
      (fname, ftype, fid) = iprot.readFieldBegin()
11021
      if ftype == TType.STOP:
11022
        break
11023
      if fid == 0:
11024
        if ftype == TType.BOOL:
11025
          self.success = iprot.readBool();
11026
        else:
11027
          iprot.skip(ftype)
11028
      else:
11029
        iprot.skip(ftype)
11030
      iprot.readFieldEnd()
11031
    iprot.readStructEnd()
11032
 
11033
  def write(self, oprot):
11034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11036
      return
11037
    oprot.writeStructBegin('addCategory_result')
11038
    if self.success is not None:
11039
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11040
      oprot.writeBool(self.success)
11041
      oprot.writeFieldEnd()
11042
    oprot.writeFieldStop()
11043
    oprot.writeStructEnd()
11044
 
11045
  def validate(self):
11046
    return
11047
 
11048
 
11049
  def __repr__(self):
11050
    L = ['%s=%r' % (key, value)
11051
      for key, value in self.__dict__.iteritems()]
11052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11053
 
11054
  def __eq__(self, other):
11055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11056
 
11057
  def __ne__(self, other):
11058
    return not (self == other)
11059
 
11060
class getCategory_args:
11061
  """
11062
  Attributes:
11063
   - id
11064
  """
11065
 
11066
  thrift_spec = (
11067
    None, # 0
11068
    (1, TType.I64, 'id', None, None, ), # 1
11069
  )
11070
 
11071
  def __init__(self, id=None,):
11072
    self.id = id
11073
 
11074
  def read(self, iprot):
11075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11077
      return
11078
    iprot.readStructBegin()
11079
    while True:
11080
      (fname, ftype, fid) = iprot.readFieldBegin()
11081
      if ftype == TType.STOP:
11082
        break
11083
      if fid == 1:
11084
        if ftype == TType.I64:
11085
          self.id = iprot.readI64();
11086
        else:
11087
          iprot.skip(ftype)
11088
      else:
11089
        iprot.skip(ftype)
11090
      iprot.readFieldEnd()
11091
    iprot.readStructEnd()
11092
 
11093
  def write(self, oprot):
11094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11096
      return
11097
    oprot.writeStructBegin('getCategory_args')
11098
    if self.id is not None:
11099
      oprot.writeFieldBegin('id', TType.I64, 1)
11100
      oprot.writeI64(self.id)
11101
      oprot.writeFieldEnd()
11102
    oprot.writeFieldStop()
11103
    oprot.writeStructEnd()
11104
 
11105
  def validate(self):
11106
    return
11107
 
11108
 
11109
  def __repr__(self):
11110
    L = ['%s=%r' % (key, value)
11111
      for key, value in self.__dict__.iteritems()]
11112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11113
 
11114
  def __eq__(self, other):
11115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11116
 
11117
  def __ne__(self, other):
11118
    return not (self == other)
11119
 
11120
class getCategory_result:
11121
  """
11122
  Attributes:
11123
   - success
11124
  """
11125
 
11126
  thrift_spec = (
11127
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
11128
  )
11129
 
11130
  def __init__(self, success=None,):
11131
    self.success = success
11132
 
11133
  def read(self, iprot):
11134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11136
      return
11137
    iprot.readStructBegin()
11138
    while True:
11139
      (fname, ftype, fid) = iprot.readFieldBegin()
11140
      if ftype == TType.STOP:
11141
        break
11142
      if fid == 0:
11143
        if ftype == TType.STRUCT:
11144
          self.success = Category()
11145
          self.success.read(iprot)
11146
        else:
11147
          iprot.skip(ftype)
11148
      else:
11149
        iprot.skip(ftype)
11150
      iprot.readFieldEnd()
11151
    iprot.readStructEnd()
11152
 
11153
  def write(self, oprot):
11154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11156
      return
11157
    oprot.writeStructBegin('getCategory_result')
11158
    if self.success is not None:
11159
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11160
      self.success.write(oprot)
11161
      oprot.writeFieldEnd()
11162
    oprot.writeFieldStop()
11163
    oprot.writeStructEnd()
11164
 
11165
  def validate(self):
11166
    return
11167
 
11168
 
11169
  def __repr__(self):
11170
    L = ['%s=%r' % (key, value)
11171
      for key, value in self.__dict__.iteritems()]
11172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11173
 
11174
  def __eq__(self, other):
11175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11176
 
11177
  def __ne__(self, other):
11178
    return not (self == other)
11179
 
11180
class getAllCategories_args:
11181
 
11182
  thrift_spec = (
11183
  )
11184
 
11185
  def read(self, iprot):
11186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11188
      return
11189
    iprot.readStructBegin()
11190
    while True:
11191
      (fname, ftype, fid) = iprot.readFieldBegin()
11192
      if ftype == TType.STOP:
11193
        break
11194
      else:
11195
        iprot.skip(ftype)
11196
      iprot.readFieldEnd()
11197
    iprot.readStructEnd()
11198
 
11199
  def write(self, oprot):
11200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11202
      return
11203
    oprot.writeStructBegin('getAllCategories_args')
11204
    oprot.writeFieldStop()
11205
    oprot.writeStructEnd()
11206
 
11207
  def validate(self):
11208
    return
11209
 
11210
 
11211
  def __repr__(self):
11212
    L = ['%s=%r' % (key, value)
11213
      for key, value in self.__dict__.iteritems()]
11214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11215
 
11216
  def __eq__(self, other):
11217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11218
 
11219
  def __ne__(self, other):
11220
    return not (self == other)
11221
 
11222
class getAllCategories_result:
11223
  """
11224
  Attributes:
11225
   - success
11226
  """
11227
 
11228
  thrift_spec = (
11229
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
11230
  )
11231
 
11232
  def __init__(self, success=None,):
11233
    self.success = success
11234
 
11235
  def read(self, iprot):
11236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11238
      return
11239
    iprot.readStructBegin()
11240
    while True:
11241
      (fname, ftype, fid) = iprot.readFieldBegin()
11242
      if ftype == TType.STOP:
11243
        break
11244
      if fid == 0:
11245
        if ftype == TType.LIST:
11246
          self.success = []
8590 kshitij.so 11247
          (_etype154, _size151) = iprot.readListBegin()
11248
          for _i155 in xrange(_size151):
11249
            _elem156 = Category()
11250
            _elem156.read(iprot)
11251
            self.success.append(_elem156)
5944 mandeep.dh 11252
          iprot.readListEnd()
11253
        else:
11254
          iprot.skip(ftype)
11255
      else:
11256
        iprot.skip(ftype)
11257
      iprot.readFieldEnd()
11258
    iprot.readStructEnd()
11259
 
11260
  def write(self, oprot):
11261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11263
      return
11264
    oprot.writeStructBegin('getAllCategories_result')
11265
    if self.success is not None:
11266
      oprot.writeFieldBegin('success', TType.LIST, 0)
11267
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11268
      for iter157 in self.success:
11269
        iter157.write(oprot)
5944 mandeep.dh 11270
      oprot.writeListEnd()
11271
      oprot.writeFieldEnd()
11272
    oprot.writeFieldStop()
11273
    oprot.writeStructEnd()
11274
 
11275
  def validate(self):
11276
    return
11277
 
11278
 
11279
  def __repr__(self):
11280
    L = ['%s=%r' % (key, value)
11281
      for key, value in self.__dict__.iteritems()]
11282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11283
 
11284
  def __eq__(self, other):
11285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11286
 
11287
  def __ne__(self, other):
11288
    return not (self == other)
11289
 
11290
class getAllSimilarItems_args:
11291
  """
11292
  Attributes:
11293
   - itemId
11294
  """
11295
 
11296
  thrift_spec = (
11297
    None, # 0
11298
    (1, TType.I64, 'itemId', None, None, ), # 1
11299
  )
11300
 
11301
  def __init__(self, itemId=None,):
11302
    self.itemId = itemId
11303
 
11304
  def read(self, iprot):
11305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11307
      return
11308
    iprot.readStructBegin()
11309
    while True:
11310
      (fname, ftype, fid) = iprot.readFieldBegin()
11311
      if ftype == TType.STOP:
11312
        break
11313
      if fid == 1:
11314
        if ftype == TType.I64:
11315
          self.itemId = iprot.readI64();
11316
        else:
11317
          iprot.skip(ftype)
11318
      else:
11319
        iprot.skip(ftype)
11320
      iprot.readFieldEnd()
11321
    iprot.readStructEnd()
11322
 
11323
  def write(self, oprot):
11324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11326
      return
11327
    oprot.writeStructBegin('getAllSimilarItems_args')
11328
    if self.itemId is not None:
11329
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11330
      oprot.writeI64(self.itemId)
11331
      oprot.writeFieldEnd()
11332
    oprot.writeFieldStop()
11333
    oprot.writeStructEnd()
11334
 
11335
  def validate(self):
11336
    return
11337
 
11338
 
11339
  def __repr__(self):
11340
    L = ['%s=%r' % (key, value)
11341
      for key, value in self.__dict__.iteritems()]
11342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11343
 
11344
  def __eq__(self, other):
11345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11346
 
11347
  def __ne__(self, other):
11348
    return not (self == other)
11349
 
11350
class getAllSimilarItems_result:
11351
  """
11352
  Attributes:
11353
   - success
11354
  """
11355
 
11356
  thrift_spec = (
11357
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11358
  )
11359
 
11360
  def __init__(self, success=None,):
11361
    self.success = success
11362
 
11363
  def read(self, iprot):
11364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11366
      return
11367
    iprot.readStructBegin()
11368
    while True:
11369
      (fname, ftype, fid) = iprot.readFieldBegin()
11370
      if ftype == TType.STOP:
11371
        break
11372
      if fid == 0:
11373
        if ftype == TType.LIST:
11374
          self.success = []
8590 kshitij.so 11375
          (_etype161, _size158) = iprot.readListBegin()
11376
          for _i162 in xrange(_size158):
11377
            _elem163 = Item()
11378
            _elem163.read(iprot)
11379
            self.success.append(_elem163)
5944 mandeep.dh 11380
          iprot.readListEnd()
11381
        else:
11382
          iprot.skip(ftype)
11383
      else:
11384
        iprot.skip(ftype)
11385
      iprot.readFieldEnd()
11386
    iprot.readStructEnd()
11387
 
11388
  def write(self, oprot):
11389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11391
      return
11392
    oprot.writeStructBegin('getAllSimilarItems_result')
11393
    if self.success is not None:
11394
      oprot.writeFieldBegin('success', TType.LIST, 0)
11395
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 11396
      for iter164 in self.success:
11397
        iter164.write(oprot)
5944 mandeep.dh 11398
      oprot.writeListEnd()
11399
      oprot.writeFieldEnd()
11400
    oprot.writeFieldStop()
11401
    oprot.writeStructEnd()
11402
 
11403
  def validate(self):
11404
    return
11405
 
11406
 
11407
  def __repr__(self):
11408
    L = ['%s=%r' % (key, value)
11409
      for key, value in self.__dict__.iteritems()]
11410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11411
 
11412
  def __eq__(self, other):
11413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11414
 
11415
  def __ne__(self, other):
11416
    return not (self == other)
11417
 
11418
class addSimilarItem_args:
11419
  """
11420
  Attributes:
11421
   - itemId
11422
   - catalogItemId
11423
  """
11424
 
11425
  thrift_spec = (
11426
    None, # 0
11427
    (1, TType.I64, 'itemId', None, None, ), # 1
11428
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
11429
  )
11430
 
11431
  def __init__(self, itemId=None, catalogItemId=None,):
11432
    self.itemId = itemId
11433
    self.catalogItemId = catalogItemId
11434
 
11435
  def read(self, iprot):
11436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11438
      return
11439
    iprot.readStructBegin()
11440
    while True:
11441
      (fname, ftype, fid) = iprot.readFieldBegin()
11442
      if ftype == TType.STOP:
11443
        break
11444
      if fid == 1:
11445
        if ftype == TType.I64:
11446
          self.itemId = iprot.readI64();
11447
        else:
11448
          iprot.skip(ftype)
11449
      elif fid == 2:
11450
        if ftype == TType.I64:
11451
          self.catalogItemId = iprot.readI64();
11452
        else:
11453
          iprot.skip(ftype)
11454
      else:
11455
        iprot.skip(ftype)
11456
      iprot.readFieldEnd()
11457
    iprot.readStructEnd()
11458
 
11459
  def write(self, oprot):
11460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11462
      return
11463
    oprot.writeStructBegin('addSimilarItem_args')
11464
    if self.itemId is not None:
11465
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11466
      oprot.writeI64(self.itemId)
11467
      oprot.writeFieldEnd()
11468
    if self.catalogItemId is not None:
11469
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11470
      oprot.writeI64(self.catalogItemId)
11471
      oprot.writeFieldEnd()
11472
    oprot.writeFieldStop()
11473
    oprot.writeStructEnd()
11474
 
11475
  def validate(self):
11476
    return
11477
 
11478
 
11479
  def __repr__(self):
11480
    L = ['%s=%r' % (key, value)
11481
      for key, value in self.__dict__.iteritems()]
11482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11483
 
11484
  def __eq__(self, other):
11485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11486
 
11487
  def __ne__(self, other):
11488
    return not (self == other)
11489
 
11490
class addSimilarItem_result:
11491
  """
11492
  Attributes:
11493
   - success
11494
   - cex
11495
  """
11496
 
11497
  thrift_spec = (
11498
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11499
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11500
  )
11501
 
11502
  def __init__(self, success=None, cex=None,):
11503
    self.success = success
11504
    self.cex = cex
11505
 
11506
  def read(self, iprot):
11507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11509
      return
11510
    iprot.readStructBegin()
11511
    while True:
11512
      (fname, ftype, fid) = iprot.readFieldBegin()
11513
      if ftype == TType.STOP:
11514
        break
11515
      if fid == 0:
11516
        if ftype == TType.STRUCT:
11517
          self.success = Item()
11518
          self.success.read(iprot)
11519
        else:
11520
          iprot.skip(ftype)
11521
      elif fid == 1:
11522
        if ftype == TType.STRUCT:
11523
          self.cex = CatalogServiceException()
11524
          self.cex.read(iprot)
11525
        else:
11526
          iprot.skip(ftype)
11527
      else:
11528
        iprot.skip(ftype)
11529
      iprot.readFieldEnd()
11530
    iprot.readStructEnd()
11531
 
11532
  def write(self, oprot):
11533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11535
      return
11536
    oprot.writeStructBegin('addSimilarItem_result')
11537
    if self.success is not None:
11538
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11539
      self.success.write(oprot)
11540
      oprot.writeFieldEnd()
11541
    if self.cex is not None:
11542
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11543
      self.cex.write(oprot)
11544
      oprot.writeFieldEnd()
11545
    oprot.writeFieldStop()
11546
    oprot.writeStructEnd()
11547
 
11548
  def validate(self):
11549
    return
11550
 
11551
 
11552
  def __repr__(self):
11553
    L = ['%s=%r' % (key, value)
11554
      for key, value in self.__dict__.iteritems()]
11555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11556
 
11557
  def __eq__(self, other):
11558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11559
 
11560
  def __ne__(self, other):
11561
    return not (self == other)
11562
 
6512 kshitij.so 11563
class addTag_args:
11564
  """
11565
  Attributes:
11566
   - displayName
11567
   - itemId
11568
  """
11569
 
11570
  thrift_spec = (
11571
    None, # 0
11572
    (1, TType.STRING, 'displayName', None, None, ), # 1
11573
    (2, TType.I64, 'itemId', None, None, ), # 2
11574
  )
11575
 
11576
  def __init__(self, displayName=None, itemId=None,):
11577
    self.displayName = displayName
11578
    self.itemId = itemId
11579
 
11580
  def read(self, iprot):
11581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11583
      return
11584
    iprot.readStructBegin()
11585
    while True:
11586
      (fname, ftype, fid) = iprot.readFieldBegin()
11587
      if ftype == TType.STOP:
11588
        break
11589
      if fid == 1:
11590
        if ftype == TType.STRING:
11591
          self.displayName = iprot.readString();
11592
        else:
11593
          iprot.skip(ftype)
11594
      elif fid == 2:
11595
        if ftype == TType.I64:
11596
          self.itemId = iprot.readI64();
11597
        else:
11598
          iprot.skip(ftype)
11599
      else:
11600
        iprot.skip(ftype)
11601
      iprot.readFieldEnd()
11602
    iprot.readStructEnd()
11603
 
11604
  def write(self, oprot):
11605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11607
      return
11608
    oprot.writeStructBegin('addTag_args')
11609
    if self.displayName is not None:
11610
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
11611
      oprot.writeString(self.displayName)
11612
      oprot.writeFieldEnd()
11613
    if self.itemId is not None:
11614
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11615
      oprot.writeI64(self.itemId)
11616
      oprot.writeFieldEnd()
11617
    oprot.writeFieldStop()
11618
    oprot.writeStructEnd()
11619
 
11620
  def validate(self):
11621
    return
11622
 
11623
 
11624
  def __repr__(self):
11625
    L = ['%s=%r' % (key, value)
11626
      for key, value in self.__dict__.iteritems()]
11627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11628
 
11629
  def __eq__(self, other):
11630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11631
 
11632
  def __ne__(self, other):
11633
    return not (self == other)
11634
 
11635
class addTag_result:
11636
  """
11637
  Attributes:
11638
   - success
11639
  """
11640
 
11641
  thrift_spec = (
11642
    (0, TType.BOOL, 'success', None, None, ), # 0
11643
  )
11644
 
11645
  def __init__(self, success=None,):
11646
    self.success = success
11647
 
11648
  def read(self, iprot):
11649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11651
      return
11652
    iprot.readStructBegin()
11653
    while True:
11654
      (fname, ftype, fid) = iprot.readFieldBegin()
11655
      if ftype == TType.STOP:
11656
        break
11657
      if fid == 0:
11658
        if ftype == TType.BOOL:
11659
          self.success = iprot.readBool();
11660
        else:
11661
          iprot.skip(ftype)
11662
      else:
11663
        iprot.skip(ftype)
11664
      iprot.readFieldEnd()
11665
    iprot.readStructEnd()
11666
 
11667
  def write(self, oprot):
11668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11670
      return
11671
    oprot.writeStructBegin('addTag_result')
11672
    if self.success is not None:
11673
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11674
      oprot.writeBool(self.success)
11675
      oprot.writeFieldEnd()
11676
    oprot.writeFieldStop()
11677
    oprot.writeStructEnd()
11678
 
11679
  def validate(self):
11680
    return
11681
 
11682
 
11683
  def __repr__(self):
11684
    L = ['%s=%r' % (key, value)
11685
      for key, value in self.__dict__.iteritems()]
11686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11687
 
11688
  def __eq__(self, other):
11689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11690
 
11691
  def __ne__(self, other):
11692
    return not (self == other)
11693
 
11694
class deleteEntityTag_args:
11695
  """
11696
  Attributes:
11697
   - displayName
11698
   - itemId
11699
  """
11700
 
11701
  thrift_spec = (
11702
    None, # 0
11703
    (1, TType.STRING, 'displayName', None, None, ), # 1
11704
    (2, TType.I64, 'itemId', None, None, ), # 2
11705
  )
11706
 
11707
  def __init__(self, displayName=None, itemId=None,):
11708
    self.displayName = displayName
11709
    self.itemId = itemId
11710
 
11711
  def read(self, iprot):
11712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11714
      return
11715
    iprot.readStructBegin()
11716
    while True:
11717
      (fname, ftype, fid) = iprot.readFieldBegin()
11718
      if ftype == TType.STOP:
11719
        break
11720
      if fid == 1:
11721
        if ftype == TType.STRING:
11722
          self.displayName = iprot.readString();
11723
        else:
11724
          iprot.skip(ftype)
11725
      elif fid == 2:
11726
        if ftype == TType.I64:
11727
          self.itemId = iprot.readI64();
11728
        else:
11729
          iprot.skip(ftype)
11730
      else:
11731
        iprot.skip(ftype)
11732
      iprot.readFieldEnd()
11733
    iprot.readStructEnd()
11734
 
11735
  def write(self, oprot):
11736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11738
      return
11739
    oprot.writeStructBegin('deleteEntityTag_args')
11740
    if self.displayName is not None:
11741
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
11742
      oprot.writeString(self.displayName)
11743
      oprot.writeFieldEnd()
11744
    if self.itemId is not None:
11745
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11746
      oprot.writeI64(self.itemId)
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 deleteEntityTag_result:
11767
  """
11768
  Attributes:
11769
   - success
11770
  """
11771
 
11772
  thrift_spec = (
11773
    (0, TType.BOOL, 'success', None, None, ), # 0
11774
  )
11775
 
11776
  def __init__(self, success=None,):
11777
    self.success = success
11778
 
11779
  def read(self, iprot):
11780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11782
      return
11783
    iprot.readStructBegin()
11784
    while True:
11785
      (fname, ftype, fid) = iprot.readFieldBegin()
11786
      if ftype == TType.STOP:
11787
        break
11788
      if fid == 0:
11789
        if ftype == TType.BOOL:
11790
          self.success = iprot.readBool();
11791
        else:
11792
          iprot.skip(ftype)
11793
      else:
11794
        iprot.skip(ftype)
11795
      iprot.readFieldEnd()
11796
    iprot.readStructEnd()
11797
 
11798
  def write(self, oprot):
11799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11801
      return
11802
    oprot.writeStructBegin('deleteEntityTag_result')
11803
    if self.success is not None:
11804
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11805
      oprot.writeBool(self.success)
11806
      oprot.writeFieldEnd()
11807
    oprot.writeFieldStop()
11808
    oprot.writeStructEnd()
11809
 
11810
  def validate(self):
11811
    return
11812
 
11813
 
11814
  def __repr__(self):
11815
    L = ['%s=%r' % (key, value)
11816
      for key, value in self.__dict__.iteritems()]
11817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11818
 
11819
  def __eq__(self, other):
11820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11821
 
11822
  def __ne__(self, other):
11823
    return not (self == other)
11824
 
11825
class deleteTag_args:
11826
  """
11827
  Attributes:
11828
   - displayName
11829
  """
11830
 
11831
  thrift_spec = (
11832
    None, # 0
11833
    (1, TType.STRING, 'displayName', None, None, ), # 1
11834
  )
11835
 
11836
  def __init__(self, displayName=None,):
11837
    self.displayName = displayName
11838
 
11839
  def read(self, iprot):
11840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11842
      return
11843
    iprot.readStructBegin()
11844
    while True:
11845
      (fname, ftype, fid) = iprot.readFieldBegin()
11846
      if ftype == TType.STOP:
11847
        break
11848
      if fid == 1:
11849
        if ftype == TType.STRING:
11850
          self.displayName = iprot.readString();
11851
        else:
11852
          iprot.skip(ftype)
11853
      else:
11854
        iprot.skip(ftype)
11855
      iprot.readFieldEnd()
11856
    iprot.readStructEnd()
11857
 
11858
  def write(self, oprot):
11859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11861
      return
11862
    oprot.writeStructBegin('deleteTag_args')
11863
    if self.displayName is not None:
11864
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
11865
      oprot.writeString(self.displayName)
11866
      oprot.writeFieldEnd()
11867
    oprot.writeFieldStop()
11868
    oprot.writeStructEnd()
11869
 
11870
  def validate(self):
11871
    return
11872
 
11873
 
11874
  def __repr__(self):
11875
    L = ['%s=%r' % (key, value)
11876
      for key, value in self.__dict__.iteritems()]
11877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11878
 
11879
  def __eq__(self, other):
11880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11881
 
11882
  def __ne__(self, other):
11883
    return not (self == other)
11884
 
11885
class deleteTag_result:
11886
  """
11887
  Attributes:
11888
   - success
11889
  """
11890
 
11891
  thrift_spec = (
11892
    (0, TType.BOOL, 'success', None, None, ), # 0
11893
  )
11894
 
11895
  def __init__(self, success=None,):
11896
    self.success = success
11897
 
11898
  def read(self, iprot):
11899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11901
      return
11902
    iprot.readStructBegin()
11903
    while True:
11904
      (fname, ftype, fid) = iprot.readFieldBegin()
11905
      if ftype == TType.STOP:
11906
        break
11907
      if fid == 0:
11908
        if ftype == TType.BOOL:
11909
          self.success = iprot.readBool();
11910
        else:
11911
          iprot.skip(ftype)
11912
      else:
11913
        iprot.skip(ftype)
11914
      iprot.readFieldEnd()
11915
    iprot.readStructEnd()
11916
 
11917
  def write(self, oprot):
11918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11920
      return
11921
    oprot.writeStructBegin('deleteTag_result')
11922
    if self.success is not None:
11923
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11924
      oprot.writeBool(self.success)
11925
      oprot.writeFieldEnd()
11926
    oprot.writeFieldStop()
11927
    oprot.writeStructEnd()
11928
 
11929
  def validate(self):
11930
    return
11931
 
11932
 
11933
  def __repr__(self):
11934
    L = ['%s=%r' % (key, value)
11935
      for key, value in self.__dict__.iteritems()]
11936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11937
 
11938
  def __eq__(self, other):
11939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11940
 
11941
  def __ne__(self, other):
11942
    return not (self == other)
11943
 
11944
class getAllTags_args:
11945
 
11946
  thrift_spec = (
11947
  )
11948
 
11949
  def read(self, iprot):
11950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11952
      return
11953
    iprot.readStructBegin()
11954
    while True:
11955
      (fname, ftype, fid) = iprot.readFieldBegin()
11956
      if ftype == TType.STOP:
11957
        break
11958
      else:
11959
        iprot.skip(ftype)
11960
      iprot.readFieldEnd()
11961
    iprot.readStructEnd()
11962
 
11963
  def write(self, oprot):
11964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11966
      return
11967
    oprot.writeStructBegin('getAllTags_args')
11968
    oprot.writeFieldStop()
11969
    oprot.writeStructEnd()
11970
 
11971
  def validate(self):
11972
    return
11973
 
11974
 
11975
  def __repr__(self):
11976
    L = ['%s=%r' % (key, value)
11977
      for key, value in self.__dict__.iteritems()]
11978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11979
 
11980
  def __eq__(self, other):
11981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11982
 
11983
  def __ne__(self, other):
11984
    return not (self == other)
11985
 
11986
class getAllTags_result:
11987
  """
11988
  Attributes:
11989
   - success
11990
  """
11991
 
11992
  thrift_spec = (
11993
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
11994
  )
11995
 
11996
  def __init__(self, success=None,):
11997
    self.success = success
11998
 
11999
  def read(self, iprot):
12000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12002
      return
12003
    iprot.readStructBegin()
12004
    while True:
12005
      (fname, ftype, fid) = iprot.readFieldBegin()
12006
      if ftype == TType.STOP:
12007
        break
12008
      if fid == 0:
12009
        if ftype == TType.LIST:
12010
          self.success = []
8590 kshitij.so 12011
          (_etype168, _size165) = iprot.readListBegin()
12012
          for _i169 in xrange(_size165):
12013
            _elem170 = iprot.readString();
12014
            self.success.append(_elem170)
6512 kshitij.so 12015
          iprot.readListEnd()
12016
        else:
12017
          iprot.skip(ftype)
12018
      else:
12019
        iprot.skip(ftype)
12020
      iprot.readFieldEnd()
12021
    iprot.readStructEnd()
12022
 
12023
  def write(self, oprot):
12024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12026
      return
12027
    oprot.writeStructBegin('getAllTags_result')
12028
    if self.success is not None:
12029
      oprot.writeFieldBegin('success', TType.LIST, 0)
12030
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 12031
      for iter171 in self.success:
12032
        oprot.writeString(iter171)
6512 kshitij.so 12033
      oprot.writeListEnd()
12034
      oprot.writeFieldEnd()
12035
    oprot.writeFieldStop()
12036
    oprot.writeStructEnd()
12037
 
12038
  def validate(self):
12039
    return
12040
 
12041
 
12042
  def __repr__(self):
12043
    L = ['%s=%r' % (key, value)
12044
      for key, value in self.__dict__.iteritems()]
12045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12046
 
12047
  def __eq__(self, other):
12048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12049
 
12050
  def __ne__(self, other):
12051
    return not (self == other)
12052
 
12053
class getAllEntitiesByTagName_args:
12054
  """
12055
  Attributes:
12056
   - displayName
12057
  """
12058
 
12059
  thrift_spec = (
12060
    None, # 0
12061
    (1, TType.STRING, 'displayName', None, None, ), # 1
12062
  )
12063
 
12064
  def __init__(self, displayName=None,):
12065
    self.displayName = displayName
12066
 
12067
  def read(self, iprot):
12068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12070
      return
12071
    iprot.readStructBegin()
12072
    while True:
12073
      (fname, ftype, fid) = iprot.readFieldBegin()
12074
      if ftype == TType.STOP:
12075
        break
12076
      if fid == 1:
12077
        if ftype == TType.STRING:
12078
          self.displayName = iprot.readString();
12079
        else:
12080
          iprot.skip(ftype)
12081
      else:
12082
        iprot.skip(ftype)
12083
      iprot.readFieldEnd()
12084
    iprot.readStructEnd()
12085
 
12086
  def write(self, oprot):
12087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12089
      return
12090
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
12091
    if self.displayName is not None:
12092
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
12093
      oprot.writeString(self.displayName)
12094
      oprot.writeFieldEnd()
12095
    oprot.writeFieldStop()
12096
    oprot.writeStructEnd()
12097
 
12098
  def validate(self):
12099
    return
12100
 
12101
 
12102
  def __repr__(self):
12103
    L = ['%s=%r' % (key, value)
12104
      for key, value in self.__dict__.iteritems()]
12105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12106
 
12107
  def __eq__(self, other):
12108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12109
 
12110
  def __ne__(self, other):
12111
    return not (self == other)
12112
 
12113
class getAllEntitiesByTagName_result:
12114
  """
12115
  Attributes:
12116
   - success
12117
  """
12118
 
12119
  thrift_spec = (
12120
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12121
  )
12122
 
12123
  def __init__(self, success=None,):
12124
    self.success = success
12125
 
12126
  def read(self, iprot):
12127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12129
      return
12130
    iprot.readStructBegin()
12131
    while True:
12132
      (fname, ftype, fid) = iprot.readFieldBegin()
12133
      if ftype == TType.STOP:
12134
        break
12135
      if fid == 0:
12136
        if ftype == TType.LIST:
12137
          self.success = []
8590 kshitij.so 12138
          (_etype175, _size172) = iprot.readListBegin()
12139
          for _i176 in xrange(_size172):
12140
            _elem177 = iprot.readI64();
12141
            self.success.append(_elem177)
6512 kshitij.so 12142
          iprot.readListEnd()
12143
        else:
12144
          iprot.skip(ftype)
12145
      else:
12146
        iprot.skip(ftype)
12147
      iprot.readFieldEnd()
12148
    iprot.readStructEnd()
12149
 
12150
  def write(self, oprot):
12151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12153
      return
12154
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
12155
    if self.success is not None:
12156
      oprot.writeFieldBegin('success', TType.LIST, 0)
12157
      oprot.writeListBegin(TType.I64, len(self.success))
8590 kshitij.so 12158
      for iter178 in self.success:
12159
        oprot.writeI64(iter178)
6512 kshitij.so 12160
      oprot.writeListEnd()
12161
      oprot.writeFieldEnd()
12162
    oprot.writeFieldStop()
12163
    oprot.writeStructEnd()
12164
 
12165
  def validate(self):
12166
    return
12167
 
12168
 
12169
  def __repr__(self):
12170
    L = ['%s=%r' % (key, value)
12171
      for key, value in self.__dict__.iteritems()]
12172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12173
 
12174
  def __eq__(self, other):
12175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12176
 
12177
  def __ne__(self, other):
12178
    return not (self == other)
12179
 
6845 amit.gupta 12180
class getAllEntityTags_args:
12181
 
12182
  thrift_spec = (
12183
  )
12184
 
12185
  def read(self, iprot):
12186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12188
      return
12189
    iprot.readStructBegin()
12190
    while True:
12191
      (fname, ftype, fid) = iprot.readFieldBegin()
12192
      if ftype == TType.STOP:
12193
        break
12194
      else:
12195
        iprot.skip(ftype)
12196
      iprot.readFieldEnd()
12197
    iprot.readStructEnd()
12198
 
12199
  def write(self, oprot):
12200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12202
      return
12203
    oprot.writeStructBegin('getAllEntityTags_args')
12204
    oprot.writeFieldStop()
12205
    oprot.writeStructEnd()
12206
 
12207
  def validate(self):
12208
    return
12209
 
12210
 
12211
  def __repr__(self):
12212
    L = ['%s=%r' % (key, value)
12213
      for key, value in self.__dict__.iteritems()]
12214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12215
 
12216
  def __eq__(self, other):
12217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12218
 
12219
  def __ne__(self, other):
12220
    return not (self == other)
12221
 
12222
class getAllEntityTags_result:
12223
  """
12224
  Attributes:
12225
   - success
12226
  """
12227
 
12228
  thrift_spec = (
12229
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
12230
  )
12231
 
12232
  def __init__(self, success=None,):
12233
    self.success = success
12234
 
12235
  def read(self, iprot):
12236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12238
      return
12239
    iprot.readStructBegin()
12240
    while True:
12241
      (fname, ftype, fid) = iprot.readFieldBegin()
12242
      if ftype == TType.STOP:
12243
        break
12244
      if fid == 0:
12245
        if ftype == TType.MAP:
12246
          self.success = {}
8590 kshitij.so 12247
          (_ktype180, _vtype181, _size179 ) = iprot.readMapBegin() 
12248
          for _i183 in xrange(_size179):
12249
            _key184 = iprot.readI64();
12250
            _val185 = []
12251
            (_etype189, _size186) = iprot.readListBegin()
12252
            for _i190 in xrange(_size186):
12253
              _elem191 = iprot.readString();
12254
              _val185.append(_elem191)
6845 amit.gupta 12255
            iprot.readListEnd()
8590 kshitij.so 12256
            self.success[_key184] = _val185
6845 amit.gupta 12257
          iprot.readMapEnd()
12258
        else:
12259
          iprot.skip(ftype)
12260
      else:
12261
        iprot.skip(ftype)
12262
      iprot.readFieldEnd()
12263
    iprot.readStructEnd()
12264
 
12265
  def write(self, oprot):
12266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12268
      return
12269
    oprot.writeStructBegin('getAllEntityTags_result')
12270
    if self.success is not None:
12271
      oprot.writeFieldBegin('success', TType.MAP, 0)
12272
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
8590 kshitij.so 12273
      for kiter192,viter193 in self.success.items():
12274
        oprot.writeI64(kiter192)
12275
        oprot.writeListBegin(TType.STRING, len(viter193))
12276
        for iter194 in viter193:
12277
          oprot.writeString(iter194)
6845 amit.gupta 12278
        oprot.writeListEnd()
12279
      oprot.writeMapEnd()
12280
      oprot.writeFieldEnd()
12281
    oprot.writeFieldStop()
12282
    oprot.writeStructEnd()
12283
 
12284
  def validate(self):
12285
    return
12286
 
12287
 
12288
  def __repr__(self):
12289
    L = ['%s=%r' % (key, value)
12290
      for key, value in self.__dict__.iteritems()]
12291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12292
 
12293
  def __eq__(self, other):
12294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12295
 
12296
  def __ne__(self, other):
12297
    return not (self == other)
12298
 
6850 kshitij.so 12299
class addBanner_args:
12300
  """
12301
  Attributes:
8590 kshitij.so 12302
   - bannerCongregate
6850 kshitij.so 12303
  """
12304
 
12305
  thrift_spec = (
12306
    None, # 0
8590 kshitij.so 12307
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 12308
  )
12309
 
8590 kshitij.so 12310
  def __init__(self, bannerCongregate=None,):
12311
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 12312
 
12313
  def read(self, iprot):
12314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12316
      return
12317
    iprot.readStructBegin()
12318
    while True:
12319
      (fname, ftype, fid) = iprot.readFieldBegin()
12320
      if ftype == TType.STOP:
12321
        break
12322
      if fid == 1:
8579 kshitij.so 12323
        if ftype == TType.STRUCT:
8590 kshitij.so 12324
          self.bannerCongregate = BannerCongregate()
12325
          self.bannerCongregate.read(iprot)
6850 kshitij.so 12326
        else:
12327
          iprot.skip(ftype)
8579 kshitij.so 12328
      else:
12329
        iprot.skip(ftype)
12330
      iprot.readFieldEnd()
12331
    iprot.readStructEnd()
12332
 
12333
  def write(self, oprot):
12334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12336
      return
12337
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 12338
    if self.bannerCongregate is not None:
12339
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
12340
      self.bannerCongregate.write(oprot)
8579 kshitij.so 12341
      oprot.writeFieldEnd()
12342
    oprot.writeFieldStop()
12343
    oprot.writeStructEnd()
12344
 
12345
  def validate(self):
12346
    return
12347
 
12348
 
12349
  def __repr__(self):
12350
    L = ['%s=%r' % (key, value)
12351
      for key, value in self.__dict__.iteritems()]
12352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12353
 
12354
  def __eq__(self, other):
12355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12356
 
12357
  def __ne__(self, other):
12358
    return not (self == other)
12359
 
12360
class addBanner_result:
12361
 
12362
  thrift_spec = (
12363
  )
12364
 
12365
  def read(self, iprot):
12366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12368
      return
12369
    iprot.readStructBegin()
12370
    while True:
12371
      (fname, ftype, fid) = iprot.readFieldBegin()
12372
      if ftype == TType.STOP:
12373
        break
12374
      else:
12375
        iprot.skip(ftype)
12376
      iprot.readFieldEnd()
12377
    iprot.readStructEnd()
12378
 
12379
  def write(self, oprot):
12380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12382
      return
12383
    oprot.writeStructBegin('addBanner_result')
12384
    oprot.writeFieldStop()
12385
    oprot.writeStructEnd()
12386
 
12387
  def validate(self):
12388
    return
12389
 
12390
 
12391
  def __repr__(self):
12392
    L = ['%s=%r' % (key, value)
12393
      for key, value in self.__dict__.iteritems()]
12394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12395
 
12396
  def __eq__(self, other):
12397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12398
 
12399
  def __ne__(self, other):
12400
    return not (self == other)
12401
 
12402
class updateBanner_args:
12403
  """
12404
  Attributes:
12405
   - banner
12406
  """
12407
 
12408
  thrift_spec = (
12409
    None, # 0
12410
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
12411
  )
12412
 
12413
  def __init__(self, banner=None,):
12414
    self.banner = banner
12415
 
12416
  def read(self, iprot):
12417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12419
      return
12420
    iprot.readStructBegin()
12421
    while True:
12422
      (fname, ftype, fid) = iprot.readFieldBegin()
12423
      if ftype == TType.STOP:
12424
        break
12425
      if fid == 1:
12426
        if ftype == TType.STRUCT:
12427
          self.banner = Banner()
12428
          self.banner.read(iprot)
6850 kshitij.so 12429
        else:
12430
          iprot.skip(ftype)
12431
      else:
12432
        iprot.skip(ftype)
12433
      iprot.readFieldEnd()
12434
    iprot.readStructEnd()
12435
 
12436
  def write(self, oprot):
12437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12439
      return
8579 kshitij.so 12440
    oprot.writeStructBegin('updateBanner_args')
12441
    if self.banner is not None:
12442
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
12443
      self.banner.write(oprot)
6850 kshitij.so 12444
      oprot.writeFieldEnd()
12445
    oprot.writeFieldStop()
12446
    oprot.writeStructEnd()
12447
 
12448
  def validate(self):
12449
    return
12450
 
12451
 
12452
  def __repr__(self):
12453
    L = ['%s=%r' % (key, value)
12454
      for key, value in self.__dict__.iteritems()]
12455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12456
 
12457
  def __eq__(self, other):
12458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12459
 
12460
  def __ne__(self, other):
12461
    return not (self == other)
12462
 
8579 kshitij.so 12463
class updateBanner_result:
6850 kshitij.so 12464
  """
12465
  Attributes:
12466
   - success
12467
  """
12468
 
12469
  thrift_spec = (
12470
    (0, TType.BOOL, 'success', None, None, ), # 0
12471
  )
12472
 
12473
  def __init__(self, success=None,):
12474
    self.success = success
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 == 0:
12486
        if ftype == TType.BOOL:
12487
          self.success = iprot.readBool();
12488
        else:
12489
          iprot.skip(ftype)
12490
      else:
12491
        iprot.skip(ftype)
12492
      iprot.readFieldEnd()
12493
    iprot.readStructEnd()
12494
 
12495
  def write(self, oprot):
12496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12498
      return
8579 kshitij.so 12499
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 12500
    if self.success is not None:
12501
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12502
      oprot.writeBool(self.success)
12503
      oprot.writeFieldEnd()
12504
    oprot.writeFieldStop()
12505
    oprot.writeStructEnd()
12506
 
12507
  def validate(self):
12508
    return
12509
 
12510
 
12511
  def __repr__(self):
12512
    L = ['%s=%r' % (key, value)
12513
      for key, value in self.__dict__.iteritems()]
12514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12515
 
12516
  def __eq__(self, other):
12517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12518
 
12519
  def __ne__(self, other):
12520
    return not (self == other)
12521
 
12522
class getAllBanners_args:
12523
 
12524
  thrift_spec = (
12525
  )
12526
 
12527
  def read(self, iprot):
12528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12530
      return
12531
    iprot.readStructBegin()
12532
    while True:
12533
      (fname, ftype, fid) = iprot.readFieldBegin()
12534
      if ftype == TType.STOP:
12535
        break
12536
      else:
12537
        iprot.skip(ftype)
12538
      iprot.readFieldEnd()
12539
    iprot.readStructEnd()
12540
 
12541
  def write(self, oprot):
12542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12544
      return
12545
    oprot.writeStructBegin('getAllBanners_args')
12546
    oprot.writeFieldStop()
12547
    oprot.writeStructEnd()
12548
 
12549
  def validate(self):
12550
    return
12551
 
12552
 
12553
  def __repr__(self):
12554
    L = ['%s=%r' % (key, value)
12555
      for key, value in self.__dict__.iteritems()]
12556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12557
 
12558
  def __eq__(self, other):
12559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12560
 
12561
  def __ne__(self, other):
12562
    return not (self == other)
12563
 
12564
class getAllBanners_result:
12565
  """
12566
  Attributes:
12567
   - success
12568
  """
12569
 
12570
  thrift_spec = (
8579 kshitij.so 12571
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 12572
  )
12573
 
12574
  def __init__(self, success=None,):
12575
    self.success = success
12576
 
12577
  def read(self, iprot):
12578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12580
      return
12581
    iprot.readStructBegin()
12582
    while True:
12583
      (fname, ftype, fid) = iprot.readFieldBegin()
12584
      if ftype == TType.STOP:
12585
        break
12586
      if fid == 0:
12587
        if ftype == TType.LIST:
12588
          self.success = []
8590 kshitij.so 12589
          (_etype198, _size195) = iprot.readListBegin()
12590
          for _i199 in xrange(_size195):
12591
            _elem200 = Banner()
12592
            _elem200.read(iprot)
12593
            self.success.append(_elem200)
6850 kshitij.so 12594
          iprot.readListEnd()
12595
        else:
12596
          iprot.skip(ftype)
12597
      else:
12598
        iprot.skip(ftype)
12599
      iprot.readFieldEnd()
12600
    iprot.readStructEnd()
12601
 
12602
  def write(self, oprot):
12603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12605
      return
12606
    oprot.writeStructBegin('getAllBanners_result')
12607
    if self.success is not None:
12608
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 12609
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 12610
      for iter201 in self.success:
12611
        iter201.write(oprot)
6850 kshitij.so 12612
      oprot.writeListEnd()
12613
      oprot.writeFieldEnd()
12614
    oprot.writeFieldStop()
12615
    oprot.writeStructEnd()
12616
 
12617
  def validate(self):
12618
    return
12619
 
12620
 
12621
  def __repr__(self):
12622
    L = ['%s=%r' % (key, value)
12623
      for key, value in self.__dict__.iteritems()]
12624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12625
 
12626
  def __eq__(self, other):
12627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12628
 
12629
  def __ne__(self, other):
12630
    return not (self == other)
12631
 
12632
class deleteBanner_args:
12633
  """
12634
  Attributes:
12635
   - bannerName
9155 kshitij.so 12636
   - bannerType
6850 kshitij.so 12637
  """
12638
 
12639
  thrift_spec = (
12640
    None, # 0
12641
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 12642
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 12643
  )
12644
 
9155 kshitij.so 12645
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 12646
    self.bannerName = bannerName
9155 kshitij.so 12647
    self.bannerType = bannerType
6850 kshitij.so 12648
 
12649
  def read(self, iprot):
12650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12652
      return
12653
    iprot.readStructBegin()
12654
    while True:
12655
      (fname, ftype, fid) = iprot.readFieldBegin()
12656
      if ftype == TType.STOP:
12657
        break
12658
      if fid == 1:
12659
        if ftype == TType.STRING:
12660
          self.bannerName = iprot.readString();
12661
        else:
12662
          iprot.skip(ftype)
9155 kshitij.so 12663
      elif fid == 2:
12664
        if ftype == TType.I32:
12665
          self.bannerType = iprot.readI32();
12666
        else:
12667
          iprot.skip(ftype)
6850 kshitij.so 12668
      else:
12669
        iprot.skip(ftype)
12670
      iprot.readFieldEnd()
12671
    iprot.readStructEnd()
12672
 
12673
  def write(self, oprot):
12674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12676
      return
12677
    oprot.writeStructBegin('deleteBanner_args')
12678
    if self.bannerName is not None:
12679
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
12680
      oprot.writeString(self.bannerName)
12681
      oprot.writeFieldEnd()
9155 kshitij.so 12682
    if self.bannerType is not None:
12683
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
12684
      oprot.writeI32(self.bannerType)
12685
      oprot.writeFieldEnd()
6850 kshitij.so 12686
    oprot.writeFieldStop()
12687
    oprot.writeStructEnd()
12688
 
12689
  def validate(self):
12690
    return
12691
 
12692
 
12693
  def __repr__(self):
12694
    L = ['%s=%r' % (key, value)
12695
      for key, value in self.__dict__.iteritems()]
12696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12697
 
12698
  def __eq__(self, other):
12699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12700
 
12701
  def __ne__(self, other):
12702
    return not (self == other)
12703
 
12704
class deleteBanner_result:
12705
  """
12706
  Attributes:
12707
   - success
12708
  """
12709
 
12710
  thrift_spec = (
12711
    (0, TType.BOOL, 'success', None, None, ), # 0
12712
  )
12713
 
12714
  def __init__(self, success=None,):
12715
    self.success = success
12716
 
12717
  def read(self, iprot):
12718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12720
      return
12721
    iprot.readStructBegin()
12722
    while True:
12723
      (fname, ftype, fid) = iprot.readFieldBegin()
12724
      if ftype == TType.STOP:
12725
        break
12726
      if fid == 0:
12727
        if ftype == TType.BOOL:
12728
          self.success = iprot.readBool();
12729
        else:
12730
          iprot.skip(ftype)
12731
      else:
12732
        iprot.skip(ftype)
12733
      iprot.readFieldEnd()
12734
    iprot.readStructEnd()
12735
 
12736
  def write(self, oprot):
12737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12739
      return
12740
    oprot.writeStructBegin('deleteBanner_result')
12741
    if self.success is not None:
12742
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12743
      oprot.writeBool(self.success)
12744
      oprot.writeFieldEnd()
12745
    oprot.writeFieldStop()
12746
    oprot.writeStructEnd()
12747
 
12748
  def validate(self):
12749
    return
12750
 
12751
 
12752
  def __repr__(self):
12753
    L = ['%s=%r' % (key, value)
12754
      for key, value in self.__dict__.iteritems()]
12755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12756
 
12757
  def __eq__(self, other):
12758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12759
 
12760
  def __ne__(self, other):
12761
    return not (self == other)
12762
 
12763
class getBannerDetails_args:
12764
  """
12765
  Attributes:
12766
   - bannerName
9155 kshitij.so 12767
   - bannerType
6850 kshitij.so 12768
  """
12769
 
12770
  thrift_spec = (
12771
    None, # 0
12772
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 12773
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 12774
  )
12775
 
9155 kshitij.so 12776
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 12777
    self.bannerName = bannerName
9155 kshitij.so 12778
    self.bannerType = bannerType
6850 kshitij.so 12779
 
12780
  def read(self, iprot):
12781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12783
      return
12784
    iprot.readStructBegin()
12785
    while True:
12786
      (fname, ftype, fid) = iprot.readFieldBegin()
12787
      if ftype == TType.STOP:
12788
        break
12789
      if fid == 1:
12790
        if ftype == TType.STRING:
12791
          self.bannerName = iprot.readString();
12792
        else:
12793
          iprot.skip(ftype)
9155 kshitij.so 12794
      elif fid == 2:
12795
        if ftype == TType.I32:
12796
          self.bannerType = iprot.readI32();
12797
        else:
12798
          iprot.skip(ftype)
6850 kshitij.so 12799
      else:
12800
        iprot.skip(ftype)
12801
      iprot.readFieldEnd()
12802
    iprot.readStructEnd()
12803
 
12804
  def write(self, oprot):
12805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12807
      return
12808
    oprot.writeStructBegin('getBannerDetails_args')
12809
    if self.bannerName is not None:
12810
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
12811
      oprot.writeString(self.bannerName)
12812
      oprot.writeFieldEnd()
9155 kshitij.so 12813
    if self.bannerType is not None:
12814
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
12815
      oprot.writeI32(self.bannerType)
12816
      oprot.writeFieldEnd()
6850 kshitij.so 12817
    oprot.writeFieldStop()
12818
    oprot.writeStructEnd()
12819
 
12820
  def validate(self):
12821
    return
12822
 
12823
 
12824
  def __repr__(self):
12825
    L = ['%s=%r' % (key, value)
12826
      for key, value in self.__dict__.iteritems()]
12827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12828
 
12829
  def __eq__(self, other):
12830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12831
 
12832
  def __ne__(self, other):
12833
    return not (self == other)
12834
 
12835
class getBannerDetails_result:
12836
  """
12837
  Attributes:
12838
   - success
12839
  """
12840
 
12841
  thrift_spec = (
12842
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
12843
  )
12844
 
12845
  def __init__(self, success=None,):
12846
    self.success = success
12847
 
12848
  def read(self, iprot):
12849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12851
      return
12852
    iprot.readStructBegin()
12853
    while True:
12854
      (fname, ftype, fid) = iprot.readFieldBegin()
12855
      if ftype == TType.STOP:
12856
        break
12857
      if fid == 0:
12858
        if ftype == TType.STRUCT:
12859
          self.success = Banner()
12860
          self.success.read(iprot)
12861
        else:
12862
          iprot.skip(ftype)
12863
      else:
12864
        iprot.skip(ftype)
12865
      iprot.readFieldEnd()
12866
    iprot.readStructEnd()
12867
 
12868
  def write(self, oprot):
12869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12871
      return
12872
    oprot.writeStructBegin('getBannerDetails_result')
12873
    if self.success is not None:
12874
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12875
      self.success.write(oprot)
12876
      oprot.writeFieldEnd()
12877
    oprot.writeFieldStop()
12878
    oprot.writeStructEnd()
12879
 
12880
  def validate(self):
12881
    return
12882
 
12883
 
12884
  def __repr__(self):
12885
    L = ['%s=%r' % (key, value)
12886
      for key, value in self.__dict__.iteritems()]
12887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12888
 
12889
  def __eq__(self, other):
12890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12891
 
12892
  def __ne__(self, other):
12893
    return not (self == other)
12894
 
12895
class getActiveBanners_args:
12896
 
12897
  thrift_spec = (
12898
  )
12899
 
12900
  def read(self, iprot):
12901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12903
      return
12904
    iprot.readStructBegin()
12905
    while True:
12906
      (fname, ftype, fid) = iprot.readFieldBegin()
12907
      if ftype == TType.STOP:
12908
        break
12909
      else:
12910
        iprot.skip(ftype)
12911
      iprot.readFieldEnd()
12912
    iprot.readStructEnd()
12913
 
12914
  def write(self, oprot):
12915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12917
      return
12918
    oprot.writeStructBegin('getActiveBanners_args')
12919
    oprot.writeFieldStop()
12920
    oprot.writeStructEnd()
12921
 
12922
  def validate(self):
12923
    return
12924
 
12925
 
12926
  def __repr__(self):
12927
    L = ['%s=%r' % (key, value)
12928
      for key, value in self.__dict__.iteritems()]
12929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12930
 
12931
  def __eq__(self, other):
12932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12933
 
12934
  def __ne__(self, other):
12935
    return not (self == other)
12936
 
12937
class getActiveBanners_result:
12938
  """
12939
  Attributes:
12940
   - success
12941
  """
12942
 
12943
  thrift_spec = (
8579 kshitij.so 12944
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 12945
  )
12946
 
12947
  def __init__(self, success=None,):
12948
    self.success = success
12949
 
12950
  def read(self, iprot):
12951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12953
      return
12954
    iprot.readStructBegin()
12955
    while True:
12956
      (fname, ftype, fid) = iprot.readFieldBegin()
12957
      if ftype == TType.STOP:
12958
        break
12959
      if fid == 0:
8579 kshitij.so 12960
        if ftype == TType.MAP:
12961
          self.success = {}
8590 kshitij.so 12962
          (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() 
12963
          for _i206 in xrange(_size202):
12964
            _key207 = iprot.readString();
12965
            _val208 = []
12966
            (_etype212, _size209) = iprot.readListBegin()
12967
            for _i213 in xrange(_size209):
12968
              _elem214 = Banner()
12969
              _elem214.read(iprot)
12970
              _val208.append(_elem214)
8579 kshitij.so 12971
            iprot.readListEnd()
8590 kshitij.so 12972
            self.success[_key207] = _val208
8579 kshitij.so 12973
          iprot.readMapEnd()
6850 kshitij.so 12974
        else:
12975
          iprot.skip(ftype)
12976
      else:
12977
        iprot.skip(ftype)
12978
      iprot.readFieldEnd()
12979
    iprot.readStructEnd()
12980
 
12981
  def write(self, oprot):
12982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12984
      return
12985
    oprot.writeStructBegin('getActiveBanners_result')
12986
    if self.success is not None:
8579 kshitij.so 12987
      oprot.writeFieldBegin('success', TType.MAP, 0)
12988
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
8590 kshitij.so 12989
      for kiter215,viter216 in self.success.items():
12990
        oprot.writeString(kiter215)
12991
        oprot.writeListBegin(TType.STRUCT, len(viter216))
12992
        for iter217 in viter216:
12993
          iter217.write(oprot)
8579 kshitij.so 12994
        oprot.writeListEnd()
12995
      oprot.writeMapEnd()
6850 kshitij.so 12996
      oprot.writeFieldEnd()
12997
    oprot.writeFieldStop()
12998
    oprot.writeStructEnd()
12999
 
13000
  def validate(self):
13001
    return
13002
 
13003
 
13004
  def __repr__(self):
13005
    L = ['%s=%r' % (key, value)
13006
      for key, value in self.__dict__.iteritems()]
13007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13008
 
13009
  def __eq__(self, other):
13010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13011
 
13012
  def __ne__(self, other):
13013
    return not (self == other)
13014
 
6849 kshitij.so 13015
class addBannerMap_args:
13016
  """
13017
  Attributes:
8579 kshitij.so 13018
   - bannerMaps
6849 kshitij.so 13019
  """
13020
 
13021
  thrift_spec = (
13022
    None, # 0
8579 kshitij.so 13023
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 13024
  )
13025
 
8579 kshitij.so 13026
  def __init__(self, bannerMaps=None,):
13027
    self.bannerMaps = bannerMaps
6849 kshitij.so 13028
 
13029
  def read(self, iprot):
13030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13032
      return
13033
    iprot.readStructBegin()
13034
    while True:
13035
      (fname, ftype, fid) = iprot.readFieldBegin()
13036
      if ftype == TType.STOP:
13037
        break
13038
      if fid == 1:
8579 kshitij.so 13039
        if ftype == TType.LIST:
13040
          self.bannerMaps = []
8590 kshitij.so 13041
          (_etype221, _size218) = iprot.readListBegin()
13042
          for _i222 in xrange(_size218):
13043
            _elem223 = BannerMap()
13044
            _elem223.read(iprot)
13045
            self.bannerMaps.append(_elem223)
8579 kshitij.so 13046
          iprot.readListEnd()
6849 kshitij.so 13047
        else:
13048
          iprot.skip(ftype)
8579 kshitij.so 13049
      else:
13050
        iprot.skip(ftype)
13051
      iprot.readFieldEnd()
13052
    iprot.readStructEnd()
13053
 
13054
  def write(self, oprot):
13055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13057
      return
13058
    oprot.writeStructBegin('addBannerMap_args')
13059
    if self.bannerMaps is not None:
13060
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
13061
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
8590 kshitij.so 13062
      for iter224 in self.bannerMaps:
13063
        iter224.write(oprot)
8579 kshitij.so 13064
      oprot.writeListEnd()
13065
      oprot.writeFieldEnd()
13066
    oprot.writeFieldStop()
13067
    oprot.writeStructEnd()
13068
 
13069
  def validate(self):
13070
    return
13071
 
13072
 
13073
  def __repr__(self):
13074
    L = ['%s=%r' % (key, value)
13075
      for key, value in self.__dict__.iteritems()]
13076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13077
 
13078
  def __eq__(self, other):
13079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13080
 
13081
  def __ne__(self, other):
13082
    return not (self == other)
13083
 
13084
class addBannerMap_result:
13085
  """
13086
  Attributes:
13087
   - success
13088
  """
13089
 
13090
  thrift_spec = (
13091
    (0, TType.BOOL, 'success', None, None, ), # 0
13092
  )
13093
 
13094
  def __init__(self, success=None,):
13095
    self.success = success
13096
 
13097
  def read(self, iprot):
13098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13100
      return
13101
    iprot.readStructBegin()
13102
    while True:
13103
      (fname, ftype, fid) = iprot.readFieldBegin()
13104
      if ftype == TType.STOP:
13105
        break
13106
      if fid == 0:
13107
        if ftype == TType.BOOL:
13108
          self.success = iprot.readBool();
6849 kshitij.so 13109
        else:
13110
          iprot.skip(ftype)
8579 kshitij.so 13111
      else:
13112
        iprot.skip(ftype)
13113
      iprot.readFieldEnd()
13114
    iprot.readStructEnd()
13115
 
13116
  def write(self, oprot):
13117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13119
      return
13120
    oprot.writeStructBegin('addBannerMap_result')
13121
    if self.success is not None:
13122
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13123
      oprot.writeBool(self.success)
13124
      oprot.writeFieldEnd()
13125
    oprot.writeFieldStop()
13126
    oprot.writeStructEnd()
13127
 
13128
  def validate(self):
13129
    return
13130
 
13131
 
13132
  def __repr__(self):
13133
    L = ['%s=%r' % (key, value)
13134
      for key, value in self.__dict__.iteritems()]
13135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13136
 
13137
  def __eq__(self, other):
13138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13139
 
13140
  def __ne__(self, other):
13141
    return not (self == other)
13142
 
13143
class updateBannerMap_args:
13144
  """
13145
  Attributes:
13146
   - bannerMap
13147
  """
13148
 
13149
  thrift_spec = (
13150
    None, # 0
13151
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
13152
  )
13153
 
13154
  def __init__(self, bannerMap=None,):
13155
    self.bannerMap = bannerMap
13156
 
13157
  def read(self, iprot):
13158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13160
      return
13161
    iprot.readStructBegin()
13162
    while True:
13163
      (fname, ftype, fid) = iprot.readFieldBegin()
13164
      if ftype == TType.STOP:
13165
        break
13166
      if fid == 1:
13167
        if ftype == TType.STRUCT:
13168
          self.bannerMap = BannerMap()
13169
          self.bannerMap.read(iprot)
6849 kshitij.so 13170
        else:
13171
          iprot.skip(ftype)
13172
      else:
13173
        iprot.skip(ftype)
13174
      iprot.readFieldEnd()
13175
    iprot.readStructEnd()
13176
 
13177
  def write(self, oprot):
13178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13180
      return
8579 kshitij.so 13181
    oprot.writeStructBegin('updateBannerMap_args')
13182
    if self.bannerMap is not None:
13183
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
13184
      self.bannerMap.write(oprot)
6849 kshitij.so 13185
      oprot.writeFieldEnd()
13186
    oprot.writeFieldStop()
13187
    oprot.writeStructEnd()
13188
 
13189
  def validate(self):
13190
    return
13191
 
13192
 
13193
  def __repr__(self):
13194
    L = ['%s=%r' % (key, value)
13195
      for key, value in self.__dict__.iteritems()]
13196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13197
 
13198
  def __eq__(self, other):
13199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13200
 
13201
  def __ne__(self, other):
13202
    return not (self == other)
13203
 
8579 kshitij.so 13204
class updateBannerMap_result:
6849 kshitij.so 13205
  """
13206
  Attributes:
13207
   - success
13208
  """
13209
 
13210
  thrift_spec = (
13211
    (0, TType.BOOL, 'success', None, None, ), # 0
13212
  )
13213
 
13214
  def __init__(self, success=None,):
13215
    self.success = success
13216
 
13217
  def read(self, iprot):
13218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13220
      return
13221
    iprot.readStructBegin()
13222
    while True:
13223
      (fname, ftype, fid) = iprot.readFieldBegin()
13224
      if ftype == TType.STOP:
13225
        break
13226
      if fid == 0:
13227
        if ftype == TType.BOOL:
13228
          self.success = iprot.readBool();
13229
        else:
13230
          iprot.skip(ftype)
13231
      else:
13232
        iprot.skip(ftype)
13233
      iprot.readFieldEnd()
13234
    iprot.readStructEnd()
13235
 
13236
  def write(self, oprot):
13237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13239
      return
8579 kshitij.so 13240
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 13241
    if self.success is not None:
13242
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13243
      oprot.writeBool(self.success)
13244
      oprot.writeFieldEnd()
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 deleteBannerMap_args:
13264
  """
13265
  Attributes:
13266
   - bannerName
13267
  """
13268
 
13269
  thrift_spec = (
13270
    None, # 0
13271
    (1, TType.STRING, 'bannerName', None, None, ), # 1
13272
  )
13273
 
13274
  def __init__(self, bannerName=None,):
13275
    self.bannerName = bannerName
13276
 
13277
  def read(self, iprot):
13278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13280
      return
13281
    iprot.readStructBegin()
13282
    while True:
13283
      (fname, ftype, fid) = iprot.readFieldBegin()
13284
      if ftype == TType.STOP:
13285
        break
13286
      if fid == 1:
13287
        if ftype == TType.STRING:
13288
          self.bannerName = iprot.readString();
13289
        else:
13290
          iprot.skip(ftype)
13291
      else:
13292
        iprot.skip(ftype)
13293
      iprot.readFieldEnd()
13294
    iprot.readStructEnd()
13295
 
13296
  def write(self, oprot):
13297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13299
      return
13300
    oprot.writeStructBegin('deleteBannerMap_args')
13301
    if self.bannerName is not None:
13302
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13303
      oprot.writeString(self.bannerName)
13304
      oprot.writeFieldEnd()
13305
    oprot.writeFieldStop()
13306
    oprot.writeStructEnd()
13307
 
13308
  def validate(self):
13309
    return
13310
 
13311
 
13312
  def __repr__(self):
13313
    L = ['%s=%r' % (key, value)
13314
      for key, value in self.__dict__.iteritems()]
13315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13316
 
13317
  def __eq__(self, other):
13318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13319
 
13320
  def __ne__(self, other):
13321
    return not (self == other)
13322
 
13323
class deleteBannerMap_result:
13324
  """
13325
  Attributes:
13326
   - success
13327
  """
13328
 
13329
  thrift_spec = (
13330
    (0, TType.BOOL, 'success', None, None, ), # 0
13331
  )
13332
 
13333
  def __init__(self, success=None,):
13334
    self.success = success
13335
 
13336
  def read(self, iprot):
13337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13339
      return
13340
    iprot.readStructBegin()
13341
    while True:
13342
      (fname, ftype, fid) = iprot.readFieldBegin()
13343
      if ftype == TType.STOP:
13344
        break
13345
      if fid == 0:
13346
        if ftype == TType.BOOL:
13347
          self.success = iprot.readBool();
13348
        else:
13349
          iprot.skip(ftype)
13350
      else:
13351
        iprot.skip(ftype)
13352
      iprot.readFieldEnd()
13353
    iprot.readStructEnd()
13354
 
13355
  def write(self, oprot):
13356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13358
      return
13359
    oprot.writeStructBegin('deleteBannerMap_result')
13360
    if self.success is not None:
13361
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13362
      oprot.writeBool(self.success)
13363
      oprot.writeFieldEnd()
13364
    oprot.writeFieldStop()
13365
    oprot.writeStructEnd()
13366
 
13367
  def validate(self):
13368
    return
13369
 
13370
 
13371
  def __repr__(self):
13372
    L = ['%s=%r' % (key, value)
13373
      for key, value in self.__dict__.iteritems()]
13374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13375
 
13376
  def __eq__(self, other):
13377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13378
 
13379
  def __ne__(self, other):
13380
    return not (self == other)
13381
 
13382
class getBannerMapDetails_args:
13383
  """
13384
  Attributes:
13385
   - bannerName
9155 kshitij.so 13386
   - bannerType
6849 kshitij.so 13387
  """
13388
 
13389
  thrift_spec = (
13390
    None, # 0
13391
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13392
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 13393
  )
13394
 
9155 kshitij.so 13395
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 13396
    self.bannerName = bannerName
9155 kshitij.so 13397
    self.bannerType = bannerType
6849 kshitij.so 13398
 
13399
  def read(self, iprot):
13400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13402
      return
13403
    iprot.readStructBegin()
13404
    while True:
13405
      (fname, ftype, fid) = iprot.readFieldBegin()
13406
      if ftype == TType.STOP:
13407
        break
13408
      if fid == 1:
13409
        if ftype == TType.STRING:
13410
          self.bannerName = iprot.readString();
13411
        else:
13412
          iprot.skip(ftype)
9155 kshitij.so 13413
      elif fid == 2:
13414
        if ftype == TType.I32:
13415
          self.bannerType = iprot.readI32();
13416
        else:
13417
          iprot.skip(ftype)
6849 kshitij.so 13418
      else:
13419
        iprot.skip(ftype)
13420
      iprot.readFieldEnd()
13421
    iprot.readStructEnd()
13422
 
13423
  def write(self, oprot):
13424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13426
      return
13427
    oprot.writeStructBegin('getBannerMapDetails_args')
13428
    if self.bannerName is not None:
13429
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13430
      oprot.writeString(self.bannerName)
13431
      oprot.writeFieldEnd()
9155 kshitij.so 13432
    if self.bannerType is not None:
13433
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13434
      oprot.writeI32(self.bannerType)
13435
      oprot.writeFieldEnd()
6849 kshitij.so 13436
    oprot.writeFieldStop()
13437
    oprot.writeStructEnd()
13438
 
13439
  def validate(self):
13440
    return
13441
 
13442
 
13443
  def __repr__(self):
13444
    L = ['%s=%r' % (key, value)
13445
      for key, value in self.__dict__.iteritems()]
13446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13447
 
13448
  def __eq__(self, other):
13449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13450
 
13451
  def __ne__(self, other):
13452
    return not (self == other)
13453
 
13454
class getBannerMapDetails_result:
13455
  """
13456
  Attributes:
13457
   - success
13458
  """
13459
 
13460
  thrift_spec = (
13461
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
13462
  )
13463
 
13464
  def __init__(self, success=None,):
13465
    self.success = success
13466
 
13467
  def read(self, iprot):
13468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13470
      return
13471
    iprot.readStructBegin()
13472
    while True:
13473
      (fname, ftype, fid) = iprot.readFieldBegin()
13474
      if ftype == TType.STOP:
13475
        break
13476
      if fid == 0:
13477
        if ftype == TType.LIST:
13478
          self.success = []
8590 kshitij.so 13479
          (_etype228, _size225) = iprot.readListBegin()
13480
          for _i229 in xrange(_size225):
13481
            _elem230 = BannerMap()
13482
            _elem230.read(iprot)
13483
            self.success.append(_elem230)
6849 kshitij.so 13484
          iprot.readListEnd()
13485
        else:
13486
          iprot.skip(ftype)
13487
      else:
13488
        iprot.skip(ftype)
13489
      iprot.readFieldEnd()
13490
    iprot.readStructEnd()
13491
 
13492
  def write(self, oprot):
13493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13495
      return
13496
    oprot.writeStructBegin('getBannerMapDetails_result')
13497
    if self.success is not None:
13498
      oprot.writeFieldBegin('success', TType.LIST, 0)
13499
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13500
      for iter231 in self.success:
13501
        iter231.write(oprot)
6849 kshitij.so 13502
      oprot.writeListEnd()
13503
      oprot.writeFieldEnd()
13504
    oprot.writeFieldStop()
13505
    oprot.writeStructEnd()
13506
 
13507
  def validate(self):
13508
    return
13509
 
13510
 
13511
  def __repr__(self):
13512
    L = ['%s=%r' % (key, value)
13513
      for key, value in self.__dict__.iteritems()]
13514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13515
 
13516
  def __eq__(self, other):
13517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13518
 
13519
  def __ne__(self, other):
13520
    return not (self == other)
13521
 
8579 kshitij.so 13522
class addBannerUri_args:
13523
  """
13524
  Attributes:
13525
   - bannerUriMappings
13526
  """
13527
 
13528
  thrift_spec = (
13529
    None, # 0
13530
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
13531
  )
13532
 
13533
  def __init__(self, bannerUriMappings=None,):
13534
    self.bannerUriMappings = bannerUriMappings
13535
 
13536
  def read(self, iprot):
13537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13539
      return
13540
    iprot.readStructBegin()
13541
    while True:
13542
      (fname, ftype, fid) = iprot.readFieldBegin()
13543
      if ftype == TType.STOP:
13544
        break
13545
      if fid == 1:
13546
        if ftype == TType.LIST:
13547
          self.bannerUriMappings = []
8590 kshitij.so 13548
          (_etype235, _size232) = iprot.readListBegin()
13549
          for _i236 in xrange(_size232):
13550
            _elem237 = BannerUriMapping()
13551
            _elem237.read(iprot)
13552
            self.bannerUriMappings.append(_elem237)
8579 kshitij.so 13553
          iprot.readListEnd()
13554
        else:
13555
          iprot.skip(ftype)
13556
      else:
13557
        iprot.skip(ftype)
13558
      iprot.readFieldEnd()
13559
    iprot.readStructEnd()
13560
 
13561
  def write(self, oprot):
13562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13564
      return
13565
    oprot.writeStructBegin('addBannerUri_args')
13566
    if self.bannerUriMappings is not None:
13567
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
13568
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
8590 kshitij.so 13569
      for iter238 in self.bannerUriMappings:
13570
        iter238.write(oprot)
8579 kshitij.so 13571
      oprot.writeListEnd()
13572
      oprot.writeFieldEnd()
13573
    oprot.writeFieldStop()
13574
    oprot.writeStructEnd()
13575
 
13576
  def validate(self):
13577
    return
13578
 
13579
 
13580
  def __repr__(self):
13581
    L = ['%s=%r' % (key, value)
13582
      for key, value in self.__dict__.iteritems()]
13583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13584
 
13585
  def __eq__(self, other):
13586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13587
 
13588
  def __ne__(self, other):
13589
    return not (self == other)
13590
 
13591
class addBannerUri_result:
13592
 
13593
  thrift_spec = (
13594
  )
13595
 
13596
  def read(self, iprot):
13597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13599
      return
13600
    iprot.readStructBegin()
13601
    while True:
13602
      (fname, ftype, fid) = iprot.readFieldBegin()
13603
      if ftype == TType.STOP:
13604
        break
13605
      else:
13606
        iprot.skip(ftype)
13607
      iprot.readFieldEnd()
13608
    iprot.readStructEnd()
13609
 
13610
  def write(self, oprot):
13611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13613
      return
13614
    oprot.writeStructBegin('addBannerUri_result')
13615
    oprot.writeFieldStop()
13616
    oprot.writeStructEnd()
13617
 
13618
  def validate(self):
13619
    return
13620
 
13621
 
13622
  def __repr__(self):
13623
    L = ['%s=%r' % (key, value)
13624
      for key, value in self.__dict__.iteritems()]
13625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13626
 
13627
  def __eq__(self, other):
13628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13629
 
13630
  def __ne__(self, other):
13631
    return not (self == other)
13632
 
13633
class getUriMapping_args:
13634
  """
13635
  Attributes:
13636
   - bannerName
9155 kshitij.so 13637
   - bannerType
8579 kshitij.so 13638
  """
13639
 
13640
  thrift_spec = (
13641
    None, # 0
13642
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 13643
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 13644
  )
13645
 
9155 kshitij.so 13646
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 13647
    self.bannerName = bannerName
9155 kshitij.so 13648
    self.bannerType = bannerType
8579 kshitij.so 13649
 
13650
  def read(self, iprot):
13651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13653
      return
13654
    iprot.readStructBegin()
13655
    while True:
13656
      (fname, ftype, fid) = iprot.readFieldBegin()
13657
      if ftype == TType.STOP:
13658
        break
13659
      if fid == 1:
13660
        if ftype == TType.STRING:
13661
          self.bannerName = iprot.readString();
13662
        else:
13663
          iprot.skip(ftype)
9155 kshitij.so 13664
      elif fid == 2:
13665
        if ftype == TType.I32:
13666
          self.bannerType = iprot.readI32();
13667
        else:
13668
          iprot.skip(ftype)
8579 kshitij.so 13669
      else:
13670
        iprot.skip(ftype)
13671
      iprot.readFieldEnd()
13672
    iprot.readStructEnd()
13673
 
13674
  def write(self, oprot):
13675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13677
      return
13678
    oprot.writeStructBegin('getUriMapping_args')
13679
    if self.bannerName is not None:
13680
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
13681
      oprot.writeString(self.bannerName)
13682
      oprot.writeFieldEnd()
9155 kshitij.so 13683
    if self.bannerType is not None:
13684
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
13685
      oprot.writeI32(self.bannerType)
13686
      oprot.writeFieldEnd()
8579 kshitij.so 13687
    oprot.writeFieldStop()
13688
    oprot.writeStructEnd()
13689
 
13690
  def validate(self):
13691
    return
13692
 
13693
 
13694
  def __repr__(self):
13695
    L = ['%s=%r' % (key, value)
13696
      for key, value in self.__dict__.iteritems()]
13697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13698
 
13699
  def __eq__(self, other):
13700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13701
 
13702
  def __ne__(self, other):
13703
    return not (self == other)
13704
 
13705
class getUriMapping_result:
13706
  """
13707
  Attributes:
13708
   - success
13709
  """
13710
 
13711
  thrift_spec = (
13712
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
13713
  )
13714
 
13715
  def __init__(self, success=None,):
13716
    self.success = success
13717
 
13718
  def read(self, iprot):
13719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13721
      return
13722
    iprot.readStructBegin()
13723
    while True:
13724
      (fname, ftype, fid) = iprot.readFieldBegin()
13725
      if ftype == TType.STOP:
13726
        break
13727
      if fid == 0:
13728
        if ftype == TType.LIST:
13729
          self.success = []
8590 kshitij.so 13730
          (_etype242, _size239) = iprot.readListBegin()
13731
          for _i243 in xrange(_size239):
13732
            _elem244 = BannerUriMapping()
13733
            _elem244.read(iprot)
13734
            self.success.append(_elem244)
8579 kshitij.so 13735
          iprot.readListEnd()
13736
        else:
13737
          iprot.skip(ftype)
13738
      else:
13739
        iprot.skip(ftype)
13740
      iprot.readFieldEnd()
13741
    iprot.readStructEnd()
13742
 
13743
  def write(self, oprot):
13744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13746
      return
13747
    oprot.writeStructBegin('getUriMapping_result')
13748
    if self.success is not None:
13749
      oprot.writeFieldBegin('success', TType.LIST, 0)
13750
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13751
      for iter245 in self.success:
13752
        iter245.write(oprot)
8579 kshitij.so 13753
      oprot.writeListEnd()
13754
      oprot.writeFieldEnd()
13755
    oprot.writeFieldStop()
13756
    oprot.writeStructEnd()
13757
 
13758
  def validate(self):
13759
    return
13760
 
13761
 
13762
  def __repr__(self):
13763
    L = ['%s=%r' % (key, value)
13764
      for key, value in self.__dict__.iteritems()]
13765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13766
 
13767
  def __eq__(self, other):
13768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13769
 
13770
  def __ne__(self, other):
13771
    return not (self == other)
13772
 
13773
class addCampaign_args:
13774
  """
13775
  Attributes:
13776
   - campaign
13777
  """
13778
 
13779
  thrift_spec = (
13780
    None, # 0
13781
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
13782
  )
13783
 
13784
  def __init__(self, campaign=None,):
13785
    self.campaign = campaign
13786
 
13787
  def read(self, iprot):
13788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13790
      return
13791
    iprot.readStructBegin()
13792
    while True:
13793
      (fname, ftype, fid) = iprot.readFieldBegin()
13794
      if ftype == TType.STOP:
13795
        break
13796
      if fid == 1:
13797
        if ftype == TType.STRUCT:
13798
          self.campaign = Campaign()
13799
          self.campaign.read(iprot)
13800
        else:
13801
          iprot.skip(ftype)
13802
      else:
13803
        iprot.skip(ftype)
13804
      iprot.readFieldEnd()
13805
    iprot.readStructEnd()
13806
 
13807
  def write(self, oprot):
13808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13810
      return
13811
    oprot.writeStructBegin('addCampaign_args')
13812
    if self.campaign is not None:
13813
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
13814
      self.campaign.write(oprot)
13815
      oprot.writeFieldEnd()
13816
    oprot.writeFieldStop()
13817
    oprot.writeStructEnd()
13818
 
13819
  def validate(self):
13820
    return
13821
 
13822
 
13823
  def __repr__(self):
13824
    L = ['%s=%r' % (key, value)
13825
      for key, value in self.__dict__.iteritems()]
13826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13827
 
13828
  def __eq__(self, other):
13829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13830
 
13831
  def __ne__(self, other):
13832
    return not (self == other)
13833
 
13834
class addCampaign_result:
13835
 
13836
  thrift_spec = (
13837
  )
13838
 
13839
  def read(self, iprot):
13840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13842
      return
13843
    iprot.readStructBegin()
13844
    while True:
13845
      (fname, ftype, fid) = iprot.readFieldBegin()
13846
      if ftype == TType.STOP:
13847
        break
13848
      else:
13849
        iprot.skip(ftype)
13850
      iprot.readFieldEnd()
13851
    iprot.readStructEnd()
13852
 
13853
  def write(self, oprot):
13854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13856
      return
13857
    oprot.writeStructBegin('addCampaign_result')
13858
    oprot.writeFieldStop()
13859
    oprot.writeStructEnd()
13860
 
13861
  def validate(self):
13862
    return
13863
 
13864
 
13865
  def __repr__(self):
13866
    L = ['%s=%r' % (key, value)
13867
      for key, value in self.__dict__.iteritems()]
13868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13869
 
13870
  def __eq__(self, other):
13871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13872
 
13873
  def __ne__(self, other):
13874
    return not (self == other)
13875
 
13876
class getCampaigns_args:
13877
  """
13878
  Attributes:
13879
   - campaignName
13880
  """
13881
 
13882
  thrift_spec = (
13883
    None, # 0
13884
    (1, TType.STRING, 'campaignName', None, None, ), # 1
13885
  )
13886
 
13887
  def __init__(self, campaignName=None,):
13888
    self.campaignName = campaignName
13889
 
13890
  def read(self, iprot):
13891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13893
      return
13894
    iprot.readStructBegin()
13895
    while True:
13896
      (fname, ftype, fid) = iprot.readFieldBegin()
13897
      if ftype == TType.STOP:
13898
        break
13899
      if fid == 1:
13900
        if ftype == TType.STRING:
13901
          self.campaignName = iprot.readString();
13902
        else:
13903
          iprot.skip(ftype)
13904
      else:
13905
        iprot.skip(ftype)
13906
      iprot.readFieldEnd()
13907
    iprot.readStructEnd()
13908
 
13909
  def write(self, oprot):
13910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13912
      return
13913
    oprot.writeStructBegin('getCampaigns_args')
13914
    if self.campaignName is not None:
13915
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
13916
      oprot.writeString(self.campaignName)
13917
      oprot.writeFieldEnd()
13918
    oprot.writeFieldStop()
13919
    oprot.writeStructEnd()
13920
 
13921
  def validate(self):
13922
    return
13923
 
13924
 
13925
  def __repr__(self):
13926
    L = ['%s=%r' % (key, value)
13927
      for key, value in self.__dict__.iteritems()]
13928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13929
 
13930
  def __eq__(self, other):
13931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13932
 
13933
  def __ne__(self, other):
13934
    return not (self == other)
13935
 
13936
class getCampaigns_result:
13937
  """
13938
  Attributes:
13939
   - success
13940
  """
13941
 
13942
  thrift_spec = (
13943
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
13944
  )
13945
 
13946
  def __init__(self, success=None,):
13947
    self.success = success
13948
 
13949
  def read(self, iprot):
13950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13952
      return
13953
    iprot.readStructBegin()
13954
    while True:
13955
      (fname, ftype, fid) = iprot.readFieldBegin()
13956
      if ftype == TType.STOP:
13957
        break
13958
      if fid == 0:
13959
        if ftype == TType.LIST:
13960
          self.success = []
8590 kshitij.so 13961
          (_etype249, _size246) = iprot.readListBegin()
13962
          for _i250 in xrange(_size246):
13963
            _elem251 = Campaign()
13964
            _elem251.read(iprot)
13965
            self.success.append(_elem251)
8579 kshitij.so 13966
          iprot.readListEnd()
13967
        else:
13968
          iprot.skip(ftype)
13969
      else:
13970
        iprot.skip(ftype)
13971
      iprot.readFieldEnd()
13972
    iprot.readStructEnd()
13973
 
13974
  def write(self, oprot):
13975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13977
      return
13978
    oprot.writeStructBegin('getCampaigns_result')
13979
    if self.success is not None:
13980
      oprot.writeFieldBegin('success', TType.LIST, 0)
13981
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 13982
      for iter252 in self.success:
13983
        iter252.write(oprot)
8579 kshitij.so 13984
      oprot.writeListEnd()
13985
      oprot.writeFieldEnd()
13986
    oprot.writeFieldStop()
13987
    oprot.writeStructEnd()
13988
 
13989
  def validate(self):
13990
    return
13991
 
13992
 
13993
  def __repr__(self):
13994
    L = ['%s=%r' % (key, value)
13995
      for key, value in self.__dict__.iteritems()]
13996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13997
 
13998
  def __eq__(self, other):
13999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14000
 
14001
  def __ne__(self, other):
14002
    return not (self == other)
14003
 
14004
class deleteCampaign_args:
14005
  """
14006
  Attributes:
14007
   - campaignId
14008
  """
14009
 
14010
  thrift_spec = (
14011
    None, # 0
14012
    (1, TType.I64, 'campaignId', None, None, ), # 1
14013
  )
14014
 
14015
  def __init__(self, campaignId=None,):
14016
    self.campaignId = campaignId
14017
 
14018
  def read(self, iprot):
14019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14021
      return
14022
    iprot.readStructBegin()
14023
    while True:
14024
      (fname, ftype, fid) = iprot.readFieldBegin()
14025
      if ftype == TType.STOP:
14026
        break
14027
      if fid == 1:
14028
        if ftype == TType.I64:
14029
          self.campaignId = iprot.readI64();
14030
        else:
14031
          iprot.skip(ftype)
14032
      else:
14033
        iprot.skip(ftype)
14034
      iprot.readFieldEnd()
14035
    iprot.readStructEnd()
14036
 
14037
  def write(self, oprot):
14038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14040
      return
14041
    oprot.writeStructBegin('deleteCampaign_args')
14042
    if self.campaignId is not None:
14043
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
14044
      oprot.writeI64(self.campaignId)
14045
      oprot.writeFieldEnd()
14046
    oprot.writeFieldStop()
14047
    oprot.writeStructEnd()
14048
 
14049
  def validate(self):
14050
    return
14051
 
14052
 
14053
  def __repr__(self):
14054
    L = ['%s=%r' % (key, value)
14055
      for key, value in self.__dict__.iteritems()]
14056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14057
 
14058
  def __eq__(self, other):
14059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14060
 
14061
  def __ne__(self, other):
14062
    return not (self == other)
14063
 
14064
class deleteCampaign_result:
14065
 
14066
  thrift_spec = (
14067
  )
14068
 
14069
  def read(self, iprot):
14070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14072
      return
14073
    iprot.readStructBegin()
14074
    while True:
14075
      (fname, ftype, fid) = iprot.readFieldBegin()
14076
      if ftype == TType.STOP:
14077
        break
14078
      else:
14079
        iprot.skip(ftype)
14080
      iprot.readFieldEnd()
14081
    iprot.readStructEnd()
14082
 
14083
  def write(self, oprot):
14084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14086
      return
14087
    oprot.writeStructBegin('deleteCampaign_result')
14088
    oprot.writeFieldStop()
14089
    oprot.writeStructEnd()
14090
 
14091
  def validate(self):
14092
    return
14093
 
14094
 
14095
  def __repr__(self):
14096
    L = ['%s=%r' % (key, value)
14097
      for key, value in self.__dict__.iteritems()]
14098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14099
 
14100
  def __eq__(self, other):
14101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14102
 
14103
  def __ne__(self, other):
14104
    return not (self == other)
14105
 
14106
class getAllCampaigns_args:
14107
 
14108
  thrift_spec = (
14109
  )
14110
 
14111
  def read(self, iprot):
14112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14114
      return
14115
    iprot.readStructBegin()
14116
    while True:
14117
      (fname, ftype, fid) = iprot.readFieldBegin()
14118
      if ftype == TType.STOP:
14119
        break
14120
      else:
14121
        iprot.skip(ftype)
14122
      iprot.readFieldEnd()
14123
    iprot.readStructEnd()
14124
 
14125
  def write(self, oprot):
14126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14128
      return
14129
    oprot.writeStructBegin('getAllCampaigns_args')
14130
    oprot.writeFieldStop()
14131
    oprot.writeStructEnd()
14132
 
14133
  def validate(self):
14134
    return
14135
 
14136
 
14137
  def __repr__(self):
14138
    L = ['%s=%r' % (key, value)
14139
      for key, value in self.__dict__.iteritems()]
14140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14141
 
14142
  def __eq__(self, other):
14143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14144
 
14145
  def __ne__(self, other):
14146
    return not (self == other)
14147
 
14148
class getAllCampaigns_result:
14149
  """
14150
  Attributes:
14151
   - success
14152
  """
14153
 
14154
  thrift_spec = (
14155
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14156
  )
14157
 
14158
  def __init__(self, success=None,):
14159
    self.success = success
14160
 
14161
  def read(self, iprot):
14162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14164
      return
14165
    iprot.readStructBegin()
14166
    while True:
14167
      (fname, ftype, fid) = iprot.readFieldBegin()
14168
      if ftype == TType.STOP:
14169
        break
14170
      if fid == 0:
14171
        if ftype == TType.LIST:
14172
          self.success = []
8590 kshitij.so 14173
          (_etype256, _size253) = iprot.readListBegin()
14174
          for _i257 in xrange(_size253):
14175
            _elem258 = iprot.readString();
14176
            self.success.append(_elem258)
8579 kshitij.so 14177
          iprot.readListEnd()
14178
        else:
14179
          iprot.skip(ftype)
14180
      else:
14181
        iprot.skip(ftype)
14182
      iprot.readFieldEnd()
14183
    iprot.readStructEnd()
14184
 
14185
  def write(self, oprot):
14186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14188
      return
14189
    oprot.writeStructBegin('getAllCampaigns_result')
14190
    if self.success is not None:
14191
      oprot.writeFieldBegin('success', TType.LIST, 0)
14192
      oprot.writeListBegin(TType.STRING, len(self.success))
8590 kshitij.so 14193
      for iter259 in self.success:
14194
        oprot.writeString(iter259)
8579 kshitij.so 14195
      oprot.writeListEnd()
14196
      oprot.writeFieldEnd()
14197
    oprot.writeFieldStop()
14198
    oprot.writeStructEnd()
14199
 
14200
  def validate(self):
14201
    return
14202
 
14203
 
14204
  def __repr__(self):
14205
    L = ['%s=%r' % (key, value)
14206
      for key, value in self.__dict__.iteritems()]
14207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14208
 
14209
  def __eq__(self, other):
14210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14211
 
14212
  def __ne__(self, other):
14213
    return not (self == other)
14214
 
9155 kshitij.so 14215
class getActiveBannersForMobileSite_args:
14216
 
14217
  thrift_spec = (
14218
  )
14219
 
14220
  def read(self, iprot):
14221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14223
      return
14224
    iprot.readStructBegin()
14225
    while True:
14226
      (fname, ftype, fid) = iprot.readFieldBegin()
14227
      if ftype == TType.STOP:
14228
        break
14229
      else:
14230
        iprot.skip(ftype)
14231
      iprot.readFieldEnd()
14232
    iprot.readStructEnd()
14233
 
14234
  def write(self, oprot):
14235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14237
      return
14238
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
14239
    oprot.writeFieldStop()
14240
    oprot.writeStructEnd()
14241
 
14242
  def validate(self):
14243
    return
14244
 
14245
 
14246
  def __repr__(self):
14247
    L = ['%s=%r' % (key, value)
14248
      for key, value in self.__dict__.iteritems()]
14249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14250
 
14251
  def __eq__(self, other):
14252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14253
 
14254
  def __ne__(self, other):
14255
    return not (self == other)
14256
 
14257
class getActiveBannersForMobileSite_result:
14258
  """
14259
  Attributes:
14260
   - success
14261
  """
14262
 
14263
  thrift_spec = (
14264
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
14265
  )
14266
 
14267
  def __init__(self, success=None,):
14268
    self.success = success
14269
 
14270
  def read(self, iprot):
14271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14273
      return
14274
    iprot.readStructBegin()
14275
    while True:
14276
      (fname, ftype, fid) = iprot.readFieldBegin()
14277
      if ftype == TType.STOP:
14278
        break
14279
      if fid == 0:
14280
        if ftype == TType.MAP:
14281
          self.success = {}
14282
          (_ktype261, _vtype262, _size260 ) = iprot.readMapBegin() 
14283
          for _i264 in xrange(_size260):
14284
            _key265 = iprot.readString();
14285
            _val266 = []
14286
            (_etype270, _size267) = iprot.readListBegin()
14287
            for _i271 in xrange(_size267):
14288
              _elem272 = Banner()
14289
              _elem272.read(iprot)
14290
              _val266.append(_elem272)
14291
            iprot.readListEnd()
14292
            self.success[_key265] = _val266
14293
          iprot.readMapEnd()
14294
        else:
14295
          iprot.skip(ftype)
14296
      else:
14297
        iprot.skip(ftype)
14298
      iprot.readFieldEnd()
14299
    iprot.readStructEnd()
14300
 
14301
  def write(self, oprot):
14302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14304
      return
14305
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
14306
    if self.success is not None:
14307
      oprot.writeFieldBegin('success', TType.MAP, 0)
14308
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
14309
      for kiter273,viter274 in self.success.items():
14310
        oprot.writeString(kiter273)
14311
        oprot.writeListBegin(TType.STRUCT, len(viter274))
14312
        for iter275 in viter274:
14313
          iter275.write(oprot)
14314
        oprot.writeListEnd()
14315
      oprot.writeMapEnd()
14316
      oprot.writeFieldEnd()
14317
    oprot.writeFieldStop()
14318
    oprot.writeStructEnd()
14319
 
14320
  def validate(self):
14321
    return
14322
 
14323
 
14324
  def __repr__(self):
14325
    L = ['%s=%r' % (key, value)
14326
      for key, value in self.__dict__.iteritems()]
14327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14328
 
14329
  def __eq__(self, other):
14330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14331
 
14332
  def __ne__(self, other):
14333
    return not (self == other)
14334
 
5944 mandeep.dh 14335
class deleteSimilarItem_args:
14336
  """
14337
  Attributes:
14338
   - itemId
14339
   - catalogItemId
14340
  """
14341
 
14342
  thrift_spec = (
14343
    None, # 0
14344
    (1, TType.I64, 'itemId', None, None, ), # 1
14345
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
14346
  )
14347
 
14348
  def __init__(self, itemId=None, catalogItemId=None,):
14349
    self.itemId = itemId
14350
    self.catalogItemId = catalogItemId
14351
 
14352
  def read(self, iprot):
14353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14355
      return
14356
    iprot.readStructBegin()
14357
    while True:
14358
      (fname, ftype, fid) = iprot.readFieldBegin()
14359
      if ftype == TType.STOP:
14360
        break
14361
      if fid == 1:
14362
        if ftype == TType.I64:
14363
          self.itemId = iprot.readI64();
14364
        else:
14365
          iprot.skip(ftype)
14366
      elif fid == 2:
14367
        if ftype == TType.I64:
14368
          self.catalogItemId = iprot.readI64();
14369
        else:
14370
          iprot.skip(ftype)
14371
      else:
14372
        iprot.skip(ftype)
14373
      iprot.readFieldEnd()
14374
    iprot.readStructEnd()
14375
 
14376
  def write(self, oprot):
14377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14379
      return
14380
    oprot.writeStructBegin('deleteSimilarItem_args')
14381
    if self.itemId is not None:
14382
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14383
      oprot.writeI64(self.itemId)
14384
      oprot.writeFieldEnd()
14385
    if self.catalogItemId is not None:
14386
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14387
      oprot.writeI64(self.catalogItemId)
14388
      oprot.writeFieldEnd()
14389
    oprot.writeFieldStop()
14390
    oprot.writeStructEnd()
14391
 
14392
  def validate(self):
14393
    return
14394
 
14395
 
14396
  def __repr__(self):
14397
    L = ['%s=%r' % (key, value)
14398
      for key, value in self.__dict__.iteritems()]
14399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14400
 
14401
  def __eq__(self, other):
14402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14403
 
14404
  def __ne__(self, other):
14405
    return not (self == other)
14406
 
14407
class deleteSimilarItem_result:
14408
  """
14409
  Attributes:
14410
   - success
14411
   - cex
14412
  """
14413
 
14414
  thrift_spec = (
14415
    (0, TType.BOOL, 'success', None, None, ), # 0
14416
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14417
  )
14418
 
14419
  def __init__(self, success=None, cex=None,):
14420
    self.success = success
14421
    self.cex = cex
14422
 
14423
  def read(self, iprot):
14424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14426
      return
14427
    iprot.readStructBegin()
14428
    while True:
14429
      (fname, ftype, fid) = iprot.readFieldBegin()
14430
      if ftype == TType.STOP:
14431
        break
14432
      if fid == 0:
14433
        if ftype == TType.BOOL:
14434
          self.success = iprot.readBool();
14435
        else:
14436
          iprot.skip(ftype)
14437
      elif fid == 1:
14438
        if ftype == TType.STRUCT:
14439
          self.cex = CatalogServiceException()
14440
          self.cex.read(iprot)
14441
        else:
14442
          iprot.skip(ftype)
14443
      else:
14444
        iprot.skip(ftype)
14445
      iprot.readFieldEnd()
14446
    iprot.readStructEnd()
14447
 
14448
  def write(self, oprot):
14449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14451
      return
14452
    oprot.writeStructBegin('deleteSimilarItem_result')
14453
    if self.success is not None:
14454
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14455
      oprot.writeBool(self.success)
14456
      oprot.writeFieldEnd()
14457
    if self.cex is not None:
14458
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14459
      self.cex.write(oprot)
14460
      oprot.writeFieldEnd()
14461
    oprot.writeFieldStop()
14462
    oprot.writeStructEnd()
14463
 
14464
  def validate(self):
14465
    return
14466
 
14467
 
14468
  def __repr__(self):
14469
    L = ['%s=%r' % (key, value)
14470
      for key, value in self.__dict__.iteritems()]
14471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14472
 
14473
  def __eq__(self, other):
14474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14475
 
14476
  def __ne__(self, other):
14477
    return not (self == other)
14478
 
14479
class checkSimilarItem_args:
14480
  """
14481
  Attributes:
14482
   - brand
14483
   - modelNumber
14484
   - modelName
14485
   - color
14486
  """
14487
 
14488
  thrift_spec = (
14489
    None, # 0
14490
    (1, TType.STRING, 'brand', None, None, ), # 1
14491
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
14492
    (3, TType.STRING, 'modelName', None, None, ), # 3
14493
    (4, TType.STRING, 'color', None, None, ), # 4
14494
  )
14495
 
14496
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
14497
    self.brand = brand
14498
    self.modelNumber = modelNumber
14499
    self.modelName = modelName
14500
    self.color = color
14501
 
14502
  def read(self, iprot):
14503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14505
      return
14506
    iprot.readStructBegin()
14507
    while True:
14508
      (fname, ftype, fid) = iprot.readFieldBegin()
14509
      if ftype == TType.STOP:
14510
        break
14511
      if fid == 1:
14512
        if ftype == TType.STRING:
14513
          self.brand = iprot.readString();
14514
        else:
14515
          iprot.skip(ftype)
14516
      elif fid == 2:
14517
        if ftype == TType.STRING:
14518
          self.modelNumber = iprot.readString();
14519
        else:
14520
          iprot.skip(ftype)
14521
      elif fid == 3:
14522
        if ftype == TType.STRING:
14523
          self.modelName = iprot.readString();
14524
        else:
14525
          iprot.skip(ftype)
14526
      elif fid == 4:
14527
        if ftype == TType.STRING:
14528
          self.color = iprot.readString();
14529
        else:
14530
          iprot.skip(ftype)
14531
      else:
14532
        iprot.skip(ftype)
14533
      iprot.readFieldEnd()
14534
    iprot.readStructEnd()
14535
 
14536
  def write(self, oprot):
14537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14539
      return
14540
    oprot.writeStructBegin('checkSimilarItem_args')
14541
    if self.brand is not None:
14542
      oprot.writeFieldBegin('brand', TType.STRING, 1)
14543
      oprot.writeString(self.brand)
14544
      oprot.writeFieldEnd()
14545
    if self.modelNumber is not None:
14546
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
14547
      oprot.writeString(self.modelNumber)
14548
      oprot.writeFieldEnd()
14549
    if self.modelName is not None:
14550
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
14551
      oprot.writeString(self.modelName)
14552
      oprot.writeFieldEnd()
14553
    if self.color is not None:
14554
      oprot.writeFieldBegin('color', TType.STRING, 4)
14555
      oprot.writeString(self.color)
14556
      oprot.writeFieldEnd()
14557
    oprot.writeFieldStop()
14558
    oprot.writeStructEnd()
14559
 
14560
  def validate(self):
14561
    return
14562
 
14563
 
14564
  def __repr__(self):
14565
    L = ['%s=%r' % (key, value)
14566
      for key, value in self.__dict__.iteritems()]
14567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14568
 
14569
  def __eq__(self, other):
14570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14571
 
14572
  def __ne__(self, other):
14573
    return not (self == other)
14574
 
14575
class checkSimilarItem_result:
14576
  """
14577
  Attributes:
14578
   - success
14579
  """
14580
 
14581
  thrift_spec = (
14582
    (0, TType.I64, 'success', None, None, ), # 0
14583
  )
14584
 
14585
  def __init__(self, success=None,):
14586
    self.success = success
14587
 
14588
  def read(self, iprot):
14589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14591
      return
14592
    iprot.readStructBegin()
14593
    while True:
14594
      (fname, ftype, fid) = iprot.readFieldBegin()
14595
      if ftype == TType.STOP:
14596
        break
14597
      if fid == 0:
14598
        if ftype == TType.I64:
14599
          self.success = iprot.readI64();
14600
        else:
14601
          iprot.skip(ftype)
14602
      else:
14603
        iprot.skip(ftype)
14604
      iprot.readFieldEnd()
14605
    iprot.readStructEnd()
14606
 
14607
  def write(self, oprot):
14608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14610
      return
14611
    oprot.writeStructBegin('checkSimilarItem_result')
14612
    if self.success is not None:
14613
      oprot.writeFieldBegin('success', TType.I64, 0)
14614
      oprot.writeI64(self.success)
14615
      oprot.writeFieldEnd()
14616
    oprot.writeFieldStop()
14617
    oprot.writeStructEnd()
14618
 
14619
  def validate(self):
14620
    return
14621
 
14622
 
14623
  def __repr__(self):
14624
    L = ['%s=%r' % (key, value)
14625
      for key, value in self.__dict__.iteritems()]
14626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14627
 
14628
  def __eq__(self, other):
14629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14630
 
14631
  def __ne__(self, other):
14632
    return not (self == other)
14633
 
14634
class validateRiskyStatus_args:
14635
  """
14636
  Attributes:
14637
   - itemId
14638
  """
14639
 
14640
  thrift_spec = (
14641
    None, # 0
14642
    (1, TType.I64, 'itemId', None, None, ), # 1
14643
  )
14644
 
14645
  def __init__(self, itemId=None,):
14646
    self.itemId = itemId
14647
 
14648
  def read(self, iprot):
14649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14651
      return
14652
    iprot.readStructBegin()
14653
    while True:
14654
      (fname, ftype, fid) = iprot.readFieldBegin()
14655
      if ftype == TType.STOP:
14656
        break
14657
      if fid == 1:
14658
        if ftype == TType.I64:
14659
          self.itemId = iprot.readI64();
14660
        else:
14661
          iprot.skip(ftype)
14662
      else:
14663
        iprot.skip(ftype)
14664
      iprot.readFieldEnd()
14665
    iprot.readStructEnd()
14666
 
14667
  def write(self, oprot):
14668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14670
      return
14671
    oprot.writeStructBegin('validateRiskyStatus_args')
14672
    if self.itemId is not None:
14673
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14674
      oprot.writeI64(self.itemId)
14675
      oprot.writeFieldEnd()
14676
    oprot.writeFieldStop()
14677
    oprot.writeStructEnd()
14678
 
14679
  def validate(self):
14680
    return
14681
 
14682
 
14683
  def __repr__(self):
14684
    L = ['%s=%r' % (key, value)
14685
      for key, value in self.__dict__.iteritems()]
14686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14687
 
14688
  def __eq__(self, other):
14689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14690
 
14691
  def __ne__(self, other):
14692
    return not (self == other)
14693
 
14694
class validateRiskyStatus_result:
14695
 
14696
  thrift_spec = (
14697
  )
14698
 
14699
  def read(self, iprot):
14700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14702
      return
14703
    iprot.readStructBegin()
14704
    while True:
14705
      (fname, ftype, fid) = iprot.readFieldBegin()
14706
      if ftype == TType.STOP:
14707
        break
14708
      else:
14709
        iprot.skip(ftype)
14710
      iprot.readFieldEnd()
14711
    iprot.readStructEnd()
14712
 
14713
  def write(self, oprot):
14714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14716
      return
14717
    oprot.writeStructBegin('validateRiskyStatus_result')
14718
    oprot.writeFieldStop()
14719
    oprot.writeStructEnd()
14720
 
14721
  def validate(self):
14722
    return
14723
 
14724
 
14725
  def __repr__(self):
14726
    L = ['%s=%r' % (key, value)
14727
      for key, value in self.__dict__.iteritems()]
14728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14729
 
14730
  def __eq__(self, other):
14731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14732
 
14733
  def __ne__(self, other):
14734
    return not (self == other)
14735
 
14736
class changeItemRiskyFlag_args:
14737
  """
14738
  Attributes:
14739
   - itemId
14740
   - risky
14741
  """
14742
 
14743
  thrift_spec = (
14744
    None, # 0
14745
    (1, TType.I64, 'itemId', None, None, ), # 1
14746
    (2, TType.BOOL, 'risky', None, None, ), # 2
14747
  )
14748
 
14749
  def __init__(self, itemId=None, risky=None,):
14750
    self.itemId = itemId
14751
    self.risky = risky
14752
 
14753
  def read(self, iprot):
14754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14756
      return
14757
    iprot.readStructBegin()
14758
    while True:
14759
      (fname, ftype, fid) = iprot.readFieldBegin()
14760
      if ftype == TType.STOP:
14761
        break
14762
      if fid == 1:
14763
        if ftype == TType.I64:
14764
          self.itemId = iprot.readI64();
14765
        else:
14766
          iprot.skip(ftype)
14767
      elif fid == 2:
14768
        if ftype == TType.BOOL:
14769
          self.risky = iprot.readBool();
14770
        else:
14771
          iprot.skip(ftype)
14772
      else:
14773
        iprot.skip(ftype)
14774
      iprot.readFieldEnd()
14775
    iprot.readStructEnd()
14776
 
14777
  def write(self, oprot):
14778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14780
      return
14781
    oprot.writeStructBegin('changeItemRiskyFlag_args')
14782
    if self.itemId is not None:
14783
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14784
      oprot.writeI64(self.itemId)
14785
      oprot.writeFieldEnd()
14786
    if self.risky is not None:
14787
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
14788
      oprot.writeBool(self.risky)
14789
      oprot.writeFieldEnd()
14790
    oprot.writeFieldStop()
14791
    oprot.writeStructEnd()
14792
 
14793
  def validate(self):
14794
    return
14795
 
14796
 
14797
  def __repr__(self):
14798
    L = ['%s=%r' % (key, value)
14799
      for key, value in self.__dict__.iteritems()]
14800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14801
 
14802
  def __eq__(self, other):
14803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14804
 
14805
  def __ne__(self, other):
14806
    return not (self == other)
14807
 
14808
class changeItemRiskyFlag_result:
14809
 
14810
  thrift_spec = (
14811
  )
14812
 
14813
  def read(self, iprot):
14814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14816
      return
14817
    iprot.readStructBegin()
14818
    while True:
14819
      (fname, ftype, fid) = iprot.readFieldBegin()
14820
      if ftype == TType.STOP:
14821
        break
14822
      else:
14823
        iprot.skip(ftype)
14824
      iprot.readFieldEnd()
14825
    iprot.readStructEnd()
14826
 
14827
  def write(self, oprot):
14828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14830
      return
14831
    oprot.writeStructBegin('changeItemRiskyFlag_result')
14832
    oprot.writeFieldStop()
14833
    oprot.writeStructEnd()
14834
 
14835
  def validate(self):
14836
    return
14837
 
14838
 
14839
  def __repr__(self):
14840
    L = ['%s=%r' % (key, value)
14841
      for key, value in self.__dict__.iteritems()]
14842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14843
 
14844
  def __eq__(self, other):
14845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14846
 
14847
  def __ne__(self, other):
14848
    return not (self == other)
14849
 
14850
class getItemsByRiskyFlag_args:
14851
 
14852
  thrift_spec = (
14853
  )
14854
 
14855
  def read(self, iprot):
14856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14858
      return
14859
    iprot.readStructBegin()
14860
    while True:
14861
      (fname, ftype, fid) = iprot.readFieldBegin()
14862
      if ftype == TType.STOP:
14863
        break
14864
      else:
14865
        iprot.skip(ftype)
14866
      iprot.readFieldEnd()
14867
    iprot.readStructEnd()
14868
 
14869
  def write(self, oprot):
14870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14872
      return
14873
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
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 getItemsByRiskyFlag_result:
14893
  """
14894
  Attributes:
14895
   - success
14896
  """
14897
 
14898
  thrift_spec = (
14899
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14900
  )
14901
 
14902
  def __init__(self, success=None,):
14903
    self.success = success
14904
 
14905
  def read(self, iprot):
14906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14908
      return
14909
    iprot.readStructBegin()
14910
    while True:
14911
      (fname, ftype, fid) = iprot.readFieldBegin()
14912
      if ftype == TType.STOP:
14913
        break
14914
      if fid == 0:
14915
        if ftype == TType.LIST:
14916
          self.success = []
9155 kshitij.so 14917
          (_etype279, _size276) = iprot.readListBegin()
14918
          for _i280 in xrange(_size276):
14919
            _elem281 = Item()
14920
            _elem281.read(iprot)
14921
            self.success.append(_elem281)
5944 mandeep.dh 14922
          iprot.readListEnd()
14923
        else:
14924
          iprot.skip(ftype)
14925
      else:
14926
        iprot.skip(ftype)
14927
      iprot.readFieldEnd()
14928
    iprot.readStructEnd()
14929
 
14930
  def write(self, oprot):
14931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14933
      return
14934
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
14935
    if self.success is not None:
14936
      oprot.writeFieldBegin('success', TType.LIST, 0)
14937
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 14938
      for iter282 in self.success:
14939
        iter282.write(oprot)
5944 mandeep.dh 14940
      oprot.writeListEnd()
14941
      oprot.writeFieldEnd()
14942
    oprot.writeFieldStop()
14943
    oprot.writeStructEnd()
14944
 
14945
  def validate(self):
14946
    return
14947
 
14948
 
14949
  def __repr__(self):
14950
    L = ['%s=%r' % (key, value)
14951
      for key, value in self.__dict__.iteritems()]
14952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14953
 
14954
  def __eq__(self, other):
14955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14956
 
14957
  def __ne__(self, other):
14958
    return not (self == other)
14959
 
14960
class getItemsForMasterSheet_args:
14961
  """
14962
  Attributes:
14963
   - category
14964
   - brand
14965
  """
14966
 
14967
  thrift_spec = (
14968
    None, # 0
14969
    (1, TType.STRING, 'category', None, None, ), # 1
14970
    (2, TType.STRING, 'brand', None, None, ), # 2
14971
  )
14972
 
14973
  def __init__(self, category=None, brand=None,):
14974
    self.category = category
14975
    self.brand = brand
14976
 
14977
  def read(self, iprot):
14978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14980
      return
14981
    iprot.readStructBegin()
14982
    while True:
14983
      (fname, ftype, fid) = iprot.readFieldBegin()
14984
      if ftype == TType.STOP:
14985
        break
14986
      if fid == 1:
14987
        if ftype == TType.STRING:
14988
          self.category = iprot.readString();
14989
        else:
14990
          iprot.skip(ftype)
14991
      elif fid == 2:
14992
        if ftype == TType.STRING:
14993
          self.brand = iprot.readString();
14994
        else:
14995
          iprot.skip(ftype)
14996
      else:
14997
        iprot.skip(ftype)
14998
      iprot.readFieldEnd()
14999
    iprot.readStructEnd()
15000
 
15001
  def write(self, oprot):
15002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15004
      return
15005
    oprot.writeStructBegin('getItemsForMasterSheet_args')
15006
    if self.category is not None:
15007
      oprot.writeFieldBegin('category', TType.STRING, 1)
15008
      oprot.writeString(self.category)
15009
      oprot.writeFieldEnd()
15010
    if self.brand is not None:
15011
      oprot.writeFieldBegin('brand', TType.STRING, 2)
15012
      oprot.writeString(self.brand)
15013
      oprot.writeFieldEnd()
15014
    oprot.writeFieldStop()
15015
    oprot.writeStructEnd()
15016
 
15017
  def validate(self):
15018
    return
15019
 
15020
 
15021
  def __repr__(self):
15022
    L = ['%s=%r' % (key, value)
15023
      for key, value in self.__dict__.iteritems()]
15024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15025
 
15026
  def __eq__(self, other):
15027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15028
 
15029
  def __ne__(self, other):
15030
    return not (self == other)
15031
 
15032
class getItemsForMasterSheet_result:
15033
  """
15034
  Attributes:
15035
   - success
15036
  """
15037
 
15038
  thrift_spec = (
15039
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
15040
  )
15041
 
15042
  def __init__(self, success=None,):
15043
    self.success = success
15044
 
15045
  def read(self, iprot):
15046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15048
      return
15049
    iprot.readStructBegin()
15050
    while True:
15051
      (fname, ftype, fid) = iprot.readFieldBegin()
15052
      if ftype == TType.STOP:
15053
        break
15054
      if fid == 0:
15055
        if ftype == TType.LIST:
15056
          self.success = []
9155 kshitij.so 15057
          (_etype286, _size283) = iprot.readListBegin()
15058
          for _i287 in xrange(_size283):
15059
            _elem288 = Item()
15060
            _elem288.read(iprot)
15061
            self.success.append(_elem288)
5944 mandeep.dh 15062
          iprot.readListEnd()
15063
        else:
15064
          iprot.skip(ftype)
15065
      else:
15066
        iprot.skip(ftype)
15067
      iprot.readFieldEnd()
15068
    iprot.readStructEnd()
15069
 
15070
  def write(self, oprot):
15071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15073
      return
15074
    oprot.writeStructBegin('getItemsForMasterSheet_result')
15075
    if self.success is not None:
15076
      oprot.writeFieldBegin('success', TType.LIST, 0)
15077
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15078
      for iter289 in self.success:
15079
        iter289.write(oprot)
5944 mandeep.dh 15080
      oprot.writeListEnd()
15081
      oprot.writeFieldEnd()
15082
    oprot.writeFieldStop()
15083
    oprot.writeStructEnd()
15084
 
15085
  def validate(self):
15086
    return
15087
 
15088
 
15089
  def __repr__(self):
15090
    L = ['%s=%r' % (key, value)
15091
      for key, value in self.__dict__.iteritems()]
15092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15093
 
15094
  def __eq__(self, other):
15095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15096
 
15097
  def __ne__(self, other):
15098
    return not (self == other)
15099
 
15100
class getSimilarItemsCatalogIds_args:
15101
  """
15102
  Attributes:
15103
   - beginIndex
15104
   - totalItems
15105
   - itemId
15106
  """
15107
 
15108
  thrift_spec = (
15109
    None, # 0
15110
    (1, TType.I64, 'beginIndex', None, None, ), # 1
15111
    (2, TType.I64, 'totalItems', None, None, ), # 2
15112
    (3, TType.I64, 'itemId', None, None, ), # 3
15113
  )
15114
 
15115
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
15116
    self.beginIndex = beginIndex
15117
    self.totalItems = totalItems
15118
    self.itemId = itemId
15119
 
15120
  def read(self, iprot):
15121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15123
      return
15124
    iprot.readStructBegin()
15125
    while True:
15126
      (fname, ftype, fid) = iprot.readFieldBegin()
15127
      if ftype == TType.STOP:
15128
        break
15129
      if fid == 1:
15130
        if ftype == TType.I64:
15131
          self.beginIndex = iprot.readI64();
15132
        else:
15133
          iprot.skip(ftype)
15134
      elif fid == 2:
15135
        if ftype == TType.I64:
15136
          self.totalItems = iprot.readI64();
15137
        else:
15138
          iprot.skip(ftype)
15139
      elif fid == 3:
15140
        if ftype == TType.I64:
15141
          self.itemId = iprot.readI64();
15142
        else:
15143
          iprot.skip(ftype)
15144
      else:
15145
        iprot.skip(ftype)
15146
      iprot.readFieldEnd()
15147
    iprot.readStructEnd()
15148
 
15149
  def write(self, oprot):
15150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15152
      return
15153
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
15154
    if self.beginIndex is not None:
15155
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
15156
      oprot.writeI64(self.beginIndex)
15157
      oprot.writeFieldEnd()
15158
    if self.totalItems is not None:
15159
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
15160
      oprot.writeI64(self.totalItems)
15161
      oprot.writeFieldEnd()
15162
    if self.itemId is not None:
15163
      oprot.writeFieldBegin('itemId', TType.I64, 3)
15164
      oprot.writeI64(self.itemId)
15165
      oprot.writeFieldEnd()
15166
    oprot.writeFieldStop()
15167
    oprot.writeStructEnd()
15168
 
15169
  def validate(self):
15170
    return
15171
 
15172
 
15173
  def __repr__(self):
15174
    L = ['%s=%r' % (key, value)
15175
      for key, value in self.__dict__.iteritems()]
15176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15177
 
15178
  def __eq__(self, other):
15179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15180
 
15181
  def __ne__(self, other):
15182
    return not (self == other)
15183
 
15184
class getSimilarItemsCatalogIds_result:
15185
  """
15186
  Attributes:
15187
   - success
15188
  """
15189
 
15190
  thrift_spec = (
15191
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
15192
  )
15193
 
15194
  def __init__(self, success=None,):
15195
    self.success = success
15196
 
15197
  def read(self, iprot):
15198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15200
      return
15201
    iprot.readStructBegin()
15202
    while True:
15203
      (fname, ftype, fid) = iprot.readFieldBegin()
15204
      if ftype == TType.STOP:
15205
        break
15206
      if fid == 0:
15207
        if ftype == TType.LIST:
15208
          self.success = []
9155 kshitij.so 15209
          (_etype293, _size290) = iprot.readListBegin()
15210
          for _i294 in xrange(_size290):
15211
            _elem295 = iprot.readI64();
15212
            self.success.append(_elem295)
5944 mandeep.dh 15213
          iprot.readListEnd()
15214
        else:
15215
          iprot.skip(ftype)
15216
      else:
15217
        iprot.skip(ftype)
15218
      iprot.readFieldEnd()
15219
    iprot.readStructEnd()
15220
 
15221
  def write(self, oprot):
15222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15224
      return
15225
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
15226
    if self.success is not None:
15227
      oprot.writeFieldBegin('success', TType.LIST, 0)
15228
      oprot.writeListBegin(TType.I64, len(self.success))
9155 kshitij.so 15229
      for iter296 in self.success:
15230
        oprot.writeI64(iter296)
5944 mandeep.dh 15231
      oprot.writeListEnd()
15232
      oprot.writeFieldEnd()
15233
    oprot.writeFieldStop()
15234
    oprot.writeStructEnd()
15235
 
15236
  def validate(self):
15237
    return
15238
 
15239
 
15240
  def __repr__(self):
15241
    L = ['%s=%r' % (key, value)
15242
      for key, value in self.__dict__.iteritems()]
15243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15244
 
15245
  def __eq__(self, other):
15246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15247
 
15248
  def __ne__(self, other):
15249
    return not (self == other)
15250
 
15251
class addProductNotification_args:
15252
  """
15253
  Attributes:
15254
   - itemId
15255
   - email
15256
  """
15257
 
15258
  thrift_spec = None
15259
  def __init__(self, itemId=None, email=None,):
15260
    self.itemId = itemId
15261
    self.email = email
15262
 
15263
  def read(self, iprot):
15264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15266
      return
15267
    iprot.readStructBegin()
15268
    while True:
15269
      (fname, ftype, fid) = iprot.readFieldBegin()
15270
      if ftype == TType.STOP:
15271
        break
15272
      if fid == -1:
15273
        if ftype == TType.I64:
15274
          self.itemId = iprot.readI64();
15275
        else:
15276
          iprot.skip(ftype)
15277
      elif fid == -2:
15278
        if ftype == TType.STRING:
15279
          self.email = iprot.readString();
15280
        else:
15281
          iprot.skip(ftype)
15282
      else:
15283
        iprot.skip(ftype)
15284
      iprot.readFieldEnd()
15285
    iprot.readStructEnd()
15286
 
15287
  def write(self, oprot):
15288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15290
      return
15291
    oprot.writeStructBegin('addProductNotification_args')
15292
    if self.email is not None:
15293
      oprot.writeFieldBegin('email', TType.STRING, -2)
15294
      oprot.writeString(self.email)
15295
      oprot.writeFieldEnd()
15296
    if self.itemId is not None:
15297
      oprot.writeFieldBegin('itemId', TType.I64, -1)
15298
      oprot.writeI64(self.itemId)
15299
      oprot.writeFieldEnd()
15300
    oprot.writeFieldStop()
15301
    oprot.writeStructEnd()
15302
 
15303
  def validate(self):
15304
    return
15305
 
15306
 
15307
  def __repr__(self):
15308
    L = ['%s=%r' % (key, value)
15309
      for key, value in self.__dict__.iteritems()]
15310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15311
 
15312
  def __eq__(self, other):
15313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15314
 
15315
  def __ne__(self, other):
15316
    return not (self == other)
15317
 
15318
class addProductNotification_result:
15319
  """
15320
  Attributes:
15321
   - success
15322
  """
15323
 
15324
  thrift_spec = (
15325
    (0, TType.BOOL, 'success', None, None, ), # 0
15326
  )
15327
 
15328
  def __init__(self, success=None,):
15329
    self.success = success
15330
 
15331
  def read(self, iprot):
15332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15334
      return
15335
    iprot.readStructBegin()
15336
    while True:
15337
      (fname, ftype, fid) = iprot.readFieldBegin()
15338
      if ftype == TType.STOP:
15339
        break
15340
      if fid == 0:
15341
        if ftype == TType.BOOL:
15342
          self.success = iprot.readBool();
15343
        else:
15344
          iprot.skip(ftype)
15345
      else:
15346
        iprot.skip(ftype)
15347
      iprot.readFieldEnd()
15348
    iprot.readStructEnd()
15349
 
15350
  def write(self, oprot):
15351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15353
      return
15354
    oprot.writeStructBegin('addProductNotification_result')
15355
    if self.success is not None:
15356
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15357
      oprot.writeBool(self.success)
15358
      oprot.writeFieldEnd()
15359
    oprot.writeFieldStop()
15360
    oprot.writeStructEnd()
15361
 
15362
  def validate(self):
15363
    return
15364
 
15365
 
15366
  def __repr__(self):
15367
    L = ['%s=%r' % (key, value)
15368
      for key, value in self.__dict__.iteritems()]
15369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15370
 
15371
  def __eq__(self, other):
15372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15373
 
15374
  def __ne__(self, other):
15375
    return not (self == other)
15376
 
15377
class sendProductNotifications_args:
15378
 
15379
  thrift_spec = (
15380
  )
15381
 
15382
  def read(self, iprot):
15383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15385
      return
15386
    iprot.readStructBegin()
15387
    while True:
15388
      (fname, ftype, fid) = iprot.readFieldBegin()
15389
      if ftype == TType.STOP:
15390
        break
15391
      else:
15392
        iprot.skip(ftype)
15393
      iprot.readFieldEnd()
15394
    iprot.readStructEnd()
15395
 
15396
  def write(self, oprot):
15397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15399
      return
15400
    oprot.writeStructBegin('sendProductNotifications_args')
15401
    oprot.writeFieldStop()
15402
    oprot.writeStructEnd()
15403
 
15404
  def validate(self):
15405
    return
15406
 
15407
 
15408
  def __repr__(self):
15409
    L = ['%s=%r' % (key, value)
15410
      for key, value in self.__dict__.iteritems()]
15411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15412
 
15413
  def __eq__(self, other):
15414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15415
 
15416
  def __ne__(self, other):
15417
    return not (self == other)
15418
 
15419
class sendProductNotifications_result:
15420
  """
15421
  Attributes:
15422
   - success
15423
  """
15424
 
15425
  thrift_spec = (
15426
    (0, TType.BOOL, 'success', None, None, ), # 0
15427
  )
15428
 
15429
  def __init__(self, success=None,):
15430
    self.success = success
15431
 
15432
  def read(self, iprot):
15433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15435
      return
15436
    iprot.readStructBegin()
15437
    while True:
15438
      (fname, ftype, fid) = iprot.readFieldBegin()
15439
      if ftype == TType.STOP:
15440
        break
15441
      if fid == 0:
15442
        if ftype == TType.BOOL:
15443
          self.success = iprot.readBool();
15444
        else:
15445
          iprot.skip(ftype)
15446
      else:
15447
        iprot.skip(ftype)
15448
      iprot.readFieldEnd()
15449
    iprot.readStructEnd()
15450
 
15451
  def write(self, oprot):
15452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15454
      return
15455
    oprot.writeStructBegin('sendProductNotifications_result')
15456
    if self.success is not None:
15457
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15458
      oprot.writeBool(self.success)
15459
      oprot.writeFieldEnd()
15460
    oprot.writeFieldStop()
15461
    oprot.writeStructEnd()
15462
 
15463
  def validate(self):
15464
    return
15465
 
15466
 
15467
  def __repr__(self):
15468
    L = ['%s=%r' % (key, value)
15469
      for key, value in self.__dict__.iteritems()]
15470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15471
 
15472
  def __eq__(self, other):
15473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15474
 
15475
  def __ne__(self, other):
15476
    return not (self == other)
15477
 
15478
class getAllBrandsByCategory_args:
15479
  """
15480
  Attributes:
15481
   - categoryId
15482
  """
15483
 
15484
  thrift_spec = (
15485
    None, # 0
15486
    (1, TType.I64, 'categoryId', None, None, ), # 1
15487
  )
15488
 
15489
  def __init__(self, categoryId=None,):
15490
    self.categoryId = categoryId
15491
 
15492
  def read(self, iprot):
15493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15495
      return
15496
    iprot.readStructBegin()
15497
    while True:
15498
      (fname, ftype, fid) = iprot.readFieldBegin()
15499
      if ftype == TType.STOP:
15500
        break
15501
      if fid == 1:
15502
        if ftype == TType.I64:
15503
          self.categoryId = iprot.readI64();
15504
        else:
15505
          iprot.skip(ftype)
15506
      else:
15507
        iprot.skip(ftype)
15508
      iprot.readFieldEnd()
15509
    iprot.readStructEnd()
15510
 
15511
  def write(self, oprot):
15512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15514
      return
15515
    oprot.writeStructBegin('getAllBrandsByCategory_args')
15516
    if self.categoryId is not None:
15517
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
15518
      oprot.writeI64(self.categoryId)
15519
      oprot.writeFieldEnd()
15520
    oprot.writeFieldStop()
15521
    oprot.writeStructEnd()
15522
 
15523
  def validate(self):
15524
    return
15525
 
15526
 
15527
  def __repr__(self):
15528
    L = ['%s=%r' % (key, value)
15529
      for key, value in self.__dict__.iteritems()]
15530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15531
 
15532
  def __eq__(self, other):
15533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15534
 
15535
  def __ne__(self, other):
15536
    return not (self == other)
15537
 
15538
class getAllBrandsByCategory_result:
15539
  """
15540
  Attributes:
15541
   - success
15542
  """
15543
 
15544
  thrift_spec = (
15545
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
15546
  )
15547
 
15548
  def __init__(self, success=None,):
15549
    self.success = success
15550
 
15551
  def read(self, iprot):
15552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15554
      return
15555
    iprot.readStructBegin()
15556
    while True:
15557
      (fname, ftype, fid) = iprot.readFieldBegin()
15558
      if ftype == TType.STOP:
15559
        break
15560
      if fid == 0:
15561
        if ftype == TType.LIST:
15562
          self.success = []
9155 kshitij.so 15563
          (_etype300, _size297) = iprot.readListBegin()
15564
          for _i301 in xrange(_size297):
15565
            _elem302 = iprot.readString();
15566
            self.success.append(_elem302)
5944 mandeep.dh 15567
          iprot.readListEnd()
15568
        else:
15569
          iprot.skip(ftype)
15570
      else:
15571
        iprot.skip(ftype)
15572
      iprot.readFieldEnd()
15573
    iprot.readStructEnd()
15574
 
15575
  def write(self, oprot):
15576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15578
      return
15579
    oprot.writeStructBegin('getAllBrandsByCategory_result')
15580
    if self.success is not None:
15581
      oprot.writeFieldBegin('success', TType.LIST, 0)
15582
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 15583
      for iter303 in self.success:
15584
        oprot.writeString(iter303)
5944 mandeep.dh 15585
      oprot.writeListEnd()
15586
      oprot.writeFieldEnd()
15587
    oprot.writeFieldStop()
15588
    oprot.writeStructEnd()
15589
 
15590
  def validate(self):
15591
    return
15592
 
15593
 
15594
  def __repr__(self):
15595
    L = ['%s=%r' % (key, value)
15596
      for key, value in self.__dict__.iteritems()]
15597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15598
 
15599
  def __eq__(self, other):
15600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15601
 
15602
  def __ne__(self, other):
15603
    return not (self == other)
15604
 
15605
class getAllBrands_args:
15606
 
15607
  thrift_spec = (
15608
  )
15609
 
15610
  def read(self, iprot):
15611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15613
      return
15614
    iprot.readStructBegin()
15615
    while True:
15616
      (fname, ftype, fid) = iprot.readFieldBegin()
15617
      if ftype == TType.STOP:
15618
        break
15619
      else:
15620
        iprot.skip(ftype)
15621
      iprot.readFieldEnd()
15622
    iprot.readStructEnd()
15623
 
15624
  def write(self, oprot):
15625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15627
      return
15628
    oprot.writeStructBegin('getAllBrands_args')
15629
    oprot.writeFieldStop()
15630
    oprot.writeStructEnd()
15631
 
15632
  def validate(self):
15633
    return
15634
 
15635
 
15636
  def __repr__(self):
15637
    L = ['%s=%r' % (key, value)
15638
      for key, value in self.__dict__.iteritems()]
15639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15640
 
15641
  def __eq__(self, other):
15642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15643
 
15644
  def __ne__(self, other):
15645
    return not (self == other)
15646
 
15647
class getAllBrands_result:
15648
  """
15649
  Attributes:
15650
   - success
15651
  """
15652
 
15653
  thrift_spec = (
15654
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
15655
  )
15656
 
15657
  def __init__(self, success=None,):
15658
    self.success = success
15659
 
15660
  def read(self, iprot):
15661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15663
      return
15664
    iprot.readStructBegin()
15665
    while True:
15666
      (fname, ftype, fid) = iprot.readFieldBegin()
15667
      if ftype == TType.STOP:
15668
        break
15669
      if fid == 0:
15670
        if ftype == TType.LIST:
15671
          self.success = []
9155 kshitij.so 15672
          (_etype307, _size304) = iprot.readListBegin()
15673
          for _i308 in xrange(_size304):
15674
            _elem309 = iprot.readString();
15675
            self.success.append(_elem309)
5944 mandeep.dh 15676
          iprot.readListEnd()
15677
        else:
15678
          iprot.skip(ftype)
15679
      else:
15680
        iprot.skip(ftype)
15681
      iprot.readFieldEnd()
15682
    iprot.readStructEnd()
15683
 
15684
  def write(self, oprot):
15685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15687
      return
15688
    oprot.writeStructBegin('getAllBrands_result')
15689
    if self.success is not None:
15690
      oprot.writeFieldBegin('success', TType.LIST, 0)
15691
      oprot.writeListBegin(TType.STRING, len(self.success))
9155 kshitij.so 15692
      for iter310 in self.success:
15693
        oprot.writeString(iter310)
5944 mandeep.dh 15694
      oprot.writeListEnd()
15695
      oprot.writeFieldEnd()
15696
    oprot.writeFieldStop()
15697
    oprot.writeStructEnd()
15698
 
15699
  def validate(self):
15700
    return
15701
 
15702
 
15703
  def __repr__(self):
15704
    L = ['%s=%r' % (key, value)
15705
      for key, value in self.__dict__.iteritems()]
15706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15707
 
15708
  def __eq__(self, other):
15709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15710
 
15711
  def __ne__(self, other):
15712
    return not (self == other)
15713
 
15714
class getAllSources_args:
15715
 
15716
  thrift_spec = (
15717
  )
15718
 
15719
  def read(self, iprot):
15720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15722
      return
15723
    iprot.readStructBegin()
15724
    while True:
15725
      (fname, ftype, fid) = iprot.readFieldBegin()
15726
      if ftype == TType.STOP:
15727
        break
15728
      else:
15729
        iprot.skip(ftype)
15730
      iprot.readFieldEnd()
15731
    iprot.readStructEnd()
15732
 
15733
  def write(self, oprot):
15734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15736
      return
15737
    oprot.writeStructBegin('getAllSources_args')
15738
    oprot.writeFieldStop()
15739
    oprot.writeStructEnd()
15740
 
15741
  def validate(self):
15742
    return
15743
 
15744
 
15745
  def __repr__(self):
15746
    L = ['%s=%r' % (key, value)
15747
      for key, value in self.__dict__.iteritems()]
15748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15749
 
15750
  def __eq__(self, other):
15751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15752
 
15753
  def __ne__(self, other):
15754
    return not (self == other)
15755
 
15756
class getAllSources_result:
15757
  """
15758
  Attributes:
15759
   - success
15760
  """
15761
 
15762
  thrift_spec = (
15763
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
15764
  )
15765
 
15766
  def __init__(self, success=None,):
15767
    self.success = success
15768
 
15769
  def read(self, iprot):
15770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15772
      return
15773
    iprot.readStructBegin()
15774
    while True:
15775
      (fname, ftype, fid) = iprot.readFieldBegin()
15776
      if ftype == TType.STOP:
15777
        break
15778
      if fid == 0:
15779
        if ftype == TType.LIST:
15780
          self.success = []
9155 kshitij.so 15781
          (_etype314, _size311) = iprot.readListBegin()
15782
          for _i315 in xrange(_size311):
15783
            _elem316 = Source()
15784
            _elem316.read(iprot)
15785
            self.success.append(_elem316)
5944 mandeep.dh 15786
          iprot.readListEnd()
15787
        else:
15788
          iprot.skip(ftype)
15789
      else:
15790
        iprot.skip(ftype)
15791
      iprot.readFieldEnd()
15792
    iprot.readStructEnd()
15793
 
15794
  def write(self, oprot):
15795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15797
      return
15798
    oprot.writeStructBegin('getAllSources_result')
15799
    if self.success is not None:
15800
      oprot.writeFieldBegin('success', TType.LIST, 0)
15801
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 15802
      for iter317 in self.success:
15803
        iter317.write(oprot)
5944 mandeep.dh 15804
      oprot.writeListEnd()
15805
      oprot.writeFieldEnd()
15806
    oprot.writeFieldStop()
15807
    oprot.writeStructEnd()
15808
 
15809
  def validate(self):
15810
    return
15811
 
15812
 
15813
  def __repr__(self):
15814
    L = ['%s=%r' % (key, value)
15815
      for key, value in self.__dict__.iteritems()]
15816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15817
 
15818
  def __eq__(self, other):
15819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15820
 
15821
  def __ne__(self, other):
15822
    return not (self == other)
15823
 
15824
class getItemPricingBySource_args:
15825
  """
15826
  Attributes:
15827
   - itemId
15828
   - sourceId
15829
  """
15830
 
15831
  thrift_spec = (
15832
    None, # 0
15833
    (1, TType.I64, 'itemId', None, None, ), # 1
15834
    (2, TType.I64, 'sourceId', None, None, ), # 2
15835
  )
15836
 
15837
  def __init__(self, itemId=None, sourceId=None,):
15838
    self.itemId = itemId
15839
    self.sourceId = sourceId
15840
 
15841
  def read(self, iprot):
15842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15844
      return
15845
    iprot.readStructBegin()
15846
    while True:
15847
      (fname, ftype, fid) = iprot.readFieldBegin()
15848
      if ftype == TType.STOP:
15849
        break
15850
      if fid == 1:
15851
        if ftype == TType.I64:
15852
          self.itemId = iprot.readI64();
15853
        else:
15854
          iprot.skip(ftype)
15855
      elif fid == 2:
15856
        if ftype == TType.I64:
15857
          self.sourceId = iprot.readI64();
15858
        else:
15859
          iprot.skip(ftype)
15860
      else:
15861
        iprot.skip(ftype)
15862
      iprot.readFieldEnd()
15863
    iprot.readStructEnd()
15864
 
15865
  def write(self, oprot):
15866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15868
      return
15869
    oprot.writeStructBegin('getItemPricingBySource_args')
15870
    if self.itemId is not None:
15871
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15872
      oprot.writeI64(self.itemId)
15873
      oprot.writeFieldEnd()
15874
    if self.sourceId is not None:
15875
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
15876
      oprot.writeI64(self.sourceId)
15877
      oprot.writeFieldEnd()
15878
    oprot.writeFieldStop()
15879
    oprot.writeStructEnd()
15880
 
15881
  def validate(self):
15882
    return
15883
 
15884
 
15885
  def __repr__(self):
15886
    L = ['%s=%r' % (key, value)
15887
      for key, value in self.__dict__.iteritems()]
15888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15889
 
15890
  def __eq__(self, other):
15891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15892
 
15893
  def __ne__(self, other):
15894
    return not (self == other)
15895
 
15896
class getItemPricingBySource_result:
15897
  """
15898
  Attributes:
15899
   - success
15900
   - cex
15901
  """
15902
 
15903
  thrift_spec = (
15904
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
15905
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
15906
  )
15907
 
15908
  def __init__(self, success=None, cex=None,):
15909
    self.success = success
15910
    self.cex = cex
15911
 
15912
  def read(self, iprot):
15913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15915
      return
15916
    iprot.readStructBegin()
15917
    while True:
15918
      (fname, ftype, fid) = iprot.readFieldBegin()
15919
      if ftype == TType.STOP:
15920
        break
15921
      if fid == 0:
15922
        if ftype == TType.STRUCT:
15923
          self.success = SourceItemPricing()
15924
          self.success.read(iprot)
15925
        else:
15926
          iprot.skip(ftype)
15927
      elif fid == 1:
15928
        if ftype == TType.STRUCT:
15929
          self.cex = CatalogServiceException()
15930
          self.cex.read(iprot)
15931
        else:
15932
          iprot.skip(ftype)
15933
      else:
15934
        iprot.skip(ftype)
15935
      iprot.readFieldEnd()
15936
    iprot.readStructEnd()
15937
 
15938
  def write(self, oprot):
15939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15941
      return
15942
    oprot.writeStructBegin('getItemPricingBySource_result')
15943
    if self.success is not None:
15944
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15945
      self.success.write(oprot)
15946
      oprot.writeFieldEnd()
15947
    if self.cex is not None:
15948
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
15949
      self.cex.write(oprot)
15950
      oprot.writeFieldEnd()
15951
    oprot.writeFieldStop()
15952
    oprot.writeStructEnd()
15953
 
15954
  def validate(self):
15955
    return
15956
 
15957
 
15958
  def __repr__(self):
15959
    L = ['%s=%r' % (key, value)
15960
      for key, value in self.__dict__.iteritems()]
15961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15962
 
15963
  def __eq__(self, other):
15964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15965
 
15966
  def __ne__(self, other):
15967
    return not (self == other)
15968
 
15969
class addSourceItemPricing_args:
15970
  """
15971
  Attributes:
15972
   - sourceItemPricing
15973
  """
15974
 
15975
  thrift_spec = (
15976
    None, # 0
15977
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
15978
  )
15979
 
15980
  def __init__(self, sourceItemPricing=None,):
15981
    self.sourceItemPricing = sourceItemPricing
15982
 
15983
  def read(self, iprot):
15984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15986
      return
15987
    iprot.readStructBegin()
15988
    while True:
15989
      (fname, ftype, fid) = iprot.readFieldBegin()
15990
      if ftype == TType.STOP:
15991
        break
15992
      if fid == 1:
15993
        if ftype == TType.STRUCT:
15994
          self.sourceItemPricing = SourceItemPricing()
15995
          self.sourceItemPricing.read(iprot)
15996
        else:
15997
          iprot.skip(ftype)
15998
      else:
15999
        iprot.skip(ftype)
16000
      iprot.readFieldEnd()
16001
    iprot.readStructEnd()
16002
 
16003
  def write(self, oprot):
16004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16006
      return
16007
    oprot.writeStructBegin('addSourceItemPricing_args')
16008
    if self.sourceItemPricing is not None:
16009
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
16010
      self.sourceItemPricing.write(oprot)
16011
      oprot.writeFieldEnd()
16012
    oprot.writeFieldStop()
16013
    oprot.writeStructEnd()
16014
 
16015
  def validate(self):
16016
    return
16017
 
16018
 
16019
  def __repr__(self):
16020
    L = ['%s=%r' % (key, value)
16021
      for key, value in self.__dict__.iteritems()]
16022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16023
 
16024
  def __eq__(self, other):
16025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16026
 
16027
  def __ne__(self, other):
16028
    return not (self == other)
16029
 
16030
class addSourceItemPricing_result:
16031
  """
16032
  Attributes:
16033
   - cex
16034
  """
16035
 
16036
  thrift_spec = (
16037
    None, # 0
16038
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16039
  )
16040
 
16041
  def __init__(self, cex=None,):
16042
    self.cex = cex
16043
 
16044
  def read(self, iprot):
16045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16047
      return
16048
    iprot.readStructBegin()
16049
    while True:
16050
      (fname, ftype, fid) = iprot.readFieldBegin()
16051
      if ftype == TType.STOP:
16052
        break
16053
      if fid == 1:
16054
        if ftype == TType.STRUCT:
16055
          self.cex = CatalogServiceException()
16056
          self.cex.read(iprot)
16057
        else:
16058
          iprot.skip(ftype)
16059
      else:
16060
        iprot.skip(ftype)
16061
      iprot.readFieldEnd()
16062
    iprot.readStructEnd()
16063
 
16064
  def write(self, oprot):
16065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16067
      return
16068
    oprot.writeStructBegin('addSourceItemPricing_result')
16069
    if self.cex is not None:
16070
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16071
      self.cex.write(oprot)
16072
      oprot.writeFieldEnd()
16073
    oprot.writeFieldStop()
16074
    oprot.writeStructEnd()
16075
 
16076
  def validate(self):
16077
    return
16078
 
16079
 
16080
  def __repr__(self):
16081
    L = ['%s=%r' % (key, value)
16082
      for key, value in self.__dict__.iteritems()]
16083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16084
 
16085
  def __eq__(self, other):
16086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16087
 
16088
  def __ne__(self, other):
16089
    return not (self == other)
16090
 
16091
class getAllSourcePricing_args:
16092
  """
16093
  Attributes:
16094
   - itemId
16095
  """
16096
 
16097
  thrift_spec = (
16098
    None, # 0
16099
    (1, TType.I64, 'itemId', None, None, ), # 1
16100
  )
16101
 
16102
  def __init__(self, itemId=None,):
16103
    self.itemId = itemId
16104
 
16105
  def read(self, iprot):
16106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16108
      return
16109
    iprot.readStructBegin()
16110
    while True:
16111
      (fname, ftype, fid) = iprot.readFieldBegin()
16112
      if ftype == TType.STOP:
16113
        break
16114
      if fid == 1:
16115
        if ftype == TType.I64:
16116
          self.itemId = iprot.readI64();
16117
        else:
16118
          iprot.skip(ftype)
16119
      else:
16120
        iprot.skip(ftype)
16121
      iprot.readFieldEnd()
16122
    iprot.readStructEnd()
16123
 
16124
  def write(self, oprot):
16125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16127
      return
16128
    oprot.writeStructBegin('getAllSourcePricing_args')
16129
    if self.itemId is not None:
16130
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16131
      oprot.writeI64(self.itemId)
16132
      oprot.writeFieldEnd()
16133
    oprot.writeFieldStop()
16134
    oprot.writeStructEnd()
16135
 
16136
  def validate(self):
16137
    return
16138
 
16139
 
16140
  def __repr__(self):
16141
    L = ['%s=%r' % (key, value)
16142
      for key, value in self.__dict__.iteritems()]
16143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16144
 
16145
  def __eq__(self, other):
16146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16147
 
16148
  def __ne__(self, other):
16149
    return not (self == other)
16150
 
16151
class getAllSourcePricing_result:
16152
  """
16153
  Attributes:
16154
   - success
16155
   - cex
16156
  """
16157
 
16158
  thrift_spec = (
16159
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
16160
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16161
  )
16162
 
16163
  def __init__(self, success=None, cex=None,):
16164
    self.success = success
16165
    self.cex = cex
16166
 
16167
  def read(self, iprot):
16168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16170
      return
16171
    iprot.readStructBegin()
16172
    while True:
16173
      (fname, ftype, fid) = iprot.readFieldBegin()
16174
      if ftype == TType.STOP:
16175
        break
16176
      if fid == 0:
16177
        if ftype == TType.LIST:
16178
          self.success = []
9155 kshitij.so 16179
          (_etype321, _size318) = iprot.readListBegin()
16180
          for _i322 in xrange(_size318):
16181
            _elem323 = SourceItemPricing()
16182
            _elem323.read(iprot)
16183
            self.success.append(_elem323)
5944 mandeep.dh 16184
          iprot.readListEnd()
16185
        else:
16186
          iprot.skip(ftype)
16187
      elif fid == 1:
16188
        if ftype == TType.STRUCT:
16189
          self.cex = CatalogServiceException()
16190
          self.cex.read(iprot)
16191
        else:
16192
          iprot.skip(ftype)
16193
      else:
16194
        iprot.skip(ftype)
16195
      iprot.readFieldEnd()
16196
    iprot.readStructEnd()
16197
 
16198
  def write(self, oprot):
16199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16201
      return
16202
    oprot.writeStructBegin('getAllSourcePricing_result')
16203
    if self.success is not None:
16204
      oprot.writeFieldBegin('success', TType.LIST, 0)
16205
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16206
      for iter324 in self.success:
16207
        iter324.write(oprot)
5944 mandeep.dh 16208
      oprot.writeListEnd()
16209
      oprot.writeFieldEnd()
16210
    if self.cex is not None:
16211
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16212
      self.cex.write(oprot)
16213
      oprot.writeFieldEnd()
16214
    oprot.writeFieldStop()
16215
    oprot.writeStructEnd()
16216
 
16217
  def validate(self):
16218
    return
16219
 
16220
 
16221
  def __repr__(self):
16222
    L = ['%s=%r' % (key, value)
16223
      for key, value in self.__dict__.iteritems()]
16224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16225
 
16226
  def __eq__(self, other):
16227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16228
 
16229
  def __ne__(self, other):
16230
    return not (self == other)
16231
 
16232
class getItemForSource_args:
16233
  """
16234
  Attributes:
16235
   - item_id
16236
   - sourceId
16237
  """
16238
 
16239
  thrift_spec = (
16240
    None, # 0
16241
    (1, TType.I64, 'item_id', None, None, ), # 1
16242
    (2, TType.I64, 'sourceId', None, None, ), # 2
16243
  )
16244
 
16245
  def __init__(self, item_id=None, sourceId=None,):
16246
    self.item_id = item_id
16247
    self.sourceId = sourceId
16248
 
16249
  def read(self, iprot):
16250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16252
      return
16253
    iprot.readStructBegin()
16254
    while True:
16255
      (fname, ftype, fid) = iprot.readFieldBegin()
16256
      if ftype == TType.STOP:
16257
        break
16258
      if fid == 1:
16259
        if ftype == TType.I64:
16260
          self.item_id = iprot.readI64();
16261
        else:
16262
          iprot.skip(ftype)
16263
      elif fid == 2:
16264
        if ftype == TType.I64:
16265
          self.sourceId = iprot.readI64();
16266
        else:
16267
          iprot.skip(ftype)
16268
      else:
16269
        iprot.skip(ftype)
16270
      iprot.readFieldEnd()
16271
    iprot.readStructEnd()
16272
 
16273
  def write(self, oprot):
16274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16276
      return
16277
    oprot.writeStructBegin('getItemForSource_args')
16278
    if self.item_id is not None:
16279
      oprot.writeFieldBegin('item_id', TType.I64, 1)
16280
      oprot.writeI64(self.item_id)
16281
      oprot.writeFieldEnd()
16282
    if self.sourceId is not None:
16283
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
16284
      oprot.writeI64(self.sourceId)
16285
      oprot.writeFieldEnd()
16286
    oprot.writeFieldStop()
16287
    oprot.writeStructEnd()
16288
 
16289
  def validate(self):
16290
    return
16291
 
16292
 
16293
  def __repr__(self):
16294
    L = ['%s=%r' % (key, value)
16295
      for key, value in self.__dict__.iteritems()]
16296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16297
 
16298
  def __eq__(self, other):
16299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16300
 
16301
  def __ne__(self, other):
16302
    return not (self == other)
16303
 
16304
class getItemForSource_result:
16305
  """
16306
  Attributes:
16307
   - success
16308
   - cex
16309
  """
16310
 
16311
  thrift_spec = (
16312
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
16313
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16314
  )
16315
 
16316
  def __init__(self, success=None, cex=None,):
16317
    self.success = success
16318
    self.cex = cex
16319
 
16320
  def read(self, iprot):
16321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16323
      return
16324
    iprot.readStructBegin()
16325
    while True:
16326
      (fname, ftype, fid) = iprot.readFieldBegin()
16327
      if ftype == TType.STOP:
16328
        break
16329
      if fid == 0:
16330
        if ftype == TType.STRUCT:
16331
          self.success = Item()
16332
          self.success.read(iprot)
16333
        else:
16334
          iprot.skip(ftype)
16335
      elif fid == 1:
16336
        if ftype == TType.STRUCT:
16337
          self.cex = CatalogServiceException()
16338
          self.cex.read(iprot)
16339
        else:
16340
          iprot.skip(ftype)
16341
      else:
16342
        iprot.skip(ftype)
16343
      iprot.readFieldEnd()
16344
    iprot.readStructEnd()
16345
 
16346
  def write(self, oprot):
16347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16349
      return
16350
    oprot.writeStructBegin('getItemForSource_result')
16351
    if self.success is not None:
16352
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16353
      self.success.write(oprot)
16354
      oprot.writeFieldEnd()
16355
    if self.cex is not None:
16356
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16357
      self.cex.write(oprot)
16358
      oprot.writeFieldEnd()
16359
    oprot.writeFieldStop()
16360
    oprot.writeStructEnd()
16361
 
16362
  def validate(self):
16363
    return
16364
 
16365
 
16366
  def __repr__(self):
16367
    L = ['%s=%r' % (key, value)
16368
      for key, value in self.__dict__.iteritems()]
16369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16370
 
16371
  def __eq__(self, other):
16372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16373
 
16374
  def __ne__(self, other):
16375
    return not (self == other)
16376
 
16377
class searchItemsInRange_args:
16378
  """
16379
  Attributes:
16380
   - searchTerms
16381
   - offset
16382
   - limit
16383
  """
16384
 
16385
  thrift_spec = (
16386
    None, # 0
16387
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
16388
    (2, TType.I64, 'offset', None, None, ), # 2
16389
    (3, TType.I64, 'limit', None, None, ), # 3
16390
  )
16391
 
16392
  def __init__(self, searchTerms=None, offset=None, limit=None,):
16393
    self.searchTerms = searchTerms
16394
    self.offset = offset
16395
    self.limit = limit
16396
 
16397
  def read(self, iprot):
16398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16400
      return
16401
    iprot.readStructBegin()
16402
    while True:
16403
      (fname, ftype, fid) = iprot.readFieldBegin()
16404
      if ftype == TType.STOP:
16405
        break
16406
      if fid == 1:
16407
        if ftype == TType.LIST:
16408
          self.searchTerms = []
9155 kshitij.so 16409
          (_etype328, _size325) = iprot.readListBegin()
16410
          for _i329 in xrange(_size325):
16411
            _elem330 = iprot.readString();
16412
            self.searchTerms.append(_elem330)
5944 mandeep.dh 16413
          iprot.readListEnd()
16414
        else:
16415
          iprot.skip(ftype)
16416
      elif fid == 2:
16417
        if ftype == TType.I64:
16418
          self.offset = iprot.readI64();
16419
        else:
16420
          iprot.skip(ftype)
16421
      elif fid == 3:
16422
        if ftype == TType.I64:
16423
          self.limit = iprot.readI64();
16424
        else:
16425
          iprot.skip(ftype)
16426
      else:
16427
        iprot.skip(ftype)
16428
      iprot.readFieldEnd()
16429
    iprot.readStructEnd()
16430
 
16431
  def write(self, oprot):
16432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16434
      return
16435
    oprot.writeStructBegin('searchItemsInRange_args')
16436
    if self.searchTerms is not None:
16437
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
16438
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 16439
      for iter331 in self.searchTerms:
16440
        oprot.writeString(iter331)
5944 mandeep.dh 16441
      oprot.writeListEnd()
16442
      oprot.writeFieldEnd()
16443
    if self.offset is not None:
16444
      oprot.writeFieldBegin('offset', TType.I64, 2)
16445
      oprot.writeI64(self.offset)
16446
      oprot.writeFieldEnd()
16447
    if self.limit is not None:
16448
      oprot.writeFieldBegin('limit', TType.I64, 3)
16449
      oprot.writeI64(self.limit)
16450
      oprot.writeFieldEnd()
16451
    oprot.writeFieldStop()
16452
    oprot.writeStructEnd()
16453
 
16454
  def validate(self):
16455
    return
16456
 
16457
 
16458
  def __repr__(self):
16459
    L = ['%s=%r' % (key, value)
16460
      for key, value in self.__dict__.iteritems()]
16461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16462
 
16463
  def __eq__(self, other):
16464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16465
 
16466
  def __ne__(self, other):
16467
    return not (self == other)
16468
 
16469
class searchItemsInRange_result:
16470
  """
16471
  Attributes:
16472
   - success
16473
  """
16474
 
16475
  thrift_spec = (
16476
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
16477
  )
16478
 
16479
  def __init__(self, success=None,):
16480
    self.success = success
16481
 
16482
  def read(self, iprot):
16483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16485
      return
16486
    iprot.readStructBegin()
16487
    while True:
16488
      (fname, ftype, fid) = iprot.readFieldBegin()
16489
      if ftype == TType.STOP:
16490
        break
16491
      if fid == 0:
16492
        if ftype == TType.LIST:
16493
          self.success = []
9155 kshitij.so 16494
          (_etype335, _size332) = iprot.readListBegin()
16495
          for _i336 in xrange(_size332):
16496
            _elem337 = Item()
16497
            _elem337.read(iprot)
16498
            self.success.append(_elem337)
5944 mandeep.dh 16499
          iprot.readListEnd()
16500
        else:
16501
          iprot.skip(ftype)
16502
      else:
16503
        iprot.skip(ftype)
16504
      iprot.readFieldEnd()
16505
    iprot.readStructEnd()
16506
 
16507
  def write(self, oprot):
16508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16510
      return
16511
    oprot.writeStructBegin('searchItemsInRange_result')
16512
    if self.success is not None:
16513
      oprot.writeFieldBegin('success', TType.LIST, 0)
16514
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16515
      for iter338 in self.success:
16516
        iter338.write(oprot)
5944 mandeep.dh 16517
      oprot.writeListEnd()
16518
      oprot.writeFieldEnd()
16519
    oprot.writeFieldStop()
16520
    oprot.writeStructEnd()
16521
 
16522
  def validate(self):
16523
    return
16524
 
16525
 
16526
  def __repr__(self):
16527
    L = ['%s=%r' % (key, value)
16528
      for key, value in self.__dict__.iteritems()]
16529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16530
 
16531
  def __eq__(self, other):
16532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16533
 
16534
  def __ne__(self, other):
16535
    return not (self == other)
16536
 
16537
class getSearchResultCount_args:
16538
  """
16539
  Attributes:
16540
   - searchTerms
16541
  """
16542
 
16543
  thrift_spec = (
16544
    None, # 0
16545
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
16546
  )
16547
 
16548
  def __init__(self, searchTerms=None,):
16549
    self.searchTerms = searchTerms
16550
 
16551
  def read(self, iprot):
16552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16554
      return
16555
    iprot.readStructBegin()
16556
    while True:
16557
      (fname, ftype, fid) = iprot.readFieldBegin()
16558
      if ftype == TType.STOP:
16559
        break
16560
      if fid == 1:
16561
        if ftype == TType.LIST:
16562
          self.searchTerms = []
9155 kshitij.so 16563
          (_etype342, _size339) = iprot.readListBegin()
16564
          for _i343 in xrange(_size339):
16565
            _elem344 = iprot.readString();
16566
            self.searchTerms.append(_elem344)
5944 mandeep.dh 16567
          iprot.readListEnd()
16568
        else:
16569
          iprot.skip(ftype)
16570
      else:
16571
        iprot.skip(ftype)
16572
      iprot.readFieldEnd()
16573
    iprot.readStructEnd()
16574
 
16575
  def write(self, oprot):
16576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16578
      return
16579
    oprot.writeStructBegin('getSearchResultCount_args')
16580
    if self.searchTerms is not None:
16581
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
16582
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
9155 kshitij.so 16583
      for iter345 in self.searchTerms:
16584
        oprot.writeString(iter345)
5944 mandeep.dh 16585
      oprot.writeListEnd()
16586
      oprot.writeFieldEnd()
16587
    oprot.writeFieldStop()
16588
    oprot.writeStructEnd()
16589
 
16590
  def validate(self):
16591
    return
16592
 
16593
 
16594
  def __repr__(self):
16595
    L = ['%s=%r' % (key, value)
16596
      for key, value in self.__dict__.iteritems()]
16597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16598
 
16599
  def __eq__(self, other):
16600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16601
 
16602
  def __ne__(self, other):
16603
    return not (self == other)
16604
 
16605
class getSearchResultCount_result:
16606
  """
16607
  Attributes:
16608
   - success
16609
  """
16610
 
16611
  thrift_spec = (
16612
    (0, TType.I32, 'success', None, None, ), # 0
16613
  )
16614
 
16615
  def __init__(self, success=None,):
16616
    self.success = success
16617
 
16618
  def read(self, iprot):
16619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16621
      return
16622
    iprot.readStructBegin()
16623
    while True:
16624
      (fname, ftype, fid) = iprot.readFieldBegin()
16625
      if ftype == TType.STOP:
16626
        break
16627
      if fid == 0:
16628
        if ftype == TType.I32:
16629
          self.success = iprot.readI32();
16630
        else:
16631
          iprot.skip(ftype)
16632
      else:
16633
        iprot.skip(ftype)
16634
      iprot.readFieldEnd()
16635
    iprot.readStructEnd()
16636
 
16637
  def write(self, oprot):
16638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16640
      return
16641
    oprot.writeStructBegin('getSearchResultCount_result')
16642
    if self.success is not None:
16643
      oprot.writeFieldBegin('success', TType.I32, 0)
16644
      oprot.writeI32(self.success)
16645
      oprot.writeFieldEnd()
16646
    oprot.writeFieldStop()
16647
    oprot.writeStructEnd()
16648
 
16649
  def validate(self):
16650
    return
16651
 
16652
 
16653
  def __repr__(self):
16654
    L = ['%s=%r' % (key, value)
16655
      for key, value in self.__dict__.iteritems()]
16656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16657
 
16658
  def __eq__(self, other):
16659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16660
 
16661
  def __ne__(self, other):
16662
    return not (self == other)
16663
 
16664
class getProductNotifications_args:
16665
  """
16666
  Attributes:
16667
   - startDateTime
16668
  """
16669
 
16670
  thrift_spec = (
16671
    None, # 0
16672
    (1, TType.I64, 'startDateTime', None, None, ), # 1
16673
  )
16674
 
16675
  def __init__(self, startDateTime=None,):
16676
    self.startDateTime = startDateTime
16677
 
16678
  def read(self, iprot):
16679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16681
      return
16682
    iprot.readStructBegin()
16683
    while True:
16684
      (fname, ftype, fid) = iprot.readFieldBegin()
16685
      if ftype == TType.STOP:
16686
        break
16687
      if fid == 1:
16688
        if ftype == TType.I64:
16689
          self.startDateTime = iprot.readI64();
16690
        else:
16691
          iprot.skip(ftype)
16692
      else:
16693
        iprot.skip(ftype)
16694
      iprot.readFieldEnd()
16695
    iprot.readStructEnd()
16696
 
16697
  def write(self, oprot):
16698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16700
      return
16701
    oprot.writeStructBegin('getProductNotifications_args')
16702
    if self.startDateTime is not None:
16703
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
16704
      oprot.writeI64(self.startDateTime)
16705
      oprot.writeFieldEnd()
16706
    oprot.writeFieldStop()
16707
    oprot.writeStructEnd()
16708
 
16709
  def validate(self):
16710
    return
16711
 
16712
 
16713
  def __repr__(self):
16714
    L = ['%s=%r' % (key, value)
16715
      for key, value in self.__dict__.iteritems()]
16716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16717
 
16718
  def __eq__(self, other):
16719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16720
 
16721
  def __ne__(self, other):
16722
    return not (self == other)
16723
 
16724
class getProductNotifications_result:
16725
  """
16726
  Attributes:
16727
   - success
16728
  """
16729
 
16730
  thrift_spec = (
16731
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
16732
  )
16733
 
16734
  def __init__(self, success=None,):
16735
    self.success = success
16736
 
16737
  def read(self, iprot):
16738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16740
      return
16741
    iprot.readStructBegin()
16742
    while True:
16743
      (fname, ftype, fid) = iprot.readFieldBegin()
16744
      if ftype == TType.STOP:
16745
        break
16746
      if fid == 0:
16747
        if ftype == TType.LIST:
16748
          self.success = []
9155 kshitij.so 16749
          (_etype349, _size346) = iprot.readListBegin()
16750
          for _i350 in xrange(_size346):
16751
            _elem351 = ProductNotificationRequest()
16752
            _elem351.read(iprot)
16753
            self.success.append(_elem351)
5944 mandeep.dh 16754
          iprot.readListEnd()
16755
        else:
16756
          iprot.skip(ftype)
16757
      else:
16758
        iprot.skip(ftype)
16759
      iprot.readFieldEnd()
16760
    iprot.readStructEnd()
16761
 
16762
  def write(self, oprot):
16763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16765
      return
16766
    oprot.writeStructBegin('getProductNotifications_result')
16767
    if self.success is not None:
16768
      oprot.writeFieldBegin('success', TType.LIST, 0)
16769
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16770
      for iter352 in self.success:
16771
        iter352.write(oprot)
5944 mandeep.dh 16772
      oprot.writeListEnd()
16773
      oprot.writeFieldEnd()
16774
    oprot.writeFieldStop()
16775
    oprot.writeStructEnd()
16776
 
16777
  def validate(self):
16778
    return
16779
 
16780
 
16781
  def __repr__(self):
16782
    L = ['%s=%r' % (key, value)
16783
      for key, value in self.__dict__.iteritems()]
16784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16785
 
16786
  def __eq__(self, other):
16787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16788
 
16789
  def __ne__(self, other):
16790
    return not (self == other)
16791
 
16792
class getProductNotificationRequestCount_args:
16793
  """
16794
  Attributes:
16795
   - startDateTime
7897 amar.kumar 16796
   - categoryId
5944 mandeep.dh 16797
  """
16798
 
16799
  thrift_spec = (
16800
    None, # 0
16801
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 16802
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 16803
  )
16804
 
7897 amar.kumar 16805
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 16806
    self.startDateTime = startDateTime
7897 amar.kumar 16807
    self.categoryId = categoryId
5944 mandeep.dh 16808
 
16809
  def read(self, iprot):
16810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16812
      return
16813
    iprot.readStructBegin()
16814
    while True:
16815
      (fname, ftype, fid) = iprot.readFieldBegin()
16816
      if ftype == TType.STOP:
16817
        break
16818
      if fid == 1:
16819
        if ftype == TType.I64:
16820
          self.startDateTime = iprot.readI64();
16821
        else:
16822
          iprot.skip(ftype)
7897 amar.kumar 16823
      elif fid == 2:
16824
        if ftype == TType.I64:
16825
          self.categoryId = iprot.readI64();
16826
        else:
16827
          iprot.skip(ftype)
5944 mandeep.dh 16828
      else:
16829
        iprot.skip(ftype)
16830
      iprot.readFieldEnd()
16831
    iprot.readStructEnd()
16832
 
16833
  def write(self, oprot):
16834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16836
      return
16837
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
16838
    if self.startDateTime is not None:
16839
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
16840
      oprot.writeI64(self.startDateTime)
16841
      oprot.writeFieldEnd()
7897 amar.kumar 16842
    if self.categoryId is not None:
16843
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
16844
      oprot.writeI64(self.categoryId)
16845
      oprot.writeFieldEnd()
5944 mandeep.dh 16846
    oprot.writeFieldStop()
16847
    oprot.writeStructEnd()
16848
 
16849
  def validate(self):
16850
    return
16851
 
16852
 
16853
  def __repr__(self):
16854
    L = ['%s=%r' % (key, value)
16855
      for key, value in self.__dict__.iteritems()]
16856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16857
 
16858
  def __eq__(self, other):
16859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16860
 
16861
  def __ne__(self, other):
16862
    return not (self == other)
16863
 
16864
class getProductNotificationRequestCount_result:
16865
  """
16866
  Attributes:
16867
   - success
16868
  """
16869
 
16870
  thrift_spec = (
16871
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
16872
  )
16873
 
16874
  def __init__(self, success=None,):
16875
    self.success = success
16876
 
16877
  def read(self, iprot):
16878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16880
      return
16881
    iprot.readStructBegin()
16882
    while True:
16883
      (fname, ftype, fid) = iprot.readFieldBegin()
16884
      if ftype == TType.STOP:
16885
        break
16886
      if fid == 0:
16887
        if ftype == TType.LIST:
16888
          self.success = []
9155 kshitij.so 16889
          (_etype356, _size353) = iprot.readListBegin()
16890
          for _i357 in xrange(_size353):
16891
            _elem358 = ProductNotificationRequestCount()
16892
            _elem358.read(iprot)
16893
            self.success.append(_elem358)
5944 mandeep.dh 16894
          iprot.readListEnd()
16895
        else:
16896
          iprot.skip(ftype)
16897
      else:
16898
        iprot.skip(ftype)
16899
      iprot.readFieldEnd()
16900
    iprot.readStructEnd()
16901
 
16902
  def write(self, oprot):
16903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16905
      return
16906
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
16907
    if self.success is not None:
16908
      oprot.writeFieldBegin('success', TType.LIST, 0)
16909
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 16910
      for iter359 in self.success:
16911
        iter359.write(oprot)
5944 mandeep.dh 16912
      oprot.writeListEnd()
16913
      oprot.writeFieldEnd()
16914
    oprot.writeFieldStop()
16915
    oprot.writeStructEnd()
16916
 
16917
  def validate(self):
16918
    return
16919
 
16920
 
16921
  def __repr__(self):
16922
    L = ['%s=%r' % (key, value)
16923
      for key, value in self.__dict__.iteritems()]
16924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16925
 
16926
  def __eq__(self, other):
16927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16928
 
16929
  def __ne__(self, other):
16930
    return not (self == other)
16931
 
16932
class addAuthorizationLog_args:
16933
  """
16934
  Attributes:
16935
   - itemId
16936
   - username
16937
   - reason
16938
  """
16939
 
16940
  thrift_spec = (
16941
    None, # 0
16942
    (1, TType.I64, 'itemId', None, None, ), # 1
16943
    (2, TType.STRING, 'username', None, None, ), # 2
16944
    (3, TType.STRING, 'reason', None, None, ), # 3
16945
  )
16946
 
16947
  def __init__(self, itemId=None, username=None, reason=None,):
16948
    self.itemId = itemId
16949
    self.username = username
16950
    self.reason = reason
16951
 
16952
  def read(self, iprot):
16953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16955
      return
16956
    iprot.readStructBegin()
16957
    while True:
16958
      (fname, ftype, fid) = iprot.readFieldBegin()
16959
      if ftype == TType.STOP:
16960
        break
16961
      if fid == 1:
16962
        if ftype == TType.I64:
16963
          self.itemId = iprot.readI64();
16964
        else:
16965
          iprot.skip(ftype)
16966
      elif fid == 2:
16967
        if ftype == TType.STRING:
16968
          self.username = iprot.readString();
16969
        else:
16970
          iprot.skip(ftype)
16971
      elif fid == 3:
16972
        if ftype == TType.STRING:
16973
          self.reason = iprot.readString();
16974
        else:
16975
          iprot.skip(ftype)
16976
      else:
16977
        iprot.skip(ftype)
16978
      iprot.readFieldEnd()
16979
    iprot.readStructEnd()
16980
 
16981
  def write(self, oprot):
16982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16984
      return
16985
    oprot.writeStructBegin('addAuthorizationLog_args')
16986
    if self.itemId is not None:
16987
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16988
      oprot.writeI64(self.itemId)
16989
      oprot.writeFieldEnd()
16990
    if self.username is not None:
16991
      oprot.writeFieldBegin('username', TType.STRING, 2)
16992
      oprot.writeString(self.username)
16993
      oprot.writeFieldEnd()
16994
    if self.reason is not None:
16995
      oprot.writeFieldBegin('reason', TType.STRING, 3)
16996
      oprot.writeString(self.reason)
16997
      oprot.writeFieldEnd()
16998
    oprot.writeFieldStop()
16999
    oprot.writeStructEnd()
17000
 
17001
  def validate(self):
17002
    return
17003
 
17004
 
17005
  def __repr__(self):
17006
    L = ['%s=%r' % (key, value)
17007
      for key, value in self.__dict__.iteritems()]
17008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17009
 
17010
  def __eq__(self, other):
17011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17012
 
17013
  def __ne__(self, other):
17014
    return not (self == other)
17015
 
17016
class addAuthorizationLog_result:
17017
  """
17018
  Attributes:
17019
   - success
17020
   - cex
17021
  """
17022
 
17023
  thrift_spec = (
17024
    (0, TType.BOOL, 'success', None, None, ), # 0
17025
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17026
  )
17027
 
17028
  def __init__(self, success=None, cex=None,):
17029
    self.success = success
17030
    self.cex = cex
17031
 
17032
  def read(self, iprot):
17033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17035
      return
17036
    iprot.readStructBegin()
17037
    while True:
17038
      (fname, ftype, fid) = iprot.readFieldBegin()
17039
      if ftype == TType.STOP:
17040
        break
17041
      if fid == 0:
17042
        if ftype == TType.BOOL:
17043
          self.success = iprot.readBool();
17044
        else:
17045
          iprot.skip(ftype)
17046
      elif fid == 1:
17047
        if ftype == TType.STRUCT:
17048
          self.cex = CatalogServiceException()
17049
          self.cex.read(iprot)
17050
        else:
17051
          iprot.skip(ftype)
17052
      else:
17053
        iprot.skip(ftype)
17054
      iprot.readFieldEnd()
17055
    iprot.readStructEnd()
17056
 
17057
  def write(self, oprot):
17058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17060
      return
17061
    oprot.writeStructBegin('addAuthorizationLog_result')
17062
    if self.success is not None:
17063
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17064
      oprot.writeBool(self.success)
17065
      oprot.writeFieldEnd()
17066
    if self.cex is not None:
17067
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17068
      self.cex.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 addupdateVoucherForItem_args:
17089
  """
17090
  Attributes:
17091
   - catalog_item_id
17092
   - voucherType
17093
   - voucherAmount
17094
  """
17095
 
17096
  thrift_spec = (
17097
    None, # 0
17098
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17099
    (2, TType.I64, 'voucherType', None, None, ), # 2
17100
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
17101
  )
17102
 
17103
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
17104
    self.catalog_item_id = catalog_item_id
17105
    self.voucherType = voucherType
17106
    self.voucherAmount = voucherAmount
17107
 
17108
  def read(self, iprot):
17109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17111
      return
17112
    iprot.readStructBegin()
17113
    while True:
17114
      (fname, ftype, fid) = iprot.readFieldBegin()
17115
      if ftype == TType.STOP:
17116
        break
17117
      if fid == 1:
17118
        if ftype == TType.I64:
17119
          self.catalog_item_id = iprot.readI64();
17120
        else:
17121
          iprot.skip(ftype)
17122
      elif fid == 2:
17123
        if ftype == TType.I64:
17124
          self.voucherType = iprot.readI64();
17125
        else:
17126
          iprot.skip(ftype)
17127
      elif fid == 3:
17128
        if ftype == TType.I64:
17129
          self.voucherAmount = iprot.readI64();
17130
        else:
17131
          iprot.skip(ftype)
17132
      else:
17133
        iprot.skip(ftype)
17134
      iprot.readFieldEnd()
17135
    iprot.readStructEnd()
17136
 
17137
  def write(self, oprot):
17138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17140
      return
17141
    oprot.writeStructBegin('addupdateVoucherForItem_args')
17142
    if self.catalog_item_id is not None:
17143
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17144
      oprot.writeI64(self.catalog_item_id)
17145
      oprot.writeFieldEnd()
17146
    if self.voucherType is not None:
17147
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17148
      oprot.writeI64(self.voucherType)
17149
      oprot.writeFieldEnd()
17150
    if self.voucherAmount is not None:
17151
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
17152
      oprot.writeI64(self.voucherAmount)
17153
      oprot.writeFieldEnd()
17154
    oprot.writeFieldStop()
17155
    oprot.writeStructEnd()
17156
 
17157
  def validate(self):
17158
    return
17159
 
17160
 
17161
  def __repr__(self):
17162
    L = ['%s=%r' % (key, value)
17163
      for key, value in self.__dict__.iteritems()]
17164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17165
 
17166
  def __eq__(self, other):
17167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17168
 
17169
  def __ne__(self, other):
17170
    return not (self == other)
17171
 
17172
class addupdateVoucherForItem_result:
17173
  """
17174
  Attributes:
17175
   - success
17176
   - cex
17177
  """
17178
 
17179
  thrift_spec = (
17180
    (0, TType.BOOL, 'success', None, None, ), # 0
17181
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17182
  )
17183
 
17184
  def __init__(self, success=None, cex=None,):
17185
    self.success = success
17186
    self.cex = cex
17187
 
17188
  def read(self, iprot):
17189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17191
      return
17192
    iprot.readStructBegin()
17193
    while True:
17194
      (fname, ftype, fid) = iprot.readFieldBegin()
17195
      if ftype == TType.STOP:
17196
        break
17197
      if fid == 0:
17198
        if ftype == TType.BOOL:
17199
          self.success = iprot.readBool();
17200
        else:
17201
          iprot.skip(ftype)
17202
      elif fid == 1:
17203
        if ftype == TType.STRUCT:
17204
          self.cex = CatalogServiceException()
17205
          self.cex.read(iprot)
17206
        else:
17207
          iprot.skip(ftype)
17208
      else:
17209
        iprot.skip(ftype)
17210
      iprot.readFieldEnd()
17211
    iprot.readStructEnd()
17212
 
17213
  def write(self, oprot):
17214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17216
      return
17217
    oprot.writeStructBegin('addupdateVoucherForItem_result')
17218
    if self.success is not None:
17219
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17220
      oprot.writeBool(self.success)
17221
      oprot.writeFieldEnd()
17222
    if self.cex is not None:
17223
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17224
      self.cex.write(oprot)
17225
      oprot.writeFieldEnd()
17226
    oprot.writeFieldStop()
17227
    oprot.writeStructEnd()
17228
 
17229
  def validate(self):
17230
    return
17231
 
17232
 
17233
  def __repr__(self):
17234
    L = ['%s=%r' % (key, value)
17235
      for key, value in self.__dict__.iteritems()]
17236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17237
 
17238
  def __eq__(self, other):
17239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17240
 
17241
  def __ne__(self, other):
17242
    return not (self == other)
17243
 
17244
class deleteVoucherForItem_args:
17245
  """
17246
  Attributes:
17247
   - catalog_item_id
17248
   - voucherType
17249
  """
17250
 
17251
  thrift_spec = (
17252
    None, # 0
17253
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17254
    (2, TType.I64, 'voucherType', None, None, ), # 2
17255
  )
17256
 
17257
  def __init__(self, catalog_item_id=None, voucherType=None,):
17258
    self.catalog_item_id = catalog_item_id
17259
    self.voucherType = voucherType
17260
 
17261
  def read(self, iprot):
17262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17264
      return
17265
    iprot.readStructBegin()
17266
    while True:
17267
      (fname, ftype, fid) = iprot.readFieldBegin()
17268
      if ftype == TType.STOP:
17269
        break
17270
      if fid == 1:
17271
        if ftype == TType.I64:
17272
          self.catalog_item_id = iprot.readI64();
17273
        else:
17274
          iprot.skip(ftype)
17275
      elif fid == 2:
17276
        if ftype == TType.I64:
17277
          self.voucherType = iprot.readI64();
17278
        else:
17279
          iprot.skip(ftype)
17280
      else:
17281
        iprot.skip(ftype)
17282
      iprot.readFieldEnd()
17283
    iprot.readStructEnd()
17284
 
17285
  def write(self, oprot):
17286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17288
      return
17289
    oprot.writeStructBegin('deleteVoucherForItem_args')
17290
    if self.catalog_item_id is not None:
17291
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17292
      oprot.writeI64(self.catalog_item_id)
17293
      oprot.writeFieldEnd()
17294
    if self.voucherType is not None:
17295
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17296
      oprot.writeI64(self.voucherType)
17297
      oprot.writeFieldEnd()
17298
    oprot.writeFieldStop()
17299
    oprot.writeStructEnd()
17300
 
17301
  def validate(self):
17302
    return
17303
 
17304
 
17305
  def __repr__(self):
17306
    L = ['%s=%r' % (key, value)
17307
      for key, value in self.__dict__.iteritems()]
17308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17309
 
17310
  def __eq__(self, other):
17311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17312
 
17313
  def __ne__(self, other):
17314
    return not (self == other)
17315
 
17316
class deleteVoucherForItem_result:
17317
  """
17318
  Attributes:
17319
   - success
17320
   - cex
17321
  """
17322
 
17323
  thrift_spec = (
17324
    (0, TType.BOOL, 'success', None, None, ), # 0
17325
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17326
  )
17327
 
17328
  def __init__(self, success=None, cex=None,):
17329
    self.success = success
17330
    self.cex = cex
17331
 
17332
  def read(self, iprot):
17333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17335
      return
17336
    iprot.readStructBegin()
17337
    while True:
17338
      (fname, ftype, fid) = iprot.readFieldBegin()
17339
      if ftype == TType.STOP:
17340
        break
17341
      if fid == 0:
17342
        if ftype == TType.BOOL:
17343
          self.success = iprot.readBool();
17344
        else:
17345
          iprot.skip(ftype)
17346
      elif fid == 1:
17347
        if ftype == TType.STRUCT:
17348
          self.cex = CatalogServiceException()
17349
          self.cex.read(iprot)
17350
        else:
17351
          iprot.skip(ftype)
17352
      else:
17353
        iprot.skip(ftype)
17354
      iprot.readFieldEnd()
17355
    iprot.readStructEnd()
17356
 
17357
  def write(self, oprot):
17358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17360
      return
17361
    oprot.writeStructBegin('deleteVoucherForItem_result')
17362
    if self.success is not None:
17363
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17364
      oprot.writeBool(self.success)
17365
      oprot.writeFieldEnd()
17366
    if self.cex is not None:
17367
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17368
      self.cex.write(oprot)
17369
      oprot.writeFieldEnd()
17370
    oprot.writeFieldStop()
17371
    oprot.writeStructEnd()
17372
 
17373
  def validate(self):
17374
    return
17375
 
17376
 
17377
  def __repr__(self):
17378
    L = ['%s=%r' % (key, value)
17379
      for key, value in self.__dict__.iteritems()]
17380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17381
 
17382
  def __eq__(self, other):
17383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17384
 
17385
  def __ne__(self, other):
17386
    return not (self == other)
17387
 
17388
class getVoucherAmount_args:
17389
  """
17390
  Attributes:
17391
   - itemId
17392
   - voucherType
17393
  """
17394
 
17395
  thrift_spec = (
17396
    None, # 0
17397
    (1, TType.I64, 'itemId', None, None, ), # 1
17398
    (2, TType.I64, 'voucherType', None, None, ), # 2
17399
  )
17400
 
17401
  def __init__(self, itemId=None, voucherType=None,):
17402
    self.itemId = itemId
17403
    self.voucherType = voucherType
17404
 
17405
  def read(self, iprot):
17406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17408
      return
17409
    iprot.readStructBegin()
17410
    while True:
17411
      (fname, ftype, fid) = iprot.readFieldBegin()
17412
      if ftype == TType.STOP:
17413
        break
17414
      if fid == 1:
17415
        if ftype == TType.I64:
17416
          self.itemId = iprot.readI64();
17417
        else:
17418
          iprot.skip(ftype)
17419
      elif fid == 2:
17420
        if ftype == TType.I64:
17421
          self.voucherType = iprot.readI64();
17422
        else:
17423
          iprot.skip(ftype)
17424
      else:
17425
        iprot.skip(ftype)
17426
      iprot.readFieldEnd()
17427
    iprot.readStructEnd()
17428
 
17429
  def write(self, oprot):
17430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17432
      return
17433
    oprot.writeStructBegin('getVoucherAmount_args')
17434
    if self.itemId is not None:
17435
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17436
      oprot.writeI64(self.itemId)
17437
      oprot.writeFieldEnd()
17438
    if self.voucherType is not None:
17439
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
17440
      oprot.writeI64(self.voucherType)
17441
      oprot.writeFieldEnd()
17442
    oprot.writeFieldStop()
17443
    oprot.writeStructEnd()
17444
 
17445
  def validate(self):
17446
    return
17447
 
17448
 
17449
  def __repr__(self):
17450
    L = ['%s=%r' % (key, value)
17451
      for key, value in self.__dict__.iteritems()]
17452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17453
 
17454
  def __eq__(self, other):
17455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17456
 
17457
  def __ne__(self, other):
17458
    return not (self == other)
17459
 
17460
class getVoucherAmount_result:
17461
  """
17462
  Attributes:
17463
   - success
17464
  """
17465
 
17466
  thrift_spec = (
17467
    (0, TType.I64, 'success', None, None, ), # 0
17468
  )
17469
 
17470
  def __init__(self, success=None,):
17471
    self.success = success
17472
 
17473
  def read(self, iprot):
17474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17476
      return
17477
    iprot.readStructBegin()
17478
    while True:
17479
      (fname, ftype, fid) = iprot.readFieldBegin()
17480
      if ftype == TType.STOP:
17481
        break
17482
      if fid == 0:
17483
        if ftype == TType.I64:
17484
          self.success = iprot.readI64();
17485
        else:
17486
          iprot.skip(ftype)
17487
      else:
17488
        iprot.skip(ftype)
17489
      iprot.readFieldEnd()
17490
    iprot.readStructEnd()
17491
 
17492
  def write(self, oprot):
17493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17495
      return
17496
    oprot.writeStructBegin('getVoucherAmount_result')
17497
    if self.success is not None:
17498
      oprot.writeFieldBegin('success', TType.I64, 0)
17499
      oprot.writeI64(self.success)
17500
      oprot.writeFieldEnd()
17501
    oprot.writeFieldStop()
17502
    oprot.writeStructEnd()
17503
 
17504
  def validate(self):
17505
    return
17506
 
17507
 
17508
  def __repr__(self):
17509
    L = ['%s=%r' % (key, value)
17510
      for key, value in self.__dict__.iteritems()]
17511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17512
 
17513
  def __eq__(self, other):
17514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17515
 
17516
  def __ne__(self, other):
17517
    return not (self == other)
17518
 
17519
class getAllItemVouchers_args:
17520
  """
17521
  Attributes:
17522
   - itemId
17523
  """
17524
 
17525
  thrift_spec = (
17526
    None, # 0
17527
    (1, TType.I64, 'itemId', None, None, ), # 1
17528
  )
17529
 
17530
  def __init__(self, itemId=None,):
17531
    self.itemId = itemId
17532
 
17533
  def read(self, iprot):
17534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17536
      return
17537
    iprot.readStructBegin()
17538
    while True:
17539
      (fname, ftype, fid) = iprot.readFieldBegin()
17540
      if ftype == TType.STOP:
17541
        break
17542
      if fid == 1:
17543
        if ftype == TType.I64:
17544
          self.itemId = iprot.readI64();
17545
        else:
17546
          iprot.skip(ftype)
17547
      else:
17548
        iprot.skip(ftype)
17549
      iprot.readFieldEnd()
17550
    iprot.readStructEnd()
17551
 
17552
  def write(self, oprot):
17553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17555
      return
17556
    oprot.writeStructBegin('getAllItemVouchers_args')
17557
    if self.itemId is not None:
17558
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17559
      oprot.writeI64(self.itemId)
17560
      oprot.writeFieldEnd()
17561
    oprot.writeFieldStop()
17562
    oprot.writeStructEnd()
17563
 
17564
  def validate(self):
17565
    return
17566
 
17567
 
17568
  def __repr__(self):
17569
    L = ['%s=%r' % (key, value)
17570
      for key, value in self.__dict__.iteritems()]
17571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17572
 
17573
  def __eq__(self, other):
17574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17575
 
17576
  def __ne__(self, other):
17577
    return not (self == other)
17578
 
17579
class getAllItemVouchers_result:
17580
  """
17581
  Attributes:
17582
   - success
17583
  """
17584
 
17585
  thrift_spec = (
17586
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
17587
  )
17588
 
17589
  def __init__(self, success=None,):
17590
    self.success = success
17591
 
17592
  def read(self, iprot):
17593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17595
      return
17596
    iprot.readStructBegin()
17597
    while True:
17598
      (fname, ftype, fid) = iprot.readFieldBegin()
17599
      if ftype == TType.STOP:
17600
        break
17601
      if fid == 0:
17602
        if ftype == TType.LIST:
17603
          self.success = []
9155 kshitij.so 17604
          (_etype363, _size360) = iprot.readListBegin()
17605
          for _i364 in xrange(_size360):
17606
            _elem365 = VoucherItemMapping()
17607
            _elem365.read(iprot)
17608
            self.success.append(_elem365)
5944 mandeep.dh 17609
          iprot.readListEnd()
17610
        else:
17611
          iprot.skip(ftype)
17612
      else:
17613
        iprot.skip(ftype)
17614
      iprot.readFieldEnd()
17615
    iprot.readStructEnd()
17616
 
17617
  def write(self, oprot):
17618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17620
      return
17621
    oprot.writeStructBegin('getAllItemVouchers_result')
17622
    if self.success is not None:
17623
      oprot.writeFieldBegin('success', TType.LIST, 0)
17624
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 17625
      for iter366 in self.success:
17626
        iter366.write(oprot)
5944 mandeep.dh 17627
      oprot.writeListEnd()
17628
      oprot.writeFieldEnd()
17629
    oprot.writeFieldStop()
17630
    oprot.writeStructEnd()
17631
 
17632
  def validate(self):
17633
    return
17634
 
17635
 
17636
  def __repr__(self):
17637
    L = ['%s=%r' % (key, value)
17638
      for key, value in self.__dict__.iteritems()]
17639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17640
 
17641
  def __eq__(self, other):
17642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17643
 
17644
  def __ne__(self, other):
17645
    return not (self == other)
17646
 
17647
class isValidCatalogItemId_args:
17648
  """
17649
  Attributes:
17650
   - catalog_item_id
17651
  """
17652
 
17653
  thrift_spec = (
17654
    None, # 0
17655
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
17656
  )
17657
 
17658
  def __init__(self, catalog_item_id=None,):
17659
    self.catalog_item_id = catalog_item_id
17660
 
17661
  def read(self, iprot):
17662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17664
      return
17665
    iprot.readStructBegin()
17666
    while True:
17667
      (fname, ftype, fid) = iprot.readFieldBegin()
17668
      if ftype == TType.STOP:
17669
        break
17670
      if fid == 1:
17671
        if ftype == TType.I64:
17672
          self.catalog_item_id = iprot.readI64();
17673
        else:
17674
          iprot.skip(ftype)
17675
      else:
17676
        iprot.skip(ftype)
17677
      iprot.readFieldEnd()
17678
    iprot.readStructEnd()
17679
 
17680
  def write(self, oprot):
17681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17683
      return
17684
    oprot.writeStructBegin('isValidCatalogItemId_args')
17685
    if self.catalog_item_id is not None:
17686
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
17687
      oprot.writeI64(self.catalog_item_id)
17688
      oprot.writeFieldEnd()
17689
    oprot.writeFieldStop()
17690
    oprot.writeStructEnd()
17691
 
17692
  def validate(self):
17693
    return
17694
 
17695
 
17696
  def __repr__(self):
17697
    L = ['%s=%r' % (key, value)
17698
      for key, value in self.__dict__.iteritems()]
17699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17700
 
17701
  def __eq__(self, other):
17702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17703
 
17704
  def __ne__(self, other):
17705
    return not (self == other)
17706
 
17707
class isValidCatalogItemId_result:
17708
  """
17709
  Attributes:
17710
   - success
17711
  """
17712
 
17713
  thrift_spec = (
17714
    (0, TType.BOOL, 'success', None, None, ), # 0
17715
  )
17716
 
17717
  def __init__(self, success=None,):
17718
    self.success = success
17719
 
17720
  def read(self, iprot):
17721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17723
      return
17724
    iprot.readStructBegin()
17725
    while True:
17726
      (fname, ftype, fid) = iprot.readFieldBegin()
17727
      if ftype == TType.STOP:
17728
        break
17729
      if fid == 0:
17730
        if ftype == TType.BOOL:
17731
          self.success = iprot.readBool();
17732
        else:
17733
          iprot.skip(ftype)
17734
      else:
17735
        iprot.skip(ftype)
17736
      iprot.readFieldEnd()
17737
    iprot.readStructEnd()
17738
 
17739
  def write(self, oprot):
17740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17742
      return
17743
    oprot.writeStructBegin('isValidCatalogItemId_result')
17744
    if self.success is not None:
17745
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17746
      oprot.writeBool(self.success)
17747
      oprot.writeFieldEnd()
17748
    oprot.writeFieldStop()
17749
    oprot.writeStructEnd()
17750
 
17751
  def validate(self):
17752
    return
17753
 
17754
 
17755
  def __repr__(self):
17756
    L = ['%s=%r' % (key, value)
17757
      for key, value in self.__dict__.iteritems()]
17758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17759
 
17760
  def __eq__(self, other):
17761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17762
 
17763
  def __ne__(self, other):
17764
    return not (self == other)
6039 amit.gupta 17765
 
17766
class getVatPercentageForItem_args:
17767
  """
17768
  Attributes:
17769
   - itemId
7330 amit.gupta 17770
   - stateId
6039 amit.gupta 17771
   - price
17772
  """
17773
 
17774
  thrift_spec = (
17775
    None, # 0
17776
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 17777
    (2, TType.I64, 'stateId', None, None, ), # 2
17778
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 17779
  )
17780
 
7330 amit.gupta 17781
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 17782
    self.itemId = itemId
7330 amit.gupta 17783
    self.stateId = stateId
6039 amit.gupta 17784
    self.price = price
17785
 
17786
  def read(self, iprot):
17787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17789
      return
17790
    iprot.readStructBegin()
17791
    while True:
17792
      (fname, ftype, fid) = iprot.readFieldBegin()
17793
      if ftype == TType.STOP:
17794
        break
17795
      if fid == 1:
17796
        if ftype == TType.I64:
17797
          self.itemId = iprot.readI64();
17798
        else:
17799
          iprot.skip(ftype)
17800
      elif fid == 2:
7330 amit.gupta 17801
        if ftype == TType.I64:
17802
          self.stateId = iprot.readI64();
17803
        else:
17804
          iprot.skip(ftype)
17805
      elif fid == 3:
6039 amit.gupta 17806
        if ftype == TType.DOUBLE:
17807
          self.price = iprot.readDouble();
17808
        else:
17809
          iprot.skip(ftype)
17810
      else:
17811
        iprot.skip(ftype)
17812
      iprot.readFieldEnd()
17813
    iprot.readStructEnd()
17814
 
17815
  def write(self, oprot):
17816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17818
      return
17819
    oprot.writeStructBegin('getVatPercentageForItem_args')
17820
    if self.itemId is not None:
17821
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17822
      oprot.writeI64(self.itemId)
17823
      oprot.writeFieldEnd()
7330 amit.gupta 17824
    if self.stateId is not None:
17825
      oprot.writeFieldBegin('stateId', TType.I64, 2)
17826
      oprot.writeI64(self.stateId)
17827
      oprot.writeFieldEnd()
6039 amit.gupta 17828
    if self.price is not None:
7330 amit.gupta 17829
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 17830
      oprot.writeDouble(self.price)
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 getVatPercentageForItem_result:
17851
  """
17852
  Attributes:
17853
   - success
7340 amit.gupta 17854
   - cex
6039 amit.gupta 17855
  """
17856
 
17857
  thrift_spec = (
17858
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 17859
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 17860
  )
17861
 
7340 amit.gupta 17862
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 17863
    self.success = success
7340 amit.gupta 17864
    self.cex = cex
6039 amit.gupta 17865
 
17866
  def read(self, iprot):
17867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17869
      return
17870
    iprot.readStructBegin()
17871
    while True:
17872
      (fname, ftype, fid) = iprot.readFieldBegin()
17873
      if ftype == TType.STOP:
17874
        break
17875
      if fid == 0:
17876
        if ftype == TType.DOUBLE:
17877
          self.success = iprot.readDouble();
17878
        else:
17879
          iprot.skip(ftype)
7340 amit.gupta 17880
      elif fid == 1:
17881
        if ftype == TType.STRUCT:
17882
          self.cex = CatalogServiceException()
17883
          self.cex.read(iprot)
17884
        else:
17885
          iprot.skip(ftype)
6039 amit.gupta 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('getVatPercentageForItem_result')
17896
    if self.success is not None:
17897
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
17898
      oprot.writeDouble(self.success)
17899
      oprot.writeFieldEnd()
7340 amit.gupta 17900
    if self.cex is not None:
17901
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17902
      self.cex.write(oprot)
17903
      oprot.writeFieldEnd()
6039 amit.gupta 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 getVatAmountForItem_args:
17923
  """
17924
  Attributes:
17925
   - itemId
17926
   - price
17927
  """
17928
 
17929
  thrift_spec = (
17930
    None, # 0
17931
    (1, TType.I64, 'itemId', None, None, ), # 1
17932
    (2, TType.DOUBLE, 'price', None, None, ), # 2
17933
  )
17934
 
17935
  def __init__(self, itemId=None, price=None,):
17936
    self.itemId = itemId
17937
    self.price = price
17938
 
17939
  def read(self, iprot):
17940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17942
      return
17943
    iprot.readStructBegin()
17944
    while True:
17945
      (fname, ftype, fid) = iprot.readFieldBegin()
17946
      if ftype == TType.STOP:
17947
        break
17948
      if fid == 1:
17949
        if ftype == TType.I64:
17950
          self.itemId = iprot.readI64();
17951
        else:
17952
          iprot.skip(ftype)
17953
      elif fid == 2:
17954
        if ftype == TType.DOUBLE:
17955
          self.price = iprot.readDouble();
17956
        else:
17957
          iprot.skip(ftype)
17958
      else:
17959
        iprot.skip(ftype)
17960
      iprot.readFieldEnd()
17961
    iprot.readStructEnd()
17962
 
17963
  def write(self, oprot):
17964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17966
      return
17967
    oprot.writeStructBegin('getVatAmountForItem_args')
17968
    if self.itemId is not None:
17969
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17970
      oprot.writeI64(self.itemId)
17971
      oprot.writeFieldEnd()
17972
    if self.price is not None:
17973
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
17974
      oprot.writeDouble(self.price)
17975
      oprot.writeFieldEnd()
17976
    oprot.writeFieldStop()
17977
    oprot.writeStructEnd()
17978
 
17979
  def validate(self):
17980
    return
17981
 
17982
 
17983
  def __repr__(self):
17984
    L = ['%s=%r' % (key, value)
17985
      for key, value in self.__dict__.iteritems()]
17986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17987
 
17988
  def __eq__(self, other):
17989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17990
 
17991
  def __ne__(self, other):
17992
    return not (self == other)
17993
 
17994
class getVatAmountForItem_result:
17995
  """
17996
  Attributes:
17997
   - success
17998
  """
17999
 
18000
  thrift_spec = (
18001
    (0, TType.DOUBLE, 'success', None, None, ), # 0
18002
  )
18003
 
18004
  def __init__(self, success=None,):
18005
    self.success = success
18006
 
18007
  def read(self, iprot):
18008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18010
      return
18011
    iprot.readStructBegin()
18012
    while True:
18013
      (fname, ftype, fid) = iprot.readFieldBegin()
18014
      if ftype == TType.STOP:
18015
        break
18016
      if fid == 0:
18017
        if ftype == TType.DOUBLE:
18018
          self.success = iprot.readDouble();
18019
        else:
18020
          iprot.skip(ftype)
18021
      else:
18022
        iprot.skip(ftype)
18023
      iprot.readFieldEnd()
18024
    iprot.readStructEnd()
18025
 
18026
  def write(self, oprot):
18027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18029
      return
18030
    oprot.writeStructBegin('getVatAmountForItem_result')
18031
    if self.success is not None:
18032
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
18033
      oprot.writeDouble(self.success)
18034
      oprot.writeFieldEnd()
18035
    oprot.writeFieldStop()
18036
    oprot.writeStructEnd()
18037
 
18038
  def validate(self):
18039
    return
18040
 
18041
 
18042
  def __repr__(self):
18043
    L = ['%s=%r' % (key, value)
18044
      for key, value in self.__dict__.iteritems()]
18045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18046
 
18047
  def __eq__(self, other):
18048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18049
 
18050
  def __ne__(self, other):
18051
    return not (self == other)
6531 vikram.rag 18052
 
18053
class getAllIgnoredInventoryUpdateItemsList_args:
18054
  """
18055
  Attributes:
18056
   - offset
18057
   - limit
18058
  """
18059
 
18060
  thrift_spec = (
18061
    None, # 0
18062
    (1, TType.I32, 'offset', None, None, ), # 1
18063
    (2, TType.I32, 'limit', None, None, ), # 2
18064
  )
18065
 
18066
  def __init__(self, offset=None, limit=None,):
18067
    self.offset = offset
18068
    self.limit = limit
18069
 
18070
  def read(self, iprot):
18071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18073
      return
18074
    iprot.readStructBegin()
18075
    while True:
18076
      (fname, ftype, fid) = iprot.readFieldBegin()
18077
      if ftype == TType.STOP:
18078
        break
18079
      if fid == 1:
18080
        if ftype == TType.I32:
18081
          self.offset = iprot.readI32();
18082
        else:
18083
          iprot.skip(ftype)
18084
      elif fid == 2:
18085
        if ftype == TType.I32:
18086
          self.limit = iprot.readI32();
18087
        else:
18088
          iprot.skip(ftype)
18089
      else:
18090
        iprot.skip(ftype)
18091
      iprot.readFieldEnd()
18092
    iprot.readStructEnd()
18093
 
18094
  def write(self, oprot):
18095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18097
      return
18098
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
18099
    if self.offset is not None:
18100
      oprot.writeFieldBegin('offset', TType.I32, 1)
18101
      oprot.writeI32(self.offset)
18102
      oprot.writeFieldEnd()
18103
    if self.limit is not None:
18104
      oprot.writeFieldBegin('limit', TType.I32, 2)
18105
      oprot.writeI32(self.limit)
18106
      oprot.writeFieldEnd()
18107
    oprot.writeFieldStop()
18108
    oprot.writeStructEnd()
18109
 
18110
  def validate(self):
18111
    return
18112
 
18113
 
18114
  def __repr__(self):
18115
    L = ['%s=%r' % (key, value)
18116
      for key, value in self.__dict__.iteritems()]
18117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18118
 
18119
  def __eq__(self, other):
18120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18121
 
18122
  def __ne__(self, other):
18123
    return not (self == other)
18124
 
18125
class getAllIgnoredInventoryUpdateItemsList_result:
18126
  """
18127
  Attributes:
18128
   - success
18129
  """
18130
 
18131
  thrift_spec = (
18132
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18133
  )
18134
 
18135
  def __init__(self, success=None,):
18136
    self.success = success
18137
 
18138
  def read(self, iprot):
18139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18141
      return
18142
    iprot.readStructBegin()
18143
    while True:
18144
      (fname, ftype, fid) = iprot.readFieldBegin()
18145
      if ftype == TType.STOP:
18146
        break
18147
      if fid == 0:
18148
        if ftype == TType.LIST:
18149
          self.success = []
9155 kshitij.so 18150
          (_etype370, _size367) = iprot.readListBegin()
18151
          for _i371 in xrange(_size367):
18152
            _elem372 = Item()
18153
            _elem372.read(iprot)
18154
            self.success.append(_elem372)
6531 vikram.rag 18155
          iprot.readListEnd()
18156
        else:
18157
          iprot.skip(ftype)
18158
      else:
18159
        iprot.skip(ftype)
18160
      iprot.readFieldEnd()
18161
    iprot.readStructEnd()
18162
 
18163
  def write(self, oprot):
18164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18166
      return
18167
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
18168
    if self.success is not None:
18169
      oprot.writeFieldBegin('success', TType.LIST, 0)
18170
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18171
      for iter373 in self.success:
18172
        iter373.write(oprot)
6531 vikram.rag 18173
      oprot.writeListEnd()
18174
      oprot.writeFieldEnd()
18175
    oprot.writeFieldStop()
18176
    oprot.writeStructEnd()
18177
 
18178
  def validate(self):
18179
    return
18180
 
18181
 
18182
  def __repr__(self):
18183
    L = ['%s=%r' % (key, value)
18184
      for key, value in self.__dict__.iteritems()]
18185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18186
 
18187
  def __eq__(self, other):
18188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18189
 
18190
  def __ne__(self, other):
18191
    return not (self == other)
6805 anupam.sin 18192
 
6821 amar.kumar 18193
class getAllAliveItems_args:
18194
 
18195
  thrift_spec = (
18196
  )
18197
 
18198
  def read(self, iprot):
18199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18201
      return
18202
    iprot.readStructBegin()
18203
    while True:
18204
      (fname, ftype, fid) = iprot.readFieldBegin()
18205
      if ftype == TType.STOP:
18206
        break
18207
      else:
18208
        iprot.skip(ftype)
18209
      iprot.readFieldEnd()
18210
    iprot.readStructEnd()
18211
 
18212
  def write(self, oprot):
18213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18215
      return
18216
    oprot.writeStructBegin('getAllAliveItems_args')
18217
    oprot.writeFieldStop()
18218
    oprot.writeStructEnd()
18219
 
18220
  def validate(self):
18221
    return
18222
 
18223
 
18224
  def __repr__(self):
18225
    L = ['%s=%r' % (key, value)
18226
      for key, value in self.__dict__.iteritems()]
18227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18228
 
18229
  def __eq__(self, other):
18230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18231
 
18232
  def __ne__(self, other):
18233
    return not (self == other)
18234
 
18235
class getAllAliveItems_result:
18236
  """
18237
  Attributes:
18238
   - success
18239
  """
18240
 
18241
  thrift_spec = (
18242
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18243
  )
18244
 
18245
  def __init__(self, success=None,):
18246
    self.success = success
18247
 
18248
  def read(self, iprot):
18249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18251
      return
18252
    iprot.readStructBegin()
18253
    while True:
18254
      (fname, ftype, fid) = iprot.readFieldBegin()
18255
      if ftype == TType.STOP:
18256
        break
18257
      if fid == 0:
18258
        if ftype == TType.LIST:
18259
          self.success = []
9155 kshitij.so 18260
          (_etype377, _size374) = iprot.readListBegin()
18261
          for _i378 in xrange(_size374):
18262
            _elem379 = Item()
18263
            _elem379.read(iprot)
18264
            self.success.append(_elem379)
6821 amar.kumar 18265
          iprot.readListEnd()
18266
        else:
18267
          iprot.skip(ftype)
18268
      else:
18269
        iprot.skip(ftype)
18270
      iprot.readFieldEnd()
18271
    iprot.readStructEnd()
18272
 
18273
  def write(self, oprot):
18274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18276
      return
18277
    oprot.writeStructBegin('getAllAliveItems_result')
18278
    if self.success is not None:
18279
      oprot.writeFieldBegin('success', TType.LIST, 0)
18280
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18281
      for iter380 in self.success:
18282
        iter380.write(oprot)
6821 amar.kumar 18283
      oprot.writeListEnd()
18284
      oprot.writeFieldEnd()
18285
    oprot.writeFieldStop()
18286
    oprot.writeStructEnd()
18287
 
18288
  def validate(self):
18289
    return
18290
 
18291
 
18292
  def __repr__(self):
18293
    L = ['%s=%r' % (key, value)
18294
      for key, value in self.__dict__.iteritems()]
18295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18296
 
18297
  def __eq__(self, other):
18298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18299
 
18300
  def __ne__(self, other):
18301
    return not (self == other)
18302
 
6805 anupam.sin 18303
class getInsuranceAmount_args:
18304
  """
18305
  Attributes:
18306
   - itemId
6921 anupam.sin 18307
   - price
6805 anupam.sin 18308
   - insurerId
18309
   - quantity
18310
  """
18311
 
18312
  thrift_spec = (
18313
    None, # 0
18314
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 18315
    (2, TType.DOUBLE, 'price', None, None, ), # 2
18316
    (3, TType.I64, 'insurerId', None, None, ), # 3
18317
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 18318
  )
18319
 
6921 anupam.sin 18320
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 18321
    self.itemId = itemId
6921 anupam.sin 18322
    self.price = price
6805 anupam.sin 18323
    self.insurerId = insurerId
18324
    self.quantity = quantity
18325
 
18326
  def read(self, iprot):
18327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18329
      return
18330
    iprot.readStructBegin()
18331
    while True:
18332
      (fname, ftype, fid) = iprot.readFieldBegin()
18333
      if ftype == TType.STOP:
18334
        break
18335
      if fid == 1:
18336
        if ftype == TType.I64:
18337
          self.itemId = iprot.readI64();
18338
        else:
18339
          iprot.skip(ftype)
18340
      elif fid == 2:
6921 anupam.sin 18341
        if ftype == TType.DOUBLE:
18342
          self.price = iprot.readDouble();
18343
        else:
18344
          iprot.skip(ftype)
18345
      elif fid == 3:
6805 anupam.sin 18346
        if ftype == TType.I64:
18347
          self.insurerId = iprot.readI64();
18348
        else:
18349
          iprot.skip(ftype)
6921 anupam.sin 18350
      elif fid == 4:
6805 anupam.sin 18351
        if ftype == TType.I64:
18352
          self.quantity = iprot.readI64();
18353
        else:
18354
          iprot.skip(ftype)
18355
      else:
18356
        iprot.skip(ftype)
18357
      iprot.readFieldEnd()
18358
    iprot.readStructEnd()
18359
 
18360
  def write(self, oprot):
18361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18363
      return
18364
    oprot.writeStructBegin('getInsuranceAmount_args')
18365
    if self.itemId is not None:
18366
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18367
      oprot.writeI64(self.itemId)
18368
      oprot.writeFieldEnd()
6921 anupam.sin 18369
    if self.price is not None:
18370
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
18371
      oprot.writeDouble(self.price)
18372
      oprot.writeFieldEnd()
6805 anupam.sin 18373
    if self.insurerId is not None:
6921 anupam.sin 18374
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 18375
      oprot.writeI64(self.insurerId)
18376
      oprot.writeFieldEnd()
18377
    if self.quantity is not None:
6921 anupam.sin 18378
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 18379
      oprot.writeI64(self.quantity)
18380
      oprot.writeFieldEnd()
18381
    oprot.writeFieldStop()
18382
    oprot.writeStructEnd()
18383
 
18384
  def validate(self):
18385
    return
18386
 
18387
 
18388
  def __repr__(self):
18389
    L = ['%s=%r' % (key, value)
18390
      for key, value in self.__dict__.iteritems()]
18391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18392
 
18393
  def __eq__(self, other):
18394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18395
 
18396
  def __ne__(self, other):
18397
    return not (self == other)
18398
 
18399
class getInsuranceAmount_result:
18400
  """
18401
  Attributes:
18402
   - success
18403
  """
18404
 
18405
  thrift_spec = (
18406
    (0, TType.I64, 'success', None, None, ), # 0
18407
  )
18408
 
18409
  def __init__(self, success=None,):
18410
    self.success = success
18411
 
18412
  def read(self, iprot):
18413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18415
      return
18416
    iprot.readStructBegin()
18417
    while True:
18418
      (fname, ftype, fid) = iprot.readFieldBegin()
18419
      if ftype == TType.STOP:
18420
        break
18421
      if fid == 0:
18422
        if ftype == TType.I64:
18423
          self.success = iprot.readI64();
18424
        else:
18425
          iprot.skip(ftype)
18426
      else:
18427
        iprot.skip(ftype)
18428
      iprot.readFieldEnd()
18429
    iprot.readStructEnd()
18430
 
18431
  def write(self, oprot):
18432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18434
      return
18435
    oprot.writeStructBegin('getInsuranceAmount_result')
18436
    if self.success is not None:
18437
      oprot.writeFieldBegin('success', TType.I64, 0)
18438
      oprot.writeI64(self.success)
18439
      oprot.writeFieldEnd()
18440
    oprot.writeFieldStop()
18441
    oprot.writeStructEnd()
18442
 
18443
  def validate(self):
18444
    return
18445
 
18446
 
18447
  def __repr__(self):
18448
    L = ['%s=%r' % (key, value)
18449
      for key, value in self.__dict__.iteritems()]
18450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18451
 
18452
  def __eq__(self, other):
18453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18454
 
18455
  def __ne__(self, other):
18456
    return not (self == other)
18457
 
18458
class getInsurer_args:
18459
  """
18460
  Attributes:
18461
   - insurerId
18462
  """
18463
 
18464
  thrift_spec = (
18465
    None, # 0
18466
    (1, TType.I64, 'insurerId', None, None, ), # 1
18467
  )
18468
 
18469
  def __init__(self, insurerId=None,):
18470
    self.insurerId = insurerId
18471
 
18472
  def read(self, iprot):
18473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18475
      return
18476
    iprot.readStructBegin()
18477
    while True:
18478
      (fname, ftype, fid) = iprot.readFieldBegin()
18479
      if ftype == TType.STOP:
18480
        break
18481
      if fid == 1:
18482
        if ftype == TType.I64:
18483
          self.insurerId = iprot.readI64();
18484
        else:
18485
          iprot.skip(ftype)
18486
      else:
18487
        iprot.skip(ftype)
18488
      iprot.readFieldEnd()
18489
    iprot.readStructEnd()
18490
 
18491
  def write(self, oprot):
18492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18494
      return
18495
    oprot.writeStructBegin('getInsurer_args')
18496
    if self.insurerId is not None:
18497
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
18498
      oprot.writeI64(self.insurerId)
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 getInsurer_result:
18519
  """
18520
  Attributes:
18521
   - success
18522
  """
18523
 
18524
  thrift_spec = (
18525
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), 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.STRUCT:
18542
          self.success = Insurer()
18543
          self.success.read(iprot)
18544
        else:
18545
          iprot.skip(ftype)
18546
      else:
18547
        iprot.skip(ftype)
18548
      iprot.readFieldEnd()
18549
    iprot.readStructEnd()
18550
 
18551
  def write(self, oprot):
18552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18554
      return
18555
    oprot.writeStructBegin('getInsurer_result')
18556
    if self.success is not None:
18557
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18558
      self.success.write(oprot)
18559
      oprot.writeFieldEnd()
18560
    oprot.writeFieldStop()
18561
    oprot.writeStructEnd()
18562
 
18563
  def validate(self):
18564
    return
18565
 
18566
 
18567
  def __repr__(self):
18568
    L = ['%s=%r' % (key, value)
18569
      for key, value in self.__dict__.iteritems()]
18570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18571
 
18572
  def __eq__(self, other):
18573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18574
 
18575
  def __ne__(self, other):
18576
    return not (self == other)
6838 vikram.rag 18577
 
18578
class getAllInsurers_args:
18579
 
18580
  thrift_spec = (
18581
  )
18582
 
18583
  def read(self, iprot):
18584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18586
      return
18587
    iprot.readStructBegin()
18588
    while True:
18589
      (fname, ftype, fid) = iprot.readFieldBegin()
18590
      if ftype == TType.STOP:
18591
        break
18592
      else:
18593
        iprot.skip(ftype)
18594
      iprot.readFieldEnd()
18595
    iprot.readStructEnd()
18596
 
18597
  def write(self, oprot):
18598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18600
      return
18601
    oprot.writeStructBegin('getAllInsurers_args')
18602
    oprot.writeFieldStop()
18603
    oprot.writeStructEnd()
18604
 
18605
  def validate(self):
18606
    return
18607
 
18608
 
18609
  def __repr__(self):
18610
    L = ['%s=%r' % (key, value)
18611
      for key, value in self.__dict__.iteritems()]
18612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18613
 
18614
  def __eq__(self, other):
18615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18616
 
18617
  def __ne__(self, other):
18618
    return not (self == other)
18619
 
18620
class getAllInsurers_result:
18621
  """
18622
  Attributes:
18623
   - success
18624
  """
18625
 
18626
  thrift_spec = (
18627
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
18628
  )
18629
 
18630
  def __init__(self, success=None,):
18631
    self.success = success
18632
 
18633
  def read(self, iprot):
18634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18636
      return
18637
    iprot.readStructBegin()
18638
    while True:
18639
      (fname, ftype, fid) = iprot.readFieldBegin()
18640
      if ftype == TType.STOP:
18641
        break
18642
      if fid == 0:
18643
        if ftype == TType.LIST:
18644
          self.success = []
9155 kshitij.so 18645
          (_etype384, _size381) = iprot.readListBegin()
18646
          for _i385 in xrange(_size381):
18647
            _elem386 = Insurer()
18648
            _elem386.read(iprot)
18649
            self.success.append(_elem386)
6838 vikram.rag 18650
          iprot.readListEnd()
18651
        else:
18652
          iprot.skip(ftype)
18653
      else:
18654
        iprot.skip(ftype)
18655
      iprot.readFieldEnd()
18656
    iprot.readStructEnd()
18657
 
18658
  def write(self, oprot):
18659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18661
      return
18662
    oprot.writeStructBegin('getAllInsurers_result')
18663
    if self.success is not None:
18664
      oprot.writeFieldBegin('success', TType.LIST, 0)
18665
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 18666
      for iter387 in self.success:
18667
        iter387.write(oprot)
6838 vikram.rag 18668
      oprot.writeListEnd()
18669
      oprot.writeFieldEnd()
18670
    oprot.writeFieldStop()
18671
    oprot.writeStructEnd()
18672
 
18673
  def validate(self):
18674
    return
18675
 
18676
 
18677
  def __repr__(self):
18678
    L = ['%s=%r' % (key, value)
18679
      for key, value in self.__dict__.iteritems()]
18680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18681
 
18682
  def __eq__(self, other):
18683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18684
 
18685
  def __ne__(self, other):
18686
    return not (self == other)
6962 rajveer 18687
 
18688
class updateInsuranceDeclaredAmount_args:
18689
  """
18690
  Attributes:
18691
   - insurerId
18692
   - amount
18693
  """
18694
 
18695
  thrift_spec = (
18696
    None, # 0
18697
    (1, TType.I64, 'insurerId', None, None, ), # 1
18698
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
18699
  )
18700
 
18701
  def __init__(self, insurerId=None, amount=None,):
18702
    self.insurerId = insurerId
18703
    self.amount = amount
18704
 
18705
  def read(self, iprot):
18706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18708
      return
18709
    iprot.readStructBegin()
18710
    while True:
18711
      (fname, ftype, fid) = iprot.readFieldBegin()
18712
      if ftype == TType.STOP:
18713
        break
18714
      if fid == 1:
18715
        if ftype == TType.I64:
18716
          self.insurerId = iprot.readI64();
18717
        else:
18718
          iprot.skip(ftype)
18719
      elif fid == 2:
18720
        if ftype == TType.DOUBLE:
18721
          self.amount = iprot.readDouble();
18722
        else:
18723
          iprot.skip(ftype)
18724
      else:
18725
        iprot.skip(ftype)
18726
      iprot.readFieldEnd()
18727
    iprot.readStructEnd()
18728
 
18729
  def write(self, oprot):
18730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18732
      return
18733
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
18734
    if self.insurerId is not None:
18735
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
18736
      oprot.writeI64(self.insurerId)
18737
      oprot.writeFieldEnd()
18738
    if self.amount is not None:
18739
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
18740
      oprot.writeDouble(self.amount)
18741
      oprot.writeFieldEnd()
18742
    oprot.writeFieldStop()
18743
    oprot.writeStructEnd()
18744
 
18745
  def validate(self):
18746
    return
18747
 
18748
 
18749
  def __repr__(self):
18750
    L = ['%s=%r' % (key, value)
18751
      for key, value in self.__dict__.iteritems()]
18752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18753
 
18754
  def __eq__(self, other):
18755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18756
 
18757
  def __ne__(self, other):
18758
    return not (self == other)
18759
 
18760
class updateInsuranceDeclaredAmount_result:
18761
 
18762
  thrift_spec = (
18763
  )
18764
 
18765
  def read(self, iprot):
18766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18768
      return
18769
    iprot.readStructBegin()
18770
    while True:
18771
      (fname, ftype, fid) = iprot.readFieldBegin()
18772
      if ftype == TType.STOP:
18773
        break
18774
      else:
18775
        iprot.skip(ftype)
18776
      iprot.readFieldEnd()
18777
    iprot.readStructEnd()
18778
 
18779
  def write(self, oprot):
18780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18782
      return
18783
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
18784
    oprot.writeFieldStop()
18785
    oprot.writeStructEnd()
18786
 
18787
  def validate(self):
18788
    return
18789
 
18790
 
18791
  def __repr__(self):
18792
    L = ['%s=%r' % (key, value)
18793
      for key, value in self.__dict__.iteritems()]
18794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18795
 
18796
  def __eq__(self, other):
18797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18798
 
18799
  def __ne__(self, other):
18800
    return not (self == other)
7190 amar.kumar 18801
 
18802
class getFreebieForItem_args:
18803
  """
18804
  Attributes:
18805
   - itemId
18806
  """
18807
 
18808
  thrift_spec = (
18809
    None, # 0
18810
    (1, TType.I64, 'itemId', None, None, ), # 1
18811
  )
18812
 
18813
  def __init__(self, itemId=None,):
18814
    self.itemId = itemId
18815
 
18816
  def read(self, iprot):
18817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18819
      return
18820
    iprot.readStructBegin()
18821
    while True:
18822
      (fname, ftype, fid) = iprot.readFieldBegin()
18823
      if ftype == TType.STOP:
18824
        break
18825
      if fid == 1:
18826
        if ftype == TType.I64:
18827
          self.itemId = iprot.readI64();
18828
        else:
18829
          iprot.skip(ftype)
18830
      else:
18831
        iprot.skip(ftype)
18832
      iprot.readFieldEnd()
18833
    iprot.readStructEnd()
18834
 
18835
  def write(self, oprot):
18836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18838
      return
18839
    oprot.writeStructBegin('getFreebieForItem_args')
18840
    if self.itemId is not None:
18841
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18842
      oprot.writeI64(self.itemId)
18843
      oprot.writeFieldEnd()
18844
    oprot.writeFieldStop()
18845
    oprot.writeStructEnd()
18846
 
18847
  def validate(self):
18848
    return
18849
 
18850
 
18851
  def __repr__(self):
18852
    L = ['%s=%r' % (key, value)
18853
      for key, value in self.__dict__.iteritems()]
18854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18855
 
18856
  def __eq__(self, other):
18857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18858
 
18859
  def __ne__(self, other):
18860
    return not (self == other)
18861
 
18862
class getFreebieForItem_result:
18863
  """
18864
  Attributes:
18865
   - success
18866
  """
18867
 
18868
  thrift_spec = (
18869
    (0, TType.I64, 'success', None, None, ), # 0
18870
  )
18871
 
18872
  def __init__(self, success=None,):
18873
    self.success = success
18874
 
18875
  def read(self, iprot):
18876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18878
      return
18879
    iprot.readStructBegin()
18880
    while True:
18881
      (fname, ftype, fid) = iprot.readFieldBegin()
18882
      if ftype == TType.STOP:
18883
        break
18884
      if fid == 0:
18885
        if ftype == TType.I64:
18886
          self.success = iprot.readI64();
18887
        else:
18888
          iprot.skip(ftype)
18889
      else:
18890
        iprot.skip(ftype)
18891
      iprot.readFieldEnd()
18892
    iprot.readStructEnd()
18893
 
18894
  def write(self, oprot):
18895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18897
      return
18898
    oprot.writeStructBegin('getFreebieForItem_result')
18899
    if self.success is not None:
18900
      oprot.writeFieldBegin('success', TType.I64, 0)
18901
      oprot.writeI64(self.success)
18902
      oprot.writeFieldEnd()
18903
    oprot.writeFieldStop()
18904
    oprot.writeStructEnd()
18905
 
18906
  def validate(self):
18907
    return
18908
 
18909
 
18910
  def __repr__(self):
18911
    L = ['%s=%r' % (key, value)
18912
      for key, value in self.__dict__.iteritems()]
18913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18914
 
18915
  def __eq__(self, other):
18916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18917
 
18918
  def __ne__(self, other):
18919
    return not (self == other)
18920
 
18921
class addOrUpdateFreebieForItem_args:
18922
  """
18923
  Attributes:
18924
   - freebieItem
18925
  """
18926
 
18927
  thrift_spec = (
18928
    None, # 0
18929
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
18930
  )
18931
 
18932
  def __init__(self, freebieItem=None,):
18933
    self.freebieItem = freebieItem
18934
 
18935
  def read(self, iprot):
18936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18938
      return
18939
    iprot.readStructBegin()
18940
    while True:
18941
      (fname, ftype, fid) = iprot.readFieldBegin()
18942
      if ftype == TType.STOP:
18943
        break
18944
      if fid == 1:
18945
        if ftype == TType.STRUCT:
18946
          self.freebieItem = FreebieItem()
18947
          self.freebieItem.read(iprot)
18948
        else:
18949
          iprot.skip(ftype)
18950
      else:
18951
        iprot.skip(ftype)
18952
      iprot.readFieldEnd()
18953
    iprot.readStructEnd()
18954
 
18955
  def write(self, oprot):
18956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18958
      return
18959
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
18960
    if self.freebieItem is not None:
18961
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
18962
      self.freebieItem.write(oprot)
18963
      oprot.writeFieldEnd()
18964
    oprot.writeFieldStop()
18965
    oprot.writeStructEnd()
18966
 
18967
  def validate(self):
18968
    return
18969
 
18970
 
18971
  def __repr__(self):
18972
    L = ['%s=%r' % (key, value)
18973
      for key, value in self.__dict__.iteritems()]
18974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18975
 
18976
  def __eq__(self, other):
18977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18978
 
18979
  def __ne__(self, other):
18980
    return not (self == other)
18981
 
18982
class addOrUpdateFreebieForItem_result:
18983
 
18984
  thrift_spec = (
18985
  )
18986
 
18987
  def read(self, iprot):
18988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18990
      return
18991
    iprot.readStructBegin()
18992
    while True:
18993
      (fname, ftype, fid) = iprot.readFieldBegin()
18994
      if ftype == TType.STOP:
18995
        break
18996
      else:
18997
        iprot.skip(ftype)
18998
      iprot.readFieldEnd()
18999
    iprot.readStructEnd()
19000
 
19001
  def write(self, oprot):
19002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19004
      return
19005
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
19006
    oprot.writeFieldStop()
19007
    oprot.writeStructEnd()
19008
 
19009
  def validate(self):
19010
    return
19011
 
19012
 
19013
  def __repr__(self):
19014
    L = ['%s=%r' % (key, value)
19015
      for key, value in self.__dict__.iteritems()]
19016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19017
 
19018
  def __eq__(self, other):
19019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19020
 
19021
  def __ne__(self, other):
19022
    return not (self == other)
7256 rajveer 19023
 
7272 amit.gupta 19024
class addOrUpdateBrandInfo_args:
19025
  """
19026
  Attributes:
19027
   - brandInfo
19028
  """
19029
 
19030
  thrift_spec = (
19031
    None, # 0
19032
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
19033
  )
19034
 
19035
  def __init__(self, brandInfo=None,):
19036
    self.brandInfo = brandInfo
19037
 
19038
  def read(self, iprot):
19039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19041
      return
19042
    iprot.readStructBegin()
19043
    while True:
19044
      (fname, ftype, fid) = iprot.readFieldBegin()
19045
      if ftype == TType.STOP:
19046
        break
19047
      if fid == 1:
19048
        if ftype == TType.STRUCT:
19049
          self.brandInfo = BrandInfo()
19050
          self.brandInfo.read(iprot)
19051
        else:
19052
          iprot.skip(ftype)
19053
      else:
19054
        iprot.skip(ftype)
19055
      iprot.readFieldEnd()
19056
    iprot.readStructEnd()
19057
 
19058
  def write(self, oprot):
19059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19061
      return
19062
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
19063
    if self.brandInfo is not None:
19064
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
19065
      self.brandInfo.write(oprot)
19066
      oprot.writeFieldEnd()
19067
    oprot.writeFieldStop()
19068
    oprot.writeStructEnd()
19069
 
19070
  def validate(self):
19071
    return
19072
 
19073
 
19074
  def __repr__(self):
19075
    L = ['%s=%r' % (key, value)
19076
      for key, value in self.__dict__.iteritems()]
19077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19078
 
19079
  def __eq__(self, other):
19080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19081
 
19082
  def __ne__(self, other):
19083
    return not (self == other)
19084
 
19085
class addOrUpdateBrandInfo_result:
19086
 
19087
  thrift_spec = (
19088
  )
19089
 
19090
  def read(self, iprot):
19091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19093
      return
19094
    iprot.readStructBegin()
19095
    while True:
19096
      (fname, ftype, fid) = iprot.readFieldBegin()
19097
      if ftype == TType.STOP:
19098
        break
19099
      else:
19100
        iprot.skip(ftype)
19101
      iprot.readFieldEnd()
19102
    iprot.readStructEnd()
19103
 
19104
  def write(self, oprot):
19105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19107
      return
19108
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
19109
    oprot.writeFieldStop()
19110
    oprot.writeStructEnd()
19111
 
19112
  def validate(self):
19113
    return
19114
 
19115
 
19116
  def __repr__(self):
19117
    L = ['%s=%r' % (key, value)
19118
      for key, value in self.__dict__.iteritems()]
19119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19120
 
19121
  def __eq__(self, other):
19122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19123
 
19124
  def __ne__(self, other):
19125
    return not (self == other)
19126
 
19127
class getBrandInfo_args:
19128
 
19129
  thrift_spec = (
19130
  )
19131
 
19132
  def read(self, iprot):
19133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19135
      return
19136
    iprot.readStructBegin()
19137
    while True:
19138
      (fname, ftype, fid) = iprot.readFieldBegin()
19139
      if ftype == TType.STOP:
19140
        break
19141
      else:
19142
        iprot.skip(ftype)
19143
      iprot.readFieldEnd()
19144
    iprot.readStructEnd()
19145
 
19146
  def write(self, oprot):
19147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19149
      return
19150
    oprot.writeStructBegin('getBrandInfo_args')
19151
    oprot.writeFieldStop()
19152
    oprot.writeStructEnd()
19153
 
19154
  def validate(self):
19155
    return
19156
 
19157
 
19158
  def __repr__(self):
19159
    L = ['%s=%r' % (key, value)
19160
      for key, value in self.__dict__.iteritems()]
19161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19162
 
19163
  def __eq__(self, other):
19164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19165
 
19166
  def __ne__(self, other):
19167
    return not (self == other)
19168
 
19169
class getBrandInfo_result:
19170
  """
19171
  Attributes:
19172
   - success
19173
  """
19174
 
19175
  thrift_spec = (
19176
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
19177
  )
19178
 
19179
  def __init__(self, success=None,):
19180
    self.success = success
19181
 
19182
  def read(self, iprot):
19183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19185
      return
19186
    iprot.readStructBegin()
19187
    while True:
19188
      (fname, ftype, fid) = iprot.readFieldBegin()
19189
      if ftype == TType.STOP:
19190
        break
19191
      if fid == 0:
19192
        if ftype == TType.MAP:
19193
          self.success = {}
9155 kshitij.so 19194
          (_ktype389, _vtype390, _size388 ) = iprot.readMapBegin() 
19195
          for _i392 in xrange(_size388):
19196
            _key393 = iprot.readString();
19197
            _val394 = BrandInfo()
19198
            _val394.read(iprot)
19199
            self.success[_key393] = _val394
7272 amit.gupta 19200
          iprot.readMapEnd()
19201
        else:
19202
          iprot.skip(ftype)
19203
      else:
19204
        iprot.skip(ftype)
19205
      iprot.readFieldEnd()
19206
    iprot.readStructEnd()
19207
 
19208
  def write(self, oprot):
19209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19211
      return
19212
    oprot.writeStructBegin('getBrandInfo_result')
19213
    if self.success is not None:
19214
      oprot.writeFieldBegin('success', TType.MAP, 0)
19215
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
9155 kshitij.so 19216
      for kiter395,viter396 in self.success.items():
19217
        oprot.writeString(kiter395)
19218
        viter396.write(oprot)
7272 amit.gupta 19219
      oprot.writeMapEnd()
19220
      oprot.writeFieldEnd()
19221
    oprot.writeFieldStop()
19222
    oprot.writeStructEnd()
19223
 
19224
  def validate(self):
19225
    return
19226
 
19227
 
19228
  def __repr__(self):
19229
    L = ['%s=%r' % (key, value)
19230
      for key, value in self.__dict__.iteritems()]
19231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19232
 
19233
  def __eq__(self, other):
19234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19235
 
19236
  def __ne__(self, other):
19237
    return not (self == other)
19238
 
7256 rajveer 19239
class getStorePricing_args:
19240
  """
19241
  Attributes:
19242
   - itemId
19243
  """
19244
 
19245
  thrift_spec = (
19246
    None, # 0
19247
    (1, TType.I64, 'itemId', None, None, ), # 1
19248
  )
19249
 
19250
  def __init__(self, itemId=None,):
19251
    self.itemId = itemId
19252
 
19253
  def read(self, iprot):
19254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19256
      return
19257
    iprot.readStructBegin()
19258
    while True:
19259
      (fname, ftype, fid) = iprot.readFieldBegin()
19260
      if ftype == TType.STOP:
19261
        break
19262
      if fid == 1:
19263
        if ftype == TType.I64:
19264
          self.itemId = iprot.readI64();
19265
        else:
19266
          iprot.skip(ftype)
19267
      else:
19268
        iprot.skip(ftype)
19269
      iprot.readFieldEnd()
19270
    iprot.readStructEnd()
19271
 
19272
  def write(self, oprot):
19273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19275
      return
19276
    oprot.writeStructBegin('getStorePricing_args')
19277
    if self.itemId is not None:
19278
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19279
      oprot.writeI64(self.itemId)
19280
      oprot.writeFieldEnd()
19281
    oprot.writeFieldStop()
19282
    oprot.writeStructEnd()
19283
 
19284
  def validate(self):
19285
    return
19286
 
19287
 
19288
  def __repr__(self):
19289
    L = ['%s=%r' % (key, value)
19290
      for key, value in self.__dict__.iteritems()]
19291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19292
 
19293
  def __eq__(self, other):
19294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19295
 
19296
  def __ne__(self, other):
19297
    return not (self == other)
19298
 
19299
class getStorePricing_result:
19300
  """
19301
  Attributes:
19302
   - success
19303
  """
19304
 
19305
  thrift_spec = (
19306
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
19307
  )
19308
 
19309
  def __init__(self, success=None,):
19310
    self.success = success
19311
 
19312
  def read(self, iprot):
19313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19315
      return
19316
    iprot.readStructBegin()
19317
    while True:
19318
      (fname, ftype, fid) = iprot.readFieldBegin()
19319
      if ftype == TType.STOP:
19320
        break
19321
      if fid == 0:
19322
        if ftype == TType.STRUCT:
19323
          self.success = StorePricing()
19324
          self.success.read(iprot)
19325
        else:
19326
          iprot.skip(ftype)
19327
      else:
19328
        iprot.skip(ftype)
19329
      iprot.readFieldEnd()
19330
    iprot.readStructEnd()
19331
 
19332
  def write(self, oprot):
19333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19335
      return
19336
    oprot.writeStructBegin('getStorePricing_result')
19337
    if self.success is not None:
19338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19339
      self.success.write(oprot)
19340
      oprot.writeFieldEnd()
19341
    oprot.writeFieldStop()
19342
    oprot.writeStructEnd()
19343
 
19344
  def validate(self):
19345
    return
19346
 
19347
 
19348
  def __repr__(self):
19349
    L = ['%s=%r' % (key, value)
19350
      for key, value in self.__dict__.iteritems()]
19351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19352
 
19353
  def __eq__(self, other):
19354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19355
 
19356
  def __ne__(self, other):
19357
    return not (self == other)
7265 rajveer 19358
 
7306 rajveer 19359
class getStorePricings_args:
19360
  """
19361
  Attributes:
19362
   - itemIds
19363
  """
19364
 
19365
  thrift_spec = (
19366
    None, # 0
19367
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
19368
  )
19369
 
19370
  def __init__(self, itemIds=None,):
19371
    self.itemIds = itemIds
19372
 
19373
  def read(self, iprot):
19374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19376
      return
19377
    iprot.readStructBegin()
19378
    while True:
19379
      (fname, ftype, fid) = iprot.readFieldBegin()
19380
      if ftype == TType.STOP:
19381
        break
19382
      if fid == 1:
19383
        if ftype == TType.LIST:
19384
          self.itemIds = []
9155 kshitij.so 19385
          (_etype400, _size397) = iprot.readListBegin()
19386
          for _i401 in xrange(_size397):
19387
            _elem402 = iprot.readI64();
19388
            self.itemIds.append(_elem402)
7306 rajveer 19389
          iprot.readListEnd()
19390
        else:
19391
          iprot.skip(ftype)
19392
      else:
19393
        iprot.skip(ftype)
19394
      iprot.readFieldEnd()
19395
    iprot.readStructEnd()
19396
 
19397
  def write(self, oprot):
19398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19400
      return
19401
    oprot.writeStructBegin('getStorePricings_args')
19402
    if self.itemIds is not None:
19403
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
19404
      oprot.writeListBegin(TType.I64, len(self.itemIds))
9155 kshitij.so 19405
      for iter403 in self.itemIds:
19406
        oprot.writeI64(iter403)
7306 rajveer 19407
      oprot.writeListEnd()
19408
      oprot.writeFieldEnd()
19409
    oprot.writeFieldStop()
19410
    oprot.writeStructEnd()
19411
 
19412
  def validate(self):
19413
    return
19414
 
19415
 
19416
  def __repr__(self):
19417
    L = ['%s=%r' % (key, value)
19418
      for key, value in self.__dict__.iteritems()]
19419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19420
 
19421
  def __eq__(self, other):
19422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19423
 
19424
  def __ne__(self, other):
19425
    return not (self == other)
19426
 
19427
class getStorePricings_result:
19428
  """
19429
  Attributes:
19430
   - success
19431
  """
19432
 
19433
  thrift_spec = (
19434
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
19435
  )
19436
 
19437
  def __init__(self, success=None,):
19438
    self.success = success
19439
 
19440
  def read(self, iprot):
19441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19443
      return
19444
    iprot.readStructBegin()
19445
    while True:
19446
      (fname, ftype, fid) = iprot.readFieldBegin()
19447
      if ftype == TType.STOP:
19448
        break
19449
      if fid == 0:
19450
        if ftype == TType.LIST:
19451
          self.success = []
9155 kshitij.so 19452
          (_etype407, _size404) = iprot.readListBegin()
19453
          for _i408 in xrange(_size404):
19454
            _elem409 = StorePricing()
19455
            _elem409.read(iprot)
19456
            self.success.append(_elem409)
7306 rajveer 19457
          iprot.readListEnd()
19458
        else:
19459
          iprot.skip(ftype)
19460
      else:
19461
        iprot.skip(ftype)
19462
      iprot.readFieldEnd()
19463
    iprot.readStructEnd()
19464
 
19465
  def write(self, oprot):
19466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19468
      return
19469
    oprot.writeStructBegin('getStorePricings_result')
19470
    if self.success is not None:
19471
      oprot.writeFieldBegin('success', TType.LIST, 0)
19472
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19473
      for iter410 in self.success:
19474
        iter410.write(oprot)
7306 rajveer 19475
      oprot.writeListEnd()
19476
      oprot.writeFieldEnd()
19477
    oprot.writeFieldStop()
19478
    oprot.writeStructEnd()
19479
 
19480
  def validate(self):
19481
    return
19482
 
19483
 
19484
  def __repr__(self):
19485
    L = ['%s=%r' % (key, value)
19486
      for key, value in self.__dict__.iteritems()]
19487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19488
 
19489
  def __eq__(self, other):
19490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19491
 
19492
  def __ne__(self, other):
19493
    return not (self == other)
19494
 
7265 rajveer 19495
class updateStorePricing_args:
19496
  """
19497
  Attributes:
19498
   - sp
7382 rajveer 19499
   - allColors
7265 rajveer 19500
  """
19501
 
19502
  thrift_spec = (
19503
    None, # 0
19504
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 19505
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 19506
  )
19507
 
7382 rajveer 19508
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 19509
    self.sp = sp
7382 rajveer 19510
    self.allColors = allColors
7265 rajveer 19511
 
19512
  def read(self, iprot):
19513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19515
      return
19516
    iprot.readStructBegin()
19517
    while True:
19518
      (fname, ftype, fid) = iprot.readFieldBegin()
19519
      if ftype == TType.STOP:
19520
        break
19521
      if fid == 1:
19522
        if ftype == TType.STRUCT:
19523
          self.sp = StorePricing()
19524
          self.sp.read(iprot)
19525
        else:
19526
          iprot.skip(ftype)
7382 rajveer 19527
      elif fid == 2:
19528
        if ftype == TType.BOOL:
19529
          self.allColors = iprot.readBool();
19530
        else:
19531
          iprot.skip(ftype)
7265 rajveer 19532
      else:
19533
        iprot.skip(ftype)
19534
      iprot.readFieldEnd()
19535
    iprot.readStructEnd()
19536
 
19537
  def write(self, oprot):
19538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19540
      return
19541
    oprot.writeStructBegin('updateStorePricing_args')
19542
    if self.sp is not None:
19543
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
19544
      self.sp.write(oprot)
19545
      oprot.writeFieldEnd()
7382 rajveer 19546
    if self.allColors is not None:
19547
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
19548
      oprot.writeBool(self.allColors)
19549
      oprot.writeFieldEnd()
7265 rajveer 19550
    oprot.writeFieldStop()
19551
    oprot.writeStructEnd()
19552
 
19553
  def validate(self):
19554
    return
19555
 
19556
 
19557
  def __repr__(self):
19558
    L = ['%s=%r' % (key, value)
19559
      for key, value in self.__dict__.iteritems()]
19560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19561
 
19562
  def __eq__(self, other):
19563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19564
 
19565
  def __ne__(self, other):
19566
    return not (self == other)
19567
 
19568
class updateStorePricing_result:
19569
 
19570
  thrift_spec = (
19571
  )
19572
 
19573
  def read(self, iprot):
19574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19576
      return
19577
    iprot.readStructBegin()
19578
    while True:
19579
      (fname, ftype, fid) = iprot.readFieldBegin()
19580
      if ftype == TType.STOP:
19581
        break
19582
      else:
19583
        iprot.skip(ftype)
19584
      iprot.readFieldEnd()
19585
    iprot.readStructEnd()
19586
 
19587
  def write(self, oprot):
19588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19590
      return
19591
    oprot.writeStructBegin('updateStorePricing_result')
19592
    oprot.writeFieldStop()
19593
    oprot.writeStructEnd()
19594
 
19595
  def validate(self):
19596
    return
19597
 
19598
 
19599
  def __repr__(self):
19600
    L = ['%s=%r' % (key, value)
19601
      for key, value in self.__dict__.iteritems()]
19602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19603
 
19604
  def __eq__(self, other):
19605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19606
 
19607
  def __ne__(self, other):
19608
    return not (self == other)
7281 kshitij.so 19609
 
19610
class getAllAmazonListedItems_args:
19611
 
19612
  thrift_spec = (
19613
  )
19614
 
19615
  def read(self, iprot):
19616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19618
      return
19619
    iprot.readStructBegin()
19620
    while True:
19621
      (fname, ftype, fid) = iprot.readFieldBegin()
19622
      if ftype == TType.STOP:
19623
        break
19624
      else:
19625
        iprot.skip(ftype)
19626
      iprot.readFieldEnd()
19627
    iprot.readStructEnd()
19628
 
19629
  def write(self, oprot):
19630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19632
      return
19633
    oprot.writeStructBegin('getAllAmazonListedItems_args')
19634
    oprot.writeFieldStop()
19635
    oprot.writeStructEnd()
19636
 
19637
  def validate(self):
19638
    return
19639
 
19640
 
19641
  def __repr__(self):
19642
    L = ['%s=%r' % (key, value)
19643
      for key, value in self.__dict__.iteritems()]
19644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19645
 
19646
  def __eq__(self, other):
19647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19648
 
19649
  def __ne__(self, other):
19650
    return not (self == other)
19651
 
19652
class getAllAmazonListedItems_result:
19653
  """
19654
  Attributes:
19655
   - success
19656
  """
19657
 
19658
  thrift_spec = (
19659
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
19660
  )
19661
 
19662
  def __init__(self, success=None,):
19663
    self.success = success
19664
 
19665
  def read(self, iprot):
19666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19668
      return
19669
    iprot.readStructBegin()
19670
    while True:
19671
      (fname, ftype, fid) = iprot.readFieldBegin()
19672
      if ftype == TType.STOP:
19673
        break
19674
      if fid == 0:
19675
        if ftype == TType.LIST:
19676
          self.success = []
9155 kshitij.so 19677
          (_etype414, _size411) = iprot.readListBegin()
19678
          for _i415 in xrange(_size411):
19679
            _elem416 = Amazonlisted()
19680
            _elem416.read(iprot)
19681
            self.success.append(_elem416)
7281 kshitij.so 19682
          iprot.readListEnd()
19683
        else:
19684
          iprot.skip(ftype)
19685
      else:
19686
        iprot.skip(ftype)
19687
      iprot.readFieldEnd()
19688
    iprot.readStructEnd()
19689
 
19690
  def write(self, oprot):
19691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19693
      return
19694
    oprot.writeStructBegin('getAllAmazonListedItems_result')
19695
    if self.success is not None:
19696
      oprot.writeFieldBegin('success', TType.LIST, 0)
19697
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19698
      for iter417 in self.success:
19699
        iter417.write(oprot)
7281 kshitij.so 19700
      oprot.writeListEnd()
19701
      oprot.writeFieldEnd()
19702
    oprot.writeFieldStop()
19703
    oprot.writeStructEnd()
19704
 
19705
  def validate(self):
19706
    return
19707
 
19708
 
19709
  def __repr__(self):
19710
    L = ['%s=%r' % (key, value)
19711
      for key, value in self.__dict__.iteritems()]
19712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19713
 
19714
  def __eq__(self, other):
19715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19716
 
19717
  def __ne__(self, other):
19718
    return not (self == other)
19719
 
8619 kshitij.so 19720
class searchAmazonItems_args:
19721
  """
19722
  Attributes:
19723
   - searchTerm
19724
   - offset
19725
   - limit
19726
  """
19727
 
19728
  thrift_spec = (
19729
    None, # 0
19730
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
19731
    (2, TType.I64, 'offset', None, None, ), # 2
19732
    (3, TType.I64, 'limit', None, None, ), # 3
19733
  )
19734
 
19735
  def __init__(self, searchTerm=None, offset=None, limit=None,):
19736
    self.searchTerm = searchTerm
19737
    self.offset = offset
19738
    self.limit = limit
19739
 
19740
  def read(self, iprot):
19741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19743
      return
19744
    iprot.readStructBegin()
19745
    while True:
19746
      (fname, ftype, fid) = iprot.readFieldBegin()
19747
      if ftype == TType.STOP:
19748
        break
19749
      if fid == 1:
19750
        if ftype == TType.LIST:
19751
          self.searchTerm = []
9155 kshitij.so 19752
          (_etype421, _size418) = iprot.readListBegin()
19753
          for _i422 in xrange(_size418):
19754
            _elem423 = iprot.readString();
19755
            self.searchTerm.append(_elem423)
8619 kshitij.so 19756
          iprot.readListEnd()
19757
        else:
19758
          iprot.skip(ftype)
19759
      elif fid == 2:
19760
        if ftype == TType.I64:
19761
          self.offset = iprot.readI64();
19762
        else:
19763
          iprot.skip(ftype)
19764
      elif fid == 3:
19765
        if ftype == TType.I64:
19766
          self.limit = iprot.readI64();
19767
        else:
19768
          iprot.skip(ftype)
19769
      else:
19770
        iprot.skip(ftype)
19771
      iprot.readFieldEnd()
19772
    iprot.readStructEnd()
19773
 
19774
  def write(self, oprot):
19775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19777
      return
19778
    oprot.writeStructBegin('searchAmazonItems_args')
19779
    if self.searchTerm is not None:
19780
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
19781
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 19782
      for iter424 in self.searchTerm:
19783
        oprot.writeString(iter424)
8619 kshitij.so 19784
      oprot.writeListEnd()
19785
      oprot.writeFieldEnd()
19786
    if self.offset is not None:
19787
      oprot.writeFieldBegin('offset', TType.I64, 2)
19788
      oprot.writeI64(self.offset)
19789
      oprot.writeFieldEnd()
19790
    if self.limit is not None:
19791
      oprot.writeFieldBegin('limit', TType.I64, 3)
19792
      oprot.writeI64(self.limit)
19793
      oprot.writeFieldEnd()
19794
    oprot.writeFieldStop()
19795
    oprot.writeStructEnd()
19796
 
19797
  def validate(self):
19798
    return
19799
 
19800
 
19801
  def __repr__(self):
19802
    L = ['%s=%r' % (key, value)
19803
      for key, value in self.__dict__.iteritems()]
19804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19805
 
19806
  def __eq__(self, other):
19807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19808
 
19809
  def __ne__(self, other):
19810
    return not (self == other)
19811
 
19812
class searchAmazonItems_result:
19813
  """
19814
  Attributes:
19815
   - success
19816
  """
19817
 
19818
  thrift_spec = (
19819
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
19820
  )
19821
 
19822
  def __init__(self, success=None,):
19823
    self.success = success
19824
 
19825
  def read(self, iprot):
19826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19828
      return
19829
    iprot.readStructBegin()
19830
    while True:
19831
      (fname, ftype, fid) = iprot.readFieldBegin()
19832
      if ftype == TType.STOP:
19833
        break
19834
      if fid == 0:
19835
        if ftype == TType.LIST:
19836
          self.success = []
9155 kshitij.so 19837
          (_etype428, _size425) = iprot.readListBegin()
19838
          for _i429 in xrange(_size425):
19839
            _elem430 = Amazonlisted()
19840
            _elem430.read(iprot)
19841
            self.success.append(_elem430)
8619 kshitij.so 19842
          iprot.readListEnd()
19843
        else:
19844
          iprot.skip(ftype)
19845
      else:
19846
        iprot.skip(ftype)
19847
      iprot.readFieldEnd()
19848
    iprot.readStructEnd()
19849
 
19850
  def write(self, oprot):
19851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19853
      return
19854
    oprot.writeStructBegin('searchAmazonItems_result')
19855
    if self.success is not None:
19856
      oprot.writeFieldBegin('success', TType.LIST, 0)
19857
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 19858
      for iter431 in self.success:
19859
        iter431.write(oprot)
8619 kshitij.so 19860
      oprot.writeListEnd()
19861
      oprot.writeFieldEnd()
19862
    oprot.writeFieldStop()
19863
    oprot.writeStructEnd()
19864
 
19865
  def validate(self):
19866
    return
19867
 
19868
 
19869
  def __repr__(self):
19870
    L = ['%s=%r' % (key, value)
19871
      for key, value in self.__dict__.iteritems()]
19872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19873
 
19874
  def __eq__(self, other):
19875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19876
 
19877
  def __ne__(self, other):
19878
    return not (self == other)
19879
 
19880
class getAmazonSearchResultCount_args:
19881
  """
19882
  Attributes:
19883
   - searchTerm
19884
  """
19885
 
19886
  thrift_spec = (
19887
    None, # 0
19888
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
19889
  )
19890
 
19891
  def __init__(self, searchTerm=None,):
19892
    self.searchTerm = searchTerm
19893
 
19894
  def read(self, iprot):
19895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19897
      return
19898
    iprot.readStructBegin()
19899
    while True:
19900
      (fname, ftype, fid) = iprot.readFieldBegin()
19901
      if ftype == TType.STOP:
19902
        break
19903
      if fid == 1:
19904
        if ftype == TType.LIST:
19905
          self.searchTerm = []
9155 kshitij.so 19906
          (_etype435, _size432) = iprot.readListBegin()
19907
          for _i436 in xrange(_size432):
19908
            _elem437 = iprot.readString();
19909
            self.searchTerm.append(_elem437)
8619 kshitij.so 19910
          iprot.readListEnd()
19911
        else:
19912
          iprot.skip(ftype)
19913
      else:
19914
        iprot.skip(ftype)
19915
      iprot.readFieldEnd()
19916
    iprot.readStructEnd()
19917
 
19918
  def write(self, oprot):
19919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19921
      return
19922
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
19923
    if self.searchTerm is not None:
19924
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
19925
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
9155 kshitij.so 19926
      for iter438 in self.searchTerm:
19927
        oprot.writeString(iter438)
8619 kshitij.so 19928
      oprot.writeListEnd()
19929
      oprot.writeFieldEnd()
19930
    oprot.writeFieldStop()
19931
    oprot.writeStructEnd()
19932
 
19933
  def validate(self):
19934
    return
19935
 
19936
 
19937
  def __repr__(self):
19938
    L = ['%s=%r' % (key, value)
19939
      for key, value in self.__dict__.iteritems()]
19940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19941
 
19942
  def __eq__(self, other):
19943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19944
 
19945
  def __ne__(self, other):
19946
    return not (self == other)
19947
 
19948
class getAmazonSearchResultCount_result:
19949
  """
19950
  Attributes:
19951
   - success
19952
  """
19953
 
19954
  thrift_spec = (
19955
    (0, TType.I64, 'success', None, None, ), # 0
19956
  )
19957
 
19958
  def __init__(self, success=None,):
19959
    self.success = success
19960
 
19961
  def read(self, iprot):
19962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19964
      return
19965
    iprot.readStructBegin()
19966
    while True:
19967
      (fname, ftype, fid) = iprot.readFieldBegin()
19968
      if ftype == TType.STOP:
19969
        break
19970
      if fid == 0:
19971
        if ftype == TType.I64:
19972
          self.success = iprot.readI64();
19973
        else:
19974
          iprot.skip(ftype)
19975
      else:
19976
        iprot.skip(ftype)
19977
      iprot.readFieldEnd()
19978
    iprot.readStructEnd()
19979
 
19980
  def write(self, oprot):
19981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19983
      return
19984
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
19985
    if self.success is not None:
19986
      oprot.writeFieldBegin('success', TType.I64, 0)
19987
      oprot.writeI64(self.success)
19988
      oprot.writeFieldEnd()
19989
    oprot.writeFieldStop()
19990
    oprot.writeStructEnd()
19991
 
19992
  def validate(self):
19993
    return
19994
 
19995
 
19996
  def __repr__(self):
19997
    L = ['%s=%r' % (key, value)
19998
      for key, value in self.__dict__.iteritems()]
19999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20000
 
20001
  def __eq__(self, other):
20002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20003
 
20004
  def __ne__(self, other):
20005
    return not (self == other)
20006
 
20007
class getCountForAmazonlistedItems_args:
20008
 
20009
  thrift_spec = (
20010
  )
20011
 
20012
  def read(self, iprot):
20013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20015
      return
20016
    iprot.readStructBegin()
20017
    while True:
20018
      (fname, ftype, fid) = iprot.readFieldBegin()
20019
      if ftype == TType.STOP:
20020
        break
20021
      else:
20022
        iprot.skip(ftype)
20023
      iprot.readFieldEnd()
20024
    iprot.readStructEnd()
20025
 
20026
  def write(self, oprot):
20027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20029
      return
20030
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
20031
    oprot.writeFieldStop()
20032
    oprot.writeStructEnd()
20033
 
20034
  def validate(self):
20035
    return
20036
 
20037
 
20038
  def __repr__(self):
20039
    L = ['%s=%r' % (key, value)
20040
      for key, value in self.__dict__.iteritems()]
20041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20042
 
20043
  def __eq__(self, other):
20044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20045
 
20046
  def __ne__(self, other):
20047
    return not (self == other)
20048
 
20049
class getCountForAmazonlistedItems_result:
20050
  """
20051
  Attributes:
20052
   - success
20053
  """
20054
 
20055
  thrift_spec = (
20056
    (0, TType.I64, 'success', None, None, ), # 0
20057
  )
20058
 
20059
  def __init__(self, success=None,):
20060
    self.success = success
20061
 
20062
  def read(self, iprot):
20063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20065
      return
20066
    iprot.readStructBegin()
20067
    while True:
20068
      (fname, ftype, fid) = iprot.readFieldBegin()
20069
      if ftype == TType.STOP:
20070
        break
20071
      if fid == 0:
20072
        if ftype == TType.I64:
20073
          self.success = iprot.readI64();
20074
        else:
20075
          iprot.skip(ftype)
20076
      else:
20077
        iprot.skip(ftype)
20078
      iprot.readFieldEnd()
20079
    iprot.readStructEnd()
20080
 
20081
  def write(self, oprot):
20082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20084
      return
20085
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
20086
    if self.success is not None:
20087
      oprot.writeFieldBegin('success', TType.I64, 0)
20088
      oprot.writeI64(self.success)
20089
      oprot.writeFieldEnd()
20090
    oprot.writeFieldStop()
20091
    oprot.writeStructEnd()
20092
 
20093
  def validate(self):
20094
    return
20095
 
20096
 
20097
  def __repr__(self):
20098
    L = ['%s=%r' % (key, value)
20099
      for key, value in self.__dict__.iteritems()]
20100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20101
 
20102
  def __eq__(self, other):
20103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20104
 
20105
  def __ne__(self, other):
20106
    return not (self == other)
20107
 
7281 kshitij.so 20108
class getAmazonItemDetails_args:
20109
  """
20110
  Attributes:
20111
   - itemId
20112
  """
20113
 
20114
  thrift_spec = (
20115
    None, # 0
20116
    (1, TType.I64, 'itemId', None, None, ), # 1
20117
  )
20118
 
20119
  def __init__(self, itemId=None,):
20120
    self.itemId = itemId
20121
 
20122
  def read(self, iprot):
20123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20125
      return
20126
    iprot.readStructBegin()
20127
    while True:
20128
      (fname, ftype, fid) = iprot.readFieldBegin()
20129
      if ftype == TType.STOP:
20130
        break
20131
      if fid == 1:
20132
        if ftype == TType.I64:
20133
          self.itemId = iprot.readI64();
20134
        else:
20135
          iprot.skip(ftype)
20136
      else:
20137
        iprot.skip(ftype)
20138
      iprot.readFieldEnd()
20139
    iprot.readStructEnd()
20140
 
20141
  def write(self, oprot):
20142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20144
      return
20145
    oprot.writeStructBegin('getAmazonItemDetails_args')
20146
    if self.itemId is not None:
20147
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20148
      oprot.writeI64(self.itemId)
20149
      oprot.writeFieldEnd()
20150
    oprot.writeFieldStop()
20151
    oprot.writeStructEnd()
20152
 
20153
  def validate(self):
20154
    return
20155
 
20156
 
20157
  def __repr__(self):
20158
    L = ['%s=%r' % (key, value)
20159
      for key, value in self.__dict__.iteritems()]
20160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20161
 
20162
  def __eq__(self, other):
20163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20164
 
20165
  def __ne__(self, other):
20166
    return not (self == other)
20167
 
20168
class getAmazonItemDetails_result:
20169
  """
20170
  Attributes:
20171
   - success
20172
  """
20173
 
20174
  thrift_spec = (
20175
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
20176
  )
20177
 
20178
  def __init__(self, success=None,):
20179
    self.success = success
20180
 
20181
  def read(self, iprot):
20182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20184
      return
20185
    iprot.readStructBegin()
20186
    while True:
20187
      (fname, ftype, fid) = iprot.readFieldBegin()
20188
      if ftype == TType.STOP:
20189
        break
20190
      if fid == 0:
20191
        if ftype == TType.STRUCT:
20192
          self.success = Amazonlisted()
20193
          self.success.read(iprot)
20194
        else:
20195
          iprot.skip(ftype)
20196
      else:
20197
        iprot.skip(ftype)
20198
      iprot.readFieldEnd()
20199
    iprot.readStructEnd()
20200
 
20201
  def write(self, oprot):
20202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20204
      return
20205
    oprot.writeStructBegin('getAmazonItemDetails_result')
20206
    if self.success is not None:
20207
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20208
      self.success.write(oprot)
20209
      oprot.writeFieldEnd()
20210
    oprot.writeFieldStop()
20211
    oprot.writeStructEnd()
20212
 
20213
  def validate(self):
20214
    return
20215
 
20216
 
20217
  def __repr__(self):
20218
    L = ['%s=%r' % (key, value)
20219
      for key, value in self.__dict__.iteritems()]
20220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20221
 
20222
  def __eq__(self, other):
20223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20224
 
20225
  def __ne__(self, other):
20226
    return not (self == other)
20227
 
20228
class updateAmazonItemDetails_args:
20229
  """
20230
  Attributes:
8168 kshitij.so 20231
   - amazonlisted
7281 kshitij.so 20232
  """
20233
 
20234
  thrift_spec = (
20235
    None, # 0
8168 kshitij.so 20236
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 20237
  )
20238
 
8168 kshitij.so 20239
  def __init__(self, amazonlisted=None,):
20240
    self.amazonlisted = amazonlisted
7281 kshitij.so 20241
 
20242
  def read(self, iprot):
20243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20245
      return
20246
    iprot.readStructBegin()
20247
    while True:
20248
      (fname, ftype, fid) = iprot.readFieldBegin()
20249
      if ftype == TType.STOP:
20250
        break
20251
      if fid == 1:
8168 kshitij.so 20252
        if ftype == TType.STRUCT:
20253
          self.amazonlisted = Amazonlisted()
20254
          self.amazonlisted.read(iprot)
7281 kshitij.so 20255
        else:
20256
          iprot.skip(ftype)
20257
      else:
20258
        iprot.skip(ftype)
20259
      iprot.readFieldEnd()
20260
    iprot.readStructEnd()
20261
 
20262
  def write(self, oprot):
20263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20265
      return
20266
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 20267
    if self.amazonlisted is not None:
20268
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
20269
      self.amazonlisted.write(oprot)
7281 kshitij.so 20270
      oprot.writeFieldEnd()
20271
    oprot.writeFieldStop()
20272
    oprot.writeStructEnd()
20273
 
20274
  def validate(self):
20275
    return
20276
 
20277
 
20278
  def __repr__(self):
20279
    L = ['%s=%r' % (key, value)
20280
      for key, value in self.__dict__.iteritems()]
20281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20282
 
20283
  def __eq__(self, other):
20284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20285
 
20286
  def __ne__(self, other):
20287
    return not (self == other)
20288
 
20289
class updateAmazonItemDetails_result:
20290
 
20291
  thrift_spec = (
20292
  )
20293
 
20294
  def read(self, iprot):
20295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20297
      return
20298
    iprot.readStructBegin()
20299
    while True:
20300
      (fname, ftype, fid) = iprot.readFieldBegin()
20301
      if ftype == TType.STOP:
20302
        break
20303
      else:
20304
        iprot.skip(ftype)
20305
      iprot.readFieldEnd()
20306
    iprot.readStructEnd()
20307
 
20308
  def write(self, oprot):
20309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20311
      return
20312
    oprot.writeStructBegin('updateAmazonItemDetails_result')
20313
    oprot.writeFieldStop()
20314
    oprot.writeStructEnd()
20315
 
20316
  def validate(self):
20317
    return
20318
 
20319
 
20320
  def __repr__(self):
20321
    L = ['%s=%r' % (key, value)
20322
      for key, value in self.__dict__.iteritems()]
20323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20324
 
20325
  def __eq__(self, other):
20326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20327
 
20328
  def __ne__(self, other):
20329
    return not (self == other)
20330
 
20331
class addAmazonItem_args:
20332
  """
20333
  Attributes:
20334
   - amazonlisted
20335
  """
20336
 
20337
  thrift_spec = (
20338
    None, # 0
20339
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
20340
  )
20341
 
20342
  def __init__(self, amazonlisted=None,):
20343
    self.amazonlisted = amazonlisted
20344
 
20345
  def read(self, iprot):
20346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20348
      return
20349
    iprot.readStructBegin()
20350
    while True:
20351
      (fname, ftype, fid) = iprot.readFieldBegin()
20352
      if ftype == TType.STOP:
20353
        break
20354
      if fid == 1:
20355
        if ftype == TType.STRUCT:
20356
          self.amazonlisted = Amazonlisted()
20357
          self.amazonlisted.read(iprot)
20358
        else:
20359
          iprot.skip(ftype)
20360
      else:
20361
        iprot.skip(ftype)
20362
      iprot.readFieldEnd()
20363
    iprot.readStructEnd()
20364
 
20365
  def write(self, oprot):
20366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20368
      return
20369
    oprot.writeStructBegin('addAmazonItem_args')
20370
    if self.amazonlisted is not None:
20371
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
20372
      self.amazonlisted.write(oprot)
20373
      oprot.writeFieldEnd()
20374
    oprot.writeFieldStop()
20375
    oprot.writeStructEnd()
20376
 
20377
  def validate(self):
20378
    return
20379
 
20380
 
20381
  def __repr__(self):
20382
    L = ['%s=%r' % (key, value)
20383
      for key, value in self.__dict__.iteritems()]
20384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20385
 
20386
  def __eq__(self, other):
20387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20388
 
20389
  def __ne__(self, other):
20390
    return not (self == other)
20391
 
20392
class addAmazonItem_result:
20393
 
20394
  thrift_spec = (
20395
  )
20396
 
20397
  def read(self, iprot):
20398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20400
      return
20401
    iprot.readStructBegin()
20402
    while True:
20403
      (fname, ftype, fid) = iprot.readFieldBegin()
20404
      if ftype == TType.STOP:
20405
        break
20406
      else:
20407
        iprot.skip(ftype)
20408
      iprot.readFieldEnd()
20409
    iprot.readStructEnd()
20410
 
20411
  def write(self, oprot):
20412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20414
      return
20415
    oprot.writeStructBegin('addAmazonItem_result')
20416
    oprot.writeFieldStop()
20417
    oprot.writeStructEnd()
20418
 
20419
  def validate(self):
20420
    return
20421
 
20422
 
20423
  def __repr__(self):
20424
    L = ['%s=%r' % (key, value)
20425
      for key, value in self.__dict__.iteritems()]
20426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20427
 
20428
  def __eq__(self, other):
20429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20430
 
20431
  def __ne__(self, other):
20432
    return not (self == other)
7291 vikram.rag 20433
 
20434
class getAsinItems_args:
20435
 
20436
  thrift_spec = (
20437
  )
20438
 
20439
  def read(self, iprot):
20440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20442
      return
20443
    iprot.readStructBegin()
20444
    while True:
20445
      (fname, ftype, fid) = iprot.readFieldBegin()
20446
      if ftype == TType.STOP:
20447
        break
20448
      else:
20449
        iprot.skip(ftype)
20450
      iprot.readFieldEnd()
20451
    iprot.readStructEnd()
20452
 
20453
  def write(self, oprot):
20454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20456
      return
20457
    oprot.writeStructBegin('getAsinItems_args')
20458
    oprot.writeFieldStop()
20459
    oprot.writeStructEnd()
20460
 
20461
  def validate(self):
20462
    return
20463
 
20464
 
20465
  def __repr__(self):
20466
    L = ['%s=%r' % (key, value)
20467
      for key, value in self.__dict__.iteritems()]
20468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20469
 
20470
  def __eq__(self, other):
20471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20472
 
20473
  def __ne__(self, other):
20474
    return not (self == other)
20475
 
20476
class getAsinItems_result:
20477
  """
20478
  Attributes:
20479
   - success
20480
  """
20481
 
20482
  thrift_spec = (
20483
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20484
  )
20485
 
20486
  def __init__(self, success=None,):
20487
    self.success = success
20488
 
20489
  def read(self, iprot):
20490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20492
      return
20493
    iprot.readStructBegin()
20494
    while True:
20495
      (fname, ftype, fid) = iprot.readFieldBegin()
20496
      if ftype == TType.STOP:
20497
        break
20498
      if fid == 0:
20499
        if ftype == TType.LIST:
20500
          self.success = []
9155 kshitij.so 20501
          (_etype442, _size439) = iprot.readListBegin()
20502
          for _i443 in xrange(_size439):
20503
            _elem444 = Item()
20504
            _elem444.read(iprot)
20505
            self.success.append(_elem444)
7291 vikram.rag 20506
          iprot.readListEnd()
20507
        else:
20508
          iprot.skip(ftype)
20509
      else:
20510
        iprot.skip(ftype)
20511
      iprot.readFieldEnd()
20512
    iprot.readStructEnd()
20513
 
20514
  def write(self, oprot):
20515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20517
      return
20518
    oprot.writeStructBegin('getAsinItems_result')
20519
    if self.success is not None:
20520
      oprot.writeFieldBegin('success', TType.LIST, 0)
20521
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20522
      for iter445 in self.success:
20523
        iter445.write(oprot)
7291 vikram.rag 20524
      oprot.writeListEnd()
20525
      oprot.writeFieldEnd()
20526
    oprot.writeFieldStop()
20527
    oprot.writeStructEnd()
20528
 
20529
  def validate(self):
20530
    return
20531
 
20532
 
20533
  def __repr__(self):
20534
    L = ['%s=%r' % (key, value)
20535
      for key, value in self.__dict__.iteritems()]
20536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20537
 
20538
  def __eq__(self, other):
20539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20540
 
20541
  def __ne__(self, other):
20542
    return not (self == other)
20543
 
20544
class getAllFbaListedItems_args:
20545
 
20546
  thrift_spec = (
20547
  )
20548
 
20549
  def read(self, iprot):
20550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20552
      return
20553
    iprot.readStructBegin()
20554
    while True:
20555
      (fname, ftype, fid) = iprot.readFieldBegin()
20556
      if ftype == TType.STOP:
20557
        break
20558
      else:
20559
        iprot.skip(ftype)
20560
      iprot.readFieldEnd()
20561
    iprot.readStructEnd()
20562
 
20563
  def write(self, oprot):
20564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20566
      return
20567
    oprot.writeStructBegin('getAllFbaListedItems_args')
20568
    oprot.writeFieldStop()
20569
    oprot.writeStructEnd()
20570
 
20571
  def validate(self):
20572
    return
20573
 
20574
 
20575
  def __repr__(self):
20576
    L = ['%s=%r' % (key, value)
20577
      for key, value in self.__dict__.iteritems()]
20578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20579
 
20580
  def __eq__(self, other):
20581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20582
 
20583
  def __ne__(self, other):
20584
    return not (self == other)
20585
 
20586
class getAllFbaListedItems_result:
20587
  """
20588
  Attributes:
20589
   - success
20590
  """
20591
 
20592
  thrift_spec = (
20593
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20594
  )
20595
 
20596
  def __init__(self, success=None,):
20597
    self.success = success
20598
 
20599
  def read(self, iprot):
20600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20602
      return
20603
    iprot.readStructBegin()
20604
    while True:
20605
      (fname, ftype, fid) = iprot.readFieldBegin()
20606
      if ftype == TType.STOP:
20607
        break
20608
      if fid == 0:
20609
        if ftype == TType.LIST:
20610
          self.success = []
9155 kshitij.so 20611
          (_etype449, _size446) = iprot.readListBegin()
20612
          for _i450 in xrange(_size446):
20613
            _elem451 = Amazonlisted()
20614
            _elem451.read(iprot)
20615
            self.success.append(_elem451)
7291 vikram.rag 20616
          iprot.readListEnd()
20617
        else:
20618
          iprot.skip(ftype)
20619
      else:
20620
        iprot.skip(ftype)
20621
      iprot.readFieldEnd()
20622
    iprot.readStructEnd()
20623
 
20624
  def write(self, oprot):
20625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20627
      return
20628
    oprot.writeStructBegin('getAllFbaListedItems_result')
20629
    if self.success is not None:
20630
      oprot.writeFieldBegin('success', TType.LIST, 0)
20631
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20632
      for iter452 in self.success:
20633
        iter452.write(oprot)
7291 vikram.rag 20634
      oprot.writeListEnd()
20635
      oprot.writeFieldEnd()
20636
    oprot.writeFieldStop()
20637
    oprot.writeStructEnd()
20638
 
20639
  def validate(self):
20640
    return
20641
 
20642
 
20643
  def __repr__(self):
20644
    L = ['%s=%r' % (key, value)
20645
      for key, value in self.__dict__.iteritems()]
20646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20647
 
20648
  def __eq__(self, other):
20649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20650
 
20651
  def __ne__(self, other):
20652
    return not (self == other)
20653
 
20654
class getAllNonFbaListedItems_args:
20655
 
20656
  thrift_spec = (
20657
  )
20658
 
20659
  def read(self, iprot):
20660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20662
      return
20663
    iprot.readStructBegin()
20664
    while True:
20665
      (fname, ftype, fid) = iprot.readFieldBegin()
20666
      if ftype == TType.STOP:
20667
        break
20668
      else:
20669
        iprot.skip(ftype)
20670
      iprot.readFieldEnd()
20671
    iprot.readStructEnd()
20672
 
20673
  def write(self, oprot):
20674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20676
      return
20677
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
20678
    oprot.writeFieldStop()
20679
    oprot.writeStructEnd()
20680
 
20681
  def validate(self):
20682
    return
20683
 
20684
 
20685
  def __repr__(self):
20686
    L = ['%s=%r' % (key, value)
20687
      for key, value in self.__dict__.iteritems()]
20688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20689
 
20690
  def __eq__(self, other):
20691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20692
 
20693
  def __ne__(self, other):
20694
    return not (self == other)
20695
 
20696
class getAllNonFbaListedItems_result:
20697
  """
20698
  Attributes:
20699
   - success
20700
  """
20701
 
20702
  thrift_spec = (
20703
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
20704
  )
20705
 
20706
  def __init__(self, success=None,):
20707
    self.success = success
20708
 
20709
  def read(self, iprot):
20710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20712
      return
20713
    iprot.readStructBegin()
20714
    while True:
20715
      (fname, ftype, fid) = iprot.readFieldBegin()
20716
      if ftype == TType.STOP:
20717
        break
20718
      if fid == 0:
20719
        if ftype == TType.LIST:
20720
          self.success = []
9155 kshitij.so 20721
          (_etype456, _size453) = iprot.readListBegin()
20722
          for _i457 in xrange(_size453):
20723
            _elem458 = Amazonlisted()
20724
            _elem458.read(iprot)
20725
            self.success.append(_elem458)
7291 vikram.rag 20726
          iprot.readListEnd()
20727
        else:
20728
          iprot.skip(ftype)
20729
      else:
20730
        iprot.skip(ftype)
20731
      iprot.readFieldEnd()
20732
    iprot.readStructEnd()
20733
 
20734
  def write(self, oprot):
20735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20737
      return
20738
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
20739
    if self.success is not None:
20740
      oprot.writeFieldBegin('success', TType.LIST, 0)
20741
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 20742
      for iter459 in self.success:
20743
        iter459.write(oprot)
7291 vikram.rag 20744
      oprot.writeListEnd()
20745
      oprot.writeFieldEnd()
20746
    oprot.writeFieldStop()
20747
    oprot.writeStructEnd()
20748
 
20749
  def validate(self):
20750
    return
20751
 
20752
 
20753
  def __repr__(self):
20754
    L = ['%s=%r' % (key, value)
20755
      for key, value in self.__dict__.iteritems()]
20756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20757
 
20758
  def __eq__(self, other):
20759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20760
 
20761
  def __ne__(self, other):
20762
    return not (self == other)
7460 kshitij.so 20763
 
20764
class updateItemInventory_args:
20765
  """
20766
  Attributes:
20767
   - itemId
20768
   - holdInventory
20769
   - defaultInventory
20770
  """
20771
 
20772
  thrift_spec = (
20773
    None, # 0
20774
    (1, TType.I64, 'itemId', None, None, ), # 1
20775
    (2, TType.I64, 'holdInventory', None, None, ), # 2
20776
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
20777
  )
20778
 
20779
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
20780
    self.itemId = itemId
20781
    self.holdInventory = holdInventory
20782
    self.defaultInventory = defaultInventory
20783
 
20784
  def read(self, iprot):
20785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20787
      return
20788
    iprot.readStructBegin()
20789
    while True:
20790
      (fname, ftype, fid) = iprot.readFieldBegin()
20791
      if ftype == TType.STOP:
20792
        break
20793
      if fid == 1:
20794
        if ftype == TType.I64:
20795
          self.itemId = iprot.readI64();
20796
        else:
20797
          iprot.skip(ftype)
20798
      elif fid == 2:
20799
        if ftype == TType.I64:
20800
          self.holdInventory = iprot.readI64();
20801
        else:
20802
          iprot.skip(ftype)
20803
      elif fid == 3:
20804
        if ftype == TType.I64:
20805
          self.defaultInventory = iprot.readI64();
20806
        else:
20807
          iprot.skip(ftype)
20808
      else:
20809
        iprot.skip(ftype)
20810
      iprot.readFieldEnd()
20811
    iprot.readStructEnd()
20812
 
20813
  def write(self, oprot):
20814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20816
      return
20817
    oprot.writeStructBegin('updateItemInventory_args')
20818
    if self.itemId is not None:
20819
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20820
      oprot.writeI64(self.itemId)
20821
      oprot.writeFieldEnd()
20822
    if self.holdInventory is not None:
20823
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
20824
      oprot.writeI64(self.holdInventory)
20825
      oprot.writeFieldEnd()
20826
    if self.defaultInventory is not None:
20827
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
20828
      oprot.writeI64(self.defaultInventory)
20829
      oprot.writeFieldEnd()
20830
    oprot.writeFieldStop()
20831
    oprot.writeStructEnd()
20832
 
20833
  def validate(self):
20834
    return
20835
 
20836
 
20837
  def __repr__(self):
20838
    L = ['%s=%r' % (key, value)
20839
      for key, value in self.__dict__.iteritems()]
20840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20841
 
20842
  def __eq__(self, other):
20843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20844
 
20845
  def __ne__(self, other):
20846
    return not (self == other)
20847
 
20848
class updateItemInventory_result:
20849
  """
20850
  Attributes:
20851
   - success
20852
  """
20853
 
20854
  thrift_spec = (
20855
    (0, TType.BOOL, 'success', None, None, ), # 0
20856
  )
20857
 
20858
  def __init__(self, success=None,):
20859
    self.success = success
20860
 
20861
  def read(self, iprot):
20862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20864
      return
20865
    iprot.readStructBegin()
20866
    while True:
20867
      (fname, ftype, fid) = iprot.readFieldBegin()
20868
      if ftype == TType.STOP:
20869
        break
20870
      if fid == 0:
20871
        if ftype == TType.BOOL:
20872
          self.success = iprot.readBool();
20873
        else:
20874
          iprot.skip(ftype)
20875
      else:
20876
        iprot.skip(ftype)
20877
      iprot.readFieldEnd()
20878
    iprot.readStructEnd()
20879
 
20880
  def write(self, oprot):
20881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20883
      return
20884
    oprot.writeStructBegin('updateItemInventory_result')
20885
    if self.success is not None:
20886
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20887
      oprot.writeBool(self.success)
20888
      oprot.writeFieldEnd()
20889
    oprot.writeFieldStop()
20890
    oprot.writeStructEnd()
20891
 
20892
  def validate(self):
20893
    return
20894
 
20895
 
20896
  def __repr__(self):
20897
    L = ['%s=%r' % (key, value)
20898
      for key, value in self.__dict__.iteritems()]
20899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20900
 
20901
  def __eq__(self, other):
20902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20903
 
20904
  def __ne__(self, other):
20905
    return not (self == other)
7770 kshitij.so 20906
 
20907
class updateTimestampForAmazonFeeds_args:
20908
  """
20909
  Attributes:
20910
   - type
20911
   - sku
20912
   - timestamp
20913
  """
20914
 
20915
  thrift_spec = (
20916
    None, # 0
20917
    (1, TType.STRING, 'type', None, None, ), # 1
20918
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
20919
    (3, TType.I64, 'timestamp', None, None, ), # 3
20920
  )
20921
 
20922
  def __init__(self, type=None, sku=None, timestamp=None,):
20923
    self.type = type
20924
    self.sku = sku
20925
    self.timestamp = timestamp
20926
 
20927
  def read(self, iprot):
20928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20930
      return
20931
    iprot.readStructBegin()
20932
    while True:
20933
      (fname, ftype, fid) = iprot.readFieldBegin()
20934
      if ftype == TType.STOP:
20935
        break
20936
      if fid == 1:
20937
        if ftype == TType.STRING:
20938
          self.type = iprot.readString();
20939
        else:
20940
          iprot.skip(ftype)
20941
      elif fid == 2:
20942
        if ftype == TType.LIST:
20943
          self.sku = []
9155 kshitij.so 20944
          (_etype463, _size460) = iprot.readListBegin()
20945
          for _i464 in xrange(_size460):
20946
            _elem465 = iprot.readI64();
20947
            self.sku.append(_elem465)
7770 kshitij.so 20948
          iprot.readListEnd()
20949
        else:
20950
          iprot.skip(ftype)
20951
      elif fid == 3:
20952
        if ftype == TType.I64:
20953
          self.timestamp = iprot.readI64();
20954
        else:
20955
          iprot.skip(ftype)
20956
      else:
20957
        iprot.skip(ftype)
20958
      iprot.readFieldEnd()
20959
    iprot.readStructEnd()
20960
 
20961
  def write(self, oprot):
20962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20964
      return
20965
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
20966
    if self.type is not None:
20967
      oprot.writeFieldBegin('type', TType.STRING, 1)
20968
      oprot.writeString(self.type)
20969
      oprot.writeFieldEnd()
20970
    if self.sku is not None:
20971
      oprot.writeFieldBegin('sku', TType.LIST, 2)
20972
      oprot.writeListBegin(TType.I64, len(self.sku))
9155 kshitij.so 20973
      for iter466 in self.sku:
20974
        oprot.writeI64(iter466)
7770 kshitij.so 20975
      oprot.writeListEnd()
20976
      oprot.writeFieldEnd()
20977
    if self.timestamp is not None:
20978
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
20979
      oprot.writeI64(self.timestamp)
20980
      oprot.writeFieldEnd()
20981
    oprot.writeFieldStop()
20982
    oprot.writeStructEnd()
20983
 
20984
  def validate(self):
20985
    return
20986
 
20987
 
20988
  def __repr__(self):
20989
    L = ['%s=%r' % (key, value)
20990
      for key, value in self.__dict__.iteritems()]
20991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20992
 
20993
  def __eq__(self, other):
20994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20995
 
20996
  def __ne__(self, other):
20997
    return not (self == other)
20998
 
20999
class updateTimestampForAmazonFeeds_result:
21000
  """
21001
  Attributes:
21002
   - success
21003
  """
21004
 
21005
  thrift_spec = (
21006
    (0, TType.BOOL, 'success', None, None, ), # 0
21007
  )
21008
 
21009
  def __init__(self, success=None,):
21010
    self.success = success
21011
 
21012
  def read(self, iprot):
21013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21015
      return
21016
    iprot.readStructBegin()
21017
    while True:
21018
      (fname, ftype, fid) = iprot.readFieldBegin()
21019
      if ftype == TType.STOP:
21020
        break
21021
      if fid == 0:
21022
        if ftype == TType.BOOL:
21023
          self.success = iprot.readBool();
21024
        else:
21025
          iprot.skip(ftype)
21026
      else:
21027
        iprot.skip(ftype)
21028
      iprot.readFieldEnd()
21029
    iprot.readStructEnd()
21030
 
21031
  def write(self, oprot):
21032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21034
      return
21035
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
21036
    if self.success is not None:
21037
      oprot.writeFieldBegin('success', TType.BOOL, 0)
21038
      oprot.writeBool(self.success)
21039
      oprot.writeFieldEnd()
21040
    oprot.writeFieldStop()
21041
    oprot.writeStructEnd()
21042
 
21043
  def validate(self):
21044
    return
21045
 
21046
 
21047
  def __repr__(self):
21048
    L = ['%s=%r' % (key, value)
21049
      for key, value in self.__dict__.iteritems()]
21050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21051
 
21052
  def __eq__(self, other):
21053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21054
 
21055
  def __ne__(self, other):
21056
    return not (self == other)
7897 amar.kumar 21057
 
21058
class getAllParentCategories_args:
21059
 
21060
  thrift_spec = (
21061
  )
21062
 
21063
  def read(self, iprot):
21064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21066
      return
21067
    iprot.readStructBegin()
21068
    while True:
21069
      (fname, ftype, fid) = iprot.readFieldBegin()
21070
      if ftype == TType.STOP:
21071
        break
21072
      else:
21073
        iprot.skip(ftype)
21074
      iprot.readFieldEnd()
21075
    iprot.readStructEnd()
21076
 
21077
  def write(self, oprot):
21078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21080
      return
21081
    oprot.writeStructBegin('getAllParentCategories_args')
21082
    oprot.writeFieldStop()
21083
    oprot.writeStructEnd()
21084
 
21085
  def validate(self):
21086
    return
21087
 
21088
 
21089
  def __repr__(self):
21090
    L = ['%s=%r' % (key, value)
21091
      for key, value in self.__dict__.iteritems()]
21092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21093
 
21094
  def __eq__(self, other):
21095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21096
 
21097
  def __ne__(self, other):
21098
    return not (self == other)
21099
 
21100
class getAllParentCategories_result:
21101
  """
21102
  Attributes:
21103
   - success
21104
  """
21105
 
21106
  thrift_spec = (
21107
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
21108
  )
21109
 
21110
  def __init__(self, success=None,):
21111
    self.success = success
21112
 
21113
  def read(self, iprot):
21114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21116
      return
21117
    iprot.readStructBegin()
21118
    while True:
21119
      (fname, ftype, fid) = iprot.readFieldBegin()
21120
      if ftype == TType.STOP:
21121
        break
21122
      if fid == 0:
21123
        if ftype == TType.LIST:
21124
          self.success = []
9155 kshitij.so 21125
          (_etype470, _size467) = iprot.readListBegin()
21126
          for _i471 in xrange(_size467):
21127
            _elem472 = Category()
21128
            _elem472.read(iprot)
21129
            self.success.append(_elem472)
7897 amar.kumar 21130
          iprot.readListEnd()
21131
        else:
21132
          iprot.skip(ftype)
21133
      else:
21134
        iprot.skip(ftype)
21135
      iprot.readFieldEnd()
21136
    iprot.readStructEnd()
21137
 
21138
  def write(self, oprot):
21139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21141
      return
21142
    oprot.writeStructBegin('getAllParentCategories_result')
21143
    if self.success is not None:
21144
      oprot.writeFieldBegin('success', TType.LIST, 0)
21145
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21146
      for iter473 in self.success:
21147
        iter473.write(oprot)
7897 amar.kumar 21148
      oprot.writeListEnd()
21149
      oprot.writeFieldEnd()
21150
    oprot.writeFieldStop()
21151
    oprot.writeStructEnd()
21152
 
21153
  def validate(self):
21154
    return
21155
 
21156
 
21157
  def __repr__(self):
21158
    L = ['%s=%r' % (key, value)
21159
      for key, value in self.__dict__.iteritems()]
21160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21161
 
21162
  def __eq__(self, other):
21163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21164
 
21165
  def __ne__(self, other):
21166
    return not (self == other)
7977 kshitij.so 21167
 
21168
class addPageViewEvent_args:
21169
  """
21170
  Attributes:
21171
   - pageViewEvents
21172
  """
21173
 
21174
  thrift_spec = (
21175
    None, # 0
21176
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
21177
  )
21178
 
21179
  def __init__(self, pageViewEvents=None,):
21180
    self.pageViewEvents = pageViewEvents
21181
 
21182
  def read(self, iprot):
21183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21185
      return
21186
    iprot.readStructBegin()
21187
    while True:
21188
      (fname, ftype, fid) = iprot.readFieldBegin()
21189
      if ftype == TType.STOP:
21190
        break
21191
      if fid == 1:
21192
        if ftype == TType.STRUCT:
21193
          self.pageViewEvents = PageViewEvents()
21194
          self.pageViewEvents.read(iprot)
21195
        else:
21196
          iprot.skip(ftype)
21197
      else:
21198
        iprot.skip(ftype)
21199
      iprot.readFieldEnd()
21200
    iprot.readStructEnd()
21201
 
21202
  def write(self, oprot):
21203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21205
      return
21206
    oprot.writeStructBegin('addPageViewEvent_args')
21207
    if self.pageViewEvents is not None:
21208
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
21209
      self.pageViewEvents.write(oprot)
21210
      oprot.writeFieldEnd()
21211
    oprot.writeFieldStop()
21212
    oprot.writeStructEnd()
21213
 
21214
  def validate(self):
21215
    return
21216
 
21217
 
21218
  def __repr__(self):
21219
    L = ['%s=%r' % (key, value)
21220
      for key, value in self.__dict__.iteritems()]
21221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21222
 
21223
  def __eq__(self, other):
21224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21225
 
21226
  def __ne__(self, other):
21227
    return not (self == other)
21228
 
21229
class addPageViewEvent_result:
21230
 
21231
  thrift_spec = (
21232
  )
21233
 
21234
  def read(self, iprot):
21235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21237
      return
21238
    iprot.readStructBegin()
21239
    while True:
21240
      (fname, ftype, fid) = iprot.readFieldBegin()
21241
      if ftype == TType.STOP:
21242
        break
21243
      else:
21244
        iprot.skip(ftype)
21245
      iprot.readFieldEnd()
21246
    iprot.readStructEnd()
21247
 
21248
  def write(self, oprot):
21249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21251
      return
21252
    oprot.writeStructBegin('addPageViewEvent_result')
21253
    oprot.writeFieldStop()
21254
    oprot.writeStructEnd()
21255
 
21256
  def validate(self):
21257
    return
21258
 
21259
 
21260
  def __repr__(self):
21261
    L = ['%s=%r' % (key, value)
21262
      for key, value in self.__dict__.iteritems()]
21263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21264
 
21265
  def __eq__(self, other):
21266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21267
 
21268
  def __ne__(self, other):
21269
    return not (self == other)
21270
 
21271
class addCartEvent_args:
21272
  """
21273
  Attributes:
21274
   - cartEvents
21275
  """
21276
 
21277
  thrift_spec = (
21278
    None, # 0
21279
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
21280
  )
21281
 
21282
  def __init__(self, cartEvents=None,):
21283
    self.cartEvents = cartEvents
21284
 
21285
  def read(self, iprot):
21286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21288
      return
21289
    iprot.readStructBegin()
21290
    while True:
21291
      (fname, ftype, fid) = iprot.readFieldBegin()
21292
      if ftype == TType.STOP:
21293
        break
21294
      if fid == 1:
21295
        if ftype == TType.STRUCT:
21296
          self.cartEvents = CartEvents()
21297
          self.cartEvents.read(iprot)
21298
        else:
21299
          iprot.skip(ftype)
21300
      else:
21301
        iprot.skip(ftype)
21302
      iprot.readFieldEnd()
21303
    iprot.readStructEnd()
21304
 
21305
  def write(self, oprot):
21306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21308
      return
21309
    oprot.writeStructBegin('addCartEvent_args')
21310
    if self.cartEvents is not None:
21311
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
21312
      self.cartEvents.write(oprot)
21313
      oprot.writeFieldEnd()
21314
    oprot.writeFieldStop()
21315
    oprot.writeStructEnd()
21316
 
21317
  def validate(self):
21318
    return
21319
 
21320
 
21321
  def __repr__(self):
21322
    L = ['%s=%r' % (key, value)
21323
      for key, value in self.__dict__.iteritems()]
21324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21325
 
21326
  def __eq__(self, other):
21327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21328
 
21329
  def __ne__(self, other):
21330
    return not (self == other)
21331
 
21332
class addCartEvent_result:
21333
 
21334
  thrift_spec = (
21335
  )
21336
 
21337
  def read(self, iprot):
21338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21340
      return
21341
    iprot.readStructBegin()
21342
    while True:
21343
      (fname, ftype, fid) = iprot.readFieldBegin()
21344
      if ftype == TType.STOP:
21345
        break
21346
      else:
21347
        iprot.skip(ftype)
21348
      iprot.readFieldEnd()
21349
    iprot.readStructEnd()
21350
 
21351
  def write(self, oprot):
21352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21354
      return
21355
    oprot.writeStructBegin('addCartEvent_result')
21356
    oprot.writeFieldStop()
21357
    oprot.writeStructEnd()
21358
 
21359
  def validate(self):
21360
    return
21361
 
21362
 
21363
  def __repr__(self):
21364
    L = ['%s=%r' % (key, value)
21365
      for key, value in self.__dict__.iteritems()]
21366
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21367
 
21368
  def __eq__(self, other):
21369
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21370
 
21371
  def __ne__(self, other):
21372
    return not (self == other)
8139 kshitij.so 21373
 
8182 amar.kumar 21374
class addEbayItem_args:
21375
  """
21376
  Attributes:
21377
   - ebayItem
21378
  """
21379
 
21380
  thrift_spec = (
21381
    None, # 0
21382
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
21383
  )
21384
 
21385
  def __init__(self, ebayItem=None,):
21386
    self.ebayItem = ebayItem
21387
 
21388
  def read(self, iprot):
21389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21391
      return
21392
    iprot.readStructBegin()
21393
    while True:
21394
      (fname, ftype, fid) = iprot.readFieldBegin()
21395
      if ftype == TType.STOP:
21396
        break
21397
      if fid == 1:
21398
        if ftype == TType.STRUCT:
21399
          self.ebayItem = EbayItem()
21400
          self.ebayItem.read(iprot)
21401
        else:
21402
          iprot.skip(ftype)
21403
      else:
21404
        iprot.skip(ftype)
21405
      iprot.readFieldEnd()
21406
    iprot.readStructEnd()
21407
 
21408
  def write(self, oprot):
21409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21411
      return
21412
    oprot.writeStructBegin('addEbayItem_args')
21413
    if self.ebayItem is not None:
21414
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
21415
      self.ebayItem.write(oprot)
21416
      oprot.writeFieldEnd()
21417
    oprot.writeFieldStop()
21418
    oprot.writeStructEnd()
21419
 
21420
  def validate(self):
21421
    return
21422
 
21423
 
21424
  def __repr__(self):
21425
    L = ['%s=%r' % (key, value)
21426
      for key, value in self.__dict__.iteritems()]
21427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21428
 
21429
  def __eq__(self, other):
21430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21431
 
21432
  def __ne__(self, other):
21433
    return not (self == other)
21434
 
21435
class addEbayItem_result:
21436
 
21437
  thrift_spec = (
21438
  )
21439
 
21440
  def read(self, iprot):
21441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21443
      return
21444
    iprot.readStructBegin()
21445
    while True:
21446
      (fname, ftype, fid) = iprot.readFieldBegin()
21447
      if ftype == TType.STOP:
21448
        break
21449
      else:
21450
        iprot.skip(ftype)
21451
      iprot.readFieldEnd()
21452
    iprot.readStructEnd()
21453
 
21454
  def write(self, oprot):
21455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21457
      return
21458
    oprot.writeStructBegin('addEbayItem_result')
21459
    oprot.writeFieldStop()
21460
    oprot.writeStructEnd()
21461
 
21462
  def validate(self):
21463
    return
21464
 
21465
 
21466
  def __repr__(self):
21467
    L = ['%s=%r' % (key, value)
21468
      for key, value in self.__dict__.iteritems()]
21469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21470
 
21471
  def __eq__(self, other):
21472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21473
 
21474
  def __ne__(self, other):
21475
    return not (self == other)
21476
 
21477
class getEbayItem_args:
21478
  """
21479
  Attributes:
21480
   - listingId
21481
  """
21482
 
21483
  thrift_spec = (
21484
    None, # 0
21485
    (1, TType.STRING, 'listingId', None, None, ), # 1
21486
  )
21487
 
21488
  def __init__(self, listingId=None,):
21489
    self.listingId = listingId
21490
 
21491
  def read(self, iprot):
21492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21494
      return
21495
    iprot.readStructBegin()
21496
    while True:
21497
      (fname, ftype, fid) = iprot.readFieldBegin()
21498
      if ftype == TType.STOP:
21499
        break
21500
      if fid == 1:
21501
        if ftype == TType.STRING:
21502
          self.listingId = iprot.readString();
21503
        else:
21504
          iprot.skip(ftype)
21505
      else:
21506
        iprot.skip(ftype)
21507
      iprot.readFieldEnd()
21508
    iprot.readStructEnd()
21509
 
21510
  def write(self, oprot):
21511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21513
      return
21514
    oprot.writeStructBegin('getEbayItem_args')
21515
    if self.listingId is not None:
21516
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
21517
      oprot.writeString(self.listingId)
21518
      oprot.writeFieldEnd()
21519
    oprot.writeFieldStop()
21520
    oprot.writeStructEnd()
21521
 
21522
  def validate(self):
21523
    return
21524
 
21525
 
21526
  def __repr__(self):
21527
    L = ['%s=%r' % (key, value)
21528
      for key, value in self.__dict__.iteritems()]
21529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21530
 
21531
  def __eq__(self, other):
21532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21533
 
21534
  def __ne__(self, other):
21535
    return not (self == other)
21536
 
21537
class getEbayItem_result:
21538
  """
21539
  Attributes:
21540
   - success
21541
  """
21542
 
21543
  thrift_spec = (
21544
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
21545
  )
21546
 
21547
  def __init__(self, success=None,):
21548
    self.success = success
21549
 
21550
  def read(self, iprot):
21551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21553
      return
21554
    iprot.readStructBegin()
21555
    while True:
21556
      (fname, ftype, fid) = iprot.readFieldBegin()
21557
      if ftype == TType.STOP:
21558
        break
21559
      if fid == 0:
21560
        if ftype == TType.STRUCT:
21561
          self.success = EbayItem()
21562
          self.success.read(iprot)
21563
        else:
21564
          iprot.skip(ftype)
21565
      else:
21566
        iprot.skip(ftype)
21567
      iprot.readFieldEnd()
21568
    iprot.readStructEnd()
21569
 
21570
  def write(self, oprot):
21571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21573
      return
21574
    oprot.writeStructBegin('getEbayItem_result')
21575
    if self.success is not None:
21576
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21577
      self.success.write(oprot)
21578
      oprot.writeFieldEnd()
21579
    oprot.writeFieldStop()
21580
    oprot.writeStructEnd()
21581
 
21582
  def validate(self):
21583
    return
21584
 
21585
 
21586
  def __repr__(self):
21587
    L = ['%s=%r' % (key, value)
21588
      for key, value in self.__dict__.iteritems()]
21589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21590
 
21591
  def __eq__(self, other):
21592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21593
 
21594
  def __ne__(self, other):
21595
    return not (self == other)
21596
 
21597
class updateEbayItem_args:
21598
  """
21599
  Attributes:
21600
   - ebayItem
21601
  """
21602
 
21603
  thrift_spec = (
21604
    None, # 0
21605
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
21606
  )
21607
 
21608
  def __init__(self, ebayItem=None,):
21609
    self.ebayItem = ebayItem
21610
 
21611
  def read(self, iprot):
21612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21614
      return
21615
    iprot.readStructBegin()
21616
    while True:
21617
      (fname, ftype, fid) = iprot.readFieldBegin()
21618
      if ftype == TType.STOP:
21619
        break
21620
      if fid == 1:
21621
        if ftype == TType.STRUCT:
21622
          self.ebayItem = EbayItem()
21623
          self.ebayItem.read(iprot)
21624
        else:
21625
          iprot.skip(ftype)
21626
      else:
21627
        iprot.skip(ftype)
21628
      iprot.readFieldEnd()
21629
    iprot.readStructEnd()
21630
 
21631
  def write(self, oprot):
21632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21634
      return
21635
    oprot.writeStructBegin('updateEbayItem_args')
21636
    if self.ebayItem is not None:
21637
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
21638
      self.ebayItem.write(oprot)
21639
      oprot.writeFieldEnd()
21640
    oprot.writeFieldStop()
21641
    oprot.writeStructEnd()
21642
 
21643
  def validate(self):
21644
    return
21645
 
21646
 
21647
  def __repr__(self):
21648
    L = ['%s=%r' % (key, value)
21649
      for key, value in self.__dict__.iteritems()]
21650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21651
 
21652
  def __eq__(self, other):
21653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21654
 
21655
  def __ne__(self, other):
21656
    return not (self == other)
21657
 
21658
class updateEbayItem_result:
21659
 
21660
  thrift_spec = (
21661
  )
21662
 
21663
  def read(self, iprot):
21664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21666
      return
21667
    iprot.readStructBegin()
21668
    while True:
21669
      (fname, ftype, fid) = iprot.readFieldBegin()
21670
      if ftype == TType.STOP:
21671
        break
21672
      else:
21673
        iprot.skip(ftype)
21674
      iprot.readFieldEnd()
21675
    iprot.readStructEnd()
21676
 
21677
  def write(self, oprot):
21678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21680
      return
21681
    oprot.writeStructBegin('updateEbayItem_result')
21682
    oprot.writeFieldStop()
21683
    oprot.writeStructEnd()
21684
 
21685
  def validate(self):
21686
    return
21687
 
21688
 
21689
  def __repr__(self):
21690
    L = ['%s=%r' % (key, value)
21691
      for key, value in self.__dict__.iteritems()]
21692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21693
 
21694
  def __eq__(self, other):
21695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21696
 
21697
  def __ne__(self, other):
21698
    return not (self == other)
21699
 
8139 kshitij.so 21700
class getAmazonListedItems_args:
21701
  """
21702
  Attributes:
21703
   - offset
21704
   - limit
21705
  """
21706
 
21707
  thrift_spec = (
21708
    None, # 0
21709
    (1, TType.I64, 'offset', None, None, ), # 1
21710
    (2, TType.I64, 'limit', None, None, ), # 2
21711
  )
21712
 
21713
  def __init__(self, offset=None, limit=None,):
21714
    self.offset = offset
21715
    self.limit = limit
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
      if fid == 1:
21727
        if ftype == TType.I64:
21728
          self.offset = iprot.readI64();
21729
        else:
21730
          iprot.skip(ftype)
21731
      elif fid == 2:
21732
        if ftype == TType.I64:
21733
          self.limit = iprot.readI64();
21734
        else:
21735
          iprot.skip(ftype)
21736
      else:
21737
        iprot.skip(ftype)
21738
      iprot.readFieldEnd()
21739
    iprot.readStructEnd()
21740
 
21741
  def write(self, oprot):
21742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21744
      return
21745
    oprot.writeStructBegin('getAmazonListedItems_args')
21746
    if self.offset is not None:
21747
      oprot.writeFieldBegin('offset', TType.I64, 1)
21748
      oprot.writeI64(self.offset)
21749
      oprot.writeFieldEnd()
21750
    if self.limit is not None:
21751
      oprot.writeFieldBegin('limit', TType.I64, 2)
21752
      oprot.writeI64(self.limit)
21753
      oprot.writeFieldEnd()
21754
    oprot.writeFieldStop()
21755
    oprot.writeStructEnd()
21756
 
21757
  def validate(self):
21758
    return
21759
 
21760
 
21761
  def __repr__(self):
21762
    L = ['%s=%r' % (key, value)
21763
      for key, value in self.__dict__.iteritems()]
21764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21765
 
21766
  def __eq__(self, other):
21767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21768
 
21769
  def __ne__(self, other):
21770
    return not (self == other)
21771
 
21772
class getAmazonListedItems_result:
21773
  """
21774
  Attributes:
21775
   - success
21776
  """
21777
 
21778
  thrift_spec = (
21779
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
21780
  )
21781
 
21782
  def __init__(self, success=None,):
21783
    self.success = success
21784
 
21785
  def read(self, iprot):
21786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21788
      return
21789
    iprot.readStructBegin()
21790
    while True:
21791
      (fname, ftype, fid) = iprot.readFieldBegin()
21792
      if ftype == TType.STOP:
21793
        break
21794
      if fid == 0:
21795
        if ftype == TType.LIST:
21796
          self.success = []
9155 kshitij.so 21797
          (_etype477, _size474) = iprot.readListBegin()
21798
          for _i478 in xrange(_size474):
21799
            _elem479 = Amazonlisted()
21800
            _elem479.read(iprot)
21801
            self.success.append(_elem479)
8139 kshitij.so 21802
          iprot.readListEnd()
21803
        else:
21804
          iprot.skip(ftype)
21805
      else:
21806
        iprot.skip(ftype)
21807
      iprot.readFieldEnd()
21808
    iprot.readStructEnd()
21809
 
21810
  def write(self, oprot):
21811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21813
      return
21814
    oprot.writeStructBegin('getAmazonListedItems_result')
21815
    if self.success is not None:
21816
      oprot.writeFieldBegin('success', TType.LIST, 0)
21817
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 21818
      for iter480 in self.success:
21819
        iter480.write(oprot)
8139 kshitij.so 21820
      oprot.writeListEnd()
21821
      oprot.writeFieldEnd()
21822
    oprot.writeFieldStop()
21823
    oprot.writeStructEnd()
21824
 
21825
  def validate(self):
21826
    return
21827
 
21828
 
21829
  def __repr__(self):
21830
    L = ['%s=%r' % (key, value)
21831
      for key, value in self.__dict__.iteritems()]
21832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21833
 
21834
  def __eq__(self, other):
21835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21836
 
21837
  def __ne__(self, other):
21838
    return not (self == other)
8168 kshitij.so 21839
 
21840
class updateAmazonAttributesInBulk_args:
21841
  """
21842
  Attributes:
21843
   - amazonlisted
21844
  """
21845
 
21846
  thrift_spec = (
21847
    None, # 0
21848
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
21849
  )
21850
 
21851
  def __init__(self, amazonlisted=None,):
21852
    self.amazonlisted = amazonlisted
21853
 
21854
  def read(self, iprot):
21855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21857
      return
21858
    iprot.readStructBegin()
21859
    while True:
21860
      (fname, ftype, fid) = iprot.readFieldBegin()
21861
      if ftype == TType.STOP:
21862
        break
21863
      if fid == 1:
21864
        if ftype == TType.MAP:
21865
          self.amazonlisted = {}
9155 kshitij.so 21866
          (_ktype482, _vtype483, _size481 ) = iprot.readMapBegin() 
21867
          for _i485 in xrange(_size481):
21868
            _key486 = iprot.readI64();
21869
            _val487 = Amazonlisted()
21870
            _val487.read(iprot)
21871
            self.amazonlisted[_key486] = _val487
8168 kshitij.so 21872
          iprot.readMapEnd()
21873
        else:
21874
          iprot.skip(ftype)
21875
      else:
21876
        iprot.skip(ftype)
21877
      iprot.readFieldEnd()
21878
    iprot.readStructEnd()
21879
 
21880
  def write(self, oprot):
21881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21883
      return
21884
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
21885
    if self.amazonlisted is not None:
21886
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
21887
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
9155 kshitij.so 21888
      for kiter488,viter489 in self.amazonlisted.items():
21889
        oprot.writeI64(kiter488)
21890
        viter489.write(oprot)
8168 kshitij.so 21891
      oprot.writeMapEnd()
21892
      oprot.writeFieldEnd()
21893
    oprot.writeFieldStop()
21894
    oprot.writeStructEnd()
21895
 
21896
  def validate(self):
21897
    return
21898
 
21899
 
21900
  def __repr__(self):
21901
    L = ['%s=%r' % (key, value)
21902
      for key, value in self.__dict__.iteritems()]
21903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21904
 
21905
  def __eq__(self, other):
21906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21907
 
21908
  def __ne__(self, other):
21909
    return not (self == other)
21910
 
21911
class updateAmazonAttributesInBulk_result:
21912
  """
21913
  Attributes:
21914
   - success
21915
  """
21916
 
21917
  thrift_spec = (
21918
    (0, TType.BOOL, 'success', None, None, ), # 0
21919
  )
21920
 
21921
  def __init__(self, success=None,):
21922
    self.success = success
21923
 
21924
  def read(self, iprot):
21925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21927
      return
21928
    iprot.readStructBegin()
21929
    while True:
21930
      (fname, ftype, fid) = iprot.readFieldBegin()
21931
      if ftype == TType.STOP:
21932
        break
21933
      if fid == 0:
21934
        if ftype == TType.BOOL:
21935
          self.success = iprot.readBool();
21936
        else:
21937
          iprot.skip(ftype)
21938
      else:
21939
        iprot.skip(ftype)
21940
      iprot.readFieldEnd()
21941
    iprot.readStructEnd()
21942
 
21943
  def write(self, oprot):
21944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21946
      return
21947
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
21948
    if self.success is not None:
21949
      oprot.writeFieldBegin('success', TType.BOOL, 0)
21950
      oprot.writeBool(self.success)
21951
      oprot.writeFieldEnd()
21952
    oprot.writeFieldStop()
21953
    oprot.writeStructEnd()
21954
 
21955
  def validate(self):
21956
    return
21957
 
21958
 
21959
  def __repr__(self):
21960
    L = ['%s=%r' % (key, value)
21961
      for key, value in self.__dict__.iteritems()]
21962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21963
 
21964
  def __eq__(self, other):
21965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21966
 
21967
  def __ne__(self, other):
21968
    return not (self == other)
8379 vikram.rag 21969
 
21970
class getAllItemstoListOnFba_args:
21971
 
21972
  thrift_spec = (
21973
  )
21974
 
21975
  def read(self, iprot):
21976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21978
      return
21979
    iprot.readStructBegin()
21980
    while True:
21981
      (fname, ftype, fid) = iprot.readFieldBegin()
21982
      if ftype == TType.STOP:
21983
        break
21984
      else:
21985
        iprot.skip(ftype)
21986
      iprot.readFieldEnd()
21987
    iprot.readStructEnd()
21988
 
21989
  def write(self, oprot):
21990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21992
      return
21993
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
21994
    oprot.writeFieldStop()
21995
    oprot.writeStructEnd()
21996
 
21997
  def validate(self):
21998
    return
21999
 
22000
 
22001
  def __repr__(self):
22002
    L = ['%s=%r' % (key, value)
22003
      for key, value in self.__dict__.iteritems()]
22004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22005
 
22006
  def __eq__(self, other):
22007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22008
 
22009
  def __ne__(self, other):
22010
    return not (self == other)
22011
 
22012
class getAllItemstoListOnFba_result:
22013
  """
22014
  Attributes:
22015
   - success
22016
  """
22017
 
22018
  thrift_spec = (
22019
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22020
  )
22021
 
22022
  def __init__(self, success=None,):
22023
    self.success = success
22024
 
22025
  def read(self, iprot):
22026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22028
      return
22029
    iprot.readStructBegin()
22030
    while True:
22031
      (fname, ftype, fid) = iprot.readFieldBegin()
22032
      if ftype == TType.STOP:
22033
        break
22034
      if fid == 0:
22035
        if ftype == TType.LIST:
22036
          self.success = []
9155 kshitij.so 22037
          (_etype493, _size490) = iprot.readListBegin()
22038
          for _i494 in xrange(_size490):
22039
            _elem495 = Amazonlisted()
22040
            _elem495.read(iprot)
22041
            self.success.append(_elem495)
8379 vikram.rag 22042
          iprot.readListEnd()
22043
        else:
22044
          iprot.skip(ftype)
22045
      else:
22046
        iprot.skip(ftype)
22047
      iprot.readFieldEnd()
22048
    iprot.readStructEnd()
22049
 
22050
  def write(self, oprot):
22051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22053
      return
22054
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
22055
    if self.success is not None:
22056
      oprot.writeFieldBegin('success', TType.LIST, 0)
22057
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22058
      for iter496 in self.success:
22059
        iter496.write(oprot)
8379 vikram.rag 22060
      oprot.writeListEnd()
22061
      oprot.writeFieldEnd()
22062
    oprot.writeFieldStop()
22063
    oprot.writeStructEnd()
22064
 
22065
  def validate(self):
22066
    return
22067
 
22068
 
22069
  def __repr__(self):
22070
    L = ['%s=%r' % (key, value)
22071
      for key, value in self.__dict__.iteritems()]
22072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22073
 
22074
  def __eq__(self, other):
22075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22076
 
22077
  def __ne__(self, other):
22078
    return not (self == other)
22079
 
22080
class getAllItemstoListOnNonFba_args:
22081
 
22082
  thrift_spec = (
22083
  )
22084
 
22085
  def read(self, iprot):
22086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22088
      return
22089
    iprot.readStructBegin()
22090
    while True:
22091
      (fname, ftype, fid) = iprot.readFieldBegin()
22092
      if ftype == TType.STOP:
22093
        break
22094
      else:
22095
        iprot.skip(ftype)
22096
      iprot.readFieldEnd()
22097
    iprot.readStructEnd()
22098
 
22099
  def write(self, oprot):
22100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22102
      return
22103
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
22104
    oprot.writeFieldStop()
22105
    oprot.writeStructEnd()
22106
 
22107
  def validate(self):
22108
    return
22109
 
22110
 
22111
  def __repr__(self):
22112
    L = ['%s=%r' % (key, value)
22113
      for key, value in self.__dict__.iteritems()]
22114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22115
 
22116
  def __eq__(self, other):
22117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22118
 
22119
  def __ne__(self, other):
22120
    return not (self == other)
22121
 
22122
class getAllItemstoListOnNonFba_result:
22123
  """
22124
  Attributes:
22125
   - success
22126
  """
22127
 
22128
  thrift_spec = (
22129
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22130
  )
22131
 
22132
  def __init__(self, success=None,):
22133
    self.success = success
22134
 
22135
  def read(self, iprot):
22136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22138
      return
22139
    iprot.readStructBegin()
22140
    while True:
22141
      (fname, ftype, fid) = iprot.readFieldBegin()
22142
      if ftype == TType.STOP:
22143
        break
22144
      if fid == 0:
22145
        if ftype == TType.LIST:
22146
          self.success = []
9155 kshitij.so 22147
          (_etype500, _size497) = iprot.readListBegin()
22148
          for _i501 in xrange(_size497):
22149
            _elem502 = Amazonlisted()
22150
            _elem502.read(iprot)
22151
            self.success.append(_elem502)
8379 vikram.rag 22152
          iprot.readListEnd()
22153
        else:
22154
          iprot.skip(ftype)
22155
      else:
22156
        iprot.skip(ftype)
22157
      iprot.readFieldEnd()
22158
    iprot.readStructEnd()
22159
 
22160
  def write(self, oprot):
22161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22163
      return
22164
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
22165
    if self.success is not None:
22166
      oprot.writeFieldBegin('success', TType.LIST, 0)
22167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22168
      for iter503 in self.success:
22169
        iter503.write(oprot)
8379 vikram.rag 22170
      oprot.writeListEnd()
22171
      oprot.writeFieldEnd()
22172
    oprot.writeFieldStop()
22173
    oprot.writeStructEnd()
22174
 
22175
  def validate(self):
22176
    return
22177
 
22178
 
22179
  def __repr__(self):
22180
    L = ['%s=%r' % (key, value)
22181
      for key, value in self.__dict__.iteritems()]
22182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22183
 
22184
  def __eq__(self, other):
22185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22186
 
22187
  def __ne__(self, other):
22188
    return not (self == other)
8616 vikram.rag 22189
 
9242 kshitij.so 22190
class updateAsin_args:
22191
  """
22192
  Attributes:
22193
   - item
22194
  """
8616 vikram.rag 22195
 
22196
  thrift_spec = (
9242 kshitij.so 22197
    None, # 0
22198
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 22199
  )
22200
 
9242 kshitij.so 22201
  def __init__(self, item=None,):
22202
    self.item = item
22203
 
8616 vikram.rag 22204
  def read(self, iprot):
22205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22207
      return
22208
    iprot.readStructBegin()
22209
    while True:
22210
      (fname, ftype, fid) = iprot.readFieldBegin()
22211
      if ftype == TType.STOP:
22212
        break
9242 kshitij.so 22213
      if fid == 1:
22214
        if ftype == TType.MAP:
22215
          self.item = {}
22216
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
22217
          for _i508 in xrange(_size504):
22218
            _key509 = iprot.readI64();
22219
            _val510 = Item()
22220
            _val510.read(iprot)
22221
            self.item[_key509] = _val510
22222
          iprot.readMapEnd()
22223
        else:
22224
          iprot.skip(ftype)
8616 vikram.rag 22225
      else:
22226
        iprot.skip(ftype)
22227
      iprot.readFieldEnd()
22228
    iprot.readStructEnd()
22229
 
22230
  def write(self, oprot):
22231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22233
      return
9242 kshitij.so 22234
    oprot.writeStructBegin('updateAsin_args')
22235
    if self.item is not None:
22236
      oprot.writeFieldBegin('item', TType.MAP, 1)
22237
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
22238
      for kiter511,viter512 in self.item.items():
22239
        oprot.writeI64(kiter511)
22240
        viter512.write(oprot)
22241
      oprot.writeMapEnd()
22242
      oprot.writeFieldEnd()
8616 vikram.rag 22243
    oprot.writeFieldStop()
22244
    oprot.writeStructEnd()
22245
 
22246
  def validate(self):
22247
    return
22248
 
22249
 
22250
  def __repr__(self):
22251
    L = ['%s=%r' % (key, value)
22252
      for key, value in self.__dict__.iteritems()]
22253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22254
 
22255
  def __eq__(self, other):
22256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22257
 
22258
  def __ne__(self, other):
22259
    return not (self == other)
22260
 
9242 kshitij.so 22261
class updateAsin_result:
8616 vikram.rag 22262
 
22263
  thrift_spec = (
22264
  )
22265
 
22266
  def read(self, iprot):
22267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22269
      return
22270
    iprot.readStructBegin()
22271
    while True:
22272
      (fname, ftype, fid) = iprot.readFieldBegin()
22273
      if ftype == TType.STOP:
22274
        break
22275
      else:
22276
        iprot.skip(ftype)
22277
      iprot.readFieldEnd()
22278
    iprot.readStructEnd()
22279
 
22280
  def write(self, oprot):
22281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22283
      return
9242 kshitij.so 22284
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 22285
    oprot.writeFieldStop()
22286
    oprot.writeStructEnd()
22287
 
22288
  def validate(self):
22289
    return
22290
 
22291
 
22292
  def __repr__(self):
22293
    L = ['%s=%r' % (key, value)
22294
      for key, value in self.__dict__.iteritems()]
22295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22296
 
22297
  def __eq__(self, other):
22298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22299
 
22300
  def __ne__(self, other):
22301
    return not (self == other)
8619 kshitij.so 22302
 
9242 kshitij.so 22303
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 22304
  """
22305
  Attributes:
9242 kshitij.so 22306
   - snapdealitem
8619 kshitij.so 22307
  """
22308
 
9242 kshitij.so 22309
  thrift_spec = None
22310
  def __init__(self, snapdealitem=None,):
22311
    self.snapdealitem = snapdealitem
8619 kshitij.so 22312
 
22313
  def read(self, iprot):
22314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22316
      return
22317
    iprot.readStructBegin()
22318
    while True:
22319
      (fname, ftype, fid) = iprot.readFieldBegin()
22320
      if ftype == TType.STOP:
22321
        break
9242 kshitij.so 22322
      if fid == -1:
22323
        if ftype == TType.STRUCT:
22324
          self.snapdealitem = SnapdealItem()
22325
          self.snapdealitem.read(iprot)
8619 kshitij.so 22326
        else:
22327
          iprot.skip(ftype)
22328
      else:
22329
        iprot.skip(ftype)
22330
      iprot.readFieldEnd()
22331
    iprot.readStructEnd()
22332
 
22333
  def write(self, oprot):
22334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22336
      return
9242 kshitij.so 22337
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
22338
    if self.snapdealitem is not None:
22339
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
22340
      self.snapdealitem.write(oprot)
8619 kshitij.so 22341
      oprot.writeFieldEnd()
22342
    oprot.writeFieldStop()
22343
    oprot.writeStructEnd()
22344
 
22345
  def validate(self):
22346
    return
22347
 
22348
 
22349
  def __repr__(self):
22350
    L = ['%s=%r' % (key, value)
22351
      for key, value in self.__dict__.iteritems()]
22352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22353
 
22354
  def __eq__(self, other):
22355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22356
 
22357
  def __ne__(self, other):
22358
    return not (self == other)
22359
 
9242 kshitij.so 22360
class addOrUpdateSnapdealItem_result:
22361
  """
22362
  Attributes:
22363
   - success
22364
  """
8619 kshitij.so 22365
 
22366
  thrift_spec = (
9242 kshitij.so 22367
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 22368
  )
22369
 
9242 kshitij.so 22370
  def __init__(self, success=None,):
22371
    self.success = success
22372
 
8619 kshitij.so 22373
  def read(self, iprot):
22374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22376
      return
22377
    iprot.readStructBegin()
22378
    while True:
22379
      (fname, ftype, fid) = iprot.readFieldBegin()
22380
      if ftype == TType.STOP:
22381
        break
9242 kshitij.so 22382
      if fid == 0:
22383
        if ftype == TType.BOOL:
22384
          self.success = iprot.readBool();
22385
        else:
22386
          iprot.skip(ftype)
8619 kshitij.so 22387
      else:
22388
        iprot.skip(ftype)
22389
      iprot.readFieldEnd()
22390
    iprot.readStructEnd()
22391
 
22392
  def write(self, oprot):
22393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22395
      return
9242 kshitij.so 22396
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
22397
    if self.success is not None:
22398
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22399
      oprot.writeBool(self.success)
22400
      oprot.writeFieldEnd()
8619 kshitij.so 22401
    oprot.writeFieldStop()
22402
    oprot.writeStructEnd()
22403
 
22404
  def validate(self):
22405
    return
22406
 
22407
 
22408
  def __repr__(self):
22409
    L = ['%s=%r' % (key, value)
22410
      for key, value in self.__dict__.iteritems()]
22411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22412
 
22413
  def __eq__(self, other):
22414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22415
 
22416
  def __ne__(self, other):
22417
    return not (self == other)
8739 vikram.rag 22418
 
9242 kshitij.so 22419
class getSnapdealItem_args:
8739 vikram.rag 22420
  """
22421
  Attributes:
9242 kshitij.so 22422
   - item_id
8739 vikram.rag 22423
  """
22424
 
9242 kshitij.so 22425
  thrift_spec = (
22426
    None, # 0
22427
    (1, TType.I64, 'item_id', None, None, ), # 1
22428
  )
8739 vikram.rag 22429
 
9242 kshitij.so 22430
  def __init__(self, item_id=None,):
22431
    self.item_id = item_id
22432
 
8739 vikram.rag 22433
  def read(self, iprot):
22434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22436
      return
22437
    iprot.readStructBegin()
22438
    while True:
22439
      (fname, ftype, fid) = iprot.readFieldBegin()
22440
      if ftype == TType.STOP:
22441
        break
9242 kshitij.so 22442
      if fid == 1:
22443
        if ftype == TType.I64:
22444
          self.item_id = iprot.readI64();
8739 vikram.rag 22445
        else:
22446
          iprot.skip(ftype)
22447
      else:
22448
        iprot.skip(ftype)
22449
      iprot.readFieldEnd()
22450
    iprot.readStructEnd()
22451
 
22452
  def write(self, oprot):
22453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22455
      return
9242 kshitij.so 22456
    oprot.writeStructBegin('getSnapdealItem_args')
22457
    if self.item_id is not None:
22458
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22459
      oprot.writeI64(self.item_id)
8739 vikram.rag 22460
      oprot.writeFieldEnd()
22461
    oprot.writeFieldStop()
22462
    oprot.writeStructEnd()
22463
 
22464
  def validate(self):
22465
    return
22466
 
22467
 
22468
  def __repr__(self):
22469
    L = ['%s=%r' % (key, value)
22470
      for key, value in self.__dict__.iteritems()]
22471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22472
 
22473
  def __eq__(self, other):
22474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22475
 
22476
  def __ne__(self, other):
22477
    return not (self == other)
22478
 
9242 kshitij.so 22479
class getSnapdealItem_result:
8739 vikram.rag 22480
  """
22481
  Attributes:
22482
   - success
22483
  """
22484
 
22485
  thrift_spec = (
9242 kshitij.so 22486
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 22487
  )
22488
 
22489
  def __init__(self, success=None,):
22490
    self.success = success
22491
 
22492
  def read(self, iprot):
22493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22495
      return
22496
    iprot.readStructBegin()
22497
    while True:
22498
      (fname, ftype, fid) = iprot.readFieldBegin()
22499
      if ftype == TType.STOP:
22500
        break
22501
      if fid == 0:
9242 kshitij.so 22502
        if ftype == TType.STRUCT:
22503
          self.success = SnapdealItem()
22504
          self.success.read(iprot)
8739 vikram.rag 22505
        else:
22506
          iprot.skip(ftype)
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
9242 kshitij.so 22516
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 22517
    if self.success is not None:
9242 kshitij.so 22518
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22519
      self.success.write(oprot)
8739 vikram.rag 22520
      oprot.writeFieldEnd()
22521
    oprot.writeFieldStop()
22522
    oprot.writeStructEnd()
22523
 
22524
  def validate(self):
22525
    return
22526
 
22527
 
22528
  def __repr__(self):
22529
    L = ['%s=%r' % (key, value)
22530
      for key, value in self.__dict__.iteritems()]
22531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22532
 
22533
  def __eq__(self, other):
22534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22535
 
22536
  def __ne__(self, other):
22537
    return not (self == other)
22538
 
9242 kshitij.so 22539
class getSnapdealItemDetails_args:
8739 vikram.rag 22540
  """
22541
  Attributes:
22542
   - item_id
22543
  """
22544
 
22545
  thrift_spec = (
22546
    None, # 0
22547
    (1, TType.I64, 'item_id', None, None, ), # 1
22548
  )
22549
 
22550
  def __init__(self, item_id=None,):
22551
    self.item_id = item_id
22552
 
22553
  def read(self, iprot):
22554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22556
      return
22557
    iprot.readStructBegin()
22558
    while True:
22559
      (fname, ftype, fid) = iprot.readFieldBegin()
22560
      if ftype == TType.STOP:
22561
        break
22562
      if fid == 1:
22563
        if ftype == TType.I64:
22564
          self.item_id = iprot.readI64();
22565
        else:
22566
          iprot.skip(ftype)
22567
      else:
22568
        iprot.skip(ftype)
22569
      iprot.readFieldEnd()
22570
    iprot.readStructEnd()
22571
 
22572
  def write(self, oprot):
22573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22575
      return
9242 kshitij.so 22576
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 22577
    if self.item_id is not None:
22578
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22579
      oprot.writeI64(self.item_id)
22580
      oprot.writeFieldEnd()
22581
    oprot.writeFieldStop()
22582
    oprot.writeStructEnd()
22583
 
22584
  def validate(self):
22585
    return
22586
 
22587
 
22588
  def __repr__(self):
22589
    L = ['%s=%r' % (key, value)
22590
      for key, value in self.__dict__.iteritems()]
22591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22592
 
22593
  def __eq__(self, other):
22594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22595
 
22596
  def __ne__(self, other):
22597
    return not (self == other)
22598
 
9242 kshitij.so 22599
class getSnapdealItemDetails_result:
8739 vikram.rag 22600
  """
22601
  Attributes:
22602
   - success
22603
  """
22604
 
22605
  thrift_spec = (
9242 kshitij.so 22606
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 22607
  )
22608
 
22609
  def __init__(self, success=None,):
22610
    self.success = success
22611
 
22612
  def read(self, iprot):
22613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22615
      return
22616
    iprot.readStructBegin()
22617
    while True:
22618
      (fname, ftype, fid) = iprot.readFieldBegin()
22619
      if ftype == TType.STOP:
22620
        break
22621
      if fid == 0:
22622
        if ftype == TType.STRUCT:
9242 kshitij.so 22623
          self.success = SnapdealItemDetails()
8739 vikram.rag 22624
          self.success.read(iprot)
22625
        else:
22626
          iprot.skip(ftype)
22627
      else:
22628
        iprot.skip(ftype)
22629
      iprot.readFieldEnd()
22630
    iprot.readStructEnd()
22631
 
22632
  def write(self, oprot):
22633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22635
      return
9242 kshitij.so 22636
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 22637
    if self.success is not None:
22638
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22639
      self.success.write(oprot)
22640
      oprot.writeFieldEnd()
22641
    oprot.writeFieldStop()
22642
    oprot.writeStructEnd()
22643
 
22644
  def validate(self):
22645
    return
22646
 
22647
 
22648
  def __repr__(self):
22649
    L = ['%s=%r' % (key, value)
22650
      for key, value in self.__dict__.iteritems()]
22651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22652
 
22653
  def __eq__(self, other):
22654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22655
 
22656
  def __ne__(self, other):
22657
    return not (self == other)
22658
 
22659
class getAllSnapdealItems_args:
22660
 
22661
  thrift_spec = (
22662
  )
22663
 
22664
  def read(self, iprot):
22665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22667
      return
22668
    iprot.readStructBegin()
22669
    while True:
22670
      (fname, ftype, fid) = iprot.readFieldBegin()
22671
      if ftype == TType.STOP:
22672
        break
22673
      else:
22674
        iprot.skip(ftype)
22675
      iprot.readFieldEnd()
22676
    iprot.readStructEnd()
22677
 
22678
  def write(self, oprot):
22679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22681
      return
22682
    oprot.writeStructBegin('getAllSnapdealItems_args')
22683
    oprot.writeFieldStop()
22684
    oprot.writeStructEnd()
22685
 
22686
  def validate(self):
22687
    return
22688
 
22689
 
22690
  def __repr__(self):
22691
    L = ['%s=%r' % (key, value)
22692
      for key, value in self.__dict__.iteritems()]
22693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22694
 
22695
  def __eq__(self, other):
22696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22697
 
22698
  def __ne__(self, other):
22699
    return not (self == other)
22700
 
22701
class getAllSnapdealItems_result:
22702
  """
22703
  Attributes:
22704
   - success
22705
  """
22706
 
22707
  thrift_spec = (
9242 kshitij.so 22708
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 22709
  )
22710
 
22711
  def __init__(self, success=None,):
22712
    self.success = success
22713
 
22714
  def read(self, iprot):
22715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22717
      return
22718
    iprot.readStructBegin()
22719
    while True:
22720
      (fname, ftype, fid) = iprot.readFieldBegin()
22721
      if ftype == TType.STOP:
22722
        break
22723
      if fid == 0:
22724
        if ftype == TType.LIST:
22725
          self.success = []
9242 kshitij.so 22726
          (_etype516, _size513) = iprot.readListBegin()
22727
          for _i517 in xrange(_size513):
22728
            _elem518 = SnapdealItemDetails()
22729
            _elem518.read(iprot)
22730
            self.success.append(_elem518)
22731
          iprot.readListEnd()
22732
        else:
22733
          iprot.skip(ftype)
22734
      else:
22735
        iprot.skip(ftype)
22736
      iprot.readFieldEnd()
22737
    iprot.readStructEnd()
22738
 
22739
  def write(self, oprot):
22740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22742
      return
22743
    oprot.writeStructBegin('getAllSnapdealItems_result')
22744
    if self.success is not None:
22745
      oprot.writeFieldBegin('success', TType.LIST, 0)
22746
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22747
      for iter519 in self.success:
22748
        iter519.write(oprot)
22749
      oprot.writeListEnd()
22750
      oprot.writeFieldEnd()
22751
    oprot.writeFieldStop()
22752
    oprot.writeStructEnd()
22753
 
22754
  def validate(self):
22755
    return
22756
 
22757
 
22758
  def __repr__(self):
22759
    L = ['%s=%r' % (key, value)
22760
      for key, value in self.__dict__.iteritems()]
22761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22762
 
22763
  def __eq__(self, other):
22764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22765
 
22766
  def __ne__(self, other):
22767
    return not (self == other)
22768
 
22769
class getSnapdealItems_args:
22770
  """
22771
  Attributes:
22772
   - offset
22773
   - limit
22774
  """
22775
 
22776
  thrift_spec = (
22777
    None, # 0
22778
    (1, TType.I64, 'offset', None, None, ), # 1
22779
    (2, TType.I64, 'limit', None, None, ), # 2
22780
  )
22781
 
22782
  def __init__(self, offset=None, limit=None,):
22783
    self.offset = offset
22784
    self.limit = limit
22785
 
22786
  def read(self, iprot):
22787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22789
      return
22790
    iprot.readStructBegin()
22791
    while True:
22792
      (fname, ftype, fid) = iprot.readFieldBegin()
22793
      if ftype == TType.STOP:
22794
        break
22795
      if fid == 1:
22796
        if ftype == TType.I64:
22797
          self.offset = iprot.readI64();
22798
        else:
22799
          iprot.skip(ftype)
22800
      elif fid == 2:
22801
        if ftype == TType.I64:
22802
          self.limit = iprot.readI64();
22803
        else:
22804
          iprot.skip(ftype)
22805
      else:
22806
        iprot.skip(ftype)
22807
      iprot.readFieldEnd()
22808
    iprot.readStructEnd()
22809
 
22810
  def write(self, oprot):
22811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22813
      return
22814
    oprot.writeStructBegin('getSnapdealItems_args')
22815
    if self.offset is not None:
22816
      oprot.writeFieldBegin('offset', TType.I64, 1)
22817
      oprot.writeI64(self.offset)
22818
      oprot.writeFieldEnd()
22819
    if self.limit is not None:
22820
      oprot.writeFieldBegin('limit', TType.I64, 2)
22821
      oprot.writeI64(self.limit)
22822
      oprot.writeFieldEnd()
22823
    oprot.writeFieldStop()
22824
    oprot.writeStructEnd()
22825
 
22826
  def validate(self):
22827
    return
22828
 
22829
 
22830
  def __repr__(self):
22831
    L = ['%s=%r' % (key, value)
22832
      for key, value in self.__dict__.iteritems()]
22833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22834
 
22835
  def __eq__(self, other):
22836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22837
 
22838
  def __ne__(self, other):
22839
    return not (self == other)
22840
 
22841
class getSnapdealItems_result:
22842
  """
22843
  Attributes:
22844
   - success
22845
  """
22846
 
22847
  thrift_spec = (
22848
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
22849
  )
22850
 
22851
  def __init__(self, success=None,):
22852
    self.success = success
22853
 
22854
  def read(self, iprot):
22855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22857
      return
22858
    iprot.readStructBegin()
22859
    while True:
22860
      (fname, ftype, fid) = iprot.readFieldBegin()
22861
      if ftype == TType.STOP:
22862
        break
22863
      if fid == 0:
22864
        if ftype == TType.LIST:
22865
          self.success = []
9155 kshitij.so 22866
          (_etype523, _size520) = iprot.readListBegin()
22867
          for _i524 in xrange(_size520):
9242 kshitij.so 22868
            _elem525 = SnapdealItemDetails()
9155 kshitij.so 22869
            _elem525.read(iprot)
22870
            self.success.append(_elem525)
8739 vikram.rag 22871
          iprot.readListEnd()
22872
        else:
22873
          iprot.skip(ftype)
22874
      else:
22875
        iprot.skip(ftype)
22876
      iprot.readFieldEnd()
22877
    iprot.readStructEnd()
22878
 
22879
  def write(self, oprot):
22880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22882
      return
9242 kshitij.so 22883
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 22884
    if self.success is not None:
22885
      oprot.writeFieldBegin('success', TType.LIST, 0)
22886
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9155 kshitij.so 22887
      for iter526 in self.success:
22888
        iter526.write(oprot)
8739 vikram.rag 22889
      oprot.writeListEnd()
22890
      oprot.writeFieldEnd()
22891
    oprot.writeFieldStop()
22892
    oprot.writeStructEnd()
22893
 
22894
  def validate(self):
22895
    return
22896
 
22897
 
22898
  def __repr__(self):
22899
    L = ['%s=%r' % (key, value)
22900
      for key, value in self.__dict__.iteritems()]
22901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22902
 
22903
  def __eq__(self, other):
22904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22905
 
22906
  def __ne__(self, other):
22907
    return not (self == other)
9242 kshitij.so 22908
 
22909
class searchSnapdealItems_args:
22910
  """
22911
  Attributes:
22912
   - searchTerm
22913
   - offset
22914
   - limit
22915
  """
22916
 
22917
  thrift_spec = (
22918
    None, # 0
22919
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22920
    (2, TType.I64, 'offset', None, None, ), # 2
22921
    (3, TType.I64, 'limit', None, None, ), # 3
22922
  )
22923
 
22924
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22925
    self.searchTerm = searchTerm
22926
    self.offset = offset
22927
    self.limit = limit
22928
 
22929
  def read(self, iprot):
22930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22932
      return
22933
    iprot.readStructBegin()
22934
    while True:
22935
      (fname, ftype, fid) = iprot.readFieldBegin()
22936
      if ftype == TType.STOP:
22937
        break
22938
      if fid == 1:
22939
        if ftype == TType.LIST:
22940
          self.searchTerm = []
22941
          (_etype530, _size527) = iprot.readListBegin()
22942
          for _i531 in xrange(_size527):
22943
            _elem532 = iprot.readString();
22944
            self.searchTerm.append(_elem532)
22945
          iprot.readListEnd()
22946
        else:
22947
          iprot.skip(ftype)
22948
      elif fid == 2:
22949
        if ftype == TType.I64:
22950
          self.offset = iprot.readI64();
22951
        else:
22952
          iprot.skip(ftype)
22953
      elif fid == 3:
22954
        if ftype == TType.I64:
22955
          self.limit = iprot.readI64();
22956
        else:
22957
          iprot.skip(ftype)
22958
      else:
22959
        iprot.skip(ftype)
22960
      iprot.readFieldEnd()
22961
    iprot.readStructEnd()
22962
 
22963
  def write(self, oprot):
22964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22966
      return
22967
    oprot.writeStructBegin('searchSnapdealItems_args')
22968
    if self.searchTerm is not None:
22969
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22970
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
22971
      for iter533 in self.searchTerm:
22972
        oprot.writeString(iter533)
22973
      oprot.writeListEnd()
22974
      oprot.writeFieldEnd()
22975
    if self.offset is not None:
22976
      oprot.writeFieldBegin('offset', TType.I64, 2)
22977
      oprot.writeI64(self.offset)
22978
      oprot.writeFieldEnd()
22979
    if self.limit is not None:
22980
      oprot.writeFieldBegin('limit', TType.I64, 3)
22981
      oprot.writeI64(self.limit)
22982
      oprot.writeFieldEnd()
22983
    oprot.writeFieldStop()
22984
    oprot.writeStructEnd()
22985
 
22986
  def validate(self):
22987
    return
22988
 
22989
 
22990
  def __repr__(self):
22991
    L = ['%s=%r' % (key, value)
22992
      for key, value in self.__dict__.iteritems()]
22993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22994
 
22995
  def __eq__(self, other):
22996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22997
 
22998
  def __ne__(self, other):
22999
    return not (self == other)
23000
 
23001
class searchSnapdealItems_result:
23002
  """
23003
  Attributes:
23004
   - success
23005
  """
23006
 
23007
  thrift_spec = (
23008
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
23009
  )
23010
 
23011
  def __init__(self, success=None,):
23012
    self.success = success
23013
 
23014
  def read(self, iprot):
23015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23017
      return
23018
    iprot.readStructBegin()
23019
    while True:
23020
      (fname, ftype, fid) = iprot.readFieldBegin()
23021
      if ftype == TType.STOP:
23022
        break
23023
      if fid == 0:
23024
        if ftype == TType.LIST:
23025
          self.success = []
23026
          (_etype537, _size534) = iprot.readListBegin()
23027
          for _i538 in xrange(_size534):
23028
            _elem539 = SnapdealItemDetails()
23029
            _elem539.read(iprot)
23030
            self.success.append(_elem539)
23031
          iprot.readListEnd()
23032
        else:
23033
          iprot.skip(ftype)
23034
      else:
23035
        iprot.skip(ftype)
23036
      iprot.readFieldEnd()
23037
    iprot.readStructEnd()
23038
 
23039
  def write(self, oprot):
23040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23042
      return
23043
    oprot.writeStructBegin('searchSnapdealItems_result')
23044
    if self.success is not None:
23045
      oprot.writeFieldBegin('success', TType.LIST, 0)
23046
      oprot.writeListBegin(TType.STRUCT, len(self.success))
23047
      for iter540 in self.success:
23048
        iter540.write(oprot)
23049
      oprot.writeListEnd()
23050
      oprot.writeFieldEnd()
23051
    oprot.writeFieldStop()
23052
    oprot.writeStructEnd()
23053
 
23054
  def validate(self):
23055
    return
23056
 
23057
 
23058
  def __repr__(self):
23059
    L = ['%s=%r' % (key, value)
23060
      for key, value in self.__dict__.iteritems()]
23061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23062
 
23063
  def __eq__(self, other):
23064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23065
 
23066
  def __ne__(self, other):
23067
    return not (self == other)
23068
 
23069
class getCountForSnapdealItems_args:
23070
 
23071
  thrift_spec = (
23072
  )
23073
 
23074
  def read(self, iprot):
23075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23077
      return
23078
    iprot.readStructBegin()
23079
    while True:
23080
      (fname, ftype, fid) = iprot.readFieldBegin()
23081
      if ftype == TType.STOP:
23082
        break
23083
      else:
23084
        iprot.skip(ftype)
23085
      iprot.readFieldEnd()
23086
    iprot.readStructEnd()
23087
 
23088
  def write(self, oprot):
23089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23091
      return
23092
    oprot.writeStructBegin('getCountForSnapdealItems_args')
23093
    oprot.writeFieldStop()
23094
    oprot.writeStructEnd()
23095
 
23096
  def validate(self):
23097
    return
23098
 
23099
 
23100
  def __repr__(self):
23101
    L = ['%s=%r' % (key, value)
23102
      for key, value in self.__dict__.iteritems()]
23103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23104
 
23105
  def __eq__(self, other):
23106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23107
 
23108
  def __ne__(self, other):
23109
    return not (self == other)
23110
 
23111
class getCountForSnapdealItems_result:
23112
  """
23113
  Attributes:
23114
   - success
23115
  """
23116
 
23117
  thrift_spec = (
23118
    (0, TType.I64, 'success', None, None, ), # 0
23119
  )
23120
 
23121
  def __init__(self, success=None,):
23122
    self.success = success
23123
 
23124
  def read(self, iprot):
23125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23127
      return
23128
    iprot.readStructBegin()
23129
    while True:
23130
      (fname, ftype, fid) = iprot.readFieldBegin()
23131
      if ftype == TType.STOP:
23132
        break
23133
      if fid == 0:
23134
        if ftype == TType.I64:
23135
          self.success = iprot.readI64();
23136
        else:
23137
          iprot.skip(ftype)
23138
      else:
23139
        iprot.skip(ftype)
23140
      iprot.readFieldEnd()
23141
    iprot.readStructEnd()
23142
 
23143
  def write(self, oprot):
23144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23146
      return
23147
    oprot.writeStructBegin('getCountForSnapdealItems_result')
23148
    if self.success is not None:
23149
      oprot.writeFieldBegin('success', TType.I64, 0)
23150
      oprot.writeI64(self.success)
23151
      oprot.writeFieldEnd()
23152
    oprot.writeFieldStop()
23153
    oprot.writeStructEnd()
23154
 
23155
  def validate(self):
23156
    return
23157
 
23158
 
23159
  def __repr__(self):
23160
    L = ['%s=%r' % (key, value)
23161
      for key, value in self.__dict__.iteritems()]
23162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23163
 
23164
  def __eq__(self, other):
23165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23166
 
23167
  def __ne__(self, other):
23168
    return not (self == other)
23169
 
23170
class getSnapdealSearchResultCount_args:
23171
  """
23172
  Attributes:
23173
   - searchTerm
23174
  """
23175
 
23176
  thrift_spec = (
23177
    None, # 0
23178
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
23179
  )
23180
 
23181
  def __init__(self, searchTerm=None,):
23182
    self.searchTerm = searchTerm
23183
 
23184
  def read(self, iprot):
23185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23187
      return
23188
    iprot.readStructBegin()
23189
    while True:
23190
      (fname, ftype, fid) = iprot.readFieldBegin()
23191
      if ftype == TType.STOP:
23192
        break
23193
      if fid == 1:
23194
        if ftype == TType.LIST:
23195
          self.searchTerm = []
23196
          (_etype544, _size541) = iprot.readListBegin()
23197
          for _i545 in xrange(_size541):
23198
            _elem546 = iprot.readString();
23199
            self.searchTerm.append(_elem546)
23200
          iprot.readListEnd()
23201
        else:
23202
          iprot.skip(ftype)
23203
      else:
23204
        iprot.skip(ftype)
23205
      iprot.readFieldEnd()
23206
    iprot.readStructEnd()
23207
 
23208
  def write(self, oprot):
23209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23211
      return
23212
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
23213
    if self.searchTerm is not None:
23214
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
23215
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
23216
      for iter547 in self.searchTerm:
23217
        oprot.writeString(iter547)
23218
      oprot.writeListEnd()
23219
      oprot.writeFieldEnd()
23220
    oprot.writeFieldStop()
23221
    oprot.writeStructEnd()
23222
 
23223
  def validate(self):
23224
    return
23225
 
23226
 
23227
  def __repr__(self):
23228
    L = ['%s=%r' % (key, value)
23229
      for key, value in self.__dict__.iteritems()]
23230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23231
 
23232
  def __eq__(self, other):
23233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23234
 
23235
  def __ne__(self, other):
23236
    return not (self == other)
23237
 
23238
class getSnapdealSearchResultCount_result:
23239
  """
23240
  Attributes:
23241
   - success
23242
  """
23243
 
23244
  thrift_spec = (
23245
    (0, TType.I64, 'success', None, None, ), # 0
23246
  )
23247
 
23248
  def __init__(self, success=None,):
23249
    self.success = success
23250
 
23251
  def read(self, iprot):
23252
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23253
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23254
      return
23255
    iprot.readStructBegin()
23256
    while True:
23257
      (fname, ftype, fid) = iprot.readFieldBegin()
23258
      if ftype == TType.STOP:
23259
        break
23260
      if fid == 0:
23261
        if ftype == TType.I64:
23262
          self.success = iprot.readI64();
23263
        else:
23264
          iprot.skip(ftype)
23265
      else:
23266
        iprot.skip(ftype)
23267
      iprot.readFieldEnd()
23268
    iprot.readStructEnd()
23269
 
23270
  def write(self, oprot):
23271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23273
      return
23274
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
23275
    if self.success is not None:
23276
      oprot.writeFieldBegin('success', TType.I64, 0)
23277
      oprot.writeI64(self.success)
23278
      oprot.writeFieldEnd()
23279
    oprot.writeFieldStop()
23280
    oprot.writeStructEnd()
23281
 
23282
  def validate(self):
23283
    return
23284
 
23285
 
23286
  def __repr__(self):
23287
    L = ['%s=%r' % (key, value)
23288
      for key, value in self.__dict__.iteritems()]
23289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23290
 
23291
  def __eq__(self, other):
23292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23293
 
23294
  def __ne__(self, other):
23295
    return not (self == other)
9299 kshitij.so 23296
 
23297
class getPrefferedInsurerForItem_args:
23298
  """
23299
  Attributes:
23300
   - itemId
23301
   - insurerType
23302
  """
23303
 
23304
  thrift_spec = (
23305
    None, # 0
23306
    (1, TType.I64, 'itemId', None, None, ), # 1
23307
    (2, TType.I32, 'insurerType', None, None, ), # 2
23308
  )
23309
 
23310
  def __init__(self, itemId=None, insurerType=None,):
23311
    self.itemId = itemId
23312
    self.insurerType = insurerType
23313
 
23314
  def read(self, iprot):
23315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23317
      return
23318
    iprot.readStructBegin()
23319
    while True:
23320
      (fname, ftype, fid) = iprot.readFieldBegin()
23321
      if ftype == TType.STOP:
23322
        break
23323
      if fid == 1:
23324
        if ftype == TType.I64:
23325
          self.itemId = iprot.readI64();
23326
        else:
23327
          iprot.skip(ftype)
23328
      elif fid == 2:
23329
        if ftype == TType.I32:
23330
          self.insurerType = iprot.readI32();
23331
        else:
23332
          iprot.skip(ftype)
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
23342
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
23343
    if self.itemId is not None:
23344
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23345
      oprot.writeI64(self.itemId)
23346
      oprot.writeFieldEnd()
23347
    if self.insurerType is not None:
23348
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
23349
      oprot.writeI32(self.insurerType)
23350
      oprot.writeFieldEnd()
23351
    oprot.writeFieldStop()
23352
    oprot.writeStructEnd()
23353
 
23354
  def validate(self):
23355
    return
23356
 
23357
 
23358
  def __repr__(self):
23359
    L = ['%s=%r' % (key, value)
23360
      for key, value in self.__dict__.iteritems()]
23361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23362
 
23363
  def __eq__(self, other):
23364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23365
 
23366
  def __ne__(self, other):
23367
    return not (self == other)
23368
 
23369
class getPrefferedInsurerForItem_result:
23370
  """
23371
  Attributes:
23372
   - success
23373
  """
23374
 
23375
  thrift_spec = (
23376
    (0, TType.I64, 'success', None, None, ), # 0
23377
  )
23378
 
23379
  def __init__(self, success=None,):
23380
    self.success = success
23381
 
23382
  def read(self, iprot):
23383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23385
      return
23386
    iprot.readStructBegin()
23387
    while True:
23388
      (fname, ftype, fid) = iprot.readFieldBegin()
23389
      if ftype == TType.STOP:
23390
        break
23391
      if fid == 0:
23392
        if ftype == TType.I64:
23393
          self.success = iprot.readI64();
23394
        else:
23395
          iprot.skip(ftype)
23396
      else:
23397
        iprot.skip(ftype)
23398
      iprot.readFieldEnd()
23399
    iprot.readStructEnd()
23400
 
23401
  def write(self, oprot):
23402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23404
      return
23405
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
23406
    if self.success is not None:
23407
      oprot.writeFieldBegin('success', TType.I64, 0)
23408
      oprot.writeI64(self.success)
23409
      oprot.writeFieldEnd()
23410
    oprot.writeFieldStop()
23411
    oprot.writeStructEnd()
23412
 
23413
  def validate(self):
23414
    return
23415
 
23416
 
23417
  def __repr__(self):
23418
    L = ['%s=%r' % (key, value)
23419
      for key, value in self.__dict__.iteritems()]
23420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23421
 
23422
  def __eq__(self, other):
23423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23424
 
23425
  def __ne__(self, other):
23426
    return not (self == other)
9456 vikram.rag 23427
 
23428
class getSnapdealItembySkuAtSnapdeal_args:
23429
  """
23430
  Attributes:
23431
   - skuAtSnapdeal
23432
  """
23433
 
23434
  thrift_spec = None
23435
  def __init__(self, skuAtSnapdeal=None,):
23436
    self.skuAtSnapdeal = skuAtSnapdeal
23437
 
23438
  def read(self, iprot):
23439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23441
      return
23442
    iprot.readStructBegin()
23443
    while True:
23444
      (fname, ftype, fid) = iprot.readFieldBegin()
23445
      if ftype == TType.STOP:
23446
        break
23447
      if fid == -1:
23448
        if ftype == TType.STRING:
23449
          self.skuAtSnapdeal = iprot.readString();
23450
        else:
23451
          iprot.skip(ftype)
23452
      else:
23453
        iprot.skip(ftype)
23454
      iprot.readFieldEnd()
23455
    iprot.readStructEnd()
23456
 
23457
  def write(self, oprot):
23458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23460
      return
23461
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
23462
    if self.skuAtSnapdeal is not None:
23463
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
23464
      oprot.writeString(self.skuAtSnapdeal)
23465
      oprot.writeFieldEnd()
23466
    oprot.writeFieldStop()
23467
    oprot.writeStructEnd()
23468
 
23469
  def validate(self):
23470
    return
23471
 
23472
 
23473
  def __repr__(self):
23474
    L = ['%s=%r' % (key, value)
23475
      for key, value in self.__dict__.iteritems()]
23476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23477
 
23478
  def __eq__(self, other):
23479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23480
 
23481
  def __ne__(self, other):
23482
    return not (self == other)
23483
 
23484
class getSnapdealItembySkuAtSnapdeal_result:
23485
  """
23486
  Attributes:
23487
   - success
23488
  """
23489
 
23490
  thrift_spec = (
23491
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
23492
  )
23493
 
23494
  def __init__(self, success=None,):
23495
    self.success = success
23496
 
23497
  def read(self, iprot):
23498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23500
      return
23501
    iprot.readStructBegin()
23502
    while True:
23503
      (fname, ftype, fid) = iprot.readFieldBegin()
23504
      if ftype == TType.STOP:
23505
        break
23506
      if fid == 0:
23507
        if ftype == TType.STRUCT:
23508
          self.success = SnapdealItem()
23509
          self.success.read(iprot)
23510
        else:
23511
          iprot.skip(ftype)
23512
      else:
23513
        iprot.skip(ftype)
23514
      iprot.readFieldEnd()
23515
    iprot.readStructEnd()
23516
 
23517
  def write(self, oprot):
23518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23520
      return
23521
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
23522
    if self.success is not None:
23523
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23524
      self.success.write(oprot)
23525
      oprot.writeFieldEnd()
23526
    oprot.writeFieldStop()
23527
    oprot.writeStructEnd()
23528
 
23529
  def validate(self):
23530
    return
23531
 
23532
 
23533
  def __repr__(self):
23534
    L = ['%s=%r' % (key, value)
23535
      for key, value in self.__dict__.iteritems()]
23536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23537
 
23538
  def __eq__(self, other):
23539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23540
 
23541
  def __ne__(self, other):
23542
    return not (self == other)