IDlnaManager.cs 2.5 KB

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