Commit 7102dd8a authored by Jonathan Sudibya's avatar Jonathan Sudibya
Browse files

Server Status Done

parent 1e104926
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
*/ */
package Model; package Model;
import Controller.DBHandler; import static Controller.ConnectionHandler.serverList;
import Method.EndpointMethod; import Method.EndpointMethod;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject; import org.json.simple.JSONObject;
/** /**
...@@ -91,6 +92,9 @@ public final class MessageProcessor { ...@@ -91,6 +92,9 @@ public final class MessageProcessor {
System.out.println("BELUM!"); System.out.println("BELUM!");
break; break;
} }
case "serverStatus" : {
serverList = (JSONArray) data.get("value");
}
default : { default : {
//senderror //senderror
response = EndpointMethod.statusError(); response = EndpointMethod.statusError();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment