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 ww w . java 2 s .co m package com.fernandocejas.android10.sample.presentation.model; /** * Class that represents a user in the presentation layer. */ public class UserModel { private final int userId; public UserModel(int userId) { this.userId = userId; } private String coverUrl; private String fullName; private String email; private String description; private int followers; public int getUserId() { return 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 getEmail() { return email; } public void setEmail(String email) { this.email = email; } 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; } @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("***** User Model 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(); } }