aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs
diff options
context:
space:
mode:
authorIonut Andrei Oanca <oancaionutandrei@gmail.com>2020-11-15 17:03:27 +0100
committerIonut Andrei Oanca <oancaionutandrei@gmail.com>2020-11-15 17:30:28 +0100
commitc7e53bce2fa43ad38807a0589e1bc020237e49c6 (patch)
treeaf484c31dc4b762aba404a28462a3cae8c23f5b5 /MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs
parent5d77f422f0e4998130f1defebd08e053188a1a25 (diff)
Patch data-races and minor changes in SyncPlay
Diffstat (limited to 'MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs')
-rw-r--r--MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs19
1 files changed, 15 insertions, 4 deletions
diff --git a/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs b/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs
index 532b5a56f4..7f7deb86bb 100644
--- a/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs
+++ b/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs
@@ -6,15 +6,26 @@ namespace MediaBrowser.Model.SyncPlay
public class GroupStateUpdate
{
/// <summary>
- /// Gets or sets the state of the group.
+ /// 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.
/// </summary>
/// <value>The state of the group.</value>
- public GroupStateType State { get; set; }
+ public GroupStateType State { get; }
/// <summary>
- /// Gets or sets the reason of the state change.
+ /// Gets the reason of the state change.
/// </summary>
/// <value>The reason of the state change.</value>
- public PlaybackRequestType Reason { get; set; }
+ public PlaybackRequestType Reason { get; }
}
}