Aller au contenu

Campaign

Ce contenu n’est pas encore disponible dans votre langue.

class Campaign(val campaignId: String, val name: String, val interactionTypeKey: String, val referrer: EstimatedReward?, val referee: EstimatedReward?, val defaultLockupSeconds: Double?, val maxRewardsPerUser: Double?, val expiresAt: String?)

One active campaign. Arrives sorted by priority descending; do not re-sort.

Campaignconstructor(campaignId: String, name: String, interactionTypeKey: String, referrer: EstimatedReward?, referee: EstimatedReward?, defaultLockupSeconds: Double?, maxRewardsPerUser: Double?, expiresAt: String?)
NameSummary
campaignIdval campaignId: String
defaultLockupSecondsval defaultLockupSeconds: Double?
Whole days a reward is locked before it can be claimed, when configured.
expiresAtval expiresAt: String?
ISO-8601 expiry, or null for a campaign that never expires.
interactionTypeKeyval interactionTypeKey: String
The interaction that triggers this campaign, e.g. purchase. Open on the wire.
maxRewardsPerUserval maxRewardsPerUser: Double?
nameval name: String
refereeval referee: EstimatedReward?
What the person arriving through the link earns.
referrerval referrer: EstimatedReward?
What the sharer earns. Absent when the campaign rewards only the referee.
NameSummary
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
toStringopen override fun toString(): String