SkillDialog 클래스
- java.
lang. Object - com.
microsoft. bot. dialogs. Dialog - com.
microsoft. bot. dialogs. SkillDialog
- com.
- com.
public class SkillDialog
extends Dialog
기술에 대한 원격 호출을 래핑할 수 있는 특수 Dialog. BeginDialog의 옵션 매개 변수는 대화 상자의 초기 매개 변수와 함께 BeginSkillDialogOptions 인스턴스여야 합니다.
생성자 요약
| 생성자 | Description |
|---|---|
| SkillDialog(SkillDialogOptions dialogOptions, String dialogId) |
SkillDialog 클래스의 새 인스턴스를 초기화하여 기술에 대한 원격 호출을 래핑합니다. |
메서드 요약
| 한정자 및 형식 | 메서드 및 설명 |
|---|---|
|
java.util.concurrent.CompletableFuture<Dialog |
beginDialog(DialogContext dc, Object options)
기술 대화 상자가 시작되고 대화 상자 스택으로 푸시될 때 호출됩니다. |
|
java.util.concurrent.CompletableFuture<Dialog |
continueDialog(DialogContext dc)
기술 대화 상자가 _continued_이면 호출됩니다. 여기서 활성 대화 상자이며 사용자가 새 활동으로 회신합니다. |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
endDialog(TurnContext turnContext, DialogInstance instance, DialogReason reason)
기술 대화 상자가 종료되면 호출됩니다. |
|
protected
Skill |
getDialogOptions()
기술 대화 상자를 실행하는 데 사용되는 옵션을 가져옵니다. |
| protected boolean |
onValidateActivity(Activity activity)
계속 |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
repromptDialog(TurnContext turnContext, DialogInstance instance)
기술 대화 상자가 사용자에게 입력하라는 메시지를 다시 표시해야 할 때 호출됩니다. |
|
java.util.concurrent.CompletableFuture<Dialog |
resumeDialog(DialogContext dc, DialogReason reason, Object result)
자식 기술 대화 상자가 턴을 완료하고 컨트롤을 이 대화 상자로 반환할 때 호출됩니다. |
다음에서 상속된 메서드 Dialog
다음에서 상속된 메서드 java.lang.Object
생성자 세부 정보
SkillDialog
public SkillDialog(SkillDialogOptions dialogOptions, String dialogId)
SkillDialog 클래스의 새 인스턴스를 초기화하여 기술에 대한 원격 호출을 래핑합니다.
매개 변수:
메서드 세부 정보
beginDialog
public CompletableFuture
기술 대화 상자가 시작되고 대화 상자 스택으로 푸시될 때 호출됩니다.
재정의:
SkillDialog.beginDialog(DialogContext dc, Object options)매개 변수:
반환:
If the task is successful, the result indicates whether the dialog is
still active after the turn has been processed by the dialog.
continueDialog
public CompletableFuture
기술 대화 상자가 _continued_이면 호출됩니다. 여기서 활성 대화 상자이며 사용자가 새 활동으로 회신합니다.
재정의:
SkillDialog.continueDialog(DialogContext dc)매개 변수:
반환:
If the task is successful, the result indicates whether the dialog is
still active after the turn has been processed by the dialog. The
result may also contain a return value.
endDialog
public CompletableFuture
기술 대화 상자가 종료되면 호출됩니다.
재정의:
SkillDialog.endDialog(TurnContext turnContext, DialogInstance instance, DialogReason reason)매개 변수:
반환:
getDialogOptions
protected SkillDialogOptions getDialogOptions()
기술 대화 상자를 실행하는 데 사용되는 옵션을 가져옵니다.
반환:
onValidateActivity
protected boolean onValidateActivity(Activity activity)
ContinueDialog 중에 보낸 활동의 유효성을 검사합니다.
매개 변수:
Override this method to implement a custom validator for the
activity being sent during the ContinueDialog . This
method can be used to ignore activities of a certain type if
needed. If this method returns false, the dialog will end the
turn without processing the activity.
반환:
repromptDialog
public CompletableFuture
기술 대화 상자가 사용자에게 입력하라는 메시지를 다시 표시해야 할 때 호출됩니다.
재정의:
SkillDialog.repromptDialog(TurnContext turnContext, DialogInstance instance)매개 변수:
반환:
resumeDialog
public CompletableFuture
자식 기술 대화 상자가 턴을 완료하고 컨트롤을 이 대화 상자로 반환할 때 호출됩니다.
재정의:
SkillDialog.resumeDialog(DialogContext dc, DialogReason reason, Object result)매개 변수:
반환: