blob: ed34817ff9c64602fb9266a6e398ba453bb4224d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
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
* @param id The unique ID of the user
*/
public User(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;
}
}
|