DeviceIdentification.cs 2.3 KB

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