Beispiel #1
0
        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);
        }
Beispiel #2
0
 public UpdateResponce(UpdateResponce other_state)
 {
     _ParsedData = other_state._ParsedData;
     json        = other_state.json;
 }