// // HomeTabRepository.swift // SodaLive // // Created by klaus on 7/10/25. // import Foundation import CombineMoya import Combine import Moya class HomeTabRepository { private let api = MoyaProvider() func fetchData() -> AnyPublisher { return api.requestPublisher(.getHomeData) } func getLatestContentByTheme(theme: String) -> AnyPublisher { return api.requestPublisher(.getLatestContentByTheme(theme: theme)) } func getDayOfWeekSeriesList(dayOfWeek: SeriesPublishedDaysOfWeek) -> AnyPublisher { return api.requestPublisher(.getDayOfWeekSeriesList(dayOfWeek: dayOfWeek)) } func getRecommendContents() -> AnyPublisher { return api.requestPublisher(.getRecommendContents) } func getContentRankingBySort(sort: ContentRankingSortType) -> AnyPublisher { return api.requestPublisher(.getContentRankingBySort(sort: sort)) } }