impl: ap factory
This commit is contained in:
@@ -28,19 +28,18 @@ public class APFactory implements AbstractAPFactory {
|
||||
|
||||
@Override
|
||||
public LocalDayPlan createLocalDayPlan(LocalDay day, Instant start, Instant end) {
|
||||
//TODO Return an instance of your class that implements LocalDayPlan
|
||||
// TODO Return an instance of your class that implements LocalDayPlan
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AppointmentData createAppointmentData(String description, Duration duration) {
|
||||
//TODO Return an instance of your class that implements AppointmentData
|
||||
return null;
|
||||
return new AppointmentDataImpl(duration, description);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AppointmentRequest createAppointmentRequest(AppointmentData appData, LocalTime prefStart, TimePreference fallBack) {
|
||||
//TODO Return an instance of your class that implements AppointmentRequest
|
||||
return null;
|
||||
public AppointmentRequest createAppointmentRequest(AppointmentData appData, LocalTime prefStart,
|
||||
TimePreference fallBack) {
|
||||
return new AppointmentRequestImpl(appData, prefStart, fallBack);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user