parent
c72c1e16fd
commit
c15e9c203e
|
@ -6,6 +6,7 @@ import com.google.gson.annotations.SerializedName
|
|||
@Keep
|
||||
data class LiveRoomDonationMessage(
|
||||
@SerializedName("uuid") val uuid: String,
|
||||
@SerializedName("memberId") val memberId: Long,
|
||||
@SerializedName("nickname") val nickname: String,
|
||||
@SerializedName("canMessage") val canMessage: String,
|
||||
@SerializedName("donationMessage") val donationMessage: String
|
||||
|
|
|
@ -29,7 +29,13 @@ class LiveRoomDonationMessageAdapter(
|
|||
binding.tvNickname.text = "${item.nickname}님이"
|
||||
binding.tvCanMessage.text = item.canMessage
|
||||
binding.tvCanMessage.visibility = View.VISIBLE
|
||||
binding.root.setBackgroundResource(R.drawable.bg_round_corner_5_3_333333)
|
||||
binding.root.setBackgroundResource(
|
||||
if (item.memberId == SharedPreferenceManager.userId) {
|
||||
R.drawable.bg_round_corner_5_3_59548f
|
||||
} else {
|
||||
R.drawable.bg_round_corner_5_3_333333
|
||||
}
|
||||
)
|
||||
} else {
|
||||
binding.tvNickname.text = "${item.nickname}님의 룰렛 결과?"
|
||||
binding.tvCanMessage.visibility = View.GONE
|
||||
|
|
Loading…
Reference in New Issue