NotificationLogRowContext
struct NotificationLogRowContext : Encodable
A single row in the rendered Notification Log page – NotificationLogData plus a precomputed
link to the content it refers to, since several notification types have no viewable page for
ordinary users (e.g. announcement, microKaraokeSongReady).
-
Declaration
Swift
var info: String -
Declaration
Swift
var createdAt: Date -
Declaration
Swift
var viewURL: String? -
Declaration
Swift
init(_ entry: NotificationLogData) -
Maps a notification’s type + contentID to the Site-layer URL that shows the content it refers to. Returns nil for types with no single-item view a regular user can reach (handled in Leaf – those rows just show their
infotext without a “View” link).Declaration
Swift
static func viewURL(type: SocketNotificationData.NotificationTypeData, contentID: String) -> String?
View on GitHub