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.
Constructors
Section titled “Constructors”| Campaign | constructor(campaignId: String, name: String, interactionTypeKey: String, referrer: EstimatedReward?, referee: EstimatedReward?, defaultLockupSeconds: Double?, maxRewardsPerUser: Double?, expiresAt: String?) |
Properties
Section titled “Properties”| Name | Summary |
|---|---|
| campaignId | val campaignId: String |
| defaultLockupSeconds | val defaultLockupSeconds: Double? Whole days a reward is locked before it can be claimed, when configured. |
| expiresAt | val expiresAt: String? ISO-8601 expiry, or null for a campaign that never expires. |
| interactionTypeKey | val interactionTypeKey: String The interaction that triggers this campaign, e.g. purchase. Open on the wire. |
| maxRewardsPerUser | val maxRewardsPerUser: Double? |
| name | val name: String |
| referee | val referee: EstimatedReward? What the person arriving through the link earns. |
| referrer | val referrer: EstimatedReward? What the sharer earns. Absent when the campaign rewards only the referee. |
Functions
Section titled “Functions”| Name | Summary |
|---|---|
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |
| toString | open override fun toString(): String |