jellyfin/MediaBrowser.Controller/Sync/ISyncRepository.cs

81 lines
2.4 KiB
C#
Raw Normal View History

2016-08-02 23:38:19 -07:00
using System.Collections.Generic;
using MediaBrowser.Model.Querying;
2014-07-26 10:30:15 -07:00
using MediaBrowser.Model.Sync;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Sync
{
public interface ISyncRepository
{
/// <summary>
/// Gets the job.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>SyncJob.</returns>
SyncJob GetJob(string id);
/// <summary>
/// Creates the specified job.
/// </summary>
/// <param name="job">The job.</param>
/// <returns>Task.</returns>
Task Create(SyncJob job);
/// <summary>
/// Updates the specified job.
/// </summary>
/// <param name="job">The job.</param>
/// <returns>Task.</returns>
Task Update(SyncJob job);
2014-12-10 23:20:28 -07:00
/// <summary>
/// Deletes the job.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>Task.</returns>
Task DeleteJob(string id);
2014-07-26 10:30:15 -07:00
/// <summary>
/// Gets the jobs.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>QueryResult&lt;SyncJob&gt;.</returns>
QueryResult<SyncJob> GetJobs(SyncJobQuery query);
/// <summary>
/// Gets the job item.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>SyncJobItem.</returns>
SyncJobItem GetJobItem(string id);
/// <summary>
/// Creates the specified job item.
/// </summary>
/// <param name="jobItem">The job item.</param>
/// <returns>Task.</returns>
Task Create(SyncJobItem jobItem);
/// <summary>
/// Updates the specified job item.
/// </summary>
/// <param name="jobItem">The job item.</param>
/// <returns>Task.</returns>
Task Update(SyncJobItem jobItem);
2014-12-10 23:20:28 -07:00
/// <summary>
/// Gets the job items.
/// </summary>
2014-12-12 20:56:30 -07:00
/// <param name="query">The query.</param>
2014-12-10 23:20:28 -07:00
/// <returns>IEnumerable&lt;SyncJobItem&gt;.</returns>
2014-12-12 20:56:30 -07:00
QueryResult<SyncJobItem> GetJobItems(SyncJobItemQuery query);
2015-01-24 12:03:55 -07:00
/// <summary>
/// Gets the library item ids.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>QueryResult&lt;System.String&gt;.</returns>
2016-08-02 23:38:19 -07:00
Dictionary<string, SyncedItemProgress> GetSyncedItemProgresses(SyncJobItemQuery query);
2014-07-26 10:30:15 -07:00
}
}