Class Notice
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomMessageContent
-
- io.github.ma1uta.matrix.event.message.FormattedBody
-
- io.github.ma1uta.matrix.event.message.Notice
-
- All Implemented Interfaces:
EventContent
public class Notice extends FormattedBody
The ``m.notice`` type is primarily intended for responses from automated clients. An ``m.notice`` message must be treated the same way as a regular ``m.text`` message with two exceptions. Firstly, clients should present ``m.notice`` messages to users in a distinct manner, and secondly, ``m.notice`` messages must never be automatically responded to. This helps to prevent infinite-loop situations where two automated clients continuously exchange messages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.github.ma1uta.matrix.event.message.FormattedBody
FormattedBody.Format
-
-
Constructor Summary
Constructors Constructor Description Notice()
-
Method Summary
Modifier and Type Method Description String
getMsgtype()
Message type.-
Methods inherited from class io.github.ma1uta.matrix.event.message.FormattedBody
getFormat, getFormattedBody, setFormat, setFormattedBody
-
Methods inherited from class io.github.ma1uta.matrix.event.content.RoomMessageContent
getBody, getRelatesTo, setBody, setRelatesTo
-
-
-
-
Field Detail
-
MSGTYPE
public static final String MSGTYPE
The m.notice type is primarily intended for responses from automated clients. An m.notice message must be treated the same way as a regular m.text message with two exceptions. Firstly, clients should present m.notice messages to users in a distinct manner, and secondly, m.notice messages must never be automatically responded to. This helps to prevent infinite-loop situations where two automated clients continuously exchange messages.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMsgtype
public String getMsgtype()
Description copied from class:RoomMessageContent
Message type.
Read-only.- Specified by:
getMsgtype
in classRoomMessageContent
- Returns:
- message type.
-
-