mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Move SyncPlay request DTOs to proper namespace
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class BufferRequestBody.
|
||||
/// </summary>
|
||||
public class BufferRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BufferRequestBody"/> class.
|
||||
/// </summary>
|
||||
public BufferRequestBody()
|
||||
{
|
||||
PlaylistItemId = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets when the request has been made by the client.
|
||||
/// </summary>
|
||||
/// <value>The date of the request.</value>
|
||||
public DateTime When { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the position ticks.
|
||||
/// </summary>
|
||||
/// <value>The position ticks.</value>
|
||||
public long PositionTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the client playback is unpaused.
|
||||
/// </summary>
|
||||
/// <value>The client playback status.</value>
|
||||
public bool IsPlaying { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playlist item identifier of the playing item.
|
||||
/// </summary>
|
||||
/// <value>The playlist item identifier.</value>
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class IgnoreWaitRequestBody.
|
||||
/// </summary>
|
||||
public class IgnoreWaitRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the client should be ignored.
|
||||
/// </summary>
|
||||
/// <value>The client group-wait status.</value>
|
||||
public bool IgnoreWait { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class JoinGroupRequestBody.
|
||||
/// </summary>
|
||||
public class JoinGroupRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the group identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier of the group to join.</value>
|
||||
public Guid GroupId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class MovePlaylistItemRequestBody.
|
||||
/// </summary>
|
||||
public class MovePlaylistItemRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MovePlaylistItemRequestBody"/> class.
|
||||
/// </summary>
|
||||
public MovePlaylistItemRequestBody()
|
||||
{
|
||||
PlaylistItemId = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playlist identifier of the item.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifier of the item.</value>
|
||||
public string PlaylistItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the new position.
|
||||
/// </summary>
|
||||
/// <value>The new position.</value>
|
||||
public int NewIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class NewGroupRequestBody.
|
||||
/// </summary>
|
||||
public class NewGroupRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NewGroupRequestBody"/> class.
|
||||
/// </summary>
|
||||
public NewGroupRequestBody()
|
||||
{
|
||||
GroupName = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the group name.
|
||||
/// </summary>
|
||||
/// <value>The name of the new group.</value>
|
||||
public string GroupName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class NextItemRequestBody.
|
||||
/// </summary>
|
||||
public class NextItemRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NextItemRequestBody"/> class.
|
||||
/// </summary>
|
||||
public NextItemRequestBody()
|
||||
{
|
||||
PlaylistItemId = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playing item identifier.
|
||||
/// </summary>
|
||||
/// <value>The playing item identifier.</value>
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PingRequestBody.
|
||||
/// </summary>
|
||||
public class PingRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the ping time.
|
||||
/// </summary>
|
||||
/// <value>The ping time.</value>
|
||||
public long Ping { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PlayRequestBody.
|
||||
/// </summary>
|
||||
public class PlayRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PlayRequestBody"/> class.
|
||||
/// </summary>
|
||||
public PlayRequestBody()
|
||||
{
|
||||
PlayingQueue = Array.Empty<Guid>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playing queue.
|
||||
/// </summary>
|
||||
/// <value>The playing queue.</value>
|
||||
public IReadOnlyList<Guid> PlayingQueue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the position of the playing item in the queue.
|
||||
/// </summary>
|
||||
/// <value>The playing item position.</value>
|
||||
public int PlayingItemPosition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start position ticks.
|
||||
/// </summary>
|
||||
/// <value>The start position ticks.</value>
|
||||
public long StartPositionTicks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PreviousItemRequestBody.
|
||||
/// </summary>
|
||||
public class PreviousItemRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PreviousItemRequestBody"/> class.
|
||||
/// </summary>
|
||||
public PreviousItemRequestBody()
|
||||
{
|
||||
PlaylistItemId = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playing item identifier.
|
||||
/// </summary>
|
||||
/// <value>The playing item identifier.</value>
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class QueueRequestBody.
|
||||
/// </summary>
|
||||
public class QueueRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="QueueRequestBody"/> class.
|
||||
/// </summary>
|
||||
public QueueRequestBody()
|
||||
{
|
||||
ItemIds = Array.Empty<Guid>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the items to enqueue.
|
||||
/// </summary>
|
||||
/// <value>The items to enqueue.</value>
|
||||
public IReadOnlyList<Guid> ItemIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the mode in which to add the new items.
|
||||
/// </summary>
|
||||
/// <value>The enqueue mode.</value>
|
||||
public GroupQueueMode Mode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ReadyRequest.
|
||||
/// </summary>
|
||||
public class ReadyRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ReadyRequestBody"/> class.
|
||||
/// </summary>
|
||||
public ReadyRequestBody()
|
||||
{
|
||||
PlaylistItemId = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets when the request has been made by the client.
|
||||
/// </summary>
|
||||
/// <value>The date of the request.</value>
|
||||
public DateTime When { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the position ticks.
|
||||
/// </summary>
|
||||
/// <value>The position ticks.</value>
|
||||
public long PositionTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the client playback is unpaused.
|
||||
/// </summary>
|
||||
/// <value>The client playback status.</value>
|
||||
public bool IsPlaying { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playlist item identifier of the playing item.
|
||||
/// </summary>
|
||||
/// <value>The playlist item identifier.</value>
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class RemoveFromPlaylistRequestBody.
|
||||
/// </summary>
|
||||
public class RemoveFromPlaylistRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RemoveFromPlaylistRequestBody"/> class.
|
||||
/// </summary>
|
||||
public RemoveFromPlaylistRequestBody()
|
||||
{
|
||||
PlaylistItemIds = Array.Empty<string>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playlist identifiers ot the items.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifiers ot the items.</value>
|
||||
public IReadOnlyList<string> PlaylistItemIds { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SeekRequestBody.
|
||||
/// </summary>
|
||||
public class SeekRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the position ticks.
|
||||
/// </summary>
|
||||
/// <value>The position ticks.</value>
|
||||
public long PositionTicks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SetPlaylistItemRequestBody.
|
||||
/// </summary>
|
||||
public class SetPlaylistItemRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SetPlaylistItemRequestBody"/> class.
|
||||
/// </summary>
|
||||
public SetPlaylistItemRequestBody()
|
||||
{
|
||||
PlaylistItemId = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the playlist identifier of the playing item.
|
||||
/// </summary>
|
||||
/// <value>The playlist identifier of the playing item.</value>
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SetRepeatModeRequestBody.
|
||||
/// </summary>
|
||||
public class SetRepeatModeRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the repeat mode.
|
||||
/// </summary>
|
||||
/// <value>The repeat mode.</value>
|
||||
public GroupRepeatMode Mode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace MediaBrowser.Model.SyncPlay.RequestBodies
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SetShuffleModeRequestBody.
|
||||
/// </summary>
|
||||
public class SetShuffleModeRequestBody
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the shuffle mode.
|
||||
/// </summary>
|
||||
/// <value>The shuffle mode.</value>
|
||||
public GroupShuffleMode Mode { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user