콘텐츠 배너
- 시리즈에 연결되는 배너 타입 추가
This commit is contained in:
@@ -354,6 +354,14 @@ class AudioContentMainFragment : BaseFragment<FragmentAudioContentMainBinding>(
|
||||
)
|
||||
}
|
||||
|
||||
AudioContentBannerType.SERIES -> {
|
||||
startActivity(
|
||||
Intent(requireContext(), SeriesDetailActivity::class.java).apply {
|
||||
putExtra(Constants.EXTRA_SERIES_ID, it.seriesId!!)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
AudioContentBannerType.LINK -> {
|
||||
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(it.link!!)))
|
||||
}
|
||||
|
@@ -56,6 +56,7 @@ data class GetAudioContentBannerResponse(
|
||||
@SerializedName("thumbnailImageUrl") val thumbnailImageUrl: String,
|
||||
@SerializedName("eventItem") val eventItem: EventItem?,
|
||||
@SerializedName("creatorId") val creatorId: Long?,
|
||||
@SerializedName("seriesId") val seriesId: Long?,
|
||||
@SerializedName("link") val link: String?
|
||||
)
|
||||
|
||||
@@ -67,5 +68,8 @@ enum class AudioContentBannerType {
|
||||
CREATOR,
|
||||
|
||||
@SerializedName("LINK")
|
||||
LINK
|
||||
LINK,
|
||||
|
||||
@SerializedName("SERIES")
|
||||
SERIES
|
||||
}
|
||||
|
Reference in New Issue
Block a user