2023-07-29 18:18:02 +02:00
|
|
|
|
using System.Net;
|
|
|
|
|
|
|
|
|
|
namespace Tranga.TrangaTasks;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// LEGACY DEPRECATED
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UpdateLibrariesTask : TrangaTask
|
|
|
|
|
{
|
|
|
|
|
public UpdateLibrariesTask(TimeSpan reoccurrence) : base(Task.UpdateLibraries, reoccurrence)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-30 17:11:11 +02:00
|
|
|
|
protected override HttpStatusCode ExecuteTask(TaskManager taskManager, CancellationToken? cancellationToken = null)
|
2023-07-29 18:18:02 +02:00
|
|
|
|
{
|
2023-07-29 18:20:41 +02:00
|
|
|
|
return HttpStatusCode.BadRequest;
|
2023-07-29 18:18:02 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override TrangaTask Clone()
|
|
|
|
|
{
|
|
|
|
|
return new UpdateLibrariesTask(this.reoccurrence);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override double GetProgress()
|
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|