public final class PromotionPlan
extends java.lang.Object
implements android.os.Parcelable
Promotion
object contains a list of such promotion plansModifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PromotionPlan> |
CREATOR |
Constructor and Description |
---|
PromotionPlan(java.lang.String promotionPricePeriod,
java.lang.String promotionPrice,
int promotionPriceCycles) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj)
Utility method to check for equality of this instance with another PromotionPlan instance.
|
java.lang.String |
getPromotionPrice()
Returns the localized price of this promotion.
|
int |
getPromotionPriceCycles()
Returns the number of cycles with the promotion period of this promotion.
|
java.lang.String |
getPromotionPricePeriod()
Returns the promotion period associated with the current instance of PromotionPlan.
|
org.json.JSONObject |
toJSON()
Returns a JSON object containing the information for an instance of
PromotionPlan.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a PromotionPlan instance.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<PromotionPlan> CREATOR
public PromotionPlan(java.lang.String promotionPricePeriod, java.lang.String promotionPrice, int promotionPriceCycles)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String getPromotionPricePeriod()
public java.lang.String getPromotionPrice()
public int getPromotionPriceCycles()
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object