2023-02-03 15:16:30 +01:00
|
|
|
//
|
|
|
|
// https://mczachurski.dev
|
|
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
2023-02-19 10:32:38 +01:00
|
|
|
import PixelfedKit
|
2023-02-03 15:16:30 +01:00
|
|
|
|
2023-02-19 10:43:37 +01:00
|
|
|
/// Pixelfed 'Notifications'.
|
2023-02-03 15:16:30 +01:00
|
|
|
extension Client {
|
|
|
|
public class Notifications: BaseClient {
|
|
|
|
public func notifications(maxId: MaxId? = nil,
|
|
|
|
sinceId: SinceId? = nil,
|
|
|
|
minId: MinId? = nil,
|
|
|
|
limit: Int? = nil
|
2023-02-19 10:32:38 +01:00
|
|
|
) async throws -> Linkable<[PixelfedKit.Notification]> {
|
2023-02-19 10:43:37 +01:00
|
|
|
return try await pixelfedClient.notifications(maxId: maxId, sinceId: sinceId, minId: minId, limit: limit)
|
2023-02-03 15:16:30 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|