1 package org.oxerr.viagogo.model.response.catalog;
2
3 import java.util.List;
4
5 import org.apache.commons.lang3.builder.EqualsBuilder;
6 import org.apache.commons.lang3.builder.HashCodeBuilder;
7 import org.oxerr.viagogo.model.response.Resource;
8
9 import io.openapitools.jackson.dataformat.hal.annotation.EmbeddedResource;
10
11
12
13
14
15
16 @io.openapitools.jackson.dataformat.hal.annotation.Resource
17 public class EmbeddedVenue extends Resource {
18
19 private static final long serialVersionUID = 2023021301L;
20
21
22
23
24 private Long id;
25
26
27
28
29 private String name;
30
31
32
33
34 private String city;
35
36
37
38
39 private String stateProvince;
40
41
42
43
44 private String postalCode;
45
46
47
48
49 private Double latitude;
50
51
52
53
54 private Double longitude;
55
56
57
58
59 @EmbeddedResource
60 private Country country;
61
62
63
64
65 @EmbeddedResource
66 private List<ExternalMapping> externalMappings;
67
68 public EmbeddedVenue() {
69 }
70
71 public EmbeddedVenue(String name, String city) {
72 this.name = name;
73 this.city = city;
74 }
75
76 public Long getId() {
77 return id;
78 }
79
80 public void setId(Long id) {
81 this.id = id;
82 }
83
84 public String getName() {
85 return name;
86 }
87
88 public void setName(String name) {
89 this.name = name;
90 }
91
92 public String getCity() {
93 return city;
94 }
95
96 public void setCity(String city) {
97 this.city = city;
98 }
99
100 public String getStateProvince() {
101 return stateProvince;
102 }
103
104 public void setStateProvince(String stateProvince) {
105 this.stateProvince = stateProvince;
106 }
107
108 public String getPostalCode() {
109 return postalCode;
110 }
111
112 public void setPostalCode(String postalCode) {
113 this.postalCode = postalCode;
114 }
115
116 public Double getLatitude() {
117 return latitude;
118 }
119
120 public void setLatitude(Double latitude) {
121 this.latitude = latitude;
122 }
123
124 public Double getLongitude() {
125 return longitude;
126 }
127
128 public void setLongitude(Double longitude) {
129 this.longitude = longitude;
130 }
131
132 public Country getCountry() {
133 return country;
134 }
135
136 public void setCountry(Country country) {
137 this.country = country;
138 }
139
140 public List<ExternalMapping> getExternalMappings() {
141 return externalMappings;
142 }
143
144 public void setExternalMappings(List<ExternalMapping> externalMappings) {
145 this.externalMappings = externalMappings;
146 }
147
148 @Override
149 public int hashCode() {
150 return HashCodeBuilder.reflectionHashCode(this);
151 }
152
153 @Override
154 public boolean equals(Object obj) {
155 if (this == obj) {
156 return true;
157 }
158 if (!(obj instanceof EmbeddedVenue)) {
159 return false;
160 }
161 EmbeddedVenue rhs = (EmbeddedVenue) obj;
162 return EqualsBuilder.reflectionEquals(this, rhs);
163 }
164
165 }