ICMediaAttachment

Base class for message attachments which exposes data common to all types of the media files.

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:

ParameterTypeDescription
idstringSpecifies the id of the attachment.

setSize


Sets the size of the attachment, in bytes.

  Syntax: void setSize(long size)

  Parameters:

ParameterTypeDescription
sizeintegerSpecifies the size of the attachment, in bytes.

setURL


Sets the URL of the media attachment.

  Syntax: void setURL(URL url)

  Parameters:

ParameterTypeDescription
urlURLSpecifies the URL of the media attachment.