public class NickServ extends AbstractAccountPassProtocol implements EventListening
| Modifier and Type | Class and Description |
|---|---|
static class |
NickServ.Builder
NickServ builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NickServ(@NonNull Client client,
@NonNull String serviceName,
@Nullable String accountName,
@NonNull String password)
Creates a NickServ authentication protocol instance.
|
| Modifier and Type | Method and Description |
|---|---|
static @NonNull NickServ.Builder |
builder(@NonNull Client client)
Creates a new NickServ builder.
|
protected @NonNull String |
getAuthentication()
Gets a String for
AbstractAuthProtocol.startAuthentication(). |
@NonNull Object |
getEventListener()
Gets the object for listening.
|
void |
listenSuccess(PrivateNoticeEvent event) |
void |
listenVersion(ClientReceiveNumericEvent event) |
getAccountName, getPassword, toStringgetClient, startAuthentication, toStringprotected NickServ(@NonNull Client client, @NonNull String serviceName, @Nullable String accountName, @NonNull String password)
client - client for which this will be usedserviceName - service nameaccountName - account namepassword - passwordpublic static @NonNull NickServ.Builder builder(@NonNull Client client)
client - client for whom this is to be builtprotected @NonNull String getAuthentication()
AbstractAuthProtocolAbstractAuthProtocol.startAuthentication().getAuthentication in class AbstractAuthProtocolpublic @NonNull Object getEventListener()
EventListeninggetEventListener in interface EventListeningpublic void listenVersion(ClientReceiveNumericEvent event)
public void listenSuccess(PrivateNoticeEvent event)
Copyright © 2013–2021 Kitteh. All rights reserved.