mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 23:08:42 +01:00
added the beginning of a service stack abstraction
This commit is contained in:
@@ -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