| | 1 | | namespace Syki.Shared; |
| | 2 | |
|
| | 3 | | public class CreateClassIn |
| | 4 | | { |
| 3638 | 5 | | public Guid DisciplineId { get; set; } |
| 3636 | 6 | | public Guid TeacherId { get; set; } |
| 3634 | 7 | | public string Period { get; set; } |
| 3030 | 8 | | public int Vacancies { get; set; } |
| 3034 | 9 | | public List<ScheduleIn> Schedules { get; set; } |
| | 10 | |
|
| 1216 | 11 | | public CreateClassIn() { } |
| | 12 | |
|
| 608 | 13 | | public CreateClassIn( |
| 608 | 14 | | Guid disciplineId, |
| 608 | 15 | | Guid teacherId, |
| 608 | 16 | | string period, |
| 608 | 17 | | int vacancies, |
| 608 | 18 | | List<ScheduleIn> schedules |
| 608 | 19 | | ) { |
| 608 | 20 | | DisciplineId = disciplineId; |
| 608 | 21 | | TeacherId = teacherId; |
| 608 | 22 | | Period = period; |
| 608 | 23 | | Vacancies = vacancies; |
| 608 | 24 | | Schedules = schedules; |
| 608 | 25 | | } |
| | 26 | |
|
| | 27 | | public static IEnumerable<(string, CreateClassIn)> GetExamples() => |
| 0 | 28 | | [ |
| 0 | 29 | | ("Banco de Dados", |
| 0 | 30 | | new CreateClassIn( |
| 0 | 31 | | Guid.CreateVersion7(), |
| 0 | 32 | | Guid.CreateVersion7(), |
| 0 | 33 | | "2024.1", |
| 0 | 34 | | 40, |
| 0 | 35 | | [ |
| 0 | 36 | | new(Day.Monday, Hour.H07_00, Hour.H10_00), |
| 0 | 37 | | new(Day.Thursday, Hour.H08_00, Hour.H10_30), |
| 0 | 38 | | ] |
| 0 | 39 | | )), |
| 0 | 40 | | ("Programação Orientada a Objetos", |
| 0 | 41 | | new CreateClassIn( |
| 0 | 42 | | Guid.CreateVersion7(), |
| 0 | 43 | | Guid.CreateVersion7(), |
| 0 | 44 | | "2024.2", |
| 0 | 45 | | 40, |
| 0 | 46 | | [ |
| 0 | 47 | | new(Day.Tuesday, Hour.H19_15, Hour.H22_00), |
| 0 | 48 | | ] |
| 0 | 49 | | )), |
| 0 | 50 | | ]; |
| | 51 | | } |