@Immutable @LevelUpApi(contract=PUBLIC) public final class Claim extends Object implements Parcelable
Campaign
on the server.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Claim> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Claim(long campaignId,
String code,
long id,
MonetaryValue value,
MonetaryValue valueRemaining) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
long |
getCampaignId()
The web service ID of the
Campaign that was claimed. |
String |
getCode()
The code of the
Campaign that was claimed. |
long |
getId()
The web service ID of this
Claim . |
MonetaryValue |
getValue()
The amount that this
Claim is worth. |
MonetaryValue |
getValueRemaining()
The amount that this
Claim still has remaining after
all redemptions. |
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Claim> CREATOR
Parcelable
interface.public Claim(long campaignId, String code, long id, MonetaryValue value, MonetaryValue valueRemaining)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public long getCampaignId()
Campaign
that was claimed.public long getId()
Claim
.public MonetaryValue getValue()
Claim
is worth.public MonetaryValue getValueRemaining()
Claim
still has remaining after
all redemptions.