콘텐츠 댓글 리스트

- 비밀댓글은 닉네임 옆에 '비밀댓글' 마크 추가
This commit is contained in:
2024-08-30 15:03:46 +09:00
parent 4961727237
commit 345df7a7b7
3 changed files with 31 additions and 6 deletions

View File

@@ -30,6 +30,12 @@ class AudioContentCommentAdapter(
) : RecyclerView.ViewHolder(binding.root) {
fun bind(item: GetAudioContentCommentListItem) {
binding.tvSecret.visibility = if (item.isSecret) {
View.VISIBLE
} else {
View.GONE
}
binding.ivCommentProfile.load(item.profileUrl) {
crossfade(true)
placeholder(R.drawable.bg_placeholder)

View File

@@ -19,6 +19,7 @@ data class GetAudioContentCommentListItem(
@SerializedName("nickname") val nickname: String,
@SerializedName("profileUrl") val profileUrl: String,
@SerializedName("comment") val comment: String,
@SerializedName("isSecret") val isSecret: Boolean,
@SerializedName("donationCan") val donationCan: Int,
@SerializedName("date") val date: String,
@SerializedName("replyCount") val replyCount: Int