MetaData

data class MetaData(isPinned: Boolean, campaignState: CampaignState, deletionTime: Long, displayControl: DisplayControl, metaData: Map<String, Any>, isNewCard: Boolean, updatedTime: Long, campaignPayload: JSONObject)

Meta data related to a campaign.

Constructors

MetaData
Link copied to clipboard
fun MetaData(isPinned: Boolean, campaignState: CampaignState, deletionTime: Long, displayControl: DisplayControl, metaData: Map<String, Any>, isNewCard: Boolean, updatedTime: Long, campaignPayload: JSONObject)

Properties

campaignPayload
Link copied to clipboard
val campaignPayload: JSONObject

Complete Campaign payload.

campaignState
Link copied to clipboard
val campaignState: CampaignState

Current state of the campaign.

deletionTime
Link copied to clipboard
var deletionTime: Long

Time at which the campaign would be deleted from local store.

displayControl
Link copied to clipboard
val displayControl: DisplayControl

Delivery Controls defined during campaign creation.

isNewCard
Link copied to clipboard
val isNewCard: Boolean

True if the campaign hasn't been delivered to the inbox, else false.

isPinned
Link copied to clipboard
var isPinned: Boolean

True if the campaign should be pinned to the top else false.

metaData
Link copied to clipboard
val metaData: Map<String, Any>

Additional meta data regarding campaign used for tracking purposes.

updatedTime
Link copied to clipboard
val updatedTime: Long

Last time the campaign was updated.