From 8ede9457fd21ac5e272e73f5ece1d4bc9c23faab Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Wed, 19 May 2021 10:07:23 +0200 Subject: Big update Restructuring the packages and adding a Constants.kt for the api URL. Also adding gson in Singletons.kt --- 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 ------------- 3 files changed, 39 deletions(-) delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt (limited to 'app/src/main/java/xyz/adjutor/aniki/data/anime') 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 deleted file mode 100644 index 24e5cd7..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -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 deleted file mode 100644 index 9bd6b2d..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -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 deleted file mode 100644 index 76fd25f..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt +++ /dev/null @@ -1,13 +0,0 @@ -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 -- cgit v1.2.3