me.xhsun.guildwars2wrapper.model.TokenInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw2wrapper Show documentation
Show all versions of gw2wrapper Show documentation
Guild Wars 2 API wrapper for Android
package me.xhsun.guildwars2wrapper.model;
import java.util.List;
/**
* For more info on TokenInfo API go here
* Token info model class
*
* @author xhsun
* @since 2017-02-07
*/
public class TokenInfo {
private String id;
private String name;
private List permissions;
public String getId() {
return id;
}
public String getName() {
return name;
}
public List getPermissions() {
return permissions;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TokenInfo tokenInfo = (TokenInfo) o;
return id != null ? id.equals(tokenInfo.id) : tokenInfo.id == null;
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
@Override
public String toString() {
return "TokenInfo{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
", permissions=" + permissions +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy