public static UserProfileInfo toInfo(UserProfile user) { if (user == null) return null; UserProfileInfo userInfo = new UserProfileInfo(); userInfo.setName(user.getName()); userInfo.setEmailAddress(user.getEmail()); userInfo.setUserType(user.getType()); userInfo.setUniqueId(user.getUniqueId()); userInfo.setChannelId(user.getChannelId()); return userInfo; }
public void reEdit(UserProfileInfo userInfo) { this.name = userInfo.getName(); this.emailAddress = userInfo.getEmailAddress(); }