AnimationCard 类
- java.
lang. Object - com.
microsoft. bot. schema. AnimationCard
- com.
public class AnimationCard
动画卡(例如 gif 或短视频剪辑)。
字段摘要
| 修饰符和类型 | 字段和描述 |
|---|---|
| static final java.lang.String | CONTENTTYPE |
构造函数摘要
| 构造函数 | 说明 | |
|---|---|---|
| AnimationCard() | ||
方法摘要
方法继承自 java.lang.Object
字段详细信息
CONTENTTYPE
public static final String CONTENTTYPE
构造函数详细信息
AnimationCard
public AnimationCard()
方法详细信息
getAspect
public String getAspect()
获取方面值。
返回:
getAutoloop
public boolean getAutoloop()
获取 autoloop 值。
返回:
getAutostart
public boolean getAutostart()
获取自动启动值。
返回:
getButtons
public List
获取按钮值。
返回:
getDuration
public String getDuration()
获取持续时间值。
返回:
getImage
public ThumbnailUrl getImage()
获取图像值。
返回:
getMedia
public List
获取媒体值。
返回:
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)
设置方面值。
参数:
setAutoloop
public void setAutoloop(boolean withAutoloop)
设置 autoloop 值。
参数:
setAutostart
public void setAutostart(boolean withAutostart)
设置自动启动值。
参数:
setButtons
public void setButtons(CardAction[] withButtons)
设置按钮值。
参数:
setButtons
public void setButtons(List
设置按钮值。
参数:
setDuration
public void setDuration(String withDuration)
设置持续时间值。
参数:
setImage
public void setImage(ThumbnailUrl withImage)
设置图像值。
参数:
setMedia
public void setMedia(MediaUrl[] withMedia)
设置媒体值。
参数:
setMedia
public void setMedia(List
设置媒体值。
参数:
setShareable
public void setShareable(boolean withShareable)
设置可共享值。
参数:
setSubtitle
public void setSubtitle(String withSubtitle)
设置副标题值。
参数:
setText
public void setText(String withText)
设置文本值。
参数:
setTitle
public void setTitle(String withTitle)
设置标题值。
参数:
setValue
public void setValue(Object withValue)
设置值。
参数:
toAttachment
public Attachment toAttachment()
为此卡创建 @{link Attachment} 。
返回: