ai.stapi.graphsystem.messaging.command.AbstractPayloadCommand Maven / Gradle / Ivy
package ai.stapi.graphsystem.messaging.command;
import ai.stapi.identity.UniqueIdentifier;
import java.util.HashMap;
import java.util.Map;
public abstract class AbstractPayloadCommand
extends AbstractCommand {
private Map data;
protected AbstractPayloadCommand() {
super();
}
protected AbstractPayloadCommand(
String serializationType,
T uniqueIdentifier,
Map definition
) {
super(
uniqueIdentifier,
serializationType
);
this.data = new HashMap<>(definition);
}
public Map getData() {
return data;
}
}