me.xhsun.guildwars2wrapper.model.Title 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 me.xhsun.guildwars2wrapper.model.achievements.Achievement;
import java.util.List;
/**
* For more info on titles API go here
* Model class for title
*
* @author xhsun
* @since 2017-06-06
*/
public class Title {
private int id;
private String name;
private int achievement;
private List achievements;
private int ap_required;
public int getId() {
return id;
}
public String getName() {
return name;
}
/**
* @return {@link Achievement} id
*/
public int getAchievement() {
return achievement;
}
/**
* @return list of {@link Achievement} id
*/
public List getAchievements() {
return achievements;
}
public int getApRequired() {
return ap_required;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Title title = (Title) o;
return id == title.id;
}
@Override
public int hashCode() {
return id;
}
@Override
public String toString() {
return "Title{" +
"id=" + id +
", name='" + name + '\'' +
", achievement=" + achievement +
", achievements=" + achievements +
", ap_required=" + ap_required +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy