mirror of
https://github.com/Readarr/Readarr
synced 2025-12-25 17:54:14 +01:00
27 lines
778 B
C#
27 lines
778 B
C#
using NzbDrone.Core.Configuration;
|
|
using Readarr.Http.REST;
|
|
|
|
namespace Readarr.Api.V1.Config
|
|
{
|
|
public class IndexerConfigResource : RestResource
|
|
{
|
|
public int MinimumAge { get; set; }
|
|
public int MaximumSize { get; set; }
|
|
public int Retention { get; set; }
|
|
public int RssSyncInterval { get; set; }
|
|
}
|
|
|
|
public static class IndexerConfigResourceMapper
|
|
{
|
|
public static IndexerConfigResource ToResource(IConfigService model)
|
|
{
|
|
return new IndexerConfigResource
|
|
{
|
|
MinimumAge = model.MinimumAge,
|
|
MaximumSize = model.MaximumSize,
|
|
Retention = model.Retention,
|
|
RssSyncInterval = model.RssSyncInterval,
|
|
};
|
|
}
|
|
}
|
|
}
|