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