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.
|
InputStream |
getDMImageAsStream(String url)
Returns a stream of the image included in direct messages.
|
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,
String text)
Sends a new direct message to the specified user from the authenticating user.
|
DirectMessage |
sendDirectMessage(String screenName,
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, 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(String screenName, 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 unavailableInputStream getDMImageAsStream(String url) throws TwitterException
url
- image urlTwitterException
- when Twitter service or network is unavailableCopyright © 2016. All rights reserved.