23 lines
768 B
Kotlin
23 lines
768 B
Kotlin
package com.gh.common.provider
|
|
|
|
import android.content.Context
|
|
import android.widget.TextView
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
import com.gh.common.util.CommentUtils
|
|
import com.gh.gamecenter.common.constant.RouteConsts
|
|
import com.gh.gamecenter.feature.provider.ICommentUtilsProvider
|
|
|
|
@Route(path = RouteConsts.provider.commentUtils, name = "CommentUtils暴露服务")
|
|
class CommentUtilsProviderImpl : ICommentUtilsProvider {
|
|
override fun setCommentTime(textView: TextView, time: Long) {
|
|
CommentUtils.setCommentTime(textView, time)
|
|
}
|
|
|
|
override fun getCommentTime(timestamp: Long): String {
|
|
return CommentUtils.getCommentTime(timestamp)
|
|
}
|
|
|
|
override fun init(context: Context?) {
|
|
// Do nothing
|
|
}
|
|
} |