라이브방 - 라이브 후원랭킹 리스트
- 방장은 일반후원 / 비밀후원 캔을 나눠서 보이도록 수정
This commit is contained in:
@@ -2123,9 +2123,6 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
)
|
||||
)
|
||||
invalidateChat()
|
||||
lifecycleScope.launch {
|
||||
viewModel.addDonationCan(message.can)
|
||||
}
|
||||
|
||||
if (message.signature != null) {
|
||||
addSignature(message.signature)
|
||||
|
||||
@@ -7,7 +7,8 @@ import com.google.gson.annotations.SerializedName
|
||||
data class GetLiveRoomDonationStatusResponse(
|
||||
@SerializedName("donationList") val donationList: List<GetLiveRoomDonationItem>,
|
||||
@SerializedName("totalCount") val totalCount: Int,
|
||||
@SerializedName("totalCan") val totalCan: Int
|
||||
@SerializedName("totalCan") val totalCan: Int,
|
||||
@SerializedName("totalSecretCan") val totalSecretCan: Int
|
||||
)
|
||||
|
||||
@Keep
|
||||
@@ -15,5 +16,6 @@ data class GetLiveRoomDonationItem(
|
||||
@SerializedName("profileImage") val profileImage: String,
|
||||
@SerializedName("nickname") val nickname: String,
|
||||
@SerializedName("userId") val userId: Long,
|
||||
@SerializedName("can") val can: Int
|
||||
@SerializedName("can") val can: Int,
|
||||
@SerializedName("secretCan") val secretCan: Int
|
||||
)
|
||||
|
||||
@@ -50,6 +50,12 @@ class LiveRoomDonationRankingAdapter :
|
||||
}
|
||||
|
||||
binding.tvDonationCan.text = item.can.moneyFormat()
|
||||
binding.tvDonationSecretCan.text = item.secretCan.moneyFormat()
|
||||
binding.llDonationSecret.visibility = if (item.secretCan > 0) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
View.GONE
|
||||
}
|
||||
|
||||
val lp = binding.rlDonationRanking.layoutParams as FrameLayout.LayoutParams
|
||||
|
||||
|
||||
@@ -37,6 +37,17 @@ class LiveRoomDonationRankingDialog(
|
||||
adapter.notifyDataSetChanged()
|
||||
dialogView.tvTotalCan.text = it.totalCan.moneyFormat()
|
||||
dialogView.tvTotalCount.text = it.totalCount.moneyFormat()
|
||||
dialogView.tvTotalSecretCan.text = it.totalSecretCan.moneyFormat()
|
||||
|
||||
if (it.totalSecretCan > 0) {
|
||||
dialogView.llTotalCanSubTitle.visibility = View.VISIBLE
|
||||
dialogView.tvTotalSecretCan.visibility = View.VISIBLE
|
||||
dialogView.tvTotalCanSlash.visibility = View.VISIBLE
|
||||
} else {
|
||||
dialogView.llTotalCanSubTitle.visibility = View.GONE
|
||||
dialogView.tvTotalSecretCan.visibility = View.GONE
|
||||
dialogView.tvTotalCanSlash.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user