View Javadoc
1   package org.oxerr.viagogo.model.request.inventory;
2   
3   import java.io.Serializable;
4   
5   import org.apache.commons.lang3.builder.EqualsBuilder;
6   import org.apache.commons.lang3.builder.HashCodeBuilder;
7   
8   public class CreateSellerEventRequest implements Serializable {
9   
10  	private static final long serialVersionUID = 2023021301L;
11  
12  	/**
13  	 * The event information.
14  	 */
15  	private EventRequest event;
16  
17  	/**
18  	 * The venue where the event will take place.
19  	 */
20  	private VenueRequest venue;
21  
22  	/**
23  	 * The country where the event will take place.
24  	 */
25  	private CountryRequest country;
26  
27  	public CreateSellerEventRequest() {
28  	}
29  
30  	public CreateSellerEventRequest(
31  		EventRequest event,
32  		VenueRequest venue,
33  		CountryRequest country
34  	) {
35  		this.event = event;
36  		this.venue = venue;
37  		this.country = country;
38  	}
39  
40  	public EventRequest getEvent() {
41  		return event;
42  	}
43  
44  	public void setEvent(EventRequest event) {
45  		this.event = event;
46  	}
47  
48  	public VenueRequest getVenue() {
49  		return venue;
50  	}
51  
52  	public void setVenue(VenueRequest venue) {
53  		this.venue = venue;
54  	}
55  
56  	public CountryRequest getCountry() {
57  		return country;
58  	}
59  
60  	public void setCountry(CountryRequest country) {
61  		this.country = country;
62  	}
63  
64  	@Override
65  	public int hashCode() {
66  		return HashCodeBuilder.reflectionHashCode(this);
67  	}
68  
69  	@Override
70  	public boolean equals(Object obj) {
71  		if (this == obj) {
72  			return true;
73  		}
74  		if (!(obj instanceof CreateSellerEventRequest)) {
75  			return false;
76  		}
77  		CreateSellerEventRequest rhs = (CreateSellerEventRequest) obj;
78  		return EqualsBuilder.reflectionEquals(this, rhs);
79  	}
80  
81  }