mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-20 04:18:51 -07:00
24 lines
711 B
C#
24 lines
711 B
C#
using System;
|
|
|
|
namespace Emby.Server.Implementations.Services
|
|
{
|
|
public class ServiceMethod
|
|
{
|
|
public const string AnyAction = "ANY";
|
|
|
|
public string Id { get; set; }
|
|
|
|
public ActionInvokerFn ServiceAction { get; set; }
|
|
public MediaBrowser.Model.Services.IHasRequestFilter[] RequestFilters { get; set; }
|
|
|
|
public static string Key(Type serviceType, string method, string requestDtoName)
|
|
{
|
|
return serviceType.FullName + " " + method.ToUpper() + " " + requestDtoName;
|
|
}
|
|
|
|
public static string AnyKey(Type serviceType, string requestDtoName)
|
|
{
|
|
return Key(serviceType, AnyAction, requestDtoName);
|
|
}
|
|
}
|
|
} |