SsdpDeviceProperty.cs 868 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. namespace Rssdp
  6. {
  7. /// <summary>
  8. /// Represents a custom property of an <see cref="SsdpDevice"/>.
  9. /// </summary>
  10. public sealed class SsdpDeviceProperty
  11. {
  12. /// <summary>
  13. /// Sets or returns the namespace this property exists in.
  14. /// </summary>
  15. public string Namespace { get; set; }
  16. /// <summary>
  17. /// Sets or returns the name of this property.
  18. /// </summary>
  19. public string Name { get; set; }
  20. /// <summary>
  21. /// Returns the full name of this property (namespace and name).
  22. /// </summary>
  23. public string FullName { get { return String.IsNullOrEmpty(this.Namespace) ? this.Name : this.Namespace + ":" + this.Name; } }
  24. /// <summary>
  25. /// Sets or returns the value of this property.
  26. /// </summary>
  27. public string Value { get; set; }
  28. }
  29. }