diff options
| author | Ionut Andrei Oanca <oancaionutandrei@gmail.com> | 2020-11-13 15:13:32 +0100 |
|---|---|---|
| committer | Ionut Andrei Oanca <oancaionutandrei@gmail.com> | 2020-11-14 12:33:54 +0100 |
| commit | 1dbc91978ece81628c339d1dc3b53f6d250cb005 (patch) | |
| tree | a4a8a90f3347fbcf44a8e00a85329828b08cc746 /MediaBrowser.Model/SyncPlay | |
| parent | 563a6fb3c7cd933059995cac710f46287774d401 (diff) | |
Address requested changes and fix some warnings
Diffstat (limited to 'MediaBrowser.Model/SyncPlay')
| -rw-r--r-- | MediaBrowser.Model/SyncPlay/GroupInfoDto.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/SyncPlay/GroupStateType.cs (renamed from MediaBrowser.Model/SyncPlay/GroupState.cs) | 5 | ||||
| -rw-r--r-- | MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Model/SyncPlay/GroupUpdate.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.Model/SyncPlay/PlayQueueUpdate.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Model/SyncPlay/PlaybackRequestType.cs | 1 |
6 files changed, 11 insertions, 6 deletions
diff --git a/MediaBrowser.Model/SyncPlay/GroupInfoDto.cs b/MediaBrowser.Model/SyncPlay/GroupInfoDto.cs index 255f6812bd..85b9a35229 100644 --- a/MediaBrowser.Model/SyncPlay/GroupInfoDto.cs +++ b/MediaBrowser.Model/SyncPlay/GroupInfoDto.cs @@ -25,7 +25,7 @@ namespace MediaBrowser.Model.SyncPlay /// Gets or sets the group state. /// </summary> /// <value>The group state.</value> - public GroupState State { get; set; } + public GroupStateType State { get; set; } /// <summary> /// Gets or sets the participants. diff --git a/MediaBrowser.Model/SyncPlay/GroupState.cs b/MediaBrowser.Model/SyncPlay/GroupStateType.cs index 871634d558..341859b306 100644 --- a/MediaBrowser.Model/SyncPlay/GroupState.cs +++ b/MediaBrowser.Model/SyncPlay/GroupStateType.cs @@ -3,20 +3,23 @@ namespace MediaBrowser.Model.SyncPlay /// <summary> /// Enum GroupState. /// </summary> - public enum GroupState + public enum GroupStateType { /// <summary> /// The group is in idle state. No media is playing. /// </summary> Idle, + /// <summary> /// The group is in wating state. Playback is paused. Will start playing when users are ready. /// </summary> Waiting, + /// <summary> /// The group is in paused state. Playback is paused. Will resume on play command. /// </summary> Paused, + /// <summary> /// The group is in playing state. Playback is advancing. /// </summary> diff --git a/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs b/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs index 7c7b267e6f..532b5a56f4 100644 --- a/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs +++ b/MediaBrowser.Model/SyncPlay/GroupStateUpdate.cs @@ -1,5 +1,3 @@ -#nullable disable - namespace MediaBrowser.Model.SyncPlay { /// <summary> @@ -11,7 +9,7 @@ namespace MediaBrowser.Model.SyncPlay /// Gets or sets the state of the group. /// </summary> /// <value>The state of the group.</value> - public GroupState State { get; set; } + public GroupStateType State { get; set; } /// <summary> /// Gets or sets the reason of the state change. diff --git a/MediaBrowser.Model/SyncPlay/GroupUpdate.cs b/MediaBrowser.Model/SyncPlay/GroupUpdate.cs index 8c7208211c..12d6058ac3 100644 --- a/MediaBrowser.Model/SyncPlay/GroupUpdate.cs +++ b/MediaBrowser.Model/SyncPlay/GroupUpdate.cs @@ -5,6 +5,7 @@ namespace MediaBrowser.Model.SyncPlay /// <summary> /// Class GroupUpdate. /// </summary> + /// <typeparam name="T">The type of the data of the message.</typeparam> public class GroupUpdate<T> { /// <summary> diff --git a/MediaBrowser.Model/SyncPlay/PlayQueueUpdate.cs b/MediaBrowser.Model/SyncPlay/PlayQueueUpdate.cs index 5e2740a892..575597e62d 100644 --- a/MediaBrowser.Model/SyncPlay/PlayQueueUpdate.cs +++ b/MediaBrowser.Model/SyncPlay/PlayQueueUpdate.cs @@ -1,5 +1,7 @@ #nullable disable +using System.Collections.Generic; + namespace MediaBrowser.Model.SyncPlay { /// <summary> @@ -23,7 +25,7 @@ namespace MediaBrowser.Model.SyncPlay /// Gets or sets the playlist. /// </summary> /// <value>The playlist.</value> - public QueueItem[] Playlist { get; set; } + public IReadOnlyList<QueueItem> Playlist { get; set; } /// <summary> /// Gets or sets the playing item index in the playlist. diff --git a/MediaBrowser.Model/SyncPlay/PlaybackRequestType.cs b/MediaBrowser.Model/SyncPlay/PlaybackRequestType.cs index 0d0f48ea97..4809dc44f8 100644 --- a/MediaBrowser.Model/SyncPlay/PlaybackRequestType.cs +++ b/MediaBrowser.Model/SyncPlay/PlaybackRequestType.cs @@ -69,6 +69,7 @@ namespace MediaBrowser.Model.SyncPlay /// A user is requesting previous track in playlist. /// </summary> PreviousTrack = 12, + /// <summary> /// A user is setting the repeat mode. /// </summary> |
