refactor: Move Radarr & Sonarr code to Services directory

And update namespaces
pull/113/head
Robert Dailey 2 years ago
parent 43ee3b2de7
commit 6400716150

@ -6,7 +6,7 @@ using NSubstitute;
using NUnit.Framework;
using Recyclarr.Command;
using TestLibrary.AutoFixture;
using TrashLib.Sonarr;
using TrashLib.Services.Sonarr;
namespace Recyclarr.Tests.Command;

@ -17,7 +17,7 @@ using TestLibrary.AutoFixture;
using TestLibrary.NSubstitute;
using TrashLib.Config;
using TrashLib.Config.Services;
using TrashLib.Sonarr.Config;
using TrashLib.Services.Sonarr.Config;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.ObjectFactories;

@ -3,9 +3,9 @@ using JetBrains.Annotations;
using Recyclarr.Config;
using Serilog;
using TrashLib.Extensions;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat;
using TrashLib.Radarr.QualityDefinition;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat;
using TrashLib.Services.Radarr.QualityDefinition;
namespace Recyclarr.Command;

@ -4,10 +4,10 @@ using JetBrains.Annotations;
using Recyclarr.Config;
using Serilog;
using TrashLib.Extensions;
using TrashLib.Sonarr;
using TrashLib.Sonarr.Config;
using TrashLib.Sonarr.QualityDefinition;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr;
using TrashLib.Services.Sonarr.Config;
using TrashLib.Services.Sonarr.QualityDefinition;
using TrashLib.Services.Sonarr.ReleaseProfile;
namespace Recyclarr.Command;

@ -15,9 +15,9 @@ using Serilog.Events;
using TrashLib;
using TrashLib.Cache;
using TrashLib.Config;
using TrashLib.Radarr;
using TrashLib.Repo;
using TrashLib.Sonarr;
using TrashLib.Services.Radarr;
using TrashLib.Services.Sonarr;
using TrashLib.Startup;
using VersionControl;
using YamlDotNet.Serialization;

@ -1,4 +1,4 @@
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.TestLibrary;

@ -1,6 +1,6 @@
using Newtonsoft.Json.Linq;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.TestLibrary;

@ -5,10 +5,10 @@ using NSubstitute;
using NUnit.Framework;
using Serilog;
using TrashLib.Cache;
using TrashLib.Radarr.CustomFormat;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.CustomFormat;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Tests.Radarr.CustomFormat;

@ -4,8 +4,8 @@ using FluentAssertions;
using NSubstitute;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Radarr.CustomFormat;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Services.Radarr.CustomFormat;
using TrashLib.Services.Radarr.CustomFormat.Guide;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat;

@ -4,7 +4,7 @@ using AutoFixture.NUnit3;
using FluentAssertions;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Services.Radarr.CustomFormat.Guide;
using TrashLib.Startup;
namespace TrashLib.Tests.Radarr.CustomFormat.Guide;

@ -5,8 +5,8 @@ using FluentAssertions;
using NSubstitute;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Repo;
using TrashLib.Services.Radarr.CustomFormat.Guide;
using TrashLib.Startup;
using TrashLib.TestLibrary;

@ -6,11 +6,11 @@ using NSubstitute;
using NUnit.Framework;
using Serilog;
using TestLibrary.FluentAssertions;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Processors;
using TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Guide;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Processors;
using TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors;

@ -2,10 +2,10 @@ using FluentAssertions;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors.GuideSteps;

@ -4,10 +4,10 @@ using Newtonsoft.Json.Linq;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TestLibrary.FluentAssertions;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors.GuideSteps;

@ -1,8 +1,8 @@
using FluentAssertions;
using NUnit.Framework;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors.GuideSteps;

@ -3,11 +3,11 @@ using Newtonsoft.Json.Linq;
using NSubstitute;
using NUnit.Framework;
using TrashLib.Config.Services;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors;

@ -1,9 +1,9 @@
using NSubstitute;
using NUnit.Framework;
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors.PersistenceSteps;

