2016-10-29 15:22:20 -07:00
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2016-10-29 15:34:54 -07:00
|
|
|
|
namespace Emby.Dlna
|
2016-10-29 15:22:20 -07:00
|
|
|
|
{
|
|
|
|
|
public static class ConfigurationExtension
|
|
|
|
|
{
|
|
|
|
|
public static DlnaOptions GetDlnaConfiguration(this IConfigurationManager manager)
|
|
|
|
|
{
|
|
|
|
|
return manager.GetConfiguration<DlnaOptions>("dlna");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DlnaConfigurationFactory : IConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
|
|
|
|
{
|
|
|
|
|
return new List<ConfigurationStore>
|
|
|
|
|
{
|
|
|
|
|
new ConfigurationStore
|
|
|
|
|
{
|
|
|
|
|
Key = "dlna",
|
|
|
|
|
ConfigurationType = typeof (DlnaOptions)
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|