Renamed the File model for the Browse module as Document.

This commit is contained in:
Javier Cicchelli 2022-12-14 01:10:45 +01:00
parent 02c6626d94
commit 627698e1bf
2 changed files with 41 additions and 30 deletions

View File

@ -0,0 +1,41 @@
//
// Document.swift
// Browse
//
// Created by Javier Cicchelli on 13/12/2022.
// Copyright © 2022 Röck+Cöde. All rights reserved.
//
import Foundation
struct Document {
// MARK: Properties
public let id: String
public let name: String
public let contentType: String
public let size: Int
public let lastModifiedAt: Date
// MARK: Initialisers
public init(
id: String,
name: String,
contentType: String,
size: Int,
lastModifiedAt: Date
) {
self.id = id
self.name = name
self.contentType = contentType
self.size = size
self.lastModifiedAt = lastModifiedAt
}
}
// MARK: - FileSystemIdIdentifiable
extension Document: FileSystemIdIdentifiable {}

View File

@ -1,30 +0,0 @@
//
// File.swift
// Browse
//
// Created by Javier Cicchelli on 13/12/2022.
// Copyright © 2022 Röck+Cöde. All rights reserved.
//
struct File {
// MARK: Properties
public let id: String
public let name: String
// MARK: Initialisers
public init(
id: String,
name: String
) {
self.id = id
self.name = name
}
}
// MARK: - ModelIdentifiable
extension File: ModelIdentifiable {}