Make field dyrektorzy nullable

This commit is contained in:
Mikołaj Pich 2024-03-23 14:53:58 +01:00
parent cd31377aed
commit dab976890f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -439,7 +439,7 @@ internal class StudentPlusRepository(
name = name, name = name,
address = "${it.street} $streetNumber, ${it.postcode} ${it.town}", address = "${it.street} $streetNumber, ${it.postcode} ${it.town}",
contact = it.workPhone, contact = it.workPhone,
headmaster = it.headmasters.firstOrNull().orEmpty(), headmaster = it.headmasters?.firstOrNull().orEmpty(),
pedagogue = "", pedagogue = "",
) )
} }

View file

@ -13,7 +13,7 @@ internal data class SchoolPlus(
@SerialName("kodPocztowy") val postcode: String, @SerialName("kodPocztowy") val postcode: String,
@SerialName("nrDomu") val buildingNumber: String, @SerialName("nrDomu") val buildingNumber: String,
@SerialName("nrMieszkania") val apartmentNumber: String, @SerialName("nrMieszkania") val apartmentNumber: String,
@SerialName("dyrektorzy") val headmasters: List<String>, @SerialName("dyrektorzy") val headmasters: List<String>?,
@SerialName("stronaWwwUrl") val website: String, @SerialName("stronaWwwUrl") val website: String,
@SerialName("mail") val email: String, @SerialName("mail") val email: String,
@SerialName("telSluzbowy") val workPhone: String, @SerialName("telSluzbowy") val workPhone: String,