private bool fetchData() { if (String.IsNullOrWhiteSpace(infourl)) { return(false); } try { WebClient client = new WebClient(); string reply = client.DownloadString(infourl); responce = new UpdateResponce(reply); //Console.WriteLine(reply); } catch (Exception exc) { updatestate = UpdateStatus.Error; return(false); } return(true); }
public UpdateResponce(UpdateResponce other_state) { _ParsedData = other_state._ParsedData; json = other_state.json; }