diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-06-02 07:28:10 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-06-02 07:28:10 -0500 |
| commit | 2efd8278ce9a5a895fe0c75bd95080ecc386163b (patch) | |
| tree | 4637e61c969639df8475ed6bb4aeac5437c35b64 /src/slskd/State.cs | |
| parent | cbffe2d38e5b7b0831eeacff7ba1ef7973f4f85c (diff) | |
| download | slskd-2efd8278ce9a5a895fe0c75bd95080ecc386163b.tar.gz | |
differentiate configured shares vs cached shares
Diffstat (limited to 'src/slskd/State.cs')
| -rw-r--r-- | src/slskd/State.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/slskd/State.cs b/src/slskd/State.cs index 407aeb9e..10ed80f6 100644 --- a/src/slskd/State.cs +++ b/src/slskd/State.cs @@ -21,6 +21,7 @@ namespace slskd using System.Collections.Generic; using System.Net; using System.Text.Json.Serialization; + using slskd.Shares; using slskd.Users; using Soulseek; @@ -32,7 +33,6 @@ namespace slskd public VersionState Version { get; init; } = new VersionState(); public bool PendingReconnect { get; init; } public bool PendingRestart { get; init; } - public bool PendingShareRescan { get; init; } public ServerState Server { get; init; } = new ServerState(); public DistributedNetworkState DistributedNetwork { get; init; } = new DistributedNetworkState(); public ShareState Shares { get; init; } = new ShareState(); @@ -69,7 +69,7 @@ namespace slskd public string BranchRoot { get; init; } public bool CanAcceptChildren { get; init; } public int ChildLimit { get; init; } - public IReadOnlyCollection<string> Children { get; init; } + public IReadOnlyCollection<string> Children { get; init; } = new List<string>().AsReadOnly(); public bool HasParent { get; init; } public bool IsBranchRoot { get; init; } public string Parent { get; init; } @@ -124,5 +124,10 @@ namespace slskd /// Gets the number of directories excluded by filters. /// </summary> public int ExcludedDirectories { get; init; } + + /// <summary> + /// Gets the list of shares stored in the cache. + /// </summary> + public IReadOnlyCollection<Share> Shares { get; init; } = new List<Share>().AsReadOnly(); } }
\ No newline at end of file |
