Back to project page Android-CleanArchitecture.
The source code is released under:
Apache License
If you think the Android project Android-CleanArchitecture listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright (C) 2014 android10.org. All rights reserved. * @author Fernando Cejas (the android10 coder) *///from w w w . j a v a2 s .c o m package com.fernandocejas.android10.sample.data.entity; import com.google.gson.annotations.SerializedName; /** * User Entity used in the data layer. */ public class UserEntity { @SerializedName("id") private int userId; @SerializedName("cover_url") private String coverUrl; @SerializedName("full_name") private String fullname; @SerializedName("description") private String description; @SerializedName("followers") private int followers; @SerializedName("email") private String email; public UserEntity() { //empty } public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getCoverUrl() { return coverUrl; } public void setCoverUrl(String coverUrl) { this.coverUrl = coverUrl; } public String getFullname() { return fullname; } public void setFullname(String fullname) { this.fullname = fullname; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public int getFollowers() { return followers; } public void setFollowers(int followers) { this.followers = followers; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("***** User Entity Details *****\n"); stringBuilder.append("id=" + this.getUserId() + "\n"); stringBuilder.append("cover url=" + this.getCoverUrl() + "\n"); stringBuilder.append("fullname=" + this.getFullname() + "\n"); stringBuilder.append("email=" + this.getEmail() + "\n"); stringBuilder.append("description=" + this.getDescription() + "\n"); stringBuilder.append("followers=" + this.getFollowers() + "\n"); stringBuilder.append("*******************************"); return stringBuilder.toString(); } }