All Downloads are FREE. Search and download functionalities are using the official Maven repository.

enterprises.orbital.impl.evexmlapi.act.AccountAPIAdapter Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package enterprises.orbital.impl.evexmlapi.act;

import java.io.IOException;
import java.util.Collection;

import enterprises.orbital.evexmlapi.act.IAPIKeyInfo;
import enterprises.orbital.evexmlapi.act.IAccountAPI;
import enterprises.orbital.evexmlapi.act.IAccountStatus;
import enterprises.orbital.evexmlapi.act.ICharacter;
import enterprises.orbital.impl.evexmlapi.AbstractAPIRequestAdapter;
import enterprises.orbital.impl.evexmlapi.ApiAuth;
import enterprises.orbital.impl.evexmlapi.ApiConnector;

public class AccountAPIAdapter extends AbstractAPIRequestAdapter implements IAccountAPI {

  public AccountAPIAdapter(ApiConnector connector, int keyID, String vCode) {
    super(connector);
    setAuth(new ApiAuth(keyID, 0, vCode));
  }

  @Override
  public IAccountStatus requestAccountStatus() throws IOException {
    return new AccountStatusParser(connector).retrieveResponse(this);
  }

  @Override
  public Collection requestCharacters() throws IOException {
    return new CharactersParser(connector).retrieveResponse(this);
  }

  @Override
  public IAPIKeyInfo requestAPIKeyInfo() throws IOException {
    return new APIKeyInfoParser(connector).retrieveResponse(this);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy