PeriodicActionStreakProgress

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

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.