public List <AnswerOptionModel> GetAnswerOptionsForHashtag(string hashtag)
        {
            var answerOptionsReturnModel = this.arsnovaClickApi.GetAnswerOptions(hashtag);

            var answerOptions = new List <AnswerOptionModel>();

            foreach (var answerOptionModelWithId in answerOptionsReturnModel.answeroptions)
            {
                var answerOptionModel = new AnswerOptionModel();
                this.answerOptionMapper.Map(answerOptionModelWithId, answerOptionModel);
                answerOptions.Add(answerOptionModel);
            }

            return(answerOptions);
        }
        private void SubmitAnswer()
        {
            AnswerOptionModel Correct = lstAnswers.Where(x => x.IsCorrect == true).FirstOrDefault();

            if (CurrentAnswer.ID != Correct.ID)
            {
                IsCorrect = false;
            }
            else
            {
                IsCorrect = true;
            }



            App.Current.MainPage = new FeedbackView();
        }
        private AnswerOptionModel SlideAnswerOptionModelToAnswerOptionModel(GeneralAnswerOption answerOption, string hashtag, int questionIndex, bool isFreetextAnswerOption)
        {
            var answerOptionModel = new AnswerOptionModel
            {
                hashtag            = Uri.EscapeDataString(hashtag),
                questionIndex      = questionIndex,
                answerText         = Uri.EscapeDataString(answerOption.Text),
                answerOptionNumber = answerOption.Position - 1,
                isCorrect          = answerOption.IsTrue,
                type = isFreetextAnswerOption ? "FreeTextAnswerOption" : "DefaultAnswerOption"
            };

            if (isFreetextAnswerOption)
            {
                answerOptionModel.configCaseSensitive   = answerOption.ConfigCaseSensitive;
                answerOptionModel.configTrimWhitespaces = answerOption.ConfigTrimWhitespaces;
                answerOptionModel.configUseKeywords     = answerOption.ConfigUseKeywords;
                answerOptionModel.configUsePunctuation  = answerOption.ConfigUsePunctuation;
            }

            return(answerOptionModel);
        }