Class Location
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomMessageContent
-
- io.github.ma1uta.matrix.event.message.Location
-
- All Implemented Interfaces:
EventContent
public class Location extends RoomMessageContent
This message represents a real-world location.
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
Modifier and Type Method Description StringgetGeoUri()LocationInfogetInfo()StringgetMsgtype()Message type.voidsetGeoUri(String geoUri)voidsetInfo(LocationInfo info)-
Methods inherited from class io.github.ma1uta.matrix.event.content.RoomMessageContent
getBody, getRelatesTo, setBody, setRelatesTo
-
-
-
-
Field Detail
-
MSGTYPE
public static final String MSGTYPE
This message represents a real-world location.- See Also:
- Constant Field Values
-
info
private LocationInfo info
Information about the file referred to in url.
-
geoUri
private String geoUri
Required. A geo URI representing this location.
-
-
Method Detail
-
getInfo
public LocationInfo getInfo()
-
setInfo
public void setInfo(LocationInfo info)
-
getGeoUri
public String getGeoUri()
-
setGeoUri
public void setGeoUri(String geoUri)
-
getMsgtype
public String getMsgtype()
Description copied from class:RoomMessageContentMessage type.
Read-only.- Specified by:
getMsgtypein classRoomMessageContent- Returns:
- message type.
-
-