org.pandora.sense.twitter
Class TwitterDirectMessaging

java.lang.Object
  extended by org.pandora.sense.BasicSense
      extended by org.pandora.sense.twitter.Twitter
          extended by org.pandora.sense.twitter.TwitterDirectMessaging
All Implemented Interfaces:
Sense

public class TwitterDirectMessaging
extends Twitter

Enables receiving a sending direct messages through Twitter.


Field Summary
 
Fields inherited from class org.pandora.sense.twitter.Twitter
SLEEP, TREND_CHECK
 
Fields inherited from class org.pandora.sense.BasicSense
DEFAULT_SPEAKER, RETRY
 
Constructor Summary
TwitterDirectMessaging()
           
TwitterDirectMessaging(boolean isEnabled)
           
 
Method Summary
 void checkDirectMessages()
          Check direct messages and reply.
 void checkProfile()
          Check profile for messages.
 void input(java.lang.Object input, Network network)
          Process the email message.
 void inputSentence(java.lang.String text, java.lang.String userName, java.lang.String targetUserName, Network network)
          Process the text sentence.
 void output(Vertex output)
          Output the status or direct message reply.
 void sendMessage(java.lang.String text, java.lang.String replyUser)
          Send a message to the user.
 
Methods inherited from class org.pandora.sense.twitter.Twitter
addFriend, authorizeAccount, authorizeComplete, awake, checkFollowers, checkStatus, checkTrends, connect, getConnection, getFollowers, getFriends, getOauthKey, getOauthSecret, getPassword, getTimeline, getToken, getTokenSecret, getUserName, log, outputTweet, removeFriend, setConnection, setIsEnabled, setOauthKey, setOauthSecret, setPassword, setToken, setTokenSecret, setUserName, startCheckingProfile, tweet
 
Methods inherited from class org.pandora.sense.BasicSense
getEmotionalState, getLanguageState, getName, getPandora, getPrimitive, getShortTermMemory, initialize, input, isEnabled, log, log, log, setEmotionalState, setLanguageState, setName, setPandora, shutdown, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TwitterDirectMessaging

public TwitterDirectMessaging()

TwitterDirectMessaging

public TwitterDirectMessaging(boolean isEnabled)
Method Detail

checkProfile

public void checkProfile()
Check profile for messages.

Overrides:
checkProfile in class Twitter

checkDirectMessages

public void checkDirectMessages()
Check direct messages and reply.


sendMessage

public void sendMessage(java.lang.String text,
                        java.lang.String replyUser)
Send a message to the user.


input

public void input(java.lang.Object input,
                  Network network)
Process the email message.

Specified by:
input in interface Sense
Overrides:
input in class Twitter

inputSentence

public void inputSentence(java.lang.String text,
                          java.lang.String userName,
                          java.lang.String targetUserName,
                          Network network)
Process the text sentence.

Overrides:
inputSentence in class Twitter

output

public void output(Vertex output)
Output the status or direct message reply.

Specified by:
output in interface Sense
Overrides:
output in class Twitter