![JAR search and dependency download from the Maven repository](/logo.png)
com.beimin.eveapi.response.shared.StandingsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eveapi Show documentation
Show all versions of eveapi Show documentation
Parsers for the eve online api
package com.beimin.eveapi.response.shared;
import com.beimin.eveapi.model.shared.NamedList;
import com.beimin.eveapi.model.shared.Standing;
import com.beimin.eveapi.response.ApiResponse;
public class StandingsResponse extends ApiResponse {
private NamedList agentStandings;
private NamedList npcCorporationStandings;
private NamedList factionStandings;
public void addStandingsList(final NamedList standingsList) {
if (standingsList.getName().equals("agents")) {
agentStandings = standingsList;
} else if (standingsList.getName().equals("NPCCorporations")) {
npcCorporationStandings = standingsList;
} else if (standingsList.getName().equals("factions")) {
factionStandings = standingsList;
} else {
throw new RuntimeException("Unknown standings list type");
}
}
public NamedList getAgentStandings() {
return agentStandings;
}
public NamedList getNpcCorporationStandings() {
return npcCorporationStandings;
}
public NamedList getFactionStandings() {
return factionStandings;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy