diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-29 18:22:20 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-29 18:22:20 -0400 |
| commit | dca78b13411db96366dddfa0d68bb6d36d28ad14 (patch) | |
| tree | 7d41e670f1cadec0db9e1ed7115e151da891f7ea /RSSDP/SsdpDeviceProperty.cs | |
| parent | 597e27d1c6199a40398abb068282711a9cb9db1b (diff) | |
rework dlna project
Diffstat (limited to 'RSSDP/SsdpDeviceProperty.cs')
| -rw-r--r-- | RSSDP/SsdpDeviceProperty.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/RSSDP/SsdpDeviceProperty.cs b/RSSDP/SsdpDeviceProperty.cs new file mode 100644 index 000000000..3a8dd2ec7 --- /dev/null +++ b/RSSDP/SsdpDeviceProperty.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Rssdp +{ + /// <summary> + /// Represents a custom property of an <see cref="SsdpDevice"/>. + /// </summary> + public sealed class SsdpDeviceProperty + { + + /// <summary> + /// Sets or returns the namespace this property exists in. + /// </summary> + public string Namespace { get; set; } + + /// <summary> + /// Sets or returns the name of this property. + /// </summary> + public string Name { get; set; } + + /// <summary> + /// Returns the full name of this property (namespace and name). + /// </summary> + public string FullName { get { return String.IsNullOrEmpty(this.Namespace) ? this.Name : this.Namespace + ":" + this.Name; } } + + /// <summary> + /// Sets or returns the value of this property. + /// </summary> + public string Value { get; set; } + + } +} |
