Add ncKitAccount property to NextcloudAccount

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-01-13 01:34:57 +01:00
parent 2b5425390d
commit 9e2c8f355d
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -17,7 +17,7 @@ import FileProvider
class NextcloudAccount: NSObject { class NextcloudAccount: NSObject {
let webDavFilesUrlSuffix: String = "/remote.php/dav/files/" let webDavFilesUrlSuffix: String = "/remote.php/dav/files/"
let username, password: String? let username, password, ncKitAccount: String?
let serverUrl, davFilesUrl: URL? let serverUrl, davFilesUrl: URL?
var isNull: Bool { var isNull: Bool {
@ -50,6 +50,7 @@ class NextcloudAccount: NSObject {
username = usernameString username = usernameString
password = passwordString password = passwordString
ncKitAccount = usernameString + " " + serverUrlString
serverUrl = serverUrlUrl serverUrl = serverUrlUrl
davFilesUrl = davFilesUrlUrl davFilesUrl = davFilesUrlUrl