[e6c2521] | 1 | package com.tourMate.dto;
|
---|
| 2 | import com.tourMate.entities.HotelRoom;
|
---|
| 3 | import com.tourMate.entities.User;
|
---|
| 4 | import org.springframework.format.annotation.DateTimeFormat;
|
---|
| 5 |
|
---|
| 6 | import java.util.Date;
|
---|
| 7 |
|
---|
| 8 | public class HotelReservationUserDto {
|
---|
| 9 | private User user;
|
---|
| 10 | private HotelRoom hotelRoom;
|
---|
| 11 | private Long hotelId;
|
---|
| 12 | @DateTimeFormat(pattern = "dd.MM.yyyy")
|
---|
| 13 | private Date dateFrom;
|
---|
| 14 | @DateTimeFormat(pattern = "dd.MM.yyyy")
|
---|
| 15 | private Date dateTo;
|
---|
| 16 | private Integer numBeds;
|
---|
| 17 | private String hotelName;
|
---|
| 18 | private String hotelLocation;
|
---|
| 19 | private String hotelAddress;
|
---|
| 20 | private Boolean reviewed;
|
---|
| 21 |
|
---|
| 22 | public HotelReservationUserDto(User user, HotelRoom hotelRoom, Date dateFrom, Date dateTo, Integer numBeds, String hotelName, String hotelLocation, String hotelAddress, Long hotelId, Boolean reviewed) {
|
---|
| 23 | this.user = user;
|
---|
| 24 | this.hotelRoom = hotelRoom;
|
---|
| 25 | this.dateFrom = dateFrom;
|
---|
| 26 | this.dateTo = dateTo;
|
---|
| 27 | this.numBeds = numBeds;
|
---|
| 28 | this.hotelLocation = hotelLocation;
|
---|
| 29 | this.hotelName = hotelName;
|
---|
| 30 | this.hotelAddress = hotelAddress;
|
---|
| 31 | this.hotelId = hotelId;
|
---|
| 32 | this.reviewed = reviewed;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | public User getUser() {
|
---|
| 36 | return user;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | public HotelRoom getHotelRoom() {
|
---|
| 40 | return hotelRoom;
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | public Date getDateFrom() {
|
---|
| 44 | return dateFrom;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | public Date getDateTo() {
|
---|
| 48 | return dateTo;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | public Integer getNumBeds() {
|
---|
| 52 | return numBeds;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | public String getHotelName() {
|
---|
| 56 | return hotelName;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | public String getHotelLocation() {
|
---|
| 60 | return hotelLocation;
|
---|
| 61 | }
|
---|
| 62 | public String getHotelAddress() {
|
---|
| 63 | return hotelAddress;
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | public Long getHotelId() {
|
---|
| 67 | return hotelId;
|
---|
| 68 | }
|
---|
| 69 |
|
---|
| 70 | public Boolean getReviewed() {
|
---|
| 71 | return reviewed;
|
---|
| 72 | }
|
---|
| 73 | }
|
---|