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 | |
parent | c7720c2c8dce929e72bc2cea23ff7390a1da3296 (diff) |
Restructuring and README update.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki')
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/controller/MainController.kt | 12 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/controller/TopMangaController.kt | 29 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/AnimeResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/AnimeResponse.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/SearchAnime.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchAnime.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/SearchAnimeResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchAnimeResponse.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/TopAnime.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/TopAnime.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/TopAnimeResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/TopAnimeResponse.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/MangaResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/MangaResponse.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/SearchManga.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchManga.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/SearchMangaResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchMangaResponse.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/TopManga.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/TopManga.kt) | 3 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/TopMangaResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/model/TopMangaResponse.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt | 3 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt | 1 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailSearchAnimeActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailTopAnimeActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchAnimeAdapter.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchAnimePage.kt) | 9 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/TopAnimeAdapter.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/TopAnimePage.kt) | 8 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailSearchMangaActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailTopMangaActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchMangaAdapter.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchMangaPage.kt) | 9 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/TopMangaAdapter.kt) | 4 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/TopMangaPage.kt) | 11 |
32 files changed, 103 insertions, 64 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt index d67d0ef..24e5cd7 100644 --- a/app/src/main/java/xyz/adjutor/aniki/data/AnimeApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/data/anime/AnimeApi.kt @@ -1,9 +1,9 @@ -package xyz.adjutor.aniki.data +package xyz.adjutor.aniki.data.anime import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.AnimeResponse +import xyz.adjutor.aniki.presentation.model.anime.AnimeResponse interface AnimeApi { diff --git a/app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt index 1b0811b..9bd6b2d 100644 --- a/app/src/main/java/xyz/adjutor/aniki/data/SearchAnimeApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/data/anime/SearchAnimeApi.kt @@ -1,9 +1,9 @@ -package xyz.adjutor.aniki.data +package xyz.adjutor.aniki.data.anime import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Query -import xyz.adjutor.aniki.presentation.model.SearchAnimeResponse +import xyz.adjutor.aniki.presentation.model.anime.SearchAnimeResponse interface SearchAnimeApi { diff --git a/app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt index 39bd78b..76fd25f 100644 --- a/app/src/main/java/xyz/adjutor/aniki/data/TopAnimeApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/data/anime/TopAnimeApi.kt @@ -1,9 +1,9 @@ -package xyz.adjutor.aniki.data +package xyz.adjutor.aniki.data.anime import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.TopAnimeResponse +import xyz.adjutor.aniki.presentation.model.anime.TopAnimeResponse interface TopAnimeApi { diff --git a/app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt index 699efa4..a0f8df1 100644 --- a/app/src/main/java/xyz/adjutor/aniki/data/MangaApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/data/manga/MangaApi.kt @@ -1,9 +1,9 @@ -package xyz.adjutor.aniki.data +package xyz.adjutor.aniki.data.manga import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.MangaResponse +import xyz.adjutor.aniki.presentation.model.manga.MangaResponse interface MangaApi { diff --git a/app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt index 3b26c1a..6cc2d77 100644 --- a/app/src/main/java/xyz/adjutor/aniki/data/SearchMangaApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/data/manga/SearchMangaApi.kt @@ -1,9 +1,9 @@ -package xyz.adjutor.aniki.data +package xyz.adjutor.aniki.data.manga import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Query -import xyz.adjutor.aniki.presentation.model.SearchMangaResponse +import xyz.adjutor.aniki.presentation.model.manga.SearchMangaResponse interface SearchMangaApi { diff --git a/app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt index 8edab88..222dce3 100644 --- a/app/src/main/java/xyz/adjutor/aniki/data/TopMangaApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/data/manga/TopMangaApi.kt @@ -1,9 +1,9 @@ -package xyz.adjutor.aniki.data +package xyz.adjutor.aniki.data.manga import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Path -import xyz.adjutor.aniki.presentation.model.TopMangaResponse +import xyz.adjutor.aniki.presentation.model.manga.TopMangaResponse interface TopMangaApi { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/controller/MainController.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/controller/MainController.kt index 312ecbe..133f84b 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/controller/MainController.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/controller/MainController.kt @@ -1,7 +1,5 @@ package xyz.adjutor.aniki.presentation.controller -import xyz.adjutor.aniki.presentation.model.TopManga - class MainController { fun MainController() { @@ -12,15 +10,19 @@ class MainController { } - fun onItemClick(topmanga: TopManga) { + fun onButtonTopMangaClick() { } - fun onButtonTopMangaClick() { + fun onButtonTopAnimeClick() { } - fun onButtonTopAnimeClick() { + fun onButtonSearchMangaClick() { + + } + + fun onButtonSearchAnimeClick() { } diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/controller/TopMangaController.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/controller/TopMangaController.kt new file mode 100644 index 0000000..cfee062 --- /dev/null +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/controller/TopMangaController.kt @@ -0,0 +1,29 @@ +package xyz.adjutor.aniki.presentation.controller + +class TopMangaController { + + fun TopMangaController() { + + } + + fun onStart() { + + } + + fun onButtonTopMangaClick() { + + } + + fun onButtonTopAnimeClick() { + + } + + fun onButtonSearchMangaClick() { + + } + + fun onButtonSearchAnimeClick() { + + } + +}
\ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/AnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/AnimeResponse.kt index d682e3c..e4336ce 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/AnimeResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/AnimeResponse.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.anime import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchAnime.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/SearchAnime.kt index df5189d..7e4340c 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchAnime.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/SearchAnime.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.anime import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/SearchAnimeResponse.kt index 1e20e2f..d04aa67 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchAnimeResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/SearchAnimeResponse.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.anime import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopAnime.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/TopAnime.kt index 3cf4390..aefc1c5 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopAnime.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/TopAnime.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.anime import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/TopAnimeResponse.kt index 95d39d6..48e2f8f 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopAnimeResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/anime/TopAnimeResponse.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.anime import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/MangaResponse.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/MangaResponse.kt index 4bd7f2f..06aeed0 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/MangaResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/MangaResponse.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.manga import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchManga.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/SearchManga.kt index c24d93c..d69227b 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchManga.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/SearchManga.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.manga import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchMangaResponse.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/SearchMangaResponse.kt index 4fe7047..942c071 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/SearchMangaResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/SearchMangaResponse.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.manga import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopManga.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/TopManga.kt index 2e0886a..4fe3951 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopManga.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/TopManga.kt @@ -1,7 +1,8 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.manga import com.google.gson.annotations.SerializedName +//model //Content of the top field from the api of top manga class TopManga { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopMangaResponse.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/TopMangaResponse.kt index 1b0dd8f..a0f6b8c 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/model/TopMangaResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/model/manga/TopMangaResponse.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.model +package xyz.adjutor.aniki.presentation.model.manga import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt index f2abca1..d740dba 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt @@ -8,9 +8,12 @@ import android.widget.Button import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import xyz.adjutor.aniki.R +import xyz.adjutor.aniki.presentation.controller.MainController class HomePage : Fragment() { + lateinit var controller: MainController + override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt index bff89e4..e58737a 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt @@ -6,6 +6,7 @@ import xyz.adjutor.aniki.R class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailSearchAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt index 68a30de..f9d1325 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailSearchAnimeActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.anime import android.os.Bundle import android.widget.ImageView @@ -14,8 +14,8 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.AnimeApi -import xyz.adjutor.aniki.presentation.model.AnimeResponse +import xyz.adjutor.aniki.data.anime.AnimeApi +import xyz.adjutor.aniki.presentation.model.anime.AnimeResponse class DetailSearchAnimeActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailTopAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt index 3ec6ab6..54c34d5 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailTopAnimeActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.anime import android.content.Context import android.content.SharedPreferences @@ -17,8 +17,8 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.AnimeApi -import xyz.adjutor.aniki.presentation.model.AnimeResponse +import xyz.adjutor.aniki.data.anime.AnimeApi +import xyz.adjutor.aniki.presentation.model.anime.AnimeResponse import java.lang.reflect.Type class DetailTopAnimeActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchAnimeAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt index e938473..3bb875b 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchAnimeAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.anime import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,7 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.SearchAnime +import xyz.adjutor.aniki.presentation.model.anime.SearchAnime class SearchAnimeAdapter(private val animeList: List<SearchAnime>) : RecyclerView.Adapter<SearchAnimeAdapter.AnimeViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchAnimePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt index d2cf795..5a5ad7e 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchAnimePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.anime import android.content.Context import android.os.Bundle @@ -23,9 +23,10 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.SearchAnimeApi -import xyz.adjutor.aniki.presentation.model.SearchAnime -import xyz.adjutor.aniki.presentation.model.SearchAnimeResponse +import xyz.adjutor.aniki.data.anime.SearchAnimeApi +import xyz.adjutor.aniki.presentation.model.anime.SearchAnime +import xyz.adjutor.aniki.presentation.model.anime.SearchAnimeResponse +import xyz.adjutor.aniki.presentation.view.MainActivity class SearchAnimePage : Fragment() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopAnimeAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt index b1b336a..0529c26 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopAnimeAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.anime import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,7 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.TopAnime +import xyz.adjutor.aniki.presentation.model.anime.TopAnime class TopAnimeAdapter(private val animeList: List<TopAnime>) : RecyclerView.Adapter<TopAnimeAdapter.AnimeViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopAnimePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt index 8a7ef08..66197d7 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopAnimePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.anime import android.content.Context import android.content.SharedPreferences @@ -22,9 +22,9 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.TopAnimeApi -import xyz.adjutor.aniki.presentation.model.TopAnime -import xyz.adjutor.aniki.presentation.model.TopAnimeResponse +import xyz.adjutor.aniki.data.anime.TopAnimeApi +import xyz.adjutor.aniki.presentation.model.anime.TopAnime +import xyz.adjutor.aniki.presentation.model.anime.TopAnimeResponse import java.lang.reflect.Type class TopAnimePage : Fragment() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailSearchMangaActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt index d96cc70..d04760b 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailSearchMangaActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.manga import android.os.Bundle import android.widget.ImageView @@ -14,8 +14,8 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.MangaApi -import xyz.adjutor.aniki.presentation.model.MangaResponse +import xyz.adjutor.aniki.data.manga.MangaApi +import xyz.adjutor.aniki.presentation.model.manga.MangaResponse class DetailSearchMangaActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailTopMangaActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt index 0142018..2bf2f14 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/DetailTopMangaActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.manga import android.content.Context import android.content.SharedPreferences @@ -17,8 +17,8 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.MangaApi -import xyz.adjutor.aniki.presentation.model.MangaResponse +import xyz.adjutor.aniki.data.manga.MangaApi +import xyz.adjutor.aniki.presentation.model.manga.MangaResponse import java.lang.reflect.Type class DetailTopMangaActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt index 061eafc..c0813c8 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchMangaAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.manga import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,7 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.SearchManga +import xyz.adjutor.aniki.presentation.model.manga.SearchManga class SearchMangaAdapter(private val mangaList: List<SearchManga>) : RecyclerView.Adapter<SearchMangaAdapter.MangaViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt index 7d7fa74..a571473 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/SearchMangaPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.manga import android.content.Context import android.os.Bundle @@ -23,9 +23,10 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.SearchMangaApi -import xyz.adjutor.aniki.presentation.model.SearchManga -import xyz.adjutor.aniki.presentation.model.SearchMangaResponse +import xyz.adjutor.aniki.data.manga.SearchMangaApi +import xyz.adjutor.aniki.presentation.model.manga.SearchManga +import xyz.adjutor.aniki.presentation.model.manga.SearchMangaResponse +import xyz.adjutor.aniki.presentation.view.MainActivity class SearchMangaPage : Fragment() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt index fac3730..5ab1713 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopMangaAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.manga import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,7 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.TopManga +import xyz.adjutor.aniki.presentation.model.manga.TopManga class TopMangaAdapter(private val mangaList: List<TopManga>) : RecyclerView.Adapter<TopMangaAdapter.MangaViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt index 2bf84e8..edb5fea 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/TopMangaPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.manga import android.content.Context import android.content.SharedPreferences @@ -22,11 +22,12 @@ import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.data.TopMangaApi -import xyz.adjutor.aniki.presentation.model.TopManga -import xyz.adjutor.aniki.presentation.model.TopMangaResponse +import xyz.adjutor.aniki.data.manga.TopMangaApi +import xyz.adjutor.aniki.presentation.model.manga.TopManga +import xyz.adjutor.aniki.presentation.model.manga.TopMangaResponse import java.lang.reflect.Type +//view class TopMangaPage : Fragment() { private lateinit var sharedPreferences: SharedPreferences @@ -77,7 +78,7 @@ class TopMangaPage : Fragment() { findNavController().navigate(R.id.action_TopMangaPage_to_HomePage) } view.findViewById<Button>(R.id.button_prev).setOnClickListener { - if (page > 1) { + if (page > 1) { // if we're not on the first page, because we can't go back if we're on the first one. page -= 1 makeApiCall(view, baseUrl, page) Snackbar.make(requireView(), "Page $page has been loaded.", Snackbar.LENGTH_SHORT) |