diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-08-13 20:48:28 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-08-13 20:52:55 -0400 |
| commit | ca1f15af19e26f8f610a7b56cd6b15a6a308a58f (patch) | |
| tree | 175cc1e9bb0a45a4800b8106e149c33bd0221f21 /Jellyfin.Data/Events | |
| parent | ade40a4c428ecfab53507fdb6df5ac541f10f3ad (diff) | |
Move GenericEventArgs to Jellyfin.Data.Events
Diffstat (limited to 'Jellyfin.Data/Events')
| -rw-r--r-- | Jellyfin.Data/Events/GenericEventArgs.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Jellyfin.Data/Events/GenericEventArgs.cs b/Jellyfin.Data/Events/GenericEventArgs.cs new file mode 100644 index 000000000..7b9a5111e --- /dev/null +++ b/Jellyfin.Data/Events/GenericEventArgs.cs @@ -0,0 +1,26 @@ +using System; + +namespace Jellyfin.Data.Events +{ + /// <summary> + /// Provides a generic EventArgs subclass that can hold any kind of object. + /// </summary> + /// <typeparam name="T">The type of this event.</typeparam> + public class GenericEventArgs<T> : EventArgs + { + /// <summary> + /// Initializes a new instance of the <see cref="GenericEventArgs{T}"/> class. + /// </summary> + /// <param name="arg">The argument.</param> + public GenericEventArgs(T arg) + { + Argument = arg; + } + + /// <summary> + /// Gets the argument. + /// </summary> + /// <value>The argument.</value> + public T Argument { get; } + } +} |
