Class Attachment



  • public class Attachment
    extends java.lang.Object
    This is a model class for attachment in ChatLog that will be created by LivechatAgentsPath.

    It is used to define attachments in a chat log event.

    This class is a model that will be serialised to JSON and deserialised from JSON to this model. As such it does not follow the m naming prefix for fields.

    See Also:
    Agent Dashboard
    • Constructor Summary

      Constructors 
      Constructor and Description
      Attachment() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getMimeType()
      Gets mime type of the attachment
      java.lang.String getName()
      Gets name of the attachment file
      java.lang.Long getSize()
      Gets file size of the attachment
      java.net.URL getThumbnail()
      Gets thumbnail image of the attachment
      java.lang.String getType()
      Gets type of the attachment like document or image
      java.net.URL getUrl()
      Get resource url of the attachment
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • getType

        public java.lang.String getType()
        Gets type of the attachment like document or image
        Returns:
        type of the attachment
      • getMimeType

        public java.lang.String getMimeType()
        Gets mime type of the attachment
        Returns:
        mime type of the attachment
      • getName

        public java.lang.String getName()
        Gets name of the attachment file
        Returns:
        file name of the attachment
      • getSize

        public java.lang.Long getSize()
        Gets file size of the attachment
        Returns:
        attachment size
      • getThumbnail

        public java.net.URL getThumbnail()
        Gets thumbnail image of the attachment
        Returns:
        thumbnail image of the attachment
      • getUrl

        public java.net.URL getUrl()
        Get resource url of the attachment
        Returns:
        url resource