package com.authy;

import com.authy.api.*;

/**
 * 
 * @author Julian Camargo
 *
 */
public class AuthyApiClient {
	private Users users;
	private Tokens tokens;
	private String apiUri, apiKey;
	private Phone phone;
	private PhoneVerification phoneVerification;
	private PhoneInfo phoneInfo;

  public static final String CLIENT_NAME = "AuthyJava";
	public static final String DEFAULT_API_URI = "https://api.authy.com";
  public static final String VERSION = "1.1.0";

	public AuthyApiClient(String apiKey, String apiUri) {
		this.apiUri = apiUri;
		this.apiKey = apiKey;

		this.phoneInfo = new PhoneInfo(this.apiUri, this.apiKey);
		this.phoneVerification = new PhoneVerification(this.apiUri, this.apiKey);
		this.users = new Users(this.apiUri, this.apiKey);
		this.tokens = new Tokens(this.apiUri, this.apiKey);
	}
	
	public AuthyApiClient(String apiKey) {
		this.apiUri = DEFAULT_API_URI;
		this.apiKey = apiKey;

		this.phoneInfo = new PhoneInfo(this.apiUri, this.apiKey);
		this.phoneVerification = new PhoneVerification(this.apiUri, this.apiKey);
		this.users = new Users(this.apiUri, this.apiKey);
		this.tokens = new Tokens(this.apiUri, this.apiKey);
	}
	
	public AuthyApiClient(String apiKey, String apiUri, boolean testFlag) {
		this.apiUri = apiUri;
		this.apiKey = apiKey;

		this.phoneInfo = new PhoneInfo(this.apiUri, this.apiKey, testFlag);
		this.phoneVerification = new PhoneVerification(this.apiUri, this.apiKey, testFlag);
		this.users = new Users(this.apiUri, this.apiKey, testFlag);
		this.tokens = new Tokens(this.apiUri, this.apiKey, testFlag);
	}
	
	public Users getUsers() {
		return this.users;
	}
	
	public Tokens getTokens() {
		return this.tokens;
	}

	public PhoneVerification getPhoneVerification() {
		return this.phoneVerification;
	}

	public PhoneInfo getPhoneInfo() {
		return this.phoneInfo;
	}
}

package com.authy;

import com.authy.api.*;

/**
 *
 * @author Julian Camargo
 *
 */
public class AuthyApiClient {
  private Users users;
  private Tokens tokens;
  private String apiUri, apiKey;
  private Phone phone;
  private PhoneVerification phoneVerification;
  private PhoneInfo phoneInfo;

  public static final String CLIENT_NAME = "AuthyJava";
  public static final String DEFAULT_API_URI = "https://api.authy.com";
  public static final String VERSION = "1.1.0";

  public AuthyApiClient(String apiKey, String apiUri) {
    this.apiUri = apiUri;
    this.apiKey = apiKey;

    this.phoneInfo = new PhoneInfo(this.apiUri, this.apiKey);
    this.phoneVerification = new PhoneVerification(this.apiUri, this.apiKey);
    this.users = new Users(this.apiUri, this.apiKey);
    this.tokens = new Tokens(this.apiUri, this.apiKey);
  }

  public AuthyApiClient(String apiKey) {
    this.apiUri = DEFAULT_API_URI;
    this.apiKey = apiKey;

    this.phoneInfo = new PhoneInfo(this.apiUri, this.apiKey);
    this.phoneVerification = new PhoneVerification(this.apiUri, this.apiKey);
    this.users = new Users(this.apiUri, this.apiKey);
    this.tokens = new Tokens(this.apiUri, this.apiKey);
  }

  public AuthyApiClient(String apiKey, String apiUri, boolean testFlag) {
    this.apiUri = apiUri;
    this.apiKey = apiKey;

    this.phoneInfo = new PhoneInfo(this.apiUri, this.apiKey, testFlag);
    this.phoneVerification = new PhoneVerification(this.apiUri, this.apiKey, testFlag);
    this.users = new Users(this.apiUri, this.apiKey, testFlag);
    this.tokens = new Tokens(this.apiUri, this.apiKey, testFlag);
  }

  public Users getUsers() {
    return this.users;
  }

  public Tokens getTokens() {
    return this.tokens;
  }

  public PhoneVerification getPhoneVerification() {
    return this.phoneVerification;
  }

  public PhoneInfo getPhoneInfo() {
    return this.phoneInfo;
  }
}

Fix indent