| | 1 | | namespace Syki.Shared; |
| | 2 | |
|
| | 3 | | public class DisciplineOut |
| | 4 | | { |
| 40460 | 5 | | public Guid Id { get; set; } |
| 13388 | 6 | | public string Name { get; set; } |
| 13332 | 7 | | public string Code { get; set; } |
| 13262 | 8 | | public byte Period { get; set; } |
| 13238 | 9 | | public byte Credits { get; set; } |
| 13238 | 10 | | public ushort Workload { get; set; } |
| 8872 | 11 | | public int Teachers { get; set; } |
| 13232 | 12 | | public List<Guid> PreRequisites { get; set; } |
| 8884 | 13 | | public StudentDisciplineStatus StudentDisciplineStatus { get; set; } |
| 22196 | 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 | | { |
| 8 | 23 | | if (obj is null) return false; |
| 4 | 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 | | { |
| 2 | 34 | | return Name; |
| | 35 | | } |
| | 36 | | } |