Renamed the File model for the Browse module as Document.
This commit is contained in:
parent
02c6626d94
commit
627698e1bf
41
Modules/Sources/Browse/Logic/Models/Document.swift
Normal file
41
Modules/Sources/Browse/Logic/Models/Document.swift
Normal 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 {}
|
@ -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 {}
|
Loading…
x
Reference in New Issue
Block a user