2020-11-15 17:03:27 +01:00
|
|
|
using System;
|
2020-06-03 11:54:01 +02:00
|
|
|
|
2023-06-10 07:28:21 -06:00
|
|
|
namespace MediaBrowser.Model.SyncPlay;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Group update without data.
|
|
|
|
|
/// </summary>
|
2025-04-19 21:08:15 +02:00
|
|
|
/// <typeparam name="T">The type of the update data.</typeparam>
|
|
|
|
|
public abstract class GroupUpdate<T>
|
2020-04-01 17:52:42 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2025-04-19 21:08:15 +02:00
|
|
|
/// Initializes a new instance of the <see cref="GroupUpdate{T}"/> class.
|
2020-04-01 17:52:42 +02:00
|
|
|
/// </summary>
|
2023-06-10 07:28:21 -06:00
|
|
|
/// <param name="groupId">The group identifier.</param>
|
2025-04-19 21:08:15 +02:00
|
|
|
/// <param name="data">The update data.</param>
|
|
|
|
|
protected GroupUpdate(Guid groupId, T data)
|
2020-04-01 17:52:42 +02:00
|
|
|
{
|
2023-06-10 07:28:21 -06:00
|
|
|
GroupId = groupId;
|
2025-04-19 21:08:15 +02:00
|
|
|
Data = data;
|
2023-06-10 07:28:21 -06:00
|
|
|
}
|
2020-04-01 17:52:42 +02:00
|
|
|
|
2023-06-10 07:28:21 -06:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the group identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The group identifier.</value>
|
|
|
|
|
public Guid GroupId { get; }
|
2020-04-01 17:52:42 +02:00
|
|
|
|
2025-04-19 21:08:15 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the update data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The update data.</value>
|
|
|
|
|
public T Data { get; }
|
|
|
|
|
|
2023-06-10 07:28:21 -06:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the update type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The update type.</value>
|
2025-04-19 21:08:15 +02:00
|
|
|
public abstract GroupUpdateType Type { get; }
|
2020-04-01 17:52:42 +02:00
|
|
|
}
|