package com.gh.gamecenter.search

import com.gh.gamecenter.entity.AdConfig
import com.gh.gamecenter.entity.SearchSubjectEntity
import com.gh.gamecenter.feature.entity.GameEntity
import com.gh.gamecenter.feature.exposure.ExposureEvent

class SearchItemData(
    val game: GameEntity? = null,
    val subject: SearchSubjectEntity? = null,
    val ad: AdConfig.ThirdPartyAd? = null,
    val adConfig: AdConfig? = null,
    val gamePosition: Int = -1,
    var exposureEventList: ArrayList<ExposureEvent>? = null,
    private val isFirst: Boolean = false,
) {

    val isShowFirstSetting: Boolean
        get() = isFirst && game?.firstSetting != null && !game.firstSetting?.firstPosition.isNullOrBlank()
}
