|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectMessageOperations
Interface defining the Twitter operations for working with direct messages.
Method Summary | |
---|---|
void |
deleteDirectMessage(long messageId)
Deletes a direct message for the authenticated user. |
java.util.List<DirectMessage> |
getDirectMessagesReceived()
Retrieve the 20 most recently received direct messages for the authenticating user. |
java.util.List<DirectMessage> |
getDirectMessagesSent()
Retrieve the 20 most recently sent direct messages for the authenticating user. |
void |
sendDirectMessage(long toUserId,
java.lang.String text)
Sends a direct message to another Twitter user. |
void |
sendDirectMessage(java.lang.String toScreenName,
java.lang.String text)
Sends a direct message to another Twitter user. |
Method Detail |
---|
java.util.List<DirectMessage> getDirectMessagesReceived()
DirectMessage
with the authenticating user as the recipient.java.util.List<DirectMessage> getDirectMessagesSent()
DirectMessage
with the authenticating
user as the sender.void sendDirectMessage(java.lang.String toScreenName, java.lang.String text)
InvalidMessageRecipientException
will be thrown.
toScreenName
- the screen name of the recipient of the messages.text
- the message text.
InvalidMessageRecipientException
- if the recipient is not following the authenticating user.
DuplicateTweetException
- if the message duplicates a previously sent message.void sendDirectMessage(long toUserId, java.lang.String text)
InvalidMessageRecipientException
will be thrown.
toUserId
- the Twitter user ID of the recipient of the messages.text
- the message text.
InvalidMessageRecipientException
- if the recipient is not following the authenticating user.
DuplicateTweetException
- if the message duplicates a previously sent message.void deleteDirectMessage(long messageId)
messageId
- the ID of the message to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |