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, wait
getTag, getTag
public DefaultServerMessage(@NonNull String message, @NonNull List<MessageTag> tags)
KittehServerMessageException
.message
- full messagetags
- parsed tagspublic @NonNull String getMessage()
ServerMessage
getMessage
in interface ServerMessage
public final @NonNull List<MessageTag> getTags()
ServerMessage
getTags
in interface ServerMessage
Copyright © 2013–2021 Kitteh. All rights reserved.