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
33 lines
937 B
C#
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;
|
|
}
|
|
}
|
|
}
|