Create GetDatabaseSizesUseCase so we don't have to expose the while MatrixClient to get these values

This commit is contained in:
Jorge Martín 2025-12-16 16:51:05 +01:00 committed by Jorge Martin Espinosa
parent 6441153dba
commit e18a5ef17f
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2025 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.libraries.matrix.api.analytics
import io.element.android.libraries.matrix.api.core.SessionId
fun interface GetDatabaseSizesUseCase {
suspend operator fun invoke(sessionId: SessionId): Result<SdkStoreSizes>
}