mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
57 lines
1.6 KiB
C#
57 lines
1.6 KiB
C#
using System.IO;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Model.Devices;
|
|
using MediaBrowser.Model.Querying;
|
|
using MediaBrowser.Model.Sync;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Sync
|
|
{
|
|
public interface ISyncManager
|
|
{
|
|
/// <summary>
|
|
/// Creates the job.
|
|
/// </summary>
|
|
/// <param name="request">The request.</param>
|
|
/// <returns>Task.</returns>
|
|
Task<SyncJobCreationResult> CreateJob(SyncJobRequest request);
|
|
|
|
/// <summary>
|
|
/// Gets the jobs.
|
|
/// </summary>
|
|
/// <returns>QueryResult<SyncJob>.</returns>
|
|
QueryResult<SyncJob> GetJobs(SyncJobQuery query);
|
|
|
|
/// <summary>
|
|
/// Gets the job.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>SyncJob.</returns>
|
|
SyncJob GetJob(string id);
|
|
|
|
/// <summary>
|
|
/// Cancels the job.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>Task.</returns>
|
|
Task CancelJob(string id);
|
|
|
|
/// <summary>
|
|
/// Adds the parts.
|
|
/// </summary>
|
|
void AddParts(IEnumerable<ISyncProvider> providers);
|
|
|
|
/// <summary>
|
|
/// Gets the synchronize targets.
|
|
/// </summary>
|
|
IEnumerable<SyncTarget> GetSyncTargets(string userId);
|
|
|
|
/// <summary>
|
|
/// Supportses the synchronize.
|
|
/// </summary>
|
|
/// <param name="item">The item.</param>
|
|
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
|
bool SupportsSync(BaseItem item);
|
|
}
|
|
}
|