Beispiel #1
0
        public async static Task <bool> UpdateMe()
        {
            var response = await BotHttpClient.TaskHttpGetToArmAPI("UpdateMe");

            var responseContent = await response.Content.ReadAsStringAsync();

            var main = JsonConvert.DeserializeObject <GlobalMain>(responseContent);


            GlobalMain.StateAKA = main.StataAKA_DTO;
            GlobalMain.Message  = main.Message_DTO;


            return(true);
        }
Beispiel #2
0
        public static async Task <bool> IsCodeCeptArmReady()
        {
            bool result = false;

            var response = await BotHttpClient.TaskHttpGetToArmAPI("IsCodeCeptReady");

            if (response.StatusCode == System.Net.HttpStatusCode.OK)
            {
                var hello = response.Content.ReadAsStringAsync().Result;
                BotHttpClient.WriteDevBotResponse("IsCodeCeptArmReady: \n" + hello);
                result = Convert.ToBoolean(hello);
            }
            else
            {
                result = false;
            }

            return(result);
        }