Push-Definitions/Sources/PushAPI/DeviceRegistration.swift

21 lines
541 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.
*/
2022-06-05 12:10:38 +02:00
public struct DeviceRegistration: Codable {
2022-06-05 11:47:58 +02:00
/// The push token of the registering device
2022-06-05 12:13:47 +02:00
public let pushToken: PushToken
2022-06-05 11:47:58 +02:00
/// The application id for which the device wants to register
2022-06-05 12:13:47 +02:00
public let application: ApplicationId
2022-06-05 11:47:58 +02:00
/**
A custom name for the device.
The name is displayed when registered users request a list of all devices in an application.
*/
2022-06-05 12:13:47 +02:00
public let name: String
2022-06-05 11:47:58 +02:00
}