List of usage examples for twitter4j User getMiniProfileImageURLHttps
String getMiniProfileImageURLHttps();
From source file:com.freshdigitable.udonroad.module.realm.UserRealm.java
License:Apache License
UserRealm(final User user) { this.id = user.getId(); this.profileImageURLHttps = user.getProfileImageURLHttps(); this.miniProfileImageURLHttps = user.getMiniProfileImageURLHttps(); this.name = user.getName(); this.screenName = user.getScreenName(); this.description = user.getDescription(); this.profileBannerMobileURL = user.getProfileBannerMobileURL(); this.statusesCount = user.getStatusesCount(); this.followersCount = user.getFollowersCount(); this.friendsCount = user.getFriendsCount(); this.favoritesCount = user.getFavouritesCount(); this.profileLinkColor = user.getProfileLinkColor(); this.descriptionURLEntities = URLEntityRealm.createList(user.getDescriptionURLEntities()); this.url = user.getURL(); if (user.getURLEntity() != null) { this.urlEntity = new URLEntityRealm(user.getURLEntity()); }//from w w w.ja v a 2 s .co m this.location = user.getLocation(); this.verified = user.isVerified(); this.isProtected = user.isProtected(); }
From source file:com.freshdigitable.udonroad.module.realm.UserRealm.java
License:Apache License
void merge(@NonNull User u, @NonNull Realm realm) { if (u.getDescription() != null) { // description is nullable this.description = u.getDescription(); final URLEntity[] descriptionURLEntities = u.getDescriptionURLEntities(); if (descriptionURLEntities != null && descriptionURLEntities.length > 0) { this.descriptionURLEntities.clear(); for (URLEntity url : descriptionURLEntities) { this.descriptionURLEntities.add(URLEntityRealm.findOrCreateFromRealm(url, realm)); }/*from w ww . j a va2 s .c o m*/ } } this.favoritesCount = u.getFavouritesCount(); this.followersCount = u.getFollowersCount(); this.friendsCount = u.getFriendsCount(); this.miniProfileImageURLHttps = u.getMiniProfileImageURLHttps(); this.name = u.getName(); this.profileBannerMobileURL = u.getProfileBannerMobileURL(); this.profileImageURLHttps = u.getProfileImageURLHttps(); this.profileLinkColor = u.getProfileLinkColor(); this.screenName = u.getScreenName(); this.statusesCount = u.getStatusesCount(); this.url = u.getURL(); final URLEntity urlEntity = u.getURLEntity(); if (urlEntity != null && isNewUrlEntity(urlEntity)) { this.urlEntity = URLEntityRealm.findOrCreateFromRealm(urlEntity, realm); } this.location = u.getLocation(); this.verified = u.isVerified(); this.isProtected = u.isProtected(); }
From source file:com.freshdigitable.udonroad.TweetInputFragment.java
License:Apache License
private void setUpTweetInputView() { final TweetInputView inputText = binding.mainTweetInputView; configRequestWorker.getAuthenticatedUser().subscribe(new Action1<User>() { @Override/* w w w . j a v a2 s . c o m*/ public void call(User authenticatedUser) { inputText.setUserInfo(authenticatedUser); Picasso.with(inputText.getContext()).load(authenticatedUser.getMiniProfileImageURLHttps()) .resizeDimen(R.dimen.small_user_icon, R.dimen.small_user_icon).into(inputText.getIcon()); } }); inputText.addTextWatcher(textWatcher); inputText.setShortUrlLength(appSettings.getTwitterAPIConfig().getShortURLLengthHttps()); }
From source file:com.github.jcustenborder.kafka.connect.twitter.StatusConverter.java
License:Apache License
public static void convert(User user, Struct struct) { struct.put("Id", user.getId()).put("Name", user.getName()).put("ScreenName", user.getScreenName()) .put("Location", user.getLocation()).put("Description", user.getDescription()) .put("ContributorsEnabled", user.isContributorsEnabled()) .put("ProfileImageURL", user.getProfileImageURL()) .put("BiggerProfileImageURL", user.getBiggerProfileImageURL()) .put("MiniProfileImageURL", user.getMiniProfileImageURL()) .put("OriginalProfileImageURL", user.getOriginalProfileImageURL()) .put("ProfileImageURLHttps", user.getProfileImageURLHttps()) .put("BiggerProfileImageURLHttps", user.getBiggerProfileImageURLHttps()) .put("MiniProfileImageURLHttps", user.getMiniProfileImageURLHttps()) .put("OriginalProfileImageURLHttps", user.getOriginalProfileImageURLHttps()) .put("DefaultProfileImage", user.isDefaultProfileImage()).put("URL", user.getURL()) .put("Protected", user.isProtected()).put("FollowersCount", user.getFollowersCount()) .put("ProfileBackgroundColor", user.getProfileBackgroundColor()) .put("ProfileTextColor", user.getProfileTextColor()) .put("ProfileLinkColor", user.getProfileLinkColor()) .put("ProfileSidebarFillColor", user.getProfileSidebarFillColor()) .put("ProfileSidebarBorderColor", user.getProfileSidebarBorderColor()) .put("ProfileUseBackgroundImage", user.isProfileUseBackgroundImage()) .put("DefaultProfile", user.isDefaultProfile()) .put("ShowAllInlineMedia", user.isShowAllInlineMedia()).put("FriendsCount", user.getFriendsCount()) .put("CreatedAt", user.getCreatedAt()).put("FavouritesCount", user.getFavouritesCount()) .put("UtcOffset", user.getUtcOffset()).put("TimeZone", user.getTimeZone()) .put("ProfileBackgroundImageURL", user.getProfileBackgroundImageURL()) .put("ProfileBackgroundImageUrlHttps", user.getProfileBackgroundImageUrlHttps()) .put("ProfileBannerURL", user.getProfileBannerURL()) .put("ProfileBannerRetinaURL", user.getProfileBannerRetinaURL()) .put("ProfileBannerIPadURL", user.getProfileBannerIPadURL()) .put("ProfileBannerIPadRetinaURL", user.getProfileBannerIPadRetinaURL()) .put("ProfileBannerMobileURL", user.getProfileBannerMobileURL()) .put("ProfileBannerMobileRetinaURL", user.getProfileBannerMobileRetinaURL()) .put("ProfileBackgroundTiled", user.isProfileBackgroundTiled()).put("Lang", user.getLang()) .put("StatusesCount", user.getStatusesCount()).put("GeoEnabled", user.isGeoEnabled()) .put("Verified", user.isVerified()).put("Translator", user.isTranslator()) .put("ListedCount", user.getListedCount()).put("FollowRequestSent", user.isFollowRequestSent()); List<String> withheldInCountries = new ArrayList<>(); if (null != user.getWithheldInCountries()) { for (String s : user.getWithheldInCountries()) { withheldInCountries.add(s);/*from w w w .j av a2 s . co m*/ } } struct.put("WithheldInCountries", withheldInCountries); }
From source file:org.soluvas.buzz.twitter.TwitterUser.java
License:Apache License
/** * Clones attributes from Twitter4j's {@link User}. * @param src/*ww w . j a va 2 s . com*/ */ 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:org.tweetalib.android.model.TwitterUser.java
License:Apache License
public TwitterUser(User user) { mId = user.getId();/*from w w w . j a va 2 s . c o m*/ mScreenName = user.getScreenName(); mName = user.getName(); mDescription = user.getDescription(); ArrayList<URLEntity> urlEntityArrayList = new ArrayList<URLEntity>(); if (user.getDescriptionURLEntities() != null) { urlEntityArrayList = new ArrayList<URLEntity>(Arrays.asList(user.getDescriptionURLEntities())); } if (user.getURL() != null) { mUrl = user.getURL(); urlEntityArrayList.add(user.getURLEntity()); } mUrlEntities = urlEntityArrayList.toArray(new URLEntity[urlEntityArrayList.size()]); if (user.getLocation() != null && !user.getLocation().equals("")) { mLocation = user.getLocation(); } if (user.getOriginalProfileImageURLHttps() != null) { mProfileImageUrlOriginal = user.getOriginalProfileImageURLHttps(); } if (user.getBiggerProfileImageURLHttps() != null) { mProfileImageUrlBigger = user.getBiggerProfileImageURLHttps(); } if (user.getProfileImageURLHttps() != null) { mProfileImageUrlNormal = user.getProfileImageURLHttps(); } if (user.getMiniProfileImageURLHttps() != null) { mProfileImageUrlMini = user.getMiniProfileImageURLHttps(); } mStatusesCount = user.getStatusesCount(); mFriendsCount = user.getFriendsCount(); mFollowersCount = user.getFollowersCount(); mFavoritesCount = user.getFavouritesCount(); mListedCount = user.getListedCount(); mVerified = user.isVerified(); mProtected = user.isProtected(); mSocialNetType = SocialNetConstant.Type.Twitter; }