forked from github/szkolny
APIv2: Update endpoints
This commit is contained in:
parent
4b5c14cbd5
commit
3827aeb9b4
@ -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
|
||||
) {
|
||||
|
||||
}
|
@ -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,
|
||||
val profile: Profile,
|
||||
val loginStore: LoginStore,
|
||||
val dataStore: DataStore,
|
||||
val callback: ProgressCallback,
|
||||
val onSuccess: () -> Unit) {
|
||||
class LibrusApiGrades(val app: App,
|
||||
val profile: Profile,
|
||||
val loginStore: LoginStore,
|
||||
val dataStore: DataStore,
|
||||
val callback: ProgressCallback,
|
||||
val onSuccess: () -> Unit) : EndpointInterface {
|
||||
override fun sync() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
init {
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user