package com.gh.common.provider

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.gh.gamecenter.GameDetailActivity
import com.gh.gamecenter.common.constant.RouteConsts
import com.gh.gamecenter.feature.entity.GameEntity
import com.gh.gamecenter.feature.exposure.ExposureEvent
import com.gh.gamecenter.feature.provider.IGameDetailProvider

@Route(path = RouteConsts.provider.gameDetail, name = "GameDetailActivity暴露服务")
class GameDetailProviderImpl : IGameDetailProvider {
    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 init(context: Context?) {
        // Do nothing
    }
}