aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/SyncPlay
diff options
context:
space:
mode:
authorIonut Andrei Oanca <oancaionutandrei@gmail.com>2020-12-04 20:15:16 +0100
committerIonut Andrei Oanca <oancaionutandrei@gmail.com>2020-12-04 20:15:16 +0100
commitcbf70e7a037f9edb431cf0e0f43b261b9a1cf203 (patch)
tree087038c4a183c6b7c39654ef14aa4180be3ea60e /MediaBrowser.Model/SyncPlay
parentb7eb4da04e0cbb820becc9022975f69aed4f8531 (diff)
Change type of PlaylistItemId to Guid
Diffstat (limited to 'MediaBrowser.Model/SyncPlay')
-rw-r--r--MediaBrowser.Model/SyncPlay/QueueItem.cs6
-rw-r--r--MediaBrowser.Model/SyncPlay/SendCommand.cs4
2 files changed, 4 insertions, 6 deletions
diff --git a/MediaBrowser.Model/SyncPlay/QueueItem.cs b/MediaBrowser.Model/SyncPlay/QueueItem.cs
index 9c4d3a4ce..a6dcc109e 100644
--- a/MediaBrowser.Model/SyncPlay/QueueItem.cs
+++ b/MediaBrowser.Model/SyncPlay/QueueItem.cs
@@ -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();
}
}
diff --git a/MediaBrowser.Model/SyncPlay/SendCommand.cs b/MediaBrowser.Model/SyncPlay/SendCommand.cs
index ab4c64130..73cb50876 100644
--- a/MediaBrowser.Model/SyncPlay/SendCommand.cs
+++ b/MediaBrowser.Model/SyncPlay/SendCommand.cs
@@ -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.