Add AltitudeSource enum and task model, update Competition with altitude source field
- Introduced `AltitudeSource` enum to specify altitude data sources (GPS, Barometric). - Added `Task` class with task number field and fluent accessor annotations using Lombok. - Updated `Competition` class to include the `altitudeSource` field.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package dev.coph.flightscore.backend.competition;
|
||||
|
||||
public enum AltitudeSource {
|
||||
GPS,
|
||||
BAROMETRIC
|
||||
}
|
||||
@@ -25,6 +25,7 @@ public class Competition {
|
||||
private Locale country;
|
||||
private String location;
|
||||
private String website;
|
||||
private AltitudeSource altitudeSource;
|
||||
private HashMap<String, Coordinate> commonLaunchPoints;
|
||||
private HashSet<CompetitionContact> contacts;
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package dev.coph.flightscore.backend.task;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@Getter
|
||||
@Accessors(fluent = true)
|
||||
public class Task {
|
||||
private int taskNumber;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user