diff options
author | Jonathan Bauer | 2015-09-14 15:39:35 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-09-14 15:39:35 +0200 |
commit | 75797b6737f7a9efbe5fbf97452c756ef7ca58f0 (patch) | |
tree | cb716907160bbd22d02ef677a8c9eccac73ffd26 /dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java | |
parent | [client] Version: fix manifest path (diff) | |
download | tutor-module-75797b6737f7a9efbe5fbf97452c756ef7ca58f0.tar.gz tutor-module-75797b6737f7a9efbe5fbf97452c756ef7ca58f0.tar.xz tutor-module-75797b6737f7a9efbe5fbf97452c756ef7ca58f0.zip |
[client] ClientVersion: changelog support. The JSON must now have a 'changelog' element
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java b/dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java index d6d35cd4..8818d558 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/util/ClientVersion.java @@ -19,6 +19,7 @@ public class ClientVersion { private static long remoteRevisionTime = 0; private static String localRevision = null; private static String remoteRevision = null; + private static String changelog = null; private static void init() { if (localRevision == null) { @@ -33,6 +34,9 @@ public class ClientVersion { if (remoteRevision == null) { remoteRevision = "???"; } + if (changelog == null) { + changelog = "???"; + } } /** @@ -74,6 +78,16 @@ public class ClientVersion { } /** + * Gets the changelog + * + * @return log as String + */ + public static String getChangelog() { + init(); + return changelog; + } + + /** * Checks if we are running latest bwSuite version * * @return true if there is no newer version, false otherwise @@ -165,6 +179,7 @@ public class ClientVersion { remoteRevision = query.revision; // seconds timestamp here... remoteRevisionTime = query.timestamp; + changelog = query.changelog; } /** @@ -173,6 +188,6 @@ public class ClientVersion { static class VersionQuery { long timestamp; String revision; -// String changelog; + String changelog; } } |