You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
962 B
30 lines
962 B
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
|
|
};
|
|
}
|
|
}
|
|
}
|