Files
BeWoPlaner/SharedLauncher/Extensions/UpdateResponseExtension.cs
rene 4fbfdbaf2c Unit Tests erstellt
Informationen ausgelagert
Kleines Spy/Test Programm erstellt
Mehr Exceptions/InvalidUpdateFileRequestException.cs
Launcher Host in Download Server geändert
Download Server macht zusätzlich Abfrage an den Hauptserver
Download geht jetzt stückweise von statten
2022-12-28 16:36:59 +01:00

33 lines
937 B
C#

using BS.SharedLauncher.DataContract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BS.SharedLauncher.Extensions
{
public static class UpdateResponseExtension
{
public static bool HasToDo(this UpdatePlanResponse response)
{
return response.HasToRequestFiles() || response.HasToApplyFiles() || response.HasToDeleteFilesInApply();
}
public static bool HasToRequestFiles(this UpdatePlanResponse response)
{
return response.FilesToRequest is object;
}
public static bool HasToApplyFiles(this UpdatePlanResponse response)
{
return response.FilesToApply is object;
}
public static bool HasToDeleteFilesInApply(this UpdatePlanResponse response)
{
return response.FilesToDeleteInApply is object;
}
}
}