public final class SkuDetails
extends java.lang.Object
| Constructor and Description |
|---|
SkuDetails(java.lang.String jsonSkuDetails) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getDescription()
Returns the description of the product.
|
java.lang.String |
getFreeTrialPeriod()
Returns the free trial period associated with the item
|
java.lang.String |
getIconUrl()
Returns the icon of the product if present.
|
java.lang.String |
getOriginalJson()
Returns a String in JSON format that contains SKU details.
|
java.lang.String |
getOriginalPrice()
Returns formatted original price of the item, including its currency sign.
|
long |
getOriginalPriceAmountMicros()
Returns the original price in micro-units,
where 1,000,000 micro-units equal one unit of the currency.
|
java.lang.String |
getPrice()
Returns formatted price of the item, including its currency sign.
|
long |
getPriceAmountMicros()
Returns price in micro-units,
where 1,000,000 micro-units equal one unit of the currency.
|
java.lang.String |
getPriceCurrencyCode()
Returns ISO 4217 currency code for price and original price.
|
java.lang.String |
getSku()
Returns the product Id.
|
java.lang.String |
getSubscriptionPeriod()
Returns the subscription period associated with the item.
|
java.lang.String |
getTitle()
Returns the title of the product being sold.
|
java.lang.String |
getType()
Returns the
BillingClient.SkuType of the SKU. |
int |
hashCode() |
java.lang.String |
toString() |
public SkuDetails(java.lang.String jsonSkuDetails)
throws org.json.JSONException
org.json.JSONExceptionpublic java.lang.String getDescription()
public java.lang.String getIconUrl()
public java.lang.String getSku()
public java.lang.String getTitle()
public java.lang.String getType()
BillingClient.SkuType of the SKU.public java.lang.String getOriginalJson()
public java.lang.String getOriginalPrice()
public long getOriginalPriceAmountMicros()
public java.lang.String getPrice()
public long getPriceAmountMicros()
public java.lang.String getPriceCurrencyCode()
public java.lang.String getFreeTrialPeriod()
public java.lang.String getSubscriptionPeriod()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object