Add schoolShortName to sdk Student

This commit is contained in:
Mikołaj Pich 2020-02-29 21:46:17 +01:00
parent 277b1c121b
commit bad10de96b
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
2 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -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,