ICMediaAttachment
Base class for message attachments which exposes data common to all types of the media files.
| Return Type | Method |
|---|---|
| String | getMediaId() |
| long | getSize() |
| URL | getURL() |
| void | setMediaId(String mediaId) |
| void | setSize(long size) |
| void | setURL(URL url) |
getMediaId
Gets the id of the media attachment hosted within the imiconnect platform.
Syntax: String getMediaId()
Return Value: Returns the id of the media attachment.
getSize
Gets the media file attachment size, in bytes.
Syntax: long getSize()
Return Value: Returns the file size of the media attachment, in bytes.
getURL
Returns the attachment URL.
Syntax: URL getURL()
Return Value: Returns the attachment URL.
setMediaId
Sets the id of the media attachment.
Syntax: void setMediaId(String id)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | Specifies the id of the attachment. |
setSize
Sets the size of the attachment, in bytes.
Syntax: void setSize(long size)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| size | integer | Specifies the size of the attachment, in bytes. |
setURL
Sets the URL of the media attachment.
Syntax: void setURL(URL url)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| url | URL | Specifies the URL of the media attachment. |
Updated almost 2 years ago
