SigninCard 类

  • java.lang.Object
    • com.microsoft.bot.schema.SigninCard

public class SigninCard

表示登录请求的卡片。

字段摘要

修饰符和类型 字段和描述
static final java.lang.String CONTENTTYPE

构造函数摘要

构造函数 说明
SigninCard()

方法摘要

修饰符和类型 方法和描述
java.util.List<CardAction> getButtons()

获取按钮值。

java.lang.String getText()

获取文本值。

void setButtons(CardAction[] withButtons)

设置按钮值。

void setButtons(List<CardAction> withButtons)

设置按钮值。

void setText(String withText)

设置文本值。

Attachment toAttachment()

为此卡创建 @{link Attachment} 。

方法继承自 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

字段详细信息

CONTENTTYPE

public static final String CONTENTTYPE

构造函数详细信息

SigninCard

public SigninCard()

方法详细信息

getButtons

public List getButtons()

获取按钮值。

返回:

按钮值

getText

public String getText()

获取文本值。

返回:

文本值

setButtons

public void setButtons(CardAction[] withButtons)

设置按钮值。

参数:

withButtons - 要设置的按钮值

setButtons

public void setButtons(List withButtons)

设置按钮值。

参数:

withButtons - 要设置的按钮值

setText

public void setText(String withText)

设置文本值。

参数:

withText - 要设置的文本值

toAttachment

public Attachment toAttachment()

为此卡创建 @{link Attachment} 。

返回:

包含卡片的 Attachment 对象。

适用于