Fixed the naming of the FileSystemIdIdentifiable protocol for the Browse module as FileSystemItemIdentifiable.
This commit is contained in:
parent
37490ba3d7
commit
98db94d180
@ -38,4 +38,4 @@ struct Document {
|
|||||||
|
|
||||||
// MARK: - FileSystemIdIdentifiable
|
// MARK: - FileSystemIdIdentifiable
|
||||||
|
|
||||||
extension Document: FileSystemIdIdentifiable {}
|
extension Document: FileSystemItemIdentifiable {}
|
||||||
|
@ -27,7 +27,7 @@ public struct Folder {
|
|||||||
|
|
||||||
// MARK: - FileSystemIdIdentifiable
|
// MARK: - FileSystemIdIdentifiable
|
||||||
|
|
||||||
extension Folder: FileSystemIdIdentifiable {}
|
extension Folder: FileSystemItemIdentifiable {}
|
||||||
|
|
||||||
// MARK: - Equatable
|
// MARK: - Equatable
|
||||||
|
|
||||||
|
@ -13,4 +13,4 @@ protocol FileSystemItem {
|
|||||||
|
|
||||||
// MARK: - Type aliases
|
// MARK: - Type aliases
|
||||||
|
|
||||||
typealias FileSystemIdIdentifiable = FileSystemItem & Identifiable
|
typealias FileSystemItemIdentifiable = FileSystemItem & Identifiable & Hashable
|
||||||
|
@ -22,7 +22,7 @@ struct GetItemsUseCase {
|
|||||||
id: String,
|
id: String,
|
||||||
username: String,
|
username: String,
|
||||||
password: String
|
password: String
|
||||||
) async throws -> [any FileSystemIdIdentifiable] {
|
) async throws -> [any FileSystemItemIdentifiable] {
|
||||||
let items = try await apiService.getItems(
|
let items = try await apiService.getItems(
|
||||||
id: id,
|
id: id,
|
||||||
credentials: .init(
|
credentials: .init(
|
||||||
@ -32,7 +32,7 @@ struct GetItemsUseCase {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return items
|
return items
|
||||||
.compactMap { item -> any FileSystemIdIdentifiable in
|
.compactMap { item -> any FileSystemItemIdentifiable in
|
||||||
if item.isDirectory {
|
if item.isDirectory {
|
||||||
return Folder(
|
return Folder(
|
||||||
id: item.id,
|
id: item.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user