IDlnaManager.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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="profileId">The profile id.</param>
  35. /// <param name="profile">The profile.</param>
  36. void UpdateProfile(string profileId, DeviceProfile profile);
  37. /// <summary>
  38. /// Deletes the profile.
  39. /// </summary>
  40. /// <param name="id">The identifier.</param>
  41. void DeleteProfile(string id);
  42. /// <summary>
  43. /// Gets the profile.
  44. /// </summary>
  45. /// <param name="id">The identifier.</param>
  46. /// <returns>DeviceProfile.</returns>
  47. DeviceProfile? GetProfile(string id);
  48. /// <summary>
  49. /// Gets the profile.
  50. /// </summary>
  51. /// <param name="deviceInfo">The device information.</param>
  52. /// <returns>DeviceProfile.</returns>
  53. DeviceProfile? GetProfile(DeviceIdentification deviceInfo);
  54. /// <summary>
  55. /// Gets the server description XML.
  56. /// </summary>
  57. /// <param name="headers">The headers.</param>
  58. /// <param name="serverUuId">The server uu identifier.</param>
  59. /// <param name="serverAddress">The server address.</param>
  60. /// <returns>System.String.</returns>
  61. string GetServerDescriptionXml(IHeaderDictionary headers, string serverUuId, string serverAddress);
  62. /// <summary>
  63. /// Gets the icon.
  64. /// </summary>
  65. /// <param name="filename">The filename.</param>
  66. /// <returns>DlnaIconResponse.</returns>
  67. ImageStream? GetIcon(string filename);
  68. }
  69. }