mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
Added new api handlers to get plugin information
This commit is contained in:
parent
6c7175e33d
commit
84af205572
18
MediaBrowser.Model/Plugins/BasePluginConfiguration.cs
Normal file
18
MediaBrowser.Model/Plugins/BasePluginConfiguration.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Plugins
|
||||
{
|
||||
public class BasePluginConfiguration
|
||||
{
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
[IgnoreDataMember]
|
||||
public DateTime DateLastModified { get; set; }
|
||||
|
||||
public BasePluginConfiguration()
|
||||
{
|
||||
Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
17
MediaBrowser.Model/Plugins/PluginInfo.cs
Normal file
17
MediaBrowser.Model/Plugins/PluginInfo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Plugins
|
||||
{
|
||||
/// <summary>
|
||||
/// This is a serializable stub class that is used by the api to provide information about installed plugins.
|
||||
/// </summary>
|
||||
public class PluginInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Path { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public bool DownloadToUI { get; set; }
|
||||
public DateTime ConfigurationDateLastModified { get; set; }
|
||||
public Version Version { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user