X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Frhynodge%2Ffilters%2Fwebpages%2Fsavoy%2FPerformance.java;h=dd4c1658abaecd474ad6e1a95688bd635a43c2f6;hb=4b650a9b2286e0b05a74fabc36bc2337c89ebd71;hp=c50dd31731bffe83262aa2b79d287a91584986e7;hpb=1087708b1f7416de4084649a68ac9d495d56ac4a;p=rhynodge.git diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java b/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java index c50dd31..dd4c165 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java @@ -14,14 +14,18 @@ public class Performance { private final LocalDateTime time; @JsonProperty + private final String type; + + @JsonProperty private final String link; public Performance() { - this(null, null); + this(null, null, null); } - public Performance(LocalDateTime time, String link) { + public Performance(LocalDateTime time, String type, String link) { this.time = time; + this.type = type; this.link = link; } @@ -29,13 +33,17 @@ public class Performance { return time; } + public String getType() { + return type; + } + public String getLink() { return link; } @Override public int hashCode() { - return Objects.hash(time, link); + return Objects.hash(time, type, link); } @Override @@ -43,7 +51,7 @@ public class Performance { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Performance that = (Performance) o; - return Objects.equals(time, that.time) && Objects.equals(link, that.link); + return Objects.equals(time, that.time) && Objects.equals(type, that.type) && Objects.equals(link, that.link); } }