Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UserSessionBase<UserType>

Type parameters

Hierarchy

Index

Constructors

constructor

Accessors

accessToken

  • get accessToken(): string

keepAlive

  • get keepAlive(): boolean
  • set keepAlive(value: boolean): void

onAccessTokenChangeEvent

onRefreshTokenChangeEvent

refreshToken

  • get refreshToken(): null | string

sessionHandler

user

  • get user(): UserType

Methods

close

  • close(): void

eagerActiveFacility

getCardioExercise

getCardioExerciseMuscle

getCardioExerciseVariant

getCardioExercises

getCardioMachine

  • getCardioMachine(params: { id: number }): Promise<CardioMachine>

getCardioMachines

getExerciseAlias

  • getExerciseAlias(params: { id: number }): Promise<ExerciseAlias>

getExerciseAliases

getExerciseOrdinalSet

getExerciseOrdinalSetAssignment

getExerciseOrdinalSets

getFacilities

  • getFacilities(options?: { address?: string; ascending?: boolean; city?: string; country?: string; limit?: number; name?: string; offset?: number; phone?: string; postcode?: string; sort?: FacilitySorting; state?: string }): Promise<Facilities>
  • Parameters

    • options: { address?: string; ascending?: boolean; city?: string; country?: string; limit?: number; name?: string; offset?: number; phone?: string; postcode?: string; sort?: FacilitySorting; state?: string } = {}
      • Optional address?: string
      • Optional ascending?: boolean
      • Optional city?: string
      • Optional country?: string
      • Optional limit?: number
      • Optional name?: string
      • Optional offset?: number
      • Optional phone?: string
      • Optional postcode?: string
      • Optional sort?: FacilitySorting
      • Optional state?: string

    Returns Promise<Facilities>

getFacility

getStrengthExercise

getStrengthExerciseMuscle

getStrengthExerciseVariant

getStrengthExercises

getStrengthMachine

getStrengthMachines

  • getStrengthMachines(options?: { ascending?: boolean; limit?: number; line?: string; name?: string; offset?: number; sort?: StrengthMachineSorting; variant?: string }): Promise<StrengthMachines>
  • Parameters

    • options: { ascending?: boolean; limit?: number; line?: string; name?: string; offset?: number; sort?: StrengthMachineSorting; variant?: string } = {}
      • Optional ascending?: boolean
      • Optional limit?: number
      • Optional line?: string
      • Optional name?: string
      • Optional offset?: number
      • Optional sort?: StrengthMachineSorting
      • Optional variant?: string

    Returns Promise<StrengthMachines>

getStretchExercise

getStretchExerciseMuscle

getStretchExerciseVariant

getStretchExercises

  • getStretchExercises(options?: { ascending?: boolean; imageUri?: string; instructionalVideoUri?: string; limit?: number; offset?: number; sort?: StretchExerciseSorting }): Promise<StretchExercises>
  • Parameters

    • options: { ascending?: boolean; imageUri?: string; instructionalVideoUri?: string; limit?: number; offset?: number; sort?: StretchExerciseSorting } = {}
      • Optional ascending?: boolean
      • Optional imageUri?: string
      • Optional instructionalVideoUri?: string
      • Optional limit?: number
      • Optional offset?: number
      • Optional sort?: StretchExerciseSorting

    Returns Promise<StretchExercises>

logout

  • logout(): Promise<void>