-
Notifications
You must be signed in to change notification settings - Fork 0
/
Account.java
53 lines (48 loc) · 1.17 KB
/
Account.java
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import java.util.ArrayList;
/**
* @author Andrew Chisolm, Bryan Munoz, Matt Olson, Daniel Ruiz, Jaden Arnold
* A account in the camp system
*/
public class Account {
private String username;
private String password;
private ArrayList<User> users;
/**
* Account information of the user
* @param username Users username that is accoiated with there account
* @param password Users password that is accoiated with there account
*/
public Account(String username, String password){
this.username = username;
this.password = password;
this.users = new ArrayList<User>();
}
/**
* Username accessor
* @return username
*/
public String getUsername() {
return username;
}
/**
* Password accessor
* @return password
*/
public String getPassword() {
return password;
}
/**
* Accessor for list of Users
* @return users
*/
public ArrayList<User> getUsers() {
return users;
}
/**
* Adds the user to the arraylist
* @param user the user
*/
public void addUser(User user){
users.add(user);
}
}