CardImage 類別

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

public class CardImage

卡片上的影像。

建構函式摘要

建構函式 Description
CardImage()

建立新的卡片映像。

CardImage(String withUrl)

使用初始 URL 建立新的卡片映像。

方法摘要

修飾詞與類型 方法與描述
java.lang.String getAlt()

取得alt值。

CardAction getTap()

取得點選值。

java.lang.String getUrl()

取得 URL 值。

void setAlt(String withAlt)

設定alt值。

void setTap(CardAction withTap)

設定點選值。

void setUrl(String withUrl)

設定 URL 值。

方法繼承來源 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

建構函式詳細資料

CardImage

public CardImage()

建立新的 CardImage。

CardImage

public CardImage(String withUrl)

使用初始 URL 建立新的 CardImage。

參數:

withUrl - 影像的 URL。

方法詳細資料

getAlt

public String getAlt()

取得alt值。

傳回:

alt 值

getTap

public CardAction getTap()

取得點選值。

傳回:

點選值

getUrl

public String getUrl()

取得 URL 值。

傳回:

URL 值

setAlt

public void setAlt(String withAlt)

設定alt值。

參數:

withAlt - 要設定的alt值

setTap

public void setTap(CardAction withTap)

設定點選值。

參數:

withTap - 要設定的點選值

setUrl

public void setUrl(String withUrl)

設定 URL 值。

參數:

withUrl - 要設定的 URL 值

適用於