diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-12-31 16:50:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-31 16:50:27 -0600 |
| commit | ce67db39e0fa02a764a13546043e71d25d338219 (patch) | |
| tree | 84c6818063270d78f6655342450012385b8a205f /src/slskd/Relay/API/Hubs | |
| parent | 49bc255026aa5ef2c4df0727134b7627808270fc (diff) | |
| parent | d259789fcb605aa9d87857ba2fba8c35604297c2 (diff) | |
| download | slskd-ce67db39e0fa02a764a13546043e71d25d338219.tar.gz | |
Merge pull request #815 from slskd/relay-down
Add the ability to configure Relay Agents to download files downloaded by the controller
Diffstat (limited to 'src/slskd/Relay/API/Hubs')
| -rw-r--r-- | src/slskd/Relay/API/Hubs/RelayHub.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Relay/API/Hubs/RelayHub.cs b/src/slskd/Relay/API/Hubs/RelayHub.cs index b76f67b9..d0e9a962 100644 --- a/src/slskd/Relay/API/Hubs/RelayHub.cs +++ b/src/slskd/Relay/API/Hubs/RelayHub.cs @@ -54,6 +54,14 @@ namespace slskd.Relay /// <param name="id">The unique identifier for the request.</param> /// <returns>The operation context.</returns> Task RequestFileUpload(string filename, long startOffset, Guid id); + + /// <summary> + /// Notifies the agent that the download of the specified <paramref name="filename"/> is complete and that the file is ready for downloading. + /// </summary> + /// <param name="filename">The name of the newly downloaded file.</param> + /// <param name="id">The unique identifier for the request.</param> + /// <returns>The operation context.</returns> + Task NotifyFileDownloadCompleted(string filename, Guid id); } /// <summary> |
