Class BookRoomDTO
java.lang.Object
de.gustavblass.fsu.fmi.roombooking.dto.FilterReservationsDTO
de.gustavblass.fsu.fmi.roombooking.dto.BookRoomDTO
Data-transfer object that represents a new
Reservation that shall be placed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Integerprivate @Nullable @NotNull ReservationTypeWhether this DTO represents a regularReservationor aSeatReservation.private @Nullable @NotNull String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegergetSeats()Warning! Do not use this method! It is meant for the Spring framework only.@Nullable ReservationTypegetType()Warning! Do not use this method! It is meant for the Spring framework only.@Nullable StringgetUse()Warning! Do not use this method! It is meant for the Spring framework only.seats()voidUpdates the intended use.@NonNull Optional<ReservationType> type()Methods inherited from class FilterReservationsDTO
date, from, getDate, getFrom, getRoom, getTo, isEmpty, onlyRoomIsSet, roomNumber, setDate, setFrom, setRoom, setTo, to
-
Field Details
-
use
-
type
Whether this DTO represents a regularReservationor aSeatReservation. -
seats
TheSeatReservation.count. If set, thisBookRoomDTOdoes not necessarily represent aSeatReservation. This seat count must only be taken into account if thetypeisReservationType.SEAT_RESERVATION. Otherwise, this seat count must be ignored.
-
-
Constructor Details
-
BookRoomDTO
public BookRoomDTO()
-
-
Method Details
-
setUse
Updates the intended use.- Parameters:
intendedUse- The new intended use Will not be set if it is blank.
-
getUse
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
getType
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
getSeats
Warning! Do not use this method! It is meant for the Spring framework only.- See Also:
-
intendedUse
- Returns:
- The intended use, if specified.
-
type
- Returns:
- The
type, if specified.
-
seats
- Returns:
- The seat count, if specified.
-