private async Task <bool> CheckAnswer(IntentRequest intent, SkillState state) { var expected = await state.Get <string>("currentAnswer"); var slot = intent.Intent.Slots["currentAnswer"]; var resolution = slot.Resolution.Authorities.First(); return(slot.Value == expected || (resolution.Status.Code == ResolutionStatusCode.SuccessfulMatch && resolution.Values.First().Value.Name == expected)); }