Android Open Source - TwitterTrends Trend






From Project

Back to project page TwitterTrends.

License

The source code is released under:

Apache License

If you think the Android project TwitterTrends listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package camp.androidboot.twittertrends.model;
/*w w w. j a  va 2s .  c o m*/
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 *
 */
public class Trend {

  private String name;

  public Trend() {
  }

  public Trend(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public String getQueryString() {
    try {
      return URLEncoder.encode(name, "utf-8");
    } catch (UnsupportedEncodingException e) {
      throw new AssertionError("UTF-8 is not supported");
    }
  }
}




Java Source Code List

camp.androidboot.twittertrends.ApplicationTest.java
camp.androidboot.twittertrends.TwitterTrendsApplication.java
camp.androidboot.twittertrends.model.Status.java
camp.androidboot.twittertrends.model.Trend.java
camp.androidboot.twittertrends.model.User.java
camp.androidboot.twittertrends.network.TwitterLite.java
camp.androidboot.twittertrends.ui.StatusListFragment.java
camp.androidboot.twittertrends.ui.TrendListFragment.java
camp.androidboot.twittertrends.ui.TrendsActivity.java