feat: 크리에이터 채널 - 콘텐츠 리스트
- 포인트 사용 가능 여부 표시
This commit is contained in:
@@ -28,6 +28,12 @@ class AudioContentAdapter(
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.tvPoint.visibility = if (item.isPointAvailable) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.ivCover.load(item.coverImageUrl) {
|
||||
crossfade(true)
|
||||
placeholder(R.drawable.bg_placeholder)
|
||||
|
||||
@@ -96,7 +96,7 @@ class AudioContentNewAllAdapter(
|
||||
|
||||
override fun getItemCount() = items.size
|
||||
|
||||
override fun onBindViewHolder(holder: AudioContentNewAllAdapter.ViewHolder, position: Int) {
|
||||
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
|
||||
holder.bind(items[position])
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,8 @@ data class GetAudioContentListItem(
|
||||
@SerializedName("isScheduledToOpen") val isScheduledToOpen: Boolean,
|
||||
@SerializedName("isRented") val isRented: Boolean,
|
||||
@SerializedName("isOwned") val isOwned: Boolean,
|
||||
@SerializedName("isSoldOut") val isSoldOut: Boolean
|
||||
@SerializedName("isSoldOut") val isSoldOut: Boolean,
|
||||
@SerializedName("isPointAvailable") val isPointAvailable: Boolean
|
||||
)
|
||||
|
||||
@Keep
|
||||
|
||||
Reference in New Issue
Block a user