package erepnikov.models;

/**
 * Class Role
 *
 * @author Egor Repnikov
 * @version 0.0.1
 * @since 06.09.2017
 */
public class Role {

    /**
     * Role's id
     */
    private int id;

    /**
     * Role's name
     */
    private String name;

    /**
     * Initialize all fields
     *
     * @param id
     * @param name
     */
    public Role(int id, String name) {
        this.id = id;
        this.name = name;
    }

    /**
     * @return user's id
     */
    public int getId() {
        return this.id;
    }

    /**
     * @return user's name
     */
    public String getName() {
        return this.name;
    }
}
