Beispiel #1
0
  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;
  }
Beispiel #2
0
 public void reEdit(UserProfileInfo userInfo) {
   this.name = userInfo.getName();
   this.emailAddress = userInfo.getEmailAddress();
 }