Attachment Class
- java.
lang. Object - com.
microsoft. bot. schema. Attachment
- com.
public class Attachment
An attachment within an activity.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Attachment() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Attachment |
clone(Attachment attachment)
Performs a deep copy of an Attachment. |
| static java.util.List<Attachment> |
cloneList(List<Attachment> attachments)
Clones a List of Attachments. |
| java.lang.Object |
getContent()
Get the content value. |
| java.lang.String |
getContentType()
Get the content |
| java.lang.String |
getContentUrl()
Get the content |
| java.lang.String |
getName()
Get the name value. |
| java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
Overflow properties. |
| java.lang.String |
getThumbnailUrl()
Get the thumbnail |
| void |
setContent(Object withContent)
Set the content value. |
| void |
setContentType(String withContentType)
Set the content |
| void |
setContentUrl(String withContentUrl)
Set the content |
| void |
setName(String withName)
Set the name value. |
| void |
setProperties(String key, JsonNode value)
Set overflow properties. |
| void |
setThumbnailUrl(String withThumbnailUrl)
Set the thumbnail |
Methods inherited from java.lang.Object
Constructor Details
Attachment
public Attachment()
Method Details
clone
public static Attachment clone(Attachment attachment)
Performs a deep copy of an Attachment.
Parameters:
Returns:
cloneList
public static List
Clones a List of Attachments.
Parameters:
Returns:
getContent
public Object getContent()
Get the content value.
Returns:
getContentType
public String getContentType()
Get the contentType value.
Returns:
getContentUrl
public String getContentUrl()
Get the contentUrl value.
Returns:
getName
public String getName()
Get the name value.
Returns:
getProperties
public Map
Overflow properties. Properties that are not modelled as first class properties in the object are accessible here. Note: A property value can be be nested.
Returns:
getThumbnailUrl
public String getThumbnailUrl()
Get the thumbnailUrl value.
Returns:
setContent
public void setContent(Object withContent)
Set the content value.
Parameters:
setContentType
public void setContentType(String withContentType)
Set the contentType value.
Parameters:
setContentUrl
public void setContentUrl(String withContentUrl)
Set the contentUrl value.
Parameters:
setName
public void setName(String withName)
Set the name value.
Parameters:
setProperties
public void setProperties(String key, JsonNode value)
Set overflow properties.
Parameters:
setThumbnailUrl
public void setThumbnailUrl(String withThumbnailUrl)
Set the thumbnailUrl value.
Parameters: