private void ParseSimulationData(SimulationData simulationData) { switch (simulationData.Method) { case "SetMesh": ParseMeshData(simulationData.Parameters); break; case "SetAnchorPoints": ParseAnchorData(simulationData.Parameters); break; case "Simulate": ParseForceData(simulationData.Parameters); break; } }
private bool IsValidSimulationRequest(SimulationData simulationData) { return(simulationData.Method == "SetMesh" || simulationData.Method == "SetAnchorPoints" || simulationData.Method == "Simulate"); }