mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Change type of PlaylistItemId to Guid
This commit is contained in:
@@ -11,11 +11,9 @@ namespace MediaBrowser.Model.SyncPlay
|
||||
/// Initializes a new instance of the <see cref="QueueItem"/> class.
|
||||
/// </summary>
|
||||
/// <param name="itemId">The item identifier.</param>
|
||||
/// <param name="playlistItemId">The playlist identifier of the item.</param>
|
||||
public QueueItem(Guid itemId, string playlistItemId)
|
||||
public QueueItem(Guid itemId)
|
||||
{
|
||||
ItemId = itemId;
|
||||
PlaylistItemId = playlistItemId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -28,6 +26,6 @@ namespace MediaBrowser.Model.SyncPlay
|
||||
/// Gets the playlist identifier of the item.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifier of the item.</value>
|
||||
public string PlaylistItemId { get; }
|
||||
public Guid PlaylistItemId { get; } = Guid.NewGuid();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace MediaBrowser.Model.SyncPlay
|
||||
/// <param name="command">The command.</param>
|
||||
/// <param name="positionTicks">The position ticks, for commands that require it.</param>
|
||||
/// <param name="emittedAt">The UTC time when this command has been emitted.</param>
|
||||
public SendCommand(Guid groupId, string playlistItemId, DateTime when, SendCommandType command, long? positionTicks, DateTime emittedAt)
|
||||
public SendCommand(Guid groupId, Guid playlistItemId, DateTime when, SendCommandType command, long? positionTicks, DateTime emittedAt)
|
||||
{
|
||||
GroupId = groupId;
|
||||
PlaylistItemId = playlistItemId;
|
||||
@@ -36,7 +36,7 @@ namespace MediaBrowser.Model.SyncPlay
|
||||
/// 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; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the UTC time when to execute the command.
|
||||
|
||||
Reference in New Issue
Block a user