![JAR search and dependency download from the Maven repository](/logo.png)
com.beimin.eveapi.handler.character.NotificationsHandler 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.Notification;
import com.beimin.eveapi.response.character.NotificationsResponse;
public class NotificationsHandler extends AbstractContentListHandler {
public NotificationsHandler() {
super(new NotificationsResponse());
}
@Override
protected Notification getItem(final Attributes attrs) {
final Notification notification = new Notification();
saveAttributes(Notification.class, attrs);
notification.setNotificationID(getLong(attrs, "notificationID"));
notification.setSenderID(getLong(attrs, "senderID"));
notification.setSenderName(getString(attrs, "senderName"));
notification.setSentDate(getDate(attrs, "sentDate"));
notification.setTypeID(getInt(attrs, "typeID"));
notification.setRead(getBoolean(attrs, "read"));
return notification;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy