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(@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)
Creates the default WHOIS data object.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull Optional<String> |
getAccount()
Gets the Services account this user is signed into.
|
@NonNull Optional<String> |
getAwayMessage()
Gets, if one is set and known, the away message for the user.
|
@NonNull Set<String> |
getChannels()
Gets the user's channels.
|
@NonNull Client |
getClient()
Gets the Client to which this belongs.
|
long |
getCreationTime()
Gets the time this snapshot was created.
|
@NonNull String |
getHost()
Gets the user's host.
|
@NonNull Optional<Long> |
getIdleTime()
Gets how long the user has been idle.
|
@NonNull String |
getMessagingName()
Gets the name used when sending messages.
|
@NonNull String |
getName()
Gets the Actor's name.
|
@NonNull String |
getNick()
Gets the user's nick.
|
@NonNull 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.
|
@NonNull Optional<String> |
getRealName()
Gets the user's real name
|
@NonNull Optional<String> |
getServer()
Gets the name of the server the user is on.
|
@NonNull Optional<String> |
getServerDescription()
Gets the description of the server the user is on.
|
@NonNull Optional<Long> |
getSignOnTime()
Gets the time at which this user signed on to the server.
|
@NonNull 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.
|
@NonNull 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 knownpublic @NonNull Optional<String> getAccount()
UsergetAccount in interface UserCapabilityManager.getCapabilities(),
ServerInfo.hasWhoXSupport()public @NonNull Optional<String> getAwayMessage()
UsergetAwayMessage in interface Userpublic @NonNull Set<String> getChannels()
UsergetChannels in interface Userpublic @NonNull String getHost()
Userpublic @NonNull String getNick()
Userpublic @NonNull Optional<String> getRealName()
UsergetRealName in interface Userpublic @NonNull Optional<String> getServer()
Userpublic @NonNull String getUserString()
UsergetUserString in interface Userpublic boolean isAway()
Userpublic @NonNull String getMessagingName()
MessageReceivergetMessagingName in interface MessageReceiverpublic @NonNull String getName()
Actorpublic @NonNull Client getClient()
ClientLinkedgetClient in interface ClientLinkedpublic long getCreationTime()
SnapshotgetCreationTime in interface SnapshotSystem.currentTimeMillis()public @NonNull Optional<Long> getIdleTime()
WhoisDatagetIdleTime in interface WhoisDatapublic @NonNull Optional<String> getOperatorInformation()
UserExample: "is an Operator".
getOperatorInformation in interface Userpublic @NonNull Optional<String> getServerDescription()
WhoisDatagetServerDescription in interface WhoisDatapublic @NonNull Optional<Long> getSignOnTime()
WhoisDatagetSignOnTime in interface WhoisDatapublic boolean isSecureConnection()
WhoisDataisSecureConnection in interface WhoisDataCopyright © 2013–2021 Kitteh. All rights reserved.