MessageActionsPayloadAttachment Class
- java.
lang. Object - com.
microsoft. bot. schema. teams. MessageActionsPayloadAttachment
- com.
public class MessageActionsPayloadAttachment
Represents the attachment in a message.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MessageActionsPayloadAttachment() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Object |
getContent()
Gets the content of the attachment, in case of a code. |
| java.lang.String |
getContentType()
Gets the type of the attachment. |
| java.lang.String |
getContentUrl()
Gets the url of the attachment, in case of a external link. |
| java.lang.String |
getId()
Gets the id of the attachment. |
| java.lang.String |
getName()
Gets the plaintext display name of the attachment. |
| java.lang.String |
getThumbnailUrl()
Gets the url of a thumbnail image that might be embedded in the attachment, in case of a card. |
| void |
setContent(Object withContent)
Sets the content of the attachment, in case of a code. |
| void |
setContentType(String withContentType)
Sets the type of the attachment. |
| void |
setContentUrl(String withContentUrl)
Sets the url of the attachment, in case of a external link. |
| void |
setId(String withId)
Sets the id of the attachment. |
| void |
setName(String withName)
Sets the plaintext display name of the attachment. |
| void |
setThumbnailUrl(String withThumbnailUrl)
Sets the url of a thumbnail image that might be embedded in the attachment, in case of a card. |
Methods inherited from java.lang.Object
Constructor Details
MessageActionsPayloadAttachment
public MessageActionsPayloadAttachment()
Method Details
getContent
public Object getContent()
Gets the content of the attachment, in case of a code.
Returns:
getContentType
public String getContentType()
Gets the type of the attachment.
Returns:
getContentUrl
public String getContentUrl()
Gets the url of the attachment, in case of a external link.
Returns:
getId
public String getId()
Gets the id of the attachment.
Returns:
getName
public String getName()
Gets the plaintext display name of the attachment.
Returns:
getThumbnailUrl
public String getThumbnailUrl()
Gets the url of a thumbnail image that might be embedded in the attachment, in case of a card.
Returns:
setContent
public void setContent(Object withContent)
Sets the content of the attachment, in case of a code.
Parameters:
setContentType
public void setContentType(String withContentType)
Sets the type of the attachment.
Parameters:
setContentUrl
public void setContentUrl(String withContentUrl)
Sets the url of the attachment, in case of a external link.
Parameters:
setId
public void setId(String withId)
Sets the id of the attachment.
Parameters:
setName
public void setName(String withName)
Sets the plaintext display name of the attachment.
Parameters:
setThumbnailUrl
public void setThumbnailUrl(String withThumbnailUrl)
Sets the url of a thumbnail image that might be embedded in the attachment, in case of a card.
Parameters: