Fix SyncPlay WebSocket OpenAPI schemas (#13946)

This commit is contained in:
Niels van Velzen
2025-04-19 21:08:15 +02:00
committed by GitHub
parent 1c190f7952
commit 269508be9f
24 changed files with 299 additions and 242 deletions

View File

@@ -5,15 +5,18 @@ namespace MediaBrowser.Model.SyncPlay;
/// <summary>
/// Group update without data.
/// </summary>
public abstract class GroupUpdate
/// <typeparam name="T">The type of the update data.</typeparam>
public abstract class GroupUpdate<T>
{
/// <summary>
/// Initializes a new instance of the <see cref="GroupUpdate"/> class.
/// Initializes a new instance of the <see cref="GroupUpdate{T}"/> class.
/// </summary>
/// <param name="groupId">The group identifier.</param>
protected GroupUpdate(Guid groupId)
/// <param name="data">The update data.</param>
protected GroupUpdate(Guid groupId, T data)
{
GroupId = groupId;
Data = data;
}
/// <summary>
@@ -22,9 +25,15 @@ public abstract class GroupUpdate
/// <value>The group identifier.</value>
public Guid GroupId { get; }
/// <summary>
/// Gets the update data.
/// </summary>
/// <value>The update data.</value>
public T Data { get; }
/// <summary>
/// Gets the update type.
/// </summary>
/// <value>The update type.</value>
public GroupUpdateType Type { get; init; }
public abstract GroupUpdateType Type { get; }
}