feat: 신규 홈 추가
This commit is contained in:
35
SodaLive/Sources/Home/HomeTabViewModel.swift
Normal file
35
SodaLive/Sources/Home/HomeTabViewModel.swift
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// HomeTabViewModel.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 7/10/25.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
enum SeriesPublishedDaysOfWeek: String, Encodable {
|
||||
case SUN, MON, TUE, WED, THU, FRI, SAT, RANDOM
|
||||
}
|
||||
|
||||
final class HomeTabViewModel: ObservableObject {
|
||||
private let repository = HomeTabRepository()
|
||||
private var subscription = Set<AnyCancellable>()
|
||||
|
||||
@Published var errorMessage = ""
|
||||
@Published var isShowPopup = false
|
||||
@Published var isLoading = false
|
||||
|
||||
@Published var liveList: [GetRoomListResponse] = []
|
||||
@Published var creatorRanking: [GetExplorerSectionCreatorResponse] = []
|
||||
@Published var latestContentThemeList: [String] = []
|
||||
@Published var latestContentList: [AudioContentMainItem] = []
|
||||
@Published var eventBannerList: GetEventResponse? = nil
|
||||
@Published var originalAudioDramaList: [SeriesListItem] = []
|
||||
@Published var auditionList: [GetAuditionListItem] = []
|
||||
@Published var dayOfWeekSeriesList: [SeriesListItem] = []
|
||||
@Published var contentRanking: [GetAudioContentRankingItem] = []
|
||||
@Published var recommendChannelList: [RecommendChannelResponse] = []
|
||||
@Published var freeContentList: [AudioContentMainItem] = []
|
||||
@Published var curationList: [GetContentCurationResponse] = []
|
||||
}
|
||||
Reference in New Issue
Block a user