feat: 시리즈 상세 - 콘텐츠 리스트
- 포인트 사용 가능 여부 표시
This commit is contained in:
@@ -28,6 +28,12 @@ class SeriesContentAdapter(
|
||||
transformations(RoundedCornersTransformation(5.3f.dpToPx()))
|
||||
}
|
||||
|
||||
binding.tvPoint.visibility = if (item.isPointAvailable) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.tvTitle.text = item.title
|
||||
binding.tvDuration.text = item.duration
|
||||
|
||||
|
||||
@@ -21,5 +21,6 @@ data class GetSeriesContentListItem(
|
||||
@SerializedName("duration") val duration: String,
|
||||
@SerializedName("price") val price: Int,
|
||||
@SerializedName("isRented") var isRented: Boolean,
|
||||
@SerializedName("isOwned") var isOwned: Boolean
|
||||
@SerializedName("isOwned") var isOwned: Boolean,
|
||||
@SerializedName("isPointAvailable") var isPointAvailable: Boolean
|
||||
) : Parcelable
|
||||
|
||||
Reference in New Issue
Block a user