TootNotification
public struct TootNotification : Codable, Hashable, Identifiable, Sendable
Represents a notification of an event relevant to the user.
-
Undocumented
Declaration
Swift
public init(id: String, type: TootNotification.NotificationType, account: Account, createdAt: Date, post: Post? = nil)
-
The id of the notification in the database.
Declaration
Swift
public var id: String
-
The type of event that resulted in the notification.
Declaration
Swift
public var type: NotificationType
-
The account that performed the action that generated the notification.
Declaration
Swift
public var account: Account
-
The timestamp of the notification.
Declaration
Swift
public var createdAt: Date
-
Post that was the object of the notification, e.g. in mentions, reposts, favourites, or polls.
Declaration
Swift
public var post: Post?
-
Undocumented
See moreDeclaration
Swift
public enum NotificationType : String, Codable, Sendable
extension TootNotification.NotificationType: Identifiable