Push-Definitions/Sources/Push-API/DeviceRegistration.swift

25 lines
548 B
Swift
Raw Normal View History

2022-06-05 11:47:58 +02:00
import Foundation
/**
An object containing the information required to issue a registration request to the server.
*/
struct DeviceRegistration {
/// The push token of the registering device
let pushToken: PushToken
/// The application id for which the device wants to register
let application: ApplicationId
/**
A custom name for the device.
The name is displayed when registered users request a list of all devices in an application.
*/
let name: String
}
extension DeviceRegistration: Codable {
}