Push-Definitions/Sources/PushMessageDefinitions/AdminRequest.swift
2022-06-09 11:48:00 +02:00

24 lines
630 B
Swift

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
/**
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
}
}