Push-Definitions/Sources/Push-API/DeviceRegistration.swift
2022-06-05 11:47:58 +02:00

25 lines
548 B
Swift

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 {
}