package com.gh.common.filter

import androidx.annotation.Keep
import com.gh.gamecenter.feature.entity.IpInfo
import com.google.gson.annotations.SerializedName

@Keep
class RegionSetting(
    @SerializedName("game_mirror")
    var mirrorGameIdSet: HashSet<String>,
    @SerializedName("game_mirror2")
    var mirrorGameIdSet2: HashSet<String>?,
    @SerializedName("game_block")
    var filterGameIdSet: HashSet<String>,
    @SerializedName("channel_control")
    var channelControl: ChannelControl,
    @SerializedName("game_h5_download")
    var gameH5DownloadList: List<GameH5Download>,
    @SerializedName("game_special_download")
    var gameSpecialDownloadInfoList: List<GameSpecialDownloadInfo>,
    @SerializedName("ip_info")
    var ipInfo: IpInfo? = null
) {

    @Keep
    class ChannelControl(
        @SerializedName("game_category")
        var gameCategory: String,
        @SerializedName("effect")
        var effect: Boolean
    )

    @Keep
    class GameH5Download(
        @SerializedName("game_id")
        var gameId: String,// 游戏id
        @SerializedName("h5_link")
        var h5Link: String,// 网页链接
        @SerializedName("download_link")
        var downloadLink: String,// 下载链接
        @SerializedName("button_text")
        var buttonText: String,// 按钮文案
    )

    class GameSpecialDownloadInfo(
        @SerializedName("game_id")
        var gameId: String = "",
        @SerializedName("bbs_id")
        var bbsId: String = "",
        @SerializedName("top_id")
        var topId: String = "",
        @SerializedName("hint_text")
        var hintText: String = ""
    )
}