IDlnaManager.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using MediaBrowser.Model.Dlna;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Dlna
  4. {
  5. public interface IDlnaManager
  6. {
  7. /// <summary>
  8. /// Gets the profile infos.
  9. /// </summary>
  10. /// <returns>IEnumerable{DeviceProfileInfo}.</returns>
  11. IEnumerable<DeviceProfileInfo> GetProfileInfos();
  12. /// <summary>
  13. /// Gets the profile.
  14. /// </summary>
  15. /// <param name="headers">The headers.</param>
  16. /// <returns>DeviceProfile.</returns>
  17. DeviceProfile GetProfile(IDictionary<string,string> headers);
  18. /// <summary>
  19. /// Gets the default profile.
  20. /// </summary>
  21. /// <returns>DeviceProfile.</returns>
  22. DeviceProfile GetDefaultProfile();
  23. /// <summary>
  24. /// Creates the profile.
  25. /// </summary>
  26. /// <param name="profile">The profile.</param>
  27. void CreateProfile(DeviceProfile profile);
  28. /// <summary>
  29. /// Updates the profile.
  30. /// </summary>
  31. /// <param name="profile">The profile.</param>
  32. void UpdateProfile(DeviceProfile profile);
  33. /// <summary>
  34. /// Deletes the profile.
  35. /// </summary>
  36. /// <param name="id">The identifier.</param>
  37. void DeleteProfile(string id);
  38. /// <summary>
  39. /// Gets the profile.
  40. /// </summary>
  41. /// <param name="id">The identifier.</param>
  42. /// <returns>DeviceProfile.</returns>
  43. DeviceProfile GetProfile(string id);
  44. /// <summary>
  45. /// Gets the profile.
  46. /// </summary>
  47. /// <param name="deviceInfo">The device information.</param>
  48. /// <returns>DeviceProfile.</returns>
  49. DeviceProfile GetProfile(DeviceIdentification deviceInfo);
  50. }
  51. }