package com.gh.gamecenter.gamedetail.entity

import android.os.Parcelable
import androidx.annotation.Keep
import com.gh.gamecenter.common.entity.CommunityEntity
import com.gh.gamecenter.common.entity.ToolBoxEntity
import com.gh.gamecenter.entity.NewsEntity
import com.gh.gamecenter.qa.entity.AnswerEntity
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

@Parcelize
@Keep
data class ZoneEntity(
    var style: String = "",// 游戏专区样式，default/link 默认模板/填写链接
    var link: String = "",// 样式为link时，字段存在
    var status: String = "off",//off/on
    @SerializedName("custom_name")
    var customName: String = "", // 自定义专区标题
    var content: ArrayList<ZoneContentEntity> = ArrayList()// 样式为default时，字段存在
) : Parcelable

@Parcelize
@Keep
data class ZoneContentEntity(
    var type: String = "",
    var notice: ArrayList<NewsEntity>? = null,
    var article: ArrayList<NewsEntity>? = null,
    var toolkit: ArrayList<ToolBoxEntity>? = null,
    var community: CommunityEntity? = null,
    @SerializedName("community_column_content")
    var answer: ArrayList<AnswerEntity>? = null
) : Parcelable