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

18 lines
453 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
let sender: DeviceAuthentication
/// The message to send
let message: PushMessage
}