jellyfin/MediaBrowser.Model/SyncPlay/SendCommand.cs

66 lines
2.3 KiB
C#
Raw Normal View History

using System;
2020-06-03 02:54:01 -07:00
2020-05-06 14:42:53 -07:00
namespace MediaBrowser.Model.SyncPlay
2020-04-01 08:52:42 -07:00
{
/// <summary>
/// Class SendCommand.
2020-04-01 08:52:42 -07:00
/// </summary>
public class SendCommand
2020-04-01 08:52:42 -07: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>
public SendCommand(Guid groupId, string playlistItemId, DateTime when, SendCommandType command, long? positionTicks, DateTime emittedAt)
{
GroupId = groupId;
PlaylistItemId = playlistItemId;
When = when;
Command = command;
PositionTicks = positionTicks;
EmittedAt = emittedAt;
}
2020-04-01 08:52:42 -07:00
/// <summary>
/// Gets the group identifier.
2020-04-01 08:52:42 -07:00
/// </summary>
/// <value>The group identifier.</value>
public Guid GroupId { get; }
2020-04-01 08:52:42 -07:00
/// <summary>
/// Gets the playlist identifier of the playing item.
/// </summary>
2020-10-21 07:42:57 -07:00
/// <value>The playlist identifier of the playing item.</value>
public string PlaylistItemId { get; }
2020-04-01 08:52:42 -07: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 08:52:42 -07:00
/// <summary>
/// Gets the position ticks.
2020-04-01 08:52:42 -07:00
/// </summary>
/// <value>The position ticks.</value>
public long? PositionTicks { get; }
2020-04-01 08:52:42 -07:00
/// <summary>
/// Gets the command.
2020-04-01 08:52:42 -07: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 08:52:42 -07:00
}
}