feat: appointment list in ldp
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package appointmentplanner;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
import appointmentplanner.api.Appointment;
|
||||
import appointmentplanner.api.AppointmentRequest;
|
||||
|
||||
public class AppointmentImpl implements Appointment {
|
||||
|
||||
private Instant start;
|
||||
private Instant stop;
|
||||
|
||||
private AppointmentRequest request;
|
||||
|
||||
@Override
|
||||
public Instant start() {
|
||||
return start;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant end() {
|
||||
return stop;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AppointmentRequest request() {
|
||||
return request;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -14,9 +14,13 @@ import appointmentplanner.api.LocalDay;
|
||||
import appointmentplanner.api.LocalDayPlan;
|
||||
import appointmentplanner.api.TimePreference;
|
||||
import appointmentplanner.api.TimeSlot;
|
||||
import appointmentplanner.customlist.CustomLinkedListImpl;
|
||||
import appointmentplanner.customlist.api.CustomLinkedList;
|
||||
|
||||
public class LocalDayPlanImpl implements LocalDayPlan {
|
||||
|
||||
private CustomLinkedList<AppointmentImpl> timeline = new CustomLinkedListImpl<>();
|
||||
|
||||
public LocalDayPlanImpl(LocalDay day, Instant start, Instant end) {
|
||||
this.day = day;
|
||||
this.start = start;
|
||||
|
||||
Reference in New Issue
Block a user