public interface FavoriteMethods
| Modifier and Type | Method and Description |
|---|---|
Status |
createFavorite(long id)
Favorites the status specified in the ID parameter as the authenticating user.
|
Status |
destroyFavorite(long id)
Un-favorites the status specified in the ID parameter as the authenticating user.
|
ResponseList<Status> |
getFavorites()
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
getFavorites(int page)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
getFavorites(Paging paging)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
getFavorites(java.lang.String id)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
getFavorites(java.lang.String id,
int page)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
getFavorites(java.lang.String id,
Paging paging)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> getFavorites() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<Status> getFavorites(int page) throws TwitterException
page - the number of pageTwitterException - when Twitter service or network is unavailableResponseList<Status> getFavorites(java.lang.String id) throws TwitterException
id - the ID or screen name of the user for whom to request a list of favorite statusesTwitterException - when Twitter service or network is unavailableResponseList<Status> getFavorites(java.lang.String id, int page) throws TwitterException
id - the ID or screen name of the user for whom to request a list of favorite statusespage - the number of pageTwitterException - when Twitter service or network is unavailableResponseList<Status> getFavorites(Paging paging) throws TwitterException
paging - controls pagination. Supports sinceId and page parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getFavorites(java.lang.String id, Paging paging) throws TwitterException
id - the ID or screen name of the user for whom to request a list of favorite statusespaging - controls pagination. Supports sinceId and page parameters.TwitterException - when Twitter service or network is unavailableStatus createFavorite(long id) throws TwitterException
id - the ID of the status to favoriteTwitterException - when Twitter service or network is unavailableStatus destroyFavorite(long id) throws TwitterException
id - the ID of the status to un-favoriteTwitterException - when Twitter service or network is unavailable