![JAR search and dependency download from the Maven repository](/logo.png)
com.beimin.eveapi.handler.character.ResearchHandler 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.handler.character;
import org.xml.sax.Attributes;
import com.beimin.eveapi.handler.AbstractContentListHandler;
import com.beimin.eveapi.model.character.ResearchAgent;
import com.beimin.eveapi.response.character.ResearchResponse;
public class ResearchHandler extends AbstractContentListHandler {
public ResearchHandler() {
super(new ResearchResponse());
}
@Override
protected ResearchAgent getItem(final Attributes attrs) {
final ResearchAgent agent = new ResearchAgent();
saveAttributes(ResearchAgent.class, attrs);
agent.setAgentID(getInt(attrs, "agentID"));
agent.setSkillTypeID(getInt(attrs, "skillTypeID"));
agent.setPointsPerDay(getDouble(attrs, "pointsPerDay"));
agent.setRemainderPoints(getDouble(attrs, "remainderPoints"));
agent.setResearchStartDate(getDate(attrs, "researchStartDate"));
return agent;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy