Attachment Classe

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

public class Attachment

Allegato all'interno di un'attività.

Riepilogo dei costruttori

Costruttore Descrizione
Attachment()

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
static Attachment clone(Attachment attachment)

Esegue una copia completa di un allegato.

static java.util.List<Attachment> cloneList(List<Attachment> attachments)

Clona un elenco di allegati.

java.lang.Object getContent()

Ottenere il valore del contenuto.

java.lang.String getContentType()

Ottenere il valore di contentType.

java.lang.String getContentUrl()

Ottenere il valore urlcontenuto.

java.lang.String getName()

Ottenere il valore del nome.

java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getProperties()

Proprietà di overflow.

java.lang.String getThumbnailUrl()

Ottenere il valore dell'urlanteprima.

void setContent(Object withContent)

Impostare il valore del contenuto.

void setContentType(String withContentType)

Impostare il valore contentType.

void setContentUrl(String withContentUrl)

Impostare il valore urlcontenuto.

void setName(String withName)

Impostare il valore del nome.

void setProperties(String key, JsonNode value)

Impostare le proprietà di overflow.

void setThumbnailUrl(String withThumbnailUrl)

Impostare il valore dell'urlanteprima.

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 costruttore

Attachment

public Attachment()

Dettagli metodo

clone

public static Attachment clone(Attachment attachment)

Esegue una copia completa di un allegato.

Parametri:

attachment - Allegato da copiare.

Restituisce:

Versione clonata dell'allegato.

cloneList

public static List cloneList(List attachments)

Clona un elenco di allegati.

Parametri:

attachments - Elenco di allegati da clonare.

Restituisce:

Nuovo elenco di allegati clonati.

getContent

public Object getContent()

Ottenere il valore del contenuto.

Restituisce:

valore del contenuto

getContentType

public String getContentType()

Ottenere il valore contentType.

Restituisce:

valore contentType

getContentUrl

public String getContentUrl()

Ottenere il valore contentUrl.

Restituisce:

valore contentUrl

getName

public String getName()

Ottenere il valore del nome.

Restituisce:

valore del nome

getProperties

public Map getProperties()

Proprietà di overflow. Le proprietà non modellate come proprietà di prima classe nell'oggetto sono accessibili qui. Nota: un valore della proprietà può essere annidato.

Restituisce:

Mappa Key-Value delle proprietà

getThumbnailUrl

public String getThumbnailUrl()

Ottiene il valore thumbnailUrl.

Restituisce:

valore thumbnailUrl

setContent

public void setContent(Object withContent)

Impostare il valore del contenuto.

Parametri:

withContent - valore del contenuto da impostare

setContentType

public void setContentType(String withContentType)

Impostare il valore contentType.

Parametri:

withContentType - valore contentType da impostare

setContentUrl

public void setContentUrl(String withContentUrl)

Impostare il valore contentUrl.

Parametri:

withContentUrl - valore contentUrl da impostare

setName

public void setName(String withName)

Impostare il valore del nome.

Parametri:

withName - valore del nome da impostare

setProperties

public void setProperties(String key, JsonNode value)

Impostare le proprietà di overflow.

Parametri:

key - Chiave per la proprietà
value - JsonNode del valore (può essere annidato)

setThumbnailUrl

public void setThumbnailUrl(String withThumbnailUrl)

Impostare il valore thumbnailUrl.

Parametri:

withThumbnailUrl - valore thumbnailUrl da impostare

Si applica a