96 lines
2.6 KiB
Kotlin
96 lines
2.6 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.common.constant.RouteConsts
|
|
import com.gh.gamecenter.feature.provider.INewCommentDetailProvider
|
|
import com.gh.gamecenter.qa.comment.NewCommentDetailActivity
|
|
|
|
@Route(path = RouteConsts.provider.newCommentDetail, name = "NewCommentDetailActivity暴露服务")
|
|
class NewCommentDetailProviderImpl : INewCommentDetailProvider {
|
|
|
|
override fun getAnswerCommentIntent(
|
|
context: Context,
|
|
commentId: String,
|
|
questionId: String,
|
|
topCommentId: String,
|
|
entrance: String,
|
|
path: String
|
|
): Intent {
|
|
return NewCommentDetailActivity.getAnswerCommentIntent(
|
|
context,
|
|
commentId,
|
|
questionId,
|
|
topCommentId,
|
|
entrance,
|
|
path
|
|
)
|
|
}
|
|
|
|
override fun getArticleCommentIntent(
|
|
context: Context,
|
|
commentId: String,
|
|
communityId: String,
|
|
articleId: String,
|
|
topCommentId: String,
|
|
entrance: String,
|
|
path: String
|
|
): Intent {
|
|
return NewCommentDetailActivity.getArticleCommentIntent(
|
|
context,
|
|
commentId,
|
|
communityId,
|
|
articleId,
|
|
topCommentId,
|
|
entrance,
|
|
path
|
|
)
|
|
}
|
|
|
|
override fun getVideoCommentIntent(
|
|
context: Context,
|
|
commentId: String,
|
|
videoId: String,
|
|
topCommentId: String,
|
|
entrance: String,
|
|
path: String
|
|
): Intent {
|
|
return NewCommentDetailActivity.getVideoCommentIntent(context, commentId, videoId, topCommentId, entrance, path)
|
|
}
|
|
|
|
override fun getGameCollectionCommentIntent(
|
|
context: Context,
|
|
commentId: String,
|
|
gameCollectionId: String,
|
|
topCommentId: String,
|
|
entrance: String,
|
|
path: String
|
|
): Intent {
|
|
return NewCommentDetailActivity.getGameCollectionCommentIntent(
|
|
context,
|
|
commentId,
|
|
gameCollectionId,
|
|
topCommentId,
|
|
entrance,
|
|
path
|
|
)
|
|
}
|
|
|
|
override fun getImageArticleCommentIntent(
|
|
context: Context,
|
|
commentId: String,
|
|
imageArticleId: String,
|
|
topCommentId: String,
|
|
entrance: String,
|
|
path: String
|
|
):Intent {
|
|
return NewCommentDetailActivity.getImageArticleCommentIntent(
|
|
context, commentId, imageArticleId, topCommentId, entrance, path
|
|
)
|
|
}
|
|
|
|
override fun init(context: Context?) {
|
|
// Do nothing
|
|
}
|
|
} |