ThumbnailCard Class
- java.
lang. Object - com.
microsoft. bot. schema. ThumbnailCard
- com.
public class ThumbnailCard
A thumbnail card (card with a single, small thumbnail image).
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final java.lang.String | CONTENTTYPE |
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ThumbnailCard() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
java.util.List<Card |
getButtons()
Get the buttons value. |
|
java.util.List<Card |
getImages()
Get the images value. |
| java.lang.String |
getSubtitle()
Get the subtitle value. |
|
Card |
getTap()
Get the tap value. |
| java.lang.String |
getText()
Get the text value. |
| java.lang.String |
getTitle()
Get the title value. |
| void |
setButtons(CardAction[] withButtons)
Set the buttons value. |
| void |
setButtons(List<CardAction> withButtons)
Set the buttons value. |
| void |
setImage(CardImage image)
Sets the images list with a single image. |
| void |
setImages(CardImage[] withImages)
Set the images value. |
| void |
setImages(List<CardImage> withImages)
Set the images value. |
| void |
setSubtitle(String withSubtitle)
Set the subtitle value. |
| void |
setTap(CardAction withTap)
Set the tap value. |
| void |
setText(String withText)
Set the text value. |
| void |
setTitle(String withTitle)
Set the title 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
ThumbnailCard
public ThumbnailCard()
Method Details
getButtons
public List
Get the buttons value.
Returns:
getImages
public List
Get the images value.
Returns:
getSubtitle
public String getSubtitle()
Get the subtitle value.
Returns:
getTap
public CardAction getTap()
Get the tap value.
Returns:
getText
public String getText()
Get the text value.
Returns:
getTitle
public String getTitle()
Get the title value.
Returns:
setButtons
public void setButtons(CardAction[] withButtons)
Set the buttons value.
Parameters:
setButtons
public void setButtons(List
Set the buttons value.
Parameters:
setImage
public void setImage(CardImage image)
Sets the images list with a single image.
Parameters:
setImages
public void setImages(CardImage[] withImages)
Set the images value.
Parameters:
setImages
public void setImages(List
Set the images value.
Parameters:
setSubtitle
public void setSubtitle(String withSubtitle)
Set the subtitle value.
Parameters:
setTap
public void setTap(CardAction withTap)
Set the tap value.
Parameters:
setText
public void setText(String withText)
Set the text value.
Parameters:
setTitle
public void setTitle(String withTitle)
Set the title value.
Parameters:
toAttachment
public Attachment toAttachment()
Creates an @{link Attachment} for this card.
Returns: