
com.beimin.eveapi.response.shared.StandingsResponse Maven / Gradle / Ivy
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