public final class Product
extends java.lang.Object
implements android.os.Parcelable
PurchasingService.getProductData(java.util.Set)
.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Product> |
CREATOR
CREATOR field that generates instances of Product object from a Parcel.
|
Constructor and Description |
---|
Product(ProductBuilder builder)
Creates an instance of the Product.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
CoinsReward |
getCoinsReward()
May be null.
|
java.lang.String |
getDescription()
Returns the localized description of the product.
|
java.lang.String |
getPrice()
Returns the price of the product.
|
ProductType |
getProductType()
Returns the type of product.
|
java.lang.String |
getSku()
Returns the stock-keeping unit (SKU) of the product.
|
java.lang.String |
getSmallIconUrl()
Returns the url of the small icon.
|
java.lang.String |
getTitle()
Returns the localized title of the product.
|
org.json.JSONObject |
toJSON()
Returns a JSON object containing the information for an instance of
Product.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a Product instance.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<Product> CREATOR
public Product(ProductBuilder builder)
builder
- The builder for the Product.public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String getSku()
public ProductType getProductType()
public java.lang.String getDescription()
public java.lang.String getPrice()
public java.lang.String getSmallIconUrl()
public java.lang.String getTitle()
public CoinsReward getCoinsReward()
CoinsReward
which, if not null, contains data about the
Amazon Coins reward that a customer may receive by purchasing this product.CoinsReward
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException
public java.lang.String toString()
toString
in class java.lang.Object