source: backend/GlobeGuru-backend/src/main/java/Option.java@ d4d8f61

Last change on this file since d4d8f61 was d4d8f61, checked in by Kikac324 <kristijanzafirovski26@…>, 7 months ago

init

  • Property mode set to 100644
File size: 1.5 KB
Line 
1public class Option {
2 private String hotelName;
3 private String country;
4 private String price;
5 private String link; // Ensure to add a field for link
6 private String imgSrc;
7 // Constructor
8 public Option(){}
9
10 public boolean isEmpty(){
11 return (hotelName == null || country == null || price == null || link == null || imgSrc == null);
12 }
13 // Getters and setters (ensure you have these methods)
14 public String getHotelName() {
15 return hotelName;
16 }
17
18 public void setHotelName(String hotelName) {
19 this.hotelName = hotelName;
20 }
21
22 public String getCountry() {
23 return country;
24 }
25
26 public void setCountry(String country) {
27 this.country = country;
28 }
29
30 public String getPrice() {
31 return price;
32 }
33
34 public void setPrice(String price) {
35 this.price = price;
36 }
37
38 public String getLink() {
39 return link;
40 }
41
42 public void setLink(String link) {
43 this.link = link;
44 }
45
46 public void setImgSrc(String imgSrc) {
47 this.imgSrc = imgSrc;
48 }
49
50 public String getImgSrc() {
51 return imgSrc;
52 }
53
54 // toString method (for debugging purposes)
55 @Override
56 public String toString() {
57 return "Option{" +
58 "hotelName='" + hotelName + '\'' +
59 ", country='" + country + '\'' +
60 ", price='" + price + '\'' +
61 ", link='" + link + '\'' +
62 '}';
63 }
64}
Note: See TracBrowser for help on using the repository browser.