StateVariable.cs 965 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Emby.Dlna.Common
  4. {
  5. /// <summary>
  6. /// Defines the <see cref="StateVariable" />.
  7. /// </summary>
  8. public class StateVariable
  9. {
  10. /// <summary>
  11. /// Gets or sets the name of the state variable.
  12. /// </summary>
  13. public string Name { get; set; } = string.Empty;
  14. /// <summary>
  15. /// Gets or sets the data type of the state variable.
  16. /// </summary>
  17. public string DataType { get; set; } = string.Empty;
  18. /// <summary>
  19. /// Gets or sets a value indicating whether it sends events.
  20. /// </summary>
  21. public bool SendsEvents { get; set; }
  22. /// <summary>
  23. /// Gets or sets the allowed values range.
  24. /// </summary>
  25. public IReadOnlyList<string> AllowedValues { get; set; } = Array.Empty<string>();
  26. /// <inheritdoc />
  27. public override string ToString() => Name;
  28. }
  29. }