me.xhsun.guildwars2wrapper.model.account.UnlockedMastery 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.account;
/**
* For more info on Account masteries API go here
* Model class of account masteries
*
* @author xhsun
* @since 2017-06-05
*/
public class UnlockedMastery {
private int id;
private int level;
public int getId() {
return id;
}
/**
* @return level at which the mastery is on the account | 0 if not started
*/
public int getLevel() {
return level;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UnlockedMastery that = (UnlockedMastery) o;
return id == that.id;
}
@Override
public int hashCode() {
return id;
}
@Override
public String toString() {
return "UnlockedMastery{" +
"id=" + id +
", level=" + level +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy