jellyfin/MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
Luke Pulverenti 0e02e0559d sync updates
2015-01-16 23:29:53 -05:00

30 lines
799 B
C#

using MediaBrowser.Common.Configuration;
using MediaBrowser.Model.Sync;
using System.Collections.Generic;
namespace MediaBrowser.Server.Implementations.Sync
{
public class SyncConfigurationFactory : IConfigurationFactory
{
public IEnumerable<ConfigurationStore> GetConfigurations()
{
return new List<ConfigurationStore>
{
new ConfigurationStore
{
ConfigurationType = typeof(SyncOptions),
Key = "sync"
}
};
}
}
public static class SyncExtensions
{
public static SyncOptions GetSyncOptions(this IConfigurationManager config)
{
return config.GetConfiguration<SyncOptions>("sync");
}
}
}