Constructor
new Attachment(type, url)
- Description:
- Constructs an Attachment object with the specified type and URL.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
type |
The type of the attachment (required). | |
url |
The URL of the attachment (required). |
Methods
getTitle()
- Description:
- Gets the title of the attachment.
- Source:
Returns:
The title of the attachment.
getType()
- Description:
- Gets the type of the attachment.
- Source:
Returns:
The type of the attachment.
getUrl()
- Description:
- Gets the URL of the attachment.
- Source:
Returns:
The URL of the attachment.
setTitle(title)
- Description:
- Sets the title of the attachment.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
title |
The title of the attachment. |
Returns:
This Attachment instance.
setType(type)
- Description:
- Sets the type of the attachment.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
type |
The type of the attachment. |
Returns:
This Attachment instance.
setUrl(url)
- Description:
- Sets the URL of the attachment.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
url |
The URL of the attachment. |
Returns:
This Attachment instance.