* Switch license file to AGPL * Update file copyright headers * Update the default project file header
30 lines
683 B
Swift
30 lines
683 B
Swift
//
|
|
// Copyright 2022-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum SecureBackupScreenViewModelAction {
|
|
case recoveryKey
|
|
case keyBackup
|
|
}
|
|
|
|
struct SecureBackupScreenViewState: BindableState {
|
|
let chatBackupDetailsURL: URL
|
|
var recoveryState = SecureBackupRecoveryState.unknown
|
|
var keyBackupState = SecureBackupKeyBackupState.unknown
|
|
var bindings = SecureBackupScreenViewStateBindings()
|
|
}
|
|
|
|
struct SecureBackupScreenViewStateBindings {
|
|
var alertInfo: AlertInfo<UUID>?
|
|
}
|
|
|
|
enum SecureBackupScreenViewAction {
|
|
case recoveryKey
|
|
case keyBackup
|
|
}
|