31 lines
1.1 KiB
Kotlin
31 lines
1.1 KiB
Kotlin
package com.gh.common.provider
|
|
|
|
import android.content.Context
|
|
import android.content.Intent
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
import com.gh.gamecenter.MessageDetailActivity
|
|
import com.gh.gamecenter.common.constant.RouteConsts
|
|
import com.gh.gamecenter.feature.entity.ConcernEntity
|
|
import com.gh.gamecenter.feature.provider.IMessageDetailProvider
|
|
|
|
@Route(path = RouteConsts.provider.messageDetail, name = "MessageDetailActivity暴露服务")
|
|
class MessageDetailProviderImpl : IMessageDetailProvider {
|
|
|
|
override fun getIntentById(
|
|
context: Context,
|
|
newsId: String,
|
|
commentNum: Int,
|
|
openSoftInput: Boolean,
|
|
entrance: String
|
|
): Intent {
|
|
return MessageDetailActivity.getIntentById(context, newsId, commentNum, openSoftInput, entrance)
|
|
}
|
|
|
|
override fun getIntentByEntity(context: Context, concernEntity: ConcernEntity, entrance: String): Intent? {
|
|
return MessageDetailActivity.getIntentByEntity(context, concernEntity, entrance)
|
|
}
|
|
|
|
override fun init(context: Context?) {
|
|
// Do nothing
|
|
}
|
|
} |