aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/data/anime
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-04-13 13:22:04 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-04-13 13:22:04 +0200
commit5a8c22508e08b00a31c8ebb4df13d9e108d29e1f (patch)
tree432a7b67aebba75725e7fc9fe13cf09ae1ea0071 /app/src/main/java/xyz/adjutor/aniki/data/anime
parentc7720c2c8dce929e72bc2cea23ff7390a1da3296 (diff)
Restructuring and README update.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/data/anime')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt13
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt13
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt13
3 files changed, 39 insertions, 0 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt
new file mode 100644
index 0000000..24e5cd7
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt
@@ -0,0 +1,13 @@
+package xyz.adjutor.aniki.data.anime
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Path
+import xyz.adjutor.aniki.presentation.model.anime.AnimeResponse
+
+interface AnimeApi {
+
+ @GET("v3/anime/{id}")
+ fun getAnimeData(@Path("id") id: String): Call<AnimeResponse>
+
+} \ No newline at end of file
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt
new file mode 100644
index 0000000..9bd6b2d
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt
@@ -0,0 +1,13 @@
+package xyz.adjutor.aniki.data.anime
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Query
+import xyz.adjutor.aniki.presentation.model.anime.SearchAnimeResponse
+
+interface SearchAnimeApi {
+
+ @GET("v3/search/anime")
+ fun getSearchAnimeData(@Query("q") q: String): Call<SearchAnimeResponse>
+
+} \ No newline at end of file
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt
new file mode 100644
index 0000000..76fd25f
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt
@@ -0,0 +1,13 @@
+package xyz.adjutor.aniki.data.anime
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Path
+import xyz.adjutor.aniki.presentation.model.anime.TopAnimeResponse
+
+interface TopAnimeApi {
+
+ @GET("v3/top/anime/{page}")
+ fun getTopAnimeData(@Path("page") page: Int): Call<TopAnimeResponse>
+
+} \ No newline at end of file