C# 클래스 Microsoft.Teams.Apps.FAQPlusPlus.Common.Components.QnAPairServiceFacade

Class that handles get/add/update of QnA pairs.
상속: IQnAPairServiceFacade
파일 보기 프로젝트 열기: OfficeDev/microsoft-teams-apps-faqplus

공개 메소드들

메소드 설명
EditQnAPairAsync ( AdaptiveSubmitActionData postedQnaPairEntity, ITurnContext turnContext ) : Task

Validate the adaptive card fields while editing the question and answer pair.

GetReplyToQnAAsync ( ITurnContext turnContext, IMessageActivity message ) : Task

Get the reply to a question asked by end user.

QnAPairServiceFacade ( Common.Providers.IConfigurationDataProvider configurationProvider, IQnaServiceProvider qnaServiceProvider, IActivityStorageProvider activityStorageProvider, IOptionsMonitor botSettings, ILogger logger ) : System

Initializes a new instance of the QnAPairServiceFacade class.

SaveQnAPairAsync ( ITurnContext turnContext, string answer, AdaptiveSubmitActionData qnaPairEntity ) : Task

Method perform update operation of question and answer pair.

비공개 메소드들

메소드 설명
CardResponseAsync ( ITurnContext turnContext, AdaptiveSubmitActionData postedQnaPairEntity, string answer ) : Task

Return card response.

메소드 상세

EditQnAPairAsync() 공개 메소드

Validate the adaptive card fields while editing the question and answer pair.
public EditQnAPairAsync ( AdaptiveSubmitActionData postedQnaPairEntity, ITurnContext turnContext ) : Task
postedQnaPairEntity AdaptiveSubmitActionData Qna pair entity contains submitted card data.
turnContext ITurnContext Context object containing information cached for a single turn of conversation with a user.
리턴 Task

GetReplyToQnAAsync() 공개 메소드

Get the reply to a question asked by end user.
public GetReplyToQnAAsync ( ITurnContext turnContext, IMessageActivity message ) : Task
turnContext ITurnContext Context object containing information cached for a single turn of conversation with a user.
message IMessageActivity Text message.
리턴 Task

QnAPairServiceFacade() 공개 메소드

Initializes a new instance of the QnAPairServiceFacade class.
public QnAPairServiceFacade ( Common.Providers.IConfigurationDataProvider configurationProvider, IQnaServiceProvider qnaServiceProvider, IActivityStorageProvider activityStorageProvider, IOptionsMonitor botSettings, ILogger logger ) : System
configurationProvider Common.Providers.IConfigurationDataProvider Configuration Provider.
qnaServiceProvider IQnaServiceProvider QnA service provider.
activityStorageProvider IActivityStorageProvider Activity storage provider.
botSettings IOptionsMonitor Represents a set of key/value application configuration properties for FaqPlusPlus bot.
logger ILogger Instance to send logs to the Application Insights service.
리턴 System

SaveQnAPairAsync() 공개 메소드

Method perform update operation of question and answer pair.
public SaveQnAPairAsync ( ITurnContext turnContext, string answer, AdaptiveSubmitActionData qnaPairEntity ) : Task
turnContext ITurnContext Context object containing information cached for a single turn of conversation with a user.
answer string Answer of the given question.
qnaPairEntity AdaptiveSubmitActionData Qna pair entity that contains question and answer information.
리턴 Task