// Path: AndroidApp/SparkPixels/src/kc/spark/pixels/android/util/Strings.java
// public class Strings {
// 
// 	public static String getRedacted(String value) {
// 		return (value == null)
// 				? "<null>"
// 				: String.format("[  REDACTED  (length: %d) ]", value.length());
// 	}
// 
// }


import kc.spark.pixels.android.util.Strings;
package kc.spark.pixels.android.cloud.login;



public class TokenResponse {

	// only available when request is successful (HTTP 200)
	public final String accessToken;
	public final String tokenType;
	public final int expiresIn;

	// all(?) other responses
	public final String errorDescription;

	private int statusCode;


	public TokenResponse(String accessToken, String tokenType, int expiresIn,
			String errorDescription) {
		this.accessToken = accessToken;
		this.tokenType = tokenType;
		this.expiresIn = expiresIn;
		this.errorDescription = errorDescription;
	}

	public TokenResponse() {
		this(null, null, -1, null);
	}

	@Override
	public String toString() {
// Path: AndroidApp/SparkPixels/src/kc/spark/pixels/android/util/Strings.java
// public class Strings {
// 
// 	public static String getRedacted(String value) {
// 		return (value == null)
// 				? "<null>"
// 				: String.format("[  REDACTED  (length: %d) ]", value.length());
// 	}
// 
// }


// Path: AndroidApp/SparkPixels/src/kc/spark/pixels/android/cloud/login/TokenResponse.java
import kc.spark.pixels.android.util.Strings;

package kc.spark.pixels.android.cloud.login;



public class TokenResponse {

	// only available when request is successful (HTTP 200)
	public final String accessToken;
	public final String tokenType;
	public final int expiresIn;

	// all(?) other responses
	public final String errorDescription;

	private int statusCode;


	public TokenResponse(String accessToken, String tokenType, int expiresIn,
			String errorDescription) {
		this.accessToken = accessToken;
		this.tokenType = tokenType;
		this.expiresIn = expiresIn;
		this.errorDescription = errorDescription;
	}

	public TokenResponse() {
		this(null, null, -1, null);
	}

	@Override
	public String toString() {
		return "LoginResponse [accessToken=" + Strings.getRedacted(accessToken) + ", tokenType="