diff --git a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentAdapter.kt b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentAdapter.kt
index eb1ed87..fc8e2df 100644
--- a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentAdapter.kt
+++ b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentAdapter.kt
@@ -40,23 +40,37 @@ class AudioContentAdapter(
binding.tvLikeCount.text = item.likeCount.moneyFormat()
binding.tvCommentCount.text = item.commentCount.moneyFormat()
+ binding.tvPrice.visibility = View.GONE
+ binding.tvOwned.visibility = View.GONE
+ binding.tvRented.visibility = View.GONE
+ binding.tvSoldOut.visibility = View.GONE
+
binding.tvScheduledToOpen.visibility = if (item.isScheduledToOpen) {
View.VISIBLE
} else {
View.GONE
}
- if (item.price < 1) {
- binding.tvPrice.text = "무료"
- binding.tvPrice.setCompoundDrawables(null, null, null, null)
+ if (item.isOwned) {
+ binding.tvOwned.visibility = View.VISIBLE
+ } else if (item.isRented) {
+ binding.tvRented.visibility = View.VISIBLE
+ } else if (item.isSoldOut) {
+ binding.tvSoldOut.visibility = View.VISIBLE
} else {
- binding.tvPrice.text = item.price.moneyFormat()
- binding.tvPrice.setCompoundDrawablesWithIntrinsicBounds(
- R.drawable.ic_can,
- 0,
- 0,
- 0
- )
+ binding.tvPrice.visibility = View.VISIBLE
+ if (item.price < 1) {
+ binding.tvPrice.text = "무료"
+ binding.tvPrice.setCompoundDrawables(null, null, null, null)
+ } else {
+ binding.tvPrice.text = item.price.moneyFormat()
+ binding.tvPrice.setCompoundDrawablesWithIntrinsicBounds(
+ R.drawable.ic_can,
+ 0,
+ 0,
+ 0
+ )
+ }
}
binding.root.setOnClickListener { onClickItem(item.contentId) }
diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/GetCreatorProfileResponse.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/GetCreatorProfileResponse.kt
index b74fae3..714194d 100644
--- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/GetCreatorProfileResponse.kt
+++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/GetCreatorProfileResponse.kt
@@ -81,7 +81,10 @@ data class GetAudioContentListItem(
@SerializedName("commentCount") val commentCount: Int,
@SerializedName("isPin") val isPin: Boolean,
@SerializedName("isAdult") val isAdult: Boolean,
- @SerializedName("isScheduledToOpen") val isScheduledToOpen: Boolean
+ @SerializedName("isScheduledToOpen") val isScheduledToOpen: Boolean,
+ @SerializedName("isRented") val isRented: Boolean,
+ @SerializedName("isOwned") val isOwned: Boolean,
+ @SerializedName("isSoldOut") val isSoldOut: Boolean
)
data class GetCreatorActivitySummary(
diff --git a/app/src/main/res/layout/item_audio_content.xml b/app/src/main/res/layout/item_audio_content.xml
index 35663ff..b3350da 100644
--- a/app/src/main/res/layout/item_audio_content.xml
+++ b/app/src/main/res/layout/item_audio_content.xml
@@ -168,6 +168,56 @@
app:layout_constraintTop_toTopOf="@+id/iv_cover"
tools:text="300" />
+
+
+
+
+
+