APIv2: Update endpoints

This commit is contained in:
Kuba Szczodrzyński 2019-09-20 19:12:47 +02:00
parent 4b5c14cbd5
commit 3827aeb9b4
3 changed files with 44 additions and 8 deletions

View File

@ -1,4 +1,20 @@
/*
* Copyright (c) Kuba Szczodrzyński 2019-9-20.
*/
package pl.szczodrzynski.edziennik.api.v2.interfaces
interface ILoginMethod {
import pl.szczodrzynski.edziennik.App
import pl.szczodrzynski.edziennik.api.interfaces.ProgressCallback
import pl.szczodrzynski.edziennik.datamodels.LoginStore
import pl.szczodrzynski.edziennik.datamodels.Profile
abstract class ILoginMethod(
val app: App,
val profile: Profile?,
val loginStore: LoginStore,
val callback: ProgressCallback,
val onSuccess: () -> Unit
) {
}

View File

@ -6,12 +6,17 @@ import pl.szczodrzynski.edziennik.api.v2.models.DataStore
import pl.szczodrzynski.edziennik.datamodels.LoginStore
import pl.szczodrzynski.edziennik.datamodels.Profile
class LibrusGrades(val app: App,
class LibrusApiGrades(val app: App,
val profile: Profile,
val loginStore: LoginStore,
val dataStore: DataStore,
val callback: ProgressCallback,
val onSuccess: () -> Unit) {
val onSuccess: () -> Unit) : EndpointInterface {
override fun sync() {
}
init {
}

View File

@ -1,4 +1,19 @@
package pl.szczodrzynski.edziennik.api.v2.librus.data
class LibrusSynergiaGrades {
import pl.szczodrzynski.edziennik.App
import pl.szczodrzynski.edziennik.api.interfaces.ProgressCallback
import pl.szczodrzynski.edziennik.api.v2.models.DataStore
import pl.szczodrzynski.edziennik.datamodels.LoginStore
import pl.szczodrzynski.edziennik.datamodels.Profile
class LibrusSynergiaGrades(val app: App,
val profile: Profile,
val loginStore: LoginStore,
val dataStore: DataStore,
val callback: ProgressCallback,
val onSuccess: () -> Unit) {
init {
}
}