You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.1 KiB
67 lines
2.1 KiB
using MediaBrowser.Model.Devices;
|
|
using MediaBrowser.Model.Session;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Devices
|
|
{
|
|
public interface IDeviceRepository
|
|
{
|
|
/// <summary>
|
|
/// Registers the device.
|
|
/// </summary>
|
|
/// <param name="device">The device.</param>
|
|
/// <returns>Task.</returns>
|
|
Task SaveDevice(DeviceInfo device);
|
|
|
|
/// <summary>
|
|
/// Saves the capabilities.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <param name="capabilities">The capabilities.</param>
|
|
/// <returns>Task.</returns>
|
|
Task SaveCapabilities(string id, ClientCapabilities capabilities);
|
|
|
|
/// <summary>
|
|
/// Gets the capabilities.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>ClientCapabilities.</returns>
|
|
ClientCapabilities GetCapabilities(string id);
|
|
|
|
/// <summary>
|
|
/// Gets the device information.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>DeviceInfo.</returns>
|
|
DeviceInfo GetDevice(string id);
|
|
|
|
/// <summary>
|
|
/// Gets the devices.
|
|
/// </summary>
|
|
/// <returns>IEnumerable<DeviceInfo>.</returns>
|
|
IEnumerable<DeviceInfo> GetDevices();
|
|
|
|
/// <summary>
|
|
/// Deletes the device.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>Task.</returns>
|
|
Task DeleteDevice(string id);
|
|
|
|
/// <summary>
|
|
/// Gets the upload history.
|
|
/// </summary>
|
|
/// <param name="deviceId">The device identifier.</param>
|
|
/// <returns>ContentUploadHistory.</returns>
|
|
ContentUploadHistory GetCameraUploadHistory(string deviceId);
|
|
|
|
/// <summary>
|
|
/// Saves the camera upload history.
|
|
/// </summary>
|
|
/// <param name="deviceId">The device identifier.</param>
|
|
/// <param name="file">The file.</param>
|
|
void AddCameraUpload(string deviceId, LocalFileInfo file);
|
|
}
|
|
}
|