Package ch.threema.apitool.messages
Class GroupSetPhoto
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.ThreemaGroupMessage
ch.threema.apitool.messages.GroupSetPhoto
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.492572411+00:00")
public class GroupSetPhoto
extends ThreemaGroupMessage
A group set profile picture message that can be sent/received with end-to-end encryption via
Threema.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final intFields inherited from class ch.threema.apitool.messages.ThreemaMessage
BLOB_ID_LEN -
Constructor Summary
ConstructorsConstructorDescriptionGroupSetPhoto(GroupId groupId, byte[] blobId, int size, byte[] encryptionKey) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GroupSetPhotofromString(byte[] data, int realDataLength) byte[]The blob IDbyte[]getData()byte[]The encryption keyThe group identifierintgetSize()The file sizeintinthashCode()toString()
-
Field Details
-
noPrependGroupCreator
public static final boolean noPrependGroupCreator- See Also:
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
GroupSetPhoto
-
-
Method Details
-
getGroupId
The group identifier- Overrides:
getGroupIdin classThreemaGroupMessage- Returns:
- groupId
-
getBlobId
public byte[] getBlobId()The blob ID- Returns:
- blobId
-
getSize
public int getSize()The file size- Returns:
- size
-
getEncryptionKey
public byte[] getEncryptionKey()The encryption key- Returns:
- encryptionKey
-
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
- Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaGroupMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classThreemaGroupMessage
-
toString
- Overrides:
toStringin classThreemaGroupMessage
-