diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-11-08 08:27:42 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-08 08:27:42 -0600 |
| commit | e47aa99ae713c980b7f249886fc5673f38a9c9b3 (patch) | |
| tree | 2815c3d9eea7a9d27ca1e207c2879235232a7f18 /src | |
| parent | e7aefd66f1992dcecd9454df0771e1f29fae2b1d (diff) | |
| parent | d689ac95d053b0b0d60c0ceb882d10332a40a8cb (diff) | |
| download | slskd-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.cs | 6 |
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 |
