Package ch.threema.apitool.messages
Class GroupFileMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.ThreemaGroupMessage
ch.threema.apitool.messages.GroupFileMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.501232142+00:00")
public class GroupFileMessage
extends ThreemaGroupMessage
A File Message
-
Field Summary
FieldsFields inherited from class ch.threema.apitool.messages.ThreemaMessage
BLOB_ID_LEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GroupFileMessagefromString(byte[] data, int realDataLength) byte[]The blob IDThe file captionThe correlation identifierbyte[]getData()byte[]The encryption keyThe filenameThe group identifierThe 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
-
GroupFileMessage
-
-
Method Details
-
getGroupId
The group identifier- Overrides:
getGroupIdin classThreemaGroupMessage- Returns:
- groupId
-
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
- Overrides:
getDatain classThreemaGroupMessage- Returns:
- The message's raw content
- Throws:
BadMessageException
-
fromString
public static GroupFileMessage fromString(byte[] data, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaGroupMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classThreemaGroupMessage
-
toString
- Overrides:
toStringin classThreemaGroupMessage
-