Module it.auties.whatsappweb4j
Class LocationMessage
java.lang.Object
it.auties.whatsapp.model.message.model.ContextualMessage
it.auties.whatsapp.model.message.standard.LocationMessage
- All Implemented Interfaces:
it.auties.protobuf.base.ProtobufMessage
,FourRowTemplateTitle
,HydratedFourRowTemplateTitle
,ButtonsMessageHeader
,Message
public final class LocationMessage
extends ContextualMessage
implements ButtonsMessageHeader, FourRowTemplateTitle, HydratedFourRowTemplateTitle
A model class that represents a message holding a location inside
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LocationMessage.LocationMessageBuilder<C extends LocationMessage,
B extends LocationMessage.LocationMessageBuilder<C, B>> Nested classes/interfaces inherited from class it.auties.whatsapp.model.message.model.ContextualMessage
ContextualMessage.ContextualMessageBuilder<C extends ContextualMessage,
B extends ContextualMessage.ContextualMessageBuilder<C, B>> -
Constructor Summary
ModifierConstructorDescriptionLocationMessage
(double latitude, double longitude, String name, String address, String url, boolean live, int accuracy, float speed, int magneticNorthOffset, String caption, byte[] thumbnail) protected
-
Method Summary
Modifier and TypeMethodDescriptionint
accuracy()
The accuracy in meters of the location that this message wrapsaccuracy
(int accuracy) The accuracy in meters of the location that this message wrapsaddress()
The address of the location that this message wrapsThe address of the location that this message wrapsstatic LocationMessage.LocationMessageBuilder<?,
?> builder()
protected boolean
caption()
The caption of this messageThe caption of this messagecategory()
Return message categoryboolean
int
hashCode()
Return the type of this titledouble
latitude()
The latitude of the location that this message wrapslatitude
(double latitude) The latitude of the location that this message wrapsboolean
live()
Determines whether this message is aLiveLocationMessage
live
(boolean live) Determines whether this message is aLiveLocationMessage
double
The longitude of the location that this message wrapslongitude
(double longitude) The longitude of the location that this message wrapsint
Degrees Clockwise from Magnetic NorthmagneticNorthOffset
(int magneticNorthOffset) Degrees Clockwise from Magnetic Northname()
The name of the location that this message wrapsThe name of the location that this message wrapsfloat
speed()
The speed in meters per second of the device that sent this live location messagespeed
(float speed) The speed in meters per second of the device that sent this live location messagebyte[]
The thumbnail for this image message encoded as jpeg in an array of bytesthumbnail
(byte[] thumbnail) The thumbnail for this image message encoded as jpeg in an array of bytesReturn the type of this titletoString()
type()
Return message typeurl()
A URL to visit the location that this message wraps in Google MapsA URL to visit the location that this message wraps in Google MapsMethods inherited from class it.auties.whatsapp.model.message.model.ContextualMessage
contextInfo, contextInfo
-
Constructor Details
-
LocationMessage
-
LocationMessage
-
LocationMessage
public LocationMessage()
-
-
Method Details
-
type
Description copied from interface:Message
Return message type -
category
Description copied from interface:Message
Return message category -
titleType
Description copied from interface:FourRowTemplateTitle
Return the type of this title- Specified by:
titleType
in interfaceFourRowTemplateTitle
- Returns:
- a non-null type
-
hydratedTitleType
Description copied from interface:HydratedFourRowTemplateTitle
Return the type of this title- Specified by:
hydratedTitleType
in interfaceHydratedFourRowTemplateTitle
- Returns:
- a non-null type
-
builder
-
latitude
public double latitude()The latitude of the location that this message wraps -
longitude
public double longitude()The longitude of the location that this message wraps -
name
The name of the location that this message wraps -
address
The address of the location that this message wraps -
url
A URL to visit the location that this message wraps in Google Maps -
live
public boolean live()Determines whether this message is aLiveLocationMessage
-
accuracy
public int accuracy()The accuracy in meters of the location that this message wraps -
speed
public float speed()The speed in meters per second of the device that sent this live location message -
magneticNorthOffset
public int magneticNorthOffset()Degrees Clockwise from Magnetic North -
thumbnail
public byte[] thumbnail()The thumbnail for this image message encoded as jpeg in an array of bytes -
latitude
The latitude of the location that this message wraps- Returns:
this
.
-
longitude
The longitude of the location that this message wraps- Returns:
this
.
-
name
The name of the location that this message wraps- Returns:
this
.
-
address
The address of the location that this message wraps- Returns:
this
.
-
url
A URL to visit the location that this message wraps in Google Maps- Returns:
this
.
-
live
Determines whether this message is aLiveLocationMessage
- Returns:
this
.
-
accuracy
The accuracy in meters of the location that this message wraps- Returns:
this
.
-
speed
The speed in meters per second of the device that sent this live location message- Returns:
this
.
-
magneticNorthOffset
Degrees Clockwise from Magnetic North- Returns:
this
.
-
thumbnail
The thumbnail for this image message encoded as jpeg in an array of bytes- Returns:
this
.
-
toString
- Overrides:
toString
in classContextualMessage
-
equals
- Overrides:
equals
in classContextualMessage
-
canEqual
- Overrides:
canEqual
in classContextualMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContextualMessage
-