Example usage for twitter4j User getProfileBannerURL

List of usage examples for twitter4j User getProfileBannerURL

Introduction

In this page you can find the example usage for twitter4j User getProfileBannerURL.

Prototype

String getProfileBannerURL();

Source Link

Usage

From source file:org.soluvas.buzz.twitter.TwitterUser.java

License:Apache License

/**
 * Clones attributes from Twitter4j's {@link User}.
 * @param src//from   ww  w . j  a  va 2 s  .  c  o  m
 */
public TwitterUser(User src, int revId, DateTime fetchTime) {
    super();
    this.revId = revId;
    this.fetchTime = fetchTime;
    id = src.getId();
    name = src.getName();
    screenName = src.getScreenName();
    location = src.getLocation();
    description = src.getDescription();
    contributorsEnabled = src.isContributorsEnabled();
    profileImageUrl = src.getProfileImageURL();
    biggerProfileImageUrl = src.getBiggerProfileImageURL();
    miniProfileImageUrl = src.getMiniProfileImageURL();
    originalProfileImageUrl = src.getOriginalProfileImageURL();
    profileImageUrlHttps = src.getProfileImageURLHttps();
    biggerProfileImageUrlHttps = src.getBiggerProfileImageURLHttps();
    miniProfileImageUrlHttps = src.getMiniProfileImageURLHttps();
    originalProfileImageUrlHttps = src.getOriginalProfileImageURLHttps();
    url = src.getURL();
    protectedState = src.isProtected();
    followersCount = src.getFollowersCount();
    status = src.getStatus();
    profileBackgroundColor = src.getProfileBackgroundColor();
    profileTextColor = src.getProfileTextColor();
    profileLinkColor = src.getProfileLinkColor();
    profileSidebarFillColor = src.getProfileSidebarFillColor();
    profileSidebarBorderColor = src.getProfileSidebarBorderColor();
    profileUseBackgroundImage = src.isProfileUseBackgroundImage();
    showAllInlineMedia = src.isShowAllInlineMedia();
    friendsCount = src.getFriendsCount();
    createdAt = new DateTime(src.getCreatedAt());
    favouritesCount = src.getFavouritesCount();
    utcOffset = src.getUtcOffset();
    timeZone = src.getTimeZone();
    profileBackgroundImageUrl = src.getProfileBackgroundImageURL();
    profileBackgroundImageUrlHttps = src.getProfileBackgroundImageUrlHttps();
    profileBannerUrl = src.getProfileBannerURL();
    profileBannerRetinaUrl = src.getProfileBannerRetinaURL();
    profileBannerIpadUrl = src.getProfileBannerIPadURL();
    profileBannerIpadRetinaUrl = src.getProfileBannerIPadRetinaURL();
    profileBannerMobileUrl = src.getProfileBannerMobileURL();
    profileBannerMobileRetinaUrl = src.getProfileBannerMobileRetinaURL();
    profileBackgroundTiled = src.isProfileBackgroundTiled();
    lang = src.getLang();
    statusesCount = src.getStatusesCount();
    geoEnabled = src.isGeoEnabled();
    verified = src.isVerified();
    translator = src.isTranslator();
    listedCount = src.getListedCount();
    followRequestSent = src.isFollowRequestSent();
}

From source file:Utils.ConvertUsers.java

License:Open Source License

public Set<TwitterUser> convertAll(Set<User> users) {

    Set<TwitterUser> twitterUsers = new HashSet();
    TwitterUser twitterUser;//from  ww w. j a v  a 2 s  . c  o m

    for (User user : users) {
        twitterUser = new TwitterUser();
        twitterUser.setCreated_at(user.getCreatedAt());
        twitterUser.setDescription(user.getDescription());
        twitterUser.setFollowers_count(user.getFollowersCount());
        twitterUser.setLang(user.getLang());
        twitterUser.setLocation(user.getLocation());
        twitterUser.setName(user.getName());
        twitterUser.setProfile_image_url(user.getProfileImageURL());
        twitterUser.setScreen_name(user.getScreenName());
        twitterUser.setIdTwitter(user.getId());
        twitterUser.setFriends_count(user.getFriendsCount());
        twitterUser.setProfile_banner_url(user.getProfileBannerURL());
        twitterUsers.add(twitterUser);
    }
    return twitterUsers;
}

From source file:Utils.ConvertUsers.java

License:Open Source License

public TwitterUser convertOne(User user) {

    TwitterUser twitterUser;/*from www.  j  a  v a2  s  . co  m*/

    twitterUser = new TwitterUser();
    twitterUser.setCreated_at(user.getCreatedAt());
    twitterUser.setDescription(user.getDescription());
    twitterUser.setFollowers_count(user.getFollowersCount());
    twitterUser.setLang(user.getLang());
    twitterUser.setLocation(user.getLocation());
    twitterUser.setName(user.getName());
    twitterUser.setProfile_image_url(user.getProfileImageURL());
    twitterUser.setScreen_name(user.getScreenName());
    twitterUser.setIdTwitter(user.getId());
    twitterUser.setFriends_count(user.getFriendsCount());
    twitterUser.setProfile_banner_url(user.getProfileBannerURL());

    return twitterUser;
}