A Eve Online API helper library for Android
AndroidEveApi is an Android specific implementation of Syte Beimin's EveApi
AndroidEveApi expands on the functionality of EveApi by handling the caching of of api responses for you.
Please understand that this library is early in development, and it should be considered experimental software.
All HTTP requests in Android must be completed on a separate thread, to solve this you pass AndroidEveApi objects a callback that will receive the ApiResponse when it's available.
ApiAuth apiAuth = new ApiAuthorization(keyID, vCode);
new Account(apiAuth, context).getCharacters(new APIExceptionCallback<CharactersResponse>()
{
@Override
public void onUpdate(CharactersResponse response) {
// Code to run when the response is obtained.
// This may be called twice. Once if a cached response is obtained, and twice if
// the cache is expired and a new server ApiResponse is obtained.
}
@Override
public void onError(CharactersResponse response, ApiException exception) {
// Code to run if AndroidEveApi encountered and error returning the response
}
}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.