Skip to content

Commit

Permalink
refactor: add back time preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonajo committed Sep 14, 2023
1 parent 40153f2 commit 4b95c8e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>io.github.fontysvenlo.alda</groupId>
<artifactId>appointmentplanner_api</artifactId>
<version>1.1</version>
<version>1.2</version>
<packaging>jar</packaging>
<name>ALDA AppointmentPlanner API</name>
<properties>
Expand Down
13 changes: 12 additions & 1 deletion src/main/java/appointmentplanner/api/Priority.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@
* @author Pieter van den Hombergh {@code [email protected]}
*/
public enum Priority {
LOW, MEDIUM, HIGH
/**
* Low priority
*/
LOW,
/**
* Medium priority
*/
MEDIUM,
/**
* High priority
*/
HIGH
}
10 changes: 9 additions & 1 deletion src/main/java/appointmentplanner/api/TimePreference.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@ public enum TimePreference {
*
* In case no time preference is specified, this is the default.
*/
UNSPECIFIED
UNSPECIFIED,
/**
* Latest before a given time (the whole appointment should fit before the given time).
*/
LATEST_BEFORE,
/**
* Earliest after a given time (the appointment can also start at the given time).
*/
EARLIEST_AFTER;
}
3 changes: 3 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* The main appointment planner module
*/
module appointmenplanner.api {
exports appointmentplanner.api;
}

0 comments on commit 4b95c8e

Please sign in to comment.