All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.xhsun.guildwars2wrapper.model.account.Account Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package me.xhsun.guildwars2wrapper.model.account;

import java.util.List;

/**
 * For more info on Account API go here
* Account Model class * Note: world id equals to negative one if there is an error * * @author xhsun * @see me.xhsun.guildwars2wrapper.model.World world info * @since 2017-02-06 */ public class Account { public enum Access {None, PlayForFree, GuildWars2, HeartOfThorns} private String id; private long age; private String name; private int world = -1; private List guilds; private List guild_leader; private String created; private Access access; private boolean commander = false; private int fractal_level; private long daily_ap; private long monthly_ap; private long wvw_rank; public String getId() { return id; } public long getAge() { return age; } public String getName() { return name; } public int getWorldId() { return world; } public List getGuilds() { return guilds; } public List getGuildLeader() { return guild_leader; } /** * @return ISO-8601 standard timestamp */ public String getCreated() { return created; } public Access getAccess() { return access; } public boolean isCommander() { return commander; } public int getFractalLevel() { return fractal_level; } public long getDailyAP() { return daily_ap; } public long getMonthlyAP() { return monthly_ap; } public long getWvwRank() { return wvw_rank; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Account account = (Account) o; return (id != null ? id.equals(account.id) : account.id == null) && (name != null ? name.equals(account.name) : account.name == null); } @Override public int hashCode() { int result = id != null ? id.hashCode() : 0; result = 31 * result + (name != null ? name.hashCode() : 0); return result; } @Override public String toString() { return "Account{" + "id='" + id + '\'' + ", age=" + age + ", name='" + name + '\'' + ", world=" + world + ", guilds=" + guilds + ", guild_leader=" + guild_leader + ", created='" + created + '\'' + ", access=" + access + ", commander=" + commander + ", fractal_level=" + fractal_level + ", daily_ap=" + daily_ap + ", monthly_ap=" + monthly_ap + ", wvw_rank=" + wvw_rank + '}'; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy