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
|
||||
|
||||
@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
|
Loading…
Reference in New Issue
Block a user