OAuthCard Class

  • java.lang.Object
    • com.microsoft.bot.schema.OAuthCard

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<CardAction> getButtons()

Get the buttons value.

java.lang.String getConnectionName()

Get the connectionName value.

java.lang.String getText()

Get the text value.

TokenExchangeResource 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 connectionName value.

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

CONTENTTYPE

public static final String CONTENTTYPE

Constructor Details

OAuthCard

public OAuthCard()

Method Details

getButtons

public List getButtons()

Get the buttons value.

Returns:

the buttons value

getConnectionName

public String getConnectionName()

Get the connectionName value.

Returns:

the connectionName value

getText

public String getText()

Get the text value.

Returns:

the text value

getTokenExchangeResource

public TokenExchangeResource getTokenExchangeResource()

Gets the resource to try to perform token exchange with.

Returns:

The tokenExchangeResource value.

setButtons

public void setButtons(CardAction[] withButtons)

Set the buttons value.

Parameters:

withButtons - the buttons value to set

setButtons

public void setButtons(List withButtons)

Set the buttons value.

Parameters:

withButtons - the buttons value to set

setConnectionName

public void setConnectionName(String withConnectionName)

Set the connectionName value.

Parameters:

withConnectionName - the connectionName value to set

setText

public void setText(String withText)

Set the text value.

Parameters:

withText - the text value to set

setTokenExchangeResource

public void setTokenExchangeResource(TokenExchangeResource withExchangeResource)

Sets the resource to try to perform token exchange with.

Parameters:

withExchangeResource - The tokenExchangeResource value.

toAttachment

public Attachment toAttachment()

Creates an @{link Attachment} for this card.

Returns:

An Attachment object containing the card.

Applies to