Package com.moengage.cards.model

Types

CampaignState
Link copied to clipboard
data class CampaignState(localShowCount: Long, isClicked: Boolean, firstReceived: Long, firstSeen: Long, totalShowCount: Long)

State of the card.

Card
Link copied to clipboard
data class Card(id: Long, cardId: String, category: String, template: Template, metaData: MetaData)
Container
Link copied to clipboard
data class Container(id: Long, type: String, style: ContainerStyle?, widgetList: List<Widget>, action: List<Action>)
DisplayControl
Link copied to clipboard
data class DisplayControl(expireAt: Long, expireAfterSeen: Long, expireAfterDelivered: Long, maxCount: Long, isPinned: Boolean, showtime: Showtime)

Delivery Controls defined during campaign creation.

MetaData
Link copied to clipboard
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.

Showtime
Link copied to clipboard
data class Showtime(startTime: String, endTime: String)
Template
Link copied to clipboard
data class Template(templateType: TemplateType, container: List<Container>, additionalData: Map<String, Any>)
Widget
Link copied to clipboard
data class Widget(id: Int, widgetType: WidgetType, content: String, style: WidgetStyle?, actionList: List<Action>)