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

com.beimin.eveapi.response.shared.StandingsResponse Maven / Gradle / Ivy

There is a newer version: 7.0.4
Show newest version
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