List of usage examples for twitter4j UserList getFullName
String getFullName();
From source file:net.lacolaco.smileessence.twitter.task.GetUserListsTask.java
License:Open Source License
@Override protected void onPostExecute(UserList[] lists) { for (UserList list : lists) { UserListCache.getInstance().put(list.getFullName()); }/*from w w w . j ava2 s. c om*/ }
From source file:net.lacolaco.smileessence.twitter.UserStreamListener.java
License:Open Source License
@Override public void onUserListSubscription(User subscriber, User listOwner, UserList list) { UserListCache.getInstance().put(list.getFullName()); }
From source file:net.lacolaco.smileessence.twitter.UserStreamListener.java
License:Open Source License
@Override public void onUserListUnsubscription(User subscriber, User listOwner, UserList list) { UserListCache.getInstance().remove(list.getFullName()); }
From source file:net.lacolaco.smileessence.twitter.UserStreamListener.java
License:Open Source License
@Override public void onUserListCreation(User listOwner, UserList list) { UserListCache.getInstance().put(list.getFullName()); }
From source file:net.lacolaco.smileessence.twitter.UserStreamListener.java
License:Open Source License
@Override public void onUserListDeletion(User listOwner, UserList list) { UserListCache.getInstance().remove(list.getFullName()); }
From source file:org.examproject.tweet.service.SimpleTweetService.java
License:Apache License
@Override public List<String> getUserListNameList() { LOG.debug("called."); try {/* w ww.ja v a 2 s .com*/ List<String> userListNameList = new ArrayList<String>(); PagableResponseList<UserList> userList = getUserList(); for (UserList list : userList) { LOG.debug("list FullName: " + list.getFullName()); userListNameList.add(list.getFullName()); } return userListNameList; } catch (Exception e) { LOG.error("an error occurred: " + e.getMessage()); throw new RuntimeException(e); } }
From source file:org.examproject.tweet.service.SimpleTweetService.java
License:Apache License
private ResponseList<Status> getResponseList() { LOG.debug("called."); long cursol = -1; int listId = 0; int count = 50; int pageNumber = 1; Paging paging = new Paging(pageNumber, count); try {/*from w w w . ja v a 2s .c om*/ // TODO: polymorphism to here? -> plugin. // home if (paramValue.getResponseListMode().equals("home")) { Twitter twitter = getTwitter(); return twitter.getHomeTimeline(paging); } // user if (paramValue.getResponseListMode().equals("user")) { Twitter twitter = getTwitter(); return twitter.getUserTimeline(paging); } // list if (paramValue.getResponseListMode().equals("list")) { if (paramValue.getUserListName().length() != 0) { Twitter twitter = getTwitter(); PagableResponseList<UserList> lists = twitter.getUserLists(twitter.getScreenName(), cursol); for (UserList list : lists) { String listFullName = list.getFullName(); if (listFullName.equals(paramValue.getUserListName())) { listId = list.getId(); return twitter.getUserListStatuses(listId, paging); } } } } // default.. Twitter twitter = getTwitter(); return twitter.getHomeTimeline(); } catch (TwitterException te) { // TODO: transition to an error page here? throw new RuntimeException(te); } }
From source file:org.tweetalib.android.model.TwitterList.java
License:Apache License
public TwitterList(UserList list) { mId = list.getId();/*from w w w .j a va 2 s. co m*/ mName = list.getName(); mFullName = list.getFullName(); mDescription = list.getDescription(); mIsPublic = list.isPublic(); mIsFollowing = list.isFollowing(); mMemberCount = list.getMemberCount(); mSubscriberCount = list.getSubscriberCount(); }