aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-05-14 13:39:43 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-05-14 13:39:43 +0200
commit5d4d65293a667f9d4807b3599f13ce36af2d1060 (patch)
tree1a829ffcf89a21b63e986c0af189ab2d4d611a0f /app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt
parent789cb4c6c3e2f4b6bea325b21801d098ebf04623 (diff)
Singletons : DetailTopManga : OK
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt
index 430f73b..827c7e3 100644
--- a/app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/presentation/Singletons.kt
@@ -4,6 +4,11 @@ import com.google.gson.Gson
import com.google.gson.GsonBuilder
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
+import xyz.adjutor.aniki.data.anime.AnimeApi
+import xyz.adjutor.aniki.data.anime.SearchAnimeApi
+import xyz.adjutor.aniki.data.anime.TopAnimeApi
+import xyz.adjutor.aniki.data.manga.MangaApi
+import xyz.adjutor.aniki.data.manga.SearchMangaApi
import xyz.adjutor.aniki.data.manga.TopMangaApi
class Singletons {
@@ -19,5 +24,35 @@ class Singletons {
.addConverterFactory(GsonConverterFactory.create(gson))
.build()
.create(TopMangaApi::class.java)
+
+ val searchMangaApi: SearchMangaApi = Retrofit.Builder()
+ .baseUrl(BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create(gson))
+ .build()
+ .create(SearchMangaApi::class.java)
+
+ val mangaApi: MangaApi = Retrofit.Builder()
+ .baseUrl(BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create(gson))
+ .build()
+ .create(MangaApi::class.java)
+
+ val topAnimeApi: TopAnimeApi = Retrofit.Builder()
+ .baseUrl(BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create(gson))
+ .build()
+ .create(TopAnimeApi::class.java)
+
+ val searchAnimeApi: SearchAnimeApi = Retrofit.Builder()
+ .baseUrl(BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create(gson))
+ .build()
+ .create(SearchAnimeApi::class.java)
+
+ val animeApi: AnimeApi = Retrofit.Builder()
+ .baseUrl(BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create(gson))
+ .build()
+ .create(AnimeApi::class.java)
}
}