ResponseProfile.cs 1.1 KB

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