fix: Refactored to Gradle-based project, and added dependencies

This commit is contained in:
Yannik Bretschneider
2021-04-29 20:57:08 +02:00
parent 0f7109d41a
commit 67b9d25eb8
30 changed files with 30 additions and 120 deletions

View File

@ -0,0 +1,25 @@
package uulm.teamname.marvelous.gamelibrary.json;
import jdk.jshell.spi.ExecutionControl;
/** Contains JSON encoding and decoding.
*/
public class JSON {
/** Deserializes an incoming network message into a {@link MessageStructure}.
* @param input The JSON to deserialize.
* @return The parsed message.
*/
public static MessageStructure[] parse(String input) throws ExecutionControl.NotImplementedException {
//TODO: implement JSON.parse
throw new ExecutionControl.NotImplementedException("JSON.parse is not implemented");
}
/** Serializes a {@link MessageStructure} into a JSON string.
* @param input The message to serialize.
* @return The message as JSON.
*/
public static String stringify(MessageStructure input) throws ExecutionControl.NotImplementedException {
//TODO: implement JSON.stringify
throw new ExecutionControl.NotImplementedException("JSON.stringify is not implemented");
}
}