Class ChannelMoveHandler

java.lang.Object
nl.andrewl.concord_server.event.ChannelMoveHandler
All Implemented Interfaces:
MessageHandler<nl.andrewl.concord_core.msg.types.channel.MoveToChannel>

public class ChannelMoveHandler extends Object implements MessageHandler<nl.andrewl.concord_core.msg.types.channel.MoveToChannel>
Handles client requests to move to another channel. We first check if the id which the client sent refers to a channel, in which case we move them to that channel. Otherwise, we look for a client with that id, and try to move the requester into a private channel with them.
  • Constructor Details

    • ChannelMoveHandler

      public ChannelMoveHandler()
  • Method Details

    • handle

      public void handle(nl.andrewl.concord_core.msg.types.channel.MoveToChannel msg, ClientThread client, ConcordServer server)
      Specified by:
      handle in interface MessageHandler<nl.andrewl.concord_core.msg.types.channel.MoveToChannel>