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

com.beimin.eveapi.handler.pilot.MedalsHandler Maven / Gradle / Ivy

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

import org.xml.sax.Attributes;

import com.beimin.eveapi.handler.AbstractContentListHandler;
import com.beimin.eveapi.model.pilot.Medal;
import com.beimin.eveapi.response.pilot.MedalsResponse;

public class MedalsHandler extends AbstractContentListHandler {
	public MedalsHandler() {
		super(MedalsResponse.class);
	}

	@Override
	protected Medal getItem(Attributes attrs) {
		Medal medal = new Medal();
		medal.setMedalID(getInt(attrs, "medalID"));
		medal.setCorporationID(getLong(attrs, "corporationID"));
		medal.setDescription(getString(attrs, "description"));
		medal.setIssued(getDate(attrs, "issued"));
		medal.setIssuerID(getLong(attrs, "issuerID"));
		medal.setReason(getString(attrs, "reason"));
		medal.setStatus(getString(attrs, "status"));
		medal.setTitle(getString(attrs, "title"));
		return medal;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy