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