mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
67 lines
2.1 KiB
C#
67 lines
2.1 KiB
C#
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);
|
|
}
|
|
}
|