MessageActionsPayloadAttachment Class

  • java.lang.Object
    • com.microsoft.bot.schema.teams.MessageActionsPayloadAttachment

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

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

Constructor Details

MessageActionsPayloadAttachment

public MessageActionsPayloadAttachment()

Method Details

getContent

public Object getContent()

Gets the content of the attachment, in case of a code.

Returns:

The attachment content.

getContentType

public String getContentType()

Gets the type of the attachment.

Returns:

The content type of the attachment.

getContentUrl

public String getContentUrl()

Gets the url of the attachment, in case of a external link.

Returns:

The URL of the attachment.

getId

public String getId()

Gets the id of the attachment.

Returns:

The attachment id.

getName

public String getName()

Gets the plaintext display name of the attachment.

Returns:

The attachment plaintext name.

getThumbnailUrl

public String getThumbnailUrl()

Gets the url of a thumbnail image that might be embedded in the attachment, in case of a card.

Returns:

The thumbnail URL.

setContent

public void setContent(Object withContent)

Sets the content of the attachment, in case of a code.

Parameters:

withContent - The attachment content.

setContentType

public void setContentType(String withContentType)

Sets the type of the attachment.

Parameters:

withContentType - The content type of the attachment.

setContentUrl

public void setContentUrl(String withContentUrl)

Sets the url of the attachment, in case of a external link.

Parameters:

withContentUrl - The URL of the attachment.

setId

public void setId(String withId)

Sets the id of the attachment.

Parameters:

withId - The attachment id.

setName

public void setName(String withName)

Sets the plaintext display name of the attachment.

Parameters:

withName - The attachment plaintext name.

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:

withThumbnailUrl - The thumbnail URL.

Applies to