From 00ac626b27076397b79bcd4bdd934ab861ff05a5 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 19 Feb 2021 19:46:42 +0100 Subject: Implementing TopAnime Copied the topmanga folder and transformed everything in it into top anime. --- .../adjutor/aniki/topanime/RestTopAnimeResponse.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt (limited to 'app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt') diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt new file mode 100644 index 0000000..c711631 --- /dev/null +++ b/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt @@ -0,0 +1,19 @@ +package xyz.adjutor.aniki.topanime + +import com.google.gson.annotations.SerializedName + +class RestTopAnimeResponse { + + @SerializedName("request_hash") + var request_hash: String? = null + @SerializedName("request_cached") + var request_cached: Boolean? = null + @SerializedName("request_cached_expiry") + var request_cached_expiry: Int? = null + @SerializedName("top") + var top: List? = null + + fun getResults(): List { + return top!! + } +} \ No newline at end of file -- cgit v1.2.3