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 String
getGeoUri()
LocationInfo
getInfo()
String
getMsgtype()
Message type.void
setGeoUri(String geoUri)
void
setInfo(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:RoomMessageContent
Message type.
Read-only.- Specified by:
getMsgtype
in classRoomMessageContent
- Returns:
- message type.
-
-