2015-01-16 21:29:53 -07:00
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Model.Sync;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2016-11-03 15:34:16 -07:00
|
|
|
|
namespace Emby.Server.Implementations.Sync
|
2015-01-16 21:29:53 -07:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|