Fix userLoginId value

This commit is contained in:
Mikołaj Pich 2020-08-29 12:14:37 +02:00
parent 2b686643f3
commit c6d1453536
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import com.google.gson.annotations.SerializedName
data class ReportingUnit(
@SerializedName("IdJednostkaSprawozdawcza")
val id: Int = 0,
val unitId: Int = 0,
@SerializedName("Skrot")
val short: String = "",

View file

@ -118,7 +118,7 @@ class RegisterRepository(
email = email,
userLogin = email,
userName = unit?.senderName ?: email,
userLoginId = unit?.id ?: 0,
userLoginId = unit?.senderId ?: 0,
symbol = symbol,
studentId = diary.studentId,
studentName = diary.studentName,

View file

@ -6,7 +6,7 @@ import io.github.wulkanowy.sdk.scrapper.messages.ReportingUnit as ScrapperReport
fun List<ScrapperReportingUnit>.mapReportingUnits() = map {
ReportingUnit(
id = it.id,
id = it.unitId,
roles = it.roles,
senderId = it.senderId,
senderName = it.senderName,