mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
8bb52105fd
(cherry picked from commit 2dba5ef4b431bee0a061be67354c9a7a612a03c8)
28 lines
856 B
C#
28 lines
856 B
C#
using NzbDrone.Core.Configuration;
|
|
using Readarr.Http.REST;
|
|
|
|
namespace Readarr.Api.V1.Config
|
|
{
|
|
public class DownloadClientConfigResource : RestResource
|
|
{
|
|
public string DownloadClientWorkingFolders { get; set; }
|
|
|
|
public bool EnableCompletedDownloadHandling { get; set; }
|
|
public bool AutoRedownloadFailed { get; set; }
|
|
}
|
|
|
|
public static class DownloadClientConfigResourceMapper
|
|
{
|
|
public static DownloadClientConfigResource ToResource(IConfigService model)
|
|
{
|
|
return new DownloadClientConfigResource
|
|
{
|
|
DownloadClientWorkingFolders = model.DownloadClientWorkingFolders,
|
|
|
|
EnableCompletedDownloadHandling = model.EnableCompletedDownloadHandling,
|
|
AutoRedownloadFailed = model.AutoRedownloadFailed
|
|
};
|
|
}
|
|
}
|
|
}
|