PeriodicActionStreakProgress

data class PeriodicActionStreakProgress(val currentStreakLength: Int, val longestStreakLength: Int, val nextMilestones: List<StreakMilestoneReference>, val periodProgress: Int, val thresholdMet: Boolean, val periodEndTime: Calendar?) : StreakProgress

Data class representing the customer's progress on a PeriodicActionStreak.

Parameters

currentStreakLength

Number of qualifying actions recorded in the current run.

longestStreakLength

Highest currentStreakLength ever achieved by this customer. Retained across resets.

nextMilestones

The upcoming milestones closest to the customer's current progress.

periodProgress

Tracks the number of qualifying actions completed within the current period.

thresholdMet

Indicates whether the customer has completed the required number of actions for the current period.

periodEndTime

The end of the current period window (e.g., the end of the current day for a daily streak). The customer must meet the threshold before this time to advance the streak.

Constructors

Link copied to clipboard
constructor(currentStreakLength: Int, longestStreakLength: Int, nextMilestones: List<StreakMilestoneReference>, periodProgress: Int, thresholdMet: Boolean, periodEndTime: Calendar?)

Properties

Link copied to clipboard
open override val currentStreakLength: Int
Link copied to clipboard
open override val longestStreakLength: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard