public SetSplitDurationCommand(WorkoutDuration workoutDuration, int duration) { List <uint> data = new() { (uint)workoutDuration }; data.AddRange(BitConverter.GetBytes(duration).Select(b => (uint)b).Reverse()); Data = data; } }
public WorkoutDetails(WorkoutDuration workoutDuration, bool requireRest, bool requireSplits) { WorkoutDuration = workoutDuration; RequireRest = requireRest; RequireSplits = requireSplits; }