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, wait
getLowerCaseMessagingName, sendCtcpMessage, sendMessage, sendMultiLineMessage, sendMultiLineMessage, sendMultiLineNotice, sendMultiLineNotice, sendNotice
getLowerCaseName
public 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()
User
getAccount
in interface User
CapabilityManager.getCapabilities()
,
ServerInfo.hasWhoXSupport()
public @NonNull Optional<String> getAwayMessage()
User
getAwayMessage
in interface User
public @NonNull Set<String> getChannels()
User
getChannels
in interface User
public @NonNull String getHost()
User
public @NonNull String getNick()
User
public @NonNull Optional<String> getRealName()
User
getRealName
in interface User
public @NonNull Optional<String> getServer()
User
public @NonNull String getUserString()
User
getUserString
in interface User
public boolean isAway()
User
public @NonNull String getMessagingName()
MessageReceiver
getMessagingName
in interface MessageReceiver
public @NonNull String getName()
Actor
public @NonNull Client getClient()
ClientLinked
getClient
in interface ClientLinked
public long getCreationTime()
Snapshot
getCreationTime
in interface Snapshot
System.currentTimeMillis()
public @NonNull Optional<Long> getIdleTime()
WhoisData
getIdleTime
in interface WhoisData
public @NonNull Optional<String> getOperatorInformation()
User
Example: "is an Operator".
getOperatorInformation
in interface User
public @NonNull Optional<String> getServerDescription()
WhoisData
getServerDescription
in interface WhoisData
public @NonNull Optional<Long> getSignOnTime()
WhoisData
getSignOnTime
in interface WhoisData
public boolean isSecureConnection()
WhoisData
isSecureConnection
in interface WhoisData
Copyright © 2013–2021 Kitteh. All rights reserved.