OAuthCard Class
- java.
lang. Object - com.
microsoft. bot. schema. OAuthCard
- com.
public class OAuthCard
A card representing a request to peform a sign in via OAuth.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final java.lang.String | CONTENTTYPE |
Constructor Summary
| Constructor | Description | |
|---|---|---|
| OAuthCard() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
java.util.List<Card |
getButtons()
Get the buttons value. |
| java.lang.String |
getConnectionName()
Get the connection |
| java.lang.String |
getText()
Get the text value. |
|
Token |
getTokenExchangeResource()
Gets the resource to try to perform token exchange with. |
| void |
setButtons(CardAction[] withButtons)
Set the buttons value. |
| void |
setButtons(List<CardAction> withButtons)
Set the buttons value. |
| void |
setConnectionName(String withConnectionName)
Set the connection |
| void |
setText(String withText)
Set the text value. |
| void |
setTokenExchangeResource(TokenExchangeResource withExchangeResource)
Sets the resource to try to perform token exchange with. |
| 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
OAuthCard
public OAuthCard()
Method Details
getButtons
public List
Get the buttons value.
Returns:
getConnectionName
public String getConnectionName()
Get the connectionName value.
Returns:
getText
public String getText()
Get the text value.
Returns:
getTokenExchangeResource
public TokenExchangeResource getTokenExchangeResource()
Gets the resource to try to perform token exchange with.
Returns:
setButtons
public void setButtons(CardAction[] withButtons)
Set the buttons value.
Parameters:
setButtons
public void setButtons(List
Set the buttons value.
Parameters:
setConnectionName
public void setConnectionName(String withConnectionName)
Set the connectionName value.
Parameters:
setText
public void setText(String withText)
Set the text value.
Parameters:
setTokenExchangeResource
public void setTokenExchangeResource(TokenExchangeResource withExchangeResource)
Sets the resource to try to perform token exchange with.
Parameters:
toAttachment
public Attachment toAttachment()
Creates an @{link Attachment} for this card.
Returns: