com.amazon.InAppSDK.purchasing
Class ItemDataResponse

java.lang.Object
  extended by com.amazon.InAppSDK.purchasing.ItemDataResponse

public final class ItemDataResponse
extends java.lang.Object

Represents the result of a call to PurchasingManager.initiateItemDataRequest(java.util.Set) and is sent asynchronously to the registered PurchasingObserver via PurchasingObserver.notifyItemDataResponse(ItemDataResponse) .


Nested Class Summary
static class ItemDataResponse.ItemDataRequestStatus
          Indicates the result of an item data request initiated via PurchasingManager.initiateItemDataRequest(java.util.Set).
 
Method Summary
 java.util.Map<java.lang.String,Item> getItemData()
          Returns item data, keyed by SKU.
 ItemDataResponse.ItemDataRequestStatus getItemDataRequestStatus()
          Indicates the status of the item data request.
 java.lang.String getRequestId()
          Provides access to the request ID originally returned by PurchasingManager.initiateItemDataRequest(Set).
 java.util.Set<java.lang.String> getUnavailableSkus()
          Returns the set of SKUs provided in the original request to PurchasingManager.initiateItemDataRequest(Set) for which item data is not available.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRequestId

public java.lang.String getRequestId()
Provides access to the request ID originally returned by PurchasingManager.initiateItemDataRequest(Set). This identifier can be used to correlate the original request with this response.

Returns:
the ID of the request that this response is associated with

getUnavailableSkus

public java.util.Set<java.lang.String> getUnavailableSkus()
Returns the set of SKUs provided in the original request to PurchasingManager.initiateItemDataRequest(Set) for which item data is not available. Item data can be unavailable if the provided SKU is not a legitimate SKU or if there was a problem retrieving the data at this time.

Returns:
the set of SKUs provided in the original request for which item data is unavailable

getItemDataRequestStatus

public ItemDataResponse.ItemDataRequestStatus getItemDataRequestStatus()
Indicates the status of the item data request.

Returns:
the status of the item data request

getItemData

public java.util.Map<java.lang.String,Item> getItemData()
Returns item data, keyed by SKU.

Returns:
item data, keyed by SKU