package de.rwth.idsg.steve.handler.ocpp15;
import de.rwth.idsg.steve.handler.AbstractOcppResponseHandler;
import de.rwth.idsg.steve.web.dto.task.RequestTask;
import ocpp.cp._2012._06.ChangeAvailabilityRequest;
import ocpp.cp._2012._06.ChangeAvailabilityResponse;
/**
* @author Sevket Goekay <goekay@dbis.rwth-aachen.de>
* @since 29.12.2014
*/
public class ChangeAvailabilityResponseHandler
extends AbstractOcppResponseHandler<ChangeAvailabilityRequest, ChangeAvailabilityResponse> {
public ChangeAvailabilityResponseHandler(RequestTask<ChangeAvailabilityRequest> task, String chargeBoxId) {
super(task, chargeBoxId);
}
@Override
public void handleResult(ChangeAvailabilityResponse response) {
requestTask.addNewResponse(chargeBoxId, response.getStatus().value());
}
}