Skip to content

Instantly share code, notes, and snippets.

@brainail
Created September 17, 2017 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainail/f3ef879348183b3a447ac8be32917eda to your computer and use it in GitHub Desktop.
Save brainail/f3ef879348183b3a447ac8be32917eda to your computer and use it in GitHub Desktop.
Kitsu Data to fetch it using Retrofit
class KitsuResponse(
val data: List<KitsuItem>)
data class KitsuItem(
val id: Int,
val type: String?,
val attributes: KitsuItemAttributes?)
data class KitsuItemAttributes(
val synopsis: String?,
val subtype: String?,
val titles: KitsuItemAttributesTitles?,
val posterImage: KitsuItemAttributesImage?)
data class KitsuItemAttributesTitles(
val en_jp: String?)
data class KitsuItemAttributesImage(
val small: String?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment