Check that client is playing the right item

Send date when playback command is emitted
Rename some classes
This commit is contained in:
gion
2020-04-15 18:03:58 +02:00
parent 73c19bd281
commit 84d92ba9ce
14 changed files with 141 additions and 86 deletions

View File

@@ -1,9 +1,9 @@
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Class SyncplayGroupUpdate.
/// Class GroupUpdate.
/// </summary>
public class SyncplayGroupUpdate<T>
public class GroupUpdate<T>
{
/// <summary>
/// Gets or sets the group identifier.
@@ -15,7 +15,7 @@ namespace MediaBrowser.Model.Syncplay
/// Gets or sets the update type.
/// </summary>
/// <value>The update type.</value>
public SyncplayGroupUpdateType Type { get; set; }
public GroupUpdateType Type { get; set; }
/// <summary>
/// Gets or sets the data.

View File

@@ -1,9 +1,9 @@
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Enum SyncplayGroupUpdateType
/// Enum GroupUpdateType
/// </summary>
public enum SyncplayGroupUpdateType
public enum GroupUpdateType
{
/// <summary>
/// The user-joined update. Tells members of a group about a new user.

View File

@@ -0,0 +1,22 @@
using System;
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Class JoinGroupRequest.
/// </summary>
public class JoinGroupRequest
{
/// <summary>
/// Gets or sets the Group id.
/// </summary>
/// <value>The Group id to join.</value>
public Guid GroupId { get; set; }
/// <summary>
/// Gets or sets the playing item id.
/// </summary>
/// <value>The client's currently playing item id.</value>
public Guid PlayingItemId { get; set; }
}
}

View File

@@ -3,15 +3,15 @@ using System;
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Class SyncplayRequestInfo.
/// Class PlaybackRequest.
/// </summary>
public class SyncplayRequestInfo
public class PlaybackRequest
{
/// <summary>
/// Gets or sets the request type.
/// </summary>
/// <value>The request type.</value>
public SyncplayRequestType Type;
public PlaybackRequestType Type;
/// <summary>
/// Gets or sets when the request has been made by the client.

View File

@@ -1,9 +1,9 @@
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Enum SyncplayRequestType
/// Enum PlaybackRequestType
/// </summary>
public enum SyncplayRequestType
public enum PlaybackRequestType
{
/// <summary>
/// A user is requesting a play command for the group.

View File

@@ -1,9 +1,9 @@
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Class SyncplayCommand.
/// Class SendCommand.
/// </summary>
public class SyncplayCommand
public class SendCommand
{
/// <summary>
/// Gets or sets the group identifier.
@@ -27,6 +27,12 @@ namespace MediaBrowser.Model.Syncplay
/// Gets or sets the command.
/// </summary>
/// <value>The command.</value>
public SyncplayCommandType Command { get; set; }
public SendCommandType Command { get; set; }
/// <summary>
/// Gets or sets the UTC time when this command has been emitted.
/// </summary>
/// <value>The UTC time when this command has been emitted.</value>
public string EmittedAt { get; set; }
}
}

View File

@@ -1,9 +1,9 @@
namespace MediaBrowser.Model.Syncplay
{
/// <summary>
/// Enum SyncplayCommandType.
/// Enum SendCommandType.
/// </summary>
public enum SyncplayCommandType
public enum SendCommandType
{
/// <summary>
/// The play command. Instructs users to start playback.