Back to project page protohipster.
The source code is released under:
Apache License
If you think the Android project protohipster 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.flipper83.protohipster.feed.view.viewmodel; /* w w w. j a v a2 s . c o m*/ /** * An User View Model */ public class HipsterViewModel { public static final HipsterViewModel EMPTY = new HipsterViewModel(); private String userId = ""; private String name = ""; private String urlAvatar = ""; private int rating; private boolean likedByMe; public HipsterViewModel() { } public String getName() { return name; } public String getUrlAvatar() { return urlAvatar; } public int getRating() { return rating; } public void setName(String name) { this.name = name; } public void setUrlAvatar(String urlAvatar) { this.urlAvatar = urlAvatar; } public void setRating(int rating) { this.rating = rating; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public void setLikedByMe(boolean likedByMe) { this.likedByMe = likedByMe; } public boolean isLikedByMe() { return likedByMe; } }