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

io.hyperfoil.tools.horreum.mapper.ActionMapper Maven / Gradle / Ivy

There is a newer version: 0.16.3
Show newest version
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