Skip to content

Commit be07ab9

Browse files
committed
Add FileMetadata model
1 parent 2ae8037 commit be07ab9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import Foundation
2+
3+
public struct FileMetadata: Sendable, Equatable, Identifiable, Decodable {
4+
public init(
5+
id: String,
6+
name: String,
7+
pathDisplay: String,
8+
pathLower: String,
9+
clientModified: Date,
10+
serverModified: Date,
11+
isDownloadable: Bool
12+
) {
13+
self.id = id
14+
self.name = name
15+
self.pathDisplay = pathDisplay
16+
self.pathLower = pathLower
17+
self.clientModified = clientModified
18+
self.serverModified = serverModified
19+
self.isDownloadable = isDownloadable
20+
}
21+
22+
public var id: String
23+
public var name: String
24+
public var pathDisplay: String
25+
public var pathLower: String
26+
public var clientModified: Date
27+
public var serverModified: Date
28+
public var isDownloadable: Bool
29+
}

0 commit comments

Comments
 (0)