HeroCard Classe

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

public class HeroCard

Scheda Hero (scheda con un'unica immagine di grandi dimensioni).

Riepilogo dei campi

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

Riepilogo dei costruttori

Costruttore Descrizione
HeroCard()

Riepilogo dei metodi

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

Ottenere il valore dei pulsanti.

java.util.List<CardImage> getImages()

Ottenere il valore delle immagini.

java.lang.String getSubtitle()

Ottenere il valore del sottotitolo.

CardAction getTap()

Ottenere il valore di tocco.

java.lang.String getText()

Ottenere il valore di testo.

java.lang.String getTitle()

Ottenere il valore del titolo.

void setButtons(CardAction[] withButtons)

Impostare il valore dei pulsanti.

void setButtons(List<CardAction> withButtons)

Impostare il valore dei pulsanti.

void setImages(CardImage[] withImages)

Impostare il valore delle immagini.

void setImages(List<CardImage> withImages)

Impostare il valore delle immagini.

void setSubtitle(String withSubtitle)

Impostare il valore del sottotitolo.

void setTap(CardAction withTap)

Impostare il valore di tocco.

void setText(String withText)

Impostare il valore di testo.

void setTitle(String withTitle)

Impostare il valore del titolo.

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

HeroCard

public HeroCard()

Dettagli metodo

getButtons

public List getButtons()

Ottenere il valore dei pulsanti.

Restituisce:

valore dei pulsanti

getImages

public List getImages()

Ottenere il valore delle immagini.

Restituisce:

valore delle immagini

getSubtitle

public String getSubtitle()

Ottenere il valore del sottotitolo.

Restituisce:

valore del sottotitolo

getTap

public CardAction getTap()

Ottenere il valore di tocco.

Restituisce:

il valore di tocco

getText

public String getText()

Ottenere il valore di testo.

Restituisce:

valore di testo

getTitle

public String getTitle()

Ottenere il valore del titolo.

Restituisce:

il valore del titolo

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

setImages

public void setImages(CardImage[] withImages)

Impostare il valore delle immagini.

Parametri:

withImages - valore delle immagini da impostare

setImages

public void setImages(List withImages)

Impostare il valore delle immagini.

Parametri:

withImages - valore delle immagini da impostare

setSubtitle

public void setSubtitle(String withSubtitle)

Impostare il valore del sottotitolo.

Parametri:

withSubtitle - valore del sottotitolo da impostare

setTap

public void setTap(CardAction withTap)

Impostare il valore di tocco.

Parametri:

withTap - il valore di tocco da impostare

setText

public void setText(String withText)

Impostare il valore di testo.

Parametri:

withText - valore di testo da impostare

setTitle

public void setTitle(String withTitle)

Impostare il valore del titolo.

Parametri:

withTitle - valore del titolo da impostare

toAttachment

public Attachment toAttachment()

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

Restituisce:

Oggetto Attachment contenente la scheda.

Si applica a