#region ========================================================================= USING =====================================================================================
using System;
#endregion
namespace Nemera.Plugins.MusicBrainz.Common.Models.DTO.Settings;
///
/// Data transfer object for the settings that configure the MusicBrainz metadata plugin.
///
internal sealed class MusicBrainzSettingsDto
{
///
/// Gets or sets the base URL of the MusicBrainz web service the requests are sent to.
/// Defaults to the public MusicBrainz web service, and can point to a self hosted mirror instead.
///
public string BaseUrl { get; set; } = "https://musicbrainz.org/ws/2/";
///
/// Gets or sets a value indicating whether the base URL is allowed to point at a private or local host, for a self hosted mirror on a local
/// network. Defaults to , so that a misconfigured base URL cannot silently reach a local service.
///
public bool DoesAllowPrivateBaseUrl { get; set; }
///
/// Gets or sets the user agent sent with every request to the MusicBrainz API.
///
public string UserAgent { get; set; } = "Nemera-MusicBrainz/1.0";
///
/// Gets or sets the contact email sent with every request to the MusicBrainz 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 releases fetched for a single release group.
///
public int ReleaseLookupLimit { get; set; } = 25;
///
/// Gets or sets the minimum interval between consecutive requests to the MusicBrainz API.
/// MusicBrainz requires client applications to make no more than one request per second.
///
public TimeSpan MinimumRequestInterval { get; set; } = TimeSpan.FromSeconds(1.0);
}