mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
[API/Librus] Revert getting time in teacher free days. (#124)
This commit is contained in:
parent
aa06868a4e
commit
2ab0dd7546
@ -38,6 +38,8 @@ class LibrusApiTeacherFreeDays(override val data: DataLibrus,
|
|||||||
?: return@forEach
|
?: return@forEach
|
||||||
val dateFrom = Date.fromY_m_d(teacherAbsence.getString("DateFrom"))
|
val dateFrom = Date.fromY_m_d(teacherAbsence.getString("DateFrom"))
|
||||||
val dateTo = Date.fromY_m_d(teacherAbsence.getString("DateTo"))
|
val dateTo = Date.fromY_m_d(teacherAbsence.getString("DateTo"))
|
||||||
|
val timeFrom = teacherAbsence.getString("TimeFrom")?.let { Time.fromH_m_s(it) }
|
||||||
|
val timeTo = teacherAbsence.getString("TimeTo")?.let { Time.fromH_m_s(it) }
|
||||||
|
|
||||||
val teacherAbsenceObject = TeacherAbsence(
|
val teacherAbsenceObject = TeacherAbsence(
|
||||||
profileId = profileId,
|
profileId = profileId,
|
||||||
@ -46,8 +48,8 @@ class LibrusApiTeacherFreeDays(override val data: DataLibrus,
|
|||||||
name = null,
|
name = null,
|
||||||
dateFrom = dateFrom,
|
dateFrom = dateFrom,
|
||||||
dateTo = dateTo,
|
dateTo = dateTo,
|
||||||
timeFrom = null,
|
timeFrom = timeFrom,
|
||||||
timeTo = null,
|
timeTo = timeTo,
|
||||||
teacherId = teacherId
|
teacherId = teacherId
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user