Package ch.threema.apitool.messages
Class LocationMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.LocationMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.474090431+00:00")
public class LocationMessage
extends ThreemaMessage
A Location Message
-
Field Summary
FieldsFields inherited from class ch.threema.apitool.messages.ThreemaMessage
BLOB_ID_LEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LocationMessagefromString(byte[] data, int realDataLength) The location accuracybyte[]getData()The geographic latitudeThe geographic longitudeThe location addressThe location nameintinthashCode()toString()
-
Field Details
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
LocationMessage
-
-
Method Details
-
getLatitude
The geographic latitude- Returns:
- latitude
-
getLongitude
The geographic longitude- Returns:
- longitude
-
getAccuracy
The location accuracy- Returns:
- accuracy
-
getPoiName
The location name- Returns:
- poiName
-
getPoiAddress
The location address- Returns:
- address
-
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
public static LocationMessage fromString(byte[] data, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaMessage
-
hashCode
public int hashCode() -
toString
-