25 lines
599 B
Swift
25 lines
599 B
Swift
//
|
|
// ContentMainTabReplayRepository.swift
|
|
// SodaLive
|
|
//
|
|
// Created by klaus on 2/22/25.
|
|
//
|
|
|
|
import Foundation
|
|
import CombineMoya
|
|
import Combine
|
|
import Moya
|
|
|
|
final class ContentMainTabReplayRepository {
|
|
|
|
private let api = MoyaProvider<ContentApi>()
|
|
|
|
func getContentMainReplay() -> AnyPublisher<Response, MoyaError> {
|
|
return api.requestPublisher(.getContentMainReplay)
|
|
}
|
|
|
|
func getPopularContentByCreator(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
|
|
return api.requestPublisher(.getPopularReplayContentByCreator(creatorId: creatorId))
|
|
}
|
|
}
|