ResponseProfile.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma warning disable CS1591
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Model.Dlna
  4. {
  5. public class ResponseProfile
  6. {
  7. [XmlAttribute("container")]
  8. public string Container { get; set; }
  9. [XmlAttribute("audioCodec")]
  10. public string AudioCodec { get; set; }
  11. [XmlAttribute("videoCodec")]
  12. public string VideoCodec { get; set; }
  13. [XmlAttribute("type")]
  14. public DlnaProfileType Type { get; set; }
  15. [XmlAttribute("orgPn")]
  16. public string OrgPn { get; set; }
  17. [XmlAttribute("mimeType")]
  18. public string MimeType { get; set; }
  19. public ProfileCondition[] Conditions { get; set; }
  20. public ResponseProfile()
  21. {
  22. Conditions = new ProfileCondition[] { };
  23. }
  24. public string[] GetContainers()
  25. {
  26. return ContainerProfile.SplitValue(Container);
  27. }
  28. public string[] GetAudioCodecs()
  29. {
  30. return ContainerProfile.SplitValue(AudioCodec);
  31. }
  32. public string[] GetVideoCodecs()
  33. {
  34. return ContainerProfile.SplitValue(VideoCodec);
  35. }
  36. }
  37. }