DisplayControl

data class DisplayControl(expireAt: Long, expireAfterSeen: Long, expireAfterDelivered: Long, maxCount: Long, isPinned: Boolean, showtime: Showtime)

Delivery Controls defined during campaign creation.

Author

Umang Chamaria Date: 29/04/20

Constructors

DisplayControl
Link copied to clipboard
fun DisplayControl(expireAt: Long, expireAfterSeen: Long, expireAfterDelivered: Long, maxCount: Long, isPinned: Boolean, showtime: Showtime)

Functions

component1
Link copied to clipboard
operator fun component1(): Long
component2
Link copied to clipboard
operator fun component2(): Long
component3
Link copied to clipboard
operator fun component3(): Long
component4
Link copied to clipboard
operator fun component4(): Long
component5
Link copied to clipboard
operator fun component5(): Boolean
component6
Link copied to clipboard
operator fun component6(): Showtime
copy
Link copied to clipboard
fun copy(expireAt: Long, expireAfterSeen: Long, expireAfterDelivered: Long, maxCount: Long, isPinned: Boolean, showtime: Showtime): DisplayControl
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

expireAfterDelivered
Link copied to clipboard
val expireAfterDelivered: Long
Time duration after which the card should be expired once it is delivered on the device.
expireAfterSeen
Link copied to clipboard
val expireAfterSeen: Long
Time duration after which card should be expired once it is seen.
expireAt
Link copied to clipboard
val expireAt: Long
Absolute time at which the card should be expired.
isPinned
Link copied to clipboard
val isPinned: Boolean
True if the campaign is pinned on top, else false.
maxCount
Link copied to clipboard
val maxCount: Long
Maximum number of times a campaign should be shown to the user across devices.
showtime
Link copied to clipboard
val showtime: Showtime
Time during the day when the campaign should be shown.