Fleshed out session management in registration v2.

This commit is contained in:
Nicholas Tinsley
2024-05-13 17:33:42 -04:00
parent b4a8f01980
commit 68ced18ea1
4 changed files with 211 additions and 18 deletions

View File

@@ -30,6 +30,15 @@ class RegistrationApi(
}
}
/**
* Retrieve current status of a registration session.
*/
fun getRegistrationSessionStatus(sessionId: String): NetworkResult<RegistrationSessionMetadataResponse> {
return NetworkResult.fromFetch {
pushServiceSocket.getSessionStatus(sessionId)
}
}
/**
* Submit an FCM token to the service as proof that this is an honest user attempting to register.
*/