mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
Change type of PlaylistItemId to Guid
This commit is contained in:
@@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// <param name="positionTicks">The position ticks.</param>
|
||||
/// <param name="isPlaying">Whether the client playback is unpaused.</param>
|
||||
/// <param name="playlistItemId">The playlist item identifier of the playing item.</param>
|
||||
public BufferGroupRequest(DateTime when, long positionTicks, bool isPlaying, string playlistItemId)
|
||||
public BufferGroupRequest(DateTime when, long positionTicks, bool isPlaying, Guid playlistItemId)
|
||||
{
|
||||
When = when;
|
||||
PositionTicks = positionTicks;
|
||||
@@ -47,7 +47,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Gets the playlist item identifier of the playing item.
|
||||
/// </summary>
|
||||
/// <value>The playlist item identifier.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PlaybackRequestType Action { get; } = PlaybackRequestType.Buffer;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Model.SyncPlay;
|
||||
@@ -14,7 +15,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// </summary>
|
||||
/// <param name="playlistItemId">The playlist identifier of the item.</param>
|
||||
/// <param name="newIndex">The new position.</param>
|
||||
public MovePlaylistItemGroupRequest(string playlistItemId, int newIndex)
|
||||
public MovePlaylistItemGroupRequest(Guid playlistItemId, int newIndex)
|
||||
{
|
||||
PlaylistItemId = playlistItemId;
|
||||
NewIndex = newIndex;
|
||||
@@ -24,7 +25,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Gets the playlist identifier of the item.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifier of the item.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the new position.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Model.SyncPlay;
|
||||
@@ -13,7 +14,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Initializes a new instance of the <see cref="NextItemGroupRequest"/> class.
|
||||
/// </summary>
|
||||
/// <param name="playlistItemId">The playing item identifier.</param>
|
||||
public NextItemGroupRequest(string playlistItemId)
|
||||
public NextItemGroupRequest(Guid playlistItemId)
|
||||
{
|
||||
PlaylistItemId = playlistItemId;
|
||||
}
|
||||
@@ -22,7 +23,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Gets the playing item identifier.
|
||||
/// </summary>
|
||||
/// <value>The playing item identifier.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PlaybackRequestType Action { get; } = PlaybackRequestType.NextItem;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Model.SyncPlay;
|
||||
@@ -13,7 +14,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Initializes a new instance of the <see cref="PreviousItemGroupRequest"/> class.
|
||||
/// </summary>
|
||||
/// <param name="playlistItemId">The playing item identifier.</param>
|
||||
public PreviousItemGroupRequest(string playlistItemId)
|
||||
public PreviousItemGroupRequest(Guid playlistItemId)
|
||||
{
|
||||
PlaylistItemId = playlistItemId;
|
||||
}
|
||||
@@ -22,7 +23,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Gets the playing item identifier.
|
||||
/// </summary>
|
||||
/// <value>The playing item identifier.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PlaybackRequestType Action { get; } = PlaybackRequestType.PreviousItem;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// <param name="positionTicks">The position ticks.</param>
|
||||
/// <param name="isPlaying">Whether the client playback is unpaused.</param>
|
||||
/// <param name="playlistItemId">The playlist item identifier of the playing item.</param>
|
||||
public ReadyGroupRequest(DateTime when, long positionTicks, bool isPlaying, string playlistItemId)
|
||||
public ReadyGroupRequest(DateTime when, long positionTicks, bool isPlaying, Guid playlistItemId)
|
||||
{
|
||||
When = when;
|
||||
PositionTicks = positionTicks;
|
||||
@@ -47,7 +47,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Gets the playlist item identifier of the playing item.
|
||||
/// </summary>
|
||||
/// <value>The playlist item identifier.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PlaybackRequestType Action { get; } = PlaybackRequestType.Ready;
|
||||
|
||||
@@ -15,16 +15,16 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Initializes a new instance of the <see cref="RemoveFromPlaylistGroupRequest"/> class.
|
||||
/// </summary>
|
||||
/// <param name="items">The playlist ids of the items to remove.</param>
|
||||
public RemoveFromPlaylistGroupRequest(IReadOnlyList<string> items)
|
||||
public RemoveFromPlaylistGroupRequest(IReadOnlyList<Guid> items)
|
||||
{
|
||||
PlaylistItemIds = items ?? Array.Empty<string>();
|
||||
PlaylistItemIds = items ?? Array.Empty<Guid>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the playlist identifiers ot the items.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifiers ot the items.</value>
|
||||
public IReadOnlyList<string> PlaylistItemIds { get; }
|
||||
public IReadOnlyList<Guid> PlaylistItemIds { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PlaybackRequestType Action { get; } = PlaybackRequestType.RemoveFromPlaylist;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Model.SyncPlay;
|
||||
@@ -13,7 +14,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Initializes a new instance of the <see cref="SetPlaylistItemGroupRequest"/> class.
|
||||
/// </summary>
|
||||
/// <param name="playlistItemId">The playlist identifier of the item.</param>
|
||||
public SetPlaylistItemGroupRequest(string playlistItemId)
|
||||
public SetPlaylistItemGroupRequest(Guid playlistItemId)
|
||||
{
|
||||
PlaylistItemId = playlistItemId;
|
||||
}
|
||||
@@ -22,7 +23,7 @@ namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||||
/// Gets the playlist identifier of the playing item.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifier of the playing item.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PlaybackRequestType Action { get; } = PlaybackRequestType.SetPlaylistItem;
|
||||
|
||||
Reference in New Issue
Block a user