allExerciseFrequencies function

List<ExerciseFrequency> allExerciseFrequencies(
  1. GeneratorDetails? details
)

Returns the supported running exercise frequencies for the device represented by the given generator details.

Implementation

List<ExerciseFrequency> allExerciseFrequencies(GeneratorDetails? details) {
  return [
    ExerciseFrequency.weekly,
    ExerciseFrequency.biWeekly,
    if (supportsMonthlyExerciseFrequency(
      details?.modelNumber,
      details?.device.deviceHost,
    ))
      ExerciseFrequency.monthly,
  ];
}