VideoCard 類別

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

public class VideoCard

視訊卡。

欄位摘要

修飾詞與類型 欄位與描述
static final java.lang.String CONTENTTYPE

建構函式摘要

建構函式 Description
VideoCard()

方法摘要

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

縮圖/媒體佔位元的外觀比例,允許的值是 “16:9” 和 “4:3”。

boolean getAutoloop()

用戶端應該在內容結束時迴圈播放。

boolean getAutostart()

如果用戶端在此卡片中自動開始播放媒體。

java.util.List<CardAction> getButtons()

取得按鈕值。

java.lang.String getDuration()

取得持續時間值。

ThumbnailUrl getImage()

取得影像值。

java.util.List<MediaUrl> getMedia()

此卡片的媒體 URL。

boolean getShareable()

取得可共用的值。

java.lang.String getSubtitle()

取得副標題值。

java.lang.String getText()

取得文字值。

java.lang.String getTitle()

取得標題值。

java.lang.Object getValue()

取得值。

void setAspect(String withAspect)

縮圖/媒體佔位元的外觀比例,允許的值是 “16:9” 和 “4:3”。

void setAutoloop(boolean withAutoloop)

用戶端應該在內容結束時迴圈播放。

void setAutostart(boolean withAutostart)

如果用戶端在此卡片中自動開始播放媒體。

void setButtons(CardAction[] withButtons)

設定按鈕值。

void setButtons(List<CardAction> withButtons)

設定按鈕值。

void setDuration(String withDuration)

設定持續時間值。

void setImage(ThumbnailUrl withImage)

設定影像值。

void setMedia(MediaUrl[] withMedia)

此卡片的媒體 URL。

void setMedia(List<MediaUrl> withMedia)

此卡片的媒體 URL。

void setShareable(boolean withShareable)

設定可共用的值。

void setSubtitle(String withSubtitle)

設定副標題值。

void setText(String withText)

設定文字值。

void setTitle(String withTitle)

設定標題值。

void setValue(Object withValue)

設定值。

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

建構函式詳細資料

VideoCard

public VideoCard()

方法詳細資料

getAspect

public String getAspect()

縮圖/媒體佔位元的外觀比例,允許的值是 “16:9” 和 “4:3”。

傳回:

外觀值

getAutoloop

public boolean getAutoloop()

用戶端應該在內容結束時迴圈播放。

傳回:

autoloop 值

getAutostart

public boolean getAutostart()

如果用戶端在此卡片中自動開始播放媒體。

傳回:

自動啟動值

getButtons

public List getButtons()

取得按鈕值。

傳回:

按鈕值

getDuration

public String getDuration()

取得持續時間值。

傳回:

影片的持續時間。

getImage

public ThumbnailUrl getImage()

取得影像值。

傳回:

影像值

getMedia

public List getMedia()

此卡片的媒體 URL。 當此欄位包含多個 URL 時,每個 URL 都是相同內容的替代格式。

傳回:

媒體值

getShareable

public boolean getShareable()

取得可共用的值。

傳回:

可共用值

getSubtitle

public String getSubtitle()

取得副標題值。

傳回:

子標題值

getText

public String getText()

取得文字值。

傳回:

文字值

getTitle

public String getTitle()

取得標題值。

傳回:

標題值

getValue

public Object getValue()

取得值。

傳回:

setAspect

public void setAspect(String withAspect)

縮圖/媒體佔位元的外觀比例,允許的值是 “16:9” 和 “4:3”。

參數:

withAspect - 要設定的層面值

setAutoloop

public void setAutoloop(boolean withAutoloop)

用戶端應該在內容結束時迴圈播放。

參數:

withAutoloop - 要設定的 autoloop 值

setAutostart

public void setAutostart(boolean withAutostart)

如果用戶端在此卡片中自動開始播放媒體。

參數:

withAutostart - 要設定的自動啟動值

setButtons

public void setButtons(CardAction[] withButtons)

設定按鈕值。

參數:

withButtons - 要設定的按鈕值

setButtons

public void setButtons(List withButtons)

設定按鈕值。

參數:

withButtons - 要設定的按鈕值

setDuration

public void setDuration(String withDuration)

設定持續時間值。

參數:

withDuration - 要設定的持續時間值

setImage

public void setImage(ThumbnailUrl withImage)

設定影像值。

參數:

withImage - 要設定的影像值

setMedia

public void setMedia(MediaUrl[] withMedia)

此卡片的媒體 URL。 當此欄位包含多個 URL 時,每個 URL 都是相同內容的替代格式。

參數:

withMedia - 要設定的媒體值

setMedia

public void setMedia(List withMedia)

此卡片的媒體 URL。 當此欄位包含多個 URL 時,每個 URL 都是相同內容的替代格式。

參數:

withMedia - 要設定的媒體值

setShareable

public void setShareable(boolean withShareable)

設定可共用的值。

參數:

withShareable - 要設定的可共用值

setSubtitle

public void setSubtitle(String withSubtitle)

設定副標題值。

參數:

withSubtitle - 要設定的副標題值

setText

public void setText(String withText)

設定文字值。

參數:

withText - 要設定的文字值

setTitle

public void setTitle(String withTitle)

設定標題值。

參數:

withTitle - 要設定的標題值

setValue

public void setValue(Object withValue)

設定值。

參數:

withValue - 要設定的值

toAttachment

public Attachment toAttachment()

為此卡片建立 @{link Attachment} 。

傳回:

包含卡片的 Attachment 物件。

適用於