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 String
adminContact
A URI giving a contact method for the server administrator.private String
limitType
The kind of usage limit the server has exceeded.static String
MSGTYPE
Message type.private String
serverNoticeType
Required.
-
Constructor Summary
Constructors Constructor Description ServerNotice()
-
Method Summary
Modifier and Type Method Description String
getAdminContact()
String
getLimitType()
String
getMsgtype()
Message type.String
getServerNoticeType()
void
setAdminContact(String adminContact)
void
setLimitType(String limitType)
void
setServerNoticeType(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:RoomMessageContent
Message type.
Read-only.- Specified by:
getMsgtype
in 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)
-
-