public static class DefaultWhoisData.Builder extends Object
DefaultWhoisData
.Constructor and Description |
---|
Builder(@NonNull Client client,
@NonNull String nick)
Constructs the builder.
|
Modifier and Type | Method and Description |
---|---|
void |
addChannels(@NonNull String channels)
Adds channels, not erasing any previously added channels.
|
@NonNull WhoisData |
build()
Builds a new
WhoisData from the provided information. |
@NonNull String |
getNick()
Gets the user's nick.
|
void |
setAccount(@NonNull String account)
Sets the account.
|
void |
setAway(@NonNull String awayMessage)
Sets the away message.
|
void |
setHost(@NonNull String host)
Sets the host.
|
void |
setIdleTime(long idleTime)
Sets the idle time.
|
void |
setOperatorInformation(@NonNull String operatorInformation)
Sets the operator information.
|
void |
setRealName(@NonNull String realName)
Sets the real name.
|
void |
setSecure()
Sets that the connection is known to be secure
|
void |
setServer(@NonNull String server)
Sets the server.
|
void |
setServerDescription(@NonNull String serverDescription)
Sets the server description.
|
void |
setSignOnTime(long signOnTime)
Sets the sign on time.
|
void |
setUserString(@NonNull String userString)
Sets the user string.
|
public @NonNull String getNick()
public void setAccount(@NonNull String account)
account
- accountpublic void addChannels(@NonNull String channels)
channels
- channels to addpublic void setAway(@NonNull String awayMessage)
awayMessage
- away messagepublic void setUserString(@NonNull String userString)
userString
- user stringpublic void setHost(@NonNull String host)
host
- hostpublic void setRealName(@NonNull String realName)
realName
- real namepublic void setServer(@NonNull String server)
server
- serverpublic void setServerDescription(@NonNull String serverDescription)
serverDescription
- server descriptionpublic void setSecure()
public void setOperatorInformation(@NonNull String operatorInformation)
operatorInformation
- operator informationpublic void setIdleTime(long idleTime)
idleTime
- idle timepublic void setSignOnTime(long signOnTime)
signOnTime
- sign on timeCopyright © 2013–2021 Kitteh. All rights reserved.