aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-11-08 08:24:34 -0600
committerJP Dillingham <jp@dillingham.me>2024-11-08 08:24:34 -0600
commitfd179ee6c888f03ffe26288c906a53961808352f (patch)
tree2c516307f4a23fa07191ba7ce5727fbf24a5a5d4 /src
parent5ebb679f4f7a24649e5117931e06138a9375110f (diff)
downloadslskd-fd179ee6c888f03ffe26288c906a53961808352f.tar.gz
add 'noop' event type
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