private List <ConnectionEvent> GetConnectionsFromAPI()
        {
            string        result = HttpRequests.GET(API_GET_CONNECTIONS).Content.ReadAsStringAsync().Result;
            List <string> IPList = Newtonsoft.Json.JsonConvert.DeserializeObject <List <string> >(result);

            foreach (string IP in IPList)
            {
                Connections.Add(new ConnectionEvent()
                {
                    IPAddress = IP
                });
            }
            return(Connections);
        }
 private bool HaveConnectionsFromAPI()
 {
     return(HttpRequests.GET(API_HAVE_CONNECTIONS).IsSuccessStatusCode);
 }