DeviceProfile.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. 
  2. namespace MediaBrowser.Controller.Dlna
  3. {
  4. public class DeviceProfile
  5. {
  6. /// <summary>
  7. /// Gets or sets the name.
  8. /// </summary>
  9. /// <value>The name.</value>
  10. public string Name { get; set; }
  11. /// <summary>
  12. /// Gets or sets the type of the client.
  13. /// </summary>
  14. /// <value>The type of the client.</value>
  15. public string ClientType { get; set; }
  16. /// <summary>
  17. /// Gets or sets the transcoding profiles.
  18. /// </summary>
  19. /// <value>The transcoding profiles.</value>
  20. public TranscodingProfile[] TranscodingProfiles { get; set; }
  21. /// <summary>
  22. /// Gets or sets the direct play profiles.
  23. /// </summary>
  24. /// <value>The direct play profiles.</value>
  25. public DirectPlayProfile[] DirectPlayProfiles { get; set; }
  26. public ContainerProfile[] ContainerProfiles { get; set; }
  27. /// <summary>
  28. /// Gets or sets the identification.
  29. /// </summary>
  30. /// <value>The identification.</value>
  31. public DeviceIdentification Identification { get; set; }
  32. public string FriendlyName { get; set; }
  33. public string Manufacturer { get; set; }
  34. public string ManufacturerUrl { get; set; }
  35. public string ModelName { get; set; }
  36. public string ModelDescription { get; set; }
  37. public string ModelNumber { get; set; }
  38. public string ModelUrl { get; set; }
  39. public bool IgnoreTranscodeByteRangeRequests { get; set; }
  40. /// <summary>
  41. /// Controls the content of the X_DLNADOC element in the urn:schemas-dlna-org:device-1-0 namespace.
  42. /// </summary>
  43. public string XDlnaDoc { get; set; }
  44. /// <summary>
  45. /// Controls the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.
  46. /// </summary>
  47. public string XDlnaCap { get; set; }
  48. /// <summary>
  49. /// Controls the content of the aggregationFlags element in the urn:schemas-sonycom:av.
  50. /// </summary>
  51. public string SonyAggregationFlags { get; set; }
  52. public string ProtocolInfo { get; set; }
  53. public MediaProfile[] MediaProfiles { get; set; }
  54. public CodecProfile[] CodecProfiles { get; set; }
  55. public int TimelineOffsetSeconds { get; set; }
  56. public bool RequiresPlainVideoItems { get; set; }
  57. public bool RequiresPlainFolders { get; set; }
  58. public DeviceProfile()
  59. {
  60. DirectPlayProfiles = new DirectPlayProfile[] { };
  61. TranscodingProfiles = new TranscodingProfile[] { };
  62. MediaProfiles = new MediaProfile[] { };
  63. CodecProfiles = new CodecProfile[] { };
  64. ContainerProfiles = new ContainerProfile[] { };
  65. }
  66. }
  67. }