public class DefaultUser extends DefaultStaleable implements User
User.| Constructor and Description |
|---|
DefaultUser(Client.WithManagement client,
String name,
String account,
String awayMessage,
String nick,
String user,
String host,
boolean isAway,
String operString,
String realName,
String server,
Set<String> channels)
Constructs the object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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.
|
String |
getHost()
Gets the user's host.
|
String |
getMessagingName()
Gets the name used when sending messages.
|
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.
|
String |
getUserString()
Gets the user's user string.
|
int |
hashCode() |
boolean |
isAway()
Gets if the user is away.
|
String |
toString() |
isStalegetClient, getCreationTime, getNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLowerCaseMessagingName, sendCtcpMessage, sendMessage, sendMultiLineMessage, sendMultiLineMessage, sendMultiLineNotice, sendMultiLineNotice, sendNoticegetLowerCaseName, getNamegetCreationTimegetClientpublic DefaultUser(@Nonnull Client.WithManagement client, @Nonnull String name, @Nullable String account, @Nullable String awayMessage, @Nonnull String nick, @Nonnull String user, @Nonnull String host, boolean isAway, @Nullable String operString, @Nullable String realName, @Nullable String server, @Nonnull Set<String> channels)
client - client from which this camename - full mask nameaccount - account, if knownawayMessage - away message, if knownnick - nickuser - user string (ident)host - hostisAway - true if awayoperString - oper info, if knownrealName - real name, if knownserver - server info, if knownchannels - channels they are in@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 getMessagingName()
MessageReceivergetMessagingName in interface MessageReceiver@Nonnull public String getNick()
User@Nonnull public Optional<String> getOperatorInformation()
UserExample: "is an Operator".
getOperatorInformation in interface 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 toString()
toString in class DefaultActorCopyright © 2013–2019 Kitteh. All rights reserved.