From 1d3350d498f9331d4b552794df5ac93a1e290bab Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 17 Jan 2025 14:35:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=B0=B0?= =?UTF-8?q?=EB=84=88=20-=20=EC=8B=9C=EB=A6=AC=EC=A6=88=EC=97=90=20?= =?UTF-8?q?=EC=97=B0=EA=B2=B0=EB=90=98=EB=8A=94=20=EB=B0=B0=EB=84=88=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Content/Main/Banner/ContentMainBannerView.swift | 4 ++++ .../Sources/Content/Main/GetAudioContentMainResponse.swift | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/Content/Main/Banner/ContentMainBannerView.swift b/SodaLive/Sources/Content/Main/Banner/ContentMainBannerView.swift index a3dbbc6..e1e79c2 100644 --- a/SodaLive/Sources/Content/Main/Banner/ContentMainBannerView.swift +++ b/SodaLive/Sources/Content/Main/Banner/ContentMainBannerView.swift @@ -40,6 +40,8 @@ struct ContentMainBannerView: View { AppState.shared.setAppStep(step: .eventDetail(event: item.eventItem!)) case .CREATOR: AppState.shared.setAppStep(step: .creatorDetail(userId: item.creatorId!)) + case .SERIES: + AppState.shared.setAppStep(step: .seriesDetail(seriesId: item.seriesId!)) case .LINK: if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) @@ -68,6 +70,8 @@ struct ContentMainBannerView: View { AppState.shared.setAppStep(step: .eventDetail(event: item.eventItem!)) case .CREATOR: AppState.shared.setAppStep(step: .creatorDetail(userId: item.creatorId!)) + case .SERIES: + AppState.shared.setAppStep(step: .seriesDetail(seriesId: item.seriesId!)) case .LINK: if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) diff --git a/SodaLive/Sources/Content/Main/GetAudioContentMainResponse.swift b/SodaLive/Sources/Content/Main/GetAudioContentMainResponse.swift index ab856d5..e4c8b17 100644 --- a/SodaLive/Sources/Content/Main/GetAudioContentMainResponse.swift +++ b/SodaLive/Sources/Content/Main/GetAudioContentMainResponse.swift @@ -64,9 +64,10 @@ struct GetAudioContentBannerResponse: Decodable { let thumbnailImageUrl: String let eventItem: EventItem? let creatorId: Int? + let seriesId: Int? let link: String? } enum AudioContentBannerType: String, Decodable { - case EVENT, CREATOR, LINK + case EVENT, CREATOR, LINK, SERIES }