swpchat.server
Interface ChannelListener

All Superinterfaces:
ListenerBase
All Known Implementing Classes:
ClientConnection

public interface ChannelListener
extends ListenerBase

This interface has to be implemented by the classes, which want to receive events from the channels.

Author:
Christian Stuellenberg

Method Summary
 void emotion(java.lang.String channel, java.lang.String from, java.lang.String target, java.lang.String emo)
          method to send emotion
 void play(java.lang.String channel, java.lang.String from, java.lang.String audioKey)
          method to invoke the playing procedure
 void receive(java.lang.String channel, java.lang.String from, java.lang.String message)
          method to invoke the receiving procedure
 void ship(java.lang.String channel, java.lang.String from, java.lang.String receiver, boolean status)
          method ship is used for shiping
 void topicChanged(java.lang.String channel, java.lang.String from, java.lang.String topic)
          method to pass topicChanged
 void whispreceive(java.lang.String channel, java.lang.String from, java.lang.String message)
          method to invoke the whisper-receiving procedure
 
Methods inherited from interface swpchat.server.ListenerBase
getIdentifier
 

Method Detail

receive

public void receive(java.lang.String channel,
                    java.lang.String from,
                    java.lang.String message)
method to invoke the receiving procedure
Parameters:
channel - the Channel in which the message should be distributed
from - the client's nick, which is sending
message - the message to receive

topicChanged

public void topicChanged(java.lang.String channel,
                         java.lang.String from,
                         java.lang.String topic)
method to pass topicChanged
Parameters:
channel - the channel which distributes the topicChanged command
from - the client's nick, who changed the topic
audioKey - the topic

play

public void play(java.lang.String channel,
                 java.lang.String from,
                 java.lang.String audioKey)
method to invoke the playing procedure
Parameters:
channel - the channel which distributes the play command
from - the client's nick, which is making noise
audioKey - the audio-file's associated audioKey

whispreceive

public void whispreceive(java.lang.String channel,
                         java.lang.String from,
                         java.lang.String message)
method to invoke the whisper-receiving procedure
Parameters:
channel - the Channel in which the message should be distributed
from - the client's nick, which is whispering
message - the message to receive

emotion

public void emotion(java.lang.String channel,
                    java.lang.String from,
                    java.lang.String target,
                    java.lang.String emo)
method to send emotion
Parameters:
channel - the channel which distributes the play command
from - the client's nick
target - the target of the emotion
emo - the emotion to be send

ship

public void ship(java.lang.String channel,
                 java.lang.String from,
                 java.lang.String receiver,
                 boolean status)
method ship is used for shiping
Parameters:
channel - the Channel in which the message should be distributed
from - the client's nick, which is sending
message - the message to receive
status - on/off