forked from github/szkolny
[API] Add Server Sync Task
This commit is contained in:
parent
b085d94fea
commit
d6f9b81de6
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Kuba Szczodrzyński 2019-12-7.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pl.szczodrzynski.edziennik.api.v2.events.task
|
||||||
|
|
||||||
|
import pl.szczodrzynski.edziennik.App
|
||||||
|
import pl.szczodrzynski.edziennik.R
|
||||||
|
import pl.szczodrzynski.edziennik.api.v2.interfaces.EdziennikCallback
|
||||||
|
|
||||||
|
class ServerSyncTask : IApiTask(-1) {
|
||||||
|
override fun prepare(app: App) {
|
||||||
|
taskName = app.getString(R.string.edziennik_notification_api_notify_title) // TODO text
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun cancel() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
fun run(app: App, taskCallback: EdziennikCallback) {
|
||||||
|
|
||||||
|
|
||||||
|
taskCallback.onCompleted()
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user