StreakMilestone

data class StreakMilestone(val id: String, val streakId: String, val type: StreakMilestoneType, val length: Int, val rewards: List<ValueInUnits>, val repeatOnReset: Boolean, val creationTime: Calendar, val achievement: StreakMilestoneAchievementSummary)

Data class representing a streak milestone - a reward checkpoint within a streak. Milestones allow rewards at incremental progress points (streak lengths), including the customer's achievement details.

Parameters

id

Unique identifier of the streak milestone.

streakId

Unique identifier of the streak this milestone belongs to.

type

The type of the streak milestone.

length

The required streak length to achieve this milestone.

rewards

List of rewards that are awarded to the customer when the milestone is reached.

repeatOnReset

Whether the milestone can be achieved again after the streak resets.

creationTime

The time the streak milestone was created.

achievement

Summary of the customer's achievements of the milestone.

Constructors

Link copied to clipboard
constructor(id: String, streakId: String, type: StreakMilestoneType, length: Int, rewards: List<ValueInUnits>, repeatOnReset: Boolean, creationTime: Calendar, achievement: StreakMilestoneAchievementSummary)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
val length: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard