Add schoolShortName to sdk Student
This commit is contained in:
parent
277b1c121b
commit
bad10de96b
2 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ fun List<ApiStudent>.mapStudents(symbol: String): List<Student> {
|
|||
className = it.classCode.orEmpty(),
|
||||
studentName = "${it.name} ${it.surname}",
|
||||
schoolSymbol = it.reportingUnitSymbol,
|
||||
schoolShortName = it.reportingUnitShortcut,
|
||||
schoolName = it.reportingUnitName,
|
||||
loginType = Sdk.ScrapperLoginType.STANDARD,
|
||||
loginMode = Sdk.Mode.API,
|
||||
|
@ -40,6 +41,7 @@ fun List<ScrapperStudent>.mapStudents(): List<Student> {
|
|||
symbol = it.symbol,
|
||||
loginType = Sdk.ScrapperLoginType.valueOf(it.loginType.name),
|
||||
schoolName = it.schoolName,
|
||||
schoolShortName = it.schoolShortName,
|
||||
schoolSymbol = it.schoolSymbol,
|
||||
studentName = it.studentName,
|
||||
loginMode = Sdk.Mode.SCRAPPER,
|
||||
|
|
|
@ -10,6 +10,7 @@ data class Student(
|
|||
val userLoginId: Int,
|
||||
val studentName: String,
|
||||
val schoolSymbol: String,
|
||||
val schoolShortName: String,
|
||||
val schoolName: String,
|
||||
val className: String,
|
||||
val classId: Int,
|
||||
|
|
Loading…
Reference in a new issue