| | | 1 | | namespace Syki.Back.Features.CourseCurriculums.GetCourseCurriculum; |
| | | 2 | | |
| | | 3 | | public class GetCourseCurriculumOut : IApiDto<GetCourseCurriculumOut> |
| | | 4 | | { |
| | | 5 | | public int Id { get; set; } |
| | | 6 | | public string Name { get; set; } |
| | | 7 | | public int CourseId { get; set; } |
| | | 8 | | public string Course { get; set; } |
| | | 9 | | public List<GetCourseCurriculumDisciplineOut> Disciplines { get; set; } = []; |
| | | 10 | | |
| | | 11 | | public static IEnumerable<(string, GetCourseCurriculumOut)> GetExamples() => |
| | | 12 | | [ |
| | | 13 | | ("Exemplo", new() |
| | | 14 | | { |
| | | 15 | | Id = 1, |
| | | 16 | | Name = "Grade ADS 2024", |
| | | 17 | | Course = "Análise e Desenvolvimento de Sistemas", |
| | | 18 | | Disciplines = [new() { Id = 1, Name = "Cálculo I", Period = 1, Credits = 4, Workload = 60 }], |
| | | 19 | | }), |
| | | 20 | | ]; |
| | | 21 | | } |
| | | 22 | | |
| | | 23 | | public class GetCourseCurriculumDisciplineOut |
| | | 24 | | { |
| | 0 | 25 | | public int Id { get; set; } |
| | 0 | 26 | | public string Name { get; set; } |
| | 0 | 27 | | public byte Period { get; set; } |
| | 0 | 28 | | public byte Credits { get; set; } |
| | 0 | 29 | | public ushort Workload { get; set; } |
| | | 30 | | } |