From: Debayan Sutradhar Date: Mon, 12 Oct 2020 21:43:53 +0530 Subject: Added Platform and ReleaseStatus --- Added Platform and ReleaseStatus --- --- /dev/null +++ b/src/main/java/com/StreamPi/Util/Platform/Platform.java @@ -0,0 +1,18 @@ +package com.StreamPi.Util.Platform; + +public enum Platform { + WINDOWS, LINUX, MAC, ANDROID, IOS, OTHER; + + public static String getUIName(Platform platform) + { + switch (platform) + { + case WINDOWS: return "Windows"; + case LINUX: return "Linux"; + case MAC: return "MacOS"; + case ANDROID: return "Android"; + case IOS: return "iOS"; + default: return "Unknown"; + } + } +} --- /dev/null +++ b/src/main/java/com/StreamPi/Util/Platform/ReleaseStatus.java @@ -0,0 +1,12 @@ +/* +ReleaseStatus.java + +Contributors : Debayan Sutradhar (@dubbadhar) + +Enum to store the current status of the Server Release + */ +package com.StreamPi.Util.Platform; + +public enum ReleaseStatus { + INTERNAL, ALPHA, BETA, STABLE +} --- 'a/src/main/java/module-info.java' +++ b/src/main/java/module-info.java @@ -1,4 +1,5 @@ module com.StreamPi.Util { exports com.StreamPi.Util.Version; exports com.StreamPi.Util.Exception; + exports com.StreamPi.Util.Platform; } \ No newline at end of file