package org.keycloak.account.freemarker.model;

import org.keycloak.models.UserModel;

/**
 * @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
 */
public class AccountBean {

    private UserModel user;

    public AccountBean(UserModel user) {
        this.user = user;
    }

    public String getFirstName() {
        return user.getFirstName();
    }

    public String getLastName() {
        return user.getLastName();
    }

    public String getUsername() {
        return user.getLoginName();
    }

    public String getEmail() {
        return user.getEmail();
    }

}
