View Javadoc
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   * An venue on the viagogo platform.
13   *
14   * <a href="https://developer.viagogo.net/api-reference/catalog#tag/Resource_Venue">Venue</a>
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  	 * The venue identifier.
23  	 */
24  	private Long id;
25  
26  	/**
27  	 * The name of the venue.
28  	 */
29  	private String name;
30  
31  	/**
32  	 * The name of the city where the venue is located.
33  	 */
34  	private String city;
35  
36  	/**
37  	 * The name of the State or Province where the venue is located.
38  	 */
39  	private String stateProvince;
40  
41  	/**
42  	 * The postal code for the venue.
43  	 */
44  	private String postalCode;
45  
46  	/**
47  	 * The latitude for the venue.
48  	 */
49  	private Double latitude;
50  
51  	/**
52  	 * The longitude for the venue.
53  	 */
54  	private Double longitude;
55  
56  	/**
57  	 * The Country where the venue is located.
58  	 */
59  	@EmbeddedResource
60  	private Country country;
61  
62  	/**
63  	 * The external mappings for this venue.
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 (obj == null) {
156 			return false;
157 		}
158 		if (obj == this) {
159 			return true;
160 		}
161 		if (obj.getClass() != getClass()) {
162 			return false;
163 		}
164 		EmbeddedVenue rhs = (EmbeddedVenue) obj;
165 		return EqualsBuilder.reflectionEquals(this, rhs);
166 	}
167 
168 }