package com.jdroid.android.social; import com.jdroid.java.domain.Entity; public class SocialUser extends Entity { private static final long serialVersionUID = -2589221155169586304L; private String socialId; private AccountType socialNetwork; private String firstName; private String lastName; private String imageURL; public SocialUser(String id, String socialId, AccountType socialNetwork, String firstName, String lastName, String imageURL) { super(id); this.socialId = socialId; this.socialNetwork = socialNetwork; this.firstName = firstName; this.lastName = lastName; this.imageURL = imageURL; } public String getFullname() { StringBuilder builder = new StringBuilder(); builder.append(firstName); if (lastName != null) { builder.append(" "); builder.append(lastName); } return builder.toString(); } /** * @return the firstName */ public String getFirstName() { return firstName; } /** * @return the lastName */ public String getLastName() { return lastName; } public String getImageUrl() { return imageURL; } /** * @return the socialNetwork */ public AccountType getSocialNetwork() { return socialNetwork; } /** * @return the socialId */ public String getSocialId() { return socialId; } }