Files
sodalive-ios/SodaLive/Sources/Notification/List/PushNotificationRepository.swift

18 lines
534 B
Swift

import Foundation
import Combine
import CombineMoya
import Moya
final class PushNotificationRepository {
private let api = MoyaProvider<PushNotificationApi>()
func getPushNotificationCategories() -> AnyPublisher<Response, MoyaError> {
api.requestPublisher(.getPushNotificationCategories)
}
func getPushNotificationList(page: Int, size: Int, category: String?) -> AnyPublisher<Response, MoyaError> {
api.requestPublisher(.getPushNotificationList(page: page, size: size, category: category))
}
}