2014-07-15 04:12:26 +00:00
|
|
|
|
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<List<SyncJob>> CreateJob(SyncJobRequest request);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates the schedule.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">The request.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task<SyncSchedule> CreateSchedule(SyncScheduleRequest request);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the jobs.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>QueryResult<SyncJob>.</returns>
|
|
|
|
|
QueryResult<SyncJob> GetJobs(SyncJobQuery query);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the schedules.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>QueryResult<SyncSchedule>.</returns>
|
|
|
|
|
QueryResult<SyncSchedule> GetSchedules(SyncScheduleQuery query);
|
|
|
|
|
|
2014-07-17 22:21:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the job.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>SyncJob.</returns>
|
|
|
|
|
SyncJob GetJob(string id);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the schedule.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>SyncSchedule.</returns>
|
|
|
|
|
SyncSchedule GetSchedule(string id);
|
|
|
|
|
|
2014-07-15 04:12:26 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Cancels the job.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task CancelJob(string id);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Cancels the schedule.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task CancelSchedule(string id);
|
|
|
|
|
}
|
|
|
|
|
}
|