라이브 메인 페이지
This commit is contained in:
19
SodaLive/Sources/Live/LiveRepository.swift
Normal file
19
SodaLive/Sources/Live/LiveRepository.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// LiveRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/09.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class LiveRepository {
|
||||
private let api = MoyaProvider<LiveApi>()
|
||||
|
||||
func roomList(request: GetRoomListRequest) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.roomList(request: request))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user