jellyfin/MediaBrowser.Model/Dlna/DeviceIdentification.cs

83 lines
2.4 KiB
C#
Raw Normal View History

2014-04-01 15:23:07 -07:00
using System.Xml.Serialization;
2014-03-26 08:06:48 -07:00
2014-04-01 15:23:07 -07:00
namespace MediaBrowser.Model.Dlna
2014-03-17 07:48:16 -07:00
{
public class DeviceIdentification
{
/// <summary>
/// Gets or sets the name of the friendly.
/// </summary>
/// <value>The name of the friendly.</value>
public string FriendlyName { get; set; }
/// <summary>
/// Gets or sets the model number.
/// </summary>
/// <value>The model number.</value>
public string ModelNumber { get; set; }
/// <summary>
/// Gets or sets the serial number.
/// </summary>
/// <value>The serial number.</value>
public string SerialNumber { get; set; }
/// <summary>
/// Gets or sets the name of the model.
/// </summary>
/// <value>The name of the model.</value>
public string ModelName { get; set; }
/// <summary>
2014-03-17 18:45:41 -07:00
/// Gets or sets the model description.
/// </summary>
/// <value>The model description.</value>
public string ModelDescription { get; set; }
/// <summary>
/// Gets or sets the device description.
/// </summary>
/// <value>The device description.</value>
public string DeviceDescription { get; set; }
/// <summary>
/// Gets or sets the model URL.
/// </summary>
/// <value>The model URL.</value>
public string ModelUrl { get; set; }
/// <summary>
2014-03-17 07:48:16 -07:00
/// Gets or sets the manufacturer.
/// </summary>
2014-03-24 22:25:03 -07:00
/// <value>The manufacturer.</value>
2014-03-17 07:48:16 -07:00
public string Manufacturer { get; set; }
/// <summary>
/// Gets or sets the manufacturer URL.
/// </summary>
/// <value>The manufacturer URL.</value>
public string ManufacturerUrl { get; set; }
/// <summary>
/// Gets or sets the headers.
/// </summary>
/// <value>The headers.</value>
2014-03-23 09:42:02 -07:00
public HttpHeaderInfo[] Headers { get; set; }
2014-03-17 07:48:16 -07:00
public DeviceIdentification()
{
2014-03-23 09:42:02 -07:00
Headers = new HttpHeaderInfo[] {};
2014-03-17 07:48:16 -07:00
}
}
public class HttpHeaderInfo
{
2014-03-26 08:06:48 -07:00
[XmlAttribute("name")]
2014-03-17 07:48:16 -07:00
public string Name { get; set; }
2014-03-26 08:06:48 -07:00
[XmlAttribute("value")]
2014-03-17 07:48:16 -07:00
public string Value { get; set; }
2014-03-26 08:06:48 -07:00
[XmlAttribute("match")]
2014-03-22 12:37:15 -07:00
public HeaderMatchType Match { get; set; }
}
public enum HeaderMatchType
{
Equals = 0,
2014-03-23 09:42:02 -07:00
Regex = 1,
Substring = 2
2014-03-17 07:48:16 -07:00
}
}