public SetSplitDurationCommand(WorkoutDuration workoutDuration, int duration)
        {
            List <uint> data = new() { (uint)workoutDuration };

            data.AddRange(BitConverter.GetBytes(duration).Select(b => (uint)b).Reverse());

            Data = data;
        }
    }
Esempio n. 2
0
 public WorkoutDetails(WorkoutDuration workoutDuration, bool requireRest, bool requireSplits)
 {
     WorkoutDuration = workoutDuration;
     RequireRest     = requireRest;
     RequireSplits   = requireSplits;
 }