@Immutable @LevelUpApi(contract=PUBLIC) public final class Campaign extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Campaign.CampaignBuilder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Campaign> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Campaign(boolean appliesToAllMerchants,
String confirmationHtml,
long id,
String messageForEmailBody,
String messageForEmailSubject,
String messageForTwitter,
String messageForFacebook,
String name,
String offerHtml,
String type,
boolean shareable,
String shareUrlEmail,
String shareUrlFacebook,
String shareUrlTwitter,
String sponsor,
MonetaryValue value) |
Modifier and Type | Method and Description |
---|---|
static Campaign.CampaignBuilder |
builder() |
int |
describeContents() |
boolean |
equals(Object o) |
String |
getConfirmationHtml()
The text to show when a successful claim of this campaign occurs.
|
long |
getId()
The ID of this Campaign on the web service.
|
String |
getMessageForEmailBody()
The message to use as a body for an email share of this campaign.
|
String |
getMessageForEmailSubject()
The message to use as a the subject for an email share of this campaign.
|
String |
getMessageForFacebook()
The message to use for a Facebook share of this campaign.
|
String |
getMessageForTwitter()
The message to use for a Twitter share of this campaign.
|
String |
getName()
The name of this campaign.
|
String |
getOfferHtml()
The text describing this campaign.
|
String |
getShareUrlEmail()
The URL to share via email.
|
String |
getShareUrlFacebook()
The URL to share via Facebook.
|
String |
getShareUrlTwitter()
The URL to share via twitter.
|
String |
getSponsor()
The name of the sponsor of this campaign.
|
String |
getType()
The type of campaign this is.
|
MonetaryValue |
getValue()
The amount of credit the user would get for claiming this campaign.
|
int |
hashCode() |
boolean |
isAppliesToAllMerchants()
Whether or not this campaign's value is eligible to be spent at all merchants on LevelUp.
|
boolean |
isShareable()
If this Campaign is eligible to be shared to others.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Campaign> CREATOR
Parcelable
interface.public Campaign(boolean appliesToAllMerchants, String confirmationHtml, long id, String messageForEmailBody, String messageForEmailSubject, String messageForTwitter, String messageForFacebook, String name, String offerHtml, String type, boolean shareable, String shareUrlEmail, String shareUrlFacebook, String shareUrlTwitter, String sponsor, MonetaryValue value)
public final int describeContents()
describeContents
in interface Parcelable
public final void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public static Campaign.CampaignBuilder builder()
public boolean isAppliesToAllMerchants()
public String getConfirmationHtml()
public long getId()
public String getMessageForEmailBody()
public String getMessageForEmailSubject()
public String getMessageForTwitter()
public String getMessageForFacebook()
public String getName()
public String getOfferHtml()
public String getType()
public boolean isShareable()
public String getShareUrlEmail()
public String getShareUrlFacebook()
public String getShareUrlTwitter()
public String getSponsor()
public MonetaryValue getValue()