Package dev.digiried.wattpilot.commands
Class CommandValueSerializer
java.lang.Object
dev.digiried.wattpilot.commands.CommandValueSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<CommandValue<?>>
public class CommandValueSerializer
extends Object
implements com.google.gson.JsonSerializer<CommandValue<?>>
JSON serializer for
CommandValue.- Author:
- Florian Hotze - Initial contribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementserialize(CommandValue<?> commandValue, Type type, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
CommandValueSerializer
public CommandValueSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(CommandValue<?> commandValue, Type type, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<CommandValue<?>>
-