public interface ActorTracker extends Resettable
Modifier and Type | Method and Description |
---|---|
Actor |
getActor(String name)
Gets an Actor based on the name provided.
|
Optional<Channel> |
getTrackedChannel(String channel)
Gets a tracked channel.
|
Set<Channel> |
getTrackedChannels()
Gets all tracked channels.
|
Optional<User> |
getTrackedUser(String nick)
Gets a tracked user.
|
boolean |
isStale(Staleable staleable)
Gets if the given staleable object is considered stale by the tracker.
|
void |
setChannelListReceived(String channel)
Sets a channel is having had the full user list received.
|
void |
setChannelModeInfoList(String channel,
char mode,
List<ModeInfo> modeInfo)
Sets a channel's mode info list for a given mode, such as bans.
|
void |
setChannelTopic(String channel,
String topic)
Sets a channel's topic.
|
void |
setChannelTopicInfo(String channel,
long time,
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(String nick,
String account)
Sets the account for a tracked user.
|
void |
setUserAway(String nick,
boolean away)
Sets a user as away without knowing the away message.
|
void |
setUserAway(String nick,
String message)
Sets a user away message, setting them to be recorded as away.
|
void |
setUserOperString(String nick,
String operString)
Sets OPER information known about a user.
|
void |
setUserRealName(String nick,
String realName)
Sets the real name of the user.
|
void |
setUserServer(String nick,
String server)
Sets the server of a user.
|
boolean |
shouldQueryChannelInformation()
Gets if channel information should be queried (WHO, MODE)
automatically on join.
|
void |
trackChannel(String channel)
Tracks a channel.
|
void |
trackChannelMode(String channel,
ChannelMode mode,
boolean track)
Sets tracking status of a mode (such as bans).
|
void |
trackChannelModeInfo(String channel,
boolean add,
ModeInfo modeInfo)
Tracks mode info.
|
void |
trackChannelNick(String channel,
String nick,
Set<ChannelUserMode> modes)
Tracks a user based on likely nickname input.
|
void |
trackChannelUser(String channel,
User user,
Set<ChannelUserMode> modes)
Tracks a user.
|
void |
trackUser(User user)
Tracks a user.
|
void |
trackUserHostnameChange(String nick,
String newHostname)
Tracks a user's hostname changing.
|
void |
trackUserNickChange(String oldNick,
String newNick)
Tracks a user's nick change.
|
void |
trackUserPart(String channel,
String nick)
Tracks a user parting a channel, potentially untracking them overall
if they are no longer in any tracked channel.
|
void |
trackUserQuit(String nick)
Tracks a user quitting, removing them from all channels in which they
were tracked.
|
void |
trackUserUserStringChange(String nick,
String newUserString)
Tracks a users's user string (ident) changing.
|
void |
unTrackChannel(String channel)
Stops tracking a channel.
|
void |
updateChannelModes(String channel,
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> 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 trackUserHostnameChange(@Nonnull String nick, @Nonnull String newHostname)
nick
- nicknewHostname
- new hostnamevoid trackUserNickChange(@Nonnull String oldNick, @Nonnull String newNick)
oldNick
- old nicknewNick
- new nickvoid 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–2019 Kitteh. All rights reserved.