PlaytimeRewardAction

data class PlaytimeRewardAction(val name: String?, val taskDescription: String?, val level: Int?, val taskType: String, val playDuration: Int?, val amount: Int, val rewardedAt: String?, val rewardsCount: Int?, val completedRewards: Int?, val timedCoinsDuration: Int?, val timedCoins: Int?, val originalCoins: Int?, val isTimed: Boolean?, val isRewardedForPromotion: Boolean?, val boosterExpiresAt: String?)

Rewarded action representation.

Constructors

Link copied to clipboard
constructor(name: String?, taskDescription: String?, level: Int?, taskType: String, playDuration: Int?, amount: Int, rewardedAt: String?, rewardsCount: Int?, completedRewards: Int?, timedCoinsDuration: Int?, timedCoins: Int?, originalCoins: Int?, isTimed: Boolean?, isRewardedForPromotion: Boolean?, boosterExpiresAt: String?)

Properties

Link copied to clipboard
val amount: Int

The amount of coins or rewards the user will receive upon completing the event.

Link copied to clipboard

The timestamp (ISO 8601) indicating when the booster reward expires. Use it to determine user eligibility for booster rewards and support features such as booster countdown.

Link copied to clipboard

Number of times that the action has been rewarded, applicable to repetitive events.

Link copied to clipboard

Flag indicating whether the event has been rewarded with promotion.

Link copied to clipboard

Flag indicating whether the event is a booster event.

Link copied to clipboard
val level: Int?

Time-based event level number.

Link copied to clipboard
val name: String?

Reward action name.

Link copied to clipboard

Amount of coins that would be rewarded without any bonuses applied.

Link copied to clipboard

Duration (in seconds) of play time required to reward a time-based event

Link copied to clipboard

Timestamp when a time-based reward was granted (ISO 8601).

Link copied to clipboard

Number of times that the action can be rewarded, applicable to repetitive events.

Link copied to clipboard

Description of the task.

Link copied to clipboard

Type of task to complete. Possible values: sequential, bonus, playtime.

Link copied to clipboard

Amount of coins rewarded during the booster period.

Link copied to clipboard

Time window (in minutes) during which the Booster reward is applicable.