aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-07-04 00:15:56 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-07-04 00:15:56 -0600
commit2bc8c99f5a0155e374d84a6f7e0f68761e99a14a (patch)
treed70199f89ae83f40cb6c2bb309a89238d4866c87 /src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java
parent2352b42b13db966b76f97d8af62fb22339841c83 (diff)
downloadresurrection-2bc8c99f5a0155e374d84a6f7e0f68761e99a14a.tar
resurrection-2bc8c99f5a0155e374d84a6f7e0f68761e99a14a.tar.gz
resurrection-2bc8c99f5a0155e374d84a6f7e0f68761e99a14a.tar.bz2
added howlong command
Diffstat (limited to 'src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java')
-rw-r--r--src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java4
1 files changed, 4 insertions, 0 deletions
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;
}