Sonarr/src/Sonarr.Api.V3/Config/ImportListConfigResource.cs

25 lines
650 B
C#
Raw Normal View History

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,
};
}
}
}