forked from github/szkolny
[APIv2/Librus] Add Synergia endpoint template
This commit is contained in:
parent
bbf8f05d3c
commit
e2150e3018
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Kacper Ziubryniewicz 2019-10-23
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pl.szczodrzynski.edziennik.api.v2.librus.data.synergia
|
||||||
|
|
||||||
|
import org.jsoup.Jsoup
|
||||||
|
import pl.szczodrzynski.edziennik.api.v2.librus.DataLibrus
|
||||||
|
import pl.szczodrzynski.edziennik.api.v2.librus.data.LibrusSynergia
|
||||||
|
import pl.szczodrzynski.edziennik.data.db.modules.api.SYNC_ALWAYS
|
||||||
|
|
||||||
|
class LibrusSynergiaTemplate(override val data: DataLibrus, val onSuccess: () -> Unit) : LibrusSynergia(data) {
|
||||||
|
companion object {
|
||||||
|
const val TAG = "LibrusSynergia"
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
/* synergiaGet(TAG, "") { text ->
|
||||||
|
val doc = Jsoup.parse(text)
|
||||||
|
|
||||||
|
data.setSyncNext(ENDPOINT_LIBRUS_SYNERGIA_, SYNC_ALWAYS)
|
||||||
|
onSuccess()
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user