public class NickRejectedEvent extends ServerMessageEventBase
| Constructor and Description |
|---|
NickRejectedEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull String attemptedNick,
@NonNull String newNick)
Constructs the event.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getAttemptedNick()
Gets the nickname which was attempted.
|
@NonNull String |
getNewNick()
Gets the new nickname to attempt, by default this is the previously
attempted name (
getAttemptedNick()) with a ` appended. |
void |
setNewNick(@NonNull String newNick)
Sets the new nickname to attempt.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getSourcegetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTag, getTag, getTagsgetClientpublic NickRejectedEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull String attemptedNick, @NonNull String newNick)
client - the clientsourceMessage - source messageattemptedNick - the nick that failednewNick - the new nick to attemptpublic @NonNull String getAttemptedNick()
public @NonNull String getNewNick()
getAttemptedNick()) with a ` appended.public void setNewNick(@NonNull String newNick)
newNick - a new nicknameIllegalArgumentException - if nickname is null, is same as the
nickname this events reports has failed, contains invalid characters,
or contains spacesprotected @NonNull ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ServerMessageEventBaseCopyright © 2013–2019 Kitteh. All rights reserved.