Package com.appspot.finajjarane.framework.models

Examples of com.appspot.finajjarane.framework.models.TweetModel


  public List<TweetModel> getTweetsInHomeTimeline() {
    List<Tweet> tweets = iTwitter.getLatestTweets();
    List<TweetModel> tweetModelList = new ArrayList<TweetModel>();

    for (Tweet tweet : tweets) {
      TweetModel tweetModel = new TweetModel();
      tweetModel.setTweet(tweet.getText());
      tweetModel.setLogoUrl(tweet.getProfileImageUrl());
      tweetModel.setUserName(tweet.getFromUser());
      tweetModel.setDate(Utils.dateToDateDetailsModel(tweet.getCreatedAt()));

      tweetModelList.add(tweetModel);
    }

    return tweetModelList;
View Full Code Here

TOP

Related Classes of com.appspot.finajjarane.framework.models.TweetModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.