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; /*www . ja v a 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 news item */ public class GuildViewerNewsItem { long id; long timestamp; String type; String character; GuildViewerGuild guild; GuildViewerAchievement achievement; GuildViewerItem item; String listFormattedDate; public long getId() { return id; } public void setId(long id) { this.id = id; } public GuildViewerItem getItem() { return item; } public void setItem(GuildViewerItem item) { this.item = item; } public GuildViewerAchievement getAchievement() { return achievement; } public void setAchievement(GuildViewerAchievement achievement) { this.achievement = achievement; } public GuildViewerGuild getGuild() { return guild; } public void setGuild(GuildViewerGuild guild) { this.guild = guild; } public String getCharacter() { return character; } public void setCharacter(String character) { this.character = character; } public String getType() { return type; } public void setType(String type) { this.type = type; } public long getTimestamp() { return timestamp; } public void setTimestamp(long timestamp) { this.timestamp = timestamp; } public String getListFormattedDate() { return listFormattedDate; } public void setListFormattedDate(String listFormattedDate) { this.listFormattedDate = listFormattedDate; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof GuildViewerNewsItem)) return false; GuildViewerNewsItem that = (GuildViewerNewsItem) o; if (id != that.id) return false; if (timestamp != that.timestamp) return false; if (achievement != null ? !achievement.equals(that.achievement) : that.achievement != null) return false; if (character != null ? !character.equals(that.character) : that.character != null) return false; if (!guild.equals(that.guild)) return false; return !(item != null ? !item.equals(that.item) : that.item != null) && type.equals(that.type); } @Override public int hashCode() { int result = (int) (id ^ (id >>> 32)); result = 31 * result + (int) (timestamp ^ (timestamp >>> 32)); result = 31 * result + type.hashCode(); result = 31 * result + (character != null ? character.hashCode() : 0); result = 31 * result + guild.hashCode(); result = 31 * result + (achievement != null ? achievement.hashCode() : 0); result = 31 * result + (item != null ? item.hashCode() : 0); return result; } @Override public String toString() { return "GuildViewerNewsItem{" + "id=" + id + ", timestamp=" + timestamp + ", type='" + type + '\'' + ", character='" + character + '\'' + ", guild=" + guild + ", achievement=" + achievement + ", item=" + item + '}'; } }