22 lines
831 B
Kotlin
22 lines
831 B
Kotlin
package com.gh.common.provider
|
|
|
|
import android.content.Context
|
|
import android.content.Intent
|
|
import android.os.Parcelable
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
import com.gh.gamecenter.CommentDetailActivity
|
|
import com.gh.gamecenter.common.constant.RouteConsts
|
|
import com.gh.gamecenter.feature.provider.ICommentDetailProvider
|
|
import com.gh.gamecenter.feature.entity.MessageEntity
|
|
|
|
@Route(path = RouteConsts.provider.commentDetail, name = "CommentDetailActivity暴露服务")
|
|
class CommentDetailProviderImpl : ICommentDetailProvider {
|
|
|
|
override fun getIntent(context: Context, commentId: String?, message: Parcelable): Intent {
|
|
return CommentDetailActivity.getIntent(context, commentId, message as MessageEntity.Article)
|
|
}
|
|
|
|
override fun init(context: Context?) {
|
|
// Do nothing
|
|
}
|
|
} |