IDlnaManager.cs 2.5 KB

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