ProgramEntitlement

class ProgramEntitlement(var name: String? = null, var activated: Boolean = false, var programData: ProgramData? = null)

ProgramEntitlement — represents a high-level program/module available to the member.

A program is a main feature area (e.g., SmartWalking, GymVisits, Fit@Home). A member must have the program activated in order to use its corresponding SDK modules.

Retrieved via com.advantahealth.api.programs.Programs.getAvailablePrograms. Program activation is controlled by tenant/admin configuration.

Constructors

Link copied to clipboard
constructor(name: String? = null, activated: Boolean = false, programData: ProgramData? = null)

Properties

Link copied to clipboard

true when the program is enabled for the logged-in member. Defaults to false.

Link copied to clipboard
var name: String?

Program name (e.g., "SmartWalking", "GymVisits"); null if not reported.

Link copied to clipboard

Program-specific goal configuration as ProgramData; null when the program carries no goal data.

Functions

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