Add missing mapping
This commit is contained in:
parent
cadf48de4a
commit
007176fed2
1 changed files with 4 additions and 0 deletions
|
@ -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() }
|
||||
|
|
Loading…
Reference in a new issue