com.levelonelabs.aimbot.modules
Class TVListingsModule

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

public class TVListingsModule
extends BotModule

Handles requests to get tv episode summaries for a particular show. This is extremely brittle, and should be considered expiremental.

Author:
Scott Oster

Field Summary
 
Fields inherited from class com.levelonelabs.aimbot.BotModule
bot
 
Constructor Summary
TVListingsModule(AIMBot bot)
          Constructor for TVListingsModule.
 
Method Summary
 java.lang.String getName()
          Gets the canonical name of the BotModule
 java.util.ArrayList getServices()
          Must implement this to return a list of Strings that represent the keywords the module wants to be called for
 java.lang.String help()
          A String to be presented to a client that descibes the services (keywords) this module provides.
 void performService(AIMBuddy buddy, java.lang.String query)
          Grab show detail, or list the providers
 
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

TVListingsModule

public TVListingsModule(AIMBot bot)
Constructor for TVListingsModule.

Parameters:
bot -
Method Detail

getName

public java.lang.String getName()
Description copied from class: BotModule
Gets the canonical name of the BotModule

Specified by:
getName in class BotModule
Returns:
The name of the module
See Also:
BotModule.getName()

getServices

public java.util.ArrayList getServices()
Description copied from class: BotModule
Must implement this to return a list of Strings that represent the keywords the module wants to be called for

Specified by:
getServices in class BotModule
Returns:
all list of strings that are the keywords the module wants to hear about
See Also:
BotModule.getServices()

help

public java.lang.String help()
Description copied from class: BotModule
A String to be presented to a client that descibes the services (keywords) this module provides. NOTE: a URL to documentation is acceptable.

Specified by:
help in class BotModule
Returns:
the help text
See Also:
BotModule.help()

performService

public void performService(AIMBuddy buddy,
                           java.lang.String query)
Grab show detail, or list the providers

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


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