com.zion.jbuddy.bots.event
Class BotSendMessageEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.zion.jbuddy.bots.event.BotClientEvent
          extended by com.zion.jbuddy.bots.event.BotSendMessageEvent
All Implemented Interfaces:
Serializable

public class BotSendMessageEvent
extends BotClientEvent

Encapsulates sendMessage event information.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BotSendMessageEvent(BotClient client, String userName, BotMessage message)
          This constructor is called from BotEngine and should not be used by outside implementations.
 
Method Summary
 BotMessage getMessage()
          Returns the message being sent.
 String getUserName()
          Returns the name of the user being sent to.
 String toString()
           
 
Methods inherited from class com.zion.jbuddy.bots.event.BotClientEvent
getClient
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BotSendMessageEvent

public BotSendMessageEvent(BotClient client,
                           String userName,
                           BotMessage message)
This constructor is called from BotEngine and should not be used by outside implementations.

Method Detail

getUserName

public String getUserName()
Returns the name of the user being sent to.


getMessage

public BotMessage getMessage()
Returns the message being sent.


toString

public String toString()
Overrides:
toString in class EventObject


JBuddy is a trademark of Zion Software, LLC in the US and other countries.
Copyright 2000-2008 Zion Software, LLC All Rights Reserved.