parent
a59aeb12e0
commit
5cd5a7d4ce
@ -0,0 +1,30 @@
|
||||
namespace Emby.Server.Implementations.Session
|
||||
{
|
||||
using System.Threading.Tasks;
|
||||
using Jellyfin.Data.Events;
|
||||
using MediaBrowser.Controller.Net;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the <see cref="ISessionWebSocketListener" />.
|
||||
/// </summary>
|
||||
public interface ISessionWebSocketListener
|
||||
{
|
||||
/// <summary>
|
||||
/// Runs processes due to a WebSocket connection event.
|
||||
/// </summary>
|
||||
/// <param name="websocketConnection">The <see cref="IWebSocketConnection"/> instance.</param>
|
||||
void ProcessWebSocketConnected(IWebSocketConnection websocketConnection);
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the object.
|
||||
/// </summary>
|
||||
void Dispose();
|
||||
|
||||
/// <summary>
|
||||
/// Processes a message.
|
||||
/// </summary>
|
||||
/// <param name="message">The <see cref="WebSocketMessageInfo"/>.</param>
|
||||
/// <returns>A <see cref="Task"/>.</returns>
|
||||
Task ProcessMessageAsync(WebSocketMessageInfo message);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
#pragma warning disable CA1040 // Avoid empty interfaces
|
||||
namespace Jellyfin.Api.WebSocketListeners
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the <see cref="IActivityLogWebSocketListener" />.
|
||||
/// </summary>
|
||||
public interface IActivityLogWebSocketListener
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
#pragma warning disable CA1040 // Avoid empty interfaces
|
||||
namespace Jellyfin.Api.WebSocketListeners
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the <see cref="IScheduledTasksWebSocketListener" />.
|
||||
/// </summary>
|
||||
public interface IScheduledTasksWebSocketListener
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
#pragma warning disable CA1040 // Avoid empty interfaces
|
||||
namespace Jellyfin.Api.WebSocketListeners
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the <see cref="ISessionInfoWebSocketListener" />.
|
||||
/// </summary>
|
||||
public interface ISessionInfoWebSocketListener
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in new issue