Notifications
public struct Notifications
Undocumented
-
Fetches a user’s notifications.
Declaration
Swift
public static func all(range: RequestRange = .default) -> Request<[Notification]>
Parameters
range
The bounds used when requesting data from Mastodon.
Return Value
Request for
[Notification]
. -
Gets a single notification.
Declaration
Swift
public static func notification(id: String) -> Request<Notification>
Parameters
id
The notification id.
Return Value
Request for
Notification
. -
Deletes all notifications for the authenticated user.
Return Value
Request for
Empty
. -
Deletes a single notification for the authenticated user.
Parameters
id
The notification id.
Return Value
Request for
Empty
.