Push-Definitions/Sources/PushAPI/AuthenticatedPushMessage.swift

18 lines
453 B
Swift
Raw Normal View History

2022-06-05 11:47:58 +02:00
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.
*/
2022-06-05 12:10:38 +02:00
public struct AuthenticatedPushMessage: Codable {
2022-06-05 11:47:58 +02:00
/// The device sending the message
let sender: DeviceAuthentication
/// The message to send
let message: PushMessage
}