HeroCard 类

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

public class HeroCard

主图卡 (具有单个大图像的卡) 。

字段摘要

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

构造函数摘要

构造函数 说明
HeroCard()

方法摘要

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

获取按钮值。

java.util.List<CardImage> getImages()

获取图像值。

java.lang.String getSubtitle()

获取副标题值。

CardAction getTap()

获取点击值。

java.lang.String getText()

获取文本值。

java.lang.String getTitle()

获取标题值。

void setButtons(CardAction[] withButtons)

设置按钮值。

void setButtons(List<CardAction> withButtons)

设置按钮值。

void setImages(CardImage[] withImages)

设置图像值。

void setImages(List<CardImage> withImages)

设置图像值。

void setSubtitle(String withSubtitle)

设置副标题值。

void setTap(CardAction withTap)

设置点击值。

void setText(String withText)

设置文本值。

void setTitle(String withTitle)

设置标题值。

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

构造函数详细信息

HeroCard

public HeroCard()

方法详细信息

getButtons

public List getButtons()

获取按钮值。

Returns:

按钮值

getImages

public List getImages()

获取图像值。

Returns:

图像值

getSubtitle

public String getSubtitle()

获取副标题值。

Returns:

副标题值

getTap

public CardAction getTap()

获取点击值。

Returns:

点击值

getText

public String getText()

获取文本值。

Returns:

文本值

getTitle

public String getTitle()

获取标题值。

Returns:

游戏值

setButtons

public void setButtons(CardAction[] withButtons)

设置按钮值。

Parameters:

withButtons - 要设置的按钮值

setButtons

public void setButtons(List withButtons)

设置按钮值。

Parameters:

withButtons - 要设置的按钮值

setImages

public void setImages(CardImage[] withImages)

设置图像值。

Parameters:

withImages - 要设置的图像值

setImages

public void setImages(List withImages)

设置图像值。

Parameters:

withImages - 要设置的图像值

setSubtitle

public void setSubtitle(String withSubtitle)

设置副标题值。

Parameters:

withSubtitle - 要设置的副标题值

setTap

public void setTap(CardAction withTap)

设置点击值。

Parameters:

withTap - 要设置的点击值

setText

public void setText(String withText)

设置文本值。

Parameters:

withText - 要设置的文本值

setTitle

public void setTitle(String withTitle)

设置标题值。

Parameters:

withTitle - 要设置的标题值

toAttachment

public Attachment toAttachment()

为此卡创建 @{link Attachment}。

Returns:

包含卡片的 Attachment 对象。

适用于