Package de.hirola.sportslibrary.util
Class RunningPlanTemplateUnit
- java.lang.Object
-
- de.hirola.sportslibrary.util.RunningPlanTemplateUnit
-
public class RunningPlanTemplateUnit extends Object
Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Mapping object for RunningPlanUnit to import from JSON.- Since:
- 1.1.1
- Author:
- Michael Schmidt (Hirola)
-
-
Constructor Summary
Constructors Constructor Description RunningPlanTemplateUnit()Default constructor for import from json.RunningPlanTemplateUnit(int week, int day, int duration, String[] units)Create a template object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDay()Get day of unit.intgetDuration()Get duration of unit in minutes.String[]getUnits()Get a List of movements with durations.intgetWeek()Get week of unit.
-
-
-
Constructor Detail
-
RunningPlanTemplateUnit
public RunningPlanTemplateUnit()
Default constructor for import from json.
-
RunningPlanTemplateUnit
public RunningPlanTemplateUnit(int week, int day, int duration, String[] units)Create a template object.- Parameters:
week- of unitday- of unitduration- of unitunits- of unit
-
-
Method Detail
-
getWeek
public int getWeek()
Get week of unit.- Returns:
- The week of unit, starting by 1
-
getDay
public int getDay()
Get day of unit.- Returns:
- The day of unit, starting by 1 (monday)
-
getDuration
public int getDuration()
Get duration of unit in minutes.- Returns:
- The week of unit, starting by 1
-
getUnits
public String[] getUnits()
Get a List of movements with durations. Example: Format "L", "1" means movement type with key L and a duration of 1 minute.- Returns:
- The week of unit, starting by 1
-
-