package com.gh.common.provider

import android.content.Context
import com.gh.gamecenter.GameDetailActivity
import com.gh.gamecenter.feature.entity.GameEntity
import com.gh.gamecenter.feature.exposure.ExposureEvent
import com.gh.gamecenter.feature.provider.IGameDetailProvider

@com.therouter.inject.ServiceProvider
class GameDetailProviderImpl : IGameDetailProvider {
    override fun startGameDetailActivity(
        context: Context,
        gameEntity: GameEntity?,
        entrance: String,
        traceEvent: ExposureEvent?
    ) {
        GameDetailActivity.startGameDetailActivity(context, gameEntity, entrance, traceEvent)
    }

    override fun startGameDetailActivity(
        context: Context,
        gameId: String,
        entrance: String?,
        traceEvent: ExposureEvent?
    ) {
        GameDetailActivity.startGameDetailActivity(context, gameId, entrance, traceEvent)
    }

    override fun startGameDetailActivity(
        context: Context,
        gameEntity: GameEntity?,
        entrance: String,
        defaultTab: String,
        isSkipGameComment: Boolean,
        scrollToLibao: Boolean,
        scrollToServer: Boolean,
        traceEvent: ExposureEvent?
    ) {
        GameDetailActivity.startGameDetailActivity(
            context,
            gameEntity,
            entrance,
            defaultTab,
            isSkipGameComment,
            scrollToLibao,
            scrollToServer,
            traceEvent
        )
    }

    override fun startGameDetailActivity(
        context: Context,
        gameId: String,
        entrance: String?,
        isSkipGameComment: Boolean,
        scrollToLibao: Boolean,
        openVideoStreaming: Boolean,
        openPlatformWindow: Boolean,
        traceEvent: ExposureEvent?
    ) {
        GameDetailActivity.startGameDetailActivity(
            context,
            gameId,
            entrance,
            isSkipGameComment,
            scrollToLibao,
            openVideoStreaming,
            openPlatformWindow,
            traceEvent
        )
    }
}