Package ovh.mythmc.social.api.chat
Interface ChatParticipant
- All Known Subinterfaces:
InGameSocialUser,SocialUser
- All Known Implementing Classes:
AbstractSocialUser,BukkitSocialUser,ConsoleSocialUser
public interface ChatParticipant
Represents a participant in the chat system.
A ChatParticipant can have a main chat channel, optionally belong to a group channel,
block certain channels, and track the last private message recipient. Some fields are
wrapped in Mutable to indicate that they can be modified safely by the system or API consumers.
Implementations of this interface should provide thread-safe access to mutable fields where necessary.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of channel names that this participant has blocked.Gets the group chat channel the participant is currently part of, if any.Gets the last participant to whom this user sent a private message.Gets the participant's main chat channel.
-
Method Details
-
mainChannel
Gets the participant's main chat channel.This is wrapped in
Mutableso the main channel can be changed dynamically.- Returns:
- a
Mutablecontaining the currentChatChannel
-
groupChannel
Gets the group chat channel the participant is currently part of, if any.- Returns:
- an
Optionalcontaining theGroupChatChannel, or empty if not in a group
-
blockedChannels
Returns the set of channel names that this participant has blocked.Blocked channels are those whose messages the participant will not receive.
- Returns:
- an immutable
Setof blocked channel IDs
-
lastPrivateMessageRecipient
Gets the last participant to whom this user sent a private message.This is wrapped in
Mutableso it can be updated whenever a private message is sent.
-