|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DirectMessageMethods
| Method Summary | |
|---|---|
DirectMessage |
destroyDirectMessage(int id)
Destroys the direct message specified in the required ID parameter. |
ResponseList<DirectMessage> |
getDirectMessages()
Returns a list of the direct messages sent to the authenticating user. |
ResponseList<DirectMessage> |
getDirectMessages(Paging paging)
Returns a list of the direct messages sent to the authenticating user. |
ResponseList<DirectMessage> |
getSentDirectMessages()
Returns a list of the direct messages sent by the authenticating user. |
ResponseList<DirectMessage> |
getSentDirectMessages(Paging paging)
Returns a list of the direct messages sent by the authenticating user. |
DirectMessage |
sendDirectMessage(int userId,
java.lang.String text)
Sends a new direct message to the specified user from the authenticating user. |
DirectMessage |
sendDirectMessage(java.lang.String screenName,
java.lang.String text)
Sends a new direct message to the specified user from the authenticating user. |
| Method Detail |
|---|
ResponseList<DirectMessage> getDirectMessages()
throws TwitterException
TwitterException - when Twitter service or network is unavailable
ResponseList<DirectMessage> getDirectMessages(Paging paging)
throws TwitterException
paging - controls pagination. Supports since_id, max_id, count and page parameters.
TwitterException - when Twitter service or network is unavailable
ResponseList<DirectMessage> getSentDirectMessages()
throws TwitterException
TwitterException - when Twitter service or network is unavailable
ResponseList<DirectMessage> getSentDirectMessages(Paging paging)
throws TwitterException
paging - controls pagination. Supports since_id, max_id, count and page parameters.
TwitterException - when Twitter service or network is unavailable
DirectMessage sendDirectMessage(java.lang.String screenName,
java.lang.String text)
throws TwitterException
screenName - the screen name of the user to whom send the direct messagetext - The text of your direct message.
TwitterException - when Twitter service or network is unavailable
DirectMessage sendDirectMessage(int userId,
java.lang.String text)
throws TwitterException
userId - the screen name of the user to whom send the direct messagetext - The text of your direct message.
TwitterException - when Twitter service or network is unavailable
DirectMessage destroyDirectMessage(int id)
throws TwitterException
id - the ID of the direct message to destroy
TwitterException - when Twitter service or network is unavailable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||