summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/Manga.kt21
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt6
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt6
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt6
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt6
5 files changed, 2 insertions, 43 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/manga/Manga.kt b/app/src/main/java/xyz/adjutor/aniki/manga/Manga.kt
index 43944c3..baba9f5 100644
--- a/app/src/main/java/xyz/adjutor/aniki/manga/Manga.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/Manga.kt
@@ -2,30 +2,13 @@ package xyz.adjutor.aniki.manga
import com.google.gson.annotations.SerializedName
-//Content of the top field from the api of manga
-class Manga{
+class Manga{ //only kept the infos I didnt have and that were interresting to me.
- @SerializedName("url")
- var url: String? = null
- @SerializedName("title")
- var title: String? = null
- @SerializedName("rank")
- var rank: Int? = null
- @SerializedName("volumes")
- var volumes: Int? = null
@SerializedName("chapters")
var chapters: Int? = null
- @SerializedName("start_date")
- var start_date: String? = null
- @SerializedName("end_date")
- var end_date: String? = null
- @SerializedName("score")
- var score: Float? = null
- @SerializedName("image_url")
- var image_url: String? = null
@SerializedName("synopsis")
var synopsis: String? = null
@SerializedName("background")
- var background: String? = null
+ var background: String? = null //a bit of background story about the manga
}
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt
index c711631..0bd1354 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt
@@ -4,12 +4,6 @@ import com.google.gson.annotations.SerializedName
class RestTopAnimeResponse {
- @SerializedName("request_hash")
- var request_hash: String? = null
- @SerializedName("request_cached")
- var request_cached: Boolean? = null
- @SerializedName("request_cached_expiry")
- var request_cached_expiry: Int? = null
@SerializedName("top")
var top: List<TopAnime>? = null
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt b/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt
index 3576e7b..e063ad1 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt
@@ -11,18 +11,12 @@ class TopAnime{
var rank: Int? = null
@SerializedName("title")
var title: String? = null
- @SerializedName("url")
- var url: String? = null
- @SerializedName("type")
- var type: String? = null
@SerializedName("episodes")
var volumes: Int? = null
@SerializedName("start_date")
var start_date: String? = null
@SerializedName("end_date")
var end_date: String? = null
- @SerializedName("members")
- var members: Int? = null
@SerializedName("score")
var score: Float? = null
@SerializedName("image_url")
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt
index 897e8a2..dc7827a 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt
@@ -4,12 +4,6 @@ import com.google.gson.annotations.SerializedName
class RestTopMangaResponse {
- @SerializedName("request_hash")
- var request_hash: String? = null
- @SerializedName("request_cached")
- var request_cached: Boolean? = null
- @SerializedName("request_cached_expiry")
- var request_cached_expiry: Int? = null
@SerializedName("top")
var top: List<TopManga>? = null
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt
index edf561d..0f73dd4 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt
@@ -11,18 +11,12 @@ class TopManga{
var rank: Int? = null
@SerializedName("title")
var title: String? = null
- @SerializedName("url")
- var url: String? = null
- @SerializedName("type")
- var type: String? = null
@SerializedName("volumes")
var volumes: Int? = null
@SerializedName("start_date")
var start_date: String? = null
@SerializedName("end_date")
var end_date: String? = null
- @SerializedName("members")
- var members: Int? = null
@SerializedName("score")
var score: Float? = null
@SerializedName("image_url")