PromptOptions 类
- java.
lang. Object - com.
microsoft. bot. dialogs. prompts. PromptOptions
- com.
public class PromptOptions
包含要传递给 {@link com.} 的设置。 启动提示时。
构造函数摘要
| 构造函数 | 说明 | |
|---|---|---|
| PromptOptions() | ||
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
| java.util.List<Choice> | getChoices() |
| Activity | getPrompt() |
| Activity | getRetryPrompt() |
|
List |
getStyle() |
| java.lang.Object | getValidations() |
| void | setChoices(List<Choice> withChoices) |
| void | setPrompt(Activity withPrompt) |
| void | setRetryPrompt(Activity withRetryPrompt) |
| void | setStyle(ListStyle withStyle) |
| void | setValidations(Object withValidations) |
方法继承自 java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
构造函数详细信息
PromptOptions
public PromptOptions()
方法详细信息
getChoices
public List
返回:
列表
getPrompt
public Activity getPrompt()
返回:
活动
getRetryPrompt
public Activity getRetryPrompt()
返回:
活动
getStyle
public ListStyle getStyle()
返回:
ListStyle
getValidations
public Object getValidations()
返回:
对象
setChoices
public void setChoices(List
参数:
withChoices
- 要将“选项”属性设置为的值
setPrompt
public void setPrompt(Activity withPrompt)
参数:
withPrompt
- 要将 Prompt 属性设置为 的值
setRetryPrompt
public void setRetryPrompt(Activity withRetryPrompt)
参数:
withRetryPrompt
- 要将 Retry 属性设置为 的值
setStyle
public void setStyle(ListStyle withStyle)
参数:
withStyle
- 要设置 Style 属性的值
setValidations
public void setValidations(Object withValidations)
参数:
withValidations
- 将 Validations 属性设置为 的值