mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +02:00
22 lines
718 B
C#
22 lines
718 B
C#
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; }
|
|
} |