account_type now is nullable and optional

This commit is contained in:
InsanusMokrassar 2019-05-07 10:09:46 +08:00
parent 2922fa95f2
commit cda17fd3cf
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -7,8 +7,6 @@ import kotlinx.serialization.json.Json
@Serializable @Serializable
data class Header( data class Header(
@SerialName("account_type")
val accountType: String,
@SerialName("short_limit") @SerialName("short_limit")
val shortLimit: Int, val shortLimit: Int,
@SerialName("long_limit") @SerialName("long_limit")
@ -34,6 +32,8 @@ 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("account_type")
val accountType: String? = null,
@SerialName("user_id") @SerialName("user_id")
val userId: Int? = null val userId: Int? = null
) )