Skip to content

Commit c6a50b7

Browse files
committed
feat(phase7): expose managerCheckInvalidApplications in Kotlin RPC layer
Add managerCheckInvalidApplications() to GetterService interface and GetterServiceImpl, calling the new manager_check_invalid_applications RPC method added to the Rust getter submodule.
1 parent 0afadf5 commit c6a50b7

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

core-getter/rpc/src/main/java/net/xzos/upgradeall/getter/rpc/GetterService.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ interface GetterService {
113113

114114
suspend fun managerRenewAll(): Boolean
115115

116+
/** Return record IDs of saved apps whose configured hub UUIDs are all unknown. */
117+
suspend fun managerCheckInvalidApplications(): List<String>
118+
116119
// ========================================================================
117120
// Hub Manager
118121
// ========================================================================

core-getter/rpc/src/main/java/net/xzos/upgradeall/getter/rpc/GetterServiceImpl.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ class GetterServiceImpl(
214214

215215
override suspend fun managerRenewAll(): Boolean = client.invoke("manager_renew_all", typeOf<Boolean>())
216216

217+
override suspend fun managerCheckInvalidApplications(): List<String> =
218+
client.invoke("manager_check_invalid_applications", typeOf<List<String>>())
219+
217220
// ========================================================================
218221
// Hub Manager
219222
// ========================================================================

0 commit comments

Comments
 (0)