public final class InboxCampaign extends WebViewCampaign
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<InboxCampaign> |
CREATOR |
localCreativeUri, webViewAttributes
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete the Inbox Campaign
|
int |
describeContents() |
protected java.lang.String |
getConversionEventName() |
protected android.net.Uri |
getCreativeUri()
Get the uri pointing to the remote inbox creative.
|
java.lang.String |
getDeepLinkUrl()
Get a deep link url sent in a push to inbox campaign
|
protected java.util.Map<java.lang.String,java.lang.String> |
getExtraCampaignEventAttributes(java.lang.String action) |
protected long |
getInboxId()
Get the inbox campaign database auto-incrementing ID
|
protected android.net.Uri |
getLocalThumbnailUri()
Get the url pointing to the local location where we can get the inbox thumbnail resource.
|
protected long |
getPtiId()
Get the push to inbox campaign database auto-incrementing ID
|
java.util.Date |
getReceivedDate()
Get the received date for the campaign
|
long |
getSortOrder()
Get the sort order for the campaign.
|
java.lang.String |
getSummary()
Get the preview summary of the inbox campaign.
|
android.net.Uri |
getThumbnailUri()
Get the uri of the remote thumbnail.
|
java.lang.String |
getTitle()
Get the preview title of the inbox campaign.
|
boolean |
hasCreative()
Check if the campaign has a creative
WebViewCampaign.getCreativeFilePath() |
boolean |
hasThumbnail()
Check if the campaign has a thumbnail
getThumbnailUri() |
boolean |
isDeleted()
Get the state of whether or not this campaign is deleted.
|
boolean |
isPushToInboxCampaign()
Returns yes if a push to inbox campaign
|
boolean |
isRead()
Get the inbox campaign read/unread state.
|
boolean |
isVisible()
Get the state of whether or not this campaign should be displayed.
|
void |
setRead(boolean read)
Set the inbox campaign read/unread state.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getCreativeFilePath, getWebViewAttributes
getAbTest, getAttributes, getCampaignId, getName, getRuleName, getSchemaVersion, getVersion
public static final android.os.Parcelable.Creator<InboxCampaign> CREATOR
protected long getInboxId()
protected long getPtiId()
public boolean isRead()
public boolean isVisible()
public boolean isDeleted()
public boolean isPushToInboxCampaign()
public void setRead(boolean read)
read
- true if the inbox campaign is read, otherwise falsepublic void delete()
@Nullable public java.lang.String getTitle()
public long getSortOrder()
@NonNull public java.util.Date getReceivedDate()
@Nullable public java.lang.String getSummary()
public boolean hasThumbnail()
getThumbnailUri()
@Nullable public android.net.Uri getThumbnailUri()
public boolean hasCreative()
WebViewCampaign.getCreativeFilePath()
@Nullable public java.lang.String getDeepLinkUrl()
@Nullable protected android.net.Uri getCreativeUri()
@Nullable protected android.net.Uri getLocalThumbnailUri()
@NonNull protected java.util.Map<java.lang.String,java.lang.String> getExtraCampaignEventAttributes(@NonNull java.lang.String action)
getExtraCampaignEventAttributes
in class WebViewCampaign
@NonNull protected java.lang.String getConversionEventName()
getConversionEventName
in class WebViewCampaign
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class WebViewCampaign