|
Last change
on this file was ea40556, checked in by Stefan-Saveski <stefansaveski19@…>, 8 days ago |
|
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [ea40556] | 1 | namespace iknow_api.DTOs
|
|---|
| 2 | {
|
|---|
| 3 | /// <summary>One subject a professor teaches, with the students enrolled in it.</summary>
|
|---|
| 4 | public class SubjectStudentsDto
|
|---|
| 5 | {
|
|---|
| 6 | public int Id { get; set; }
|
|---|
| 7 | public string? Name { get; set; }
|
|---|
| 8 | public string? Code { get; set; }
|
|---|
| 9 | public List<EnrolledStudentDto> Users { get; set; } = new();
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | public class EnrolledStudentDto
|
|---|
| 13 | {
|
|---|
| 14 | /// <summary>users.id - what the grading endpoints expect as StudentId.</summary>
|
|---|
| 15 | public int Id { get; set; }
|
|---|
| 16 | public string? Name { get; set; }
|
|---|
| 17 | /// <summary>users.index - the number a professor actually recognises.</summary>
|
|---|
| 18 | public string? Index { get; set; }
|
|---|
| 19 | /// <summary>0 when the subject has not been graded yet.</summary>
|
|---|
| 20 | public int Grade { get; set; }
|
|---|
| 21 | public string? Semester { get; set; }
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | public class GradeRequestDto
|
|---|
| 25 | {
|
|---|
| 26 | public int StudentId { get; set; }
|
|---|
| 27 | public int SubjectId { get; set; }
|
|---|
| 28 | public int Grade { get; set; }
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | public class GradeResultDto
|
|---|
| 32 | {
|
|---|
| 33 | public bool Ok { get; set; }
|
|---|
| 34 | public string? Message { get; set; }
|
|---|
| 35 | }
|
|---|
| 36 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.