package com.gh.gamecenter.entity

import android.os.Parcelable
import com.gh.common.filter.RegionSettingHelper
import com.gh.gamecenter.feature.entity.GameEntity
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

@Parcelize
data class SearchSubjectEntity(
    val name: String = "",
    val games: List<GameEntity> = listOf(),
    val location: Int = 0,
    @SerializedName("column_id")
    val columnId: String = "",
    @SerializedName("ad_icon_active")
    val adIconActive: Boolean = false
) : Parcelable {
    fun getFilterGame() = RegionSettingHelper.filterGame(games)
}