mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Add comparison helper to NextcloudDirectoryMetadataTable
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
c4014e8b6a
commit
496b94a9a7
1 changed files with 7 additions and 0 deletions
|
@ -126,6 +126,13 @@ class NextcloudItemMetadataTable: Object {
|
|||
}
|
||||
|
||||
class NextcloudDirectoryMetadataTable: Object {
|
||||
func isInSameRemoteState(_ comparingMetadata: NextcloudDirectoryMetadataTable) -> Bool {
|
||||
return comparingMetadata.etag == self.etag &&
|
||||
comparingMetadata.e2eEncrypted == self.e2eEncrypted &&
|
||||
comparingMetadata.favorite == self.favorite &&
|
||||
comparingMetadata.permissions == self.permissions
|
||||
}
|
||||
|
||||
@objc dynamic var account = ""
|
||||
@objc dynamic var colorFolder: String?
|
||||
@objc dynamic var e2eEncrypted: Bool = false
|
||||
|
|
Loading…
Reference in a new issue