@Immutable @LevelUpApi(contract=PUBLIC) public final class CampaignMetadata extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
CampaignMetadata.CampaignMetadataBuilder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CampaignMetadata> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CampaignMetadata(long id,
String[] representationTypes) |
Modifier and Type | Method and Description |
---|---|
static CampaignMetadata.CampaignMetadataBuilder |
builder() |
int |
describeContents() |
boolean |
equals(Object o) |
long |
getId()
The ID of this campaign.
|
String[] |
getRepresentationTypes()
List of representation types available to this campaign.
|
int |
hashCode() |
boolean |
supportsRepresentationType(CampaignRepresentationType type) |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<CampaignMetadata> CREATOR
Parcelable
interface.public CampaignMetadata(long id, String[] representationTypes)
public boolean supportsRepresentationType(CampaignRepresentationType type)
type
- The type of campaign data to check for.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public static CampaignMetadata.CampaignMetadataBuilder builder()
public long getId()
public String[] getRepresentationTypes()