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)

Functions

component1
Link copied to clipboard
operator fun component1(): Boolean
component2
Link copied to clipboard
operator fun component2(): CampaignState
component3
Link copied to clipboard
operator fun component3(): Long
component4
Link copied to clipboard
operator fun component4(): DisplayControl
component5
Link copied to clipboard
operator fun component5(): Map<String, Any>
component6
Link copied to clipboard
operator fun component6(): Boolean
component7
Link copied to clipboard
operator fun component7(): Long
component8
Link copied to clipboard
operator fun component8(): JSONObject
copy
Link copied to clipboard
fun copy(isPinned: Boolean, campaignState: CampaignState, deletionTime: Long, displayControl: DisplayControl, metaData: Map<String, Any>, isNewCard: Boolean, updatedTime: Long, campaignPayload: JSONObject): MetaData
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

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.