using MediaBrowser.Model.Sync; using System.Collections.Generic; using System.Threading.Tasks; namespace MediaBrowser.Controller.Sync { public interface ISyncDataProvider { /// /// Gets the server item ids. /// /// The target. /// The server identifier. /// Task<List<System.String>>. Task> GetServerItemIds(SyncTarget target, string serverId); /// /// Adds the or update. /// /// The target. /// The item. /// Task. Task AddOrUpdate(SyncTarget target, LocalItem item); /// /// Deletes the specified identifier. /// /// The target. /// The identifier. /// Task. Task Delete(SyncTarget target, string id); /// /// Gets the specified identifier. /// /// The target. /// The identifier. /// Task<LocalItem>. Task Get(SyncTarget target, string id); /// /// Gets the cached item. /// /// The target. /// The identifier. /// Task<LocalItem>. Task GetCachedItem(SyncTarget target, string id); } }