blob: 4a7e0089498eb005a8047eb85b4ec6d12c3a2fd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
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"
}
}
|