Files
assistant-android/app/src/main/java/com/gh/gamecenter/entity/AppEntity.kt
2024-06-19 11:29:50 +08:00

47 lines
1023 B
Kotlin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.gh.gamecenter.entity
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class AppEntity(
var version: String? = null,
@SerializedName("version_code")
var versionCode: Int = 0,
var category: String? = "",
var url: String? = null,
var size: String? = null,
var content: String? = null,
@SerializedName("force")
var isForce: Boolean = false,
@SerializedName("spare_link")
var spareLink: String? = "",
/**
* NEVER从不
* ONCE_ONLY仅一次
* ONCE_ONLY_SECOND仅一次第二次打开
* ONCE_A_DAY每天一次
* EVERY_TIME_OPEN每次打开
*/
var alert: String? = null,
// 关联64位更新
var relation: AppEntity? = null,
@SerializedName("_id")
var id: String? = null
) : Parcelable {
fun isAlertEveryTime() = alert == "EVERY_TIME_OPEN"
fun isAlertOnceADay() = alert == "ONCE_A_DAY"
}