public class AppointmentFreeSlot extends Object implements IAppointmentFreeSlot
IAppointmentFreeSlot
.Constructor and Description |
---|
AppointmentFreeSlot(LocalTime startTime,
LocalDateTime endDateTime,
long capacity,
String id)
Creates a new
IAppointmentFreeSlot POJO with the given data. |
Modifier and Type | Method and Description |
---|---|
long |
getCapacity() |
LocalDateTime |
getEndTime() |
String |
getId() |
LocalTime |
getStartTime() |
String |
toString() |
public AppointmentFreeSlot(LocalTime startTime, LocalDateTime endDateTime, long capacity, String id)
IAppointmentFreeSlot
POJO with the given data.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.public long getCapacity()
getCapacity
in interface IAppointmentFreeSlot
public LocalDateTime getEndTime()
getEndTime
in interface IAppointmentFreeSlot
public String getId()
getId
in interface IAppointmentFreeSlot
public LocalTime getStartTime()
getStartTime
in interface IAppointmentFreeSlot
IAppointmentAvailableDate.getDate()
.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.