Address requested changes and fix some warnings

This commit is contained in:
Ionut Andrei Oanca
2020-11-13 15:13:32 +01:00
parent 563a6fb3c7
commit 1dbc91978e
44 changed files with 977 additions and 997 deletions

View File

@@ -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.

View File

@@ -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>

View File

@@ -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.

View File

@@ -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>

View File

@@ -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.

View File

@@ -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>