[PM-20073] Migrate SyncApi to the network module (#5028)

This commit is contained in:
Patrick Honkonen
2025-04-11 10:18:09 -04:00
committed by GitHub
parent 05b1266b1b
commit ed97695228
3 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
package com.bitwarden.network.api
import com.bitwarden.network.model.NetworkResult
import com.bitwarden.network.model.SyncResponseJson
import retrofit2.http.GET
/**
* This interface defines the API service for fetching vault data.
*/
interface SyncApi {
/**
* Retrieves the vault data from the server.
*
* @return A [SyncResponseJson] containing the vault response model.
*/
@GET("sync")
suspend fun sync(): NetworkResult<SyncResponseJson>
@GET("/accounts/revision-date")
suspend fun getAccountRevisionDateMillis(): NetworkResult<Long>
}