Package ch.threema.apitool.messages
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 Summary
FieldsFields inherited from class ch.threema.apitool.messages.ThreemaMessage
BLOB_ID_LEN -
Constructor Summary
ConstructorsConstructorDescriptionFileMessage(byte[] blobId, byte[] thumbnailBlobId, String thumbnailMediaType, byte[] encryptionKey, String mimeType, String fileName, int size, String caption, FileRenderingType renderingType, String correlationId, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FileMessagefromString(byte[] data, int realDataLength) byte[]The blob IDThe file captionThe correlation identifierbyte[]getData()byte[]The encryption keyThe filenameThe metadataThe mime typeThe rendering typeintgetSize()The file sizebyte[]The thumbnail blob IDThe thumbnail media typeintinthashCode()toString()
-
Field Details
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
FileMessage
-
-
Method Details
-
getBlobId
public byte[] getBlobId()The blob ID- Returns:
- blobId
-
getThumbnailBlobId
public byte[] getThumbnailBlobId()The thumbnail blob ID- Returns:
- thumbnailBlobId
-
getThumbnailMediaType
The thumbnail media type- Returns:
- thumbnailMediaType
-
getEncryptionKey
public byte[] getEncryptionKey()The encryption key- Returns:
- encryptionKey
-
getMimeType
The mime type- Returns:
- mimeType
-
getFilename
The filename- Returns:
- fileName
-
getSize
public int getSize()The file size- Returns:
- size
-
getCaption
The file caption- Returns:
- caption
-
getRenderingType
The rendering type- Returns:
- renderingType
-
getCorrelationId
The correlation identifier- Returns:
- correlationId
-
getMetadata
The metadata- Returns:
- metadata
-
getTypeCode
public int getTypeCode()- Specified by:
getTypeCodein classThreemaMessage- Returns:
- the message's type code
-
getData
- Specified by:
getDatain classThreemaMessage- Returns:
- The message's raw content
- Throws:
BadMessageException
-
fromString
- Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaMessage
-
hashCode
public int hashCode() -
toString
-