DeviceIdentification.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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>
  45. /// The manufacturer.
  46. /// </value>
  47. public string Manufacturer { get; set; }
  48. /// <summary>
  49. /// Gets or sets the manufacturer URL.
  50. /// </summary>
  51. /// <value>The manufacturer URL.</value>
  52. public string ManufacturerUrl { get; set; }
  53. /// <summary>
  54. /// Gets or sets the headers.
  55. /// </summary>
  56. /// <value>The headers.</value>
  57. public HttpHeaderInfo[] Headers { get; set; }
  58. public DeviceIdentification()
  59. {
  60. Headers = new HttpHeaderInfo[] {};
  61. }
  62. }
  63. public class HttpHeaderInfo
  64. {
  65. public string Name { get; set; }
  66. public string Value { get; set; }
  67. public HeaderMatchType Match { get; set; }
  68. }
  69. public enum HeaderMatchType
  70. {
  71. Equals = 0,
  72. Regex = 1,
  73. Substring = 2
  74. }
  75. }