public bool IsFadecandyDevice(NetworkDeviceDetails networkDevice) { var request = WebRequest.Create(string.Format("http://{0}:{1}", networkDevice.IPAddress, 7890)); request.Method = "GET"; try { using (var response = (HttpWebResponse)(request.GetResponse())) { if (response.StatusCode == HttpStatusCode.OK) { return(true); } response.Close(); } } catch { } return(false); }
public IHttpActionResult Post(NetworkDeviceDetails device) { _service.SetDeviceHostname(device.Id, device.Hostname); return(Ok("")); }
public override string ToString() { return(NetworkDeviceDetails.ToString()); }
public ServerConfiguration() { NetworkDeviceDetails = new NetworkDeviceDetails(); PixelMappings = new List <PixelInfo>(); VideoConfiguration = new ServerVideoConfiguration(); }