View Javadoc
1   package org.oxerr.seatgeek.client.model.response;
2   
3   import org.apache.commons.lang3.builder.EqualsBuilder;
4   import org.apache.commons.lang3.builder.HashCodeBuilder;
5   import org.oxerr.seatgeek.client.model.request.CreateListingRequest;
6   
7   public class Listing extends CreateListingRequest {
8   
9   	private static final long serialVersionUID = 20230315L;
10  
11  	/**
12  	 * An identifier for this listing that is unique to your account.
13  	 */
14  	private String ticketId;
15  
16  	private Long eventId;
17  
18  	public String getTicketId() {
19  		return ticketId;
20  	}
21  
22  	public void setTicketId(String ticketId) {
23  		this.ticketId = ticketId;
24  	}
25  
26  	public Long getEventId() {
27  		return eventId;
28  	}
29  
30  	public void setEventId(Long eventId) {
31  		this.eventId = eventId;
32  	}
33  
34  	@Override
35  	public int hashCode() {
36  		return HashCodeBuilder.reflectionHashCode(this);
37  	}
38  
39  	@Override
40  	public boolean equals(Object obj) {
41  		if (obj == null) {
42  			return false;
43  		}
44  		if (obj == this) {
45  			return true;
46  		}
47  		if (obj.getClass() != getClass()) {
48  			return false;
49  		}
50  		Listing rhs = (Listing) obj;
51  		return EqualsBuilder.reflectionEquals(this, rhs);
52  	}
53  
54  	@Override
55  	public String toString() {
56  		return this.ticketId;
57  	}
58  
59  }