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;
}
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
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);
}
}