| | 1 | | using Syki.Back.Features.Academic.CreateCourse; |
| | 2 | | using Syki.Back.Features.Academic.CreateCampus; |
| | 3 | | using Syki.Back.Features.Academic.CreateTeacher; |
| | 4 | | using Syki.Back.Features.Academic.CreateStudent; |
| | 5 | | using Syki.Back.Features.Academic.CreateDiscipline; |
| | 6 | | using Syki.Back.Features.Academic.CreateNotification; |
| | 7 | | using Syki.Back.Features.Academic.CreateCourseOffering; |
| | 8 | | using Syki.Back.Features.Academic.CreateAcademicPeriod; |
| | 9 | | using Syki.Back.Features.Academic.CreateCourseCurriculum; |
| | 10 | |
|
| | 11 | | namespace Syki.Back.Features.Cross.CreateInstitution; |
| | 12 | |
|
| | 13 | | public class Institution |
| | 14 | | { |
| 1358 | 15 | | public Guid Id { get; set; } |
| 514 | 16 | | public string Name { get; set; } |
| 510 | 17 | | public DateTime CreatedAt { get; set; } |
| 0 | 18 | | public List<Campus> Campi { get; set; } |
| 0 | 19 | | public List<Course> Courses { get; set; } |
| 0 | 20 | | public List<SykiStudent> Students { get; set; } |
| 743 | 21 | | public InstitutionConfigs Configs { get; set; } |
| 0 | 22 | | public List<SykiTeacher> Teachers { get; set; } |
| 0 | 23 | | public List<Discipline> Disciplines { get; set; } |
| 0 | 24 | | public List<Notification> Notifications { get; set; } |
| 0 | 25 | | public List<CourseOffering> CourseOfferings { get; set; } |
| 0 | 26 | | public List<AcademicPeriod> AcademicPeriods { get; set; } |
| 0 | 27 | | public List<CourseCurriculum> CourseCurriculums { get; set; } |
| | 28 | |
|
| 458 | 29 | | public Institution() { } |
| | 30 | |
|
| 282 | 31 | | public Institution(string name) |
| | 32 | | { |
| 282 | 33 | | Id = Guid.NewGuid(); |
| 282 | 34 | | Name = name; |
| 282 | 35 | | CreatedAt = DateTime.Now; |
| 282 | 36 | | Configs = new InstitutionConfigs(Id, 7, 70); |
| 282 | 37 | | } |
| | 38 | |
|
| | 39 | | public InstitutionOut ToOut() |
| | 40 | | { |
| 228 | 41 | | return new() |
| 228 | 42 | | { |
| 228 | 43 | | Id = Id, |
| 228 | 44 | | Name = Name, |
| 228 | 45 | | CreatedAt = CreatedAt, |
| 228 | 46 | | NoteLimit = Configs.NoteLimit, |
| 228 | 47 | | FrequencyLimit = Configs.FrequencyLimit, |
| 228 | 48 | | }; |
| | 49 | | } |
| | 50 | | } |