resolve update check errors
This commit is contained in:
parent
13274348e9
commit
3763f7d912
|
@ -27,22 +27,14 @@ namespace MediaBrowser.Api.Sync
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Sync/Jobs", "GET", Summary = "Gets sync jobs.")]
|
[Route("/Sync/JobItems", "GET", Summary = "Gets sync job items.")]
|
||||||
public class GetSyncJobs : IReturn<QueryResult<SyncJob>>
|
public class GetSyncJobItems : SyncJobItemQuery, IReturn<QueryResult<SyncJobItem>>
|
||||||
{
|
{
|
||||||
/// <summary>
|
}
|
||||||
/// Skips over a given number of items within the results. Use for paging.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The start index.</value>
|
|
||||||
[ApiMember(Name = "StartIndex", Description = "Optional. The record index to start at. All items with a lower index will be dropped from the results.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
|
|
||||||
public int? StartIndex { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
[Route("/Sync/Jobs", "GET", Summary = "Gets sync jobs.")]
|
||||||
/// The maximum number of items to return
|
public class GetSyncJobs : SyncJobQuery, IReturn<QueryResult<SyncJob>>
|
||||||
/// </summary>
|
{
|
||||||
/// <value>The limit.</value>
|
|
||||||
[ApiMember(Name = "Limit", Description = "Optional. The maximum number of records to return", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
|
|
||||||
public int? Limit { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Sync/Jobs", "POST", Summary = "Gets sync jobs.")]
|
[Route("/Sync/Jobs", "POST", Summary = "Gets sync jobs.")]
|
||||||
|
@ -104,11 +96,14 @@ namespace MediaBrowser.Api.Sync
|
||||||
|
|
||||||
public object Get(GetSyncJobs request)
|
public object Get(GetSyncJobs request)
|
||||||
{
|
{
|
||||||
var result = _syncManager.GetJobs(new SyncJobQuery
|
var result = _syncManager.GetJobs(request);
|
||||||
|
|
||||||
|
return ToOptimizedResult(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
public object Get(GetSyncJobItems request)
|
||||||
{
|
{
|
||||||
StartIndex = request.StartIndex,
|
var result = _syncManager.GetJobItems(request);
|
||||||
Limit = request.Limit
|
|
||||||
});
|
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||||
{
|
{
|
||||||
public class MbAdmin
|
public class MbAdmin
|
||||||
{
|
{
|
||||||
public const string HttpUrl = "https://www.mb3admin.com/admin/";
|
public const string HttpUrl = "http://www.mb3admin.com/admin/";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Leaving as http for now until we get it squared away
|
/// Leaving as http for now until we get it squared away
|
||||||
|
|
|
@ -22,6 +22,13 @@ namespace MediaBrowser.Controller.Sync
|
||||||
/// <returns>QueryResult<SyncJob>.</returns>
|
/// <returns>QueryResult<SyncJob>.</returns>
|
||||||
QueryResult<SyncJob> GetJobs(SyncJobQuery query);
|
QueryResult<SyncJob> GetJobs(SyncJobQuery query);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the job items.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="query">The query.</param>
|
||||||
|
/// <returns>QueryResult<SyncJobItem>.</returns>
|
||||||
|
QueryResult<SyncJobItem> GetJobItems(SyncJobItemQuery query);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the job.
|
/// Gets the job.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1411,8 +1411,9 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// Gets the synchronize job item file.
|
/// Gets the synchronize job item file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">The identifier.</param>
|
/// <param name="id">The identifier.</param>
|
||||||
|
/// <param name="cancellationToken">The cancellation token.</param>
|
||||||
/// <returns>Task<Stream>.</returns>
|
/// <returns>Task<Stream>.</returns>
|
||||||
Task<Stream> GetSyncJobItemFile(string id);
|
Task<Stream> GetSyncJobItemFile(string id, CancellationToken cancellationToken);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Opens the web socket.
|
/// Opens the web socket.
|
||||||
|
|
|
@ -284,5 +284,10 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||||
{
|
{
|
||||||
return _repo.GetJobItem(id);
|
return _repo.GetJobItem(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public QueryResult<SyncJobItem> GetJobItems(SyncJobItemQuery query)
|
||||||
|
{
|
||||||
|
return _repo.GetJobItems(query);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user