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

com.beimin.eveapi.handler.shared.FacWarStatsHandler Maven / Gradle / Ivy

There is a newer version: 7.0.4
Show newest version
package com.beimin.eveapi.handler.shared;

import org.xml.sax.SAXException;

import com.beimin.eveapi.handler.AbstractContentHandler;
import com.beimin.eveapi.response.shared.FacWarStatsResponse;

public class FacWarStatsHandler extends AbstractContentHandler {
    public FacWarStatsHandler() {
        super(new FacWarStatsResponse());
    }

    @Override
    protected void elementEnd(final String uri, final String localName, final String qName) throws SAXException {
        final FacWarStatsResponse response = getResponse();
        if ("factionID".equals(qName)) {
            response.setFactionID(getInt());
        }
        if ("factionName".equals(qName)) {
            response.setFactionName(getString());
        }
        if ("enlisted".equals(qName)) {
            response.setEnlisted(getDate());
        }
        if ("currentRank".equals(qName)) {
            response.setCurrentRank(getInt());
        }
        if ("highestRank".equals(qName)) {
            response.setHighestRank(getInt());
        }
        if ("killsYesterday".equals(qName)) {
            response.setKillsYesterday(getInt());
        }
        if ("killsLastWeek".equals(qName)) {
            response.setKillsLastWeek(getInt());
        }
        if ("killsTotal".equals(qName)) {
            response.setKillsTotal(getInt());
        }
        if ("victoryPointsYesterday".equals(qName)) {
            response.setVictoryPointsYesterday(getInt());
        }
        if ("killsTotal".equals(qName)) {
            response.setKillsTotal(getInt());
        }
        if ("victoryPointsYesterday".equals(qName)) {
            response.setVictoryPointsYesterday(getInt());
        }
        if ("victoryPointsLastWeek".equals(qName)) {
            response.setVictoryPointsLastWeek(getInt());
        }
        if ("victoryPointsTotal".equals(qName)) {
            response.setVictoryPointsTotal(getInt());
        }
        if ("pilots".equals(qName)) {
            response.setPilots(getInt());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy