mirror of
https://github.com/InsanusMokrassar/SauceNaoAPI.git
synced 2024-12-23 05:07:12 +00:00
Result object and ResultItem -> ResultData
This commit is contained in:
parent
b09ef2ec62
commit
54e6a375a3
@ -0,0 +1,9 @@
|
|||||||
|
package com.github.insanusmokrassar.SauceNaoAPI.models
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class Result(
|
||||||
|
val header: Header,
|
||||||
|
val data: ResultData
|
||||||
|
)
|
@ -5,7 +5,7 @@ import kotlinx.serialization.SerialName
|
|||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ResultItem(
|
data class ResultData(
|
||||||
@SerialName("danbooru_id")
|
@SerialName("danbooru_id")
|
||||||
@Optional
|
@Optional
|
||||||
val danbooruId: String? = null,
|
val danbooruId: String? = null,
|
||||||
@ -15,6 +15,11 @@ data class ResultItem(
|
|||||||
@SerialName("drawr_id")
|
@SerialName("drawr_id")
|
||||||
@Optional
|
@Optional
|
||||||
val drawrId: String? = null,
|
val drawrId: String? = null,
|
||||||
|
@SerialName("pixiv_id")
|
||||||
|
@Optional
|
||||||
|
val pixivId: String? = null,
|
||||||
|
@Optional
|
||||||
|
val title: String? = null,
|
||||||
@Optional
|
@Optional
|
||||||
val creator: String? = null,
|
val creator: String? = null,
|
||||||
@Optional
|
@Optional
|
Loading…
Reference in New Issue
Block a user