DeviceIdentification.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. 
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Controller.Dlna
  4. {
  5. public class DeviceIdentification
  6. {
  7. /// <summary>
  8. /// Gets or sets the name of the friendly.
  9. /// </summary>
  10. /// <value>The name of the friendly.</value>
  11. public string FriendlyName { get; set; }
  12. /// <summary>
  13. /// Gets or sets the model number.
  14. /// </summary>
  15. /// <value>The model number.</value>
  16. public string ModelNumber { get; set; }
  17. /// <summary>
  18. /// Gets or sets the serial number.
  19. /// </summary>
  20. /// <value>The serial number.</value>
  21. public string SerialNumber { get; set; }
  22. /// <summary>
  23. /// Gets or sets the name of the model.
  24. /// </summary>
  25. /// <value>The name of the model.</value>
  26. public string ModelName { get; set; }
  27. /// <summary>
  28. /// Gets or sets the model description.
  29. /// </summary>
  30. /// <value>The model description.</value>
  31. public string ModelDescription { get; set; }
  32. /// <summary>
  33. /// Gets or sets the device description.
  34. /// </summary>
  35. /// <value>The device description.</value>
  36. public string DeviceDescription { get; set; }
  37. /// <summary>
  38. /// Gets or sets the model URL.
  39. /// </summary>
  40. /// <value>The model URL.</value>
  41. public string ModelUrl { get; set; }
  42. /// <summary>
  43. /// Gets or sets the manufacturer.
  44. /// </summary>
  45. /// <value>The manufacturer.</value>
  46. public string Manufacturer { get; set; }
  47. /// <summary>
  48. /// Gets or sets the manufacturer URL.
  49. /// </summary>
  50. /// <value>The manufacturer URL.</value>
  51. public string ManufacturerUrl { get; set; }
  52. /// <summary>
  53. /// Gets or sets the headers.
  54. /// </summary>
  55. /// <value>The headers.</value>
  56. public HttpHeaderInfo[] Headers { get; set; }
  57. public DeviceIdentification()
  58. {
  59. Headers = new HttpHeaderInfo[] {};
  60. }
  61. }
  62. public class HttpHeaderInfo
  63. {
  64. [XmlAttribute("name")]
  65. public string Name { get; set; }
  66. [XmlAttribute("value")]
  67. public string Value { get; set; }
  68. [XmlAttribute("match")]
  69. public HeaderMatchType Match { get; set; }
  70. }
  71. public enum HeaderMatchType
  72. {
  73. Equals = 0,
  74. Regex = 1,
  75. Substring = 2
  76. }
  77. }