/// <summary> /// /// </summary> /// <returns></returns> private async Task APICall() { var situation = ""; foreach (var s in btnStatus) { if (s == null) { situation += "-"; } else { situation += s; } } var d = await SmartClient.GetMyRecommendation(situation, "X"); if (d != null) { btnStatus[(int)d.recommendation] = "X"; UpdateButtonStatus((int)d.recommendation); if (await WinCheck("X") != false) { await Reset(); return; } } }
public void GetMyRecommendationTest() { var x = SmartClient.GetMyRecommendation("---------", "O").Result; }