Result object and ResultItem -> ResultData

This commit is contained in:
InsanusMokrassar 2019-02-20 13:44:04 +08:00
parent b09ef2ec62
commit 54e6a375a3
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,9 @@
package com.github.insanusmokrassar.SauceNaoAPI.models
import kotlinx.serialization.Serializable
@Serializable
data class Result(
val header: Header,
val data: ResultData
)

View File

@ -5,7 +5,7 @@ import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class ResultItem(
data class ResultData(
@SerialName("danbooru_id")
@Optional
val danbooruId: String? = null,
@ -15,6 +15,11 @@ data class ResultItem(
@SerialName("drawr_id")
@Optional
val drawrId: String? = null,
@SerialName("pixiv_id")
@Optional
val pixivId: String? = null,
@Optional
val title: String? = null,
@Optional
val creator: String? = null,
@Optional