From 2bc8c99f5a0155e374d84a6f7e0f68761e99a14a Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 4 Jul 2021 00:15:56 -0600 Subject: added howlong command --- src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java') diff --git a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java index 2a46aa5..d926057 100644 --- a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java +++ b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java @@ -10,6 +10,7 @@ import java.net.URLConnection; public class CheckForUpdate { + boolean success; String version; String versionURL; @@ -23,6 +24,7 @@ public class CheckForUpdate { version = softwareObj.get("current-release").toString(); version = version.replace("\"", ""); versionURL = softwareObj.get("github-release").toString(); + success = true; } catch (IOException e) { System.out.println("[Resurrection] An error has occurred while attempting to check for updates."); e.printStackTrace(); @@ -47,6 +49,8 @@ public class CheckForUpdate { return response.toString(); } + public boolean isSuccess() { return success; } + public String getVersionURL() { return versionURL; } -- cgit v1.2.3