OAuthCard Classe

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

public class OAuthCard

Scheda che rappresenta una richiesta per eseguire l'accesso tramite OAuth.

Riepilogo dei campi

Modificatore e tipo Campo e descrizione
static final java.lang.String CONTENTTYPE

Riepilogo dei costruttori

Costruttore Descrizione
OAuthCard()

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.util.List<CardAction> getButtons()

Ottenere il valore dei pulsanti.

java.lang.String getConnectionName()

Ottenere il valore nomeconnessione.

java.lang.String getText()

Ottenere il valore di testo.

TokenExchangeResource getTokenExchangeResource()

Ottiene la risorsa con cui provare a eseguire lo scambio di token.

void setButtons(CardAction[] withButtons)

Impostare il valore dei pulsanti.

void setButtons(List<CardAction> withButtons)

Impostare il valore dei pulsanti.

void setConnectionName(String withConnectionName)

Impostare il valore nomeconnessione.

void setText(String withText)

Impostare il valore di testo.

void setTokenExchangeResource(TokenExchangeResource withExchangeResource)

Imposta la risorsa con cui provare a eseguire lo scambio di token.

Attachment toAttachment()

Crea un oggetto @{link Attachment} per questa scheda.

Metodi ereditati da 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

Dettagli del campo

CONTENTTYPE

public static final String CONTENTTYPE

Dettagli costruttore

OAuthCard

public OAuthCard()

Dettagli metodo

getButtons

public List getButtons()

Ottenere il valore dei pulsanti.

Restituisce:

valore dei pulsanti

getConnectionName

public String getConnectionName()

Ottenere il valore connectionName.

Restituisce:

valore connectionName

getText

public String getText()

Ottenere il valore di testo.

Restituisce:

valore di testo

getTokenExchangeResource

public TokenExchangeResource getTokenExchangeResource()

Ottiene la risorsa con cui provare a eseguire lo scambio di token.

Restituisce:

Valore tokenExchangeResource.

setButtons

public void setButtons(CardAction[] withButtons)

Impostare il valore dei pulsanti.

Parametri:

withButtons - valore dei pulsanti da impostare

setButtons

public void setButtons(List withButtons)

Impostare il valore dei pulsanti.

Parametri:

withButtons - valore dei pulsanti da impostare

setConnectionName

public void setConnectionName(String withConnectionName)

Impostare il valore connectionName.

Parametri:

withConnectionName - valore connectionName da impostare

setText

public void setText(String withText)

Impostare il valore di testo.

Parametri:

withText - valore di testo da impostare

setTokenExchangeResource

public void setTokenExchangeResource(TokenExchangeResource withExchangeResource)

Imposta la risorsa con cui provare a eseguire lo scambio di token.

Parametri:

withExchangeResource - Valore tokenExchangeResource.

toAttachment

public Attachment toAttachment()

Crea un oggetto @{link Attachment} per questa scheda.

Restituisce:

Oggetto Attachment contenente la scheda.

Si applica a