package dp.kotul.templategroupsbackend.model.user

import kotlin.reflect.full.memberProperties

data class UserInfo(
        val id: Int,
        val userName: String?,
        val email: String?,
        val name: String?,
        val wantsEmail: Boolean?,
        val customerReference: String?,
        val address: String?,
        val postalCode: String?,
        val telephone: String?,
        val cellular: String?,
        val employeeNr: String?,
        val sectorShortName: String?,
        val unitCode: String?,
        val unitEconomicName: String?,
        val department: String?,
        val school: String?,
        val title: String?,
        val status: String?,
        val fax: String?,
        val homeAddress: String?,
        val homePostalCode: String?,
        val costCenter: String?,
        val parentEmployeeNo: String?,
        val reception: String?,
        val shortName: String?,
        val signatureId: Int?,
        val pictureId: Int?,
        val companyCode: String?,
        val customtext1: String?,
        val customtext2: String?,
        val customtext3: String?,
        val customtext4: String?,
        val customtext5: String?,
        val customtext6: String?,
        val customtext7: String?,
        val customtext8: String?,
        val customtext9: String?,
        val customtext10: String?,
        val room: String?,
        val officeLocation: String?,
        val address2: String?,
        val companyName: String?,
        val officeAddress1: String?,
        val officeAddress2: String?,
        val officePostalCode: String?,
        val firstName: String?,
        val lastName: String?,
        val comId: Int,
        val laeId: Int
) {
    val userInfoMap = UserInfo::class.memberProperties.associate { it.name to it.get(this) }
}
