Class FileMessage

java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.FileMessage

@Generated(value="msgapi-sdk-codegen", date="2024-03-15T13:44:24.475245996+00:00") public class FileMessage extends ThreemaMessage
A File Message
  • Field Details

  • Constructor Details

  • Method Details

    • getBlobId

      public byte[] getBlobId()
      The blob ID
      Returns:
      blobId
    • getThumbnailBlobId

      public byte[] getThumbnailBlobId()
      The thumbnail blob ID
      Returns:
      thumbnailBlobId
    • getThumbnailMediaType

      public String getThumbnailMediaType()
      The thumbnail media type
      Returns:
      thumbnailMediaType
    • getEncryptionKey

      public byte[] getEncryptionKey()
      The encryption key
      Returns:
      encryptionKey
    • getMimeType

      public String getMimeType()
      The mime type
      Returns:
      mimeType
    • getFilename

      public String getFilename()
      The filename
      Returns:
      fileName
    • getSize

      public int getSize()
      The file size
      Returns:
      size
    • getCaption

      public String getCaption()
      The file caption
      Returns:
      caption
    • getRenderingType

      public FileRenderingType getRenderingType()
      The rendering type
      Returns:
      renderingType
    • getCorrelationId

      public String getCorrelationId()
      The correlation identifier
      Returns:
      correlationId
    • getMetadata

      public Map<String,Object> getMetadata()
      The metadata
      Returns:
      metadata
    • getTypeCode

      public int getTypeCode()
      Specified by:
      getTypeCode in class ThreemaMessage
      Returns:
      the message's type code
    • getData

      public byte[] getData() throws BadMessageException
      Specified by:
      getData in class ThreemaMessage
      Returns:
      The message's raw content
      Throws:
      BadMessageException
    • fromString

      public static FileMessage fromString(byte[] data, int realDataLength) throws BadMessageException
      Throws:
      BadMessageException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ThreemaMessage
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object