af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
// <copyright file="MovePlaylistItemGroupRequest.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
|
{
|
|
#nullable disable
|
|
|
|
using System;
|
|
using System.Threading;
|
|
using MediaBrowser.Controller.Session;
|
|
using MediaBrowser.Model.SyncPlay;
|
|
|
|
/// <summary>
|
|
/// Class MovePlaylistItemGroupRequest.
|
|
/// </summary>
|
|
public class MovePlaylistItemGroupRequest : AbstractPlaybackRequest
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MovePlaylistItemGroupRequest"/> class.
|
|
/// </summary>
|
|
/// <param name="playlistItemId">The playlist identifier of the item.</param>
|
|
/// <param name="newIndex">The new position.</param>
|
|
public MovePlaylistItemGroupRequest(Guid playlistItemId, int newIndex)
|
|
{
|
|
PlaylistItemId = playlistItemId;
|
|
NewIndex = newIndex;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the playlist identifier of the item.
|
|
/// </summary>
|
|
/// <value>The playlist identifier of the item.</value>
|
|
public Guid PlaylistItemId { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the new position.
|
|
/// </summary>
|
|
/// <value>The new position.</value>
|
|
public int NewIndex { get; }
|
|
|
|
/// <inheritdoc />
|
|
public override PlaybackRequestType Action { get; } = PlaybackRequestType.MovePlaylistItem;
|
|
|
|
/// <inheritdoc />
|
|
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
|
|
{
|
|
state.HandleRequest(this, context, state.Type, session, cancellationToken);
|
|
}
|
|
}
|
|
}
|