me.xhsun.guildwars2wrapper.model.v2.pvp.PvPHero 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.v2.pvp;
import com.google.gson.annotations.SerializedName;
import me.xhsun.guildwars2wrapper.model.identifiable.IdentifiableStr;
import me.xhsun.guildwars2wrapper.model.identifiable.Unlockable;
import java.util.List;
/**
* For more info on pvp heroes API go here
* Model class for pvp hero
*
* @author xhsun
* @since 2017-06-06
*/
public class PvPHero extends IdentifiableStr {
private String name;
private String type;
private Stat stats;
private String overlay;
private String underlay;
private List skins;
public String getName() {
return name;
}
public String getType() {
return type;
}
public Stat getStats() {
return stats;
}
public String getOverlay() {
return overlay;
}
public String getUnderlay() {
return underlay;
}
public List getSkins() {
return skins;
}
public class Skin extends Unlockable {
@SerializedName("default")
private boolean _default;
public boolean isDefault() {
return _default;
}
}
public class Stat {
private int offense;
private int defense;
private int speed;
public int getOffense() {
return offense;
}
public int getDefense() {
return defense;
}
public int getSpeed() {
return speed;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Stat stat = (Stat) o;
return offense == stat.offense &&
defense == stat.defense &&
speed == stat.speed;
}
@Override
public int hashCode() {
int result = offense;
result = 31 * result + defense;
result = 31 * result + speed;
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy