#pragma warning disable CS1591
namespace Emby.Dlna.Configuration
{
///
/// The DlnaOptions class contains the user definable parameters for the dlna subsystems.
///
public class DlnaOptions
{
///
/// Initializes a new instance of the class.
///
public DlnaOptions()
{
EnablePlayTo = true;
EnableServer = false;
BlastAliveMessages = true;
SendOnlyMatchedHost = true;
ClientDiscoveryIntervalSeconds = 60;
AliveMessageIntervalSeconds = 1800;
}
///
/// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna playTo subsystem.
///
public bool EnablePlayTo { get; set; }
///
/// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna server subsystem.
///
public bool EnableServer { get; set; }
///
/// Gets or sets a value indicating whether detailed dlna server logs are sent to the console/log.
/// If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work.
///
public bool EnableDebugLog { get; set; }
///
/// Gets or sets a value indicating whether whether detailed playTo debug logs are sent to the console/log.
/// If the setting "Emby.Dlna.PlayTo": "Debug" msut be set in logging.default.json for this property to work.
///
public bool EnablePlayToTracing { get; set; }
///
/// Gets or sets the ssdp client discovery interval time (in seconds).
/// This is the time after which the server will send a ssdp search request.
///
public int ClientDiscoveryIntervalSeconds { get; set; }
///
/// Gets or sets the frequency at which ssdp alive notifications are transmitted.
///
public int AliveMessageIntervalSeconds { get; set; }
///
/// Gets or sets the frequency at which ssdp alive notifications are transmitted. MIGRATING - TO BE REMOVED ONCE WEB HAS BEEN ALTERED.
///
public int BlastAliveMessageIntervalSeconds
{
get
{
return AliveMessageIntervalSeconds;
}
set
{
AliveMessageIntervalSeconds = value;
}
}
///
/// Gets or sets the default user account that the dlna server uses.
///
public string? DefaultUserId { get; set; }
///
/// Gets or sets a value indicating whether playTo device profiles should be created.
///
public bool AutoCreatePlayToProfiles { get; set; }
///
/// Gets or sets a value indicating whether to blast alive messages.
///
public bool BlastAliveMessages { get; set; } = true;
///
/// gets or sets a value indicating whether to send only matched host.
///
public bool SendOnlyMatchedHost { get; set; } = true;
}
}