113 lines
3.3 KiB
Java
113 lines
3.3 KiB
Java
package appointmentplanner;
|
|
|
|
import java.time.Duration;
|
|
import java.time.Instant;
|
|
import java.time.LocalTime;
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
import java.util.function.Predicate;
|
|
|
|
import appointmentplanner.api.Appointment;
|
|
import appointmentplanner.api.AppointmentData;
|
|
import appointmentplanner.api.AppointmentRequest;
|
|
import appointmentplanner.api.LocalDay;
|
|
import appointmentplanner.api.LocalDayPlan;
|
|
import appointmentplanner.api.TimePreference;
|
|
import appointmentplanner.api.TimeSlot;
|
|
|
|
public class LocalDayPlanImpl implements LocalDayPlan {
|
|
|
|
public LocalDayPlanImpl(LocalDay day, Instant start, Instant end) {
|
|
this.day = day;
|
|
this.start = start;
|
|
this.end = end;
|
|
}
|
|
|
|
private LocalDay day;
|
|
private Instant start;
|
|
private Instant end;
|
|
|
|
@Override
|
|
public LocalDay day() {
|
|
return day;
|
|
}
|
|
|
|
@Override
|
|
public Instant startOfDay() {
|
|
return start;
|
|
}
|
|
|
|
@Override
|
|
public Instant endOfDay() {
|
|
return end;
|
|
}
|
|
|
|
@Override
|
|
public Optional<Appointment> addAppointment(AppointmentData appointmentData, LocalTime start,
|
|
TimePreference fallback) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'addAppointment'");
|
|
}
|
|
|
|
@Override
|
|
public Optional<Appointment> addAppointment(AppointmentData appointmentData, LocalTime startTime) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'addAppointment'");
|
|
}
|
|
|
|
@Override
|
|
public Optional<Appointment> addAppointment(AppointmentData appointmentData, TimePreference preference) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'addAppointment'");
|
|
}
|
|
|
|
@Override
|
|
public AppointmentRequest removeAppointment(Appointment appointment) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'removeAppointment'");
|
|
}
|
|
|
|
@Override
|
|
public List<AppointmentRequest> removeAppointments(Predicate<Appointment> filter) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'removeAppointments'");
|
|
}
|
|
|
|
@Override
|
|
public List<Appointment> appointments() {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'appointments'");
|
|
}
|
|
|
|
@Override
|
|
public List<TimeSlot> findMatchingFreeSlotsOfDuration(Duration duration, List<LocalDayPlan> plans) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'findMatchingFreeSlotsOfDuration'");
|
|
}
|
|
|
|
@Override
|
|
public List<TimeSlot> findGapsFitting(Duration duration) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'findGapsFitting'");
|
|
}
|
|
|
|
@Override
|
|
public List<Appointment> findAppointments(Predicate<Appointment> filter) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'findAppointments'");
|
|
}
|
|
|
|
@Override
|
|
public boolean contains(Appointment appointment) {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'contains'");
|
|
}
|
|
|
|
@Override
|
|
public int nrOfAppointments() {
|
|
// TODO Auto-generated method stub
|
|
throw new UnsupportedOperationException("Unimplemented method 'nrOfAppointments'");
|
|
}
|
|
|
|
}
|