This repository has been archived by the owner on Nov 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from GSculerlor/manga-endpoints
Add manga endpoints
- Loading branch information
Showing
11 changed files
with
738 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/moe/ganen/jikankt/models/anime/MangaCharacters.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package moe.ganen.jikankt.models.anime | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import moe.ganen.jikankt.models.base.Entity | ||
import moe.ganen.jikankt.models.base.types.Character | ||
|
||
/** | ||
* Manga's characters data class | ||
*/ | ||
data class MangaCharacters( | ||
/** | ||
* List of manga character. | ||
* @see Character for the detail. | ||
*/ | ||
@SerializedName("characters") | ||
val characters: List<Character?>? = null | ||
) : Entity() |
81 changes: 81 additions & 0 deletions
81
src/main/kotlin/moe/ganen/jikankt/models/base/types/RelatedManga.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package moe.ganen.jikankt.models.base.types | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* Lists of related items of the manga. | ||
* @see MalSubEntity for the detail. | ||
*/ | ||
data class RelatedManga( | ||
/** | ||
* List of prequels of the manga. | ||
*/ | ||
@SerializedName("Prequel") | ||
val prequel: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of alternative versions of the manga. | ||
*/ | ||
@SerializedName("Alternative version") | ||
val alternativeVersion: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of spin-off of the manga. | ||
*/ | ||
@SerializedName("Spin-off") | ||
val spinOff: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of adaptations of the manga. | ||
*/ | ||
@SerializedName("Adaptation") | ||
val adaptation: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of summaries of the manga. | ||
*/ | ||
@SerializedName("Summary") | ||
val summary: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of sequels of the manga. | ||
*/ | ||
@SerializedName("Sequel") | ||
val sequel: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of side-stories of the manga. | ||
*/ | ||
@SerializedName("Side story") | ||
val sideStory: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of other entries of the manga. | ||
*/ | ||
@SerializedName("Other") | ||
val other: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of parent story of the manga. | ||
*/ | ||
@SerializedName("Parent story") | ||
val parentStory: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of alternative settings of the manga. | ||
*/ | ||
@SerializedName("Alternative setting") | ||
val alternativeSetting: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of related characters of the manga. | ||
*/ | ||
@SerializedName("Character") | ||
val character: List<MalSubEntity?>? = null, | ||
|
||
/** | ||
* List of full stories of the manga. | ||
*/ | ||
@SerializedName("Full story") | ||
val fullStory: List<MalSubEntity?>? = null | ||
) |
Oops, something went wrong.