ApplicationSettings

Application Settings feature — retrieve app-level settings and membership status.

This interface provides operations to:

  • Fetch ActiveFit application configuration values.

  • Check whether the member’s membership is active.

  • Generate invitation messages to invite colleagues.

  • Read and update the member’s mobile setup (onboarding) state.

  • List the gender options the member’s organization offers.

Platform & threading

  • All functions are suspend and must be called from a coroutine.

  • Errors surface as Throwable and should be handled at call sites.

Typical flows

Functions

Link copied to clipboard

Generates an invitation message for inviting a colleague.

Link copied to clipboard
abstract suspend fun getActiveFitSettings(): ActiveFitConfig

Retrieves the ActiveFit application settings.

Link copied to clipboard
abstract suspend fun getGenderProfiles(): GenderProfileList

Retrieves the gender options a member of the caller's organization may pick.

Link copied to clipboard
abstract suspend fun getMobileSetup(): MobileSetup

Retrieves the member’s mobile setup (onboarding) state from the backend.

Link copied to clipboard
abstract suspend fun isMembershipActive(): AFResult

Checks if the user’s membership is active.

Link copied to clipboard
abstract suspend fun updateMobileSetup(timestampInSeconds: Long, gymVisitMode: GymVisitMode, isEulaAccepted: Boolean, timeZoneOffset: String?, isSetupFinished: Boolean): AFResult

Updates the member’s mobile setup (onboarding) state on the backend.