me.xhsun.guildwars2wrapper.model.Dungeon 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 java.util.List;
/**
* For more info on Dungeons API go here
* Model class for dungeon
*
* @author xhsun
* @since 2017-06-06
*/
public class Dungeon {
private String id;
private List paths;
public String getId() {
return id;
}
public List getPaths() {
return paths;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Dungeon dungeon = (Dungeon) o;
return id != null ? id.equals(dungeon.id) : dungeon.id == null;
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
@Override
public String toString() {
return "Dungeon{" +
"id='" + id + '\'' +
", paths=" + paths +
'}';
}
public class Path {
private String id;
public String getId() {
return id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Path path = (Path) o;
return id != null ? id.equals(path.id) : path.id == null;
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
@Override
public String toString() {
return "Path{" +
"id='" + id + '\'' +
'}';
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy