jellyfin/MediaBrowser.Model/SyncPlay/GroupUpdate.cs

43 lines
1.2 KiB
C#
Raw Normal View History

using System;
2020-06-03 09:54:01 +00:00
2020-05-06 21:42:53 +00:00
namespace MediaBrowser.Model.SyncPlay
2020-04-01 15:52:42 +00:00
{
/// <summary>
/// Class GroupUpdate.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <typeparam name="T">The type of the data of the message.</typeparam>
public class GroupUpdate<T>
2020-04-01 15:52:42 +00:00
{
/// <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)
{
GroupId = groupId;
Type = type;
Data = data;
}
/// <summary>
/// Gets the group identifier.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <value>The group identifier.</value>
public Guid GroupId { get; }
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets the update type.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <value>The update type.</value>
public GroupUpdateType Type { get; }
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets the update data.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <value>The update data.</value>
public T Data { get; }
2020-04-01 15:52:42 +00:00
}
}