2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 19:25:32 +00:00
|
|
|
using MediaBrowser.Controller.Drawing;
|
2018-12-27 23:27:57 +00:00
|
|
|
using MediaBrowser.Model.Dlna;
|
2019-02-27 13:23:39 +00:00
|
|
|
using Microsoft.AspNetCore.Http;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Dlna
|
|
|
|
{
|
|
|
|
public interface IDlnaManager
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the profile infos.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>IEnumerable{DeviceProfileInfo}.</returns>
|
|
|
|
IEnumerable<DeviceProfileInfo> GetProfileInfos();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the profile.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="headers">The headers.</param>
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
2021-08-03 15:54:55 +00:00
|
|
|
DeviceProfile? GetProfile(IHeaderDictionary headers);
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the default profile.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
|
|
|
DeviceProfile GetDefaultProfile();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates the profile.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="profile">The profile.</param>
|
|
|
|
void CreateProfile(DeviceProfile profile);
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Updates the profile.
|
|
|
|
/// </summary>
|
2021-10-31 14:49:24 +00:00
|
|
|
/// <param name="profileId">The profile id.</param>
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <param name="profile">The profile.</param>
|
2021-10-31 14:49:24 +00:00
|
|
|
void UpdateProfile(string profileId, DeviceProfile profile);
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Deletes the profile.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
void DeleteProfile(string id);
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the profile.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
2021-08-03 15:54:55 +00:00
|
|
|
DeviceProfile? GetProfile(string id);
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the profile.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="deviceInfo">The device information.</param>
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
2021-08-03 15:54:55 +00:00
|
|
|
DeviceProfile? GetProfile(DeviceIdentification deviceInfo);
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the server description XML.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="headers">The headers.</param>
|
|
|
|
/// <param name="serverUuId">The server uu identifier.</param>
|
|
|
|
/// <param name="serverAddress">The server address.</param>
|
|
|
|
/// <returns>System.String.</returns>
|
2019-02-27 13:23:39 +00:00
|
|
|
string GetServerDescriptionXml(IHeaderDictionary headers, string serverUuId, string serverAddress);
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the icon.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="filename">The filename.</param>
|
|
|
|
/// <returns>DlnaIconResponse.</returns>
|
2021-02-14 14:11:46 +00:00
|
|
|
ImageStream? GetIcon(string filename);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|