public interface ActorTracker extends Resettable
Modifier and Type | Method and Description |
---|---|
@NonNull Actor |
getActor(@NonNull String name)
Gets an Actor based on the name provided.
|
@NonNull Optional<Channel> |
getChannel(@NonNull String channel)
Gets a channel.
|
@NonNull Optional<Channel> |
getTrackedChannel(@NonNull String channel)
Gets a tracked channel.
|
@NonNull Set<Channel> |
getTrackedChannels()
Gets all tracked channels.
|
@NonNull Optional<User> |
getTrackedUser(@NonNull String nick)
Gets a tracked user.
|
boolean |
isStale(@NonNull Staleable staleable)
Gets if the given staleable object is considered stale by the tracker.
|
void |
setChannelListReceived(@NonNull String channel)
Sets a channel is having had the full user list received.
|
void |
setChannelModeInfoList(@NonNull String channel,
char mode,
List<ModeInfo> modeInfo)
Sets a channel's mode info list for a given mode, such as bans.
|
void |
setChannelTopic(@NonNull String channel,
@NonNull String topic)
Sets a channel's topic.
|
void |
setChannelTopicInfo(@NonNull String channel,
long time,
@NonNull Actor actor)
Sets info on a channel's topic.
|
void |
setQueryChannelInformation(boolean query)
Sets if channel information should be queried (WHO, MODE)
automatically on join.
|
void |
setUserAccount(@NonNull String nick,
@Nullable String account)
Sets the account for a tracked user.
|
void |
setUserAway(@NonNull String nick,
boolean away)
Sets a user as away without knowing the away message.
|
void |
setUserAway(@NonNull String nick,
@Nullable String message)
Sets a user away message, setting them to be recorded as away.
|
void |
setUserOperString(@NonNull String nick,
@NonNull String operString)
Sets OPER information known about a user.
|
void |
setUserRealName(@NonNull String nick,
@NonNull String realName)
Sets the real name of the user.
|
void |
setUserServer(@NonNull String nick,
@NonNull String server)
Sets the server of a user.
|
boolean |
shouldQueryChannelInformation()
Gets if channel information should be queried (WHO, MODE)
automatically on join.
|
void |
trackChannel(@NonNull String channel)
Tracks a channel.
|
void |
trackChannelMode(@NonNull String channel,
@NonNull ChannelMode mode,
boolean track)
Sets tracking status of a mode (such as bans).
|
void |
trackChannelModeInfo(@NonNull String channel,
boolean add,
@NonNull ModeInfo modeInfo)
Tracks mode info.
|
void |
trackChannelNick(@NonNull String channel,
@NonNull String nick,
@NonNull Set<ChannelUserMode> modes)
Tracks a user based on likely nickname input.
|
void |
trackChannelUser(@NonNull String channel,
@NonNull User user,
@NonNull Set<ChannelUserMode> modes)
Tracks a user.
|
void |
trackUser(@NonNull User user)
Tracks a user.
|
void |
trackUserHostnameChange(@NonNull String nick,
@NonNull String newHostname)
Tracks a user's hostname changing.
|
void |
trackUserNickChange(@NonNull String oldNick,
@NonNull String newNick)
Tracks a user's nick change.
|
void |
trackUserPart(@NonNull String channel,
@NonNull String nick)
Tracks a user parting a channel, potentially untracking them overall
if they are no longer in any tracked channel.
|
void |
trackUserQuit(@NonNull String nick)
Tracks a user quitting, removing them from all channels in which they
were tracked.
|
void |
trackUserRealnameChange(@NonNull String nick,
@NonNull String newRealname)
Tracks a user's realname changing.
|
void |
trackUserUserStringChange(@NonNull String nick,
@NonNull String newUserString)
Tracks a users's user string (ident) changing.
|
void |
unTrackChannel(@NonNull String channel)
Stops tracking a channel.
|
void |
updateChannelModes(@NonNull String channel,
@NonNull ModeStatusList<ChannelMode> statusList)
Updates status modes.
|
reset
@NonNull Actor getActor(@NonNull String name)
For User
the name needs the full mask and for channels the
name needs the prefix.
name
- name@NonNull Optional<Channel> getChannel(@NonNull String channel)
channel
- channel name@NonNull Optional<Channel> getTrackedChannel(@NonNull String channel)
channel
- channel name@NonNull Set<Channel> getTrackedChannels()
@NonNull Optional<User> getTrackedUser(@NonNull String nick)
nick
- nickname of the userboolean isStale(@NonNull Staleable staleable)
staleable
- potentially stale objectvoid setChannelListReceived(@NonNull String channel)
channel
- channelvoid setChannelModeInfoList(@NonNull String channel, char mode, List<ModeInfo> modeInfo)
channel
- channelmode
- modemodeInfo
- mode infovoid setChannelTopic(@NonNull String channel, @NonNull String topic)
channel
- channeltopic
- topicvoid setChannelTopicInfo(@NonNull String channel, long time, @NonNull Actor actor)
channel
- channeltime
- topic set timeactor
- topic settervoid setQueryChannelInformation(boolean query)
query
- true to query, false to notvoid setUserAccount(@NonNull String nick, @Nullable String account)
nick
- nickaccount
- account or null if signed outvoid setUserAway(@NonNull String nick, @Nullable String message)
nick
- nickmessage
- away message or null for not awayvoid setUserAway(@NonNull String nick, boolean away)
nick
- nickaway
- true for away, false for not awayvoid setUserOperString(@NonNull String nick, @NonNull String operString)
nick
- nickoperString
- oper infovoid setUserRealName(@NonNull String nick, @NonNull String realName)
nick
- nickrealName
- real namevoid setUserServer(@NonNull String nick, @NonNull String server)
nick
- nickserver
- serverboolean shouldQueryChannelInformation()
void trackChannel(@NonNull String channel)
channel
- channel to trackvoid trackChannelMode(@NonNull String channel, @NonNull ChannelMode mode, boolean track)
channel
- channelmode
- mode to tracktrack
- true to track false to stop trackingvoid trackChannelModeInfo(@NonNull String channel, boolean add, @NonNull ModeInfo modeInfo)
channel
- channeladd
- true to add false to removemodeInfo
- infovoid trackChannelNick(@NonNull String channel, @NonNull String nick, @NonNull Set<ChannelUserMode> modes)
channel
- channelnick
- nickmodes
- modes on the uservoid trackChannelUser(@NonNull String channel, @NonNull User user, @NonNull Set<ChannelUserMode> modes)
channel
- channeluser
- usermodes
- modes on uservoid trackUser(@NonNull User user)
user
- user to trackvoid trackUserHostnameChange(@NonNull String nick, @NonNull String newHostname)
nick
- nicknewHostname
- new hostnamevoid trackUserNickChange(@NonNull String oldNick, @NonNull String newNick)
oldNick
- old nicknewNick
- new nickvoid trackUserRealnameChange(@NonNull String nick, @NonNull String newRealname)
nick
- nicknewRealname
- new realnamevoid trackUserPart(@NonNull String channel, @NonNull String nick)
channel
- channelnick
- nick partingvoid trackUserQuit(@NonNull String nick)
nick
- nick quittingvoid trackUserUserStringChange(@NonNull String nick, @NonNull String newUserString)
nick
- nicknewUserString
- new user stringvoid unTrackChannel(@NonNull String channel)
channel
- channel to untrackvoid updateChannelModes(@NonNull String channel, @NonNull ModeStatusList<ChannelMode> statusList)
channel
- channelstatusList
- mode status listCopyright © 2013–2021 Kitteh. All rights reserved.