-
Notifications
You must be signed in to change notification settings - Fork 260
/
Copy pathLectureEntity.java
68 lines (57 loc) · 1.9 KB
/
LectureEntity.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
56
57
58
59
60
61
62
63
64
65
66
67
68
package nextstep.courses.domain.lectures;
import java.time.LocalDateTime;
import nextstep.courses.BaseTime;
import nextstep.courses.domain.coverimage.CoverImages;
import nextstep.users.domain.Price;
public class LectureEntity extends BaseTime {
private final LectureType lectureType;
private final Long id;
private final String title;
private final CoverImages coverImages = new CoverImages();
private final LectureStatus lectureStatus;
private final LectureRecruitingStatus lectureRecruitingStatus;
private final RegistrationPeriod registrationPeriod;
private final Price price;
private final Integer limitStudentCount;
public LectureEntity(Long id, String title, CoverImages coverImages, LectureType lectureType,
LectureStatus lectureStatus,LectureRecruitingStatus lectureRecruitingStatus, RegistrationPeriod registrationPeriod, Price price,
Integer limitStudentCount, LocalDateTime createdAt, LocalDateTime updatedAt) {
super(createdAt, updatedAt);
this.id = id;
this.title = title;
this.coverImages.addAll(coverImages);
this.lectureType = lectureType;
this.lectureStatus = lectureStatus;
this.lectureRecruitingStatus = lectureRecruitingStatus;
this.registrationPeriod = registrationPeriod;
this.price = price;
this.limitStudentCount = limitStudentCount;
}
public LectureType lectureType() {
return lectureType;
}
public Long id() {
return id;
}
public String title() {
return title;
}
public CoverImages coverImage() {
return coverImages;
}
public LectureRecruitingStatus lectureRecruitingStatus() {
return lectureRecruitingStatus;
}
public LectureStatus lectureStatus() {
return lectureStatus;
}
public RegistrationPeriod registrationPeriod() {
return registrationPeriod;
}
public Price price() {
return price;
}
public Integer limitStudentCount() {
return limitStudentCount;
}
}