Skip to content

Commit 025bfaa

Browse files
committed
Outsourced AuthenticationAttemptResultState and EnumerateDepth into dedicated source code files.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
1 parent 2af78cb commit 025bfaa

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
2+
// SPDX-License-Identifier: LGPL-3.0-or-later
3+
4+
public enum AuthenticationAttemptResultState: Int {
5+
case authenticationError
6+
case connectionError
7+
case success
8+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
2+
// SPDX-License-Identifier: LGPL-3.0-or-later
3+
4+
///
5+
/// How far to traverse down the hierarchy.
6+
///
7+
public enum EnumerateDepth: String {
8+
///
9+
/// Only the item itself.
10+
///
11+
case target = "0"
12+
13+
///
14+
/// The item itself and its direct descendants.
15+
///
16+
case targetAndDirectChildren = "1"
17+
18+
///
19+
/// All the way down, even to the farthest descendant.
20+
///
21+
case targetAndAllChildren = "infinity"
22+
}

0 commit comments

Comments
 (0)