|
6 | 6 | import Foundation |
7 | 7 |
|
8 | 8 | public struct NKFile: Sendable { |
9 | | - public var account = "" |
10 | | - public var classFile = "" |
11 | | - public var commentsUnread: Bool = false |
12 | | - public var contentType = "" |
13 | | - public var checksums = "" |
| 9 | + public var account: String |
| 10 | + public var classFile: String |
| 11 | + public var commentsUnread: Bool |
| 12 | + public var contentType: String |
| 13 | + public var checksums: String |
14 | 14 | public var creationDate: Date? |
15 | | - public var dataFingerprint = "" |
16 | | - public var date = Date() |
17 | | - public var directory: Bool = false |
18 | | - public var downloadURL = "" |
| 15 | + public var dataFingerprint: String |
| 16 | + public var date: Date |
| 17 | + public var directory: Bool |
| 18 | + public var downloadURL: String |
19 | 19 |
|
20 | 20 | /// |
21 | 21 | /// Download limits for shares of this file. |
22 | 22 | /// |
23 | | - public var downloadLimits = [NKDownloadLimit]() |
| 23 | + public var downloadLimits: [NKDownloadLimit] |
24 | 24 |
|
25 | | - public var e2eEncrypted: Bool = false |
26 | | - public var etag = "" |
27 | | - public var favorite: Bool = false |
28 | | - public var fileId = "" |
29 | | - public var fileName = "" |
30 | | - public var hasPreview: Bool = false |
31 | | - public var iconName = "" |
32 | | - public var mountType = "" |
33 | | - public var name = "" |
34 | | - public var note = "" |
35 | | - public var ocId = "" |
36 | | - public var ownerId = "" |
37 | | - public var ownerDisplayName = "" |
38 | | - public var lock = false |
39 | | - public var lockOwner = "" |
40 | | - public var lockOwnerEditor = "" |
41 | | - public var lockOwnerType = 0 |
42 | | - public var lockOwnerDisplayName = "" |
| 25 | + public var e2eEncrypted: Bool |
| 26 | + public var etag: String |
| 27 | + public var favorite: Bool |
| 28 | + public var fileId: String |
| 29 | + public var fileName: String |
| 30 | + public var hasPreview: Bool |
| 31 | + public var iconName: String |
| 32 | + public var mountType: String |
| 33 | + public var name: String |
| 34 | + public var note: String |
| 35 | + public var ocId: String |
| 36 | + public var ownerId: String |
| 37 | + public var ownerDisplayName: String |
| 38 | + public var lock: Bool |
| 39 | + public var lockOwner: String |
| 40 | + public var lockOwnerEditor: String |
| 41 | + public var lockOwnerType: Int |
| 42 | + public var lockOwnerDisplayName: String |
43 | 43 | public var lockTime: Date? |
44 | 44 | public var lockTimeOut: Date? |
45 | | - public var path = "" |
46 | | - public var permissions = "" |
47 | | - public var quotaUsedBytes: Int64 = 0 |
48 | | - public var quotaAvailableBytes: Int64 = 0 |
49 | | - public var resourceType = "" |
| 45 | + public var path: String |
| 46 | + public var permissions: String |
| 47 | + public var quotaUsedBytes: Int64 |
| 48 | + public var quotaAvailableBytes: Int64 |
| 49 | + public var resourceType: String |
50 | 50 | public var richWorkspace: String? |
51 | | - public var sharePermissionsCollaborationServices: Int = 0 |
52 | | - public var sharePermissionsCloudMesh: [String] = [] |
53 | | - public var shareType: [Int] = [] |
54 | | - public var size: Int64 = 0 |
55 | | - public var serverUrl = "" |
56 | | - public var tags: [String] = [] |
57 | | - public var trashbinFileName = "" |
58 | | - public var trashbinOriginalLocation = "" |
59 | | - public var trashbinDeletionTime = Date() |
| 51 | + public var sharePermissionsCollaborationServices: Int |
| 52 | + public var sharePermissionsCloudMesh: [String] |
| 53 | + public var shareType: [Int] |
| 54 | + public var size: Int64 |
| 55 | + public var serverUrl: String |
| 56 | + public var tags: [String] |
| 57 | + public var trashbinFileName: String |
| 58 | + public var trashbinOriginalLocation: String |
| 59 | + public var trashbinDeletionTime: Date |
60 | 60 | public var uploadDate: Date? |
61 | | - public var urlBase = "" |
62 | | - public var user = "" |
63 | | - public var userId = "" |
64 | | - public var latitude: Double = 0 |
65 | | - public var longitude: Double = 0 |
66 | | - public var altitude: Double = 0 |
67 | | - public var height: Double = 0 |
68 | | - public var width: Double = 0 |
69 | | - public var hidden = false |
| 61 | + public var urlBase: String |
| 62 | + public var user: String |
| 63 | + public var userId: String |
| 64 | + public var latitude: Double |
| 65 | + public var longitude: Double |
| 66 | + public var altitude: Double |
| 67 | + public var height: Double |
| 68 | + public var width: Double |
| 69 | + public var hidden: Bool |
70 | 70 | /// If this is not empty, the media is a live photo. New media gets this straight from server, but old media needs to be detected as live photo (look isFlaggedAsLivePhotoByServer) |
71 | | - public var livePhotoFile = "" |
| 71 | + public var livePhotoFile: String |
72 | 72 | /// Indicating if the file is sent as a live photo from the server, or if we should detect it as such and convert it client-side |
73 | | - public var isFlaggedAsLivePhotoByServer = false |
| 73 | + public var isFlaggedAsLivePhotoByServer: Bool |
74 | 74 | /// |
75 | 75 | public var datePhotosOriginal: Date? |
76 | 76 | /// |
77 | 77 | public struct ChildElement { |
78 | 78 | let name: String |
79 | 79 | let text: String? |
80 | 80 | } |
81 | | - public var exifPhotos = [[String: String?]]() |
| 81 | + public var exifPhotos: [[String: String?]] |
82 | 82 | public var placePhotos: String? |
83 | 83 |
|
84 | 84 | public init( |
|
0 commit comments