aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sync/SyncManager.cs
blob: 508fc188ddb67367a14343e8fa6fc6a6513c4c6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using MediaBrowser.Controller.Sync;
using MediaBrowser.Model.Querying;
using MediaBrowser.Model.Sync;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MediaBrowser.Server.Implementations.Sync
{
    public class SyncManager : ISyncManager
    {
        private ISyncProvider[] _providers = new ISyncProvider[]{};

        public void AddParts(IEnumerable<ISyncProvider> providers)
        {
            _providers = providers.ToArray();
        }

        public Task<List<SyncJob>> CreateJob(SyncJobRequest request)
        {
            throw new NotImplementedException();
        }

        public Task<SyncSchedule> CreateSchedule(SyncScheduleRequest request)
        {
            throw new NotImplementedException();
        }

        public QueryResult<SyncJob> GetJobs(SyncJobQuery query)
        {
            throw new NotImplementedException();
        }

        public QueryResult<SyncSchedule> GetSchedules(SyncScheduleQuery query)
        {
            throw new NotImplementedException();
        }

        public Task CancelJob(string id)
        {
            throw new NotImplementedException();
        }

        public Task CancelSchedule(string id)
        {
            throw new NotImplementedException();
        }

        public SyncJob GetJob(string id)
        {
            throw new NotImplementedException();
        }

        public SyncSchedule GetSchedule(string id)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<SyncTarget> GetSyncTargets()
        {
            return _providers.SelectMany(i => i.GetSyncTargets());
        }
    }
}