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.
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
// <copyright file="PingGroupRequest.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
|
{
|
|
#nullable disable
|
|
|
|
using System.Threading;
|
|
using MediaBrowser.Controller.Session;
|
|
using MediaBrowser.Model.SyncPlay;
|
|
|
|
/// <summary>
|
|
/// Class PingGroupRequest.
|
|
/// </summary>
|
|
public class PingGroupRequest : AbstractPlaybackRequest
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="PingGroupRequest"/> class.
|
|
/// </summary>
|
|
/// <param name="ping">The ping time.</param>
|
|
public PingGroupRequest(long ping)
|
|
{
|
|
Ping = ping;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the ping time.
|
|
/// </summary>
|
|
/// <value>The ping time.</value>
|
|
public long Ping { get; }
|
|
|
|
/// <inheritdoc />
|
|
public override PlaybackRequestType Action { get; } = PlaybackRequestType.Ping;
|
|
|
|
/// <inheritdoc />
|
|
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
|
|
{
|
|
state.HandleRequest(this, context, state.Type, session, cancellationToken);
|
|
}
|
|
}
|
|
}
|