DialogSet 클래스
- java.
lang. Object - com.
microsoft. bot. dialogs. DialogSet
- com.
public class DialogSet
모두 서로 호출할 수 있는 Dialog 개체의 컬렉션입니다.
생성자 요약
| 생성자 | Description |
|---|---|
| DialogSet() |
상태 없이 대화 |
| DialogSet(StatePropertyAccessor<DialogState> withDialogState) |
Dialog |
메서드 요약
| 한정자 및 형식 | 메서드 및 설명 |
|---|---|
|
Dialog |
add(Dialog dialog)
집합에 새 대화 상자를 추가하고 흐름 체인을 허용하도록 집합을 반환합니다. |
|
java.util.concurrent.CompletableFuture<Dialog |
createContext(TurnContext turnContext)
Dialog |
| Dialog |
find(String dialogId)
현재 대화 |
| java.util.Collection<Dialog> |
getDialogs()
이 Dialog |
|
Bot |
getTelemetryClient()
로깅에 사용할 봇 |
| java.lang.String |
getVersion()
이 대화 상자 집합에 있는 모든 대화 상자의 결합된 버전을 나타내는 고유 문자열을 가져옵니다. |
| void |
setTelemetryClient(BotTelemetryClient withBotTelemetryClient)
로깅에 사용할 봇 |
다음에서 상속된 메서드 java.lang.Object
생성자 세부 정보
DialogSet
public DialogSet()
상태 없이 DialogSet을 만듭니다.
DialogSet
public DialogSet(StatePropertyAccessor
DialogSet 클래스의 새 인스턴스를 초기화합니다.
이 대화 상자 집합에서 대화 상자를 시작하고 제어하려면 DialogContext를 만들고 해당 메서드를 사용하여 대화 상자를 시작, 계속 또는 종료합니다. 대화 컨텍스트를 만들려면 createContext(TurnContext)를 호출합니다.
매개 변수:
메서드 세부 정보
add
public DialogSet add(Dialog dialog)
집합에 새 대화 상자를 추가하고 흐름 체인을 허용하도록 집합을 반환합니다. 추가되는 Dialog.Id 집합에 이미 있는 경우 대화 상자 ID는 고유한 접미사를 포함하도록 업데이트됩니다. 따라서 집합에 "중복"이라는 2개의 대화 상자를 추가하면 첫 번째 대화 상자에는 ID가 "중복"이고 두 번째 대화 상자는 ID가 "duplicate2"입니다.
매개 변수:
반환:
createContext
public CompletableFuture
DialogSet에서 대화 상자를 사용하는 데 사용할 수 있는 DialogContext를 만듭니다.
매개 변수:
반환:
find
public Dialog find(String dialogId)
현재 DialogSet에서 해당 ID로 대화 상자를 검색합니다.
매개 변수:
반환:
getDialogs
public Collection
getTelemetryClient
public BotTelemetryClient getTelemetryClient()
로깅에 사용할 BotTelemetryClient를 가져옵니다.
반환:
getVersion
public String getVersion()
이 대화 상자 집합에 있는 모든 대화 상자의 결합된 버전을 나타내는 고유 문자열을 가져옵니다.
반환:
setTelemetryClient
public void setTelemetryClient(BotTelemetryClient withBotTelemetryClient)
로깅에 사용할 BotTelemetryClient를 설정합니다.
이 속성이 설정되면 집합에 있는 각 대화 상자의 Dialog.TelemetryClient를 새 값으로 설정합니다.
매개 변수: