Esempio n. 1
0
 public override int checkState(DateTime pastTime, string func)
 {
     funcHandle(func);
     ConfSys.sendHealth(dog_health);
     if (getTimeBetween(pastTime) > Convert.ToInt32(ConfSys.responseHealthString))
     {
         Console.WriteLine("Your pet dead!");
         return(0);
     }
     return(dog_health);
 }
Esempio n. 2
0
        public static string sendHWID()
        {
            using (var wb = new WebClient())
            {
                var data = new NameValueCollection();
                data["HWID"] = ConfSys.getHWID();

                var response = wb.UploadValues("http://desulist.000webhostapp.com/tamagochi.php", "POST", data);
                responseHWIDstring = Encoding.UTF8.GetString(response);
            }
            return(responseHWIDstring);
        }