aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2023-06-10 07:28:21 -0600
committerGitHub <noreply@github.com>2023-06-10 07:28:21 -0600
commit9a0dfc00f1e36092476f62984ba66886032f4f89 (patch)
tree935482bc811b30913944703fb7b980a78294fc17 /MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs
parent81cf798430a3d8c5504bc30b2d59af26fe5e2b9f (diff)
Add all websocket messages to generated openapi spec (#9682)
* Add all websocket messages to generated openapi spec * Use oneOf * JsonIgnore ServerId * Oops * Add discriminators * Add WebSocketMessage container for Inbound and Outbound messages
Diffstat (limited to 'MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs')
-rw-r--r--MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs b/MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs
new file mode 100644
index 0000000000..25cd444611
--- /dev/null
+++ b/MediaBrowser.Model/SyncPlay/GroupUpdateOfT.cs
@@ -0,0 +1,31 @@
+#pragma warning disable SA1649
+
+using System;
+
+namespace MediaBrowser.Model.SyncPlay;
+
+/// <summary>
+/// Class GroupUpdate.
+/// </summary>
+/// <typeparam name="T">The type of the data of the message.</typeparam>
+public class GroupUpdate<T> : GroupUpdate
+{
+ /// <summary>
+ /// Initializes a new instance of the <see cref="GroupUpdate{T}"/> class.
+ /// </summary>
+ /// <param name="groupId">The group identifier.</param>
+ /// <param name="type">The update type.</param>
+ /// <param name="data">The update data.</param>
+ public GroupUpdate(Guid groupId, GroupUpdateType type, T data)
+ : base(groupId)
+ {
+ Data = data;
+ Type = type;
+ }
+
+ /// <summary>
+ /// Gets the update data.
+ /// </summary>
+ /// <value>The update data.</value>
+ public T Data { get; }
+}