1 | package com.example.rezevirajmasa.demo.dto;
|
---|
2 |
|
---|
3 | import com.example.rezevirajmasa.demo.model.Restaurant;
|
---|
4 |
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | public class RestaurantDTO {
|
---|
8 | private Long restaurantId;
|
---|
9 | private String name;
|
---|
10 | private String cuisineType;
|
---|
11 | private String address;
|
---|
12 | private String phone;
|
---|
13 | private String operatingHours;
|
---|
14 | private String website;
|
---|
15 | private String socialMediaLinks;
|
---|
16 | private Double rating;
|
---|
17 | private List<TableDTO> tablesList;
|
---|
18 |
|
---|
19 | public RestaurantDTO() {
|
---|
20 | }
|
---|
21 |
|
---|
22 | public RestaurantDTO(Long restaurantId, String name, String cuisineType, String address, String phone, String operatingHours, String website, String socialMediaLinks, Double rating, List<TableDTO> tablesList) {
|
---|
23 | this.restaurantId = restaurantId;
|
---|
24 | this.name = name;
|
---|
25 | this.cuisineType = cuisineType;
|
---|
26 | this.address = address;
|
---|
27 | this.phone = phone;
|
---|
28 | this.operatingHours = operatingHours;
|
---|
29 | this.website = website;
|
---|
30 | this.socialMediaLinks = socialMediaLinks;
|
---|
31 | this.rating = rating;
|
---|
32 | this.tablesList = tablesList;
|
---|
33 | }
|
---|
34 |
|
---|
35 | // public RestaurantDTO(Restaurant restaurant) {
|
---|
36 | // this.restaurantId = restaurant.getRestaurantId();
|
---|
37 | // this.name = restaurant.getName();
|
---|
38 | // this.cuisineType = restaurant.getCuisineType();
|
---|
39 | // this.address = restaurant.getAddress();
|
---|
40 | // this.phone = restaurant.getPhone();
|
---|
41 | // this.operatingHours = restaurant.getOperatingHours();
|
---|
42 | // this.website = restaurant.getWebsite();
|
---|
43 | // this.socialMediaLinks = restaurant.getSocialMediaLinks();
|
---|
44 | // this.rating = restaurant.getRating().doubleValue();
|
---|
45 | // this.tablesList = restaurant.getTablesList();
|
---|
46 | // }
|
---|
47 |
|
---|
48 | public Long getRestaurantId() {
|
---|
49 | return restaurantId;
|
---|
50 | }
|
---|
51 |
|
---|
52 | public void setRestaurantId(Long restaurantId) {
|
---|
53 | this.restaurantId = restaurantId;
|
---|
54 | }
|
---|
55 |
|
---|
56 | public String getName() {
|
---|
57 | return name;
|
---|
58 | }
|
---|
59 |
|
---|
60 | public void setName(String name) {
|
---|
61 | this.name = name;
|
---|
62 | }
|
---|
63 |
|
---|
64 | public String getCuisineType() {
|
---|
65 | return cuisineType;
|
---|
66 | }
|
---|
67 |
|
---|
68 | public void setCuisineType(String cuisineType) {
|
---|
69 | this.cuisineType = cuisineType;
|
---|
70 | }
|
---|
71 |
|
---|
72 | public String getAddress() {
|
---|
73 | return address;
|
---|
74 | }
|
---|
75 |
|
---|
76 | public void setAddress(String address) {
|
---|
77 | this.address = address;
|
---|
78 | }
|
---|
79 |
|
---|
80 | public String getPhone() {
|
---|
81 | return phone;
|
---|
82 | }
|
---|
83 |
|
---|
84 | public void setPhone(String phone) {
|
---|
85 | this.phone = phone;
|
---|
86 | }
|
---|
87 |
|
---|
88 | public String getOperatingHours() {
|
---|
89 | return operatingHours;
|
---|
90 | }
|
---|
91 |
|
---|
92 | public void setOperatingHours(String operatingHours) {
|
---|
93 | this.operatingHours = operatingHours;
|
---|
94 | }
|
---|
95 |
|
---|
96 | public String getWebsite() {
|
---|
97 | return website;
|
---|
98 | }
|
---|
99 |
|
---|
100 | public void setWebsite(String website) {
|
---|
101 | this.website = website;
|
---|
102 | }
|
---|
103 |
|
---|
104 | public String getSocialMediaLinks() {
|
---|
105 | return socialMediaLinks;
|
---|
106 | }
|
---|
107 |
|
---|
108 | public void setSocialMediaLinks(String socialMediaLinks) {
|
---|
109 | this.socialMediaLinks = socialMediaLinks;
|
---|
110 | }
|
---|
111 |
|
---|
112 | public Double getRating() {
|
---|
113 | return rating;
|
---|
114 | }
|
---|
115 |
|
---|
116 | public void setRating(Double rating) {
|
---|
117 | this.rating = rating;
|
---|
118 | }
|
---|
119 |
|
---|
120 | public List<TableDTO> getTablesList() {
|
---|
121 | return tablesList;
|
---|
122 | }
|
---|
123 |
|
---|
124 | public void setTablesList(List<TableDTO> tablesList) {
|
---|
125 | this.tablesList = tablesList;
|
---|
126 | }
|
---|
127 | }
|
---|