-
Notifications
You must be signed in to change notification settings - Fork 0
/
Author.java
55 lines (49 loc) · 2.14 KB
/
Author.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
53
54
55
import java.util.UUID;
/**
* This is going to be the author class to show what a user can do
* @author word.exe
*/
public class Author extends User{
/**
* This class is going to set up a new author with all of their information
* @param firstName the first name of the user
* @param lastName the last name of the user
* @param userName the username for the user
* @param password the password for the user
* @param userID the UUID of the user
* @param dateOfBirth the date of birth for the user
* @param phoneNumber the phone number for the user
* @param emailAddress the email address for the user
*/
public Author(String firstName, String lastName, String userName, String password, java.util.Date dateOfBirth, String phoneNumber, String emailAddress) {
super(firstName, lastName, userName, password, dateOfBirth, phoneNumber, emailAddress);
}
/**
* This class is going to set up the author with all of their information
* @param firstName the first name of the user
* @param lastName the last name of the user
* @param userName the username for the user
* @param password the password for the user
* @param userID the UUID of the user
* @param dateOfBirth the date of birth for the user
* @param phoneNumber the phone number for the user
* @param emailAddress the email address for the user
*/
public Author(String firstName, String lastName, String userName, String password, java.util.UUID userID, java.util.Date dateOfBirth, String phoneNumber, String emailAddress) {
super(firstName, lastName, userName, password, userID, dateOfBirth, phoneNumber, emailAddress);
}
/**
* This is going to add in the course
*/
public void addCourse(Course course) {
courseProgress.add(new CourseProgress(course));
}
/**
* This is going to create a course
* @param CourseName this will be the name of the course
* @param authorID this will be the author ID
*/
public void createCourse(String CourseName) {
CourseList.getInstance().addCourse(new Course(CourseName, this));
}
}