Add switchDiary with kindergartenDiaryId param

This commit is contained in:
Mikołaj Pich 2021-12-30 19:45:50 +01:00
parent d653df338a
commit fbb42782b3

View file

@ -217,9 +217,15 @@ class Sdk {
interceptors.add(interceptor to network)
}
@Deprecated("use switchDiary(int, int, int) instead", ReplaceWith("switchDiary(diaryId, 0, schoolYear)"))
fun switchDiary(diaryId: Int, schoolYear: Int): Sdk {
return switchDiary(diaryId, 0, schoolYear)
}
fun switchDiary(diaryId: Int, kindergartenDiaryId: Int, schoolYear: Int): Sdk {
return also {
it.diaryId = diaryId
it.kindergartenDiaryId = kindergartenDiaryId
it.schoolYear = schoolYear
}
}