mirror of https://github.com/Sonarr/Sonarr
25 lines
650 B
C#
25 lines
650 B
C#
|
using NzbDrone.Core.Configuration;
|
||
|
using NzbDrone.Core.ImportLists;
|
||
|
using Sonarr.Http.REST;
|
||
|
|
||
|
namespace Sonarr.Api.V3.Config
|
||
|
{
|
||
|
public class ImportListConfigResource : RestResource
|
||
|
{
|
||
|
public ListSyncLevelType ListSyncLevel { get; set; }
|
||
|
public int ListSyncTag { get; set; }
|
||
|
}
|
||
|
|
||
|
public static class ImportListConfigResourceMapper
|
||
|
{
|
||
|
public static ImportListConfigResource ToResource(IConfigService model)
|
||
|
{
|
||
|
return new ImportListConfigResource
|
||
|
{
|
||
|
ListSyncLevel = model.ListSyncLevel,
|
||
|
ListSyncTag = model.ListSyncTag,
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|