2
0

IDlnaManager.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using MediaBrowser.Controller.Drawing;
  2. using MediaBrowser.Model.Dlna;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.Dlna
  5. {
  6. public interface IDlnaManager
  7. {
  8. /// <summary>
  9. /// Gets the profile infos.
  10. /// </summary>
  11. /// <returns>IEnumerable{DeviceProfileInfo}.</returns>
  12. IEnumerable<DeviceProfileInfo> GetProfileInfos();
  13. /// <summary>
  14. /// Gets the profile.
  15. /// </summary>
  16. /// <param name="headers">The headers.</param>
  17. /// <returns>DeviceProfile.</returns>
  18. DeviceProfile GetProfile(IDictionary<string,string> headers);
  19. /// <summary>
  20. /// Gets the default profile.
  21. /// </summary>
  22. /// <returns>DeviceProfile.</returns>
  23. DeviceProfile GetDefaultProfile();
  24. /// <summary>
  25. /// Creates the profile.
  26. /// </summary>
  27. /// <param name="profile">The profile.</param>
  28. void CreateProfile(DeviceProfile profile);
  29. /// <summary>
  30. /// Updates the profile.
  31. /// </summary>
  32. /// <param name="profile">The profile.</param>
  33. void UpdateProfile(DeviceProfile profile);
  34. /// <summary>
  35. /// Deletes the profile.
  36. /// </summary>
  37. /// <param name="id">The identifier.</param>
  38. void DeleteProfile(string id);
  39. /// <summary>
  40. /// Gets the profile.
  41. /// </summary>
  42. /// <param name="id">The identifier.</param>
  43. /// <returns>DeviceProfile.</returns>
  44. DeviceProfile GetProfile(string id);
  45. /// <summary>
  46. /// Gets the profile.
  47. /// </summary>
  48. /// <param name="deviceInfo">The device information.</param>
  49. /// <returns>DeviceProfile.</returns>
  50. DeviceProfile GetProfile(DeviceIdentification deviceInfo);
  51. /// <summary>
  52. /// Gets the server description XML.
  53. /// </summary>
  54. /// <param name="headers">The headers.</param>
  55. /// <param name="serverUuId">The server uu identifier.</param>
  56. /// <param name="serverAddress">The server address.</param>
  57. /// <returns>System.String.</returns>
  58. string GetServerDescriptionXml(IDictionary<string, string> headers, string serverUuId, string serverAddress);
  59. /// <summary>
  60. /// Gets the icon.
  61. /// </summary>
  62. /// <param name="filename">The filename.</param>
  63. /// <returns>DlnaIconResponse.</returns>
  64. ImageStream GetIcon(string filename);
  65. }
  66. }