mirror of https://github.com/Radarr/Radarr
Remove empty constructors
This commit is contained in:
parent
156def3138
commit
fd76d67bae
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
@ -210,10 +210,6 @@ namespace NzbDrone.Core.Test.Messaging.Commands
|
||||||
|
|
||||||
public class CommandB : Command
|
public class CommandB : Command
|
||||||
{
|
{
|
||||||
public CommandB()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override string CompletionMessage => null;
|
public override string CompletionMessage => null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,5 @@ namespace NzbDrone.Core.Download
|
||||||
{
|
{
|
||||||
public class DownloadsProcessedEvent : IEvent
|
public class DownloadsProcessedEvent : IEvent
|
||||||
{
|
{
|
||||||
public DownloadsProcessedEvent()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.MediaBrowser
|
||||||
{
|
{
|
||||||
public class MediaBrowserSettingsValidator : AbstractValidator<MediaBrowserMetadataSettings>
|
public class MediaBrowserSettingsValidator : AbstractValidator<MediaBrowserMetadataSettings>
|
||||||
{
|
{
|
||||||
public MediaBrowserSettingsValidator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MediaBrowserMetadataSettings : IProviderConfig
|
public class MediaBrowserMetadataSettings : IProviderConfig
|
||||||
|
|
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Roksbox
|
||||||
{
|
{
|
||||||
public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings>
|
public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings>
|
||||||
{
|
{
|
||||||
public RoksboxSettingsValidator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class RoksboxMetadataSettings : IProviderConfig
|
public class RoksboxMetadataSettings : IProviderConfig
|
||||||
|
|
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Wdtv
|
||||||
{
|
{
|
||||||
public class WdtvSettingsValidator : AbstractValidator<WdtvMetadataSettings>
|
public class WdtvSettingsValidator : AbstractValidator<WdtvMetadataSettings>
|
||||||
{
|
{
|
||||||
public WdtvSettingsValidator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class WdtvMetadataSettings : IProviderConfig
|
public class WdtvMetadataSettings : IProviderConfig
|
||||||
|
|
|
@ -8,9 +8,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
|
||||||
{
|
{
|
||||||
public class XbmcSettingsValidator : AbstractValidator<XbmcMetadataSettings>
|
public class XbmcSettingsValidator : AbstractValidator<XbmcMetadataSettings>
|
||||||
{
|
{
|
||||||
public XbmcSettingsValidator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class XbmcMetadataSettings : IProviderConfig
|
public class XbmcMetadataSettings : IProviderConfig
|
||||||
|
|
|
@ -12,10 +12,6 @@ namespace NzbDrone.Core.ImportLists.CouchPotato
|
||||||
{
|
{
|
||||||
private ImportListResponse _importListResponse;
|
private ImportListResponse _importListResponse;
|
||||||
|
|
||||||
public CouchPotatoParser()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
|
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
|
||||||
{
|
{
|
||||||
_importListResponse = importListResponse;
|
_importListResponse = importListResponse;
|
||||||
|
|
|
@ -14,10 +14,6 @@ namespace NzbDrone.Core.ImportLists.Plex
|
||||||
{
|
{
|
||||||
private ImportListResponse _importResponse;
|
private ImportListResponse _importResponse;
|
||||||
|
|
||||||
public PlexParser()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
||||||
{
|
{
|
||||||
List<PlexWatchlistItem> items;
|
List<PlexWatchlistItem> items;
|
||||||
|
|
|
@ -9,10 +9,6 @@ namespace NzbDrone.Core.ImportLists.RadarrList
|
||||||
{
|
{
|
||||||
public class RadarrListParser : IParseImportListResponse
|
public class RadarrListParser : IParseImportListResponse
|
||||||
{
|
{
|
||||||
public RadarrListParser()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
|
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
|
||||||
{
|
{
|
||||||
var importResponse = importListResponse;
|
var importResponse = importListResponse;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using NzbDrone.Core.Annotations;
|
using NzbDrone.Core.Annotations;
|
||||||
using NzbDrone.Core.ThingiProvider;
|
using NzbDrone.Core.ThingiProvider;
|
||||||
using NzbDrone.Core.Validation;
|
using NzbDrone.Core.Validation;
|
||||||
|
@ -19,10 +19,6 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
|
||||||
{
|
{
|
||||||
private static readonly IMDbSettingsValidator Validator = new IMDbSettingsValidator();
|
private static readonly IMDbSettingsValidator Validator = new IMDbSettingsValidator();
|
||||||
|
|
||||||
public IMDbListSettings()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
[FieldDefinition(1, Label = "List/User ID", HelpText = "IMDb list ID (e.g ls12345678), IMDb user ID (e.g. ur12345678), 'top250' or 'popular'")]
|
[FieldDefinition(1, Label = "List/User ID", HelpText = "IMDb list ID (e.g ls12345678), IMDb user ID (e.g. ur12345678), 'top250' or 'popular'")]
|
||||||
public string ListId { get; set; }
|
public string ListId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,6 @@ namespace NzbDrone.Core.ImportLists.StevenLu
|
||||||
{
|
{
|
||||||
private ImportListResponse _importResponse;
|
private ImportListResponse _importResponse;
|
||||||
|
|
||||||
public StevenLuParser()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
public IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
||||||
{
|
{
|
||||||
_importResponse = importResponse;
|
_importResponse = importResponse;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Http;
|
using NzbDrone.Common.Http;
|
||||||
|
@ -13,10 +13,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.Company
|
||||||
public Logger Logger { get; set; }
|
public Logger Logger { get; set; }
|
||||||
public int MaxPages { get; set; }
|
public int MaxPages { get; set; }
|
||||||
|
|
||||||
public TMDbCompanyRequestGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual ImportListPageableRequestChain GetMovies()
|
public virtual ImportListPageableRequestChain GetMovies()
|
||||||
{
|
{
|
||||||
var pageableRequests = new ImportListPageableRequestChain();
|
var pageableRequests = new ImportListPageableRequestChain();
|
||||||
|
|
|
@ -13,10 +13,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.Keyword
|
||||||
public Logger Logger { get; set; }
|
public Logger Logger { get; set; }
|
||||||
public int MaxPages { get; set; }
|
public int MaxPages { get; set; }
|
||||||
|
|
||||||
public TMDbKeywordRequestGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual ImportListPageableRequestChain GetMovies()
|
public virtual ImportListPageableRequestChain GetMovies()
|
||||||
{
|
{
|
||||||
var pageableRequests = new ImportListPageableRequestChain();
|
var pageableRequests = new ImportListPageableRequestChain();
|
||||||
|
|
|
@ -13,10 +13,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.List
|
||||||
public Logger Logger { get; set; }
|
public Logger Logger { get; set; }
|
||||||
public int MaxPages { get; set; }
|
public int MaxPages { get; set; }
|
||||||
|
|
||||||
public TMDbListRequestGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual ImportListPageableRequestChain GetMovies()
|
public virtual ImportListPageableRequestChain GetMovies()
|
||||||
{
|
{
|
||||||
var pageableRequests = new ImportListPageableRequestChain();
|
var pageableRequests = new ImportListPageableRequestChain();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Http;
|
using NzbDrone.Common.Http;
|
||||||
|
|
||||||
|
@ -11,10 +11,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.Person
|
||||||
public IHttpRequestBuilderFactory RequestBuilder { get; set; }
|
public IHttpRequestBuilderFactory RequestBuilder { get; set; }
|
||||||
public Logger Logger { get; set; }
|
public Logger Logger { get; set; }
|
||||||
|
|
||||||
public TMDbPersonRequestGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual ImportListPageableRequestChain GetMovies()
|
public virtual ImportListPageableRequestChain GetMovies()
|
||||||
{
|
{
|
||||||
var pageableRequests = new ImportListPageableRequestChain();
|
var pageableRequests = new ImportListPageableRequestChain();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using NzbDrone.Core.ThingiProvider;
|
using NzbDrone.Core.ThingiProvider;
|
||||||
using NzbDrone.Core.Validation;
|
using NzbDrone.Core.Validation;
|
||||||
|
|
||||||
|
@ -7,18 +7,12 @@ namespace NzbDrone.Core.ImportLists.TMDb
|
||||||
public class TMDbSettingsBaseValidator<TSettings> : AbstractValidator<TSettings>
|
public class TMDbSettingsBaseValidator<TSettings> : AbstractValidator<TSettings>
|
||||||
where TSettings : TMDbSettingsBase<TSettings>
|
where TSettings : TMDbSettingsBase<TSettings>
|
||||||
{
|
{
|
||||||
public TMDbSettingsBaseValidator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TMDbSettingsBase<TSettings> : IProviderConfig
|
public class TMDbSettingsBase<TSettings> : IProviderConfig
|
||||||
where TSettings : TMDbSettingsBase<TSettings>
|
where TSettings : TMDbSettingsBase<TSettings>
|
||||||
{
|
{
|
||||||
protected virtual AbstractValidator<TSettings> Validator => new TMDbSettingsBaseValidator<TSettings>();
|
protected virtual AbstractValidator<TSettings> Validator => new TMDbSettingsBaseValidator<TSettings>();
|
||||||
public TMDbSettingsBase()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public NzbDroneValidationResult Validate()
|
public NzbDroneValidationResult Validate()
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,10 +15,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.User
|
||||||
|
|
||||||
public int MaxPages { get; set; }
|
public int MaxPages { get; set; }
|
||||||
|
|
||||||
public TMDbUserRequestGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual ImportListPageableRequestChain GetMovies()
|
public virtual ImportListPageableRequestChain GetMovies()
|
||||||
{
|
{
|
||||||
var pageableRequests = new ImportListPageableRequestChain();
|
var pageableRequests = new ImportListPageableRequestChain();
|
||||||
|
|
|
@ -17,10 +17,6 @@ namespace NzbDrone.Core.ImportLists.Trakt.List
|
||||||
{
|
{
|
||||||
protected override AbstractValidator<TraktListSettings> Validator => new TraktListSettingsValidator();
|
protected override AbstractValidator<TraktListSettings> Validator => new TraktListSettingsValidator();
|
||||||
|
|
||||||
public TraktListSettings()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
[FieldDefinition(1, Label = "Username", Privacy = PrivacyLevel.UserName, HelpText = "Username for the List to import from")]
|
[FieldDefinition(1, Label = "Username", Privacy = PrivacyLevel.UserName, HelpText = "Username for the List to import from")]
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,6 @@ namespace NzbDrone.Core.ImportLists.Trakt
|
||||||
{
|
{
|
||||||
private ImportListResponse _importResponse;
|
private ImportListResponse _importResponse;
|
||||||
|
|
||||||
public TraktParser()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
||||||
{
|
{
|
||||||
_importResponse = importResponse;
|
_importResponse = importResponse;
|
||||||
|
|
|
@ -10,10 +10,6 @@ namespace NzbDrone.Core.Indexers.TorrentPotato
|
||||||
{
|
{
|
||||||
public TorrentPotatoSettings Settings { get; set; }
|
public TorrentPotatoSettings Settings { get; set; }
|
||||||
|
|
||||||
public TorrentPotatoRequestGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual IndexerPageableRequestChain GetRecentRequests()
|
public virtual IndexerPageableRequestChain GetRecentRequests()
|
||||||
{
|
{
|
||||||
var pageableRequests = new IndexerPageableRequestChain();
|
var pageableRequests = new IndexerPageableRequestChain();
|
||||||
|
|
|
@ -9,9 +9,5 @@ namespace NzbDrone.Core.MediaFiles.Commands
|
||||||
|
|
||||||
public override bool SendUpdatesToClient => true;
|
public override bool SendUpdatesToClient => true;
|
||||||
public override bool RequiresDiskAccess => true;
|
public override bool RequiresDiskAccess => true;
|
||||||
|
|
||||||
public RenameMovieCommand()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using NzbDrone.Core.Annotations;
|
using NzbDrone.Core.Annotations;
|
||||||
using NzbDrone.Core.ThingiProvider;
|
using NzbDrone.Core.ThingiProvider;
|
||||||
using NzbDrone.Core.Validation;
|
using NzbDrone.Core.Validation;
|
||||||
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Notifications.Synology
|
||||||
{
|
{
|
||||||
public class SynologyIndexerSettingsValidator : AbstractValidator<SynologyIndexerSettings>
|
public class SynologyIndexerSettingsValidator : AbstractValidator<SynologyIndexerSettings>
|
||||||
{
|
{
|
||||||
public SynologyIndexerSettingsValidator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SynologyIndexerSettings : IProviderConfig
|
public class SynologyIndexerSettings : IProviderConfig
|
||||||
|
|
|
@ -8,10 +8,6 @@ namespace Radarr.Api.V3.Credits
|
||||||
{
|
{
|
||||||
public class CreditResource : RestResource
|
public class CreditResource : RestResource
|
||||||
{
|
{
|
||||||
public CreditResource()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public string PersonName { get; set; }
|
public string PersonName { get; set; }
|
||||||
public string CreditTmdbId { get; set; }
|
public string CreditTmdbId { get; set; }
|
||||||
public int PersonTmdbId { get; set; }
|
public int PersonTmdbId { get; set; }
|
||||||
|
|
|
@ -8,10 +8,6 @@ namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class AlternativeTitleResource : RestResource
|
public class AlternativeTitleResource : RestResource
|
||||||
{
|
{
|
||||||
public AlternativeTitleResource()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// Todo: Sorters should be done completely on the client
|
// Todo: Sorters should be done completely on the client
|
||||||
// Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
|
// Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
|
||||||
// Todo: We should get the entire Profile instead of ID and Name separately
|
// Todo: We should get the entire Profile instead of ID and Name separately
|
||||||
|
|
|
@ -5,10 +5,6 @@ namespace Radarr.Http
|
||||||
{
|
{
|
||||||
public class ApiInfoController : Controller
|
public class ApiInfoController : Controller
|
||||||
{
|
{
|
||||||
public ApiInfoController()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpGet("/api")]
|
[HttpGet("/api")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
public ApiInfoResource GetApiInfo()
|
public ApiInfoResource GetApiInfo()
|
||||||
|
|
Loading…
Reference in New Issue