Package de.xima.fc.appointment
Class AppointmentFreeSlot
java.lang.Object
de.xima.fc.appointment.AppointmentFreeSlot
- All Implemented Interfaces:
IAppointmentFreeSlot
,Serializable
POJO implementation of a
IAppointmentFreeSlot
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAppointmentFreeSlot
(LocalTime startTime, LocalDateTime endDateTime, long capacity, String id) Creates a newIAppointmentFreeSlot
POJO with the given data. -
Method Summary
-
Constructor Details
-
AppointmentFreeSlot
public AppointmentFreeSlot(LocalTime startTime, LocalDateTime endDateTime, long capacity, String id) Creates a newIAppointmentFreeSlot
POJO with the given data.- Parameters:
startTime
- Start time of this slot.endDateTime
- End date time of this slot. May be on a different day.capacity
- Capacity of the slot.id
- ID of the slot.
-
-
Method Details
-
getCapacity
public long getCapacity()- Specified by:
getCapacity
in interfaceIAppointmentFreeSlot
- Returns:
- How many participants can book this slot at the same time.
-
getEndTime
- Specified by:
getEndTime
in interfaceIAppointmentFreeSlot
- Returns:
- The ending point of this slot. Please note that this may be on a different (later) day than the start time.
-
getId
- Specified by:
getId
in interfaceIAppointmentFreeSlot
- Returns:
- The ID of this slot. When booking an appointment for this slot, you must send this ID.
-
getStartTime
- Specified by:
getStartTime
in interfaceIAppointmentFreeSlot
- Returns:
- The starting point of this slot. The date is given by the
IAppointmentAvailableDate.getDate()
.
-
toString
-