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/TrashLib/Services/CustomFormat/Models/Cache/CustomFormatCache.cs

26 lines
632 B

using System.Collections.ObjectModel;
using TrashLib.Cache;
namespace TrashLib.Services.CustomFormat.Models.Cache;
[CacheObjectName("custom-format-cache")]
public class CustomFormatCache
{
public const int LatestVersion = 1;
public int Version { get; init; } = LatestVersion;
public Collection<TrashIdMapping> TrashIdMappings { get; init; } = new();
}
public class TrashIdMapping
{
public TrashIdMapping(string trashId, int customFormatId = default)
{
TrashId = trashId;
CustomFormatId = customFormatId;
}
public string TrashId { get; }
public int CustomFormatId { get; set; }
}