enterprises.orbital.impl.evexmlapi.crp.ShareholdersResponse 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.crp;
import java.util.ArrayList;
import java.util.Collection;
import enterprises.orbital.impl.evexmlapi.ApiResponse;
public class ShareholdersResponse extends ApiResponse {
private final Collection characters = new ArrayList();
private final Collection corporations = new ArrayList();
public void addShareholder(ApiShareholder shareholder) {
if (shareholder.getShareholderCorporationName() == null) {
corporations.add(shareholder);
} else {
characters.add(shareholder);
}
}
public Collection getCharacters() {
return characters;
}
public Collection getCorporations() {
return corporations;
}
}