Skip to content

GymExerciseCompletedPayload

What gymExerciseCompleted gets: the payload a handler receives.

type GymExerciseCompletedPayload = Readonly<{
interaction: Interaction; player: PlayerSnapshot; elapsedMs: number; gymIntensity: 0 | 1 | 2;
}>;
Field Type Description
interaction Interaction The gym use.
player PlayerSnapshot The player.
elapsedMs number How long they exercised, in milliseconds.
gymIntensity 0 | 1 | 2 The intensity at the end.