package com.gh.gamecenter.energy.entity

import android.os.Parcelable
import com.gh.gamecenter.common.entity.LinkEntity
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

@Parcelize
data class TaskEntity(
    @SerializedName("_id")
    var id: String = "",
    @SerializedName("task_id")
    var taskId: String = "",
    var name: String = "",
    var descr: String = "",
    var icon: String = "",
    var action: String = "",
    var energy: Long = 0,
    var done: Int = 0,
    var limit: Int = 0,
    var quota: Int = 0, // 任务指标，代表需要做多少个才算完成
    var progress: Int = 0, // 已完成的进度
    var status: String = "", // normal正常 finished完成 limiting任务达到上限
    var link: LinkEntity = LinkEntity(),
    var isFixed: Boolean = false
) : Parcelable