app / com.pzpg.ogr.api / RequestManager
RequestManager
class RequestManager
Class for managing requests to the server.
Constructors
Name | Summary |
---|---|
<init> | Class for managing requests to the server.RequestManager(context: Context , account: GoogleSignInAccount) |
Functions
Name | Summary |
---|---|
authenticate | Suspend fun to called from a coroutine, required for user authentication to the server.suspend fun authenticate(): Boolean |
deleteAll | Suspend fun to called from a coroutine, used ee in RequestServer.deleteAllsuspend fun deleteAll(): Boolean |
deleteData | Suspend fun to called from a coroutine, used to … see in RequestServer.deleteDatasuspend fun deleteData(guid: String ): Boolean |
downloadProcessedGraph | Suspend fun to called from a coroutine, used to download the processed graphsuspend fun downloadProcessedGraph(guid: String , format: GraphFormat = GraphFormat.GraphML): File ? |
getHistory | Suspend fun to called from a coroutine, used ee in RequestServer.getHistorysuspend fun getHistory(): JSONArray ? |
processImage | Suspend fun to called from a coroutine, required for process uploaded image uploadImagesuspend fun processImage(path: String , name: String , mode: ProcessMode = ProcessMode.AUTO): Boolean suspend fun processImage(guid: String , mode: ProcessMode = ProcessMode.AUTO): Boolean |
refresh | Suspend fun to called from a coroutine, required for refresh jwtTokensuspend fun refresh(): Boolean |
revokeToken | Suspend fun to called from a coroutine, used to … see in RequestServer.revokeTokensuspend fun revokeToken(): Boolean |
uploadImage | Suspend fun to called from a coroutine to upload image to serversuspend fun uploadImage(path: String , name: String ): String ? |