#nullable disable #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>> DeviceOptionsUpdated; /// /// Saves the capabilities. /// /// The reported identifier. /// The capabilities. void SaveCapabilities(string reportedId, ClientCapabilities capabilities); /// /// Gets the capabilities. /// /// The reported identifier. /// ClientCapabilities. ClientCapabilities GetCapabilities(string reportedId); /// /// Gets the device information. /// /// The identifier. /// DeviceInfo. DeviceInfo GetDevice(string id); /// /// Gets the devices. /// /// The query. /// IEnumerable<DeviceInfo>. QueryResult GetDevices(DeviceQuery query); /// /// Determines whether this instance [can access device] the specified user identifier. /// /// The user to test. /// The device id to test. /// Whether the user can access the device. bool CanAccessDevice(User user, string deviceId); void UpdateDeviceOptions(string deviceId, DeviceOptions options); DeviceOptions GetDeviceOptions(string deviceId); } }