ProgramData

class ProgramData(var dailyGoal: Int? = null, var dailyStepsGoal: Int? = null, var goalsNeededForMonth: Int? = null, var dailyVisitsGoal: Int? = null)

ProgramData — goal configuration attached to a ProgramEntitlement.

Holds the per-member targets that drive a program's progress UI (daily goals and the monthly goal count). Which fields are populated depends on the program type; unused fields are null.

Constructors

Link copied to clipboard
constructor(dailyGoal: Int? = null, dailyStepsGoal: Int? = null, goalsNeededForMonth: Int? = null, dailyVisitsGoal: Int? = null)

Properties

Link copied to clipboard

Generic daily goal value for the program; null if not applicable.

Link copied to clipboard

Daily step target (SmartWalking); null if not applicable.

Link copied to clipboard

Daily visit target (GymVisits); null if not applicable.

Link copied to clipboard

Number of daily goals that must be met in the month to count as a successful month; null if not applicable.

Functions

Link copied to clipboard
open override fun toString(): String