CardAction 類別

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

public class CardAction

可點選的動作。

建構函式摘要

建構函式 Description
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()

取得顯示Text 值。

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)

設定顯示Text 值。

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。

參數:

withType - 要設定的型別值。
withTitle - 要設定的標題值。

CardAction

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

建立具有類型和標題的 CardAction。

參數:

withType - 要設定的型別值。
withTitle - 要設定的標題值。
withValue - Title 和 Value 的值。

CardAction

public CardAction(String withInput)

使用字串值建立 CardAction。

參數:

withInput - Title 和 Value 的值。

方法詳細資料

clone

public static CardAction clone(CardAction cardAction)

執行 CardAction 的深層複本。

參數:

cardAction - 要複製的 CardAction。

傳回:

CardAction 的複製複本。

getChannelData

public Object getChannelData()

取得 channelData 值。

傳回:

ChannelData 做為 JsonNode。

getDisplayText

public String getDisplayText()

取得 displayText 值。

傳回:

displayText 值

getImage

public String getImage()

取得影像值。

傳回:

影像值

getImageAltText

public String getImageAltText()

取得影像替代文字值。

傳回:

文字值

getText

public String getText()

取得文字值。

傳回:

文字值

getTitle

public String getTitle()

取得標題值。

傳回:

標題值

getType

public ActionTypes getType()

取得類型值。

傳回:

型別值

getValue

public Object getValue()

取得值。

傳回:

setChannelData

public void setChannelData(Object withChannelData)

設定 channelData 值。

參數:

withChannelData - 要設定的 channelData 物件。

setDisplayText

public void setDisplayText(String withDisplayText)

設定 displayText 值。

參數:

withDisplayText - 要設定的 displayText 值

setImage

public void setImage(String withImage)

設定影像值。

參數:

withImage - 要設定的影像值

setImageAltText

public void setImageAltText(String withImageAltText)

設定影像替代文字值。

參數:

withImageAltText - 要設定的文字值

setText

public void setText(String withText)

設定文字值。

參數:

withText - 要設定的文字值

setTitle

public void setTitle(String withTitle)

設定標題值。

參數:

withTitle - 要設定的標題值

setType

public void setType(ActionTypes withType)

設定類型值。

參數:

withType - 要設定的型別值

setValue

public void setValue(Object withValue)

設定值。

參數:

withValue - 要設定的值

適用於