예제 #1
0
        public ConversationDto GetConversationDto(ISentence currentSentence)
        {
            var displayText = _language == 1
                ? currentSentence.DisplayText(_name) : Translator.TranslateToSpanish(currentSentence, _name);

            return(new ConversationDto
            {
                DisplayText = displayText,
                Language = _language,
                Name = _name,
                SentenceId = currentSentence.SentenceId,
                IsAssertion = currentSentence.IsAssertion
            });
        }