Push-Definitions/Sources/PushMessageDefinitions/AdminRequest.swift

24 lines
630 B
Swift
Raw Normal View History

2022-06-07 17:03:29 +02:00
import Foundation
/**
Authentication used to request application changes by an administrator
*/
public struct AdminRequest: Codable {
/// The SHA-256 hash of the admin key
public let keyHash: Data
/// The application id with which the request is associated
public let application: ApplicationId
2022-06-07 17:14:20 +02:00
/**
Create a new admin request.
- Parameter keyHash: The SHA256 hash of the admin key
- Parameter application: The application id for the request.
*/
public init(keyHash: Data, application: ApplicationId) {
self.keyHash = keyHash
self.application = application
}
2022-06-07 17:03:29 +02:00
}