com.levelonelabs.aimbot.modules
Class MessengerModule

java.lang.Object
  extended bycom.levelonelabs.aimbot.BotModule
      extended bycom.levelonelabs.aimbot.modules.MessengerModule

public class MessengerModule
extends BotModule

A class to handle on-offline messaging

Author:
Will Gorman, Scott Oster

Field Summary
 
Fields inherited from class com.levelonelabs.aimbot.BotModule
bot
 
Constructor Summary
MessengerModule(AIMBot bot)
          Constructor for the MessengerModule object
 
Method Summary
 void addMessage(AIMBuddy to, AIMBuddy from, java.lang.String message)
          Called when someone leaves a message for someone else to add the message.
 java.lang.String getName()
          Gets the name attribute of the MessengerModule object
 java.util.ArrayList getServices()
          Gets the services attribute of the MessengerModule object
 java.lang.String help()
          Describes the usage of the module
 void performService(AIMBuddy buddy, java.lang.String query)
          Handle a messaging query
 boolean retrieveMessages(AIMBuddy buddy)
          Grabs and sends any stored messages for a buddy when they sign on
 
Methods inherited from class com.levelonelabs.aimbot.BotModule
addAIMListener, addBuddies, addBuddy, denyBuddy, getBuddy, getBuddyNames, getPermitMode, permitBuddy, removeBuddies, removeBuddy, sendMessage, sendWarning, setAvailable, setPermitMode, setUnavailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessengerModule

public MessengerModule(AIMBot bot)
Constructor for the MessengerModule object

Parameters:
bot -
Method Detail

getName

public java.lang.String getName()
Gets the name attribute of the MessengerModule object

Specified by:
getName in class BotModule
Returns:
The name value

getServices

public java.util.ArrayList getServices()
Gets the services attribute of the MessengerModule object

Specified by:
getServices in class BotModule
Returns:
The services value

help

public java.lang.String help()
Describes the usage of the module

Specified by:
help in class BotModule
Returns:
the usage of the module

addMessage

public void addMessage(AIMBuddy to,
                       AIMBuddy from,
                       java.lang.String message)
Called when someone leaves a message for someone else to add the message.

Parameters:
to - target buddy
from - sending buddy
message - message sent

retrieveMessages

public boolean retrieveMessages(AIMBuddy buddy)
Grabs and sends any stored messages for a buddy when they sign on

Parameters:
buddy -
Returns:
whether any messages where found

performService

public void performService(AIMBuddy buddy,
                           java.lang.String query)
Handle a messaging query

Specified by:
performService in class BotModule
Parameters:
buddy -
query -


Copyright © 2001-2005 Java AIM Bot. All Rights Reserved.