CardAction 类

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

public class CardAction

可单击的操作。

构造函数摘要

构造函数 说明
CardAction()

默认为空卡片操作。

CardAction(ActionTypes withType, String withTitle)

创建具有类型和标题的卡片操作。

CardAction(ActionTypes withType, String withTitle, String withValue)

创建具有类型和标题的卡片操作。

CardAction(String withInput)

使用字符串值创建卡片操作。

方法摘要

修饰符和类型 方法和描述
static CardAction clone(CardAction cardAction)

执行卡片操作的深层复制。

java.lang.Object getChannelData()

获取通道数据值。

java.lang.String getDisplayText()

获取显示文本值。

java.lang.String getImage()

获取图像值。

java.lang.String getImageAltText()

获取图像备用文本值。

java.lang.String getText()

获取文本值。

java.lang.String getTitle()

获取标题值。

ActionTypes getType()

获取类型值。

java.lang.Object getValue()

获取值。

void setChannelData(Object withChannelData)

设置通道数据值。

void setDisplayText(String withDisplayText)

设置显示文本值。

void setImage(String withImage)

设置图像值。

void setImageAltText(String withImageAltText)

设置图像备用文本值。

void setText(String withText)

设置文本值。

void setTitle(String withTitle)

设置标题值。

void setType(ActionTypes withType)

设置类型值。

void setValue(Object withValue)

设置值。

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

构造函数详细信息

CardAction

public CardAction()

默认为空的 CardAction。

CardAction

public CardAction(ActionTypes withType, String withTitle)

创建具有类型和标题的 CardAction。

Parameters:

withType - 要设置的类型值。
withTitle - 要设置的标题值。

CardAction

public CardAction(ActionTypes withType, String withTitle, String withValue)

创建具有类型和标题的 CardAction。

Parameters:

withType - 要设置的类型值。
withTitle - 要设置的标题值。
withValue - Title 和 Value 的值。

CardAction

public CardAction(String withInput)

使用字符串值创建 CardAction。

Parameters:

withInput - Title 和 Value 的值。

方法详细信息

clone

public static CardAction clone(CardAction cardAction)

执行 CardAction 的深层复制。

Parameters:

cardAction - 要克隆的 CardAction。

Returns:

CardAction 的克隆副本。

getChannelData

public Object getChannelData()

获取 channelData 值。

Returns:

ChannelData 作为 JsonNode。

getDisplayText

public String getDisplayText()

获取 displayText 值。

Returns:

displayText 值

getImage

public String getImage()

获取图像值。

Returns:

图像值

getImageAltText

public String getImageAltText()

获取图像备用文本值。

Returns:

文本值

getText

public String getText()

获取文本值。

Returns:

文本值

getTitle

public String getTitle()

获取标题值。

Returns:

游戏值

getType

public ActionTypes getType()

获取类型值。

Returns:

类型值

getValue

public Object getValue()

获取值。

Returns:

setChannelData

public void setChannelData(Object withChannelData)

设置 channelData 值。

Parameters:

withChannelData - 要设置的 channelData 对象。

setDisplayText

public void setDisplayText(String withDisplayText)

设置 displayText 值。

Parameters:

withDisplayText - 要设置的 displayText 值

setImage

public void setImage(String withImage)

设置图像值。

Parameters:

withImage - 要设置的图像值

setImageAltText

public void setImageAltText(String withImageAltText)

设置图像备用文本值。

Parameters:

withImageAltText - 要设置的文本值

setText

public void setText(String withText)

设置文本值。

Parameters:

withText - 要设置的文本值

setTitle

public void setTitle(String withTitle)

设置标题值。

Parameters:

withTitle - 要设置的标题值

setType

public void setType(ActionTypes withType)

设置类型值。

Parameters:

withType - 要设置的类型值

setValue

public void setValue(Object withValue)

设置值。

Parameters:

withValue - 要设置的值值

适用于