VideoCard 类

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

public class VideoCard

视频卡。

字段摘要

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

构造函数摘要

构造函数 说明
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 对象。

适用于