Interface CommunicationService
- All Known Implementing Classes:
GuildCommunicationService
,PersonCommunicationService
public interface CommunicationService
- Author:
- maartenl
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic PersonCommunicationService
getCommunicationService
(Person person) Returns the communication service, based on a person.static PersonCommunicationService
getCommunicationService
(Person person, Consumer<String> consumer) Returns the communication service, based on a person.static GuildCommunicationService
getCommunicationService
(Guild guild) Returns the communication service, based on a guild.static RoomCommunicationService
getCommunicationService
(Room room) Returns the communication service, based on a room.
-
Method Details
-
getCommunicationService
Returns the communication service, based on a person. What this means is, that the person provided is the one receiving the messages.- Parameters:
person
- the person to base the communication on. What this means is, that the person provided is the one receiving the messages.- Returns:
- the service
-
getCommunicationService
Returns the communication service, based on a person. What this means is, that the person provided is the one receiving the messages. This is only used for testing!- Parameters:
person
- the person to base the communication on. What this means is, that the person provided is the one receiving the messages.consumer
- the consumer to call for registering logon messages, so they can be verified in tests.- Returns:
- the service
-
getCommunicationService
Returns the communication service, based on a room.- Parameters:
room
- the room to base the communication on.- Returns:
- the service
-
getCommunicationService
Returns the communication service, based on a guild.- Parameters:
guild
- the guild to base the communication on.- Returns:
- the service
-