Back to project page GuildViewerApp2.
The source code is released under:
Apache License
If you think the Android project GuildViewerApp2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.skywomantechnology.app.guildviewer.data; //ww w . j ava 2s . c om /* * Guild Viewer is an Android app that allows users to view news feeds and news feed details * on a mobile device and while not logged into the game servers. * * Copyright 2014 Sky Woman Technology LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Holds information about a Guild Member */ public class GuildViewerMember { private String id; private int guildId; private String name; private int level; private String gender; private String race; private String characterClass; private String side; private int achievementPoints; private int rank; private String thumbnail; public String getId() { return id; } public void setId(String id) { this.id = id; } public int getGuildId() { return guildId; } public void setGuildId(int guildId) { this.guildId = guildId; } public int getRank() { return rank; } public void setRank(int rank) { this.rank = rank; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } public String getRace() { return race; } public void setRace(String race) { this.race = race; } public String getCharacterClass() { return characterClass; } public void setCharacterClass(String character_class) { this.characterClass = character_class; } public String getSide() { return side; } public void setSide(String side) { this.side = side; } public int getAchievementPoints() { return achievementPoints; } public void setAchievementPoints(int achievementPoints) { this.achievementPoints = achievementPoints; } public String getThumbnail() { return thumbnail; } public void setThumbnail(String thumbnail) { this.thumbnail = thumbnail; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GuildViewerMember that = (GuildViewerMember) o; if (achievementPoints != that.achievementPoints) return false; if (guildId != that.guildId) return false; if (level != that.level) return false; if (rank != that.rank) return false; if (characterClass != null ? !characterClass.equals(that.characterClass) : that.characterClass != null) return false; if (gender != null ? !gender.equals(that.gender) : that.gender != null) return false; if (id != null ? !id.equals(that.id) : that.id != null) return false; if (!name.equals(that.name)) return false; return !(race != null ? !race.equals(that.race) : that.race != null) && !(side != null ? !side.equals(that.side) : that.side != null) && !(thumbnail != null ? !thumbnail.equals(that.thumbnail) : that.thumbnail != null); } @Override public int hashCode() { int result = id != null ? id.hashCode() : 0; result = 31 * result + guildId; result = 31 * result + name.hashCode(); result = 31 * result + level; result = 31 * result + (gender != null ? gender.hashCode() : 0); result = 31 * result + (race != null ? race.hashCode() : 0); result = 31 * result + (characterClass != null ? characterClass.hashCode() : 0); result = 31 * result + (side != null ? side.hashCode() : 0); result = 31 * result + achievementPoints; result = 31 * result + rank; result = 31 * result + (thumbnail != null ? thumbnail.hashCode() : 0); return result; } /** * @return String containing member information */ @Override public String toString() { return "GuildViewerMember{" + "id='" + id + '\'' + ", guildId=" + guildId + ", name='" + name + '\'' + ", level=" + level + ", gender='" + gender + '\'' + ", race='" + race + '\'' + ", characterClass='" + characterClass + '\'' + ", side='" + side + '\'' + ", achievementPoints=" + achievementPoints + ", rank=" + rank + ", thumbnail='" + thumbnail + '\'' + '}'; } }