aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/API
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-12-30 17:20:22 -0600
committerJP Dillingham <jp@dillingham.me>2022-12-30 17:20:22 -0600
commit9d14042db13e89e9114ad5420c4881b6af4d293c (patch)
treea4fbf693c58516476da3a56c3ce4da3b4d8ed9e8 /src/slskd/Relay/API
parent3f6f13bb99deac7c0b5a5b5ddb43cea91fa40e13 (diff)
downloadslskd-9d14042db13e89e9114ad5420c4881b6af4d293c.tar.gz
add NotifyFileDownloadCompleted
Diffstat (limited to 'src/slskd/Relay/API')
-rw-r--r--src/slskd/Relay/API/Hubs/RelayHub.cs8
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>