public class DefaultWhoisData extends Object implements WhoisData
WhoisData.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultWhoisData.Builder
A builder to assist in building
DefaultWhoisData. |
| Constructor and Description |
|---|
DefaultWhoisData(Client client,
String account,
Set<String> channels,
String nick,
String userString,
String host,
String realName,
String server,
String serverDescription,
boolean secureConnection,
String operatorInformation,
Long idleTime,
Long signOnTime,
String awayMessage)
Creates the default WHOIS data object.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getAccount()
Gets the Services account this user is signed into.
|
Optional<String> |
getAwayMessage()
Gets, if one is set and known, the away message for the user.
|
Set<String> |
getChannels()
Gets the user's channels.
|
Client |
getClient()
Gets the Client to which this belongs.
|
long |
getCreationTime()
Gets the time this snapshot was created.
|
String |
getHost()
Gets the user's host.
|
Optional<Long> |
getIdleTime()
Gets how long the user has been idle.
|
String |
getMessagingName()
Gets the name used when sending messages.
|
String |
getName()
Gets the Actor's name.
|
String |
getNick()
Gets the user's nick.
|
Optional<String> |
getOperatorInformation()
Gets a user's operator information, if they have any privileges, noting
that this information may not imply actual IRC Operator status but some
other IRC network status as well.
|
Optional<String> |
getRealName()
Gets the user's real name
|
Optional<String> |
getServer()
Gets the name of the server the user is on.
|
Optional<String> |
getServerDescription()
Gets the description of the server the user is on.
|
Optional<Long> |
getSignOnTime()
Gets the time at which this user signed on to the server.
|
String |
getUserString()
Gets the user's user string.
|
boolean |
isAway()
Gets if the user is away.
|
boolean |
isSecureConnection()
Gets if the user is connected securely.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLowerCaseMessagingName, sendCtcpMessage, sendMessage, sendMultiLineMessage, sendMultiLineMessage, sendMultiLineNotice, sendMultiLineNotice, sendNoticegetLowerCaseNamepublic DefaultWhoisData(@Nonnull Client client, @Nullable String account, @Nonnull Set<String> channels, @Nonnull String nick, @Nonnull String userString, @Nonnull String host, @Nullable String realName, @Nullable String server, @Nullable String serverDescription, boolean secureConnection, @Nullable String operatorInformation, @Nullable Long idleTime, @Nullable Long signOnTime, @Nullable String awayMessage)
client - clientaccount - account, if knownchannels - channels the user known to be innick - nicknameuserString - user stringhost - hostrealName - real name, if knownserver - server, if knownserverDescription - server description, if knownsecureConnection - if the connection is known to be secureoperatorInformation - any operator information, if knownidleTime - how long the user has been idle, if knownsignOnTime - when the user signed on, if knownawayMessage - user away message, if known@Nonnull public Optional<String> getAccount()
UsergetAccount in interface UserCapabilityManager.getCapabilities(),
ServerInfo.hasWhoXSupport()@Nonnull public Optional<String> getAwayMessage()
UsergetAwayMessage in interface User@Nonnull public Set<String> getChannels()
UsergetChannels in interface User@Nonnull public String getHost()
User@Nonnull public String getNick()
User@Nonnull public Optional<String> getRealName()
UsergetRealName in interface User@Nonnull public Optional<String> getServer()
User@Nonnull public String getUserString()
UsergetUserString in interface Userpublic boolean isAway()
User@Nonnull public String getMessagingName()
MessageReceivergetMessagingName in interface MessageReceiver@Nonnull public String getName()
Actor@Nonnull public Client getClient()
ClientLinkedgetClient in interface ClientLinkedpublic long getCreationTime()
SnapshotgetCreationTime in interface SnapshotSystem.currentTimeMillis()@Nonnull public Optional<Long> getIdleTime()
WhoisDatagetIdleTime in interface WhoisData@Nonnull public Optional<String> getOperatorInformation()
UserExample: "is an Operator".
getOperatorInformation in interface User@Nonnull public Optional<String> getServerDescription()
WhoisDatagetServerDescription in interface WhoisData@Nonnull public Optional<Long> getSignOnTime()
WhoisDatagetSignOnTime in interface WhoisDatapublic boolean isSecureConnection()
WhoisDataisSecureConnection in interface WhoisDataCopyright © 2013–2019 Kitteh. All rights reserved.