feat: completed RequestDeserializer

This commit is contained in:
2021-05-28 14:50:38 +02:00
parent b2b963579e
commit a92f437412
5 changed files with 148 additions and 33 deletions

View File

@ -1,10 +1,13 @@
package uulm.teamname.marvelous.gamelibrary.requests;
import uulm.teamname.marvelous.gamelibrary.json.ingame.MessageStructure;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import uulm.teamname.marvelous.gamelibrary.json.basic.EventMessage;
import uulm.teamname.marvelous.gamelibrary.json.ingame.RequestDeserializer;
import java.util.Objects;
/** Represents an abstract request sent inside a {@link MessageStructure} between client and server. */
/** Represents an abstract request sent inside a {@link EventMessage} between client and server. */
@JsonDeserialize(using = RequestDeserializer.class)
public abstract class Request {
public RequestType type;