mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-25 11:34:43 +01:00
Address requested changes and fix some warnings
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user