2014-06-30 17:40:46 +00:00
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2016-11-02 20:53:50 +00:00
|
|
|
|
namespace Emby.Server.Implementations.Channels
|
2014-06-30 17:40:46 +00:00
|
|
|
|
{
|
|
|
|
|
public static class ChannelConfigurationExtension
|
|
|
|
|
{
|
|
|
|
|
public static ChannelOptions GetChannelsConfiguration(this IConfigurationManager manager)
|
|
|
|
|
{
|
|
|
|
|
return manager.GetConfiguration<ChannelOptions>("channels");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ChannelConfigurationFactory : IConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
|
|
|
|
{
|
|
|
|
|
return new List<ConfigurationStore>
|
|
|
|
|
{
|
|
|
|
|
new ConfigurationStore
|
|
|
|
|
{
|
|
|
|
|
Key = "channels",
|
|
|
|
|
ConfigurationType = typeof (ChannelOptions)
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|