diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-09-11 15:25:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-11 15:25:55 -0400 |
| commit | 4f3eef77b6364da2e04e1a937d11fdc1f8d5848e (patch) | |
| tree | c4f381ddde5fd428f11c1b8b602f31c6d3eb2166 /Emby.Server.Implementations/Services/ServicePath.cs | |
| parent | 58cd0bb287413a9957dfac35babc5489b4e056f1 (diff) | |
| parent | 2f99a78230b397535d7ea0b9e335a00b438379b4 (diff) | |
Merge pull request #2878 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Services/ServicePath.cs')
| -rw-r--r-- | Emby.Server.Implementations/Services/ServicePath.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Services/ServicePath.cs b/Emby.Server.Implementations/Services/ServicePath.cs index df5d71374..0ca36df19 100644 --- a/Emby.Server.Implementations/Services/ServicePath.cs +++ b/Emby.Server.Implementations/Services/ServicePath.cs @@ -51,6 +51,8 @@ namespace Emby.Server.Implementations.Services public string Path { get { return this.restPath; } } public string Summary { get; private set; } + public string Description { get; private set; } + public bool IsHidden { get; private set; } public int Priority { get; set; } //passed back to RouteAttribute @@ -91,10 +93,12 @@ namespace Emby.Server.Implementations.Services return list; } - public RestPath(Func<Type, object> createInstanceFn, Func<Type, Func<string, object>> getParseFn, Type requestType, string path, string verbs, string summary = null) + public RestPath(Func<Type, object> createInstanceFn, Func<Type, Func<string, object>> getParseFn, Type requestType, string path, string verbs, bool isHidden = false, string summary = null, string description = null) { this.RequestType = requestType; this.Summary = summary; + this.IsHidden = isHidden; + this.Description = description; this.restPath = path; this.Verbs = string.IsNullOrWhiteSpace(verbs) ? ServiceExecExtensions.AllVerbs : verbs.ToUpper().Split(new[] { ' ', ',' }, StringSplitOptions.RemoveEmptyEntries); |
