AnimationCard 类

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

public class AnimationCard

动画卡 (Ex:gif 或短视频剪辑) 。

字段摘要

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

构造函数摘要

构造函数 说明
AnimationCard()

方法摘要

修饰符和类型 方法和描述
java.lang.String getAspect()

获取纵横值。

boolean getAutoloop()

获取 autoloop 值。

boolean getAutostart()

获取自动启动值。

java.util.List<CardAction> getButtons()

获取按钮值。

java.lang.String getDuration()

获取持续时间值。

ThumbnailUrl getImage()

获取图像值。

java.util.List<MediaUrl> getMedia()

获取媒体值。

boolean getShareable()

获取可共享值。

java.lang.String getSubtitle()

获取副标题值。

java.lang.String getText()

获取文本值。

java.lang.String getTitle()

获取标题值。

java.lang.Object getValue()

获取值。

void setAspect(String withAspect)

设置纵横值。

void setAutoloop(boolean withAutoloop)

设置 autoloop 值。

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)

设置媒体值。

void setMedia(List<MediaUrl> withMedia)

设置媒体值。

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

构造函数详细信息

AnimationCard

public AnimationCard()

方法详细信息

getAspect

public String getAspect()

获取纵横值。

Returns:

方面值

getAutoloop

public boolean getAutoloop()

获取 autoloop 值。

Returns:

autoloop 值

getAutostart

public boolean getAutostart()

获取自动启动值。

Returns:

自动启动值

getButtons

public List getButtons()

获取按钮值。

Returns:

按钮值

getDuration

public String getDuration()

获取持续时间值。

Returns:

动画持续时间。

getImage

public ThumbnailUrl getImage()

获取图像值。

Returns:

图像值

getMedia

public List getMedia()

获取媒体值。

Returns:

媒体值

getShareable

public boolean getShareable()

获取可共享值。

Returns:

可共享值

getSubtitle

public String getSubtitle()

获取副标题值。

Returns:

副标题值

getText

public String getText()

获取文本值。

Returns:

文本值

getTitle

public String getTitle()

获取标题值。

Returns:

游戏值

getValue

public Object getValue()

获取值。

Returns:

setAspect

public void setAspect(String withAspect)

设置纵横值。

Parameters:

withAspect - 要设置的方面值

setAutoloop

public void setAutoloop(boolean withAutoloop)

设置 autoloop 值。

Parameters:

withAutoloop - 要设置的 autoloop 值

setAutostart

public void setAutostart(boolean withAutostart)

设置自动启动值。

Parameters:

withAutostart - 要设置的自动启动值

setButtons

public void setButtons(CardAction[] withButtons)

设置按钮值。

Parameters:

withButtons - 要设置的按钮值

setButtons

public void setButtons(List withButtons)

设置按钮值。

Parameters:

withButtons - 要设置的按钮值

setDuration

public void setDuration(String withDuration)

设置持续时间值。

Parameters:

withDuration - 要设置的持续时间值

setImage

public void setImage(ThumbnailUrl withImage)

设置图像值。

Parameters:

withImage - 要设置的图像值

setMedia

public void setMedia(MediaUrl[] withMedia)

设置媒体值。

Parameters:

withMedia - 要设置的媒体值

setMedia

public void setMedia(List withMedia)

设置媒体值。

Parameters:

withMedia - 要设置的媒体值

setShareable

public void setShareable(boolean withShareable)

设置可共享值。

Parameters:

withShareable - 要设置的可共享值

setSubtitle

public void setSubtitle(String withSubtitle)

设置副标题值。

Parameters:

withSubtitle - 要设置的副标题值

setText

public void setText(String withText)

设置文本值。

Parameters:

withText - 要设置的文本值

setTitle

public void setTitle(String withTitle)

设置标题值。

Parameters:

withTitle - 要设置的标题值

setValue

public void setValue(Object withValue)

设置值。

Parameters:

withValue - 要设置的值值

toAttachment

public Attachment toAttachment()

为此卡创建 @{link Attachment}。

Returns:

包含卡片的 Attachment 对象。

适用于