mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
Fix SyncPlay WebSocket OpenAPI schemas (#13946)
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user