Files
bundesmessenger-ios/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountParameters.swift
T
Mauro Romito 12837d4b89 update license
2024-09-25 12:24:52 +02:00

29 lines
880 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
/// Account deactivation parameters for password deactivation.
struct DeactivateAccountPasswordParameters: DictionaryEncodable {
/// The type of authentication being used.
let type = kMXLoginFlowTypePassword
/// The account's matrix ID.
let user: String
/// The account's password.
let password: String
}
/// Account deactivation parameters for use after fallback authentication has completed.
struct DeactivateAccountDummyParameters: DictionaryEncodable {
/// The type of authentication being used.
let type = kMXLoginFlowTypeDummy
/// The account's matrix ID.
let user: String
/// The session ID used when completing authentication.
let session: String
}