mirror of
https://github.com/bitwarden/android.git
synced 2026-04-28 20:08:27 -05:00
[PM-20073] Migrate SyncApi to the network module (#5028)
This commit is contained in:
21
network/src/main/kotlin/com/bitwarden/network/api/SyncApi.kt
Normal file
21
network/src/main/kotlin/com/bitwarden/network/api/SyncApi.kt
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user