mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Feature/3811 appconfig
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user