|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListOperations
Interface defining the operations for working with a user's lists.
Method Summary | |
---|---|
UserList |
addToList(long listId,
long... newMemberIds)
Adds one or more new members to a user list. |
UserList |
addToList(long listId,
java.lang.String... newMemberScreenNames)
Adds one or more new members to a user list. |
UserList |
createList(java.lang.String name,
java.lang.String description,
boolean isPublic)
Create a new user list |
void |
deleteList(long listId)
Removes a user list. |
UserList |
getList(long listId)
Retrieves a specific user list. |
UserList |
getList(java.lang.String screenName,
java.lang.String listSlug)
Retrieves a specific user list. |
java.util.List<TwitterProfile> |
getListMembers(long listId)
Retrieves a list of Twitter profiles whose users are members of the list. |
java.util.List<TwitterProfile> |
getListMembers(java.lang.String screenName,
java.lang.String listSlug)
Retrieves a list of Twitter profiles whose users are members of the list. |
java.util.List<UserList> |
getLists()
Retrieves user lists for the authenticated user. |
java.util.List<UserList> |
getLists(long userId)
Retrieves user lists for a given user. |
java.util.List<UserList> |
getLists(java.lang.String screenName)
Retrieves user lists for a given user. |
java.util.List<Tweet> |
getListStatuses(long listId)
Retrieves the timeline tweets for the given user list. |
java.util.List<Tweet> |
getListStatuses(java.lang.String screenName,
java.lang.String listSlug)
Retrieves the timeline tweets for the given user list. |
java.util.List<TwitterProfile> |
getListSubscribers(long userId,
long listId)
Retrieves the subscribers to a list. |
java.util.List<TwitterProfile> |
getListSubscribers(java.lang.String screenName,
java.lang.String listSlug)
Retrieves the subscribers to a list. |
java.util.List<UserList> |
getMemberships(long userId)
Retrieves the lists that a given user is a member of. |
java.util.List<UserList> |
getMemberships(java.lang.String screenName)
Retrieves the lists that a given user is a member of. |
java.util.List<UserList> |
getSubscriptions(long userId)
Retrieves the lists that a given user is subscribed to. |
java.util.List<UserList> |
getSubscriptions(java.lang.String screenName)
Retrieves the lists that a given user is subscribed to. |
boolean |
isMember(long listId,
long memberId)
Checks to see if a given user is a member of a given list. |
boolean |
isMember(java.lang.String screenName,
java.lang.String listSlug,
java.lang.String memberScreenName)
Checks to see if a given user is a member of a given list. |
boolean |
isSubscriber(long listId,
long subscriberId)
Checks to see if a given user subscribes to a given list. |
boolean |
isSubscriber(java.lang.String screenName,
java.lang.String listSlug,
java.lang.String subscriberScreenName)
Checks to see if a given user subscribes to a given list. |
void |
removeFromList(long listId,
long memberId)
Removes a member from a user list. |
void |
removeFromList(long listId,
java.lang.String memberScreenName)
Removes a member from a user list. |
UserList |
subscribe(long listId)
Subscribes the authenticating user to a list. |
UserList |
subscribe(java.lang.String screenName,
java.lang.String listSlug)
Subscribes the authenticating user to a list. |
UserList |
unsubscribe(long listId)
Unsubscribes the authenticating user from a list. |
UserList |
unsubscribe(java.lang.String screenName,
java.lang.String listSlug)
Unsubscribes the authenticating user from a list. |
UserList |
updateList(long listId,
java.lang.String name,
java.lang.String description,
boolean isPublic)
Updates an existing user list |
Method Detail |
---|
java.util.List<UserList> getLists()
UserList
s for the specified user.java.util.List<UserList> getLists(long userId)
userId
- the ID of the Twitter user.
UserList
s for the specified user.java.util.List<UserList> getLists(java.lang.String screenName)
screenName
- the screen name of the Twitter user.
UserList
s for the specified user.UserList getList(long listId)
listId
- the ID of the list to retrieve.
UserList
UserList getList(java.lang.String screenName, java.lang.String listSlug)
screenName
- the screen name of the list owner.listSlug
- the lists's slug
UserList
java.util.List<Tweet> getListStatuses(long listId)
listId
- the ID of the list to retrieve.
Tweet
objects for the items in the user list timeline.java.util.List<Tweet> getListStatuses(java.lang.String screenName, java.lang.String listSlug)
screenName
- the screen name of the Twitter user.listSlug
- the list's slug.
Tweet
objects for the items in the user list timeline.UserList createList(java.lang.String name, java.lang.String description, boolean isPublic)
name
- the name of the list.description
- the list description.isPublic
- if true, the list will be public; if false the list will be private.
UserList
UserList updateList(long listId, java.lang.String name, java.lang.String description, boolean isPublic)
listId
- the ID of the listname
- the new name of the list.description
- the new list description.isPublic
- if true, the list will be public; if false the list will be private.
UserList
void deleteList(long listId)
listId
- the ID of the list to be removed.java.util.List<TwitterProfile> getListMembers(long listId)
listId
- the ID of the list.
TwitterProfile
java.util.List<TwitterProfile> getListMembers(java.lang.String screenName, java.lang.String listSlug)
screenName
- the screen name of the list owner.listSlug
- the slug of the list.
TwitterProfile
UserList addToList(long listId, long... newMemberIds)
listId
- the ID of the list.newMemberIds
- one or more profile IDs of the Twitter profiles to add to the list.
UserList
UserList addToList(long listId, java.lang.String... newMemberScreenNames)
listId
- the ID of the list.newMemberScreenNames
- one or more profile IDs of the Twitter profiles to add to the list.
UserList
void removeFromList(long listId, long memberId)
listId
- the ID of the list.memberId
- the ID of the member to be removed.void removeFromList(long listId, java.lang.String memberScreenName)
listId
- the ID of the list.memberScreenName
- the ID of the member to be removed.UserList subscribe(long listId)
listId
- the ID of the list.
UserList
UserList subscribe(java.lang.String screenName, java.lang.String listSlug)
screenName
- the screen name of the list owner.listSlug
- the slug of the list.
UserList
UserList unsubscribe(long listId)
listId
- the ID of the list.
UserList
UserList unsubscribe(java.lang.String screenName, java.lang.String listSlug)
screenName
- the screen name of the list owner.listSlug
- the slug of the list.
UserList
java.util.List<TwitterProfile> getListSubscribers(long userId, long listId)
userId
- the user ID of the list owner.listId
- the ID of the list.
TwitterProfile
s for the list's subscribers.java.util.List<TwitterProfile> getListSubscribers(java.lang.String screenName, java.lang.String listSlug)
screenName
- the screen name of the list owner.listSlug
- the slug of the list.
TwitterProfile
s for the list's subscribers.java.util.List<UserList> getMemberships(long userId)
userId
- the user ID
UserList
s that the user is a member of.java.util.List<UserList> getMemberships(java.lang.String screenName)
screenName
- the user's screen name
UserList
s that the user is a member of.java.util.List<UserList> getSubscriptions(long userId)
userId
- the user ID
UserList
s that the user is subscribed to.java.util.List<UserList> getSubscriptions(java.lang.String screenName)
screenName
- the user's screen name
UserList
s that the user is subscribed to.boolean isMember(long listId, long memberId)
listId
- the list IDmemberId
- the user ID to check for membership
boolean isMember(java.lang.String screenName, java.lang.String listSlug, java.lang.String memberScreenName)
screenName
- the screen name of the list's ownerlistSlug
- the list's slugmemberScreenName
- the screenName to check for membership
boolean isSubscriber(long listId, long subscriberId)
listId
- the list IDsubscriberId
- the user ID to check for subscribership
boolean isSubscriber(java.lang.String screenName, java.lang.String listSlug, java.lang.String subscriberScreenName)
screenName
- the screen name of the list's ownerlistSlug
- the list's slugsubscriberScreenName
- the screenName to check for subscribership
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |