| | 1 | | namespace Syki.Shared; |
| | 2 | |
|
| | 3 | | public class DisciplineOut |
| | 4 | | { |
| 53996 | 5 | | public Guid Id { get; set; } |
| 25994 | 6 | | public string Name { get; set; } |
| 25700 | 7 | | public string Code { get; set; } |
| 21402 | 8 | | public byte Period { get; set; } |
| 21378 | 9 | | public byte Credits { get; set; } |
| 21378 | 10 | | public ushort Workload { get; set; } |
| 17132 | 11 | | public int Teachers { get; set; } |
| 21372 | 12 | | public List<Guid> PreRequisites { get; set; } |
| 17144 | 13 | | public StudentDisciplineStatus StudentDisciplineStatus { get; set; } |
| 42846 | 14 | | public List<Guid> Courses { get; set; } = []; |
| | 15 | |
|
| | 16 | | public static IEnumerable<(string, DisciplineOut)> GetExamples() => |
| 0 | 17 | | [ |
| 0 | 18 | | ("Exemplo", new() { }), |
| 0 | 19 | | ]; |
| | 20 | |
|
| | 21 | | public override bool Equals(object? obj) |
| | 22 | | { |
| 88 | 23 | | if (obj is null) return false; |
| 84 | 24 | | return Id == ((DisciplineOut)obj).Id; |
| | 25 | | } |
| | 26 | |
|
| | 27 | | public override int GetHashCode() |
| | 28 | | { |
| 2 | 29 | | return Id.ToHashCode(); |
| | 30 | | } |
| | 31 | |
|
| | 32 | | public override string ToString() |
| | 33 | | { |
| 226 | 34 | | return Name; |
| | 35 | | } |
| | 36 | | } |