public void requestData(int type, string start, string end, int id, string callback) { OnRequestData?.Invoke(this, new RequestDataArgument { Type = (DataRequestType)type, TimestampStart = start, TimestampEnd = end, Callback = callback, EntityId = id }); }
public void RequestData(string deploymentUser) { try { JObject JSONDeploymentUser = JObject.Parse(deploymentUser); DeploymentUser _deploymentUser = new DeploymentUser(JSONDeploymentUser); OnRequestData?.Invoke(this, _deploymentUser); } catch (Exception e) { Console.WriteLine($"JSONError: { e.ToString() }"); } }