public class ProductSalesDataRec extends Object
Constructor and Description |
---|
ProductSalesDataRec(String sku,
Map<Integer,String> salesRank,
Map<Integer,String> unitsSold,
List<OfferRec> bestOffers,
List<OfferRec> marketplaceOffers)
Create a new ProductSalesDataRec instance
|
Modifier and Type | Method and Description |
---|---|
static ProductSalesDataRec |
fromJSON(String sku,
javax.json.JsonObject json)
Turn jet json into an instance of this object
|
List<OfferRec> |
getBestMarketplaceOffers()
Get the best marketplace offers data
|
List<OfferRec> |
getBestOffers()
Get the best offers data
|
Map<Integer,String> |
getSalesRank()
Get the sales rank data
|
String |
getSku()
Get the product sku this object represents.
|
Map<Integer,String> |
getUnitsSold()
Get the units sold data
|
public ProductSalesDataRec(String sku, Map<Integer,String> salesRank, Map<Integer,String> unitsSold, List<OfferRec> bestOffers, List<OfferRec> marketplaceOffers)
sku
- SkusalesRank
- DataunitsSold
- DatabestOffers
- DatamarketplaceOffers
- Datapublic static ProductSalesDataRec fromJSON(String sku, javax.json.JsonObject json) throws ParseException
sku
- skujson
- jsonParseException
- if a date isnt parsed correctlypublic String getSku()
Copyright © 2017. All rights reserved.