summaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/anime
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 20:06:03 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 20:06:03 +0100
commita11219745fd6ddf8796682f7ab433c1a1d0402f5 (patch)
treeae8521428bdde7750294d25c8e49a93df9e95f26 /app/src/main/java/xyz/adjutor/aniki/anime
parente41b93327626afba5427454dc2868cedf3f01972 (diff)
parent4012256bf91ccf02eb1871229f755beb26dad3de (diff)
Merge branch 'release/2.0'v2.0.0
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/anime')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/AnimeApi.kt12
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt11
2 files changed, 23 insertions, 0 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/anime/AnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/anime/AnimeApi.kt
new file mode 100644
index 0000000..028097a
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/AnimeApi.kt
@@ -0,0 +1,12 @@
+package xyz.adjutor.aniki.anime
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Path
+
+interface AnimeApi {
+
+ @GET("v3/anime/{id}")
+ fun getAnimeData(@Path("id") id: String): Call<RestAnimeResponse>
+
+} \ No newline at end of file
diff --git a/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt
new file mode 100644
index 0000000..aa15dfd
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt
@@ -0,0 +1,11 @@
+package xyz.adjutor.aniki.anime
+
+import com.google.gson.annotations.SerializedName
+
+class RestAnimeResponse{ //only kept the infos I didn't have and that were interesting to me.
+
+ @SerializedName("mal_id")
+ var mal_id: Int? = null
+ @SerializedName("synopsis")
+ var synopsis: String? = null
+}