blob: 3abcfb9aa3803a428bb82dcb283fd6017e3dc82b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using System;
using System.Collections.Generic;
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; }
}
}
|