Package de.xima.fc.appointment
Class AppointmentFreeSlot
- java.lang.Object
-
- de.xima.fc.appointment.AppointmentFreeSlot
-
- All Implemented Interfaces:
IAppointmentFreeSlot
,Serializable
public class AppointmentFreeSlot extends Object implements IAppointmentFreeSlot
POJO implementation of aIAppointmentFreeSlot
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppointmentFreeSlot(LocalTime startTime, LocalDateTime endDateTime, long capacity, String id)
Creates a newIAppointmentFreeSlot
POJO with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCapacity()
LocalDateTime
getEndTime()
String
getId()
LocalTime
getStartTime()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
getCapacity
public long getCapacity()
- Specified by:
getCapacity
in interfaceIAppointmentFreeSlot
- Returns:
- How many participants can book this slot at the same time.
-
getEndTime
public LocalDateTime 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
public String 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
public LocalTime getStartTime()
- Specified by:
getStartTime
in interfaceIAppointmentFreeSlot
- Returns:
- The starting point of this slot. The date is given by the
IAppointmentAvailableDate.getDate()
.
-
-