package com.rdiot.yx485.bean


import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/** APP版本信息 */
@Serializable
data class AppVersionData(
    @SerialName("need_update")
    var needUpdate: Boolean = false, // true
    @SerialName("update_info")
    var updateInfo: Info = Info()
) {
    @Serializable
    data class Info(
        @SerialName("content")
        var content: String = "", // 测试更新
        @SerialName("created_at")
        var createdAt: String = "", // 2023-01-03T11:38:43+08:00
        @SerialName("creator")
        var creator: String = "",
        @SerialName("download_url")
        var downloadUrl: String = "", // http://www.baidu.com/
        @SerialName("force_update")
        var forceUpdate: Boolean = false, // true
        @SerialName("platform")
        var platform: String = "", // ANDROID
        @SerialName("record_id")
        var recordId: String = "", // 222
        @SerialName("version")
        var version: String = "" // 1.0.1
    )
}