package com.gh.gamecenter.entity

import com.gh.gamecenter.feature.entity.SimulatorEntity
import com.google.gson.annotations.SerializedName

class NewApiSettingsEntity(
    @SerializedName("night_mode")
    var nightMode: NightMode? = null,
    var simulator: SimulatorEntity? = null,
    @SerializedName("start_ad")
    var startAd: StartupAdEntity? = null,//开屏图片广告
    var startup: StartupAdEntity? = null,//启动文案广告
    @SerializedName("user_interested_game")
    var userInterestedGame: Boolean = false, //偏好设置状态开关
    var install: Install, // 安装相关的
) {
    /**
     *
     *   "icon": false, // 是否显示切换，true显示
     *   "setting": false, // 设置页面是否显示，true显示
     *   "install": false, // 安装时的默认值，true开启
     */
    class NightMode(
        val icon: Boolean,
        val setting: Boolean,
        val install: Boolean
    )

    // VPN 配置
    class Install(
        @SerializedName("vpn_required")
        val vpnRequired: VpnSetting? = null
    )

    class VpnSetting(
        @SerializedName("current_device")
        val shouldShowVpnOption: Boolean,
        @SerializedName("packages")
        val vpnMatchedPackagesName: HashSet<String>
    )
}