Push-Definitions/Sources/PushAPI/AuthenticatedPushMessage.swift
2022-06-05 12:13:47 +02:00

18 lines
467 B
Swift

import Foundation
/**
A push message to send to the push server.
This structure contains the content of the notification, as well as all data to send the notification to one or more recipients.
The message contains the authorization of the sender as well.
*/
public struct AuthenticatedPushMessage: Codable {
/// The device sending the message
public let sender: DeviceAuthentication
/// The message to send
public let message: PushMessage
}