コード例 #1
0
 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
     });
 }
コード例 #2
0
        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() }");
            }
        }