VideoCard Class
- java.
lang. Object - com.
microsoft. bot. schema. VideoCard
- com.
public class VideoCard
Video card.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final java.lang.String | CONTENTTYPE |
Constructor Summary
| Constructor | Description | |
|---|---|---|
| VideoCard() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getAspect()
Aspect ratio of thumbnail/media placeholder, allowed values are "16:9" and "4:3". |
| boolean |
getAutoloop()
Should the client loop playback at end of content. |
| boolean |
getAutostart()
Should the client automatically start playback of media in this card. |
|
java.util.List<Card |
getButtons()
Get the buttons value. |
| java.lang.String |
getDuration()
Gets the duration value. |
|
Thumbnail |
getImage()
Get the image value. |
|
java.util.List<Media |
getMedia()
Media URLs for this card. |
| boolean |
getShareable()
Get the shareable value. |
| java.lang.String |
getSubtitle()
Get the subtitle value. |
| java.lang.String |
getText()
Get the text value. |
| java.lang.String |
getTitle()
Get the title value. |
| java.lang.Object |
getValue()
Get the value value. |
| void |
setAspect(String withAspect)
Aspect ratio of thumbnail/media placeholder, allowed values are "16:9" and "4:3". |
| void |
setAutoloop(boolean withAutoloop)
Should the client loop playback at end of content. |
| void |
setAutostart(boolean withAutostart)
Should the client automatically start playback of media in this card. |
| void |
setButtons(CardAction[] withButtons)
Set the buttons value. |
| void |
setButtons(List<CardAction> withButtons)
Set the buttons value. |
| void |
setDuration(String withDuration)
Sets the duration value. |
| void |
setImage(ThumbnailUrl withImage)
Set the image value. |
| void |
setMedia(MediaUrl[] withMedia)
Media URLs for this card. |
| void |
setMedia(List<MediaUrl> withMedia)
Media URLs for this card. |
| void |
setShareable(boolean withShareable)
Set the shareable value. |
| void |
setSubtitle(String withSubtitle)
Set the subtitle value. |
| void |
setText(String withText)
Set the text value. |
| void |
setTitle(String withTitle)
Set the title value. |
| void |
setValue(Object withValue)
Set the value value. |
| Attachment |
toAttachment()
Creates an @{link Attachment} for this card. |
Methods inherited from java.lang.Object
Field Details
CONTENTTYPE
public static final String CONTENTTYPE
Constructor Details
VideoCard
public VideoCard()
Method Details
getAspect
public String getAspect()
Aspect ratio of thumbnail/media placeholder, allowed values are "16:9" and "4:3".
Returns:
getAutoloop
public boolean getAutoloop()
Should the client loop playback at end of content.
Returns:
getAutostart
public boolean getAutostart()
Should the client automatically start playback of media in this card.
Returns:
getButtons
public List
Get the buttons value.
Returns:
getDuration
public String getDuration()
Gets the duration value.
Returns:
getImage
public ThumbnailUrl getImage()
Get the image value.
Returns:
getMedia
public List
Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.
Returns:
getShareable
public boolean getShareable()
Get the shareable value.
Returns:
getSubtitle
public String getSubtitle()
Get the subtitle value.
Returns:
getText
public String getText()
Get the text value.
Returns:
getTitle
public String getTitle()
Get the title value.
Returns:
getValue
public Object getValue()
Get the value value.
Returns:
setAspect
public void setAspect(String withAspect)
Aspect ratio of thumbnail/media placeholder, allowed values are "16:9" and "4:3".
Parameters:
setAutoloop
public void setAutoloop(boolean withAutoloop)
Should the client loop playback at end of content.
Parameters:
setAutostart
public void setAutostart(boolean withAutostart)
Should the client automatically start playback of media in this card.
Parameters:
setButtons
public void setButtons(CardAction[] withButtons)
Set the buttons value.
Parameters:
setButtons
public void setButtons(List
Set the buttons value.
Parameters:
setDuration
public void setDuration(String withDuration)
Sets the duration value.
Parameters:
setImage
public void setImage(ThumbnailUrl withImage)
Set the image value.
Parameters:
setMedia
public void setMedia(MediaUrl[] withMedia)
Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.
Parameters:
setMedia
public void setMedia(List
Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.
Parameters:
setShareable
public void setShareable(boolean withShareable)
Set the shareable value.
Parameters:
setSubtitle
public void setSubtitle(String withSubtitle)
Set the subtitle value.
Parameters:
setText
public void setText(String withText)
Set the text value.
Parameters:
setTitle
public void setTitle(String withTitle)
Set the title value.
Parameters:
setValue
public void setValue(Object withValue)
Set the value value.
Parameters:
toAttachment
public Attachment toAttachment()
Creates an @{link Attachment} for this card.
Returns: