enterprises.orbital.impl.evexmlapi.act.AccountAPIAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eve-xml-api Show documentation
Show all versions of eve-xml-api Show documentation
Library to interact with EVE XML API servers
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);
}
}