Package ch.threema.apitool.messages
Class TextMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.TextMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.473407065+00:00")
public class TextMessage
extends ThreemaMessage
A text message that can be sent/received with end-to-end encryption via Threema.
-
Field Summary
FieldsFields inherited from class ch.threema.apitool.messages.ThreemaMessage
BLOB_ID_LEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TextMessagefromString(byte[] data, int realDataLength) byte[]getData()Gets quoted message id if the message is a quoteGets quote text if the message is a quotegetText()The message textintinthashCode()booleanIsQuote()Whether or not the message is a quotetoString()
-
Field Details
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
TextMessage
-
-
Method Details
-
getText
The message text- Returns:
- text
-
IsQuote
public boolean IsQuote()Whether or not the message is a quote- Returns:
- Whether or not the message is a quote
-
getQuotedMessageId
Gets quoted message id if the message is a quote- Returns:
- Quoted message id
-
getQuoteText
Gets quote text if the message is a quote- Returns:
- Quote text
-
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
-