import Foundation

extension UNAuthorizationStatus {
    func getAuthorizationStatusString() -> String {
        switch self {
        case .notDetermined:
            return "notDetermined"
        case .denied:
            return "denied"
        case .authorized:
            return "authorized"
        case .provisional:
            return "provisional"
        case .ephemeral:
            return "ephemeral"
        @unknown default:
            return "notDetermined"
        }
    }
}
