use of org.openkilda.messaging.model.DetectConnectedDevicesDto in project open-kilda by telstra.
the class FlowMapper method toFlowResponseV2.
/**
* Map {@link FlowDto} into {@link FlowResponseV2}.
*/
public FlowResponseV2 toFlowResponseV2(FlowDto flowDto) {
DetectConnectedDevicesDto connectedDevices = flowDto.getDetectConnectedDevices();
FlowEndpointV2 source = generatedFlowSourceEndpointMap(flowDto);
source.setDetectConnectedDevices(generatedFlowSourceEndpointConnectedDevicesMap(connectedDevices));
FlowEndpointV2 destination = generatedFlowDestinationEndpointMap(flowDto);
destination.setDetectConnectedDevices(generatedFlowDestinationEndpointConnectedDevicesMap(connectedDevices));
FlowResponseV2 result = generatedMap(flowDto, source, destination);
result.setSource(source);
result.setDestination(destination);
return result;
}
Aggregations