package com.gh.gamecenter.entity

import com.google.gson.annotations.SerializedName

data class OwnerAdEntity(
    // 接口返回了个狗屎 code_id 过来，只能用 alternate 来 map 一下了
    @SerializedName(value = "_id", alternate = ["code_id"])
    val id: String,
    @SerializedName("code_name")
    val type: String,// 广告类型 start_ad:启动广告图, ad_source: 广告源计划类型的广告
    @SerializedName("ad_name")
    val adName: String = "",
    @SerializedName("source_name")
    val sourceName: String = "",
    @SerializedName("start_ad")
    var startAd: StartupAdEntity? = null,
    @SerializedName("ad_source")
    var adSource: AdSource? = null,
) {
    data class AdSource(
        @SerializedName("display_style")
        val displayStyle: String = "", //展示样式。game_one：单个游戏 game_zone：游戏专题
        @SerializedName("game_zone_title")
        val title: String = "", // 游戏专题标题
        @SerializedName("slider_interval")
        val sliderInterval: Int = -1, // Banner轮播时间间隔。不开启的时候传递：-1
        @SerializedName("ad_icon_active")
        val adIconActive: Boolean = false,
        @SerializedName("games_ids")
        val gamesIds: List<String> = listOf()
    )
}
