Package ch.threema.apitool.messages
Class ThreemaMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
- Direct Known Subclasses:
BallotCreateMessage,BallotVoteMessage,DeliveryReceipt,FileMessage,ImageMessage,LocationMessage,TextMessage,ThreemaGroupMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.472344386+00:00")
public abstract class ThreemaMessage
extends Object
ThreemaMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ThreemaMessagefromString(byte[] jsonData, int realDataLength) abstract byte[]getData()abstract int
-
Field Details
-
BLOB_ID_LEN
public static final int BLOB_ID_LEN- See Also:
-
-
Constructor Details
-
ThreemaMessage
public ThreemaMessage()
-
-
Method Details
-
getData
- Returns:
- The message's raw content
- Throws:
BadMessageException
-
fromString
public static ThreemaMessage fromString(byte[] jsonData, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
equals
-
getTypeCode
public abstract int getTypeCode()- Returns:
- the message's type code
-