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; /* w ww . java 2 s. 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. */ /** * Guild Object holds guild information */ public class GuildViewerGuild { private int id; private String name; private String region; private String realm; private String battlegroup; private int level; private String side; private long lastModified; private int achievementPoints; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public String getRealm() { return realm; } public void setRealm(String realm) { this.realm = realm; } public long getLastModified() { return lastModified; } public void setLastModified(long lastModified) { this.lastModified = lastModified; } public String getBattlegroup() { return battlegroup; } public void setBattlegroup(String battlegroup) { this.battlegroup = battlegroup; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } 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; } @Override public String toString() { return "GuildViewerGuild{" + "id=" + id + ", name='" + name + '\'' + ", region='" + region + '\'' + ", realm='" + realm + '\'' + ", battlegroup='" + battlegroup + '\'' + ", level=" + level + ", side='" + side + '\'' + ", lastModified=" + lastModified + ", achievementPoints=" + achievementPoints + '}'; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GuildViewerGuild that = (GuildViewerGuild) o; if (id != that.id) return false; if (lastModified != that.lastModified) return false; if (level != that.level) return false; if (battlegroup != null ? !battlegroup.equals(that.battlegroup) : that.battlegroup != null) return false; if (!name.equals(that.name)) return false; if (!realm.equals(that.realm)) return false; if (!region.equals(that.region)) return false; return (side != null ? !side.equals(that.side) : that.side != null); } @Override public int hashCode() { int result = id; result = 31 * result + name.hashCode(); result = 31 * result + region.hashCode(); result = 31 * result + realm.hashCode(); result = 31 * result + (battlegroup != null ? battlegroup.hashCode() : 0); result = 31 * result + level; result = 31 * result + (side != null ? side.hashCode() : 0); result = 31 * result + (int) (lastModified ^ (lastModified >>> 32)); return result; } }