mirror of
https://github.com/Readarr/Readarr
synced 2026-01-17 21:13:38 +01:00
29 lines
962 B
C#
29 lines
962 B
C#
using NzbDrone.Core.Configuration;
|
|
using Readarr.Http.REST;
|
|
|
|
namespace Prowlarr.Api.V1.Config
|
|
{
|
|
public class DevelopmentConfigResource : RestResource
|
|
{
|
|
public string MetadataSource { get; set; }
|
|
public string ConsoleLogLevel { get; set; }
|
|
public bool LogSql { get; set; }
|
|
public int LogRotate { get; set; }
|
|
public bool FilterSentryEvents { get; set; }
|
|
}
|
|
|
|
public static class DevelopmentConfigResourceMapper
|
|
{
|
|
public static DevelopmentConfigResource ToResource(this IConfigFileProvider model, IConfigService configService)
|
|
{
|
|
return new DevelopmentConfigResource
|
|
{
|
|
MetadataSource = configService.MetadataSource,
|
|
ConsoleLogLevel = model.ConsoleLogLevel,
|
|
LogSql = model.LogSql,
|
|
LogRotate = model.LogRotate,
|
|
FilterSentryEvents = model.FilterSentryEvents
|
|
};
|
|
}
|
|
}
|
|
}
|