jellyfin-server/MediaBrowser.Model/SyncPlay/SendCommand.cs

66 lines
2.3 KiB
C#
Raw Normal View History

using System;
2020-06-03 09:54:01 +00:00
2020-05-06 21:42:53 +00:00
namespace MediaBrowser.Model.SyncPlay
2020-04-01 15:52:42 +00:00
{
/// <summary>
/// Class SendCommand.
2020-04-01 15:52:42 +00:00
/// </summary>
public class SendCommand
2020-04-01 15:52:42 +00:00
{
/// <summary>
/// Initializes a new instance of the <see cref="SendCommand"/> class.
/// </summary>
/// <param name="groupId">The group identifier.</param>
/// <param name="playlistItemId">The playlist identifier of the playing item.</param>
/// <param name="when">The UTC time when to execute the command.</param>
/// <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>
2020-12-04 19:15:16 +00:00
public SendCommand(Guid groupId, Guid playlistItemId, DateTime when, SendCommandType command, long? positionTicks, DateTime emittedAt)
{
GroupId = groupId;
PlaylistItemId = playlistItemId;
When = when;
Command = command;
PositionTicks = positionTicks;
EmittedAt = emittedAt;
}
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets the group identifier.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <value>The group identifier.</value>
public Guid GroupId { get; }
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets the playlist identifier of the playing item.
/// </summary>
2020-10-21 14:42:57 +00:00
/// <value>The playlist identifier of the playing item.</value>
2020-12-04 19:15:16 +00:00
public Guid PlaylistItemId { get; }
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets or sets the UTC time when to execute the command.
/// </summary>
/// <value>The UTC time when to execute the command.</value>
public DateTime When { get; set; }
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets the position ticks.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <value>The position ticks.</value>
public long? PositionTicks { get; }
2020-04-01 15:52:42 +00:00
/// <summary>
/// Gets the command.
2020-04-01 15:52:42 +00:00
/// </summary>
/// <value>The command.</value>
public SendCommandType Command { get; }
/// <summary>
/// Gets the UTC time when this command has been emitted.
/// </summary>
/// <value>The UTC time when this command has been emitted.</value>
public DateTime EmittedAt { get; }
2020-04-01 15:52:42 +00:00
}
}