DeviceProfile.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. public bool SupportsAlbumArtInDidl { get; set; }
  41. /// <summary>
  42. /// Controls the content of the X_DLNADOC element in the urn:schemas-dlna-org:device-1-0 namespace.
  43. /// </summary>
  44. public string XDlnaDoc { get; set; }
  45. /// <summary>
  46. /// Controls the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.
  47. /// </summary>
  48. public string XDlnaCap { get; set; }
  49. /// <summary>
  50. /// Controls the content of the aggregationFlags element in the urn:schemas-sonycom:av.
  51. /// </summary>
  52. public string SonyAggregationFlags { get; set; }
  53. public string ProtocolInfo { get; set; }
  54. public MediaProfile[] MediaProfiles { get; set; }
  55. public CodecProfile[] CodecProfiles { get; set; }
  56. public int TimelineOffsetSeconds { get; set; }
  57. public bool RequiresPlainVideoItems { get; set; }
  58. public bool RequiresPlainFolders { get; set; }
  59. public DeviceProfile()
  60. {
  61. DirectPlayProfiles = new DirectPlayProfile[] { };
  62. TranscodingProfiles = new TranscodingProfile[] { };
  63. MediaProfiles = new MediaProfile[] { };
  64. CodecProfiles = new CodecProfile[] { };
  65. ContainerProfiles = new ContainerProfile[] { };
  66. }
  67. }
  68. }