Implement chronology field
This commit is contained in:
@ -60,6 +60,7 @@ public class Anime {
|
||||
private List<String> synonyms;
|
||||
private List<Genre> genres;
|
||||
private List<Related> related;
|
||||
private List<ChronologyAnime> chronology;
|
||||
|
||||
@Nullable
|
||||
private Poster poster;
|
||||
@ -297,4 +298,12 @@ public class Anime {
|
||||
this.related = related;
|
||||
}
|
||||
|
||||
public List<ChronologyAnime> getChronology() {
|
||||
return chronology;
|
||||
}
|
||||
|
||||
public void setChronology(List<ChronologyAnime> chronology) {
|
||||
this.chronology = chronology;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
package com.backend.metadata.shikimori.api.model;
|
||||
|
||||
public record ChronologyAnime(String id, String name, String russian) {
|
||||
}
|
||||
Reference in New Issue
Block a user