jellyfin/MediaBrowser.Server.Implementations/Sync/CloudSyncProvider.cs

53 lines
1.6 KiB
C#
Raw Normal View History

2014-07-22 01:29:06 +00:00
using MediaBrowser.Common;
using MediaBrowser.Controller.Sync;
using MediaBrowser.Model.Dlna;
using MediaBrowser.Model.Sync;
2015-02-05 05:29:37 +00:00
using System;
2014-07-22 01:29:06 +00:00
using System.Collections.Generic;
using System.Linq;
2015-02-05 05:29:37 +00:00
using System.Threading;
using System.Threading.Tasks;
2014-07-22 01:29:06 +00:00
namespace MediaBrowser.Server.Implementations.Sync
{
2015-02-05 05:29:37 +00:00
public class CloudSyncProvider : IServerSyncProvider
2014-07-22 01:29:06 +00:00
{
2015-02-05 21:14:08 +00:00
private readonly ICloudSyncProvider[] _providers = {};
2014-07-22 01:29:06 +00:00
public CloudSyncProvider(IApplicationHost appHost)
{
_providers = appHost.GetExports<ICloudSyncProvider>().ToArray();
}
2014-12-31 06:24:49 +00:00
public IEnumerable<SyncTarget> GetSyncTargets(string userId)
{
2015-02-07 06:02:42 +00:00
return _providers.SelectMany(i => i.GetSyncTargets(userId));
2014-12-31 06:24:49 +00:00
}
2014-07-22 01:29:06 +00:00
public DeviceProfile GetDeviceProfile(SyncTarget target)
{
2014-07-22 16:36:34 +00:00
return new DeviceProfile();
2014-07-22 01:29:06 +00:00
}
public string Name
{
get { return "Cloud Sync"; }
}
2015-02-05 05:29:37 +00:00
public Task<List<string>> GetServerItemIds(string serverId, SyncTarget target, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task DeleteItem(string serverId, string itemId, SyncTarget target, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
2015-02-05 21:14:08 +00:00
public Task TransferItemFile(string serverId, string itemId, string[] pathParts, string name, ItemFileType fileType, SyncTarget target, CancellationToken cancellationToken)
2015-02-05 05:29:37 +00:00
{
throw new NotImplementedException();
}
2014-07-22 01:29:06 +00:00
}
}