From 007176fed2246177c615546ad685b0baf22df284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Thu, 18 Aug 2022 00:19:23 +0200 Subject: [PATCH] Add missing mapping --- .../src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Utils.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Utils.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Utils.kt index 1968dea6..e8a44f72 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Utils.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Utils.kt @@ -92,13 +92,17 @@ fun Recipient.parseName(): Recipient { fun Mailbox.toRecipient() = Recipient( mailboxGlobalKey = globalKey, + studentName = studentName, name = name, + schoolNameShort = schoolNameShort, ) fun Recipient.toMailbox() = Mailbox( globalKey = mailboxGlobalKey, name = name, userType = -1, + studentName = studentName, + schoolNameShort = schoolNameShort, ) fun String.capitalise() = replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }