콘텐츠 배너

- 시리즈에 연결되는 배너 타입 추가
This commit is contained in:
klaus 2025-01-17 14:35:54 +09:00
parent 8c848bd1ef
commit a167e976a8
3 changed files with 24 additions and 1 deletions

View File

@ -146,6 +146,17 @@
<option name="screenX" value="1080" /> <option name="screenX" value="1080" />
<option name="screenY" value="2340" /> <option name="screenY" value="2340" />
</PersistentDeviceSelectionData> </PersistentDeviceSelectionData>
<PersistentDeviceSelectionData>
<option name="api" value="34" />
<option name="brand" value="samsung" />
<option name="codename" value="e3q" />
<option name="id" value="e3q" />
<option name="manufacturer" value="Samsung" />
<option name="name" value="Galaxy S24 Ultra" />
<option name="screenDensity" value="450" />
<option name="screenX" value="1440" />
<option name="screenY" value="3120" />
</PersistentDeviceSelectionData>
<PersistentDeviceSelectionData> <PersistentDeviceSelectionData>
<option name="api" value="33" /> <option name="api" value="33" />
<option name="brand" value="google" /> <option name="brand" value="google" />

View File

@ -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 -> { AudioContentBannerType.LINK -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(it.link!!))) startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(it.link!!)))
} }

View File

@ -56,6 +56,7 @@ data class GetAudioContentBannerResponse(
@SerializedName("thumbnailImageUrl") val thumbnailImageUrl: String, @SerializedName("thumbnailImageUrl") val thumbnailImageUrl: String,
@SerializedName("eventItem") val eventItem: EventItem?, @SerializedName("eventItem") val eventItem: EventItem?,
@SerializedName("creatorId") val creatorId: Long?, @SerializedName("creatorId") val creatorId: Long?,
@SerializedName("seriesId") val seriesId: Long?,
@SerializedName("link") val link: String? @SerializedName("link") val link: String?
) )
@ -67,5 +68,8 @@ enum class AudioContentBannerType {
CREATOR, CREATOR,
@SerializedName("LINK") @SerializedName("LINK")
LINK LINK,
@SerializedName("SERIES")
SERIES
} }