public class DefaultServerMessage extends Object implements ServerMessage
ServerMessage.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultServerMessage.NumericCommand
Default implementation of
NumericCommandServerMessage. |
static class |
DefaultServerMessage.StringCommand
Default implementation of
StringCommandServerMessage. |
ServerMessage.NumericCommandServerMessage, ServerMessage.StringCommandServerMessage| Constructor and Description |
|---|
DefaultServerMessage(@NonNull String message,
@NonNull List<MessageTag> tags)
Constructs a sad, non-command message, only used in KICL for bad
messages going to a
KittehServerMessageException. |
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getMessage()
Gets the full content of the line sent by the server, minus linebreak
characters \r and \n.
|
@NonNull List<MessageTag> |
getTags()
Gets the processed message tags, if any, contained in the message.
|
@NonNull String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTag, getTagpublic DefaultServerMessage(@NonNull String message, @NonNull List<MessageTag> tags)
KittehServerMessageException.message - full messagetags - parsed tagspublic @NonNull String getMessage()
ServerMessagegetMessage in interface ServerMessagepublic final @NonNull List<MessageTag> getTags()
ServerMessagegetTags in interface ServerMessageCopyright © 2013–2021 Kitteh. All rights reserved.