/// <summary> /// Updates the status of the node associated with the given id. /// <param name="node">The graph component to toggle status</param> /// </summary> private IEnumerator ToggleStatus(GraphComponentStatus node) { JSONObject requestData = new JSONObject(); requestData.Add("node_id", node.Id); return(PostJson(BASE_URL + UPDATE_CONSTRAINT_ENDPOINT, requestData)); }
/// <summary> /// Updates all of the fields for each of the GraphComponents supplied. /// <param name="node">The graph component to toggle status</param> /// </summary> public void ToggleNodeStatus(GraphComponentStatus node) { StartCoroutine(ToggleStatus(node)); }