public DtoActionResult UpdateLastSocketResult(DtoStringResponse result) { Request.Method = Method.POST; Request.Resource = string.Format("ProvisionedComm/{0}/UpdateLastSocketResult/", Resource); return(new ApiRequest().ExecuteSymKeyEncryption <DtoActionResult>(Request, JsonConvert.SerializeObject(result))); }
public DtoBoolResponse Shutdown(DtoStringResponse delay) { Logger.Info("Server Issued Shutdown Request. Shutting Down."); var t = new Thread(() => RunShutdown(delay.Value)); t.Start(); return(new DtoBoolResponse { Value = true }); }
public DtoBoolResponse Reboot(DtoStringResponse delay) { Logger.Info("Server Issued Reboot Request. Rebooting."); var t = new Thread(() => RunReboot(delay.Value)); t.Start(); return(new DtoBoolResponse { Value = true }); }