From 5a8c22508e08b00a31c8ebb4df13d9e108d29e1f Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 13 Apr 2021 13:22:04 +0200 Subject: Restructuring and README update. --- app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt | 13 ------------- app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt | 13 ------------- app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt | 13 ------------- app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt | 13 ------------- app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt | 13 ------------- app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt | 13 ------------- app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt | 13 +++++++++++++ .../java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt | 13 +++++++++++++ .../main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt | 13 +++++++++++++ app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt | 13 +++++++++++++ .../java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt | 13 +++++++++++++ .../main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt | 13 +++++++++++++ 12 files changed, 78 insertions(+), 78 deletions(-) delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt (limited to 'app/src/main/java/xyz/adjutor/aniki/data') diff --git a/app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt deleted file mode 100644 index d67d0ef..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -package xyz.adjutor.aniki.data - -import retrofit2.Call -import retrofit2.http.GET -import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.AnimeResponse - -interface AnimeApi { - - @GET("v3/anime/{id}") - fun getAnimeData(@Path("id") id: String): Call - -} \ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt deleted file mode 100644 index 699efa4..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -package xyz.adjutor.aniki.data - -import retrofit2.Call -import retrofit2.http.GET -import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.MangaResponse - -interface MangaApi { - - @GET("v3/manga/{id}") - fun getMangaData(@Path("id") id: String): Call - -} \ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt deleted file mode 100644 index 1b0811b..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -package xyz.adjutor.aniki.data - -import retrofit2.Call -import retrofit2.http.GET -import retrofit2.http.Query -import xyz.adjutor.aniki.presentation.model.SearchAnimeResponse - -interface SearchAnimeApi { - - @GET("v3/search/anime") - fun getSearchAnimeData(@Query("q") q: String): Call - -} \ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt deleted file mode 100644 index 3b26c1a..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -package xyz.adjutor.aniki.data - -import retrofit2.Call -import retrofit2.http.GET -import retrofit2.http.Query -import xyz.adjutor.aniki.presentation.model.SearchMangaResponse - -interface SearchMangaApi { - - @GET("v3/search/manga") - fun getSearchMangaData(@Query("q") q: String): Call - -} \ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt deleted file mode 100644 index 39bd78b..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -package xyz.adjutor.aniki.data - -import retrofit2.Call -import retrofit2.http.GET -import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.TopAnimeResponse - -interface TopAnimeApi { - - @GET("v3/top/anime/{page}") - fun getTopAnimeData(@Path("page") page: Int): Call - -} \ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt deleted file mode 100644 index 8edab88..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -package xyz.adjutor.aniki.data - -import retrofit2.Call -import retrofit2.http.GET -import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.TopMangaResponse - -interface TopMangaApi { - - @GET("v3/top/manga/{page}") - fun getTopMangaData(@Path("page") page: Int): Call - -} \ No newline at end of file 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 + +} \ 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 + +} \ 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 + +} \ 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 + +} \ 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 + +} \ 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 + +} \ No newline at end of file -- cgit v1.2.3