18 lines
534 B
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))
|
|
}
|
|
}
|