io.hyperfoil.tools.horreum.mapper.ActionMapper Maven / Gradle / Ivy
package io.hyperfoil.tools.horreum.mapper;
import io.hyperfoil.tools.horreum.api.data.Action;
import io.hyperfoil.tools.horreum.entity.data.ActionDAO;
public class ActionMapper {
public static Action from(ActionDAO action) {
return new Action(action.id, action.event, action.type,
action.config, action.secrets, action.testId, action.active, action.runAlways);
}
public static ActionDAO to(Action action) {
return new ActionDAO(action.id, action.event, action.type,
action.config, action.secrets, action.testId, action.active, action.runAlways);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy