more work on gtk & code cleanup
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.FileRetention.Model;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.FileRetention.Model;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Apps.FileRetention;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.FileRetention.Ocs;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.FileRetention.Ocs;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.OCS;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Apps.FileRetention;
|
||||
|
||||
@@ -65,7 +65,7 @@ public class Column
|
||||
public int? TextMaxLength { get; set; }
|
||||
|
||||
[JsonProperty("selectionOptions")]
|
||||
public List<ColumnSelectionOption> SelectionOptions { get; } = new();
|
||||
public List<ColumnSelectionOption> SelectionOptions { get; } = [];
|
||||
|
||||
[JsonProperty("selectionDefault")]
|
||||
public int? SelectionDefault { get; set; }
|
||||
|
||||
@@ -23,5 +23,5 @@ public class Row
|
||||
public DateTime LastEditAt { get; set; }
|
||||
|
||||
[JsonProperty("data")]
|
||||
public List<RowData> Data { get; set; } = new();
|
||||
public List<RowData> Data { get; set; } = [];
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ namespace Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables.Model;
|
||||
public class RowUpdate
|
||||
{
|
||||
[JsonProperty("data")]
|
||||
public Dictionary<long, object?> Data { get; set; } = new();
|
||||
public Dictionary<long, object?> Data { get; set; } = [];
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables.Model;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables.Model;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.OCS;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables.Model;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables.Model;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Apps.Tables;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Model;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Model;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Cloud;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Ocs;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Ocs;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Model;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Pilz.Net.CloudProviders.Nextcloud;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Ocs;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.Client.Cloud.Ocs;
|
||||
using Pilz.Net.CloudProviders.Nextcloud.OCS;
|
||||
|
||||
namespace Pilz.Net.CloudProviders.Nextcloud.Client.Cloud;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Pilz.Net.CloudProviders.Nextcloud;
|
||||
|
||||
public class NextcloudClient : IDisposable
|
||||
{
|
||||
private readonly List<ClientBase> clients = new();
|
||||
private readonly List<ClientBase> clients = [];
|
||||
private NextcloudLogin? currentLogin;
|
||||
|
||||
public OcsApi Ocs { get; init; } = new();
|
||||
|
||||
@@ -13,7 +13,7 @@ public class OcsApi : IDisposable
|
||||
public event GetOcsApiAuthCredentailsEventHandler? GetOcsApiAuthCredentails;
|
||||
|
||||
private readonly HttpClient client = new();
|
||||
private readonly List<OcsApiBase> apis = new();
|
||||
private readonly List<OcsApiBase> apis = [];
|
||||
|
||||
public string BaseUrl { get; set; } = string.Empty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user