public final class Promotion
extends java.lang.Object
implements android.os.Parcelable
Product
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Promotion> |
CREATOR |
Constructor and Description |
---|
Promotion(java.lang.String promotionType,
java.util.List<PromotionPlan> promotionPlans) |
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 Promotion instance.
|
java.util.List<PromotionPlan> |
getPromotionPlans()
Returns the list of promotion plans associated
with the promotion type of current instance.
|
java.lang.String |
getPromotionType()
Returns the type of promotion associated with the current instance.
|
org.json.JSONObject |
toJSON()
Returns a JSON object containing the information for an instance of
Promotion.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a Promotion instance.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Promotion> CREATOR
public Promotion(java.lang.String promotionType, java.util.List<PromotionPlan> promotionPlans)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable
public java.lang.String getPromotionType()
public java.util.List<PromotionPlan> getPromotionPlans()
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