mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
26 lines
763 B
C#
26 lines
763 B
C#
using NzbDrone.Core.Configuration;
|
|
using Readarr.Http.REST;
|
|
|
|
namespace Readarr.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,
|
|
};
|
|
}
|
|
}
|
|
}
|