All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy