public interface DirectMessagesResources
| Modifier and Type | Method and Description | 
|---|---|
| DirectMessage | destroyDirectMessage(long 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(long 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. | 
| DirectMessage | showDirectMessage(long id)Returns a single direct message, specified by an id parameter. | 
ResponseList<DirectMessage> getDirectMessages() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<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 unavailableResponseList<DirectMessage> getSentDirectMessages() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<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 unavailableDirectMessage showDirectMessage(long id) throws TwitterException
id - message idTwitterException - when Twitter service or network is unavailableDirectMessage destroyDirectMessage(long id) throws TwitterException
id - the ID of the direct message to destroyTwitterException - when Twitter service or network is unavailableDirectMessage sendDirectMessage(long 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 unavailableDirectMessage 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