package com.ufund.api.ufundapi.model; import com.fasterxml.jackson.annotation.JsonProperty; public class User { @JsonProperty("name") private final String name; @JsonProperty("password") private String password; /** * Create a new user * * @param name The name of the user * @param password The password of the user */ public User(@JsonProperty("name") String name) { this.name = name; } /** * Create a deep copy of another user * * @param other The user to copy from */ public User(User other) { this.name = other.name; } public String getName() { return name; } public String getPassword() { return password; } }