Package lv.odylab.evemanage.client.rpc.action.blueprints

Source Code of lv.odylab.evemanage.client.rpc.action.blueprints.BlueprintSaveActionRunnerImpl

package lv.odylab.evemanage.client.rpc.action.blueprints;

import com.google.inject.Inject;
import lv.odylab.evemanage.application.EveManageClientFacade;
import lv.odylab.evemanage.client.rpc.dto.blueprint.BlueprintDto;

public class BlueprintSaveActionRunnerImpl implements BlueprintSaveActionRunner {
    private EveManageClientFacade clientFacade;

    @Inject
    public BlueprintSaveActionRunnerImpl(EveManageClientFacade clientFacade) {
        this.clientFacade = clientFacade;
    }

    @Override
    public BlueprintSaveActionResponse execute(BlueprintSaveAction action) throws Exception {
        BlueprintDto blueprintDto = clientFacade.saveBlueprint(action.getBlueprintID(), action.getItemID(), action.getMeLevel(), action.getPeLevel(), action.getAttachedCharacterID(), action.getSharingLevel());

        BlueprintSaveActionResponse response = new BlueprintSaveActionResponse();
        response.setBlueprint(blueprintDto);
        return response;
    }
}
TOP

Related Classes of lv.odylab.evemanage.client.rpc.action.blueprints.BlueprintSaveActionRunnerImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.