Feature/3811 appconfig

This commit is contained in:
Frank Rotermund
2023-09-19 11:21:12 +00:00
parent e3cfb301a9
commit 5dd5dc2db7
13 changed files with 205 additions and 145 deletions
@@ -16,6 +16,7 @@
*/
import Foundation
import SwiftUI
enum ServerDowntimeStatus {
case none
@@ -23,6 +24,10 @@ enum ServerDowntimeStatus {
case ongoing
}
enum ServerMaintenanceAlertType {
case showServerMaintenanceInfoMessageAlert, showServerMaintenanceDefaultAlert, showInvalidAppVersionAlert, showDowntimeTimeAlert
}
enum ServerDowntimeType: String {
case adhocMessage = "ADHOC_MESSAGE"
case maintenance = "MAINTENANCE"
@@ -38,4 +43,7 @@ protocol ServerDowntimeService {
func isBlocking() -> Bool
func setManuallyIgnored()
func isManuallyIgnored() -> Bool
func alert( alertType:ServerMaintenanceAlertType, completion: @escaping () -> Void) -> Alert
func showAlert() -> Bool
func alertType() -> ServerMaintenanceAlertType
}