| | | 1 | | using System; |
| | | 2 | | |
| | | 3 | | namespace MediaBrowser.Model.SyncPlay |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Class SendCommand. |
| | | 7 | | /// </summary> |
| | | 8 | | public class SendCommand |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="SendCommand"/> class. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="groupId">The group identifier.</param> |
| | | 14 | | /// <param name="playlistItemId">The playlist identifier of the playing item.</param> |
| | | 15 | | /// <param name="when">The UTC time when to execute the command.</param> |
| | | 16 | | /// <param name="command">The command.</param> |
| | | 17 | | /// <param name="positionTicks">The position ticks, for commands that require it.</param> |
| | | 18 | | /// <param name="emittedAt">The UTC time when this command has been emitted.</param> |
| | | 19 | | public SendCommand(Guid groupId, Guid playlistItemId, DateTime when, SendCommandType command, long? positionTick |
| | | 20 | | { |
| | | 21 | | GroupId = groupId; |
| | | 22 | | PlaylistItemId = playlistItemId; |
| | 0 | 23 | | When = when; |
| | | 24 | | Command = command; |
| | | 25 | | PositionTicks = positionTicks; |
| | | 26 | | EmittedAt = emittedAt; |
| | 0 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Gets the group identifier. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <value>The group identifier.</value> |
| | | 33 | | public Guid GroupId { get; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Gets the playlist identifier of the playing item. |
| | | 37 | | /// </summary> |
| | | 38 | | /// <value>The playlist identifier of the playing item.</value> |
| | | 39 | | public Guid PlaylistItemId { get; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Gets or sets the UTC time when to execute the command. |
| | | 43 | | /// </summary> |
| | | 44 | | /// <value>The UTC time when to execute the command.</value> |
| | | 45 | | public DateTime When { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Gets the position ticks. |
| | | 49 | | /// </summary> |
| | | 50 | | /// <value>The position ticks.</value> |
| | | 51 | | public long? PositionTicks { get; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets the command. |
| | | 55 | | /// </summary> |
| | | 56 | | /// <value>The command.</value> |
| | | 57 | | public SendCommandType Command { get; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Gets the UTC time when this command has been emitted. |
| | | 61 | | /// </summary> |
| | | 62 | | /// <value>The UTC time when this command has been emitted.</value> |
| | | 63 | | public DateTime EmittedAt { get; } |
| | | 64 | | } |
| | | 65 | | } |