라이브 - 방만들기 추가

This commit is contained in:
Yu Sung
2023-08-14 11:21:03 +09:00
parent cf0607334a
commit e0a5fb733d
18 changed files with 1529 additions and 10 deletions

View File

@@ -44,4 +44,16 @@ final class LiveRepository {
func enterRoom(request: EnterOrQuitLiveRoomRequest) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.enterRoom(request: request))
}
func getRecentRoomInfo() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getRecentRoomInfo)
}
func createRoom(parameters: [MultipartFormData]) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.createRoom(parameters: parameters))
}
func startLive(roomId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.startLive(request: StartLiveRequest(roomId: roomId)))
}
}