-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(models, cist): fix cist teachers faculties models
(adjustment to new cist broken json)
- Loading branch information
1 parent
775d600
commit 6fe35a0
Showing
6 changed files
with
79 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Newtonsoft.Json; | ||
using NureTimetableAPI.Models.Domain; | ||
|
||
namespace NureTimetableAPI.Models.Cist; | ||
|
||
public class CistTeachersInnerFaculty : Department | ||
{ | ||
[JsonProperty("departments")] | ||
public List<CistTeachersInnerInnerFaculty> InnerInnerFaculties { get; set; } = []; | ||
|
||
public Department ToDepartment() | ||
{ | ||
return new Department | ||
{ | ||
Id = Id, | ||
ShortName = ShortName, | ||
FullName = FullName, | ||
Teachers = Teachers, | ||
}; | ||
} | ||
|
||
public DepartmentDomain ToDepartmentDomain(TeachersFacultyDomain teachersFacultyDomain) | ||
{ | ||
return new DepartmentDomain | ||
{ | ||
DepartmentId = Id, | ||
ShortName = ShortName, | ||
FullName = FullName, | ||
Teachers = Teachers, | ||
TeachersFaculty = teachersFacultyDomain, | ||
TeachersFacultyDomainId = teachersFacultyDomain.Id, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters