mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-27 19:24:47 +03:00
sync updates
This commit is contained in:
@@ -92,6 +92,11 @@ namespace MediaBrowser.Api.Sync
|
||||
public string TargetId { get; set; }
|
||||
}
|
||||
|
||||
[Route("/Sync/Data", "POST", Summary = "Syncs data between device and server")]
|
||||
public class SyncData : SyncDataRequest, IReturn<SyncDataResponse>
|
||||
{
|
||||
}
|
||||
|
||||
[Authenticated]
|
||||
public class SyncService : BaseApiService
|
||||
{
|
||||
@@ -219,5 +224,12 @@ namespace MediaBrowser.Api.Sync
|
||||
{
|
||||
return ToOptimizedResult(_syncManager.GetReadySyncItems(request.TargetId));
|
||||
}
|
||||
|
||||
public async Task<object> Post(SyncData request)
|
||||
{
|
||||
var response = await _syncManager.SyncData(request).ConfigureAwait(false);
|
||||
|
||||
return ToOptimizedResult(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user