Push-Definitions/Sources/PushAPI/AuthenticatedPushMessage.swift

22 lines
487 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.
*/
struct AuthenticatedPushMessage {
/// The device sending the message
let sender: DeviceAuthentication
/// The message to send
let message: PushMessage
}
extension AuthenticatedPushMessage: Codable {
}