com.beimin.eveapi.response.eve.FacWarTopStatsResponse 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.eve;
import java.util.ArrayList;
import java.util.List;
import com.beimin.eveapi.model.eve.CharacterKills;
import com.beimin.eveapi.model.eve.CharacterVictoryPoints;
import com.beimin.eveapi.model.eve.CorporationKills;
import com.beimin.eveapi.model.eve.CorporationVictoryPoints;
import com.beimin.eveapi.model.eve.FacWarStat;
import com.beimin.eveapi.model.eve.FactionKills;
import com.beimin.eveapi.model.eve.FactionVictoryPoints;
import com.beimin.eveapi.response.ApiResponse;
public class FacWarTopStatsResponse extends ApiResponse {
private final List charactersKillsYesterday = new ArrayList();
private final List charactersKillsLastWeek = new ArrayList();
private final List charactersKillsTotal = new ArrayList();
private final List charactersVictoryPointsYesterday = new ArrayList();
private final List charactersVictoryPointsLastWeek = new ArrayList();
private final List charactersVictoryPointsTotal = new ArrayList();
private final List corporationsKillsYesterday = new ArrayList();
private final List corporationsKillsLastWeek = new ArrayList();
private final List corporationsKillsTotal = new ArrayList();
private final List corporationsVictoryPointsYesterday = new ArrayList();
private final List corporationsVictoryPointsLastWeek = new ArrayList();
private final List corporationsVictoryPointsTotal = new ArrayList();
private final List factionsKillsYesterday = new ArrayList();
private final List factionsKillsLastWeek = new ArrayList();
private final List factionsKillsTotal = new ArrayList();
private final List factionsVictoryPointsYesterday = new ArrayList();
private final List factionsVictoryPointsLastWeek = new ArrayList();
private final List factionsVictoryPointsTotal = new ArrayList();
public void addYesterday(final FacWarStat stat) {
if (stat instanceof CharacterKills) {
charactersKillsYesterday.add((CharacterKills) stat);
} else if (stat instanceof CharacterVictoryPoints) {
charactersVictoryPointsYesterday.add((CharacterVictoryPoints) stat);
} else if (stat instanceof CorporationKills) {
corporationsKillsYesterday.add((CorporationKills) stat);
} else if (stat instanceof CorporationVictoryPoints) {
corporationsVictoryPointsYesterday.add((CorporationVictoryPoints) stat);
} else if (stat instanceof FactionKills) {
factionsKillsYesterday.add((FactionKills) stat);
} else if (stat instanceof FactionVictoryPoints) {
factionsVictoryPointsYesterday.add((FactionVictoryPoints) stat);
}
}
public void addLastWeek(final FacWarStat stat) {
if (stat instanceof CharacterKills) {
charactersKillsLastWeek.add((CharacterKills) stat);
} else if (stat instanceof CharacterVictoryPoints) {
charactersVictoryPointsLastWeek.add((CharacterVictoryPoints) stat);
} else if (stat instanceof CorporationKills) {
corporationsKillsLastWeek.add((CorporationKills) stat);
} else if (stat instanceof CorporationVictoryPoints) {
corporationsVictoryPointsLastWeek.add((CorporationVictoryPoints) stat);
} else if (stat instanceof FactionKills) {
factionsKillsLastWeek.add((FactionKills) stat);
} else if (stat instanceof FactionVictoryPoints) {
factionsVictoryPointsLastWeek.add((FactionVictoryPoints) stat);
}
}
public void addTotal(final FacWarStat stat) {
if (stat instanceof CharacterKills) {
charactersKillsTotal.add((CharacterKills) stat);
} else if (stat instanceof CharacterVictoryPoints) {
charactersVictoryPointsTotal.add((CharacterVictoryPoints) stat);
} else if (stat instanceof CorporationKills) {
corporationsKillsTotal.add((CorporationKills) stat);
} else if (stat instanceof CorporationVictoryPoints) {
corporationsVictoryPointsTotal.add((CorporationVictoryPoints) stat);
} else if (stat instanceof FactionKills) {
factionsKillsTotal.add((FactionKills) stat);
} else if (stat instanceof FactionVictoryPoints) {
factionsVictoryPointsTotal.add((FactionVictoryPoints) stat);
}
}
public List getCharactersKillsYesterday() {
return charactersKillsYesterday;
}
public List getCharactersKillsLastWeek() {
return charactersKillsLastWeek;
}
public List getCharactersKillsTotal() {
return charactersKillsTotal;
}
public List getCharactersVictoryPointsYesterday() {
return charactersVictoryPointsYesterday;
}
public List getCharactersVictoryPointsLastWeek() {
return charactersVictoryPointsLastWeek;
}
public List getCharactersVictoryPointsTotal() {
return charactersVictoryPointsTotal;
}
public List getCorporationsKillsYesterday() {
return corporationsKillsYesterday;
}
public List getCorporationsKillsLastWeek() {
return corporationsKillsLastWeek;
}
public List getCorporationsKillsTotal() {
return corporationsKillsTotal;
}
public List getCorporationsVictoryPointsYesterday() {
return corporationsVictoryPointsYesterday;
}
public List getCorporationsVictoryPointsLastWeek() {
return corporationsVictoryPointsLastWeek;
}
public List getCorporationsVictoryPointsTotal() {
return corporationsVictoryPointsTotal;
}
public List getFactionsKillsYesterday() {
return factionsKillsYesterday;
}
public List getFactionsKillsLastWeek() {
return factionsKillsLastWeek;
}
public List getFactionsKillsTotal() {
return factionsKillsTotal;
}
public List getFactionsVictoryPointsYesterday() {
return factionsVictoryPointsYesterday;
}
public List getFactionsVictoryPointsLastWeek() {
return factionsVictoryPointsLastWeek;
}
public List getFactionsVictoryPointsTotal() {
return factionsVictoryPointsTotal;
}
}