2
0

SsdpDeviceProperty.cs 887 B

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