2020-09-24 14:04:21 -07:00
|
|
|
namespace MediaBrowser.Model.SyncPlay
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Class GroupStateUpdate.
|
|
|
|
/// </summary>
|
|
|
|
public class GroupStateUpdate
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-11-15 09:03:27 -07:00
|
|
|
/// Initializes a new instance of the <see cref="GroupStateUpdate"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="state">The state of the group.</param>
|
|
|
|
/// <param name="reason">The reason of the state change.</param>
|
|
|
|
public GroupStateUpdate(GroupStateType state, PlaybackRequestType reason)
|
|
|
|
{
|
|
|
|
State = state;
|
|
|
|
Reason = reason;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the state of the group.
|
2020-09-24 14:04:21 -07:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The state of the group.</value>
|
2020-11-15 09:03:27 -07:00
|
|
|
public GroupStateType State { get; }
|
2020-09-24 14:04:21 -07:00
|
|
|
|
|
|
|
/// <summary>
|
2020-11-15 09:03:27 -07:00
|
|
|
/// Gets the reason of the state change.
|
2020-09-24 14:04:21 -07:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The reason of the state change.</value>
|
2020-11-15 09:03:27 -07:00
|
|
|
public PlaybackRequestType Reason { get; }
|
2020-09-24 14:04:21 -07:00
|
|
|
}
|
|
|
|
}
|