
com.beimin.eveapi.response.shared.AbstractContactListResponse 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
The newest version!
package com.beimin.eveapi.response.shared;
import java.util.ArrayList;
import java.util.List;
import com.beimin.eveapi.model.shared.Contact;
import com.beimin.eveapi.model.shared.ContactLabel;
import com.beimin.eveapi.response.ApiResponse;
public abstract class AbstractContactListResponse extends ApiResponse {
private final List contactList = new ArrayList<>();
private final List contactLabels = new ArrayList<>();
private final List corporateContactList = new ArrayList<>();
private final List corporateContactLabels = new ArrayList<>();
private final List allianceContactList = new ArrayList<>();
private final List allianceContactLabels = new ArrayList<>();
public void addContact(Contact contact) {
contactList.add(contact);
}
protected List getContactList() {
return contactList;
}
public void addContactLabel(ContactLabel contactLabel) {
contactLabels.add(contactLabel);
}
protected List getContactLabels() {
return contactLabels;
}
public void addCorporateContact(Contact contact) {
corporateContactList.add(contact);
}
protected List getCorporateContactList() {
return corporateContactList;
}
public void addCorporateContactLabel(ContactLabel contactLabel) {
corporateContactLabels.add(contactLabel);
}
protected List getCorporateContactLabels() {
return corporateContactLabels;
}
public void addAllianceContact(Contact contact) {
allianceContactList.add(contact);
}
protected List getAllianceContactList() {
return allianceContactList;
}
public void addAllianceContactLabel(ContactLabel contactLabel) {
allianceContactLabels.add(contactLabel);
}
protected List getAllianceContactLabels() {
return allianceContactLabels;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy