2020-11-15 16:03:27 +00:00
|
|
|
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>
|
2020-04-15 16:03:58 +00:00
|
|
|
/// Class GroupUpdate.
|
2020-04-01 15:52:42 +00:00
|
|
|
/// </summary>
|
2020-11-13 14:13:32 +00:00
|
|
|
/// <typeparam name="T">The type of the data of the message.</typeparam>
|
2020-04-15 16:03:58 +00:00
|
|
|
public class GroupUpdate<T>
|
2020-04-01 15:52:42 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2020-11-15 16:03:27 +00:00
|
|
|
/// 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>
|
2020-11-15 16:03:27 +00:00
|
|
|
public Guid GroupId { get; }
|
2020-04-01 15:52:42 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-11-15 16:03:27 +00:00
|
|
|
/// Gets the update type.
|
2020-04-01 15:52:42 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The update type.</value>
|
2020-11-15 16:03:27 +00:00
|
|
|
public GroupUpdateType Type { get; }
|
2020-04-01 15:52:42 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-11-15 16:03:27 +00:00
|
|
|
/// Gets the update data.
|
2020-04-01 15:52:42 +00:00
|
|
|
/// </summary>
|
2020-11-15 16:03:27 +00:00
|
|
|
/// <value>The update data.</value>
|
|
|
|
public T Data { get; }
|
2020-04-01 15:52:42 +00:00
|
|
|
}
|
|
|
|
}
|