me.xhsun.guildwars2wrapper.model.v2.character.CharacterSpecialization 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.character;
import me.xhsun.guildwars2wrapper.model.identifiable.IdentifiableInt;
import java.util.List;
/**
* For more info on character specializations API go here
* Model class for character specialization
*
* @author xhsun
* @since 2017-06-07
*/
public class CharacterSpecialization {
private Specialization specializations;
public List getPve() {
return specializations.pve;
}
public List getPvp() {
return specializations.pvp;
}
public List getWvw() {
return specializations.wvw;
}
public class Specialization {
private List pve, pvp, wvw;
public List getPve() {
return pve;
}
public List getPvp() {
return pvp;
}
public List getWvw() {
return wvw;
}
}
public class Trait extends IdentifiableInt {
private List traits;
/**
* @return list of selected traits id
*/
public List getTraits() {
return traits;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Trait trait = (Trait) o;
return getId() == trait.getId() &&
(traits != null ? traits.equals(trait.traits) : trait.traits == null);
}
@Override
public int hashCode() {
int result = getId();
result = 31 * result + (traits != null ? traits.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy