io.bdeploy.jersey.actions.ActionBroadcastDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Public API including dependencies, ready to be used for integrations and plugins.
package io.bdeploy.jersey.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.bdeploy.common.actions.ActionScope;
public class ActionBroadcastDto {
public boolean exclusive;
public String description;
public ActionScope scope;
public Action action;
public ActionExecution execution;
@JsonCreator
public ActionBroadcastDto(@JsonProperty("action") Action action, @JsonProperty("execution") ActionExecution execution) {
this.action = action;
this.execution = execution;
// this cannot be derived from the enum on the TypeScript side, so we extract it here.
this.exclusive = action.getType().isExclusive();
this.description = action.getType().getDescription();
this.scope = action.getType().getScope();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy