enterprises.orbital.impl.evexmlapi.act.ApiAPIKeyInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eve-xml-api Show documentation
Show all versions of eve-xml-api Show documentation
Library to interact with EVE XML API servers
package enterprises.orbital.impl.evexmlapi.act;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import enterprises.orbital.evexmlapi.act.IAPIKeyInfo;
import enterprises.orbital.evexmlapi.act.ICharacter;
public class ApiAPIKeyInfo implements IAPIKeyInfo {
private long accessMask;
private String type;
private Date expires;
private final List characters = new ArrayList();
@Override
public long getAccessMask() {
return accessMask;
}
public void setAccessMask(long accessMask) {
this.accessMask = accessMask;
}
@Override
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public Date getExpires() {
return expires;
}
public void setExpires(Date expires) {
this.expires = expires;
}
public void addCharacter(ApiCharacter c) {
characters.add(c);
}
@Override
public List getCharacters() {
List result = new ArrayList();
result.addAll(characters);
return result;
}
}