mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
New: v4 API (DROP v3 AFTER TESTING PERIOD)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.MetadataSource.SkyHook.Resource;
|
||||
using Radarr.Http.REST;
|
||||
|
||||
namespace Radarr.Api.V4.Config
|
||||
{
|
||||
public class MetadataConfigResource : RestResource
|
||||
{
|
||||
public TMDbCountryCode CertificationCountry { get; set; }
|
||||
}
|
||||
|
||||
public static class MetadataConfigResourceMapper
|
||||
{
|
||||
public static MetadataConfigResource ToResource(IConfigService model)
|
||||
{
|
||||
return new MetadataConfigResource
|
||||
{
|
||||
CertificationCountry = model.CertificationCountry,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user