Interface CommunicationService

All Known Implementing Classes:
GuildCommunicationService, PersonCommunicationService

public interface CommunicationService
Author:
maartenl
  • Method Details

    • getCommunicationService

      static PersonCommunicationService getCommunicationService(Person person)
      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

      static PersonCommunicationService getCommunicationService(Person person, Consumer<String> consumer)
      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

      static RoomCommunicationService getCommunicationService(Room room)
      Returns the communication service, based on a room.
      Parameters:
      room - the room to base the communication on.
      Returns:
      the service
    • getCommunicationService

      static GuildCommunicationService getCommunicationService(Guild guild)
      Returns the communication service, based on a guild.
      Parameters:
      guild - the guild to base the communication on.
      Returns:
      the service