From d71d2a5d02cf31b67420b54160868247f23546bb Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 2 Nov 2016 16:53:50 -0400 Subject: move classes to portable server project --- .../Channels/ChannelConfigurations.cs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Emby.Server.Implementations/Channels/ChannelConfigurations.cs (limited to 'Emby.Server.Implementations/Channels/ChannelConfigurations.cs') diff --git a/Emby.Server.Implementations/Channels/ChannelConfigurations.cs b/Emby.Server.Implementations/Channels/ChannelConfigurations.cs new file mode 100644 index 0000000000..ef0973e7f4 --- /dev/null +++ b/Emby.Server.Implementations/Channels/ChannelConfigurations.cs @@ -0,0 +1,29 @@ +using MediaBrowser.Common.Configuration; +using MediaBrowser.Model.Configuration; +using System.Collections.Generic; + +namespace Emby.Server.Implementations.Channels +{ + public static class ChannelConfigurationExtension + { + public static ChannelOptions GetChannelsConfiguration(this IConfigurationManager manager) + { + return manager.GetConfiguration("channels"); + } + } + + public class ChannelConfigurationFactory : IConfigurationFactory + { + public IEnumerable GetConfigurations() + { + return new List + { + new ConfigurationStore + { + Key = "channels", + ConfigurationType = typeof (ChannelOptions) + } + }; + } + } +} -- cgit v1.2.3