diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/interfaces/ILoginMethod.kt b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/interfaces/ILoginMethod.kt index 440a5693..c1834b29 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/interfaces/ILoginMethod.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/interfaces/ILoginMethod.kt @@ -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 +) { + } \ No newline at end of file diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusApiGrades.kt b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusApiGrades.kt index 261a4476..eae53a75 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusApiGrades.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusApiGrades.kt @@ -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 { } diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusSynergiaGrades.kt b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusSynergiaGrades.kt index a1693141..ecf10682 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusSynergiaGrades.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/librus/data/LibrusSynergiaGrades.kt @@ -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 { + + } } \ No newline at end of file