View Javadoc
1   package org.oxerr.viagogo.model.response.inventory;
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.catalog.Event;
8   import org.oxerr.viagogo.model.response.catalog.Venue;
9   
10  import io.openapitools.jackson.dataformat.hal.HALLink;
11  import io.openapitools.jackson.dataformat.hal.annotation.EmbeddedResource;
12  import io.openapitools.jackson.dataformat.hal.annotation.Link;
13  
14  @io.openapitools.jackson.dataformat.hal.annotation.Resource
15  public class SellerEvent extends Event {
16  
17  	private static final long serialVersionUID = 2023021301L;
18  
19  	private List<Event> mergedEvents;
20  
21  	/**
22  	 * True if the event is a last minute sale event; otherwise, false.
23  	 */
24  	private Boolean lms;
25  
26  	/**
27  	 * Create listing for the currently authenticated user.
28  	 */
29  	@Link("sellerevent:createsellerlisting")
30  	private HALLink createSellerListingLink;
31  
32  	/**
33  	 * Event listings that belong to the currently authenticated user.
34  	 */
35  	@Link("sellerevent:sellerlistings")
36  	private HALLink sellerListingsLink;
37  
38  	@EmbeddedResource
39  	private Venue salesAggregates;
40  
41  	@Override
42  	public List<Event> getMergedEvents() {
43  		return mergedEvents;
44  	}
45  
46  	@Override
47  	public void setMergedEvents(List<Event> mergedEvents) {
48  		this.mergedEvents = mergedEvents;
49  	}
50  
51  	public Boolean getLms() {
52  		return lms;
53  	}
54  
55  	public void setLms(Boolean lms) {
56  		this.lms = lms;
57  	}
58  
59  	public HALLink getCreateSellerListingLink() {
60  		return createSellerListingLink;
61  	}
62  
63  	public void setCreateSellerListingLink(HALLink createSellerListingLink) {
64  		this.createSellerListingLink = createSellerListingLink;
65  	}
66  
67  	public HALLink getSellerListingsLink() {
68  		return sellerListingsLink;
69  	}
70  
71  	public void setSellerListingsLink(HALLink sellerListingsLink) {
72  		this.sellerListingsLink = sellerListingsLink;
73  	}
74  
75  	public Venue getSalesAggregates() {
76  		return salesAggregates;
77  	}
78  
79  	public void setSalesAggregates(Venue salesAggregates) {
80  		this.salesAggregates = salesAggregates;
81  	}
82  
83  	@Override
84  	public int hashCode() {
85  		return HashCodeBuilder.reflectionHashCode(this);
86  	}
87  
88  	@Override
89  	public boolean equals(Object obj) {
90  		if (this == obj) {
91  			return true;
92  		}
93  		if (!(obj instanceof SellerEvent)) {
94  			return false;
95  		}
96  		SellerEvent rhs = (SellerEvent) obj;
97  		return EqualsBuilder.reflectionEquals(this, rhs);
98  	}
99  
100 }