aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/data
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-05-13 13:42:16 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-05-13 13:42:16 +0200
commita4fbe1308bb4cf61358d8169dd32505e2783a9af (patch)
tree4f8f67ba83a64dd33c310f1eee659dfdd5d32b85 /app/src/main/java/xyz/adjutor/aniki/data
parenta11219745fd6ddf8796682f7ab433c1a1d0402f5 (diff)
parentbe1df4b40a41ae1d4c727637a326ad32eb729ed9 (diff)
Merge branch 'release/3.0'v3.0.0
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/data')
-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
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt13
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt13
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt13
6 files changed, 78 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
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt
new file mode 100644
index 0000000..a0f8df1
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt
@@ -0,0 +1,13 @@
+package xyz.adjutor.aniki.data.manga
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Path
+import xyz.adjutor.aniki.presentation.model.manga.MangaResponse
+
+interface MangaApi {
+
+ @GET("v3/manga/{id}")
+ fun getMangaData(@Path("id") id: String): Call<MangaResponse>
+
+} \ No newline at end of file
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt
new file mode 100644
index 0000000..6cc2d77
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt
@@ -0,0 +1,13 @@
+package xyz.adjutor.aniki.data.manga
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Query
+import xyz.adjutor.aniki.presentation.model.manga.SearchMangaResponse
+
+interface SearchMangaApi {
+
+ @GET("v3/search/manga")
+ fun getSearchMangaData(@Query("q") q: String): Call<SearchMangaResponse>
+
+} \ No newline at end of file
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt
new file mode 100644
index 0000000..222dce3
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt
@@ -0,0 +1,13 @@
+package xyz.adjutor.aniki.data.manga
+
+import retrofit2.Call
+import retrofit2.http.GET
+import retrofit2.http.Path
+import xyz.adjutor.aniki.presentation.model.manga.TopMangaResponse
+
+interface TopMangaApi {
+
+ @GET("v3/top/manga/{page}")
+ fun getTopMangaData(@Path("page") page: Int): Call<TopMangaResponse>
+
+} \ No newline at end of file