![JAR search and dependency download from the Maven repository](/logo.png)
com.beimin.eveapi.response.account.ApiKeyInfoResponse 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.response.account;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import com.beimin.eveapi.model.account.Character;
import com.beimin.eveapi.model.shared.KeyType;
import com.beimin.eveapi.response.ApiResponse;
public class ApiKeyInfoResponse extends ApiResponse {
private long accessMask;
private KeyType type;
private Date expires;
private final Collection eveCharacters = new ArrayList();
public void addEveCharacter(final Character eveCharacter) {
eveCharacters.add(eveCharacter);
}
public Collection getEveCharacters() {
return eveCharacters;
}
public long getAccessMask() {
return accessMask;
}
public void setAccessMask(final long accessMask) {
this.accessMask = accessMask;
}
public Date getExpires() {
return expires;
}
public void setExpires(final Date expires) {
this.expires = expires;
}
public KeyType getType() {
return type;
}
public void setType(final KeyType type) {
this.type = type;
}
public boolean isCorporationKey() {
return getType() == KeyType.CORPORATION;
}
public boolean isAccountKey() {
return getType() == KeyType.ACCOUNT;
}
public boolean isCharacterKey() {
return getType() == KeyType.CHARACTER;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy