SDK Reference v2.0.0 / NotificationHistoryModel

NotificationHistoryModel

struct NotificationHistoryModel : Identifiable, Decodable

Information about a notification for a participant.


ID
typealias MyDataHelpsKit.NotificationHistoryModel.ID = ScopedIdentifier<NotificationHistoryModel, String>

Auto-generated, globally-unique identifier for a NotificationHistoryModel.

id
let id: ID

Auto-generated, globally-unique identifier for this notification.

identifier
let identifier: String

Identifier for the notification configuration.

sentDate
let sentDate: Date

If the notification was sent, the date at which the notification was sent.

statusCode
let statusCode: NotificationSendStatusCode

Describes whether the notification was sent.

content
let content: NotificationContent

The content of the notification, varying by the notification type.

Use content.type to determine the NotificationType value. The associated enum value of content contains the actual content, and may be nil if the notification was not sent successfully.

init(from:)
init(from decoder: Decoder) throws

Initializes from a decoder.

decoder

The decoder.