CardAction Class
- java.
lang. Object - com.
microsoft. bot. schema. CardAction
- com.
public class CardAction
A clickable action.
Constructor Summary
| Constructor | Description |
|---|---|
| CardAction() |
Default empty Card |
| CardAction(ActionTypes withType, String withTitle) |
Creation of Card |
| CardAction(ActionTypes withType, String withTitle, String withValue) |
Creation of Card |
| CardAction(String withInput) |
Creation of Card |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Card |
clone(CardAction cardAction)
Perform a deep copy of a Card |
| java.lang.Object |
getChannelData()
Gets the channel |
| java.lang.String |
getDisplayText()
Get the display |
| java.lang.String |
getImage()
Get the image value. |
| java.lang.String |
getImageAltText()
Get the image alternate text value. |
| java.lang.String |
getText()
Get the text value. |
| java.lang.String |
getTitle()
Get the title value. |
|
Action |
getType()
Get the type value. |
| java.lang.Object |
getValue()
Get the value value. |
| void |
setChannelData(Object withChannelData)
Sets the channel |
| void |
setDisplayText(String withDisplayText)
Set the display |
| void |
setImage(String withImage)
Set the image value. |
| void |
setImageAltText(String withImageAltText)
Set the image alternate text value. |
| void |
setText(String withText)
Set the text value. |
| void |
setTitle(String withTitle)
Set the title value. |
| void |
setType(ActionTypes withType)
Set the type value. |
| void |
setValue(Object withValue)
Set the value value. |
Methods inherited from java.lang.Object
Constructor Details
CardAction
public CardAction()
Default empty CardAction.
CardAction
public CardAction(ActionTypes withType, String withTitle)
Creation of CardAction with type and title.
Parameters:
CardAction
public CardAction(ActionTypes withType, String withTitle, String withValue)
Creation of CardAction with type and title.
Parameters:
CardAction
public CardAction(String withInput)
Creation of CardAction with string values.
Parameters:
Method Details
clone
public static CardAction clone(CardAction cardAction)
Perform a deep copy of a CardAction.
Parameters:
Returns:
getChannelData
public Object getChannelData()
Gets the channelData value.
Returns:
getDisplayText
public String getDisplayText()
Get the displayText value.
Returns:
getImage
public String getImage()
Get the image value.
Returns:
getImageAltText
public String getImageAltText()
Get the image alternate text value.
Returns:
getText
public String getText()
Get the text value.
Returns:
getTitle
public String getTitle()
Get the title value.
Returns:
getType
public ActionTypes getType()
Get the type value.
Returns:
getValue
public Object getValue()
Get the value value.
Returns:
setChannelData
public void setChannelData(Object withChannelData)
Sets the channelData value.
Parameters:
setDisplayText
public void setDisplayText(String withDisplayText)
Set the displayText value.
Parameters:
setImage
public void setImage(String withImage)
Set the image value.
Parameters:
setImageAltText
public void setImageAltText(String withImageAltText)
Set the image alternate text value.
Parameters:
setText
public void setText(String withText)
Set the text value.
Parameters:
setTitle
public void setTitle(String withTitle)
Set the title value.
Parameters:
setType
public void setType(ActionTypes withType)
Set the type value.
Parameters:
setValue
public void setValue(Object withValue)
Set the value value.
Parameters: