me.xhsun.guildwars2wrapper.model.unlockable.Glider 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.unlockable;
import me.xhsun.guildwars2wrapper.model.Color;
import java.util.Arrays;
import java.util.List;
/**
* For more info on gliders API go here
* Model class for glider
*
* @author xhsun
* @since 2017-06-06
*/
public class Glider extends Unlockable {
private String description;
private List default_dyes;//color id
//TODO method that give striped description, ie, no html
public String getDescription() {
return description;
}
/**
* @return array of {@link Color} id(s)
*/
public List getDefaultDyes() {
return default_dyes;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Glider glider = (Glider) o;
return getId() == glider.getId();
}
@Override
public int hashCode() {
return getId();
}
@Override
public String toString() {
return "Glider{" +
"id=" + getId() +
", unlock_items=" + Arrays.toString(getUnlockItems()) +
", order=" + getOrder() +
", icon='" + getIcon() + '\'' +
", name='" + getName() + '\'' +
", description='" + description + '\'' +
", default_dyes=" + default_dyes +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy