Class Image
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomMessageContent
-
- io.github.ma1uta.matrix.event.message.Image
-
- All Implemented Interfaces:
EventContent
public class Image extends RoomMessageContent
This message represents a single image and an optional thumbnail.
-
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
Modifier and Type Method Description EncryptedFile
getFile()
ImageInfo
getInfo()
String
getMsgtype()
Message type.String
getUrl()
void
setFile(EncryptedFile file)
void
setInfo(ImageInfo info)
void
setUrl(String url)
-
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 single image and an optional thumbnail.- See Also:
- Constant Field Values
-
info
private ImageInfo info
Information about the file referred to in url.
-
url
private String url
Required. The URL to the file.
-
file
private EncryptedFile file
Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.
-
-
Method Detail
-
getInfo
public ImageInfo getInfo()
-
setInfo
public void setInfo(ImageInfo info)
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getFile
public EncryptedFile getFile()
-
setFile
public void setFile(EncryptedFile file)
-
getMsgtype
public String getMsgtype()
Description copied from class:RoomMessageContent
Message type.
Read-only.- Specified by:
getMsgtype
in classRoomMessageContent
- Returns:
- message type.
-
-