#region ========================================================================= USING ===================================================================================== using System; #endregion namespace Lumina.Plugins.OpenLibrary.Common.Models.DTO.Settings; /// /// Data transfer object for the settings that configure the Open Library metadata plugin. /// internal sealed class OpenLibrarySettingsDto { /// /// Gets or sets the user agent sent with every request to the Open Library API. /// public string UserAgent { get; set; } = "Lumina-OpenLibrary/1.0"; /// /// Gets or sets the contact email sent with every request to the Open Library API. /// public string? ContactEmail { get; set; } /// /// Gets or sets the maximum number of results returned by a single search. /// public int SearchResultLimit { get; set; } = 10; /// /// Gets or sets the maximum number of editions fetched for a single work. /// public int WorkEditionLimit { get; set; } = 50; /// /// Gets or sets the minimum interval between consecutive requests to the Open Library API. /// public TimeSpan MinimumRequestInterval { get; set; } = TimeSpan.FromSeconds(1.1); }