| | | 1 | | using Syki.Back.Features.Academic.CreateClass; |
| | | 2 | | using Syki.Back.Features.Academic.CreateCampus; |
| | | 3 | | using Syki.Back.Features.Academic.CreateDiscipline; |
| | | 4 | | |
| | | 5 | | namespace Syki.Back.Features.Academic.CreateTeacher; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Representa um Professor. |
| | | 9 | | /// </summary> |
| | | 10 | | public class SykiTeacher : Entity |
| | | 11 | | { |
| | 846 | 12 | | public Guid Id { get; set; } |
| | 566 | 13 | | public Guid InstitutionId { get; set; } |
| | 1194 | 14 | | public string Name { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Disciplinas que o professor está apto a lecionar |
| | | 18 | | /// </summary> |
| | 204 | 19 | | public List<Discipline> Disciplines { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Conjunto de campus que o professor trabalha |
| | | 23 | | /// </summary> |
| | 206 | 24 | | public List<Campus> Campi { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Preferências de horários do professor no semestre atual |
| | | 28 | | /// </summary> |
| | 2 | 29 | | public List<Schedule> SchedulingPreferences { get; set; } |
| | | 30 | | |
| | 2084 | 31 | | private SykiTeacher() { } |
| | | 32 | | |
| | 282 | 33 | | public SykiTeacher( |
| | 282 | 34 | | Guid userId, |
| | 282 | 35 | | Guid institutionId, |
| | 282 | 36 | | string name |
| | 282 | 37 | | ) { |
| | 282 | 38 | | Id = userId; |
| | 282 | 39 | | InstitutionId = institutionId; |
| | 282 | 40 | | Name = name; |
| | | 41 | | |
| | 282 | 42 | | AddDomainEvent(new TeacherCreatedDomainEvent(Id, InstitutionId)); |
| | 282 | 43 | | } |
| | | 44 | | |
| | | 45 | | public TeacherOut ToOut() |
| | | 46 | | { |
| | 276 | 47 | | return new() |
| | 276 | 48 | | { |
| | 276 | 49 | | Id = Id, |
| | 276 | 50 | | Name = Name, |
| | 276 | 51 | | }; |
| | | 52 | | } |
| | | 53 | | } |