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.
recyclarr/src/Recyclarr.Cli/Pipelines/CustomFormat/Models/CustomFormatTransactionData.cs

18 lines
768 B

using System.Collections.ObjectModel;
using Recyclarr.Cli.Pipelines.CustomFormat.Cache;
using Recyclarr.TrashGuide.CustomFormat;
namespace Recyclarr.Cli.Pipelines.CustomFormat.Models;
public record CustomFormatTransactionData
{
public Collection<TrashIdMapping> DeletedCustomFormats { get; } = new();
public Collection<CustomFormatData> NewCustomFormats { get; } = new();
public Collection<CustomFormatData> UpdatedCustomFormats { get; } = new();
public Collection<ConflictingCustomFormat> ConflictingCustomFormats { get; } = new();
public Collection<CustomFormatData> UnchangedCustomFormats { get; } = new();
public int TotalCustomFormatChanges =>
NewCustomFormats.Count + UpdatedCustomFormats.Count + DeletedCustomFormats.Count;
}