NumberPrompt<T> クラス
- java.
lang. Object - com.
microsoft. bot. dialogs. Dialog - com.
microsoft. bot. dialogs. prompts. Prompt<T> - com.
microsoft. bot. dialogs. prompts. NumberPrompt<T>
- com.
- com.
- com.
型パラメーター
- T
このプロンプトの数値型。int、long、double、または float を指定できます。
public class NumberPrompt
extends Prompt<T>
ユーザーに数値の入力を求めるメッセージを表示します。 現在、番号プロンプトでは、float、int、long、double、および decimal の種類がサポートされています。
コンストラクターの概要
| コンストラクター | 説明 |
|---|---|
| NumberPrompt(String dialogId, PromptValidator<T> validator, Class<T> classOfNumber) |
{@link Number |
| NumberPrompt(String dialogId, PromptValidator<T> validator, String defaultLocale, Class<T> classOfNumber) |
{@link Number |
| NumberPrompt(String dialogId, Class<T> classOfNumber) |
{@link Number |
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| java.lang.String |
getDefaultLocale()
プロンプトの言語固有の動作を決定するために使用される既定のロケールを取得します。 |
| protected java.util.concurrent.CompletableFuture<java.lang.Void> |
onPrompt(TurnContext turnContext, Map<String,Object> state, PromptOptions options, Boolean isRetry)
ユーザーに入力を求めます。 |
|
protected
java.util.concurrent.CompletableFuture<Prompt |
onRecognize(TurnContext turnContext, Map<String,Object> state, PromptOptions options)
ユーザーの入力を認識しようとします。 |
| void |
setDefaultLocale(String defaultLocale)
プロンプトの言語固有の動作を決定するために使用する既定のロケールを設定します。 |
メソッドの継承元: Dialog
メソッドの継承元: Prompt
メソッドの継承元: java.lang.Object
コンストラクターの詳細
NumberPrompt
public NumberPrompt(String dialogId, PromptValidator
{@link NumberPrompt{T}} クラスの新しいインスタンスを初期化します。
パラメーター:
スロー:
NumberPrompt
public NumberPrompt(String dialogId, PromptValidator
{@link NumberPrompt{T}} クラスの新しいインスタンスを初期化します。
パラメーター:
スロー:
NumberPrompt
public NumberPrompt(String dialogId, Class
{@link NumberPrompt{T}} クラスの新しいインスタンスを初期化します。
パラメーター:
スロー:
メソッドの詳細
getDefaultLocale
public String getDefaultLocale()
プロンプトの言語固有の動作を決定するために使用される既定のロケールを取得します。
戻り値:
onPrompt
protected CompletableFuture
ユーザーに入力を求めます。
上書き:
NumberPrompt<T>.onPrompt(TurnContext turnContext, Map<String,Object> state, PromptOptions options, Boolean isRetry)パラメーター:
戻り値:
onRecognize
protected CompletableFuture
ユーザーの入力を認識しようとします。
上書き:
NumberPrompt<T>.onRecognize(TurnContext turnContext, Map<String,Object> state, PromptOptions options)パラメーター:
戻り値:
If the task is successful, the result describes the result of the
recognition attempt.
setDefaultLocale
public void setDefaultLocale(String defaultLocale)
プロンプトの言語固有の動作を決定するために使用する既定のロケールを設定します。
パラメーター: