From 91beee4263e6865df096ef5295375fd83efc217e Mon Sep 17 00:00:00 2001 From: Flaminel Date: Sun, 18 Oct 2026 12:27:51 +0300 Subject: [PATCH] changed nested seeker helper types to own files --- .../Cleanuparr.Infrastructure/Features/Arr/ArrClient.cs | 6 ------ .../Features/Arr/CommandIdResponse.cs | 9 +++++++++ .../Features/Jobs/CustomFormatScoreSyncer.cs | 2 -- .../Features/Jobs/SeriesFetch.cs | 6 ++++++ 4 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 code/backend/Cleanuparr.Infrastructure/Features/Arr/CommandIdResponse.cs create mode 100644 code/backend/Cleanuparr.Infrastructure/Features/Jobs/SeriesFetch.cs diff --git a/code/backend/Cleanuparr.Infrastructure/Features/Arr/ArrClient.cs b/code/backend/Cleanuparr.Infrastructure/Features/Arr/ArrClient.cs index 9719ff78..3b852c6c 100644 --- a/code/backend/Cleanuparr.Infrastructure/Features/Arr/ArrClient.cs +++ b/code/backend/Cleanuparr.Infrastructure/Features/Arr/ArrClient.cs @@ -578,12 +578,6 @@ public abstract class ArrClient : IArrClient return result?.Id; } - private sealed class CommandIdResponse - { - [JsonPropertyName("id")] - public long? Id { get; init; } - } - /// /// Determines whether the failed import record should be skipped /// diff --git a/code/backend/Cleanuparr.Infrastructure/Features/Arr/CommandIdResponse.cs b/code/backend/Cleanuparr.Infrastructure/Features/Arr/CommandIdResponse.cs new file mode 100644 index 00000000..876dabd6 --- /dev/null +++ b/code/backend/Cleanuparr.Infrastructure/Features/Arr/CommandIdResponse.cs @@ -0,0 +1,9 @@ +using System.Text.Json.Serialization; + +namespace Cleanuparr.Infrastructure.Features.Arr; + +internal sealed class CommandIdResponse +{ + [JsonPropertyName("id")] + public long? Id { get; init; } +} diff --git a/code/backend/Cleanuparr.Infrastructure/Features/Jobs/CustomFormatScoreSyncer.cs b/code/backend/Cleanuparr.Infrastructure/Features/Jobs/CustomFormatScoreSyncer.cs index 4b057c9b..89bcf1b5 100644 --- a/code/backend/Cleanuparr.Infrastructure/Features/Jobs/CustomFormatScoreSyncer.cs +++ b/code/backend/Cleanuparr.Infrastructure/Features/Jobs/CustomFormatScoreSyncer.cs @@ -23,8 +23,6 @@ public sealed class CustomFormatScoreSyncer : IHandler private const int FetchConcurrency = 5; private static readonly TimeSpan HistoryRetention = TimeSpan.FromDays(120); - private sealed record SeriesFetch(SearchableSeries Series, List Episodes, List EpisodeFiles, bool Failed); - private readonly ILogger _logger; private readonly DataContext _dataContext; private readonly EventsContext _eventsContext; diff --git a/code/backend/Cleanuparr.Infrastructure/Features/Jobs/SeriesFetch.cs b/code/backend/Cleanuparr.Infrastructure/Features/Jobs/SeriesFetch.cs new file mode 100644 index 00000000..7a51af2b --- /dev/null +++ b/code/backend/Cleanuparr.Infrastructure/Features/Jobs/SeriesFetch.cs @@ -0,0 +1,6 @@ +using Cleanuparr.Domain.Entities.Arr; +using Cleanuparr.Persistence.Models.State; + +namespace Cleanuparr.Infrastructure.Features.Jobs; + +internal sealed record SeriesFetch(SearchableSeries Series, List Episodes, List EpisodeFiles, bool Failed);