mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
parent
a602611a5f
commit
a4b78b44ce
1307 changed files with 8702 additions and 7403 deletions
|
@ -1,8 +1,8 @@
|
|||
using System.Collections.Generic;
|
||||
using NzbDrone.Common.Reflection;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
using Lidarr.Http.ClientSchema;
|
||||
using Lidarr.Http.REST;
|
||||
using NzbDrone.Common.Reflection;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
|
||||
namespace Lidarr.Api.V1
|
||||
{
|
||||
|
@ -25,7 +25,6 @@ namespace Lidarr.Api.V1
|
|||
where TProviderDefinition : ProviderDefinition, new()
|
||||
{
|
||||
public virtual TProviderResource ToResource(TProviderDefinition definition)
|
||||
|
||||
{
|
||||
return new TProviderResource
|
||||
{
|
||||
|
@ -47,7 +46,10 @@ namespace Lidarr.Api.V1
|
|||
|
||||
public virtual TProviderDefinition ToModel(TProviderResource resource)
|
||||
{
|
||||
if (resource == null) return default(TProviderDefinition);
|
||||
if (resource == null)
|
||||
{
|
||||
return default(TProviderDefinition);
|
||||
}
|
||||
|
||||
var definition = new TProviderDefinition
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue