mirror of https://github.com/lidarr/Lidarr
26 lines
761 B
C#
26 lines
761 B
C#
using Lidarr.Http.REST;
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
namespace Lidarr.Api.V1.Config
|
|
{
|
|
public class MetadataProviderConfigResource : RestResource
|
|
{
|
|
public string MetadataSource { get; set; }
|
|
public WriteAudioTagsType WriteAudioTags { get; set; }
|
|
public bool ScrubAudioTags { get; set; }
|
|
}
|
|
|
|
public static class MetadataProviderConfigResourceMapper
|
|
{
|
|
public static MetadataProviderConfigResource ToResource(IConfigService model)
|
|
{
|
|
return new MetadataProviderConfigResource
|
|
{
|
|
MetadataSource = model.MetadataSource,
|
|
WriteAudioTags = model.WriteAudioTags,
|
|
ScrubAudioTags = model.ScrubAudioTags,
|
|
};
|
|
}
|
|
}
|
|
}
|