@ -3,9 +3,9 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using TestLibrary.FluentAssertions;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.TestLibrary;
/* Sample Custom Format response from Radarr API

@ -5,10 +5,10 @@ using Newtonsoft.Json.Linq;
using NSubstitute;
using NUnit.Framework;
using TestLibrary.NSubstitute;
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.TestLibrary;
namespace TrashLib.Tests.Radarr.CustomFormat.Processors.PersistenceSteps;

@ -1,6 +1,6 @@
using FluentAssertions;
using NUnit.Framework;
using TrashLib.Radarr.QualityDefinition;
using TrashLib.Services.Radarr.QualityDefinition;
namespace TrashLib.Tests.Radarr.QualityDefinition;

@ -4,9 +4,9 @@ using FluentAssertions;
using FluentValidation;
using NUnit.Framework;
using TrashLib.Config;
using TrashLib.Radarr;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.QualityDefinition;
using TrashLib.Services.Radarr;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.QualityDefinition;
namespace TrashLib.Tests.Radarr;

@ -6,9 +6,9 @@ using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
using NSubstitute;
using NUnit.Framework;
using TrashLib.Sonarr;
using TrashLib.Sonarr.Api;
using TrashLib.Sonarr.Api.Objects;
using TrashLib.Services.Sonarr;
using TrashLib.Services.Sonarr.Api;
using TrashLib.Services.Sonarr.Api.Objects;
using TrashLib.Startup;
namespace TrashLib.Tests.Sonarr.Api;

@ -1,6 +1,6 @@
using FluentAssertions;
using NUnit.Framework;
using TrashLib.Sonarr.QualityDefinition;
using TrashLib.Services.Sonarr.QualityDefinition;
namespace TrashLib.Tests.Sonarr.QualityDefinition;

@ -1,9 +1,9 @@
using FluentAssertions;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Sonarr.Config;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Sonarr.ReleaseProfile.Filters;
using TrashLib.Services.Sonarr.Config;
using TrashLib.Services.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile.Filters;
namespace TrashLib.Tests.Sonarr.ReleaseProfile.Filters;

@ -1,8 +1,8 @@
using FluentAssertions;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Sonarr.ReleaseProfile.Filters;
using TrashLib.Services.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile.Filters;
namespace TrashLib.Tests.Sonarr.ReleaseProfile.Filters;

@ -1,9 +1,9 @@
using FluentAssertions;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Sonarr.Config;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Sonarr.ReleaseProfile.Filters;
using TrashLib.Services.Sonarr.Config;
using TrashLib.Services.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile.Filters;
namespace TrashLib.Tests.Sonarr.ReleaseProfile.Filters;

@ -8,8 +8,8 @@ using NUnit.Framework;
using TestLibrary;
using TestLibrary.AutoFixture;
using TrashLib.Repo;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Sonarr.ReleaseProfile.Guide;
using TrashLib.Services.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile.Guide;
using TrashLib.Startup;
namespace TrashLib.Tests.Sonarr.ReleaseProfile.Guide;

@ -1,7 +1,7 @@
using FluentAssertions;
using FluentValidation.TestHelper;
using NUnit.Framework;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile;
namespace TrashLib.Tests.Sonarr.ReleaseProfile;

@ -1,6 +1,6 @@
using FluentAssertions;
using NUnit.Framework;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile;
namespace TrashLib.Tests.Sonarr.ReleaseProfile;

@ -4,9 +4,9 @@ using FluentAssertions;
using NSubstitute;
using NUnit.Framework;
using TestLibrary.AutoFixture;
using TrashLib.Sonarr;
using TrashLib.Sonarr.ReleaseProfile;
using TrashLib.Sonarr.ReleaseProfile.Guide;
using TrashLib.Services.Sonarr;
using TrashLib.Services.Sonarr.ReleaseProfile;
using TrashLib.Services.Sonarr.ReleaseProfile.Guide;
namespace TrashLib.Tests.Sonarr;

@ -3,8 +3,8 @@ using FluentAssertions;
using FluentValidation;
using NUnit.Framework;
using TrashLib.Config;
using TrashLib.Sonarr;
using TrashLib.Sonarr.Config;
using TrashLib.Services.Sonarr;
using TrashLib.Services.Sonarr.Config;
namespace TrashLib.Tests.Sonarr;

@ -1,8 +0,0 @@
using TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Guide;
public interface IRadarrGuideService
{
ICollection<CustomFormatData> GetCustomFormatData();
}

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.Config;
namespace TrashLib.Services.Radarr.Config;
public interface IRadarrValidationMessages
{

@ -1,8 +1,8 @@
using JetBrains.Annotations;
using TrashLib.Config.Services;
using TrashLib.Radarr.QualityDefinition;
using TrashLib.Services.Radarr.QualityDefinition;
namespace TrashLib.Radarr.Config;
namespace TrashLib.Services.Radarr.Config;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class RadarrConfiguration : ServiceConfiguration

@ -2,7 +2,7 @@ using Common.FluentValidation;
using FluentValidation;
using JetBrains.Annotations;
namespace TrashLib.Radarr.Config;
namespace TrashLib.Services.Radarr.Config;
[UsedImplicitly]
internal class RadarrConfigurationValidator : AbstractValidator<RadarrConfiguration>

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.Config;
namespace TrashLib.Services.Radarr.Config;
internal class RadarrValidationMessages : IRadarrValidationMessages
{

@ -2,9 +2,9 @@ using Flurl;
using Flurl.Http;
using Newtonsoft.Json.Linq;
using TrashLib.Config.Services;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Api;
namespace TrashLib.Services.Radarr.CustomFormat.Api;
internal class CustomFormatService : ICustomFormatService
{

@ -1,7 +1,7 @@
using Newtonsoft.Json.Linq;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Api;
namespace TrashLib.Services.Radarr.CustomFormat.Api;
public interface ICustomFormatService
{

@ -1,6 +1,6 @@
using Newtonsoft.Json.Linq;
namespace TrashLib.Radarr.CustomFormat.Api;
namespace TrashLib.Services.Radarr.CustomFormat.Api;
public interface IQualityProfileService
{

@ -3,7 +3,7 @@ using Flurl.Http;
using Newtonsoft.Json.Linq;
using TrashLib.Config.Services;
namespace TrashLib.Radarr.CustomFormat.Api;
namespace TrashLib.Services.Radarr.CustomFormat.Api;
internal class QualityProfileService : IQualityProfileService
{

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
public enum ApiOperationType
{

@ -1,10 +1,10 @@
using Common.Extensions;
using Serilog;
using TrashLib.Cache;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
internal class CachePersister : ICachePersister
{

@ -1,8 +1,8 @@
using CliFx.Infrastructure;
using JetBrains.Annotations;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Services.Radarr.CustomFormat.Guide;
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
[UsedImplicitly]
public class CustomFormatLister : ICustomFormatLister

@ -2,11 +2,11 @@ using CliFx.Infrastructure;
using Common.Extensions;
using Serilog;
using TrashLib.Extensions;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Processors;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Processors;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
internal class CustomFormatUpdater : ICustomFormatUpdater
{

@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
using Common.Extensions;
using TrashLib.Startup;
namespace TrashLib.Radarr.CustomFormat.Guide;
namespace TrashLib.Services.Radarr.CustomFormat.Guide;
public record CustomFormatGroupItem(string Name, string Anchor);

@ -0,0 +1,8 @@
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Services.Radarr.CustomFormat.Guide;
public interface IRadarrGuideService
{
ICollection<CustomFormatData> GetCustomFormatData();
}

@ -5,10 +5,10 @@ using Common.Extensions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Serilog;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Repo;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Guide;
namespace TrashLib.Services.Radarr.CustomFormat.Guide;
public class LocalRepoCustomFormatJsonParser : IRadarrGuideService
{

@ -1,7 +1,7 @@
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
public interface ICachePersister
{

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
public interface ICustomFormatLister
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.Config;
using TrashLib.Services.Radarr.Config;
namespace TrashLib.Radarr.CustomFormat;
namespace TrashLib.Services.Radarr.CustomFormat;
public interface ICustomFormatUpdater
{

@ -1,7 +1,7 @@
using System.Collections.ObjectModel;
using TrashLib.Cache;
namespace TrashLib.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Services.Radarr.CustomFormat.Models.Cache;
[CacheObjectName("custom-format-cache")]
public class CustomFormatCache

@ -1,7 +1,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Services.Radarr.CustomFormat.Models;
public record CustomFormatData(
string Name,

@ -1,6 +1,6 @@
using TrashLib.Radarr.Config;
using TrashLib.Services.Radarr.Config;
namespace TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Services.Radarr.CustomFormat.Models;
public class ProcessedConfigData
{

@ -1,8 +1,8 @@
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json.Linq;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Services.Radarr.CustomFormat.Models;
public class ProcessedCustomFormatData
{

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Services.Radarr.CustomFormat.Models;
public record FormatMappingEntry(ProcessedCustomFormatData CustomFormat, int Score);

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Services.Radarr.CustomFormat.Models;
public enum FormatScoreUpdateReason
{

@ -1,10 +1,10 @@
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Guide;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Radarr.CustomFormat.Processors;
namespace TrashLib.Services.Radarr.CustomFormat.Processors;
public interface IGuideProcessorSteps
{

@ -1,9 +1,9 @@
using Common.Extensions;
using Serilog;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
public class ConfigStep : IConfigStep
{

@ -1,9 +1,9 @@
using Common.Extensions;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
public class CustomFormatStep : ICustomFormatStep
{

@ -1,7 +1,7 @@
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
public interface IConfigStep
{

@ -1,8 +1,8 @@
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
public interface ICustomFormatStep
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
public interface IQualityProfileStep
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
internal class QualityProfileStep : IQualityProfileStep
{

@ -1,8 +1,8 @@
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat.Processors;
namespace TrashLib.Services.Radarr.CustomFormat.Processors;
internal interface IGuideProcessor
{

@ -1,8 +1,8 @@
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Radarr.CustomFormat.Processors;
namespace TrashLib.Services.Radarr.CustomFormat.Processors;
public interface IPersistenceProcessor
{

@ -1,11 +1,11 @@
using TrashLib.Config.Services;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Radarr.CustomFormat.Processors;
namespace TrashLib.Services.Radarr.CustomFormat.Processors;
public interface IPersistenceProcessorSteps
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Api;
namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
internal class CustomFormatApiPersistenceStep : ICustomFormatApiPersistenceStep
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Api;
namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
public interface ICustomFormatApiPersistenceStep
{

@ -1,8 +1,8 @@
using Newtonsoft.Json.Linq;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
public interface IJsonTransactionStep
{

@ -1,7 +1,7 @@
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
public interface IQualityProfileApiPersistenceStep
{

@ -1,10 +1,10 @@
using System.Collections.ObjectModel;
using Common.Extensions;
using Newtonsoft.Json.Linq;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Radarr.CustomFormat.Models.Cache;
using TrashLib.Services.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Models.Cache;
namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
public class CustomFormatTransactionData
{

@ -1,9 +1,9 @@
using Common.Extensions;
using Newtonsoft.Json.Linq;
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Models;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
internal class QualityProfileApiPersistenceStep : IQualityProfileApiPersistenceStep
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.QualityDefinition.Api.Objects;
using TrashLib.Services.Radarr.QualityDefinition.Api.Objects;
namespace TrashLib.Radarr.QualityDefinition.Api;
namespace TrashLib.Services.Radarr.QualityDefinition.Api;
public interface IQualityDefinitionService
{

@ -1,6 +1,6 @@
using JetBrains.Annotations;
namespace TrashLib.Radarr.QualityDefinition.Api.Objects;
namespace TrashLib.Services.Radarr.QualityDefinition.Api.Objects;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class RadarrQualityItem

@ -1,9 +1,9 @@
using Flurl;
using Flurl.Http;
using TrashLib.Config.Services;
using TrashLib.Radarr.QualityDefinition.Api.Objects;
using TrashLib.Services.Radarr.QualityDefinition.Api.Objects;
namespace TrashLib.Radarr.QualityDefinition.Api;
namespace TrashLib.Services.Radarr.QualityDefinition.Api;
internal class QualityDefinitionService : IQualityDefinitionService
{

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.QualityDefinition;
namespace TrashLib.Services.Radarr.QualityDefinition;
public interface IRadarrQualityDefinitionGuideParser
{

@ -1,6 +1,6 @@
using TrashLib.Radarr.Config;
using TrashLib.Services.Radarr.Config;
namespace TrashLib.Radarr.QualityDefinition;
namespace TrashLib.Services.Radarr.QualityDefinition;
public interface IRadarrQualityDefinitionUpdater
{

@ -1,6 +1,6 @@
using TrashLib.Sonarr.QualityDefinition;
using TrashLib.Services.Sonarr.QualityDefinition;
namespace TrashLib.Radarr.QualityDefinition;
namespace TrashLib.Services.Radarr.QualityDefinition;
public class RadarrQualityData : SonarrQualityData
{

@ -3,7 +3,7 @@ using System.Text.RegularExpressions;
using Common.Extensions;
using TrashLib.Startup;
namespace TrashLib.Radarr.QualityDefinition;
namespace TrashLib.Services.Radarr.QualityDefinition;
internal class RadarrQualityDefinitionGuideParser : IRadarrQualityDefinitionGuideParser
{

@ -1,4 +1,4 @@
namespace TrashLib.Radarr.QualityDefinition;
namespace TrashLib.Services.Radarr.QualityDefinition;
public enum RadarrQualityDefinitionType
{

@ -1,10 +1,10 @@
using CliFx.Infrastructure;
using Serilog;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.QualityDefinition.Api;
using TrashLib.Radarr.QualityDefinition.Api.Objects;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.QualityDefinition.Api;
using TrashLib.Services.Radarr.QualityDefinition.Api.Objects;
namespace TrashLib.Radarr.QualityDefinition;
namespace TrashLib.Services.Radarr.QualityDefinition;
internal class RadarrQualityDefinitionUpdater : IRadarrQualityDefinitionUpdater
{

@ -1,17 +1,17 @@
using Autofac;
using Autofac.Extras.AggregateService;
using TrashLib.Config.Services;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat;
using TrashLib.Radarr.CustomFormat.Api;
using TrashLib.Radarr.CustomFormat.Guide;
using TrashLib.Radarr.CustomFormat.Processors;
using TrashLib.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Radarr.QualityDefinition;
using TrashLib.Radarr.QualityDefinition.Api;
namespace TrashLib.Radarr;
using TrashLib.Services.Radarr.Config;
using TrashLib.Services.Radarr.CustomFormat;
using TrashLib.Services.Radarr.CustomFormat.Api;
using TrashLib.Services.Radarr.CustomFormat.Guide;
using TrashLib.Services.Radarr.CustomFormat.Processors;
using TrashLib.Services.Radarr.CustomFormat.Processors.GuideSteps;
using TrashLib.Services.Radarr.CustomFormat.Processors.PersistenceSteps;
using TrashLib.Services.Radarr.QualityDefinition;
using TrashLib.Services.Radarr.QualityDefinition.Api;
namespace TrashLib.Services.Radarr;
public class RadarrAutofacModule : Module
{

@ -1,6 +1,6 @@
using TrashLib.Sonarr.Api.Objects;
using TrashLib.Services.Sonarr.Api.Objects;
namespace TrashLib.Sonarr.Api;
namespace TrashLib.Services.Sonarr.Api;
public interface ISonarrApi
{

@ -1,7 +1,7 @@
using Newtonsoft.Json.Linq;
using TrashLib.Sonarr.Api.Objects;
using TrashLib.Services.Sonarr.Api.Objects;
namespace TrashLib.Sonarr.Api;
namespace TrashLib.Services.Sonarr.Api;
public interface ISonarrReleaseProfileCompatibilityHandler
{

@ -1,8 +1,8 @@
using AutoMapper;
using JetBrains.Annotations;
using TrashLib.Sonarr.Api.Objects;
using TrashLib.Services.Sonarr.Api.Objects;
namespace TrashLib.Sonarr.Api.Mappings;
namespace TrashLib.Services.Sonarr.Api.Mappings;
[UsedImplicitly]
public class SonarrApiObjectMappingProfile : Profile

@ -1,6 +1,6 @@
using JetBrains.Annotations;
namespace TrashLib.Sonarr.Api.Objects;
namespace TrashLib.Services.Sonarr.Api.Objects;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class SonarrQualityItem

@ -1,7 +1,7 @@
using JetBrains.Annotations;
using Newtonsoft.Json;
namespace TrashLib.Sonarr.Api.Objects;
namespace TrashLib.Services.Sonarr.Api.Objects;
[UsedImplicitly(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.Members)]
public class SonarrPreferredTerm

@ -1,4 +1,4 @@
namespace TrashLib.Sonarr.Api.Objects;
namespace TrashLib.Services.Sonarr.Api.Objects;
public class SonarrTag
{

@ -1,4 +1,4 @@
namespace TrashLib.Sonarr.Api.Schemas;
namespace TrashLib.Services.Sonarr.Api.Schemas;
public static class SonarrReleaseProfileSchema
{

@ -2,9 +2,9 @@ using Flurl;
using Flurl.Http;
using Newtonsoft.Json.Linq;
using TrashLib.Config.Services;
using TrashLib.Sonarr.Api.Objects;
using TrashLib.Services.Sonarr.Api.Objects;
namespace TrashLib.Sonarr.Api;
namespace TrashLib.Services.Sonarr.Api;
public class SonarrApi : ISonarrApi
{

@ -3,10 +3,10 @@ using AutoMapper;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Schema;
using Serilog;
using TrashLib.Sonarr.Api.Objects;
using TrashLib.Sonarr.Api.Schemas;
using TrashLib.Services.Sonarr.Api.Objects;
using TrashLib.Services.Sonarr.Api.Schemas;
namespace TrashLib.Sonarr.Api;
namespace TrashLib.Services.Sonarr.Api;
public class SonarrReleaseProfileCompatibilityHandler : ISonarrReleaseProfileCompatibilityHandler
{

@ -1,4 +1,4 @@
namespace TrashLib.Sonarr.Config;
namespace TrashLib.Services.Sonarr.Config;
public interface ISonarrValidationMessages
{

@ -1,7 +1,7 @@
using TrashLib.Config.Services;
using TrashLib.Sonarr.QualityDefinition;
using TrashLib.Services.Sonarr.QualityDefinition;
namespace TrashLib.Sonarr.Config;
namespace TrashLib.Services.Sonarr.Config;
public class SonarrConfiguration : ServiceConfiguration
{

@ -1,7 +1,7 @@
using FluentValidation;
using JetBrains.Annotations;
namespace TrashLib.Sonarr.Config;
namespace TrashLib.Services.Sonarr.Config;
[UsedImplicitly]
internal class SonarrConfigurationValidator : AbstractValidator<SonarrConfiguration>

@ -1,6 +1,6 @@
using JetBrains.Annotations;
namespace TrashLib.Sonarr.Config;
namespace TrashLib.Services.Sonarr.Config;
[UsedImplicitly]
internal class SonarrValidationMessages : ISonarrValidationMessages

@ -1,4 +1,4 @@
namespace TrashLib.Sonarr;
namespace TrashLib.Services.Sonarr;
public interface IReleaseProfileLister
{

@ -1,4 +1,4 @@
namespace TrashLib.Sonarr;
namespace TrashLib.Services.Sonarr;
public interface ISonarrCompatibility
{

@ -1,4 +1,4 @@
namespace TrashLib.Sonarr.QualityDefinition;
namespace TrashLib.Services.Sonarr.QualityDefinition;
public interface ISonarrQualityDefinitionGuideParser
{

@ -1,6 +1,6 @@
using TrashLib.Sonarr.Config;
using TrashLib.Services.Sonarr.Config;
namespace TrashLib.Sonarr.QualityDefinition;
namespace TrashLib.Services.Sonarr.QualityDefinition;
public interface ISonarrQualityDefinitionUpdater
{

@ -1,7 +1,7 @@
using System.Globalization;
using System.Text;
namespace TrashLib.Sonarr.QualityDefinition;
namespace TrashLib.Services.Sonarr.QualityDefinition;
public class SonarrQualityData
{

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save