mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-11 04:42:18 +01:00
Check that client is playing the right item
Send date when playback command is emitted Rename some classes
This commit is contained in:
@@ -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.
|
||||
@@ -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.
|
||||
22
MediaBrowser.Model/Syncplay/JoinGroupRequest.cs
Normal file
22
MediaBrowser.Model/Syncplay/JoinGroupRequest.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user