2016-11-11 19:55:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2017-02-13 01:07:48 +00:00
|
|
|
|
namespace Emby.Server.Implementations.Services
|
2016-11-11 19:55:12 +00:00
|
|
|
|
{
|
2017-02-13 01:07:48 +00:00
|
|
|
|
public class ServiceMethod
|
2016-11-11 19:55:12 +00:00
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|