Ruggero1912 / TrainerApp

Trainer-side app of TrainAround
https://paciosoft.com/projects/trainaround
1 stars 0 forks source link

classify the athletes by their training status #17

Closed Ruggero1912 closed 2 years ago

Ruggero1912 commented 2 years ago

According to their training status classify the athletes and show the status as a different color in the ListView (for example).

Define training status.

Ruggero1912 commented 2 years ago

Implemented those training Status:

    public enum TRAINING_STATUS{
        OVER_TRAINING,
        GOOD,
        LOW,
        REST;

        public static TRAINING_STATUS DEFAULT = REST;

        public static Double OVER_TRAINING_HR_THRESHOLD = 150.0;
        public static Double GOOD_TRAINING_HR_THRESHOLD = 100.0;
        public static Double LOW_TRAINING_HR_THRESHOLD = 80.0;
    }

The current training status is determined according to the heartrate thresholds