java.lang.Object
it.auties.whatsapp.model.message.standard.LocationMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,HighlyStructuredFourRowTemplateTitle,HydratedFourRowTemplateTitle,ButtonsMessageHeader,ContextualMessage<LocationMessage>,Message
public final class LocationMessage
extends Object
implements ContextualMessage<LocationMessage>, ButtonsMessageHeader, HighlyStructuredFourRowTemplateTitle, HydratedFourRowTemplateTitle
A model class that represents a message holding a location inside
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.auties.whatsapp.model.message.button.ButtonsMessageHeader
ButtonsMessageHeader.TypeNested classes/interfaces inherited from interface it.auties.whatsapp.model.button.template.hsm.HighlyStructuredFourRowTemplateTitle
HighlyStructuredFourRowTemplateTitle.TypeNested classes/interfaces inherited from interface it.auties.whatsapp.model.button.template.hydrated.HydratedFourRowTemplateTitle
HydratedFourRowTemplateTitle.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Stringprivate final Stringprivate ContextInfoprivate final doubleprivate final booleanprivate final doubleprivate final intprivate final Stringprivate final floatprivate final byte[]private final String -
Constructor Summary
ConstructorsConstructorDescriptionLocationMessage(double latitude, double longitude, String name, String address, String url, boolean live, int accuracy, float speed, int magneticNorthOffset, String caption, byte[] thumbnail, ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionintaccuracy()address()caption()category()Return message categoryReturn the type of this titledoublelatitude()booleanlive()doubleintname()setContextInfo(ContextInfo contextInfo) floatspeed()Optional<byte[]> Return the type of this titletoString()type()Return message typeurl()
-
Field Details
-
latitude
private final double latitude -
longitude
private final double longitude -
name
-
address
-
url
-
live
private final boolean live -
accuracy
private final int accuracy -
speed
private final float speed -
magneticNorthOffset
private final int magneticNorthOffset -
caption
-
thumbnail
private final byte[] thumbnail -
contextInfo
-
-
Constructor Details
-
LocationMessage
public LocationMessage(double latitude, double longitude, String name, String address, String url, boolean live, int accuracy, float speed, int magneticNorthOffset, String caption, byte[] thumbnail, ContextInfo contextInfo)
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn message category -
titleType
Description copied from interface:HighlyStructuredFourRowTemplateTitleReturn the type of this title- Specified by:
titleTypein interfaceHighlyStructuredFourRowTemplateTitle- Returns:
- a non-null type
-
hydratedTitleType
Description copied from interface:HydratedFourRowTemplateTitleReturn the type of this title- Specified by:
hydratedTitleTypein interfaceHydratedFourRowTemplateTitle- Returns:
- a non-null type
-
buttonHeaderType
- Specified by:
buttonHeaderTypein interfaceButtonsMessageHeader
-
latitude
public double latitude() -
longitude
public double longitude() -
name
-
address
-
url
-
live
public boolean live() -
accuracy
public int accuracy() -
speed
public float speed() -
magneticNorthOffset
public int magneticNorthOffset() -
caption
-
thumbnail
-
contextInfo
- Specified by:
contextInfoin interfaceContextualMessage<LocationMessage>
-
setContextInfo
- Specified by:
setContextInfoin interfaceContextualMessage<LocationMessage>
-
toString
-