Class GsonMoveDeserializer
java.lang.Object
it.polimi.ingsw.Server.Controller.GsonMoveDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Move>
Gson Move Deserializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserialization strategy
-
Field Details
-
b
Game's Board -
s
Player's Shelf
-
-
Constructor Details
-
GsonMoveDeserializer
MoveDeserializer Constructor- Parameters:
b
- Game's Boards
- Player's Shelf
-
-
Method Details
-
deserialize
public Move deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserialization strategy- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Move>
- Throws:
com.google.gson.JsonParseException
-