blob: 48d4cf7a91099dd365c87f1efa7518ce9272a51f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package moe.nea.firmament.dbus
import moe.nea.firmament.repo.RepoManager
object FirmamentDbusObject : FirmamentDbusInterface {
override fun sayHello(): String {
return "Hello from Firmanet"
}
override fun getCurrentRepoCommit(): String {
return RepoManager.currentDownloadedSha ?: "none"
}
override fun requestRepoReDownload() {
RepoManager.launchAsyncUpdate()
}
override fun getObjectPath(): String {
return "/moe/nea/Firmament"
}
}
|