mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-20 06:30:57 +01:00
added the beginning of a service stack abstraction
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
<Compile Include="Net\IWebSocketConnection.cs" />
|
||||
<Compile Include="Net\IWebSocketServer.cs" />
|
||||
<Compile Include="Net\MimeTypes.cs" />
|
||||
<Compile Include="Net\RouteInfo.cs" />
|
||||
<Compile Include="Net\UdpMessageReceivedEventArgs.cs" />
|
||||
<Compile Include="Net\WebSocketConnectEventArgs.cs" />
|
||||
<Compile Include="Net\WebSocketMessageType.cs" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
@@ -6,5 +7,10 @@ namespace MediaBrowser.Common.Net
|
||||
/// </summary>
|
||||
public interface IRestfulService
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the routes.
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{RouteInfo}.</returns>
|
||||
IEnumerable<RouteInfo> GetRoutes();
|
||||
}
|
||||
}
|
||||
|
||||
28
MediaBrowser.Common/Net/RouteInfo.cs
Normal file
28
MediaBrowser.Common/Net/RouteInfo.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Class RouteInfo
|
||||
/// </summary>
|
||||
public class RouteInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the verbs.
|
||||
/// </summary>
|
||||
/// <value>The verbs.</value>
|
||||
public string Verbs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the request.
|
||||
/// </summary>
|
||||
/// <value>The type of the request.</value>
|
||||
public Type RequestType { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user