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 SummaryFields 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 SummaryConstructors Constructor Description ServerNotice()
 - 
Method SummaryModifier 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.RoomMessageContentgetBody, getRelatesTo, setBody, setRelatesTo
 
- 
 
- 
- 
- 
Field Detail- 
serverNoticeTypeprivate String serverNoticeType Required. The type of notice being represented.
 - 
adminContactprivate String adminContact A URI giving a contact method for the server administrator. Required if the notice type is m.server_notice.usage_limit_reached.
 - 
limitTypeprivate String limitType The kind of usage limit the server has exceeded. Required if the notice type is m.server_notice.usage_limit_reached.
 - 
MSGTYPEpublic static final String MSGTYPE Message type.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getMsgtypepublic String getMsgtype() Description copied from class:RoomMessageContentMessage type.
 Read-only.- Specified by:
- getMsgtypein class- RoomMessageContent
- Returns:
- message type.
 
 - 
getServerNoticeTypepublic String getServerNoticeType() 
 - 
setServerNoticeTypepublic void setServerNoticeType(String serverNoticeType) 
 - 
getAdminContactpublic String getAdminContact() 
 - 
setAdminContactpublic void setAdminContact(String adminContact) 
 - 
getLimitTypepublic String getLimitType() 
 - 
setLimitTypepublic void setLimitType(String limitType) 
 
- 
 
-