Header have less required fields for now

This commit is contained in:
InsanusMokrassar 2019-05-16 17:28:50 +08:00
parent 4f27ac115c
commit 29aa4a41e6
2 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
project.version = "0.2.1" project.version = "0.2.2"
project.group = "com.github.insanusmokrassar" project.group = "com.github.insanusmokrassar"
buildscript { buildscript {

View File

@ -7,14 +7,6 @@ import kotlinx.serialization.json.Json
@Serializable @Serializable
data class Header( data class Header(
@SerialName("short_limit")
val shortLimit: Int,
@SerialName("long_limit")
val longLimit: Int,
@SerialName("short_remaining")
val shortRemaining: Int,
@SerialName("long_remaining")
val longRemaining: Int,
@SerialName("status") @SerialName("status")
val status: Int, val status: Int,
@SerialName("results_requested") @SerialName("results_requested")
@ -32,6 +24,14 @@ data class Header(
val queryImage: String, // something like "uuid.jpg" val queryImage: String, // something like "uuid.jpg"
@SerialName("results_returned") @SerialName("results_returned")
val resultsCount: Int, val resultsCount: Int,
@SerialName("short_remaining")
val shortRemaining: Int? = null,
@SerialName("long_remaining")
val longRemaining: Int? = null,
@SerialName("short_limit")
val shortLimit: Int? = null,
@SerialName("long_limit")
val longLimit: Int? = null,
@SerialName("account_type") @SerialName("account_type")
val accountType: String? = null, val accountType: String? = null,
@SerialName("user_id") @SerialName("user_id")