1 package net.pterodactylus.rhynodge.filters.webpages.savoy;
3 import com.fasterxml.jackson.annotation.JsonProperty;
5 import java.time.LocalDateTime;
6 import java.util.Objects;
9 * Information about a performance and a link to buy a ticket.
11 public class Performance {
14 private final LocalDateTime time;
17 private final String type;
20 private final String link;
22 public Performance() {
23 this(null, null, null);
26 public Performance(LocalDateTime time, String type, String link) {
32 public LocalDateTime getTime() {
36 public String getType() {
40 public String getLink() {
45 public int hashCode() {
46 return Objects.hash(time, type, link);
50 public boolean equals(Object o) {
51 if (this == o) return true;
52 if (o == null || getClass() != o.getClass()) return false;
53 Performance that = (Performance) o;
54 return Objects.equals(time, that.time) && Objects.equals(type, that.type) && Objects.equals(link, that.link);