package com.gh.gamecenter.gamedetail.entity

import androidx.annotation.Keep
import com.gh.gamecenter.common.entity.LinkEntity
import com.google.gson.annotations.SerializedName

@Keep
data class GameDetailTabEntity(
    @SerializedName("_id")
    var id: String = "",
    var name: String = "",
    var type: String = "", // tab类型（game_detail：详情、comment：评论、archive：云存档、bbs：论坛、zone：专区、web：web链接、libao：礼包、custom_page：自定义页面）
    @SerializedName("archive_config_url")
    var archiveConfigUrl: String = "", // type=archive时，才有此云存档配置
    var link: LinkEntity? = null, // 只有：论坛、web链接、自定义页面，才有此字段数据
    @SerializedName("default_data")
    var defaultData: List<GameDetailData>? = null, // type=game_detail时，才有默认数据
) {
    companion object {
        const val TYPE_DETAIL = "game_detail"
        const val TYPE_COMMENT = "comment"
        const val TYPE_ARCHIVE = "archive"
        const val TYPE_BBS = "bbs"
        const val TYPE_ZONE = "zone"
        const val TYPE_WEB = "web"
        const val TYPE_GIFT = "libao"
        const val TYPE_CUSTOM_PAGE = "custom_page"
    }
}