라이브 방 - 19금 방인 경우 제목 왼쪽에 19 표시

This commit is contained in:
2023-08-20 23:44:41 +09:00
parent bb7476f640
commit 01512abaf0
3 changed files with 32 additions and 10 deletions

View File

@@ -558,6 +558,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
}
viewModel.roomInfoLiveData.observe(this) { response ->
binding.iv19.visibility = if (response.isAdult) {
View.VISIBLE
} else {
View.GONE
}
binding.tvTitle.text = response.title
binding.ivCover.load(response.coverImageUrl) {
crossfade(true)

View File

@@ -14,6 +14,7 @@ data class GetRoomInfoResponse(
@SerializedName("creatorNickname") val creatorNickname: String,
@SerializedName("creatorProfileUrl") val creatorProfileUrl: String,
@SerializedName("isFollowing") val isFollowing: Boolean,
@SerializedName("isAdult") val isAdult: Boolean,
@SerializedName("participantsCount") val participantsCount: Int,
@SerializedName("totalAvailableParticipantsCount") val totalAvailableParticipantsCount: Int,
@SerializedName("speakerList") val speakerList: List<LiveRoomMember>,