DlnaOptions.cs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. namespace Emby.Dlna.Configuration
  4. {
  5. /// <summary>
  6. /// The DlnaOptions class contains the user definable parameters for the dlna subsystems.
  7. /// </summary>
  8. public class DlnaOptions
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="DlnaOptions"/> class.
  12. /// </summary>
  13. public DlnaOptions()
  14. {
  15. EnablePlayTo = true;
  16. EnableServer = true;
  17. BlastAliveMessages = true;
  18. SendOnlyMatchedHost = true;
  19. ClientDiscoveryIntervalSeconds = 60;
  20. AliveMessageIntervalSeconds = 1800;
  21. }
  22. /// <summary>
  23. /// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna playTo subsystem.
  24. /// </summary>
  25. public bool EnablePlayTo { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna server subsystem.
  28. /// </summary>
  29. public bool EnableServer { get; set; }
  30. /// <summary>
  31. /// Gets or sets a value indicating whether detailed dlna server logs are sent to the console/log.
  32. /// If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work.
  33. /// </summary>
  34. public bool EnableDebugLog { get; set; }
  35. /// <summary>
  36. /// Gets or sets a value indicating whether whether detailed playTo debug logs are sent to the console/log.
  37. /// If the setting "Emby.Dlna.PlayTo": "Debug" msut be set in logging.default.json for this property to work.
  38. /// </summary>
  39. public bool EnablePlayToTracing { get; set; }
  40. /// <summary>
  41. /// Gets or sets the ssdp client discovery interval time (in seconds).
  42. /// This is the time after which the server will send a ssdp search request.
  43. /// </summary>
  44. public int ClientDiscoveryIntervalSeconds { get; set; }
  45. /// <summary>
  46. /// Gets or sets the frequency at which ssdp alive notifications are transmitted.
  47. /// </summary>
  48. public int AliveMessageIntervalSeconds { get; set; }
  49. /// <summary>
  50. /// Gets or sets the frequency at which ssdp alive notifications are transmitted. MIGRATING - TO BE REMOVED ONCE WEB HAS BEEN ALTERED.
  51. /// </summary>
  52. public int BlastAliveMessageIntervalSeconds
  53. {
  54. get
  55. {
  56. return AliveMessageIntervalSeconds;
  57. }
  58. set
  59. {
  60. AliveMessageIntervalSeconds = value;
  61. }
  62. }
  63. /// <summary>
  64. /// Gets or sets the default user account that the dlna server uses.
  65. /// </summary>
  66. public string DefaultUserId { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating whether playTo device profiles should be created.
  69. /// </summary>
  70. public bool AutoCreatePlayToProfiles { get; set; }
  71. /// <summary>
  72. /// Gets or sets a value indicating whether to blast alive messages.
  73. /// </summary>
  74. public bool BlastAliveMessages { get; set; } = true;
  75. /// <summary>
  76. /// gets or sets a value indicating whether to send only matched host.
  77. /// </summary>
  78. public bool SendOnlyMatchedHost { get; set; } = true;
  79. }
  80. }