diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-04-13 13:22:04 +0200 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-04-13 13:22:04 +0200 |
commit | 5a8c22508e08b00a31c8ebb4df13d9e108d29e1f (patch) | |
tree | 432a7b67aebba75725e7fc9fe13cf09ae1ea0071 /app/src/main/java/xyz/adjutor/aniki/data/manga | |
parent | c7720c2c8dce929e72bc2cea23ff7390a1da3296 (diff) |
Restructuring and README update.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/data/manga')
3 files changed, 39 insertions, 0 deletions
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 |