mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
9fa4fff15d
# Conflicts: # Emby.Dlna/Emby.Dlna.csproj # Emby.Dlna/Eventing/DlnaEventManager.cs # Emby.Dlna/Service/BaseService.cs # Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs # MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.cs
55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using Jellyfin.Data.Entities;
|
|
using Jellyfin.Data.Events;
|
|
using MediaBrowser.Model.Devices;
|
|
using MediaBrowser.Model.Querying;
|
|
using MediaBrowser.Model.Session;
|
|
|
|
namespace MediaBrowser.Controller.Devices
|
|
{
|
|
public interface IDeviceManager
|
|
{
|
|
event EventHandler<GenericEventArgs<Tuple<string, DeviceOptions>>> DeviceOptionsUpdated;
|
|
|
|
/// <summary>
|
|
/// Saves the capabilities.
|
|
/// </summary>
|
|
/// <param name="reportedId">The reported identifier.</param>
|
|
/// <param name="capabilities">The capabilities.</param>
|
|
/// <returns>Task.</returns>
|
|
void SaveCapabilities(string reportedId, ClientCapabilities capabilities);
|
|
|
|
/// <summary>
|
|
/// Gets the capabilities.
|
|
/// </summary>
|
|
/// <param name="reportedId">The reported identifier.</param>
|
|
/// <returns>ClientCapabilities.</returns>
|
|
ClientCapabilities GetCapabilities(string reportedId);
|
|
|
|
/// <summary>
|
|
/// Gets the device information.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>DeviceInfo.</returns>
|
|
DeviceInfo GetDevice(string id);
|
|
|
|
/// <summary>
|
|
/// Gets the devices.
|
|
/// </summary>
|
|
/// <param name="query">The query.</param>
|
|
/// <returns>IEnumerable<DeviceInfo>.</returns>
|
|
QueryResult<DeviceInfo> GetDevices(DeviceQuery query);
|
|
|
|
/// <summary>
|
|
/// Determines whether this instance [can access device] the specified user identifier.
|
|
/// </summary>
|
|
bool CanAccessDevice(User user, string deviceId);
|
|
|
|
void UpdateDeviceOptions(string deviceId, DeviceOptions options);
|
|
|
|
DeviceOptions GetDeviceOptions(string deviceId);
|
|
}
|
|
}
|