aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/HttpHandlers/PluginsHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/HttpHandlers/PluginsHandler.cs')
-rw-r--r--MediaBrowser.Api/HttpHandlers/PluginsHandler.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/MediaBrowser.Api/HttpHandlers/PluginsHandler.cs b/MediaBrowser.Api/HttpHandlers/PluginsHandler.cs
deleted file mode 100644
index a1b37ecab..000000000
--- a/MediaBrowser.Api/HttpHandlers/PluginsHandler.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MediaBrowser.Common.Net.Handlers;
-using MediaBrowser.Controller;
-using MediaBrowser.Model.DTO;
-using System.Collections.Generic;
-using System.ComponentModel.Composition;
-using System.Linq;
-using System.Net;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Api.HttpHandlers
-{
- /// <summary>
- /// Provides information about installed plugins
- /// </summary>
- [Export(typeof(BaseHandler))]
- public class PluginsHandler : BaseSerializationHandler<IEnumerable<PluginInfo>>
- {
- public override bool HandlesRequest(HttpListenerRequest request)
- {
- return ApiService.IsApiUrlMatch("plugins", request);
- }
-
- protected override Task<IEnumerable<PluginInfo>> GetObjectToSerialize()
- {
- var plugins = Kernel.Instance.Plugins.Select(p => new PluginInfo
- {
- Name = p.Name,
- Enabled = p.Enabled,
- DownloadToUI = p.DownloadToUi,
- Version = p.Version.ToString(),
- AssemblyFileName = p.AssemblyFileName,
- ConfigurationDateLastModified = p.ConfigurationDateLastModified
- });
-
- return Task.FromResult(plugins);
- }
- }
-}