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; } } }