Back to project page Broadsheet.ie-Android.
The source code is released under:
Copyright (c) 2013 Karl Monaghan (http://karlmonaghan.com/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
If you think the Android project Broadsheet.ie-Android 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 ie.broadsheet.app.model.json; //from w w w .jav a 2 s. c om import java.io.Serializable; import com.google.api.client.util.Key; public class Author implements Serializable { private static final long serialVersionUID = 1L; @Key private int id; @Key private String slug; @Key private String name; @Key private String first_name; @Key private String last_name; @Key private String nickname; @Key private String url; @Key private String description; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getSlug() { return slug; } public void setSlug(String slug) { this.slug = slug; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getFirst_name() { return first_name; } public void setFirst_name(String first_name) { this.first_name = first_name; } public String getLast_name() { return last_name; } public void setLast_name(String last_name) { this.last_name = last_name; } public String getNickname() { return nickname; } public void setNickname(String nickname) { this.nickname = nickname; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((first_name == null) ? 0 : first_name.hashCode()); result = prime * result + id; result = prime * result + ((last_name == null) ? 0 : last_name.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((nickname == null) ? 0 : nickname.hashCode()); result = prime * result + ((slug == null) ? 0 : slug.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Author other = (Author) obj; if (description == null) { if (other.description != null) return false; } else if (!description.equals(other.description)) return false; if (first_name == null) { if (other.first_name != null) return false; } else if (!first_name.equals(other.first_name)) return false; if (id != other.id) return false; if (last_name == null) { if (other.last_name != null) return false; } else if (!last_name.equals(other.last_name)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (nickname == null) { if (other.nickname != null) return false; } else if (!nickname.equals(other.nickname)) return false; if (slug == null) { if (other.slug != null) return false; } else if (!slug.equals(other.slug)) return false; if (url == null) { if (other.url != null) return false; } else if (!url.equals(other.url)) return false; return true; } @Override public String toString() { return "Author [id=" + id + ", slug=" + slug + ", name=" + name + ", first_name=" + first_name + ", last_name=" + last_name + ", nickname=" + nickname + ", url=" + url + ", description=" + description + "]"; } }