sync updates

This commit is contained in:
Luke Pulverenti
2014-12-27 17:52:41 -05:00
parent 0840bb9ba2
commit 7bce2e04b6
36 changed files with 109 additions and 104 deletions

View File

@@ -85,6 +85,13 @@ namespace MediaBrowser.Api.Sync
{
}
[Route("/Sync/Items/Ready", "GET", Summary = "Gets ready to download sync items.")]
public class GetReadySyncItems : IReturn<List<SyncedItem>>
{
[ApiMember(Name = "TargetId", Description = "TargetId", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
public string TargetId { get; set; }
}
[Authenticated]
public class SyncService : BaseApiService
{
@@ -207,5 +214,10 @@ namespace MediaBrowser.Api.Sync
await _syncManager.ReportOfflineAction(action).ConfigureAwait(false);
}
}
public object Get(GetReadySyncItems request)
{
return ToOptimizedResult(_syncManager.GetReadySyncItems(request.TargetId));
}
}
}