Android Open Source - ara-twitter Response String






From Project

Back to project page ara-twitter.

License

The source code is released under:

Apache License

If you think the Android project ara-twitter 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 com.bakingcode.io.twitter.model;
/*w w w .  ja  v a2s  .  co m*/
import com.bakingcode.io.twitter.tools.Tools;

/**
 * Abstracts a http response with the response string and a error
 */
public class ResponseString {
  
  // ///////////////////////////////////////////////////////////////////////////
  // Fields
  // ///////////////////////////////////////////////////////////////////////////
  
  /**
   * The string of response
   */
  private String responseString;
  
  /**
   * If the response code of twitter request is != 200 this will parse a error item
   */
  private IError error;
  
  // ///////////////////////////////////////////////////////////////////////////
  // Utils
  // ///////////////////////////////////////////////////////////////////////////

  /**
   * Method for known if the response String is empty or not.
   * @return true if the response string is not empty false otherwise
   */
  public boolean isNotEmpty() {
    return Tools.isNotEmpty(responseString);
  }
  
  // ///////////////////////////////////////////////////////////////////////////
  // Get & Set
  // ///////////////////////////////////////////////////////////////////////////
  
  /**
   * @return the responseString
   */
  public String getResponseString() {
    return responseString;
  }

  /**
   * @param responseString the responseString to set
   */
  public void setResponseString(String responseString) {
    this.responseString = responseString;
  }

  /**
   * @return the error
   */
  public IError getError() {
    return error;
  }

  /**
   * @param error the error to set
   */
  public void setError(IError error) {
    this.error = error;
  }

}




Java Source Code List

com.bakingcode.io.twitter.Parameters.java
com.bakingcode.io.twitter.TwitterHttpClient.java
com.bakingcode.io.twitter.TwitterOAuth.java
com.bakingcode.io.twitter.Twitter.java
com.bakingcode.io.twitter.Urls.java
com.bakingcode.io.twitter.exceptions.TwitterCommunicationException.java
com.bakingcode.io.twitter.exceptions.TwitterErrorRequestException.java
com.bakingcode.io.twitter.exceptions.TwitterException.java
com.bakingcode.io.twitter.model.ApiConfiguration.java
com.bakingcode.io.twitter.model.ApiMethod.java
com.bakingcode.io.twitter.model.ApiResourceFamily.java
com.bakingcode.io.twitter.model.Coordinates.java
com.bakingcode.io.twitter.model.Cursor.java
com.bakingcode.io.twitter.model.Friendship.java
com.bakingcode.io.twitter.model.IError.java
com.bakingcode.io.twitter.model.Id.java
com.bakingcode.io.twitter.model.IdentifierList.java
com.bakingcode.io.twitter.model.MediaEntity.java
com.bakingcode.io.twitter.model.Place.java
com.bakingcode.io.twitter.model.ResponseString.java
com.bakingcode.io.twitter.model.TrendPlace.java
com.bakingcode.io.twitter.model.Trend.java
com.bakingcode.io.twitter.model.Tweet.java
com.bakingcode.io.twitter.model.TwitterError.java
com.bakingcode.io.twitter.model.User.java
com.bakingcode.io.twitter.tools.HTMLEntity.java
com.bakingcode.io.twitter.tools.Tools.java
com.bakingcode.io.twitter.tools.TwitterLogging.java