public class ProductDataResponse
extends java.lang.Object
PurchasingService.getProductData(java.util.Set)
.Modifier and Type | Class and Description |
---|---|
static class |
ProductDataResponse.RequestStatus
Represents the status of a product data request initiated by
PurchasingService.getProductData(java.util.Set) . |
Constructor and Description |
---|
ProductDataResponse(com.amazon.device.iap.internal.model.ProductDataResponseBuilder builder)
Creates an instance of the Product.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Product> |
getProductData()
Returns product data, keyed by SKU.
|
RequestId |
getRequestId()
Returns the request identifier originally returned by
PurchasingService.getProductData(Set) . |
ProductDataResponse.RequestStatus |
getRequestStatus()
Returns the status of the product data request.
|
java.util.Set<java.lang.String> |
getUnavailableSkus()
Returns the set of SKUs provided in the original request to
PurchasingService.getProductData(Set) for which product data is
not available. |
org.json.JSONObject |
toJSON()
Utility method to return a JSON object containing the information for a
ProductDataResponse instance.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a ProductDataResponse instance.
|
public ProductDataResponse(com.amazon.device.iap.internal.model.ProductDataResponseBuilder builder)
builder
- The builder for the ProductDataResponse.public RequestId getRequestId()
PurchasingService.getProductData(Set)
. This ID can be used to
correlate the original request with this response.public java.util.Set<java.lang.String> getUnavailableSkus()
PurchasingService.getProductData(Set)
for which product data is
not available. Product data can be unavailable if the provided SKU is not
defined or if there was a problem retrieving the data.public ProductDataResponse.RequestStatus getRequestStatus()
public java.util.Map<java.lang.String,Product> getProductData()
public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException