DlnaOptions.cs 3.3 KB

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