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