mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 13:19:48 +02:00
Add Controller
This commit is contained in:
22
API/Controllers/Requests/PatchLibraryRefreshRecord.cs
Normal file
22
API/Controllers/Requests/PatchLibraryRefreshRecord.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Workers;
|
||||
|
||||
namespace API.Controllers.Requests;
|
||||
|
||||
public record PatchLibraryRefreshRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// When to refresh the Library
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Description("When to refresh the Library")]
|
||||
public required LibraryRefreshSetting Setting { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// When <see cref="LibraryRefreshSetting.WhileDownloading"/> is selected, update the time between refreshes
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Description("When WhileDownloadingis selected, update the time between refreshes")]
|
||||
public required int? RefreshLibraryWhileDownloadingEveryMinutes { get; init; }
|
||||
}
|
Reference in New Issue
Block a user