using MediaBrowser.Model.Devices;
using MediaBrowser.Model.Events;
using MediaBrowser.Model.Session;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Devices
{
public interface IDeviceManager
{
///
/// Occurs when [device options updated].
///
event EventHandler> DeviceOptionsUpdated;
///
/// Registers the device.
///
/// The reported identifier.
/// The name.
/// Name of the application.
/// The used by user identifier.
/// Task.
Task RegisterDevice(string reportedId, string name, string appName, string usedByUserId);
///
/// Saves the capabilities.
///
/// The reported identifier.
/// The capabilities.
/// Task.
Task 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);
///
/// Updates the device information.
///
/// The identifier.
/// The options.
/// Task.
Task UpdateDeviceInfo(string id, DeviceOptions options);
///
/// Gets the devices.
///
/// IEnumerable<DeviceInfo>.
IEnumerable GetDevices();
///
/// Deletes the device.
///
/// The identifier.
/// Task.
Task DeleteDevice(string id);
///
/// Gets the upload history.
///
/// The device identifier.
/// ContentUploadHistory.
ContentUploadHistory GetCameraUploadHistory(string deviceId);
///
/// Accepts the upload.
///
/// The device identifier.
/// The stream.
/// The file.
/// Task.
Task AcceptCameraUpload(string deviceId, Stream stream, LocalFileInfo file);
}
}