| | 1 | | namespace Syki.Shared; |
| | 2 | |
|
| | 3 | | public class GetAcademicClassOut |
| | 4 | | { |
| 27 | 5 | | public Guid Id { get; set; } |
| 28 | 6 | | public string Discipline { get; set; } |
| 27 | 7 | | public string Code { get; set; } |
| 27 | 8 | | public string Teacher { get; set; } |
| 27 | 9 | | public string Period { get; set; } |
| 27 | 10 | | public int Vacancies { get; set; } |
| 28 | 11 | | public ClassStatus Status { get; set; } |
| 36 | 12 | | public List<ScheduleOut> Schedules { get; set; } |
| 60 | 13 | | public List<LessonOut> Lessons { get; set; } = []; |
| 45 | 14 | | public List<AcademicClassStudentOut> Students { get; set; } = []; |
| 27 | 15 | | public string SchedulesInline { get; set; } |
| 28 | 16 | | public string FillRatio { get; set; } |
| 29 | 17 | | public string Workload { get; set; } |
| 27 | 18 | | public string Progress { get; set; } |
| 27 | 19 | | public decimal Frequency { get; set; } |
| | 20 | |
|
| | 21 | | public override bool Equals(object? obj) |
| | 22 | | { |
| 0 | 23 | | if (obj is null) return false; |
| 0 | 24 | | return Id == ((GetAcademicClassOut)obj).Id; |
| | 25 | | } |
| | 26 | |
|
| | 27 | | public override int GetHashCode() |
| | 28 | | { |
| 0 | 29 | | return Id.ToHashCode(); |
| | 30 | | } |
| | 31 | |
|
| | 32 | | public static implicit operator GetAcademicClassOut(OneOf<GetAcademicClassOut, ErrorOut> value) |
| | 33 | | { |
| 9 | 34 | | return value.GetSuccess(); |
| | 35 | | } |
| | 36 | | } |