aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-11-08 08:27:42 -0600
committerGitHub <noreply@github.com>2024-11-08 08:27:42 -0600
commite47aa99ae713c980b7f249886fc5673f38a9c9b3 (patch)
tree2815c3d9eea7a9d27ca1e207c2879235232a7f18 /src
parente7aefd66f1992dcecd9454df0771e1f29fae2b1d (diff)
parentd689ac95d053b0b0d60c0ceb882d10332a40a8cb (diff)
downloadslskd-e47aa99ae713c980b7f249886fc5673f38a9c9b3.tar.gz
Merge pull request #1240 from slskd/noop
Add 'noop' event type (no operation, useful for testing)
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Events/Types/Events.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Events/Types/Events.cs b/src/slskd/Events/Types/Events.cs
index 678a5294..e4274e39 100644
--- a/src/slskd/Events/Types/Events.cs
+++ b/src/slskd/Events/Types/Events.cs
@@ -26,6 +26,7 @@ public enum EventType
Any = 1,
DownloadFileComplete = 2,
DownloadDirectoryComplete = 3,
+ Noop = int.MaxValue,
}
public abstract record Event
@@ -49,4 +50,9 @@ public sealed record DownloadDirectoryCompleteEvent : Event
public string LocalDirectoryName { get; init; }
public string RemoteDirectoryName { get; init; }
public string Username { get; init; }
+}
+
+public sealed record NoopEvent : Event
+{
+ public override EventType Type => EventType.Noop;
} \ No newline at end of file