Files
BeWoPlaner/SharedLauncher/Extensions/DownloadPlanerResponseExtension.cs
2022-08-30 09:12:20 +02:00

28 lines
793 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 DownloadPlanerResponseExtension
{
public static bool HasToDo(this DownloadPlanerResponseDC response)
{
return response.HasToDoDownload2Keep() || response.HasToDoNewZip() || response.HasToRemoveFiles;
}
public static bool HasToDoDownload2Keep(this DownloadPlanerResponseDC response)
{
return response.DownloadFilesToKeep is object;
}
public static bool HasToDoNewZip(this DownloadPlanerResponseDC response)
{
return response.NewZipInfo is object;
}
}
}