Class ServerNotice
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomMessageContent
-
- io.github.ma1uta.matrix.event.message.ServerNotice
-
- All Implemented Interfaces:
EventContent
public class ServerNotice extends RoomMessageContent
Represents a server notice for a user.
-
-
Field Summary
Fields Modifier and Type Field Description private StringadminContactA URI giving a contact method for the server administrator.private StringlimitTypeThe kind of usage limit the server has exceeded.static StringMSGTYPEMessage type.private StringserverNoticeTypeRequired.
-
Constructor Summary
Constructors Constructor Description ServerNotice()
-
Method Summary
Modifier and Type Method Description StringgetAdminContact()StringgetLimitType()StringgetMsgtype()Message type.StringgetServerNoticeType()voidsetAdminContact(String adminContact)voidsetLimitType(String limitType)voidsetServerNoticeType(String serverNoticeType)-
Methods inherited from class io.github.ma1uta.matrix.event.content.RoomMessageContent
getBody, getRelatesTo, setBody, setRelatesTo
-
-
-
-
Field Detail
-
serverNoticeType
private String serverNoticeType
Required. The type of notice being represented.
-
adminContact
private String adminContact
A URI giving a contact method for the server administrator. Required if the notice type is m.server_notice.usage_limit_reached.
-
limitType
private String limitType
The kind of usage limit the server has exceeded. Required if the notice type is m.server_notice.usage_limit_reached.
-
MSGTYPE
public static final String MSGTYPE
Message type.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMsgtype
public String getMsgtype()
Description copied from class:RoomMessageContentMessage type.
Read-only.- Specified by:
getMsgtypein classRoomMessageContent- Returns:
- message type.
-
getServerNoticeType
public String getServerNoticeType()
-
setServerNoticeType
public void setServerNoticeType(String serverNoticeType)
-
getAdminContact
public String getAdminContact()
-
setAdminContact
public void setAdminContact(String adminContact)
-
getLimitType
public String getLimitType()
-
setLimitType
public void setLimitType(String limitType)
-
-