You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
953 B
33 lines
953 B
1 year ago
|
using System.Collections.Generic;
|
||
|
using NzbDrone.Core.ThingiProvider;
|
||
|
|
||
|
namespace Lidarr.Api.V1
|
||
|
{
|
||
|
public class ProviderBulkResource<T>
|
||
|
{
|
||
|
public List<int> Ids { get; set; }
|
||
|
public List<int> Tags { get; set; }
|
||
|
public ApplyTags ApplyTags { get; set; }
|
||
|
|
||
|
public ProviderBulkResource()
|
||
|
{
|
||
|
Ids = new List<int>();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class ProviderBulkResourceMapper<TProviderBulkResource, TProviderDefinition>
|
||
|
where TProviderBulkResource : ProviderBulkResource<TProviderBulkResource>, new()
|
||
|
where TProviderDefinition : ProviderDefinition, new()
|
||
|
{
|
||
|
public virtual List<TProviderDefinition> UpdateModel(TProviderBulkResource resource, List<TProviderDefinition> existingDefinitions)
|
||
|
{
|
||
|
if (resource == null)
|
||
|
{
|
||
|
return new List<TProviderDefinition>();
|
||
|
}
|
||
|
|
||
|
return existingDefinitions;
|
||
|
}
|
||
|
}
|
||
|
}
|